@aplus-frontend/ui 7.6.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 (299) hide show
  1. package/es/src/ag-grid/hooks/use-columns-def.mjs +32 -31
  2. package/es/src/ag-grid/hooks/use-editable-api.mjs +9 -8
  3. package/es/src/ag-grid/hooks/use-editable-columns.mjs +26 -25
  4. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +11 -10
  5. package/es/src/ag-grid/index.vue.mjs +22 -21
  6. package/es/src/ag-grid/renderer/number.mjs +7 -7
  7. package/es/src/ag-grid/style/custom-header.mjs +3 -3
  8. package/es/src/ag-grid/style/index.mjs +1 -1
  9. package/es/src/ap-action/style/index.mjs +1 -1
  10. package/es/src/ap-drawer/style/index.mjs +12 -12
  11. package/es/src/ap-field/hooks/use-default-placeholder.mjs +5 -4
  12. package/es/src/ap-field/number/helper.mjs +1 -1
  13. package/es/src/ap-field/number/index.vue.mjs +9 -9
  14. package/es/src/ap-field/number/read.vue2.mjs +5 -5
  15. package/es/src/ap-field/style/checkbox.d.ts +2 -2
  16. package/es/src/ap-field/style/number.d.ts +2 -2
  17. package/es/src/ap-field/style/radio.d.ts +2 -2
  18. package/es/src/ap-field/style/textarea.d.ts +2 -2
  19. package/es/src/ap-field/switch/index.vue.mjs +4 -3
  20. package/es/src/ap-form/ap-form.vue2.mjs +18 -17
  21. package/es/src/ap-form/item/index.vue.mjs +6 -6
  22. package/es/src/ap-form/item-group/helper.mjs +8 -7
  23. package/es/src/ap-form/item-group/index.vue.mjs +15 -14
  24. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  25. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +24 -22
  26. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
  27. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +9 -8
  28. package/es/src/ap-form/search-form/index.vue.mjs +12 -11
  29. package/es/src/ap-form/set/index.vue.mjs +1 -1
  30. package/es/src/ap-form/style/item.mjs +15 -15
  31. package/es/src/ap-form/style/modal-form.mjs +2 -1
  32. package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
  33. package/es/src/ap-form/style/search-form.d.ts +7 -1
  34. package/es/src/ap-form/style/search-form.mjs +37 -34
  35. package/es/src/ap-grid/editable/form-item.vue.mjs +4 -3
  36. package/es/src/ap-grid/editable/index.vue.mjs +4 -3
  37. package/es/src/ap-grid/index.vue.mjs +13 -12
  38. package/es/src/ap-grid/style/editable.mjs +7 -7
  39. package/es/src/ap-grid/style/index.mjs +11 -11
  40. package/es/src/ap-grid/utils/table.mjs +14 -13
  41. package/es/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  42. package/es/src/ap-list/hooks/use-offline-list.mjs +13 -12
  43. package/es/src/ap-list/style/index.mjs +1 -1
  44. package/es/src/ap-pro-card/style/divider.mjs +2 -2
  45. package/es/src/ap-pro-card/style/index.mjs +14 -14
  46. package/es/src/ap-pro-card/style/operation.mjs +1 -2
  47. package/es/src/ap-pro-card/style/statistic.mjs +12 -12
  48. package/es/src/ap-pro-card/style/statistics-card.mjs +13 -13
  49. package/es/src/ap-pro-card/style/title.mjs +13 -33
  50. package/es/src/ap-table/ap-table.vue2.mjs +4 -3
  51. package/es/src/ap-table/hooks/use-table-column-state.mjs +23 -22
  52. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  53. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +4 -3
  54. package/es/src/ap-table/style/index-comp.d.ts +2 -1
  55. package/es/src/ap-table/style/index-comp.mjs +15 -12
  56. package/es/src/ap-table/style/index.d.ts +3 -0
  57. package/es/src/ap-table/style/index.mjs +14 -11
  58. package/es/src/ap-table/style/setting.d.ts +2 -1
  59. package/es/src/ap-table/style/setting.mjs +73 -61
  60. package/es/src/ap-table/utils.mjs +61 -62
  61. package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +15 -15
  62. package/es/src/business/ag-grid-modal/style/index.d.ts +3 -0
  63. package/es/src/business/ag-grid-modal/style/index.mjs +24 -20
  64. package/es/src/business/ag-grid-modal/style/selected-items.mjs +8 -8
  65. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +26 -27
  66. package/es/src/business/ap-appendix/style/index.mjs +20 -21
  67. package/es/src/business/ap-attachment/style/index.d.ts +6 -0
  68. package/es/src/business/ap-attachment/style/index.mjs +28 -25
  69. package/es/src/business/ap-batch-action/style/index.d.ts +2 -2
  70. package/es/src/business/ap-batch-action/style/index.mjs +18 -18
  71. package/es/src/business/ap-card/style/index.d.ts +2 -2
  72. package/es/src/business/ap-card/style/index.mjs +8 -8
  73. package/es/src/business/ap-copy/style/index.mjs +16 -22
  74. package/es/src/business/ap-descriptions/formatter/index.mjs +1 -1
  75. package/es/src/business/ap-descriptions/style/index.mjs +6 -5
  76. package/es/src/business/ap-download/style/index.mjs +4 -4
  77. package/es/src/business/ap-draggable-grid/style/index.mjs +7 -7
  78. package/es/src/business/ap-expand-alert/style/index.mjs +30 -26
  79. package/es/src/business/ap-image/style/index.d.ts +2 -2
  80. package/es/src/business/ap-image/style/index.mjs +8 -7
  81. package/es/src/business/ap-input-radio/style/index.mjs +1 -1
  82. package/es/src/business/ap-label/style/index.d.ts +14 -0
  83. package/es/src/business/ap-label/style/index.mjs +29 -19
  84. package/es/src/business/ap-ladder/style/index.mjs +7 -6
  85. package/es/src/business/ap-product-info/style/index.d.ts +10 -0
  86. package/es/src/business/ap-product-info/style/index.mjs +35 -28
  87. package/es/src/business/ap-radio-group/style/index.mjs +3 -3
  88. package/es/src/business/ap-select-layout/style/index.d.ts +6 -0
  89. package/es/src/business/ap-select-layout/style/index.mjs +59 -53
  90. package/es/src/business/ap-size-input/style/index.mjs +3 -3
  91. package/es/src/business/ap-status/style/index.mjs +1 -1
  92. package/es/src/business/ap-summary/style/index.d.ts +10 -0
  93. package/es/src/business/ap-summary/style/index.mjs +18 -11
  94. package/es/src/business/ap-table-modal/style/index.d.ts +11 -1
  95. package/es/src/business/ap-table-modal/style/index.mjs +17 -12
  96. package/es/src/business/ap-tag/style/index.mjs +33 -31
  97. package/es/src/business/ap-title/style/index.d.ts +2 -1
  98. package/es/src/business/ap-title/style/index.mjs +41 -49
  99. package/es/src/business/ap-upload/style/index.mjs +10 -5
  100. package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  101. package/es/src/business/ap-upload/style/multiple-file.mjs +8 -7
  102. package/es/src/business/ap-upload/style/picture.d.ts +3 -2
  103. package/es/src/business/ap-upload/style/picture.mjs +26 -26
  104. package/es/src/business/ap-upload/style/single-file.d.ts +3 -2
  105. package/es/src/business/ap-upload/style/single-file.mjs +30 -29
  106. package/es/src/business/ap-upload/style/token.d.ts +19 -0
  107. package/es/src/business/ap-upload/style/token.mjs +9 -0
  108. package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  109. package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +51 -42
  110. package/es/src/business/ap-value-select-card/style/index.mjs +45 -43
  111. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +14 -14
  112. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +35 -34
  113. package/es/src/business/ap-view/style/index.d.ts +6 -2
  114. package/es/src/business/ap-view/style/index.mjs +43 -35
  115. package/es/src/business/batch-input-group/index.vue.mjs +23 -22
  116. package/es/src/business/batch-input-group/style/index.mjs +2 -2
  117. package/es/src/check-card/style/index.mjs +17 -17
  118. package/es/src/design-token/constants.mjs +9 -1
  119. package/es/src/design-token/interface.d.ts +137 -12
  120. package/es/src/editable-table/form-item.vue.mjs +4 -3
  121. package/es/src/editable-table/index.vue.mjs +4 -3
  122. package/es/src/editable-table/style/index.mjs +11 -11
  123. package/es/src/editable-table/utils.d.ts +1 -1
  124. package/es/src/editable-table/utils.mjs +27 -26
  125. package/es/src/hooks/useMessage.mjs +4 -4
  126. package/es/src/loading-bar/index.vue2.mjs +4 -3
  127. package/es/src/loading-bar/style/index.mjs +10 -10
  128. package/es/src/scroll-view/hooks/use-scroll-smooth.mjs +10 -9
  129. package/es/src/scroll-view/index.vue.mjs +4 -3
  130. package/es/src/splitter/style/index.mjs +11 -11
  131. package/es/src/text/index.vue.mjs +8 -7
  132. package/es/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  133. package/es/src/utils/cssinjs/TokenUtil.mjs +3 -0
  134. package/es/src/utils/decimal.d.ts +36 -0
  135. package/es/src/utils/decimal.mjs +45 -0
  136. package/es/src/utils/format.d.ts +21 -0
  137. package/es/src/utils/format.mjs +32 -0
  138. package/es/src/utils/index.d.ts +2 -1
  139. package/es/src/utils/index.mjs +20 -22
  140. package/es/src/utils/is.d.ts +54 -0
  141. package/es/src/utils/is.mjs +26 -0
  142. package/es/src/utils/slot.mjs +1 -2
  143. package/es/src/version.d.ts +1 -1
  144. package/es/src/version.mjs +1 -1
  145. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  146. package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
  147. package/lib/src/ag-grid/hooks/use-editable-columns.js +1 -1
  148. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  149. package/lib/src/ag-grid/index.vue.js +1 -1
  150. package/lib/src/ag-grid/renderer/number.js +1 -1
  151. package/lib/src/ag-grid/style/custom-header.js +1 -1
  152. package/lib/src/ag-grid/style/index.js +1 -1
  153. package/lib/src/ap-action/style/index.js +1 -1
  154. package/lib/src/ap-drawer/style/index.js +1 -1
  155. package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
  156. package/lib/src/ap-field/number/helper.js +1 -1
  157. package/lib/src/ap-field/number/index.vue.js +1 -1
  158. package/lib/src/ap-field/number/read.vue2.js +1 -1
  159. package/lib/src/ap-field/style/checkbox.d.ts +2 -2
  160. package/lib/src/ap-field/style/number.d.ts +2 -2
  161. package/lib/src/ap-field/style/radio.d.ts +2 -2
  162. package/lib/src/ap-field/style/textarea.d.ts +2 -2
  163. package/lib/src/ap-field/switch/index.vue.js +1 -1
  164. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  165. package/lib/src/ap-form/item/index.vue.js +1 -1
  166. package/lib/src/ap-form/item-group/helper.js +1 -1
  167. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  168. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  169. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  170. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  171. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  172. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  173. package/lib/src/ap-form/set/index.vue.js +1 -1
  174. package/lib/src/ap-form/style/item.js +1 -1
  175. package/lib/src/ap-form/style/modal-form.js +1 -1
  176. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  177. package/lib/src/ap-form/style/search-form.d.ts +7 -1
  178. package/lib/src/ap-form/style/search-form.js +1 -1
  179. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  180. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  181. package/lib/src/ap-grid/index.vue.js +1 -1
  182. package/lib/src/ap-grid/style/editable.js +1 -1
  183. package/lib/src/ap-grid/style/index.js +1 -1
  184. package/lib/src/ap-grid/utils/table.js +1 -1
  185. package/lib/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  186. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  187. package/lib/src/ap-list/style/index.js +1 -1
  188. package/lib/src/ap-pro-card/style/divider.js +1 -1
  189. package/lib/src/ap-pro-card/style/index.js +1 -1
  190. package/lib/src/ap-pro-card/style/operation.js +1 -1
  191. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  192. package/lib/src/ap-pro-card/style/statistics-card.js +1 -1
  193. package/lib/src/ap-pro-card/style/title.js +1 -1
  194. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  195. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  196. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  197. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  198. package/lib/src/ap-table/style/index-comp.d.ts +2 -1
  199. package/lib/src/ap-table/style/index-comp.js +1 -1
  200. package/lib/src/ap-table/style/index.d.ts +3 -0
  201. package/lib/src/ap-table/style/index.js +1 -1
  202. package/lib/src/ap-table/style/setting.d.ts +2 -1
  203. package/lib/src/ap-table/style/setting.js +1 -1
  204. package/lib/src/ap-table/utils.js +1 -1
  205. package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
  206. package/lib/src/business/ag-grid-modal/style/index.d.ts +3 -0
  207. package/lib/src/business/ag-grid-modal/style/index.js +1 -1
  208. package/lib/src/business/ag-grid-modal/style/selected-items.js +1 -1
  209. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  210. package/lib/src/business/ap-appendix/style/index.js +1 -1
  211. package/lib/src/business/ap-attachment/style/index.d.ts +6 -0
  212. package/lib/src/business/ap-attachment/style/index.js +1 -1
  213. package/lib/src/business/ap-batch-action/style/index.d.ts +2 -2
  214. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  215. package/lib/src/business/ap-card/style/index.d.ts +2 -2
  216. package/lib/src/business/ap-card/style/index.js +1 -1
  217. package/lib/src/business/ap-copy/style/index.js +1 -1
  218. package/lib/src/business/ap-descriptions/formatter/index.js +1 -1
  219. package/lib/src/business/ap-descriptions/style/index.js +1 -1
  220. package/lib/src/business/ap-download/style/index.js +1 -1
  221. package/lib/src/business/ap-draggable-grid/style/index.js +1 -1
  222. package/lib/src/business/ap-expand-alert/style/index.js +1 -1
  223. package/lib/src/business/ap-image/style/index.d.ts +2 -2
  224. package/lib/src/business/ap-image/style/index.js +1 -1
  225. package/lib/src/business/ap-input-radio/style/index.js +1 -1
  226. package/lib/src/business/ap-label/style/index.d.ts +14 -0
  227. package/lib/src/business/ap-label/style/index.js +1 -1
  228. package/lib/src/business/ap-ladder/style/index.js +1 -1
  229. package/lib/src/business/ap-product-info/style/index.d.ts +10 -0
  230. package/lib/src/business/ap-product-info/style/index.js +1 -1
  231. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  232. package/lib/src/business/ap-select-layout/style/index.d.ts +6 -0
  233. package/lib/src/business/ap-select-layout/style/index.js +1 -1
  234. package/lib/src/business/ap-size-input/style/index.js +1 -1
  235. package/lib/src/business/ap-status/style/index.js +1 -1
  236. package/lib/src/business/ap-summary/style/index.d.ts +10 -0
  237. package/lib/src/business/ap-summary/style/index.js +1 -1
  238. package/lib/src/business/ap-table-modal/style/index.d.ts +11 -1
  239. package/lib/src/business/ap-table-modal/style/index.js +1 -1
  240. package/lib/src/business/ap-tag/style/index.js +1 -1
  241. package/lib/src/business/ap-title/style/index.d.ts +2 -1
  242. package/lib/src/business/ap-title/style/index.js +1 -1
  243. package/lib/src/business/ap-upload/style/index.js +1 -1
  244. package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  245. package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
  246. package/lib/src/business/ap-upload/style/picture.d.ts +3 -2
  247. package/lib/src/business/ap-upload/style/picture.js +1 -1
  248. package/lib/src/business/ap-upload/style/single-file.d.ts +3 -2
  249. package/lib/src/business/ap-upload/style/single-file.js +1 -1
  250. package/lib/src/business/ap-upload/style/token.d.ts +19 -0
  251. package/lib/src/business/ap-upload/style/token.js +1 -0
  252. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  253. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
  254. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  255. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  256. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  257. package/lib/src/business/ap-view/style/index.d.ts +6 -2
  258. package/lib/src/business/ap-view/style/index.js +1 -1
  259. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  260. package/lib/src/business/batch-input-group/style/index.js +1 -1
  261. package/lib/src/check-card/style/index.js +1 -1
  262. package/lib/src/design-token/constants.js +1 -1
  263. package/lib/src/design-token/interface.d.ts +137 -12
  264. package/lib/src/editable-table/form-item.vue.js +1 -1
  265. package/lib/src/editable-table/index.vue.js +1 -1
  266. package/lib/src/editable-table/style/index.js +1 -1
  267. package/lib/src/editable-table/utils.d.ts +1 -1
  268. package/lib/src/editable-table/utils.js +1 -1
  269. package/lib/src/hooks/useMessage.js +1 -1
  270. package/lib/src/loading-bar/index.vue2.js +1 -1
  271. package/lib/src/loading-bar/style/index.js +3 -3
  272. package/lib/src/scroll-view/hooks/use-scroll-smooth.js +1 -1
  273. package/lib/src/scroll-view/index.vue.js +1 -1
  274. package/lib/src/splitter/style/index.js +1 -1
  275. package/lib/src/text/index.vue.js +1 -1
  276. package/lib/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  277. package/lib/src/utils/cssinjs/TokenUtil.js +1 -1
  278. package/lib/src/utils/decimal.d.ts +36 -0
  279. package/lib/src/utils/decimal.js +1 -0
  280. package/lib/src/utils/format.d.ts +21 -0
  281. package/lib/src/utils/format.js +1 -0
  282. package/lib/src/utils/index.d.ts +2 -1
  283. package/lib/src/utils/index.js +1 -1
  284. package/lib/src/utils/is.d.ts +54 -0
  285. package/lib/src/utils/is.js +1 -0
  286. package/lib/src/utils/slot.js +1 -1
  287. package/lib/src/version.d.ts +1 -1
  288. package/lib/src/version.js +1 -1
  289. package/package.json +4 -4
  290. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  291. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +0 -18
  292. package/es/src/utils/copy-text-to-clipboard.d.ts +0 -1
  293. package/es/src/utils/tree.d.ts +0 -38
  294. package/es/src/utils/uuid.d.ts +0 -2
  295. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  296. package/lib/src/business/ap-appendix/icons/file-icon.vue.js +0 -1
  297. package/lib/src/utils/copy-text-to-clipboard.d.ts +0 -1
  298. package/lib/src/utils/tree.d.ts +0 -38
  299. package/lib/src/utils/uuid.d.ts +0 -2
