@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,23 +1,26 @@
1
- import { genComponentStyleHook as n } from "../../utils/cssinjs/index.mjs";
2
- const o = (e) => ({
1
+ import { genComponentStyleHook as l } from "../../utils/cssinjs/index.mjs";
2
+ import { defaultValue as i } from "./index.mjs";
3
+ const n = (e) => ({
3
4
  [e.componentCls]: {
4
5
  "&--bordered": {
5
6
  display: "inline-flex",
6
7
  justifyContent: "center",
7
8
  alignItems: "center",
8
- width: "14px",
9
- height: "14px",
9
+ width: e.apTableIndexSize,
10
+ height: e.apTableIndexSize,
10
11
  color: "#fff",
11
- fontSize: "10px",
12
- lineHeight: "10px",
13
- borderRadius: "7px",
12
+ fontSize: e.fontSizeSM,
13
+ lineHeight: e.fontSizeSM,
14
+ borderRadius: e.calc(e.apTableIndexSize).div(2).equal(),
14
15
  backgroundColor: "#979797"
15
16
  }
16
17
  }
17
- }), l = n("ApTable.Index", (e) => [
18
- o(e)
19
- ]);
18
+ }), t = l(
19
+ "ApTable.Index",
20
+ (e) => [n(e)],
21
+ i
22
+ );
20
23
  export {
21
- l as default,
22
- o as genTableIndexCellStyle
24
+ t as default,
25
+ n as genTableIndexCellStyle
23
26
  };
@@ -2,7 +2,10 @@ import { GenStyleFunc, StyleMixin } from '../../design-token/interface';
2
2
  import { ComputedRef } from 'vue';
3
3
  export type ApTableToken = {
4
4
  apTableHeaderBg: string;
5
+ apTableIndexSize: number;
6
+ apTableSettingRightWidth: number;
5
7
  };
8
+ export declare const defaultValue: ApTableToken;
6
9
  export declare const genSettingTriggerBtnStyle: StyleMixin;
7
10
  export declare const genApTableStyle: GenStyleFunc<ApTableToken>;
8
11
  declare const _default: (prefixCls: string) => ComputedRef<string>;
@@ -1,13 +1,17 @@
1
1
  import { multiRows as l, resetScrollbar as i } from "../../style/index.mjs";
2
2
  import { genComponentStyleHook as o } from "../../utils/cssinjs/index.mjs";
