KMCompLight.swift 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. //
  2. // KMCompLight.swift
  3. // Cisdem PDFMaster
  4. //
  5. // Created by wanjun on 2022/12/21.
  6. //
  7. import Cocoa
  8. class KMCompLight: NSObject {
  9. var btn : [String: KMCompLight_btn]?
  10. var dropdown : [String : KMCompLight_dropdown]?
  11. var navmenu : [String : KMCompLight_navmenu]?
  12. var multi_tab : [String : KMCompLight_multiTab]?
  13. var checkbox_radio : [String : KMCompLight_checkboxRadio]?
  14. var input : [String : KMCompLight_input]?
  15. var pagination : [String : KMCompLight_pagination]?
  16. var select : [String : KMCompLight_select]?
  17. var slider : [String : KMCompLight_slider]?
  18. var stepper : [String : KMCompLight_stepper]?
  19. var badge : [String : KMCompLight_badge]?
  20. var card : [String : KMCompLight_card]?
  21. var collapse : [String : KMCompLight_collapse]?
  22. var list : [String : KMCompLight_list]?
  23. var progress : [String : KMCompLight_progress]?
  24. var segmented : [String : KMCompLight_segmented]?
  25. var tree : [String : KMCompLight_tree]?
  26. var alert : [String : KMCompLight_alert]?
  27. var drawer : [String : KMCompLight_drawer]?
  28. var notification : [String : KMCompLight_notification]?
  29. var table : [String : KMCompLight_table]?
  30. var divider : [String : KMCompLight_divider]?
  31. }
  32. // MARK: - btn
  33. class KMCompLight_btn: NSObject {
  34. var cta : [String: Any]?
  35. var brand : [String : Any]?
  36. var sec : [String : Any]?
  37. var ghost : [String : Any]?
  38. var link : [String : Any]?
  39. var upgrade : [String : Any]?
  40. var icon_fill : [String : Any]?
  41. var sec_icon : [String : Any]?
  42. }
  43. // MARK: - dropdown
  44. class KMCompLight_dropdown: NSObject {
  45. var s : [String : Any]?
  46. var m : [String : Any]?
  47. }
  48. // MARK: - navmenu
  49. class KMCompLight_navmenu: NSObject {
  50. var mac_text : [String : Any]?
  51. var base : [String : Any]?
  52. var has_icon : [String : Any]?
  53. var win_text : [String : Any]?
  54. }
  55. // MARK: - multiTab
  56. class KMCompLight_multiTab: NSObject {
  57. var bg : [String : Any]?
  58. var mac_text : [String : Any]?
  59. var win_text : [String : Any]?
  60. }
  61. // MARK: - checkboxRadio
  62. class KMCompLight_checkboxRadio: NSObject {
  63. var bg : [String : Any]?
  64. var mac_text : [String : Any]?
  65. var win_text : [String : Any]?
  66. }
  67. // MARK: - input
  68. class KMCompLight_input: NSObject {
  69. var m : [String : Any]?
  70. var tips : [String : Any]?
  71. var s : [String : Any]?
  72. }
  73. // MARK: - pagination
  74. class KMCompLight_pagination: NSObject {
  75. var simple : [String : Any]?
  76. var multiple : [String : Any]?
  77. }
  78. // MARK: - select
  79. class KMCompLight_select: NSObject {
  80. var s : [String : Any]?
  81. var m : [String : Any]?
  82. var simple : [String : Any]?
  83. }
  84. // MARK: - slider
  85. class KMCompLight_slider: NSObject {
  86. var knob : [String : Any]?
  87. var track : [String : Any]?
  88. var track_filled : [String : Any]?
  89. }
  90. // MARK: - stepper
  91. class KMCompLight_stepper: NSObject {
  92. var item_spacing : [String : Any]?
  93. var mac_text : [String : Any]?
  94. var bg : [String : Any]?
  95. var arrow : [String : Any]?
  96. var win_text : [String : Any]?
  97. }
  98. // MARK: - badge
  99. class KMCompLight_badge: NSObject {
  100. var dot : [String : Any]?
  101. var text : [String : Any]?
  102. }
  103. // MARK: - card
  104. class KMCompLight_card: NSObject {
  105. var has_desc : [String : Any]?
  106. var simple : [String : Any]?
  107. var mac_text : [String : Any]?
  108. var item_spacing : [String : Any]?
  109. var win_text : [String : Any]?
  110. }
  111. // MARK: - collapse
  112. class KMCompLight_collapse: NSObject {
  113. var ad_list : [String : Any]?
  114. var bota_list : [String : Any]?
  115. }
  116. // MARK: - list
  117. class KMCompLight_list: NSObject {
  118. var bookmark : [String : Any]?
  119. var markup_header : [String : Any]?
  120. var markup_note : [String : Any]?
  121. }
  122. // MARK: - progress
  123. class KMCompLight_progress: NSObject {
  124. var popup : [String : Any]?
  125. var loading : [String : Any]?
  126. }
  127. // MARK: - segmented
  128. class KMCompLight_segmented: NSObject {
  129. var bg : [String : Any]?
  130. var bg_item : [String : Any]?
  131. var mac_text : [String : Any]?
  132. var win_text : [String : Any]?
  133. }
  134. // MARK: - tree
  135. class KMCompLight_tree: NSObject {
  136. var base : [String : Any]?
  137. var mac_text : [String : Any]?
  138. var rename : [String : Any]?
  139. var has_arrow : [String : Any]?
  140. var win_text : [String : Any]?
  141. }
  142. // MARK: - alert
  143. class KMCompLight_alert: NSObject {
  144. var mac_text : [String : Any]?
  145. var win_text : [String : Any]?
  146. var bg : [String : Any]?
  147. var item_spacing : [String : Any]?
  148. }
  149. // MARK: - drawer
  150. class KMCompLight_drawer: NSObject {
  151. var bg : [String : Any]?
  152. var mac_text : [String : Any]?
  153. var win_text : [String : Any]?
  154. var item_spacing : [String : Any]?
  155. }
  156. // MARK: - notification
  157. class KMCompLight_notification: NSObject {
  158. var toast : [String : Any]?
  159. var modal : [String : Any]?
  160. }
  161. // MARK: - table
  162. class KMCompLight_table: NSObject {
  163. var header : [String : Any]?
  164. var mac_text : [String : Any]?
  165. var list : [String : Any]?
  166. var win_text : [String : Any]?
  167. }
  168. // MARK: - divider
  169. class KMCompLight_divider: NSObject {
  170. var horiz : [String : Any]?
  171. var vert : [String : Any]?
  172. }
  173. // MARK: - Child Node
  174. class KMCompLight_sizeNode: NSObject {
  175. var s : [String: Any] = [:]
  176. var m : [String: Any] = [:]
  177. var l : [String: Any] = [:]
  178. }
  179. class KMCompLight_tableListNode: NSObject {
  180. var file : [String: Any] = [:]
  181. var batch : [String: Any] = [:]
  182. }
  183. class KMCompLight_UIAttribute: NSObject {
  184. var mac_text : [String : Any] = [:]
  185. var bg : [String : Any] = [:]
  186. var win_text : [String : Any] = [:]
  187. var mac_text_title : [String : Any] = [:]
  188. var mac_text_desc : [String : Any] = [:]
  189. var win_text_title : [String : Any] = [:]
  190. var win_text_desc : [String : Any] = [:]
  191. var item_spacing : [String : Any] = [:]
  192. var progress_bar : [String : Any] = [:]
  193. var bg_item : [String : Any] = [:]
  194. var bg_text : [String : Any] = [:]
  195. var bg_field : [String : Any] = [:]
  196. }
  197. class KMCompLight_progressBar: NSObject {
  198. var track : [String : Any] = [:]
  199. var track_filled : [String : Any] = [:]
  200. }
  201. class KMCompLight_baseNode: NSObject {
  202. var parent : [String : Any] = [:]
  203. var children_lv2 : [String : Any] = [:]
  204. var children_lv3 : [String : Any] = [:]
  205. var children_lv4 : [String : Any] = [:]
  206. }
  207. class KMCompLight_valueType: NSObject {
  208. var value : [String : Any] = [:]
  209. var type : [String : String] = [:]
  210. }
  211. class KMCompLight_UIState: NSObject {
  212. var norm : [String : Any] = [:]
  213. var hov : [String : Any] = [:]
  214. var act : [String : Any] = [:]
  215. var dis : [String : Any] = [:]
  216. var sel : [String : Any] = [:]
  217. var placeholder : [String : Any] = [:]
  218. var focus : [String : Any] = [:]
  219. var error_def : [String : Any] = [:]
  220. var error_focus : [String : Any] = [:]
  221. var error : [String : Any] = [:]
  222. var none : [String : Any] = [:]
  223. var custom : [String : Any] = [:]
  224. var move : [String : Any] = [:]
  225. var change : [String : Any] = [:]
  226. var title : [String : Any] = [:]
  227. var desc : [String : Any] = [:]
  228. var unsel : [String : Any] = [:]
  229. var main : [String : Any] = [:]
  230. var def : [String : Any] = [:]
  231. var info : [String : Any] = [:]
  232. var warning : [String : Any] = [:]
  233. var item : [String : Any] = [:]
  234. var item1 : [String : Any] = [:]
  235. var item2 : [String : Any] = [:]
  236. var item3 : [String : Any] = [:]
  237. }
  238. class KMCompLight_UIValue: NSObject {
  239. var height : [String : String] = [:]
  240. var horizontalPadding : [String : String] = [:]
  241. var fill : [String : String] = [:]
  242. var typography : [String : String] = [:]
  243. var borderRadius : [String : String] = [:]
  244. var itemSpacing : [String : String] = [:]
  245. var borderWidth : [String : String] = [:]
  246. var border : [String : String] = [:]
  247. var borderRadiusTopLeft : [String : String] = [:]
  248. var borderRadiusTopRight : [String : String] = [:]
  249. var borderWidthBottom : [String : String] = [:]
  250. var boxShadow : [String : String] = [:]
  251. var paddingLeft : [String : String] = [:]
  252. var paddingRight : [String : String] = [:]
  253. var paddingTop : [String : String] = [:]
  254. var paddingBottom : [String : String] = [:]
  255. }
  256. // MARK: Cisdem PDFMaster 初版数据
  257. class KMDesignTokenValue: NSObject {
  258. var sizing : Any = "" // 控件大小,圆形控件
  259. var height : Any = "" // (常用)高度
  260. var width : Any = "" // (常用)宽度
  261. var spacing : Any = "" // (常用)组件内控件与边框 上下左右 距离
  262. var verticalPadding : Any = "" // (常用)组件内控件与边框 垂直(上下)距离
  263. var horizontalPadding : Any = "" // (常用)组件内控件与边框 水平(左右)距离
  264. var paddingTop : Any = "" // 组件内控件与边框 上 边距
  265. var paddingRight : Any = "" // 组件内控件与边框 右 边距
  266. var paddingBottom : Any = "" // 间距, 组件内控件与边框 下 边距
  267. var paddingLeft : Any = "" // 间距, 组件内控件与边框 左 边距
  268. var itemSpacing : Any = "" // 组件内多个控件间距,多个控件水平排列,属于水平间距;多个控件垂直排列,属于垂直间距
  269. var fill : Any = "" // (常用)填充颜色
  270. var border : Any = "" // (常用)边框属性合集,包括边框颜色、边框宽度、边框样式(虚线/直线)
  271. var borderColor : Any = "" // (常用)边框颜色
  272. var borderTop : Any = "" // 上边框颜色
  273. var borderRight : Any = "" // 右边框颜色
  274. var borderBottom : Any = "" // 下边框颜色
  275. var borderLeft : Any = "" // 左边框颜色
  276. var borderRadius : Any = "" // (常用)圆角大小
  277. var borderRadiusTopLeft : Any = "" // 左上圆角大小
  278. var borderRadiusTopRight : Any = "" // 右上圆角大小
  279. var borderRadiusBottomRight : Any = "" // 右下圆角大小
  280. var borderRadiusBottomLeft : Any = "" // 左下圆角大小
  281. var borderWidth : Any = "" // (常用)边框宽度
  282. var borderWidthTop : Any = "" // 上边框宽度
  283. var borderWidthRight : Any = "" // 右边框宽度
  284. var borderWidthBottom : Any = "" // 下边框宽度
  285. var borderWidthLeft : Any = "" // 左边框宽度
  286. var boxShadow : Any = "" // 包含x/y 倾斜度、blur(模糊间距)
  287. var typography : Any = "" // (常用)字体合集,包含字体/大小/字重/行高
  288. }