@aplus-frontend/ui 7.5.0 → 7.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/es/index.mjs +200 -198
  2. package/es/src/ag-grid/editable/form-item.vue.mjs +14 -14
  3. package/es/src/ag-grid/editable/index.vue.mjs +20 -20
  4. package/es/src/ag-grid/hooks/use-columns-def.mjs +32 -31
  5. package/es/src/ag-grid/hooks/use-editable-api.mjs +9 -8
  6. package/es/src/ag-grid/hooks/use-editable-columns.mjs +26 -25
  7. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +11 -10
  8. package/es/src/ag-grid/index.vue.mjs +37 -36
  9. package/es/src/ag-grid/renderer/number.mjs +7 -7
  10. package/es/src/ag-grid/style/custom-header.mjs +3 -3
  11. package/es/src/ag-grid/style/index.mjs +1 -1
  12. package/es/src/ap-action/style/index.mjs +1 -1
  13. package/es/src/ap-drawer/style/index.mjs +12 -12
  14. package/es/src/ap-field/date/index.vue.mjs +14 -14
  15. package/es/src/ap-field/date/read.vue2.mjs +3 -3
  16. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  17. package/es/src/ap-field/date-range/read.vue2.mjs +3 -3
  18. package/es/src/ap-field/hooks/use-default-placeholder.mjs +5 -4
  19. package/es/src/ap-field/number/helper.mjs +1 -1
  20. package/es/src/ap-field/number/index.vue.mjs +9 -9
  21. package/es/src/ap-field/number/read.vue2.mjs +5 -5
  22. package/es/src/ap-field/style/checkbox.d.ts +2 -2
  23. package/es/src/ap-field/style/number.d.ts +2 -2
  24. package/es/src/ap-field/style/radio.d.ts +2 -2
  25. package/es/src/ap-field/style/textarea.d.ts +2 -2
  26. package/es/src/ap-field/switch/index.vue.mjs +4 -3
  27. package/es/src/ap-form/ap-form.vue2.mjs +18 -17
  28. package/es/src/ap-form/item/index.vue.mjs +6 -6
  29. package/es/src/ap-form/item-group/helper.mjs +8 -7
  30. package/es/src/ap-form/item-group/index.vue.mjs +15 -14
  31. package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
  32. package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
  33. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  34. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  35. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  36. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  37. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +24 -22
  38. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
  39. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +9 -8
  40. package/es/src/ap-form/search-form/index.vue.mjs +12 -11
  41. package/es/src/ap-form/set/index.vue.mjs +1 -1
  42. package/es/src/ap-form/style/item.mjs +15 -15
  43. package/es/src/ap-form/style/modal-form.mjs +2 -1
  44. package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
  45. package/es/src/ap-form/style/search-form.d.ts +7 -1
  46. package/es/src/ap-form/style/search-form.mjs +37 -34
  47. package/es/src/ap-grid/editable/form-item.vue.mjs +11 -10
  48. package/es/src/ap-grid/editable/index.vue.mjs +42 -41
  49. package/es/src/ap-grid/index.vue.mjs +14 -13
  50. package/es/src/ap-grid/style/editable.mjs +7 -7
  51. package/es/src/ap-grid/style/index.mjs +11 -11
  52. package/es/src/ap-grid/utils/table.mjs +14 -13
  53. package/es/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  54. package/es/src/ap-list/hooks/use-offline-list.mjs +13 -12
  55. package/es/src/ap-list/style/index.mjs +1 -1
  56. package/es/src/ap-pro-card/style/divider.mjs +2 -2
  57. package/es/src/ap-pro-card/style/index.mjs +14 -14
  58. package/es/src/ap-pro-card/style/operation.mjs +1 -2
  59. package/es/src/ap-pro-card/style/statistic.mjs +12 -12
  60. package/es/src/ap-pro-card/style/statistics-card.mjs +13 -13
  61. package/es/src/ap-pro-card/style/title.mjs +13 -33
  62. package/es/src/ap-table/ap-table.vue2.mjs +4 -3
  63. package/es/src/ap-table/constants.d.ts +5 -5
  64. package/es/src/ap-table/hooks/use-table-column-state.mjs +23 -22
  65. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  66. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +4 -3
  67. package/es/src/ap-table/style/index-comp.d.ts +2 -1
  68. package/es/src/ap-table/style/index-comp.mjs +15 -12
  69. package/es/src/ap-table/style/index.d.ts +3 -0
  70. package/es/src/ap-table/style/index.mjs +14 -11
  71. package/es/src/ap-table/style/setting.d.ts +2 -1
  72. package/es/src/ap-table/style/setting.mjs +73 -61
  73. package/es/src/ap-table/utils.mjs +61 -62
  74. package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +15 -15
  75. package/es/src/business/ag-grid-modal/style/index.d.ts +3 -0
  76. package/es/src/business/ag-grid-modal/style/index.mjs +24 -20
  77. package/es/src/business/ag-grid-modal/style/selected-items.mjs +8 -8
  78. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +26 -27
  79. package/es/src/business/ap-appendix/style/index.mjs +20 -21
  80. package/es/src/business/ap-attachment/style/index.d.ts +6 -0
  81. package/es/src/business/ap-attachment/style/index.mjs +28 -25
  82. package/es/src/business/ap-batch-action/style/index.d.ts +2 -2
  83. package/es/src/business/ap-batch-action/style/index.mjs +18 -18
  84. package/es/src/business/ap-card/style/index.d.ts +2 -2
  85. package/es/src/business/ap-card/style/index.mjs +8 -8
  86. package/es/src/business/ap-copy/style/index.mjs +16 -22
  87. package/es/src/business/ap-descriptions/formatter/index.mjs +1 -1
  88. package/es/src/business/ap-descriptions/style/index.mjs +8 -6
  89. package/es/src/business/ap-download/style/index.mjs +4 -4
  90. package/es/src/business/ap-draggable-grid/style/index.mjs +7 -7
  91. package/es/src/business/ap-expand-alert/style/index.mjs +30 -26
  92. package/es/src/business/ap-image/style/index.d.ts +2 -2
  93. package/es/src/business/ap-image/style/index.mjs +8 -7
  94. package/es/src/business/ap-input-radio/style/index.mjs +1 -1
  95. package/es/src/business/ap-label/style/index.d.ts +14 -0
  96. package/es/src/business/ap-label/style/index.mjs +29 -19
  97. package/es/src/business/ap-ladder/style/index.mjs +7 -6
  98. package/es/src/business/ap-product-info/style/index.d.ts +10 -0
  99. package/es/src/business/ap-product-info/style/index.mjs +35 -28
  100. package/es/src/business/ap-radio-group/style/index.mjs +3 -3
  101. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +6 -6
  102. package/es/src/business/ap-select-layout/style/index.d.ts +6 -0
  103. package/es/src/business/ap-select-layout/style/index.mjs +59 -53
  104. package/es/src/business/ap-size-input/style/index.mjs +3 -3
  105. package/es/src/business/ap-status/style/index.mjs +1 -1
  106. package/es/src/business/ap-summary/style/index.d.ts +10 -0
  107. package/es/src/business/ap-summary/style/index.mjs +18 -11
  108. package/es/src/business/ap-table-modal/style/index.d.ts +11 -1
  109. package/es/src/business/ap-table-modal/style/index.mjs +17 -12
  110. package/es/src/business/ap-tag/ap-tag-group.vue.mjs +2 -2
  111. package/es/src/business/ap-tag/style/index.mjs +33 -31
  112. package/es/src/business/ap-title/style/index.d.ts +2 -1
  113. package/es/src/business/ap-title/style/index.mjs +41 -49
  114. package/es/src/business/ap-upload/style/index.mjs +10 -5
  115. package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  116. package/es/src/business/ap-upload/style/multiple-file.mjs +8 -7
  117. package/es/src/business/ap-upload/style/picture.d.ts +3 -2
  118. package/es/src/business/ap-upload/style/picture.mjs +26 -26
  119. package/es/src/business/ap-upload/style/single-file.d.ts +3 -2
  120. package/es/src/business/ap-upload/style/single-file.mjs +30 -29
  121. package/es/src/business/ap-upload/style/token.d.ts +19 -0
  122. package/es/src/business/ap-upload/style/token.mjs +9 -0
  123. package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  124. package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +51 -42
  125. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  126. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  127. package/es/src/business/ap-value-select-card/style/index.mjs +45 -43
  128. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +14 -14
  129. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +35 -34
  130. package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
  131. package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
  132. package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
  133. package/es/src/business/ap-view/style/index.d.ts +6 -2
  134. package/es/src/business/ap-view/style/index.mjs +43 -35
  135. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  136. package/es/src/business/batch-input-group/index.vue.mjs +23 -22
  137. package/es/src/business/batch-input-group/style/index.mjs +2 -2
  138. package/es/src/check-card/style/index.mjs +17 -17
  139. package/es/src/design-token/constants.mjs +9 -1
  140. package/es/src/design-token/interface.d.ts +139 -12
  141. package/es/src/editable-table/form-item.vue.mjs +4 -3
  142. package/es/src/editable-table/index.vue.mjs +4 -3
  143. package/es/src/editable-table/style/index.mjs +11 -11
  144. package/es/src/editable-table/utils.d.ts +1 -1
  145. package/es/src/editable-table/utils.mjs +27 -26
  146. package/es/src/highlight/index.d.ts +3 -0
  147. package/es/src/highlight/index.mjs +2 -0
  148. package/es/src/highlight/index.vue.d.ts +31 -0
  149. package/es/src/highlight/index.vue.mjs +49 -0
  150. package/es/src/highlight/index.vue2.mjs +4 -0
  151. package/es/src/highlight/interface.d.ts +14 -0
  152. package/es/src/highlight/interface.mjs +1 -0
  153. package/es/src/highlight/style/index.d.ts +8 -0
  154. package/es/src/highlight/style/index.mjs +23 -0
  155. package/es/src/hooks/useMessage.mjs +4 -4
  156. package/es/src/index.d.ts +1 -0
  157. package/es/src/index.mjs +296 -293
  158. package/es/src/loading-bar/index.vue2.mjs +4 -3
  159. package/es/src/loading-bar/style/index.mjs +10 -10
  160. package/es/src/scroll-view/hooks/use-scroll-smooth.mjs +10 -9
  161. package/es/src/scroll-view/index.vue.mjs +4 -3
  162. package/es/src/splitter/style/index.mjs +11 -11
  163. package/es/src/text/index.vue.mjs +8 -7
  164. package/es/src/time-ago/index.vue.mjs +17 -16
  165. package/es/src/time-ago/useTimeAgo.mjs +31 -30
  166. package/es/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  167. package/es/src/utils/cssinjs/TokenUtil.mjs +3 -0
  168. package/es/src/utils/decimal.d.ts +36 -0
  169. package/es/src/utils/decimal.mjs +45 -0
  170. package/es/src/utils/format.d.ts +21 -0
  171. package/es/src/utils/format.mjs +32 -0
  172. package/es/src/utils/index.d.ts +2 -1
  173. package/es/src/utils/index.mjs +20 -22
  174. package/es/src/utils/is.d.ts +54 -0
  175. package/es/src/utils/is.mjs +26 -0
  176. package/es/src/utils/slot.mjs +1 -2
  177. package/es/src/version.d.ts +1 -1
  178. package/es/src/version.mjs +1 -1
  179. package/lib/index.js +1 -1
  180. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  181. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  182. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  183. package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
  184. package/lib/src/ag-grid/hooks/use-editable-columns.js +1 -1
  185. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  186. package/lib/src/ag-grid/index.vue.js +1 -1
  187. package/lib/src/ag-grid/renderer/number.js +1 -1
  188. package/lib/src/ag-grid/style/custom-header.js +1 -1
  189. package/lib/src/ag-grid/style/index.js +1 -1
  190. package/lib/src/ap-action/style/index.js +1 -1
  191. package/lib/src/ap-drawer/style/index.js +1 -1
  192. package/lib/src/ap-field/date/index.vue.js +1 -1
  193. package/lib/src/ap-field/date/read.vue2.js +1 -1
  194. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  195. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  196. package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
  197. package/lib/src/ap-field/number/helper.js +1 -1
  198. package/lib/src/ap-field/number/index.vue.js +1 -1
  199. package/lib/src/ap-field/number/read.vue2.js +1 -1
  200. package/lib/src/ap-field/style/checkbox.d.ts +2 -2
  201. package/lib/src/ap-field/style/number.d.ts +2 -2
  202. package/lib/src/ap-field/style/radio.d.ts +2 -2
  203. package/lib/src/ap-field/style/textarea.d.ts +2 -2
  204. package/lib/src/ap-field/switch/index.vue.js +1 -1
  205. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  206. package/lib/src/ap-form/item/index.vue.js +1 -1
  207. package/lib/src/ap-form/item-group/helper.js +1 -1
  208. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  209. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
  210. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
  211. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  212. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  213. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  214. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  215. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  216. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  217. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  218. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  219. package/lib/src/ap-form/set/index.vue.js +1 -1
  220. package/lib/src/ap-form/style/item.js +1 -1
  221. package/lib/src/ap-form/style/modal-form.js +1 -1
  222. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  223. package/lib/src/ap-form/style/search-form.d.ts +7 -1
  224. package/lib/src/ap-form/style/search-form.js +1 -1
  225. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  226. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  227. package/lib/src/ap-grid/index.vue.js +1 -1
  228. package/lib/src/ap-grid/style/editable.js +1 -1
  229. package/lib/src/ap-grid/style/index.js +1 -1
  230. package/lib/src/ap-grid/utils/table.js +1 -1
  231. package/lib/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  232. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  233. package/lib/src/ap-list/style/index.js +1 -1
  234. package/lib/src/ap-pro-card/style/divider.js +1 -1
  235. package/lib/src/ap-pro-card/style/index.js +1 -1
  236. package/lib/src/ap-pro-card/style/operation.js +1 -1
  237. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  238. package/lib/src/ap-pro-card/style/statistics-card.js +1 -1
  239. package/lib/src/ap-pro-card/style/title.js +1 -1
  240. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  241. package/lib/src/ap-table/constants.d.ts +5 -5
  242. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  243. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  244. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  245. package/lib/src/ap-table/style/index-comp.d.ts +2 -1
  246. package/lib/src/ap-table/style/index-comp.js +1 -1
  247. package/lib/src/ap-table/style/index.d.ts +3 -0
  248. package/lib/src/ap-table/style/index.js +1 -1
  249. package/lib/src/ap-table/style/setting.d.ts +2 -1
  250. package/lib/src/ap-table/style/setting.js +1 -1
  251. package/lib/src/ap-table/utils.js +1 -1
  252. package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
  253. package/lib/src/business/ag-grid-modal/style/index.d.ts +3 -0
  254. package/lib/src/business/ag-grid-modal/style/index.js +1 -1
  255. package/lib/src/business/ag-grid-modal/style/selected-items.js +1 -1
  256. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  257. package/lib/src/business/ap-appendix/style/index.js +1 -1
  258. package/lib/src/business/ap-attachment/style/index.d.ts +6 -0
  259. package/lib/src/business/ap-attachment/style/index.js +1 -1
  260. package/lib/src/business/ap-batch-action/style/index.d.ts +2 -2
  261. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  262. package/lib/src/business/ap-card/style/index.d.ts +2 -2
  263. package/lib/src/business/ap-card/style/index.js +1 -1
  264. package/lib/src/business/ap-copy/style/index.js +1 -1
  265. package/lib/src/business/ap-descriptions/formatter/index.js +1 -1
  266. package/lib/src/business/ap-descriptions/style/index.js +1 -1
  267. package/lib/src/business/ap-download/style/index.js +1 -1
  268. package/lib/src/business/ap-draggable-grid/style/index.js +1 -1
  269. package/lib/src/business/ap-expand-alert/style/index.js +1 -1
  270. package/lib/src/business/ap-image/style/index.d.ts +2 -2
  271. package/lib/src/business/ap-image/style/index.js +1 -1
  272. package/lib/src/business/ap-input-radio/style/index.js +1 -1
  273. package/lib/src/business/ap-label/style/index.d.ts +14 -0
  274. package/lib/src/business/ap-label/style/index.js +1 -1
  275. package/lib/src/business/ap-ladder/style/index.js +1 -1
  276. package/lib/src/business/ap-product-info/style/index.d.ts +10 -0
  277. package/lib/src/business/ap-product-info/style/index.js +1 -1
  278. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  279. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  280. package/lib/src/business/ap-select-layout/style/index.d.ts +6 -0
  281. package/lib/src/business/ap-select-layout/style/index.js +1 -1
  282. package/lib/src/business/ap-size-input/style/index.js +1 -1
  283. package/lib/src/business/ap-status/style/index.js +1 -1
  284. package/lib/src/business/ap-summary/style/index.d.ts +10 -0
  285. package/lib/src/business/ap-summary/style/index.js +1 -1
  286. package/lib/src/business/ap-table-modal/style/index.d.ts +11 -1
  287. package/lib/src/business/ap-table-modal/style/index.js +1 -1
  288. package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
  289. package/lib/src/business/ap-tag/style/index.js +1 -1
  290. package/lib/src/business/ap-title/style/index.d.ts +2 -1
  291. package/lib/src/business/ap-title/style/index.js +1 -1
  292. package/lib/src/business/ap-upload/style/index.js +1 -1
  293. package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  294. package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
  295. package/lib/src/business/ap-upload/style/picture.d.ts +3 -2
  296. package/lib/src/business/ap-upload/style/picture.js +1 -1
  297. package/lib/src/business/ap-upload/style/single-file.d.ts +3 -2
  298. package/lib/src/business/ap-upload/style/single-file.js +1 -1
  299. package/lib/src/business/ap-upload/style/token.d.ts +19 -0
  300. package/lib/src/business/ap-upload/style/token.js +1 -0
  301. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  302. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
  303. package/lib/src/business/ap-upload-file/icon/delete-icon.vue.js +1 -1
  304. package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
  305. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  306. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  307. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  308. package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -1
  309. package/lib/src/business/ap-view/icons/line-down.vue.js +1 -1
  310. package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -1
  311. package/lib/src/business/ap-view/style/index.d.ts +6 -2
  312. package/lib/src/business/ap-view/style/index.js +1 -1
  313. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  314. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  315. package/lib/src/business/batch-input-group/style/index.js +1 -1
  316. package/lib/src/check-card/style/index.js +1 -1
  317. package/lib/src/design-token/constants.js +1 -1
  318. package/lib/src/design-token/interface.d.ts +139 -12
  319. package/lib/src/editable-table/form-item.vue.js +1 -1
  320. package/lib/src/editable-table/index.vue.js +1 -1
  321. package/lib/src/editable-table/style/index.js +1 -1
  322. package/lib/src/editable-table/utils.d.ts +1 -1
  323. package/lib/src/editable-table/utils.js +1 -1
  324. package/lib/src/highlight/index.d.ts +3 -0
  325. package/lib/src/highlight/index.js +1 -0
  326. package/lib/src/highlight/index.vue.d.ts +31 -0
  327. package/lib/src/highlight/index.vue.js +1 -0
  328. package/lib/src/highlight/index.vue2.js +1 -0
  329. package/lib/src/highlight/interface.d.ts +14 -0
  330. package/lib/src/highlight/interface.js +1 -0
  331. package/lib/src/highlight/style/index.d.ts +8 -0
  332. package/lib/src/highlight/style/index.js +1 -0
  333. package/lib/src/hooks/useMessage.js +1 -1
  334. package/lib/src/index.d.ts +1 -0
  335. package/lib/src/index.js +1 -1
  336. package/lib/src/loading-bar/index.vue2.js +1 -1
  337. package/lib/src/loading-bar/style/index.js +3 -3
  338. package/lib/src/scroll-view/hooks/use-scroll-smooth.js +1 -1
  339. package/lib/src/scroll-view/index.vue.js +1 -1
  340. package/lib/src/splitter/style/index.js +1 -1
  341. package/lib/src/text/index.vue.js +1 -1
  342. package/lib/src/time-ago/index.vue.js +1 -1
  343. package/lib/src/time-ago/useTimeAgo.js +1 -1
  344. package/lib/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  345. package/lib/src/utils/cssinjs/TokenUtil.js +1 -1
  346. package/lib/src/utils/decimal.d.ts +36 -0
  347. package/lib/src/utils/decimal.js +1 -0
  348. package/lib/src/utils/format.d.ts +21 -0
  349. package/lib/src/utils/format.js +1 -0
  350. package/lib/src/utils/index.d.ts +2 -1
  351. package/lib/src/utils/index.js +1 -1
  352. package/lib/src/utils/is.d.ts +54 -0
  353. package/lib/src/utils/is.js +1 -0
  354. package/lib/src/utils/slot.js +1 -1
  355. package/lib/src/version.d.ts +1 -1
  356. package/lib/src/version.js +1 -1
  357. package/package.json +6 -6
  358. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  359. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +0 -18
  360. package/es/src/utils/copy-text-to-clipboard.d.ts +0 -1
  361. package/es/src/utils/tree.d.ts +0 -38
  362. package/es/src/utils/uuid.d.ts +0 -2
  363. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  364. package/lib/src/business/ap-appendix/icons/file-icon.vue.js +0 -1
  365. package/lib/src/utils/copy-text-to-clipboard.d.ts +0 -1
  366. package/lib/src/utils/tree.d.ts +0 -38
  367. package/lib/src/utils/uuid.d.ts +0 -2