3
- const r = (t) => ({
3
+ const r = {
4
+ apTableHeaderBg: "#F2F6F9",
5
+ apTableIndexSize: 14,
6
+ apTableSettingRightWidth: 240
7
+ }, p = (t) => ({
4
8
  [`.${t.namespace}-ap-table-setting-trigger-button`]: {
5
9
  color: t.textColor2,
6
10
  "&:hover": {
7
11
  color: "unset"
8
12
  }
9
13
  }
10
- }), p = (t) => {
14
+ }), d = (t) => {
11
15
  const { componentCls: a, namespace: n } = t, e = `--${n}-ap-table-scroll-bar-width`;
12
16
  return {
13
17
  [a]: {
@@ -153,7 +157,7 @@ const r = (t) => ({
153
157
  textAlign: "right"
154
158
  },
155
159
  // 表格设置触发按钮样式
156
- ...r(t),
160
+ ...p(t),
157
161
  // 粘贴布局并且滚动条占据空间
158
162
  "&--sticky-relative": {
159
163
  ".ant-table-container": {
@@ -175,15 +179,14 @@ const r = (t) => ({
175
179
  }
176
180
  }
177
181
  };
178
- }, b = o(
182
+ }, s = o(
179
183
  "ApTable",
180
- (t) => [p(t)],
181
- {
182
- apTableHeaderBg: "#F2F6F9"
183
- }
184
+ (t) => [d(t)],
185
+ r
184
186
  );
185
187
  export {
186
- b as default,
187
- p as genApTableStyle,
188
- r as genSettingTriggerBtnStyle
188
+ s as default,
189
+ r as defaultValue,
190
+ d as genApTableStyle,
191
+ p as genSettingTriggerBtnStyle
189
192
  };
@@ -1,6 +1,7 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
+ import { ApTableToken } from '.';
2
3
  import { ComputedRef } from 'vue';
3
- export declare const genTableSettingStyle: GenStyleFunc;
4
+ export declare const genTableSettingStyle: GenStyleFunc<ApTableToken>;
4
5
  export declare const genTableSettingSelectGroupStyle: GenStyleFunc;
5
6
  export declare const genTableSettingSortableItemMetaStyle: GenStyleFunc;
6
7
  export declare const genTableSettingSortableItemStyle: GenStyleFunc;
@@ -1,28 +1,29 @@
1
- import { singleRow as n, resetComponent as i } from "../../style/index.mjs";
2
- import { genComponentStyleHook as o } from "../../utils/cssinjs/index.mjs";
3
- const r = (e) => {
4
- const { componentCls: t, namespace: l } = e;
1
+ import { singleRow as a, resetComponent as t } from "../../style/index.mjs";
2
+ import { genComponentStyleHook as n } from "../../utils/cssinjs/index.mjs";
3
+ import { defaultValue as r } from "./index.mjs";
4
+ const o = (e) => {
5
+ const { componentCls: l, namespace: i } = e;
5
6
  return {
6
- [t]: {
7
- [`${t}-wrapper`]: {
7
+ [l]: {
8
+ [`${l}-wrapper`]: {
8
9
  display: "flex",
9
10
  flexDirection: "row",
10
11
  flexWrap: "nowrap",
11
12
  height: "100%",
12
- paddingBlockEnd: "12px",
13
- [`.${l}-ap-table-table-header__title`]: {
14
- ...n(e)
13
+ paddingBlockEnd: e.spaceLG,
14
+ [`.${i}-ap-table-table-header__title`]: {
15
+ ...a(e)
15
16
  },
16
- [`.${l}-ap-grid-table-header__title`]: {
17
- ...n(e),
17
+ [`.${i}-ap-grid-table-header__title`]: {
18
+ ...a(e),
18
19
  fontWeight: "normal",
19
20
  color: e.textColor1
20
21
  },
21
- [`.${l}-ag-grid-table-header__title`]: {
22
- ...n(e)
22
+ [`.${i}-ag-grid-table-header__title`]: {
23
+ ...a(e)
23
24
  }
24
25
  },
25
- [`${t}-left`]: {
26
+ [`${l}-left`]: {
26
27
  flex: 1,
27
28
  flexShrink: 1,
28
29
  minWidth: 0,
@@ -59,47 +60,49 @@ const r = (e) => {
59
60
  }
60
61
  }
61
62
  },
62
- [`${t}-right`]: {
63
- width: "240px"
63
+ [`${l}-right`]: {
64
+ width: e.apTableSettingRightWidth
64
65
  }
65
66
  }
66
67
  };
67
- }, a = (e) => {
68
- const { componentCls: t } = e;
68
+ }, c = (e) => {
69
+ const { componentCls: l } = e;
69
70
  return {
70
- [t]: {
71
- [`${t}-select-group`]: {
71
+ [l]: {
72
+ [`${l}-select-group`]: {
72
73
  "&-header": {
73
74
  backgroundColor: "#F2F6F9",
74
- padding: "4px 12px",
75
- borderRadius: "4px",
76
- marginBlockEnd: "12px",
77
- marginInline: "-12px",
75
+ paddingInline: e.spaceLG,
76
+ paddingBlock: e.spaceXS,
77
+ borderRadius: e.borderRadius,
78
+ marginBlockEnd: e.spaceLG,
79
+ marginInline: e.calc(e.spaceLG).mul(-1).equal(),
78
80
  display: "flex"
79
81
  }
80
82
  }
81
83
  }
82
84
  };
83
85
  }, p = (e) => {
84
- const { componentCls: t } = e, l = `${t}-sortable-item-meta`;
86
+ const { componentCls: l } = e, i = `${l}-sortable-item-meta`;
85
87
  return {
86
- [t]: {
87
- [l]: {
88
- padding: "6px 8px",
89
- marginTop: "4px",
88
+ [l]: {
89
+ [i]: {
90
+ paddingInline: e.space,
91
+ paddingBlock: e.spaceSM,
92
+ marginBlockStart: e.spaceXS,
90
93
  display: "flex",
91
94
  flexDirection: "row",
92
95
  flexWrap: "nowrap",
93
96
  justifyContent: "space-between",
94
97
  alignItems: "center",
95
98
  "&:hover": {
96
- backgroundColor: "#F1F7FF",
97
- borderRadius: "2px",
99
+ backgroundColor: e.calc(e.colorPrimary).colorOpacity(8),
100
+ borderRadius: e.borderRadiusSM,
98
101
  cursor: "pointer",
99
- [`${l}-right`]: {
102
+ [`${i}-right`]: {
100
103
  display: "block"
101
104
  },
102
- [`${l}-left__holder`]: {
105
+ [`${i}-left__holder`]: {
103
106
  color: `${e.colorPrimary} !important`
104
107
  }
105
108
  },
@@ -114,7 +117,7 @@ const r = (e) => {
114
117
  alignItems: "center",
115
118
  width: "16px",
116
119
  height: "16px",
117
- marginRight: "4px",
120
+ marginInlineEnd: e.spaceXS,
118
121
  flexShrink: 0
119
122
  },
120
123
  "&__label-wrapper": {
@@ -125,10 +128,10 @@ const r = (e) => {
125
128
  },
126
129
  "&-right": {
127
130
  display: "none",
128
- paddingLeft: "12px"
131
+ paddingInlineStart: e.spaceLG
129
132
  },
130
133
  ".is-level2": {
131
- marginLeft: "16px"
134
+ marginInlineStart: e.spaceXL
132
135
  },
133
136
  "&-action-item": {
134
137
  "&:hover": {
@@ -138,10 +141,10 @@ const r = (e) => {
138
141
  }
139
142
  }
140
143
  };
141
- }, s = (e) => {
142
- const { componentCls: t } = e;
144
+ }, d = (e) => {
145
+ const { componentCls: l } = e;
143
146
  return {
144
- [t]: {
147
+ [l]: {
145
148
  [`${e.componentCls}-sortable-item`]: {
146
149
  ".is-hidden": {
147
150
  display: "none"
@@ -149,25 +152,27 @@ const r = (e) => {
149
152
  }
150
153
  }
151
154
  };
152
- }, c = (e) => {
153
- const { componentCls: t } = e;
155
+ }, s = (e) => {
156
+ const { componentCls: l } = e;
154
157
  return {
155
- [t]: {
158
+ [l]: {
156
159
  [`${e.componentCls}-sorter`]: {
157
160
  display: "flex",
158
161
  flexDirection: "column",
159
162
  height: "100%",
160
163
  "&-section-title": {
161
- fontSize: "12px",
162
- lineHeight: "20px",
164
+ fontSize: e.fontSize,
165
+ lineHeight: e.lineHeight,
163
166
  color: e.textColor3,
164
- padding: "2px 8px",
165
- margin: "4px"
167
+ paddingInline: e.space,
168
+ paddingBlock: e.spaceXXS,
169
+ margin: e.spaceXS
166
170
  },
167
171
  "&-header": {
168
- padding: "12px 20px",
172
+ paddingInline: "20px",
173
+ paddingBlock: e.spaceLG,
169
174
  "&-title": {
170
- ...i(e),
175
+ ...t(e),
171
176
  fontWeight: "bold",
172
177
  color: e.textColor1
173
178
  }
@@ -175,23 +180,30 @@ const r = (e) => {
175
180
  "&-content": {
176
181
  flex: 1,
177
182
  overflowY: "auto",
178
- padding: "8px 12px 0px 8px"
183
+ paddingBlockStart: e.space,
184
+ paddingInlineEnd: e.spaceLG,
185
+ paddingBlockEnd: 0,
186
+ paddingInlineStart: e.space
179
187
  }
180
188
  }
181
189
  }
182
190
  };
183
- }, g = o("ApTable.Setting", (e) => [
184
- r(e),
185
- a(e),
186
- s(e),
187
- p(e),
188
- c(e)
189
- ]);
191
+ }, h = n(
192
+ "ApTable.Setting",
193
+ (e) => [
194
+ o(e),
195
+ c(e),
196
+ d(e),
197
+ p(e),
198
+ s(e)
199
+ ],
200
+ r
201
+ );
190
202
  export {
191
- g as default,
192
- a as genTableSettingSelectGroupStyle,
203
+ h as default,
204
+ c as genTableSettingSelectGroupStyle,
193
205
  p as genTableSettingSortableItemMetaStyle,
194
- s as genTableSettingSortableItemStyle,
195
- c as genTableSettingSorterStyle,
196
- r as genTableSettingStyle
206
+ d as genTableSettingSortableItemStyle,
207
+ s as genTableSettingSorterStyle,
208
+ o as genTableSettingStyle
197
209
  };
@@ -1,20 +1,19 @@
1
- import { isVNode as T, createVNode as s, mergeProps as a, cloneVNode as h, createTextVNode as C, Fragment as j } from "vue";
2
- import { isObject as d, isArray as u, isUndefined as x, isFunction as g, omit as E, isBoolean as O, isString as v, isEqual as F, sortBy as m, isPlainObject as y, every as N, isEmpty as R } from "lodash-unified";
1
+ import { isVNode as T, createVNode as s, mergeProps as a, cloneVNode as h, createTextVNode as C, Fragment as x } from "vue";
2
+ import { isObject as f, isArray as u, isUndefined as E, isFunction as y, omit as j, isBoolean as v, isString as O, isEqual as F, sortBy as m, isPlainObject as g, every as N, isEmpty as R } from "lodash-unified";
3
3
  import { apTableRenderItemMap as P, apTableFormItemMap as S } from "./constants.mjs";
4
- import { isType as I } from "@fruits-chain/utils";
5
4
  import "../ap-form/index.mjs";
6
- import { Tooltip as A } from "@aplus-frontend/antdv";
7
- import { QuestionCircleOutlined as V } from "@ant-design/icons-vue";
8
- import w from "../ap-form/item/index.vue.mjs";
9
- function M(e) {
5
+ import { Tooltip as I } from "@aplus-frontend/antdv";
6
+ import { QuestionCircleOutlined as A } from "@ant-design/icons-vue";
7
+ import V from "../ap-form/item/index.vue.mjs";
8
+ function w(e) {
10
9
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !T(e);
11
10
  }
12
- const _ = (e, t, n) => {
11
+ const M = (e, t, n) => {
13
12
  let o = {};
14
- return d(e) ? Object.keys(e).forEach((r) => {
15
- d(e[r]) ? o[r] = _(e[r], t[r], n) : o[r] = n(e[r], t);
13
+ return f(e) ? Object.keys(e).forEach((r) => {
14
+ f(e[r]) ? o[r] = M(e[r], t[r], n) : o[r] = n(e[r], t);
16
15
  }) : o = n(e, t), o;
17
- }, z = (e, t) => {
16
+ }, L = (e, t) => {
18
17
  switch (e) {
19
18
  case "dayjs":
20
19
  return t.valueOf();
@@ -35,15 +34,15 @@ const _ = (e, t, n) => {
35
34
  return t;
36
35
  }
37
36
  };
38
- function G(e) {
37
+ function Q(e) {
39
38
  return u(e) ? e.join(".") : e;
40
39
  }
41
- function q(e) {
40
+ function _(e) {
42
41
  const t = Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();
43
42
  return t === "string" && typeof e == "object" ? "object" : e === null ? "null" : e === void 0 ? "undefined" : t;
44
43
  }
45
- const W = (e) => {
46
- if (q(e) === "map")
44
+ const q = (e) => {
45
+ if (_(e) === "map")
47
46
  return e;
48
47
  const t = /* @__PURE__ */ new Map();
49
48
  for (const [n, o] of Object.entries(e || {})) {
@@ -52,7 +51,7 @@ const W = (e) => {
52
51
  }
53
52
  return t;
54
53
  }, b = (e) => {
55
- const t = [], n = W(e);
54
+ const t = [], n = q(e);
56
55
  return n.forEach((o, r) => {
57
56
  const i = n.get(r) || n.get(`${r}`);
58
57
  if (i) {
@@ -72,21 +71,21 @@ const W = (e) => {
72
71
  });
73
72
  }
74
73
  }), t;
75
- }, X = (e) => x(e) || e < 0 ? 0 : e;
76
- function B(e, t) {
77
- return !e || !g(e) ? e : e(t);
74
+ }, z = (e) => E(e) || e < 0 ? 0 : e;
75
+ function W(e, t) {
76
+ return !e || !y(e) ? e : e(t);
78
77
  }
79
- function Y(e) {
78
+ function G(e) {
80
79
  let t = e.valueType || "text";
81
80
  return e.valueEnum && (t = "status"), t;
82
81
  }
83
- function Z(e, t, n, o) {
82
+ function X(e, t, n, o) {
84
83
  const r = P[e];
85
84
  return r ? s(r, a(t, {
86
85
  mode: "read"
87
86
  }), null) : o?.[e]?.render?.(t.value, n, t) || t.value;
88
87
  }
89
- function ee(e, t) {
88
+ function Y(e, t) {
90
89
  if (e.customRenderFormItem)
91
90
  return () => {
92
91
  const r = e.customRenderFormItem(e);
@@ -104,39 +103,39 @@ function ee(e, t) {
104
103
  const o = t?.[e.valueType];
105
104
  return () => {
106
105
  const r = o?.renderFormItem?.(e.fieldProps.field);
107
- return r ? s(w, a(e.fieldProps, {
106
+ return r ? s(V, a(e.fieldProps, {
108
107
  span: e.span
109
- }), M(r) ? r : {
108
+ }), w(r) ? r : {
110
109
  default: () => [r]
111
110
  }) : null;
112
111
  };
113
112
  }
114
- function te(e, t) {
115
- const n = B(e.fieldProps, t), o = n?.field || n || {}, r = e.valueType === "switch", i = e.valueType === "index", f = r ? {
113
+ function Z(e, t) {
114
+ const n = W(e.fieldProps, t), o = n?.field || n || {}, r = e.valueType === "switch", i = e.valueType === "index", c = r ? {
116
115
  checked: t.value
117
116
  } : {
118
117
  value: i ? t.index + 1 : t.value
119
118
  };
120
119
  return e.valueEnum && (o.valueEnum = e.valueEnum), {
121
- ...E(o, ["request"]),
122
- ...f
120
+ ...j(o, ["request"]),
121
+ ...c
123
122
  };
124
123
  }
125
- function ne(e) {
124
+ function ee(e) {
126
125
  const t = {
127
126
  ...e
128
127
  };
129
- return O(e.filters) && e.filters && e.valueEnum && (t.filters = b(e.valueEnum)), t;
128
+ return v(e.filters) && e.filters && e.valueEnum && (t.filters = b(e.valueEnum)), t;
130
129
  }
131
- function re(e, t) {
130
+ function te(e, t) {
132
131
  const n = t || {};
133
132
  return e.valueEnum && !n.field?.options && (n.field = {
134
133
  ...n.field,
135
134
  options: b(e.valueEnum)
136
135
  }), n;
137
136
  }
138
- function oe(e) {
139
- if (!I("Object")(e))
137
+ function ne(e) {
138
+ if (!f(e))
140
139
  return e;
141
140
  try {
142
141
  return JSON.stringify(e);
@@ -144,14 +143,14 @@ function oe(e) {
144
143
  return e;
145
144
  }
146
145
  }
147
- function ie(e, t, n, o) {
146
+ function re(e, t, n, o) {
148
147
  const r = n?.({
149
148
  title: e.title,
150
149
  column: e
151
150
  }), i = r?.filter((l) => l.type !== Symbol.for("v-cmt")) || [];
152
151
  if (r && i.length > 0)
153
152
  return r;
154
- const c = v(e.title) ? s("span", {
153
+ const p = O(e.title) ? s("span", {
155
154
  class: t,
156
155
  style: {
157
156
  textAlign: e.align || "left"
@@ -162,28 +161,28 @@ function ie(e, t, n, o) {
162
161
  color: "#FF4D4F",
163
162
  paddingRight: "2px"
164
163
  }
165
- }, [C("*")]) : null, e.title]) : e.title, p = e.tooltip ? g(e.tooltip) ? e.tooltip(e) : s(j, null, [e.tooltip]) : null;
166
- return p ? s("span", {
164
+ }, [C("*")]) : null, e.title]) : e.title, d = e.tooltip ? y(e.tooltip) ? e.tooltip(e) : s(x, null, [e.tooltip]) : null;
165
+ return d ? s("span", {
167
166
  style: {
168
167
  display: "inline-flex",
169
168
  alignItems: "center",
170
169
  maxWidth: "100%"
171
170
  }
172
- }, [c, s(A, {
173
- title: p,
171
+ }, [p, s(I, {
172
+ title: d,
174
173
  placement: "bottom",
175
174
  getPopupContainer: (l) => l.closest(".ant-table") || l.closest(".ant-modal") || l.closest(".vxe-table") || document.body
176
175
  }, {
177
- default: () => [s(V, {
176
+ default: () => [s(A, {
178
177
  style: {
179
178
  paddingInline: "4px",
180
179
  color: o,
181
180
  verticalAlign: "middle"
182
181
  }
183
182
  }, null)]
184
- })]) : c;
183
+ })]) : p;
185
184
  }
186
- function se(e, t) {
185
+ function oe(e, t) {
187
186
  const n = [];
188
187
  function o(r) {
189
188
  for (const i of r)
@@ -191,36 +190,36 @@ function se(e, t) {
191
190
  }
192
191
  return o(e), n;
193
192
  }
194
- function le(e, t) {
193
+ function ie(e, t) {
195
194
  if (u(e) && u(t))
196
195
  return F(m(e), m(t));
197
- if (y(e) && y(t)) {
196
+ if (g(e) && g(t)) {
198
197
  const n = (o) => N(o, (r) => r == null) || R(o);
199
198
  if (n(e) && n(t))
200
199
  return !0;
201
200
  }
202
201
  }
203
- function ue(e) {
202
+ function se(e) {
204
203
  if (e !== !1)
205
204
  return e;
206
205
  }
207
206
  export {
208
- ne as apColumnToColumn,
209
- G as dataIndexToStr,
210
- ue as falseToUndefined,
211
- _ as formatParamsValueType,
212
- X as getColumnOrder,
213
- B as getFieldProps,
214
- ee as getSearchFormItemRenderNode,
215
- Z as getTableCellRenderNode,
216
- te as getTableRenderProps,
217
- Y as getTableRenderType,
218
- ie as getTableTitle,
219
- le as isEqualCustom,
220
- W as objectToMap,
221
- oe as objectToString,
222
- z as parseFieldValue,
223
- se as recursionApColumns,
224
- re as updateFormProps,
207
+ ee as apColumnToColumn,
208
+ Q as dataIndexToStr,
209
+ se as falseToUndefined,
210
+ M as formatParamsValueType,
211
+ z as getColumnOrder,
212
+ W as getFieldProps,
213
+ Y as getSearchFormItemRenderNode,
214
+ X as getTableCellRenderNode,
215
+ Z as getTableRenderProps,
216
+ G as getTableRenderType,
217
+ re as getTableTitle,
218
+ ie as isEqualCustom,
219
+ q as objectToMap,
220
+ ne as objectToString,
221
+ L as parseFieldValue,
222
+ oe as recursionApColumns,
223
+ te as updateFormProps,
225
224
  b as valueEnumToArray
226
225
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as I, computed as M, createElementBlock as m, renderSlot as a, openBlock as n, normalizeStyle as g, normalizeClass as o, unref as e, createElementVNode as s, createBlock as v, createCommentVNode as h, withCtx as i, resolveDynamicComponent as O, h as V, Fragment as b, createVNode as p, createTextVNode as S, toDisplayString as T, renderList as w } from "vue";
1
+ import { defineComponent as M, computed as O, createElementBlock as m, renderSlot as a, openBlock as n, normalizeStyle as g, normalizeClass as o, unref as e, createElementVNode as s, createBlock as v, createCommentVNode as h, withCtx as i, resolveDynamicComponent as V, h as w, Fragment as b, createVNode as p, createTextVNode as S, toDisplayString as T, renderList as L } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
3
  import { ApTitle as k } from "../../ap-title/index.mjs";
4
- import { Button as L, Empty as C } from "@aplus-frontend/antdv";
5
- import { useAgGridModalInject as j } from "../hooks/use-ag-grid-instance.mjs";
6
- import x from "../style/index.mjs";
7
- import { useLocale as D } from "../../../config-provider/hooks/use-locale.mjs";
8
- import { useNamespace as z } from "../../../config-provider/hooks/use-namespace.mjs";
9
- const Q = /* @__PURE__ */ I({
4
+ import { Button as j, Empty as C } from "@aplus-frontend/antdv";
5
+ import { useAgGridModalInject as x } from "../hooks/use-ag-grid-instance.mjs";
6
+ import D from "../style/index.mjs";
7
+ import { useLocale as z } from "../../../config-provider/hooks/use-locale.mjs";
8
+ import { useNamespace as G } from "../../../config-provider/hooks/use-namespace.mjs";
9
+ const U = /* @__PURE__ */ M({
10
10
  __name: "index",
11
11
  props: {
12
12
  leftTitle: { type: [String, Object, Number, Boolean, null, Array], default: "" },
@@ -16,7 +16,7 @@ const Q = /* @__PURE__ */ I({
16
16
  layoutType: { default: void 0 }
17
17
  },
18
18
  setup(B) {
19
- const { t: f } = D(), d = j(), r = M(() => d?.selectedRows?.value || []), y = B, E = () => {
19
+ const { t: f } = z(), d = x(), r = O(() => d?.selectedRows?.value || []), y = B, E = () => {
20
20
  if (y.dividerOffset != null)
21
21
  return {
22
22
  "--ag-grid-modal-layout-divider-offset": `${y.dividerOffset}px`
@@ -25,10 +25,10 @@ const Q = /* @__PURE__ */ I({
25
25
  d?.clearAllSelected();
26
26
  }, u = (t) => {
27
27
  d?.removeSelected(t);
28
- }, { e: A, m: l } = z("ag-grid-modal"), N = x("ag-grid-modal");
29
- return (t, G) => t.layoutType === "two-column" ? (n(), m("div", {
28
+ }, { e: A, m: l, b: N } = G("ag-grid-modal"), I = D("ag-grid-modal");
29
+ return (t, P) => t.layoutType === "two-column" ? (n(), m("div", {
30
30
  key: 0,
31
- class: o([e(l)("table-layout"), t.bordered ? e(l)("bordered") : "", e(N)]),
31
+ class: o([e(N)(), e(l)("table-layout"), t.bordered ? e(l)("bordered") : "", e(I)]),
32
32
  style: g(E())
33
33
  }, [
34
34
  s("div", {
@@ -39,7 +39,7 @@ const Q = /* @__PURE__ */ I({
39
39
  style: { "margin-bottom": "16px" }
40
40
  }, {
41
41
  prefix: i(() => [
42
- (n(), v(O(V(b, [t.leftTitle]))))
42
+ (n(), v(V(w(b, [t.leftTitle]))))
43
43
  ]),
44
44
  _: 1
45
45
  })) : h("", !0),
@@ -62,7 +62,7 @@ const Q = /* @__PURE__ */ I({
62
62
  ])
63
63
  ]),
64
64
  suffix: i(() => [
65
- p(e(L), {
65
+ p(e(j), {
66
66
  type: "link",
67
67
  style: { padding: "0px", height: "22px", "border-width": "0px" },
68
68
  onClick: $
@@ -78,7 +78,7 @@ const Q = /* @__PURE__ */ I({
78
78
  s("div", {
79
79
  class: o(e(l)("table-layout-right-content"))
80
80
  }, [
81
- (n(!0), m(b, null, w(r.value, (c) => a(t.$slots, "renderSelectedItem", {
81
+ (n(!0), m(b, null, L(r.value, (c) => a(t.$slots, "renderSelectedItem", {
82
82
  key: c,
83
83
  record: c,
84
84
  actions: { deleteItem: u, deleteCurrent: () => u(c) }
@@ -103,5 +103,5 @@ const Q = /* @__PURE__ */ I({
103
103
  }
104
104
  });
105
105
  export {
106
- Q as default
106
+ U as default
107
107
  };
@@ -1,3 +1,6 @@
1
1
  import { ComputedRef } from 'vue';
2
+ export type AgGridModalToken = {
3
+ agGridModalRightWidth: number;
4
+ };
2
5
  declare const _default: (prefixCls: string) => ComputedRef<string>;
3
6
  export default _default;