@@ -1,7 +1,6 @@
1
- import { defineComponent as O, computed as d, ref as S, createElementBlock as A, openBlock as r, mergeProps as T, unref as e, renderSlot as c, createCommentVNode as N, createVNode as p, withCtx as u, createElementVNode as n, normalizeClass as i, createBlock as k, Fragment as V, renderList as D, createSlots as j, createTextVNode as P, toDisplayString as G } from "vue";
2
- import M from "./icons/file-icon.vue.mjs";
3
- import { Tooltip as U, TypographyText as z, Empty as F } from "@aplus-frontend/antdv";
4
- import { IconVariantDownload as R } from "@aplus-frontend/icon";
1
+ import { defineComponent as O, computed as d, ref as S, createElementBlock as L, openBlock as r, mergeProps as T, unref as e, renderSlot as c, createCommentVNode as C, createVNode as p, withCtx as u, createElementVNode as n, normalizeClass as i, createBlock as N, Fragment as V, renderList as D, createSlots as j, createTextVNode as P, toDisplayString as G } from "vue";
2
+ import { Tooltip as M, TypographyText as U, Empty as $ } from "@aplus-frontend/antdv";
3
+ import { IconVariantDownload as z, IconApAdLineCloseAttachments as R } from "@aplus-frontend/icon";
5
4
  import { LoadingOutlined as q } from "@ant-design/icons-vue";