@@ -1,2 +1,3 @@
1
- import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
2
- export declare const pictureStyle: GenStyleFunc<BaseToken>;
1
+ import { GenStyleFunc } from '../../../design-token/interface';
2
+ import { ApUploadToken } from './token';
3
+ export declare const pictureStyle: GenStyleFunc<ApUploadToken>;
@@ -1,10 +1,10 @@
1
- const r = (o) => {
2
- const { componentCls: t } = o;
1
+ const o = (i) => {
2
+ const { componentCls: r } = i;
3
3
  return {
4
- [`${t}-picture`]: {
4
+ [`${r}-picture`]: {
5
5
  ".picture-context": {
6
6
  display: "grid",
7
- gap: "16px",
7
+ gap: i.spaceXL,
8
8
  gridTemplateColumns: "repeat(auto-fill, 100px)",
9
9
  userSelect: "none",
10
10
  ".picture-upload": {
@@ -14,36 +14,36 @@ const r = (o) => {
14
14
  justifyContent: "center",
15
15
  width: "100px",
16
16
  overflow: "hidden",
17
- transition: "all 0.2s",
18
- border: `1px dashed ${o.borderColorBase}`,
19
- borderRadius: "4px",
20
- background: o.colorBgLayout,
21
- color: o.textColor4,
22
- fontSize: "16px",
17
+ transition: `all ${i.motionDurationMid}`,
18
+ border: `${i.lineWidth} dashed ${i.borderColorBase}`,
19
+ borderRadius: i.borderRadius,
20
+ background: i.colorBgLayout,
21
+ color: i.textColor4,
22
+ fontSize: i.fontSizeXL,
23
23
  cursor: "pointer",
24
24
  aspectRatio: "1 / 1",
25
- "& > * + *": { marginTop: "4px", fontSize: o.fontSize },
25
+ "& > * + *": { marginTop: i.spaceXS, fontSize: i.fontSize },
26
26
  "&:hover": {
27
- border: `1px dashed ${o.colorPrimary}`
27
+ border: `${i.lineWidth} dashed ${i.colorPrimary}`
28
28
  }
29
29
  },
30
30
  ".picture-item": {
31
- width: "100px",
32
- padding: "8px",
31
+ width: i.apUploadPictureItemWidth,
32
+ padding: i.space,
33
33
  overflow: "hidden",
34
- border: `1px solid ${o.borderColorBase}`,
35
- borderRadius: "4px",
34
+ border: `${i.lineWidth} ${i.lineType} ${i.borderColorBase}`,
35
+ borderRadius: i.borderRadius,
36
36
  background: "#fff",
37
37
  aspectRatio: "1 / 1",
38
38
  ".picture-item-box": {
39
39
  position: "relative",
40
40
  width: "100%",
41
41
  height: "100%",
42
- borderRadius: "2px",
42
+ borderRadius: i.borderRadiusSM,
43
43
  "& > img": {
44
44
  width: "100%",
45
45
  height: "100%",
46
- borderRadius: "2px",
46
+ borderRadius: i.borderRadiusSM,
47
47
  objectFit: "cover"
48
48
  },
49
49
  "&:hover > .picture-item-shadow": {
@@ -55,10 +55,10 @@ const r = (o) => {
55
55
  left: 0,
56
56
  width: "100%",
57
57
  height: "100%",
58
- borderRadius: "2px",
58
+ borderRadius: i.borderRadiusSM,
59
59
  background: "rgb(0 0 0 / 50%)",
60
60
  color: "#fff",
61
- fontSize: o.fontSize,
61
+ fontSize: i.fontSize,
62
62
  ".picture-item-close": {
63
63
  display: "flex",
64
64
  position: "absolute",
@@ -66,14 +66,14 @@ const r = (o) => {
66
66
  right: 0,
67
67
  alignItems: "center",
68
68
  justifyContent: "center",
69
- width: "16px",
69
+ width: i.apUploadPictureCloseIconWidth,
70
70
  overflow: "hidden",
71
71
  transform: "translate(30%, -30%)",
72
- border: "1px solid #fff",
72
+ border: `${i.lineWidth} ${i.lineType} #fff`,
73
73
  borderRadius: "50%",
74
- background: o.colorError,
74
+ background: i.colorError,
75
75
  color: "#fff",
76
- fontSize: "10px",
76
+ fontSize: i.fontSizeSM,
77
77
  cursor: "pointer",
78
78
  aspectRatio: "1 / 1"
79
79
  },
@@ -91,12 +91,12 @@ const r = (o) => {
91
91
  },
92
92
  ".picture-title": {
93
93
  marginTop: "8px",
94
- color: o.textColor3,
94
+ color: i.textColor3,
95
95
  fontSize: "12px"
96
96
  }
97
97
  }
98
98
  };
99
99
  };
100
100
  export {
101
- r as pictureStyle
101
+ o as pictureStyle
102
102
  };
@@ -1,2 +1,3 @@
1
- import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
2
- export declare const singleFileStyle: GenStyleFunc<BaseToken>;
1
+ import { GenStyleFunc } from '../../../design-token/interface';
2
+ import { ApUploadToken } from './token';
3
+ export declare const singleFileStyle: GenStyleFunc<ApUploadToken>;
@@ -1,17 +1,17 @@
1
- const t = (e) => {
2
- const { componentCls: i } = e, r = `${i}-single-file`;
1
+ const l = (i) => {
2
+ const { componentCls: r } = i, e = `${r}-single-file`;
3
3
  return {
4
- [r]: {
4
+ [e]: {
5
5
  display: "flex",
6
6
  alignItems: "center",
7
7
  justifyContent: "center",
8
8
  width: "100%",
9
- height: "200px",
9
+ height: i.apUploadSingleFileContainerHeight,
10
10
  overflow: "hidden",
11
- transition: "all 0.3s",
12
- border: `1px dashed ${e.borderColorBase}`,
13
- borderRadius: "4px",
14
- background: "#f2f6f9",
11
+ transition: `all ${i.motionDurationSlow}`,
12
+ border: `${i.lineWidth} dashed ${i.borderColorBase}`,
13
+ borderRadius: i.borderRadius,
14
+ background: i.colorBgLayout,
15
15
  userSelect: "none",
16
16
  "& > div": {
17
17
  display: "flex",
@@ -22,19 +22,19 @@ const t = (e) => {
22
22
  flexDirection: "column",
23
23
  ".state-un-icon": {
24
24
  display: "block",
25
- width: "56px"
25
+ width: i.apUploadSingleFileIconHeight
26
26
  },
27
27
  ".state-un-title": {
28
- marginTop: "10px",
29
- color: e.textColor1,
30
- fontSize: e.fontSizeLG,
31
- lineHeight: e.lineHeightLG
28
+ marginTop: i.spaceMD,
29
+ color: i.textColor1,
30
+ fontSize: i.fontSizeLG,
31
+ lineHeight: i.lineHeightLG
32
32
  },
33
33
  ".state-un-subtitle": {
34
- marginTop: "4px",
35
- color: e.textColor4,
36
- fontSize: "12px",
37
- lineHeight: "18px"
34
+ marginTop: i.spaceXS,
35
+ color: i.textColor4,
36
+ fontSize: i.fontSize,
37
+ lineHeight: i.lineHeight
38
38
  }
39
39
  },
40
40
  ".state-ing": {
@@ -42,13 +42,14 @@ const t = (e) => {
42
42
  alignItems: "center",
43
43
  width: "min(516px, 77.24%)",
44
44
  height: "96px",
45
- padding: "0 24px",
46
- borderRadius: "4px",
45
+ paddingBlock: 0,
46
+ paddingInline: i.spaceXXL,
47
+ borderRadius: i.borderRadius,
47
48
  background: "#fff",
48
49
  ".left": {
49
50
  flexShrink: 0,
50
51
  width: "48px",
51
- marginRight: "16px",
52
+ marginRight: i.spaceXL,
52
53
  img: {
53
54
  display: "block",
54
55
  width: "100%"
@@ -59,13 +60,13 @@ const t = (e) => {
59
60
  ".center-title": {
60
61
  display: "-webkit-box",
61
62
  overflow: "hidden",
62
- fontSize: "14px",
63
+ fontSize: i.fontSizeLG,
63
64
  textAlign: "start",
64
65
  textOverflow: "ellipsis",
65
66
  wordWrap: "break-word",
66
67
  wordBreak: "break-all",
67
68
  WebkitBoxOrient: "vertical",
68
- WebkitLineClamp: 2
69
+ WebkitLineClamp: i.lineClamp
69
70
  },
70
71
  ".center-progress ": {
71
72
  ".ant-progress-line": {
@@ -76,22 +77,22 @@ const t = (e) => {
76
77
  },
77
78
  ".right": {
78
79
  flexShrink: 0,
79
- marginLeft: "24px",
80
- color: e.colorError,
81
- fontSize: "20px",
80
+ marginLeft: i.spaceXXL,
81
+ color: i.colorError,
82
+ fontSize: i.fontSizeXXL,
82
83
  cursor: "pointer !important"
83
84
  }
84
85
  }
85
86
  },
86
- [`${r}-un`]: {
87
+ [`${e}-un`]: {
87
88
  cursor: "pointer",
88
89
  "&:hover": {
89
- border: `1px dashed ${e.colorPrimary}`,
90
- background: `color-mix(in srgb, ${e.colorPrimary} 10%, transparent)`
90
+ border: `${i.lineWidth} dashed ${i.colorPrimary}`,
91
+ background: `color-mix(in srgb, ${i.colorPrimary} 10%, transparent)`
91
92
  }
92
93
  }
93
94
  };
94
95
  };
95
96
  export {
96
- t as singleFileStyle
97
+ l as singleFileStyle
97
98
  };
@@ -0,0 +1,19 @@
1
+ export type ApUploadToken = {
2
+ /**
3
+ * 单选上传组件外部容器高度
4
+ */
5
+ apUploadSingleFileContainerHeight: number;
6
+ /**
7
+ * 单选上传组件上传图标的高度
8
+ */
9
+ apUploadSingleFileIconHeight: number;
10
+ /**
11
+ * 卡片上传组件项宽度
12
+ */
13
+ apUploadPictureItemWidth: number;
14
+ /**
15
+ * 卡片上传组件项删除按钮宽度
16
+ */
17
+ apUploadPictureCloseIconWidth: number;
18
+ };
19
+ export declare const defaultValue: ApUploadToken;
@@ -0,0 +1,9 @@
1
+ const e = {
2
+ apUploadSingleFileContainerHeight: 200,
3
+ apUploadSingleFileIconHeight: 56,
4
+ apUploadPictureItemWidth: 100,
5
+ apUploadPictureCloseIconWidth: 16
6
+ };
7
+ export {
8
+ e as defaultValue
9
+ };
@@ -1,5 +1,27 @@
1
- import { BaseToken, GenStyleFunc } from '../../../../design-token/interface';
1
+ import { GenStyleFunc } from '../../../../design-token/interface';
2
2
  import { ComputedRef } from 'vue';
3
- export declare const genProCardStyle: GenStyleFunc<BaseToken>;
3
+ export type ApUploadSingleToken = {
4
+ /**
5
+ * 单文件上传容器高度
6
+ */
7
+ apUploadSingleContainerHeight: number;
8
+ /**
9
+ * 单文件上传文件卡片高度
10
+ */
11
+ apUploadSingleItemHeight: number;
12
+ /**
13
+ * 单文件上传容器文件图标尺寸
14
+ */
15
+ apUploadSingleContainerFileIconSize: number;
16
+ /**
17
+ * 单文件上传卡片左侧文件图标尺寸
18
+ */
19
+ apUploadSingleItemFileIconSize: number;
20
+ /**
21
+ * 单文件上传卡片删除按钮尺寸
22
+ */
23
+ apUploadSingleItemDeleteIconSize: number;
24
+ };
25
+ export declare const genProCardStyle: GenStyleFunc<ApUploadSingleToken>;
4
26
  declare const _default: (prefixCls: string) => ComputedRef<string>;
5
27
  export default _default;
@@ -1,16 +1,16 @@
1
- import { genComponentStyleHook as t } from "../../../../utils/cssinjs/index.mjs";
2
- const n = (o) => {
3
- const { componentCls: e } = o;
1
+ import { genComponentStyleHook as o } from "../../../../utils/cssinjs/index.mjs";
2
+ const a = (e) => {
3
+ const { componentCls: r } = e;
4
4
  return {
5
- [e]: {
5
+ [r]: {
6
6
  userSelect: "none",
7
7
  ".ant-upload-drag": {
8
- background: "#F2F6F9",
9
- border: "1px dashed var(--ap-border-color-base)",
10
- height: "200px",
8
+ background: e.colorBgLayout,
9
+ border: `${e.lineWidth} dashed var(--ap-border-color-base)`,
10
+ height: e.apUploadSingleContainerHeight,
11
11
  "&:not(.ant-upload-disabled):hover": {
12
- background: "rgba(0, 112, 255, 0.1)",
13
- borderColor: "#0070ff"
12
+ background: `color-mix(in srgb, ${e.colorPrimary} 10%, transparent)`,
13
+ borderColor: e.colorPrimary
14
14
  },
15
15
  ".ant-upload-btn": {
16
16
  padding: 0
@@ -19,25 +19,26 @@ const n = (o) => {
19
19
  cursor: "default"
20
20
  }
21
21
  },
22
- [`${e}__content`]: {
22
+ [`${r}__content`]: {
23
23
  display: "flex",
24
24
  justifyContent: "center",
25
25
  alignItems: "center",
26
26
  height: "100%"
27
27
  },
28
- [`${e}__content-file`]: {
28
+ [`${r}__content-file`]: {
29
29
  width: "min(516px, 77.24%)",
30
- height: "96px",
31
- background: "#FFFFFF",
32
- borderRadius: "4px",
30
+ height: e.apUploadSingleItemHeight,
31
+ background: "#fff",
32
+ borderRadius: e.borderRadius,
33
33
  display: "flex",
34
34
  alignItems: "center",
35
- padding: "0 24px",
35
+ paddingInline: e.spaceXXL,
36
+ paddingBlock: 0,
36
37
  "&-icon": {
37
38
  flexShrink: 0,
38
- marginRight: "16px",
39
+ marginRight: e.spaceXL,
39
40
  svg: {
40
- width: "48px"
41
+ width: e.apUploadSingleItemFileIconSize
41
42
  }
42
43
  },
43
44
  "&-name": {
@@ -51,16 +52,16 @@ const n = (o) => {
51
52
  },
52
53
  "&-delete": {
53
54
  flexShrink: 0,
54
- marginLeft: "24px",
55
+ marginLeft: e.spaceXXL,
55
56
  svg: {
56
- width: "20px",
57
- color: "#FF4D4F",
58
- fontSize: "20px",
57
+ width: e.apUploadSingleItemDeleteIconSize,
58
+ color: e.colorError,
59
+ fontSize: e.fontSizeXXL,
59
60
  cursor: "pointer"
60
61
  }
61
62
  }
62
63
  },
63
- [`${e}__content-ing`]: {
64
+ [`${r}__content-ing`]: {
64
65
  "&-name": {
65
66
  "--name-color": "var(--ap-text-color-2)",
66
67
  ".ant-progress-line": {
@@ -69,53 +70,61 @@ const n = (o) => {
69
70
  }
70
71
  }
71
72
  },
72
- [`${e}__content-error`]: {
73
+ [`${r}__content-error`]: {
73
74
  "&-name": {
74
- "--name-color": "#FF4D4F"
75
+ "--name-color": e.colorError
75
76
  }
76
77
  },
77
- [`${e}__content-done`]: {
78
+ [`${r}__content-done`]: {
78
79
  "&-name": {
79
- "--name-color": "#0070ff"
80
+ "--name-color": e.colorPrimary
80
81
  }
81
82
  },
82
- [`${e}__content-empty`]: {
83
+ [`${r}__content-empty`]: {
83
84
  cursor: "pointer",
84
85
  display: "flex",
85
86
  flexDirection: "column",
86
87
  alignItems: "center",
87
88
  "&-icon": {
88
89
  svg: {
89
- width: "56px"
90
+ width: e.apUploadSingleContainerFileIconSize
90
91
  }
91
92
  },
92
93
  "&-title": {
93
- marginTop: "10px",
94
+ marginTop: e.spaceMD,
94
95
  color: "var(--ap-text-color-2)",
95
- fontSize: "16px",
96
- lineHeight: "22px"
96
+ fontSize: e.fontSizeXL,
97
+ lineHeight: e.lineHeightLG
97
98
  },
98
99
  "&-sub-title": {
99
- marginTop: 4,
100
+ marginTop: e.spaceXS,
100
101
  color: "var(--ap-text-color-3)",
101
- fontSize: "12px",
102
- lineHeight: "18px"
102
+ fontSize: e.fontSize,
103
+ lineHeight: e.lineHeight
103
104
  }
104
105
  }
105
106
  },
106
- [`${e}-affix-wrapper-status-error`]: {
107
+ [`${r}-affix-wrapper-status-error`]: {
107
108
  ".ant-upload-drag:not(.ant-upload-disabled)": {
108
- borderColor: "#ff4d4f",
109
+ borderColor: e.colorError,
109
110
  "&:hover": {
110
- borderColor: "#FF4D4F80"
111
+ borderColor: `color-mix(in srgb, ${e.colorPrimary} 80%, transparent)`
111
112
  }
112
113
  }
113
114
  }
114
115
  };
115
- }, a = t("ApUploadSingle", (o) => [
116
- n(o)
117
- ]);
116
+ }, n = o(
117
+ "ApUploadSingle",
118
+ (e) => [a(e)],
119
+ {
120
+ apUploadSingleContainerHeight: 200,
121
+ apUploadSingleItemHeight: 96,
122
+ apUploadSingleItemFileIconSize: 48,
123
+ apUploadSingleItemDeleteIconSize: 20,
124
+ apUploadSingleContainerFileIconSize: 56
125
+ }
126
+ );
118
127
  export {
119
- a as default,
120
- n as genProCardStyle
128
+ n as default,
129
+ a as genProCardStyle
121
130
  };
@@ -8,7 +8,7 @@ const r = {}, L = {
8
8
  viewBox: "0 0 20 20"
9
9
  };
10
10
  function i(c, o) {
11
- return n(), l("svg", L, o[0] || (o[0] = [
11
+ return n(), l("svg", L, [...o[0] || (o[0] = [
12
12
  e("g", null, [
13
13
  e("g", null, [
14
14
  e("path", {
@@ -19,7 +19,7 @@ function i(c, o) {
19
19
  })
20
20
  ])
21
21
  ], -1)
22
- ]));
22
+ ])]);
23
23
  }
24
24
  const f = /* @__PURE__ */ t(r, [["render", i]]);
25
25
  export {
@@ -8,9 +8,9 @@ const r = {}, s = {
8
8
  viewBox: "0 0 56 56"
9
9
  };
10
10
  function p(a, t) {
11
- return i(), o("svg", s, t[0] || (t[0] = [
11
+ return i(), o("svg", s, [...t[0] || (t[0] = [
12
12
  e('<defs><clipPath id="master_svg0_693_19001"><rect x="0" y="0" width="56" height="56" rx="7"></rect></clipPath><linearGradient id="master_svg1_693_19025" x1="0.5" y1="0" x2="0.5" y2="0.7987817525863647"><stop offset="0%" stop-color="#AED1FF" stop-opacity="1"></stop><stop offset="100%" stop-color="#74B1FF" stop-opacity="1"></stop></linearGradient><linearGradient id="master_svg2_693_19014" x1="0.5" y1="0" x2="0.5" y2="1"><stop offset="0.7142857182770967%" stop-color="#DBEBFF" stop-opacity="1"></stop><stop offset="100%" stop-color="#98C5FF" stop-opacity="1"></stop></linearGradient></defs><g clip-path="url(#master_svg0_693_19001)"><g><g><path d="M49.4644,10.22729L35.1706,10.22729C34.2282,10.22729,33.316,9.89456,32.595,9.287759999999999L29.1746,6.4093C28.0931,5.499102,26.7249,5,25.3113,5L5.5,5C3.29086,5,1.5,6.79086,1.5,9L1.5,45L54.4995,45L54.5,15.2852C54.5,12.49165,52.2455,10.22729,49.4644,10.22729Z" fill="url(#master_svg1_693_19025)" fill-opacity="1"></path></g><g><path d="M10.5,13L45.5,13C46.6046,13,47.5,13.895431,47.5,15L47.5,35.9999L8.5,36L8.5,15C8.5,13.895431,9.395431,13,10.5,13" fill="#FFFFFF" fill-opacity="0.30000001192092896"></path></g><g><path d="M8.5,17L47.5,17C48.6046,17,49.5,17.895431,49.5,19L49.5,41.9998L6.5,42L6.5,19C6.5,17.895431,7.395431,17,8.5,17" fill="#F9FCFF" fill-opacity="1"></path></g><g><rect x="14.5" y="21" width="15" height="2" rx="1" fill="#8DBFFF" fill-opacity="0.30000001192092896"></rect></g><g><rect x="14.5" y="27" width="28" height="2" rx="1" fill="#8DBFFF" fill-opacity="0.6000000238418579"></rect></g><g><path d="M1.5,37L1.5,48C1.5,50.2091,3.29086,52,5.5,52L50.5,52C52.7091,52,54.5,50.2091,54.5,48L54.5,37C54.5,35.34315,53.1569,34,51.5,34L4.5,34C2.84315,34,1.5,35.34315,1.5,37Z" fill="url(#master_svg2_693_19014)" fill-opacity="1"></path></g></g></g>', 2)
13
- ]));
13
+ ])]);
14
14
  }
15
15
  const g = /* @__PURE__ */ l(r, [["render", p]]);
16
16
  export {
@@ -1,55 +1,57 @@
1
1
  import { genComponentStyleHook as e } from "../../../utils/cssinjs/index.mjs";
2
- const l = (o) => {
3
- const { componentCls: r } = o;
2
+ const l = (r) => {
3
+ const { componentCls: o } = r;
4
4
  return {
5
- [r]: {
5
+ [o]: {
6
6
  position: "relative",
7
- marginBlockStart: "8px",
7
+ marginBlockStart: r.space,
8
8
  ".ant-popover": {
9
9
  width: "100%"
10
10
  },
11
- [`${r}-list`]: {
11
+ [`${o}-list`]: {
12
12
  display: "grid",
13
13
  gridTemplateColumns: "repeat(var(--ap-value-select-card-column-count, 5), minmax(var(--ap-value-select-card-max-width, 150px), 1fr))",
14
14
  gridAutoRows: "1fr",
15
- gap: "12px",
15
+ gap: r.spaceLG,
16
16
  "&-item": {
17
17
  position: "relative",
18
18
  boxSizing: "border-box",
19
- padding: "8px 16px",
20
- color: o.textColor2,
21
- border: `1px solid ${o.borderColorBase}`,
22
- borderRadius: o.borderRadius,
19
+ paddingInline: r.spaceXL,
20
+ paddingBlock: r.space,
21
+ color: r.textColor2,
22
+ border: `${r.lineWidth} ${r.lineType} ${r.borderColorBase}`,
23
+ borderRadius: r.borderRadius,
23
24
  cursor: "pointer",
24
25
  "&-close": {
25
26
  position: "absolute",
26
- top: "8px",
27
- right: "10px",
27
+ top: r.space,
28
+ lineHeight: r.lineHeight,
29
+ right: r.spaceMD,
28
30
  zIndex: 1,
29
- color: o.textColor3,
30
- fontSize: o.fontSizeLG,
31
+ color: r.textColor3,
32
+ fontSize: r.fontSizeLG,
31
33
  cursor: "pointer",
32
34
  "&:hover": {
33
- color: o.colorError
35
+ color: r.colorError
34
36
  }
35
37
  },
36
38
  ".label": {
37
- marginBlockEnd: "4px",
38
- fontSize: o.fontSize,
39
- lineHeight: o.lineHeight
39
+ marginBlockEnd: r.spaceXS,
40
+ fontSize: r.fontSize,
41
+ lineHeight: r.lineHeight
40
42
  },
41
43
  ".value": {
42
44
  overflow: "hidden",
43
45
  fontWeight: "bold",
44
- fontSize: o.fontSizeXL,
46
+ fontSize: r.fontSizeXL,
45
47
  whiteSpace: "nowrap",
46
48
  textOverflow: "ellipsis"
47
49
  },
48
50
  "&:hover:not(.select)": {
49
- border: `1px solid ${o.colorPrimary}`
51
+ border: `${r.lineWidth} ${r.lineType} ${r.colorPrimary}`
50
52
  },
51
53
  "&.select": {
52
- color: o.textColor1,
54
+ color: r.textColor1,
53
55
  borderColor: "transparent",
54
56
  boxShadow: "3px 10px 30px -2px rgba(123, 121, 140, 0.15)",
55
57
  background: "linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--ap-value-select-card-bg-color, #f5f9ff) 92%)",
@@ -58,22 +60,22 @@ const l = (o) => {
58
60
  }
59
61
  },
60
62
  "&.all": {
61
- color: o.textColor2,
63
+ color: r.textColor2,
62
64
  background: "#fff",
63
- border: `1px solid ${o.borderColorBase}`,
65
+ border: `${r.lineWidth} ${r.lineType} ${r.borderColorBase}`,
64
66
  boxShadow: "none",
65
67
  "&:hover:not(.disabled)": {
66
- borderColor: o.colorPrimary
68
+ borderColor: r.colorPrimary
67
69
  },
68
70
  "&.disabled": {
69
- color: o.textColor3,
70
- background: "#f9f9fa",
71
+ color: r.textColor3,
72
+ background: r.colorBg2,
71
73
  cursor: "not-allowed",
72
- border: `1px solid ${o.borderColorBase}`
74
+ border: `${r.lineWidth} ${r.lineType} ${r.borderColorBase}`
73
75
  },
74
76
  "&.select": {
75
- backgroundColor: o.colorBgControl,
76
- borderColor: o.colorPrimary,
77
+ backgroundColor: r.colorBgControl,
78
+ borderColor: r.colorPrimary,
77
79
  cursor: "pointer"
78
80
  }
79
81
  },
@@ -82,34 +84,34 @@ const l = (o) => {
82
84
  flexDirection: "column",
83
85
  alignItems: "center",
84
86
  justifyContent: "center",
85
- color: o.colorPrimary,
87
+ color: r.colorPrimary,
86
88
  background: "#fff",
87
- border: "1px dashed #d1d7df",
89
+ border: `${r.lineWidth} dashed #d1d7df`,
88
90
  boxShadow: "none",
89
91
  ".text": {
90
- fontSize: o.fontSize,
91
- marginInlineStart: "4px"
92
+ fontSize: r.fontSize,
93
+ marginInlineStart: r.spaceXS
92
94
  }
93
95
  }
94
96
  }
95
97
  },
96
- [`${r}-title`]: {
98
+ [`${o}-title`]: {
97
99
  display: "flex",
98
100
  alignItems: "center",
99
- marginBlockEnd: "12px",
100
- color: o.textColor2,
101
- fontSize: o.fontSize,
101
+ marginBlockEnd: r.spaceLG,
102
+ color: r.textColor2,
103
+ fontSize: r.fontSize,
102
104
  "&-icon": {
103
- marginRight: "4px",
104
- color: o.textColor4,
105
- fontSize: o.fontSizeLG
105
+ marginRight: r.spaceXS,
106
+ color: r.textColor4,
107
+ fontSize: r.fontSizeLG
106
108
  }
107
109
  }
108
110
  }
109
111
  };
110
- }, i = e("ApValueSelectCard", (o) => [
111
- l(o)
112
+ }, a = e("ApValueSelectCard", (r) => [
113
+ l(r)
112
114
  ]);
113
115
  export {
114
- i as default
116
+ a as default
115
117
  };