6
5
  import "../ap-title/ApTitle.vue.mjs";
7
6
  import "../ap-download/ap-download.vue2.mjs";
@@ -10,10 +9,10 @@ import { getFileInfo as H } from "./utils/index.mjs";
10
9
  import J from "./style/index.mjs";
11
10
  import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
12
11
  import { useLocale as Q } from "../../config-provider/hooks/use-locale.mjs";
13
- import { useGlobalConfig as $ } from "../../config-provider/hooks/use-global-config.mjs";
12
+ import { useGlobalConfig as w } from "../../config-provider/hooks/use-global-config.mjs";
14
13
  import W from "../ap-title/ApTitle.vue2.mjs";
15
14
  import X from "../ap-download/ap-download.vue.mjs";
16
- const Y = ["onClick"], ue = /* @__PURE__ */ O({
15
+ const Y = ["onClick"], de = /* @__PURE__ */ O({
17
16
  __name: "ap-appendix",
18
17
  props: {
19
18
  fileList: {},
@@ -24,8 +23,8 @@ const Y = ["onClick"], ue = /* @__PURE__ */ O({
24
23
  column: { default: 2 },
25
24
  isFileAreaBorder: { type: Boolean, default: !1 }
26
25
  },
27
- setup(w) {
28
- const { b: E, e: l, em: C } = K("ap-appendix"), { t: v } = Q(), I = J("ap-appendix"), a = w, h = $("apUpload"), _ = $(
26
+ setup(E) {
27
+ const { b: F, e: l, em: k } = K("ap-appendix"), { t: v } = Q(), I = J("ap-appendix"), a = E, h = w("apUpload"), _ = w(
29
28
  "downloadCenterTriggerConfig"
30
29
  ), m = d(
31
30
  () => H(
@@ -42,9 +41,9 @@ const Y = ["onClick"], ue = /* @__PURE__ */ O({
42
41
  o.value = [...o.value, f];
43
42
  try {
44
43
  if (_.value?.trigger) {
45
- let t = [s].map((L) => ({
46
- objectName: L.path,
47
- fileName: L.fileName
44
+ let t = [s].map((A) => ({
45
+ objectName: A.path,
46
+ fileName: A.fileName
48
47
  }));
49
48
  await _.value?.trigger(t);
50
49
  }
@@ -53,8 +52,8 @@ const Y = ["onClick"], ue = /* @__PURE__ */ O({
53
52
  }
54
53
  }
55
54
  }
56
- return (s, f) => (r(), A("div", T({
57
- class: [e(E)(), e(I)]
55
+ return (s, f) => (r(), L("div", T({
56
+ class: [e(F)(), e(I)]
58
57
  }, {
59
58
  ...s.$attrs
60
59
  }, {
@@ -79,7 +78,7 @@ const Y = ["onClick"], ue = /* @__PURE__ */ O({
79
78
  c(s.$slots, "titleDownloadAllBtn", {
80
79
  fileList: a.fileList
81
80
  }, () => [
82
- g.value ? N("", !0) : (r(), k(X, {
81
+ g.value ? C("", !0) : (r(), N(X, {
83
82
  key: 0,
84
83
  class: i([e(l)("download-all")]),
85
84
  text: e(v)("ap.apAppendix.downloadAll"),
@@ -87,7 +86,7 @@ const Y = ["onClick"], ue = /* @__PURE__ */ O({
87
86
  "file-name": m.value
88
87
  }, {
89
88
  icon: u(() => [
90
- p(e(R))
89
+ p(e(z))
91
90
  ]),
92
91
  _: 1
93
92
  }, 8, ["class", "text", "get-oss-access", "file-name"]))
@@ -97,44 +96,44 @@ const Y = ["onClick"], ue = /* @__PURE__ */ O({
97
96
  _: 3
98
97
  }, 8, ["title", "help-message"])
99
98
  ]),
100
- g.value ? N("", !0) : c(s.$slots, "fileArea", {
99
+ g.value ? C("", !0) : c(s.$slots, "fileArea", {
101
100
  key: 0,
102
101
  fileList: a.fileList
103
102
  }, () => [
104
103
  n("div", {
105
104
  class: i({
106
105
  [e(l)("file-area")]: !0,
107
- [e(C)("file-area", "border")]: !!a.isFileAreaBorder
106
+ [e(k)("file-area", "border")]: !!a.isFileAreaBorder
108
107
  })
109
108
  }, [
110
109
  n("div", {
111
110
  class: i([e(l)("file-area-content")])
112
111
  }, [
113
- (r(!0), A(V, null, D(m.value, (y, t) => (r(), A("div", {
112
+ (r(!0), L(V, null, D(m.value, (y, t) => (r(), L("div", {
114
113
  key: t,
115
114
  class: i({
116
115
  [e(l)("file-area-content-item")]: !0,
117
- [e(C)("file-area-content-item", "loading")]: o.value.includes(t)
116
+ [e(k)("file-area-content-item", "loading")]: o.value.includes(t)
118
117
  })
119
118
  }, [
120
- p(e(U), null, j({
119
+ p(e(M), null, j({
121
120
  default: u(() => [
122
121
  n("div", {
123
122
  class: i({
124
123
  [e(l)("file-area-content-item-content")]: !0,
125
124
  [e(l)("file-area-content-item--loading-content")]: o.value.includes(t)
126
125
  }),
127
- onClick: (L) => b(y, t)
126
+ onClick: (A) => b(y, t)
128
127
  }, [
129
128
  n("div", {
130
129
  class: i([e(l)("file-area-content-item-icon")])
131
130
  }, [
132
- o.value.includes(t) ? (r(), k(e(q), { key: 0 })) : (r(), k(M, { key: 1 }))
131
+ o.value.includes(t) ? (r(), N(e(q), { key: 0 })) : (r(), N(e(R), { key: 1 }))
133
132
  ], 2),
134
133
  n("div", {
135
134
  class: i([e(l)("file-area-content-item-file-name")])
136
135
  }, [
137
- p(e(z), {
136
+ p(e(U), {
138
137
  ellipsis: "",
139
138
  content: y.fileName
140
139
  }, null, 8, ["content"])
@@ -162,15 +161,15 @@ const Y = ["onClick"], ue = /* @__PURE__ */ O({
162
161
  n("div", {
163
162
  class: i([e(l)("empty-content")])
164
163
  }, [
165
- p(e(F), {
166
- image: e(F).PRESENTED_IMAGE_SIMPLE
164
+ p(e($), {
165
+ image: e($).PRESENTED_IMAGE_SIMPLE
167
166
  }, null, 8, ["image"])
168
167
  ], 2)
169
168
  ], 2)
170
- ]) : N("", !0)
169
+ ]) : C("", !0)
171
170
  ], 16));
172
171
  }
173
172
  });
174
173
  export {
175
- ue as default
174
+ de as default
176
175
  };
@@ -1,29 +1,30 @@
1
- import { genComponentStyleHook as e } from "../../../utils/cssinjs/index.mjs";
2
- import { defaultToken as n } from "./token.mjs";
1
+ import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
2
+ import { defaultToken as i } from "./token.mjs";
3
3
  const r = (o) => {
4
- const { componentCls: t } = o;
4
+ const { componentCls: e } = o;
5
5
  return {
6
- [t]: {
7
- [`${t}__suffix`]: {
6
+ [e]: {
7
+ [`${e}__suffix`]: {
8
8
  width: "100%",
9
9
  display: "flex",
10
10
  alignItems: "center"
11
11
  },
12
- [`${t}__download-all`]: {
12
+ [`${e}__download-all`]: {
13
13
  marginLeft: "auto",
14
14
  padding: 0,
15
15
  height: "min-content"
16
16
  },
17
- [`${t}__file-area`]: {
18
- marginTop: "12px",
17
+ [`${e}__file-area`]: {
18
+ marginBlockStart: o.spaceLG,
19
19
  "&--border": {
20
- border: `1px dashed ${o.borderColorBase}`,
21
- padding: "12px",
22
- borderRadius: "4px"
20
+ border: `${o.lineWidth} dashed ${o.borderColorBase}`,
21
+ padding: o.spaceLG,
22
+ borderRadius: o.borderRadius
23
23
  },
24
24
  "&-content": {
25
25
  display: "grid",
26
- gap: "16px 80px",
26
+ rowGap: o.spaceXL,
27
+ columnGap: o.calc(o.spaceXL).mul(5).equal(),
27
28
  gridTemplateColumns: o.apAppendixColumn,
28
29
  "&-item": {
29
30
  overflow: "hidden",
@@ -36,11 +37,9 @@ const r = (o) => {
36
37
  maxWidth: "100%"
37
38
  },
38
39
  "&-icon": {
39
- marginRight: "8px",
40
- svg: {
41
- width: "16px",
42
- color: o.textColor4
43
- }
40
+ marginRight: o.space,
41
+ fontSize: o.fontSizeXL,
42
+ color: o.textColor4
44
43
  },
45
44
  "&-file-name": {
46
45
  minWidth: 0,
@@ -52,7 +51,7 @@ const r = (o) => {
52
51
  fontSize: o.fontSize,
53
52
  lineHeight: o.lineHeight,
54
53
  color: o.textColor1,
55
- transition: "color 0.2s"
54
+ transition: `color ${o.motionDurationMid}`
56
55
  }
57
56
  },
58
57
  "&-content:hover": {
@@ -76,7 +75,7 @@ const r = (o) => {
76
75
  }
77
76
  }
78
77
  },
79
- [`${t}__empty`]: {
78
+ [`${e}__empty`]: {
80
79
  ".ant-empty": {
81
80
  margin: 0,
82
81
  "&-description": {
@@ -86,10 +85,10 @@ const r = (o) => {
86
85
  }
87
86
  }
88
87
  };
89
- }, l = e(
88
+ }, l = t(
90
89
  "ApAppendix",
91
90
  (o) => [r(o)],
92
- n
91
+ i
93
92
  );
94
93
  export {
95
94
  l as default,
@@ -1,3 +1,9 @@
1
1
  import { ComputedRef } from 'vue';
2
+ export type ApAttachmentToken = {
3
+ /**
4
+ * 附件列表最大宽度
5
+ */
6
+ apAttachmentListMaxWidth: number;
7
+ };
2
8
  declare const _default: (prefixCls: string) => ComputedRef<string>;
3
9
  export default _default;
@@ -1,73 +1,72 @@
1
1
  import { genComponentStyleHook as e } from "../../../utils/cssinjs/index.mjs";
2
- const n = (r) => {
3
- const { componentCls: o } = r;
2
+ const n = (o) => {
3
+ const { componentCls: r } = o;
4
4
  return {
5
- [o]: {
5
+ [r]: {
6
6
  display: "flex",
7
7
  justifyContent: "space-between",
8
8
  alignItems: "center",
9
- [`${o}__content`]: {
9
+ [`${r}__content`]: {
10
10
  width: "80%",
11
11
  flex: 1,
12
12
  display: "flex",
13
13
  flexShrink: 0,
14
14
  alignItems: "center"
15
15
  },
16
- [`${o}__text-render`]: {
16
+ [`${r}__text-render`]: {
17
17
  color: "var(--download-main-color)",
18
- marginInlineEnd: "5px",
18
+ marginInlineEnd: o.spaceXS,
19
19
  "&:hover": {
20
20
  color: "var(--download-main-color-opacity)"
21
21
  }
22
22
  },
23
- [`${o}__text-inner`]: {
23
+ [`${r}__text-inner`]: {
24
24
  flex: 1,
25
25
  flexShrink: 0,
26
26
  whiteSpace: "nowrap",
27
27
  overflow: "hidden",
28
28
  textOverflow: "ellipsis",
29
- fontSize: r.fontSize,
29
+ fontSize: o.fontSize,
30
30
  cursor: "pointer",
31
31
  color: "var(--download-main-color)",
32
32
  "&:hover": {
33
33
  color: "var(--download-main-color-opacity)"
34
34
  }
35
35
  },
36
- [`${o}__more`]: {
37
- width: "40px",
38
- fontSize: r.fontSize,
39
- lineHeight: r.lineHeight,
36
+ [`${r}__more`]: {
37
+ fontSize: o.fontSize,
38
+ lineHeight: o.lineHeight,
40
39
  cursor: "pointer",
41
40
  color: "var(--download-main-color)",
42
- marginLeft: "8px",
41
+ marginInlineStart: o.space,
43
42
  "&:hover": {
44
43
  color: "var(--download-main-color-opacity)"
45
44
  }
46
45
  }
47
46
  },
48
- [`${o}__spin`]: {
47
+ [`${r}__spin`]: {
49
48
  float: "left",
50
- marginRight: "5px"
49
+ marginRight: o.spaceXS
51
50
  },
52
- [`${o}__file-list`]: {
53
- maxWidth: "312px",
51
+ [`${r}__file-list`]: {
52
+ maxWidth: o.apAttachmentListMaxWidth,
54
53
  display: "flex",
55
54
  flexDirection: "column",
56
55
  margin: 0,
57
56
  padding: 0,
58
- [`${o}__file-item`]: {
57
+ [`${r}__file-item`]: {
59
58
  flex: 1,
60
59
  wordWrap: "break-word",
61
- marginBlockEnd: "12px",
62
- fontSize: r.fontSize,
60
+ marginBlockEnd: o.spaceLG,
61
+ fontSize: o.fontSize,
63
62
  color: "#000",
64
63
  cursor: "pointer",
65
64
  "&:hover": {
66
65
  color: "var(--download-main-color)"
67
66
  }
68
67
  },
69
- [`${o}__download-all`]: {
70
- fontSize: r.fontSize,
68
+ [`${r}__download-all`]: {
69
+ fontSize: o.fontSize,
71
70
  color: "var(--download-main-color)",
72
71
  cursor: "pointer",
73
72
  marginBlockEnd: 0,
@@ -77,9 +76,13 @@ const n = (r) => {
77
76
  }
78
77
  }
79
78
  };
80
- }, i = e("ApAttachment", (r) => [
81
- n(r)
82
- ]);
79
+ }, i = e(
80
+ "ApAttachment",
81
+ (o) => [n(o)],
82
+ {
83
+ apAttachmentListMaxWidth: 312
84
+ }
85
+ );
83
86
  export {
84
87
  i as default
85
88
  };
@@ -1,5 +1,5 @@
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 genApBatchActionStyle: GenStyleFunc<BaseToken>;
3
+ export declare const genApBatchActionStyle: GenStyleFunc;
4
4
  declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,31 +1,31 @@
1
- import { genComponentStyleHook as o } from "../../../utils/cssinjs/index.mjs";
2
- const n = (t) => {
3
- const { componentCls: e } = t;
1
+ import { genComponentStyleHook as i } from "../../../utils/cssinjs/index.mjs";
2
+ const l = (e) => {
3
+ const { componentCls: n } = e;
4
4
  return {
5
- [e]: {
5
+ [n]: {
6
6
  width: "100%",
7
- [`${e}-header`]: {
7
+ [`${n}-header`]: {
8
8
  width: "100%",
9
- paddingBottom: "8px",
10
- marginBottom: "8px",
11
- borderBottom: `1px solid ${t.colorBg1}`
9
+ paddingBlockEnd: e.space,
10
+ marginBlockEnd: e.space,
11
+ borderBottom: `${e.lineWidth} ${e.lineType} ${e.colorBg1}`
12
12
  },
13
- [`${e}-body`]: {
13
+ [`${n}-body`]: {
14
14
  width: "100%",
15
15
  display: "flex",
16
16
  alignItems: "center",
17
17
  ".selected-desc": {
18
18
  display: "flex",
19
19
  alignItems: "center",
20
- marginRight: "16px",
20
+ marginInlineEnd: e.spaceXL,
21
21
  flexShrink: "0",
22
22
  "&-conut": {
23
23
  display: "flex",
24
24
  alignItems: "center",
25
- fontSize: t.fontSize,
26
- color: t.textColor3,
25
+ fontSize: e.fontSize,
26
+ color: e.textColor3,
27
27
  span: {
28
- color: t.colorPrimary,
28
+ color: e.colorPrimary,
29
29
  fontWeight: "bold",
30
30
  minWidth: "10px",
31
31
  textAlign: "center",
@@ -33,7 +33,7 @@ const n = (t) => {
33
33
  }
34
34
  },
35
35
  "&-clean": {
36
- marginLeft: "8px",
36
+ marginInlineStart: e.space,
37
37
  "& > *": {
38
38
  padding: 0
39
39
  }
@@ -42,10 +42,10 @@ const n = (t) => {
42
42
  }
43
43
  }
44
44
  };
45
- }, l = o("ApBatchAction", (t) => [
46
- n(t)
45
+ }, c = i("ApBatchAction", (e) => [
46
+ l(e)
47
47
  ]);
48
48
  export {
49
- l as default,
50
- n as genApBatchActionStyle
49
+ c as default,
50
+ l as genApBatchActionStyle
51
51
  };
@@ -1,5 +1,5 @@
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 genApCardStyle: GenStyleFunc<BaseToken>;
3
+ export declare const genApCardStyle: GenStyleFunc;
4
4
  declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,22 +1,22 @@
1
- import { genComponentStyleHook as n } from "../../../utils/cssinjs/index.mjs";
2
- const e = (t) => {
1
+ import { genComponentStyleHook as e } from "../../../utils/cssinjs/index.mjs";
2
+ const n = (t) => {
3
3
  const { componentCls: o } = t;
4
4
  return {
5
5
  [o]: {
6
6
  width: "100%",
7
7
  background: "#fff",
8
8
  [`& + ${o}`]: {
9
- marginTop: "10px"
9
+ marginTop: t.spaceMD
10
10
  },
11
11
  [`${o}-title`]: {
12
- marginBottom: "12px"
12
+ marginBottom: t.spaceLG
13
13
  }
14
14
  }
15
15
  };
16
- }, p = n("ApCard", (t) => [
17
- e(t)
16
+ }, a = e("ApCard", (t) => [
17
+ n(t)
18
18
  ]);
19
19
  export {
20
- p as default,
21
- e as genApCardStyle
20
+ a as default,
21
+ n as genApCardStyle
22
22
  };
@@ -1,64 +1,58 @@
1
- import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
1
+ import { genComponentStyleHook as e } from "../../../utils/cssinjs/index.mjs";
2
2
  const r = (o) => {
3
- const { componentCls: e } = o;
3
+ const { componentCls: t } = o;
4
4
  return {
5
- [e]: {
5
+ [t]: {
6
6
  display: "flex",
7
7
  alignItems: "center",
8
8
  width: "100%",
9
9
  ".copy-btn": {
10
10
  opacity: 0,
11
- transition: "opacity 0.2s ease"
11
+ transition: `opacity ${o.motionDurationMid} ease`
12
12
  },
13
13
  "&:hover": {
14
14
  ".copy-btn": {
15
15
  opacity: 1
16
16
  }
17
17
  },
18
- [`${e}__text`]: {
18
+ [`${t}__text`]: {
19
19
  overflow: "hidden",
20
20
  textOverflow: "ellipsis",
21
21
  whiteSpace: "nowrap",
22
- height: "18px",
23
- lineHeight: "18px"
22
+ lineHeight: o.lineHeight
24
23
  },
25
- [`${e}--text-major`]: {
24
+ [`${t}--text-major`]: {
26
25
  color: o.textColor1
27
26
  },
28
- [`${e}--text-minor`]: {
27
+ [`${t}--text-minor`]: {
29
28
  color: o.textColor3
30
29
  },
31
- [`${e}--text-link`]: {
30
+ [`${t}--text-link`]: {
32
31
  color: o.colorLink,
33
32
  cursor: "pointer",
34
33
  "&:hover": {
35
34
  color: o.colorLinkHover
36
35
  }
37
36
  },
38
- [`${e}__copy-btn`]: {
37
+ [`${t}__copy-btn`]: {
39
38
  flexShrink: 0,
40
- width: "16px",
41
- marginInlineStart: "4px",
39
+ marginInlineStart: o.spaceXS,
42
40
  display: "flex",
43
41
  alignItems: "center",
44
- ".user-frontend-icon": {
45
- cursor: "pointer",
46
- color: "#ABB7CC",
47
- height: "14px",
48
- lineHeight: "14px"
49
- },
42
+ fontSize: o.fontSizeLG,
43
+ color: o.textColor4,
44
+ cursor: "pointer",
50
45
  "&:hover": {
51
46
  ".user-frontend-icon": {
52
- cursor: "pointer",
53
47
  color: o.colorLink
54
48
  }
55
49
  }
56
50
  }
57
51
  }
58
52
  };
59
- }, i = t("ApCopy", (o) => [
53
+ }, l = e("ApCopy", (o) => [
60
54
  r(o)
61
55
  ]);
62
56
  export {
63
- i as default
57
+ l as default
64
58
  };
@@ -3,7 +3,7 @@ import { getTimeFormatToZone as d, toThousand as g } from "@aplus-frontend/utils
3
3
  import { isBoolean as h, merge as p, get as c, debounce as Y } from "lodash-unified";
4
4
  import { formatString as A } from "./utils.mjs";
5
5
  import { TypographyParagraph as b } from "@aplus-frontend/antdv";
6
- import { toDecimalMark as M } from "@fruits-chain/utils";
6
+ import { toDecimalMark as M } from "../../../utils/format.mjs";
7
7
  function S({
8
8
  value: t
9
9
  }, n) {
@@ -11,7 +11,7 @@ const e = (t) => {
11
11
  paddingBlockEnd: "var(--ap-descriptions-item-padding-bottom, 16px)"
12
12
  },
13
13
  "th.ant-descriptions-item": {
14
- paddingBlockEnd: "4px"
14
+ paddingBlockEnd: t.spaceXS
15
15
  },
16
16
  ".ant-descriptions-row:last-child": {
17
17
  ".ant-descriptions-item": {
@@ -19,7 +19,8 @@ const e = (t) => {
19
19
  }
20
20
  },
21
21
  ".ant-descriptions-item-label::after": {
22
- marginInline: "4px 12px"
22
+ marginInlineStart: t.spaceXS,
23
+ marginInlineEnd: t.spaceLG
23
24
  }
24
25
  },
25
26
  [`${i}-item__ellipsis`]: {
@@ -50,7 +51,7 @@ const e = (t) => {
50
51
  color: t.textColor3,
51
52
  ".ap-descriptions-item-content__help": {
52
53
  fontSize: t.fontSizeLG,
53
- marginInlineStart: "4px",
54
+ marginInlineStart: t.spaceXS,
54
55
  color: t.textColor3
55
56
  },
56
57
  ".ant-typography": {
@@ -67,9 +68,9 @@ const e = (t) => {
67
68
  }
68
69
  }
69
70
  };
70
- }, r = n("ApDescriptions", (t) => [
71
+ }, a = n("ApDescriptions", (t) => [
71
72
  e(t)
72
73
  ]);
73
74
  export {
74
- r as default
75
+ a as default
75
76
  };
@@ -14,12 +14,12 @@ const r = (o) => {
14
14
  cursor: "pointer",
15
15
  alignItems: "center",
16
16
  ".spin": {
17
- marginInlineEnd: "5px"
17
+ marginInlineEnd: o.spaceXS
18
18
  },
19
19
  ".icon": {
20
20
  position: "relative",
21
21
  fontSize: o.fontSizeXL,
22
- marginInlineEnd: "5px"
22
+ marginInlineEnd: o.spaceXS
23
23
  },
24
24
  ".text": {
25
25
  color: "var(--download-main-color)"
@@ -48,9 +48,9 @@ const r = (o) => {
48
48
  }
49
49
  }
50
50
  };
51
- }, a = l("ApDownload", (o) => [
51
+ }, t = l("ApDownload", (o) => [
52
52
  r(o)
53
53
  ]);
54
54
  export {
55
- a as default
55
+ t as default
56
56
  };