@aplus-frontend/ui 7.6.0 → 7.7.1

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 (303) hide show
  1. package/es/src/ag-grid/components/tooltip/index.vue.d.ts +1 -1
  2. package/es/src/ag-grid/components/tooltip/index.vue2.mjs +12 -11
  3. package/es/src/ag-grid/hooks/use-columns-def.mjs +32 -31
  4. package/es/src/ag-grid/hooks/use-editable-api.mjs +9 -8
  5. package/es/src/ag-grid/hooks/use-editable-columns.mjs +26 -25
  6. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +11 -10
  7. package/es/src/ag-grid/index.vue.mjs +22 -21
  8. package/es/src/ag-grid/renderer/number.mjs +7 -7
  9. package/es/src/ag-grid/style/custom-header.mjs +3 -3
  10. package/es/src/ag-grid/style/index.mjs +1 -1
  11. package/es/src/ap-action/style/index.mjs +1 -1
  12. package/es/src/ap-drawer/style/index.mjs +12 -12
  13. package/es/src/ap-field/hooks/use-default-placeholder.mjs +5 -4
  14. package/es/src/ap-field/number/helper.mjs +1 -1
  15. package/es/src/ap-field/number/index.vue.mjs +9 -9
  16. package/es/src/ap-field/number/read.vue2.mjs +5 -5
  17. package/es/src/ap-field/style/checkbox.d.ts +2 -2
  18. package/es/src/ap-field/style/number.d.ts +2 -2
  19. package/es/src/ap-field/style/radio.d.ts +2 -2
  20. package/es/src/ap-field/style/textarea.d.ts +2 -2
  21. package/es/src/ap-field/switch/index.vue.mjs +4 -3
  22. package/es/src/ap-form/ap-form.vue2.mjs +18 -17
  23. package/es/src/ap-form/item/index.vue.mjs +6 -6
  24. package/es/src/ap-form/item-group/helper.mjs +8 -7
  25. package/es/src/ap-form/item-group/index.vue.mjs +15 -14
  26. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  27. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +24 -22
  28. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
  29. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +9 -8
  30. package/es/src/ap-form/search-form/index.vue.mjs +12 -11
  31. package/es/src/ap-form/set/index.vue.mjs +1 -1
  32. package/es/src/ap-form/style/item.mjs +15 -15
  33. package/es/src/ap-form/style/modal-form.mjs +2 -1
  34. package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
  35. package/es/src/ap-form/style/search-form.d.ts +7 -1
  36. package/es/src/ap-form/style/search-form.mjs +37 -34
  37. package/es/src/ap-grid/editable/form-item.vue.mjs +4 -3
  38. package/es/src/ap-grid/editable/index.vue.mjs +4 -3
  39. package/es/src/ap-grid/index.vue.mjs +13 -12
  40. package/es/src/ap-grid/style/editable.mjs +7 -7
  41. package/es/src/ap-grid/style/index.mjs +11 -11
  42. package/es/src/ap-grid/utils/table.mjs +14 -13
  43. package/es/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  44. package/es/src/ap-list/hooks/use-offline-list.mjs +13 -12
  45. package/es/src/ap-list/style/index.mjs +1 -1
  46. package/es/src/ap-pro-card/style/divider.mjs +2 -2
  47. package/es/src/ap-pro-card/style/index.mjs +14 -14
  48. package/es/src/ap-pro-card/style/operation.mjs +1 -2
  49. package/es/src/ap-pro-card/style/statistic.mjs +12 -12
  50. package/es/src/ap-pro-card/style/statistics-card.mjs +13 -13
  51. package/es/src/ap-pro-card/style/title.mjs +13 -33
  52. package/es/src/ap-table/ap-table.vue2.mjs +4 -3
  53. package/es/src/ap-table/hooks/use-table-column-state.mjs +23 -22
  54. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  55. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +4 -3
  56. package/es/src/ap-table/style/index-comp.d.ts +2 -1
  57. package/es/src/ap-table/style/index-comp.mjs +15 -12
  58. package/es/src/ap-table/style/index.d.ts +3 -0
  59. package/es/src/ap-table/style/index.mjs +14 -11
  60. package/es/src/ap-table/style/setting.d.ts +2 -1
  61. package/es/src/ap-table/style/setting.mjs +73 -61
  62. package/es/src/ap-table/utils.mjs +61 -62
  63. package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +15 -15
  64. package/es/src/business/ag-grid-modal/style/index.d.ts +3 -0
  65. package/es/src/business/ag-grid-modal/style/index.mjs +24 -20
  66. package/es/src/business/ag-grid-modal/style/selected-items.mjs +8 -8
  67. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +26 -27
  68. package/es/src/business/ap-appendix/style/index.mjs +20 -21
  69. package/es/src/business/ap-attachment/style/index.d.ts +6 -0
  70. package/es/src/business/ap-attachment/style/index.mjs +28 -25
  71. package/es/src/business/ap-batch-action/style/index.d.ts +2 -2
  72. package/es/src/business/ap-batch-action/style/index.mjs +18 -18
  73. package/es/src/business/ap-card/style/index.d.ts +2 -2
  74. package/es/src/business/ap-card/style/index.mjs +8 -8
  75. package/es/src/business/ap-copy/style/index.mjs +16 -22
  76. package/es/src/business/ap-descriptions/formatter/index.mjs +1 -1
  77. package/es/src/business/ap-descriptions/style/index.mjs +6 -5
  78. package/es/src/business/ap-download/style/index.mjs +4 -4
  79. package/es/src/business/ap-draggable-grid/style/index.mjs +7 -7
  80. package/es/src/business/ap-expand-alert/style/index.mjs +30 -26
  81. package/es/src/business/ap-image/style/index.d.ts +2 -2
  82. package/es/src/business/ap-image/style/index.mjs +8 -7
  83. package/es/src/business/ap-input-radio/style/index.mjs +1 -1
  84. package/es/src/business/ap-label/style/index.d.ts +14 -0
  85. package/es/src/business/ap-label/style/index.mjs +29 -19
  86. package/es/src/business/ap-ladder/style/index.mjs +7 -6
  87. package/es/src/business/ap-product-info/style/index.d.ts +10 -0
  88. package/es/src/business/ap-product-info/style/index.mjs +35 -28
  89. package/es/src/business/ap-radio-group/style/index.mjs +3 -3
  90. package/es/src/business/ap-select-layout/style/index.d.ts +6 -0
  91. package/es/src/business/ap-select-layout/style/index.mjs +59 -53
  92. package/es/src/business/ap-size-input/style/index.mjs +3 -3
  93. package/es/src/business/ap-status/style/index.mjs +1 -1
  94. package/es/src/business/ap-summary/style/index.d.ts +10 -0
  95. package/es/src/business/ap-summary/style/index.mjs +18 -11
  96. package/es/src/business/ap-table-modal/style/index.d.ts +11 -1
  97. package/es/src/business/ap-table-modal/style/index.mjs +17 -12
  98. package/es/src/business/ap-tag/style/index.mjs +33 -31
  99. package/es/src/business/ap-title/style/index.d.ts +2 -1
  100. package/es/src/business/ap-title/style/index.mjs +41 -49
  101. package/es/src/business/ap-upload/style/index.mjs +10 -5
  102. package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  103. package/es/src/business/ap-upload/style/multiple-file.mjs +8 -7
  104. package/es/src/business/ap-upload/style/picture.d.ts +3 -2
  105. package/es/src/business/ap-upload/style/picture.mjs +26 -26
  106. package/es/src/business/ap-upload/style/single-file.d.ts +3 -2
  107. package/es/src/business/ap-upload/style/single-file.mjs +30 -29
  108. package/es/src/business/ap-upload/style/token.d.ts +19 -0
  109. package/es/src/business/ap-upload/style/token.mjs +9 -0
  110. package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  111. package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +51 -42
  112. package/es/src/business/ap-value-select-card/style/index.mjs +45 -43
  113. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +14 -14
  114. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +35 -34
  115. package/es/src/business/ap-view/style/index.d.ts +6 -2
  116. package/es/src/business/ap-view/style/index.mjs +43 -35
  117. package/es/src/business/batch-input-group/index.vue.mjs +23 -22
  118. package/es/src/business/batch-input-group/style/index.mjs +2 -2
  119. package/es/src/check-card/style/index.mjs +17 -17
  120. package/es/src/design-token/constants.mjs +9 -1
  121. package/es/src/design-token/interface.d.ts +137 -12
  122. package/es/src/editable-table/form-item.vue.mjs +4 -3
  123. package/es/src/editable-table/index.vue.mjs +4 -3
  124. package/es/src/editable-table/style/index.mjs +11 -11
  125. package/es/src/editable-table/utils.d.ts +1 -1
  126. package/es/src/editable-table/utils.mjs +27 -26
  127. package/es/src/hooks/useMessage.mjs +4 -4
  128. package/es/src/loading-bar/index.vue2.mjs +4 -3
  129. package/es/src/loading-bar/style/index.mjs +10 -10
  130. package/es/src/scroll-view/hooks/use-scroll-smooth.mjs +10 -9
  131. package/es/src/scroll-view/index.vue.mjs +4 -3
  132. package/es/src/splitter/style/index.mjs +11 -11
  133. package/es/src/text/index.vue.mjs +8 -7
  134. package/es/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  135. package/es/src/utils/cssinjs/TokenUtil.mjs +3 -0
  136. package/es/src/utils/decimal.d.ts +36 -0
  137. package/es/src/utils/decimal.mjs +45 -0
  138. package/es/src/utils/format.d.ts +21 -0
  139. package/es/src/utils/format.mjs +32 -0
  140. package/es/src/utils/index.d.ts +2 -1
  141. package/es/src/utils/index.mjs +20 -22
  142. package/es/src/utils/is.d.ts +54 -0
  143. package/es/src/utils/is.mjs +26 -0
  144. package/es/src/utils/slot.mjs +1 -2
  145. package/es/src/version.d.ts +1 -1
  146. package/es/src/version.mjs +1 -1
  147. package/lib/src/ag-grid/components/tooltip/index.vue.d.ts +1 -1
  148. package/lib/src/ag-grid/components/tooltip/index.vue2.js +1 -1
  149. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  150. package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
  151. package/lib/src/ag-grid/hooks/use-editable-columns.js +1 -1
  152. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  153. package/lib/src/ag-grid/index.vue.js +1 -1
  154. package/lib/src/ag-grid/renderer/number.js +1 -1
  155. package/lib/src/ag-grid/style/custom-header.js +1 -1
  156. package/lib/src/ag-grid/style/index.js +1 -1
  157. package/lib/src/ap-action/style/index.js +1 -1
  158. package/lib/src/ap-drawer/style/index.js +1 -1
  159. package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
  160. package/lib/src/ap-field/number/helper.js +1 -1
  161. package/lib/src/ap-field/number/index.vue.js +1 -1
  162. package/lib/src/ap-field/number/read.vue2.js +1 -1
  163. package/lib/src/ap-field/style/checkbox.d.ts +2 -2
  164. package/lib/src/ap-field/style/number.d.ts +2 -2
  165. package/lib/src/ap-field/style/radio.d.ts +2 -2
  166. package/lib/src/ap-field/style/textarea.d.ts +2 -2
  167. package/lib/src/ap-field/switch/index.vue.js +1 -1
  168. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  169. package/lib/src/ap-form/item/index.vue.js +1 -1
  170. package/lib/src/ap-form/item-group/helper.js +1 -1
  171. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  172. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  173. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  174. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  175. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  176. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  177. package/lib/src/ap-form/set/index.vue.js +1 -1
  178. package/lib/src/ap-form/style/item.js +1 -1
  179. package/lib/src/ap-form/style/modal-form.js +1 -1
  180. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  181. package/lib/src/ap-form/style/search-form.d.ts +7 -1
  182. package/lib/src/ap-form/style/search-form.js +1 -1
  183. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  184. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  185. package/lib/src/ap-grid/index.vue.js +1 -1
  186. package/lib/src/ap-grid/style/editable.js +1 -1
  187. package/lib/src/ap-grid/style/index.js +1 -1
  188. package/lib/src/ap-grid/utils/table.js +1 -1
  189. package/lib/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  190. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  191. package/lib/src/ap-list/style/index.js +1 -1
  192. package/lib/src/ap-pro-card/style/divider.js +1 -1
  193. package/lib/src/ap-pro-card/style/index.js +1 -1
  194. package/lib/src/ap-pro-card/style/operation.js +1 -1
  195. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  196. package/lib/src/ap-pro-card/style/statistics-card.js +1 -1
  197. package/lib/src/ap-pro-card/style/title.js +1 -1
  198. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  199. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  200. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  201. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  202. package/lib/src/ap-table/style/index-comp.d.ts +2 -1
  203. package/lib/src/ap-table/style/index-comp.js +1 -1
  204. package/lib/src/ap-table/style/index.d.ts +3 -0
  205. package/lib/src/ap-table/style/index.js +1 -1
  206. package/lib/src/ap-table/style/setting.d.ts +2 -1
  207. package/lib/src/ap-table/style/setting.js +1 -1
  208. package/lib/src/ap-table/utils.js +1 -1
  209. package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
  210. package/lib/src/business/ag-grid-modal/style/index.d.ts +3 -0
  211. package/lib/src/business/ag-grid-modal/style/index.js +1 -1
  212. package/lib/src/business/ag-grid-modal/style/selected-items.js +1 -1
  213. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  214. package/lib/src/business/ap-appendix/style/index.js +1 -1
  215. package/lib/src/business/ap-attachment/style/index.d.ts +6 -0
  216. package/lib/src/business/ap-attachment/style/index.js +1 -1
  217. package/lib/src/business/ap-batch-action/style/index.d.ts +2 -2
  218. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  219. package/lib/src/business/ap-card/style/index.d.ts +2 -2
  220. package/lib/src/business/ap-card/style/index.js +1 -1
  221. package/lib/src/business/ap-copy/style/index.js +1 -1
  222. package/lib/src/business/ap-descriptions/formatter/index.js +1 -1
  223. package/lib/src/business/ap-descriptions/style/index.js +1 -1
  224. package/lib/src/business/ap-download/style/index.js +1 -1
  225. package/lib/src/business/ap-draggable-grid/style/index.js +1 -1
  226. package/lib/src/business/ap-expand-alert/style/index.js +1 -1
  227. package/lib/src/business/ap-image/style/index.d.ts +2 -2
  228. package/lib/src/business/ap-image/style/index.js +1 -1
  229. package/lib/src/business/ap-input-radio/style/index.js +1 -1
  230. package/lib/src/business/ap-label/style/index.d.ts +14 -0
  231. package/lib/src/business/ap-label/style/index.js +1 -1
  232. package/lib/src/business/ap-ladder/style/index.js +1 -1
  233. package/lib/src/business/ap-product-info/style/index.d.ts +10 -0
  234. package/lib/src/business/ap-product-info/style/index.js +1 -1
  235. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  236. package/lib/src/business/ap-select-layout/style/index.d.ts +6 -0
  237. package/lib/src/business/ap-select-layout/style/index.js +1 -1
  238. package/lib/src/business/ap-size-input/style/index.js +1 -1
  239. package/lib/src/business/ap-status/style/index.js +1 -1
  240. package/lib/src/business/ap-summary/style/index.d.ts +10 -0
  241. package/lib/src/business/ap-summary/style/index.js +1 -1
  242. package/lib/src/business/ap-table-modal/style/index.d.ts +11 -1
  243. package/lib/src/business/ap-table-modal/style/index.js +1 -1
  244. package/lib/src/business/ap-tag/style/index.js +1 -1
  245. package/lib/src/business/ap-title/style/index.d.ts +2 -1
  246. package/lib/src/business/ap-title/style/index.js +1 -1
  247. package/lib/src/business/ap-upload/style/index.js +1 -1
  248. package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  249. package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
  250. package/lib/src/business/ap-upload/style/picture.d.ts +3 -2
  251. package/lib/src/business/ap-upload/style/picture.js +1 -1
  252. package/lib/src/business/ap-upload/style/single-file.d.ts +3 -2
  253. package/lib/src/business/ap-upload/style/single-file.js +1 -1
  254. package/lib/src/business/ap-upload/style/token.d.ts +19 -0
  255. package/lib/src/business/ap-upload/style/token.js +1 -0
  256. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  257. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
  258. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  259. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  260. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  261. package/lib/src/business/ap-view/style/index.d.ts +6 -2
  262. package/lib/src/business/ap-view/style/index.js +1 -1
  263. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  264. package/lib/src/business/batch-input-group/style/index.js +1 -1
  265. package/lib/src/check-card/style/index.js +1 -1
  266. package/lib/src/design-token/constants.js +1 -1
  267. package/lib/src/design-token/interface.d.ts +137 -12
  268. package/lib/src/editable-table/form-item.vue.js +1 -1
  269. package/lib/src/editable-table/index.vue.js +1 -1
  270. package/lib/src/editable-table/style/index.js +1 -1
  271. package/lib/src/editable-table/utils.d.ts +1 -1
  272. package/lib/src/editable-table/utils.js +1 -1
  273. package/lib/src/hooks/useMessage.js +1 -1
  274. package/lib/src/loading-bar/index.vue2.js +1 -1
  275. package/lib/src/loading-bar/style/index.js +3 -3
  276. package/lib/src/scroll-view/hooks/use-scroll-smooth.js +1 -1
  277. package/lib/src/scroll-view/index.vue.js +1 -1
  278. package/lib/src/splitter/style/index.js +1 -1
  279. package/lib/src/text/index.vue.js +1 -1
  280. package/lib/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  281. package/lib/src/utils/cssinjs/TokenUtil.js +1 -1
  282. package/lib/src/utils/decimal.d.ts +36 -0
  283. package/lib/src/utils/decimal.js +1 -0
  284. package/lib/src/utils/format.d.ts +21 -0
  285. package/lib/src/utils/format.js +1 -0
  286. package/lib/src/utils/index.d.ts +2 -1
  287. package/lib/src/utils/index.js +1 -1
  288. package/lib/src/utils/is.d.ts +54 -0
  289. package/lib/src/utils/is.js +1 -0
  290. package/lib/src/utils/slot.js +1 -1
  291. package/lib/src/version.d.ts +1 -1
  292. package/lib/src/version.js +1 -1
  293. package/package.json +4 -4
  294. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  295. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +0 -18
  296. package/es/src/utils/copy-text-to-clipboard.d.ts +0 -1
  297. package/es/src/utils/tree.d.ts +0 -38
  298. package/es/src/utils/uuid.d.ts +0 -2
  299. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  300. package/lib/src/business/ap-appendix/icons/file-icon.vue.js +0 -1
  301. package/lib/src/utils/copy-text-to-clipboard.d.ts +0 -1
  302. package/lib/src/utils/tree.d.ts +0 -38
  303. package/lib/src/utils/uuid.d.ts +0 -2
@@ -2,5 +2,5 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  type __VLS_Props = {
3
3
  params: any;
4
4
  };
5
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
6
6
  export default _default;
@@ -1,29 +1,30 @@
1
- import { defineComponent as p, ref as m, onMounted as u, createElementBlock as d, createCommentVNode as f, openBlock as g, normalizeClass as v, unref as C, toDisplayString as _ } from "vue";
1
+ import { defineComponent as p, ref as u, onMounted as m, withDirectives as d, openBlock as v, createElementBlock as f, normalizeClass as g, unref as h, toDisplayString as w, vShow as _ } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
3
  import { useNamespace as x } from "../../../config-provider/hooks/use-namespace.mjs";
4
- const w = /* @__PURE__ */ p({
4
+ const k = /* @__PURE__ */ p({
5
5
  __name: "index",
6
6
  props: {
7
7
  params: {}
8
8
  },
9
9
  setup(l) {
10
- const n = l, e = m(!1), { e: s } = x("ag-grid");
11
- return u(() => {
12
- const { rowIndex: o, column: t, gridWrapperRef: c, lineClamp: i } = n.params, r = c.value?.querySelector(
10
+ const n = l, e = u(!1), { e: i } = x("ag-grid");
11
+ return m(() => {
12
+ const { rowIndex: o, column: t, gridWrapperRef: s, lineClamp: c } = n.params, r = s.value?.querySelector(
13
13
  `div.ag-row[row-index="${o}"] .ag-cell[col-id="${t.colId}"] span.ag-cell-value`
14
14
  );
15
15
  if (!r) {
16
16
  e.value = !0;
17
17
  return;
18
18
  }
19
- const a = i === 1 ? "Width" : "Height";
19
+ const a = c === 1 ? "Width" : "Height";
20
20
  e.value = r[`scroll${a}`] > r[`client${a}`];
21
- }), (o, t) => e.value ? (g(), d("div", {
22
- key: 0,
23
- class: v(C(s)("tooltip"))
24
- }, _(o.params.value), 3)) : f("", !0);
21
+ }), (o, t) => d((v(), f("div", {
22
+ class: g(h(i)("tooltip"))
23
+ }, w(o.params.value), 3)), [
24
+ [_, e.value]
25
+ ]);
25
26
  }
26
27
  });
27
28
  export {
28
- w as default
29
+ k as default
29
30
  };
@@ -1,35 +1,36 @@
1
1
  import { getTableRenderProps as c, objectToString as S } from "../../ap-table/utils.mjs";
2
2
  import { rendererMap as x } from "../renderer/index.mjs";
3
- import { isNumber as u, isFunction as b } from "lodash-unified";
3
+ import { isNumber as u, isFunction as m } from "lodash-unified";
4
4
  import { ref as D, unref as v, computed as y } from "vue";
5
5
  import "../components/body-cell/index.vue.mjs";
6
6
  import "../components/header-cell/index.vue.mjs";
7
7
  import "../components/tooltip/index.vue.mjs";
8
8
  import "../../config-provider/index.mjs";
9
9
  import { dataIndexToField as P } from "../../ap-grid/utils/col.mjs";
10
- import { isDef as I } from "../../utils/index.mjs";
11
- import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
12
- import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
13
- import W from "../components/body-cell/index.vue2.mjs";
14
- import z from "../components/tooltip/index.vue2.mjs";
10
+ import "../../utils/index.mjs";
11
+ import { useGlobalConfig as I } from "../../config-provider/hooks/use-global-config.mjs";
12
+ import { useNamespace as _ } from "../../config-provider/hooks/use-namespace.mjs";
13
+ import G from "../components/body-cell/index.vue2.mjs";
14
+ import W from "../components/tooltip/index.vue2.mjs";
15
+ import { isDef as z } from "../../utils/is.mjs";
15
16
  import h from "../components/header-cell/index.vue2.mjs";
16
17
  function F(t) {
17
18
  return u(t) && t > 1;
18
19
  }
19
- function M(t, a) {
20
- if (a.bodyCellTooltip)
21
- return b(a.bodyCellTooltip) ? a.bodyCellTooltip(t.value, t.data) : a.bodyCellTooltip;
22
- if (a.renderText)
23
- return a.renderText({
20
+ function M(t, i) {
21
+ if (i.bodyCellTooltip)
22
+ return m(i.bodyCellTooltip) ? i.bodyCellTooltip(t.value, t.data) : i.bodyCellTooltip;
23
+ if (i.renderText)
24
+ return i.renderText({
24
25
  value: t.value,
25
26
  record: t.data,
26
- column: a,
27
+ column: i,
27
28
  text: t.value
28
29
  });
29
- const d = a.valueType || "text", p = x[d];
30
+ const d = i.valueType || "text", p = x[d];
30
31
  if (p) {
31
32
  const f = c(
32
- { ...a, valueType: d },
33
+ { ...i, valueType: d },
33
34
  {
34
35
  value: t.value,
35
36
  text: t.value,
@@ -43,18 +44,18 @@ function M(t, a) {
43
44
  }
44
45
  return S(t.value);
45
46
  }
46
- const X = (t, a, d) => {
47
- const p = _("valueTypeMap"), C = D(), { em: f } = G("ag-grid"), m = (r) => {
48
- const i = {
49
- cellRenderer: W,
47
+ const Y = (t, i, d) => {
48
+ const p = I("valueTypeMap"), C = D(), { em: f } = _("ag-grid"), b = (r) => {
49
+ const a = {
50
+ cellRenderer: G,
50
51
  cellRendererParams: {
51
52
  column: r,
52
53
  extraValueType: v(p),
53
- rowKey: a.rowKey
54
+ rowKey: i.rowKey
54
55
  }
55
56
  };
56
57
  if (r.customRender)
57
- return i;
58
+ return a;
58
59
  if (r.renderText)
59
60
  return {
60
61
  valueFormatter: (o) => r.renderText({
@@ -80,22 +81,22 @@ const X = (t, a, d) => {
80
81
  );
81
82
  return e(s);
82
83
  }
83
- } : i;
84
+ } : a;
84
85
  }, w = (r) => {
85
- const i = r.valueType || "text", l = x[i], e = {}, o = r.bodyCellTooltip || !r.customRender && l && (r.ellipsis === !0 || r.ellipsis === "tooltip" || u(r.ellipsis)), s = u(r.ellipsis) && r.ellipsis > 1, n = u(r.ellipsis) ? r.ellipsis : 1;
86
+ const a = r.valueType || "text", l = x[a], e = {}, o = r.bodyCellTooltip || !r.customRender && l && (r.ellipsis === !0 || r.ellipsis === "tooltip" || u(r.ellipsis)), s = u(r.ellipsis) && r.ellipsis > 1, n = u(r.ellipsis) ? r.ellipsis : 1;
86
87
  return e.tooltipValueGetter = o ? (T) => M(T, r) : void 0, e.wrapText = !r.ellipsis || s, e.cellStyle = {
87
88
  "--ag-grid-line-clamp": n
88
- }, e.tooltipComponent = z, e.tooltipComponentParams = {
89
+ }, e.tooltipComponent = W, e.tooltipComponentParams = {
89
90
  lineClamp: n,
90
91
  gridWrapperRef: C
91
92
  }, e;
92
93
  }, g = y(() => {
93
94
  const r = v(t);
94
- function i(l) {
95
+ function a(l) {
95
96
  return l.map((e) => {
96
97
  const o = {
97
98
  field: P(e.dataIndex),
98
- colId: I(e.key) ? String(e.key) : void 0,
99
+ colId: z(e.key) ? String(e.key) : void 0,
99
100
  sortable: !!e.sorter,
100
101
  comparator: e.sorter === !0 ? () => 0 : e.sorter,
101
102
  headerComponentParams: {
@@ -112,7 +113,7 @@ const X = (t, a, d) => {
112
113
  colSpan: e.colSpan,
113
114
  spanRows: e.spanRows,
114
115
  cellClass: d((s) => {
115
- const n = e.cellClass || "", T = b(n) ? n(s.data, s.node) : n;
116
+ const n = e.cellClass || "", T = m(n) ? n(s.data, s.node) : n;
116
117
  return [
117
118
  `${f("cell", e.align || "left")}`,
118
119
  F(e.ellipsis) ? f("cell", "multiline") : null,
@@ -125,7 +126,7 @@ const X = (t, a, d) => {
125
126
  autoHeight: !0,
126
127
  // 设置自动计算高度以自适应多行换行的场景
127
128
  ...w(e),
128
- ...m(e)
129
+ ...b(e)
129
130
  };
130
131
  return e.children?.length ? {
131
132
  ...o,
@@ -133,15 +134,15 @@ const X = (t, a, d) => {
133
134
  headerGroupComponentParams: {
134
135
  column: e
135
136
  },
136
- children: i(e.children)
137
+ children: a(e.children)
137
138
  } : o;
138
139
  });
139
140
  }
140
- return i(r);
141
+ return a(r);
141
142
  }), R = y(
142
143
  () => ({
143
144
  headerComponent: h,
144
- resizable: a.columnResizable,
145
+ resizable: i.columnResizable,
145
146
  suppressMovable: !0,
146
147
  cellDataType: !1
147
148
  })
@@ -153,5 +154,5 @@ const X = (t, a, d) => {
153
154
  };
154
155
  };
155
156
  export {
156
- X as useColumnsDef
157
+ Y as useColumnsDef
157
158
  };
@@ -1,16 +1,17 @@
1
1
  import { shallowRef as _, computed as S, unref as d, isRef as z } from "vue";
2
- import { isDef as h } from "../../utils/index.mjs";
3
- import { isFunction as x, isUndefined as A, isNumber as K, cloneDeep as E, isArray as I, isString as N } from "lodash-unified";
2
+ import "../../utils/index.mjs";
3
+ import { isFunction as h, isUndefined as A, isNumber as K, cloneDeep as E, isArray as x, isString as N } from "lodash-unified";
4
4
  import { arrayToObject as U } from "../editable/utils.mjs";
5
+ import { isDef as I } from "../../utils/is.mjs";
5
6
  let $ = 0;
6
7
  function R() {
7
8
  return `_ag_grid${$++}`;
8
9
  }
9
- const J = (n, m, i, g) => {
10
+ const P = (n, m, i, g) => {
10
11
  const w = _([]), y = S(() => z(m) ? d(m) : m);
11
12
  function F(u, r) {
12
13
  const l = d(i)?.length || 0;
13
- if (h(n.maxLength) && l >= n.maxLength || !u && x(n.rowKey))
14
+ if (I(n.maxLength) && l >= n.maxLength || !u && h(n.rowKey))
14
15
  return;
15
16
  const f = {
16
17
  ...u || { [n.rowKey]: R() }
@@ -33,7 +34,7 @@ const J = (n, m, i, g) => {
33
34
  }
34
35
  function j(u, r = "suffix") {
35
36
  const l = d(i)?.length || 0, f = K(u) ? u : u.length;
36
- if (h(n.maxLength) && l + f > n.maxLength || K(u) && x(n.rowKey))
37
+ if (I(n.maxLength) && l + f > n.maxLength || K(u) && h(n.rowKey))
37
38
  return;
38
39
  const o = K(u) ? new Array(u).fill(0).map(() => ({ [n.rowKey]: R() })) : E(u), s = U(o, n.rowKey);
39
40
  y.value?.setFieldValue?.(
@@ -52,7 +53,7 @@ const J = (n, m, i, g) => {
52
53
  );
53
54
  }
54
55
  function k(u) {
55
- const r = I(u) ? u : [u];
56
+ const r = x(u) ? u : [u];
56
57
  y.value?.setFieldValue?.(
57
58
  n.name,
58
59
  void 0,
@@ -78,7 +79,7 @@ const J = (n, m, i, g) => {
78
79
  return N(l) ? u[l] : l(u, r);
79
80
  }
80
81
  function L(u) {
81
- const r = new Set(I(u) ? u : [u]);
82
+ const r = new Set(x(u) ? u : [u]);
82
83
  r.size !== 0 && y.value?.setFieldValue?.(
83
84
  n.name,
84
85
  void 0,
@@ -146,5 +147,5 @@ const J = (n, m, i, g) => {
146
147
  };
147
148
  };
148
149
  export {
149
- J as useEditableApi
150
+ P as useEditableApi
150
151
  };
@@ -3,30 +3,31 @@ import { isArray as m, isFunction as E } from "lodash-unified";
3
3
  import { mergeClass as F, getColumnIsRequired as v } from "../../editable-table/utils.mjs";
4
4
  import { updateFormProps as y, getFieldProps as q } from "../../ap-table/utils.mjs";
5
5
  import { getFinalEditableNode as A } from "../../ap-grid/utils/editable.mjs";
6
- import { isDef as K } from "../../utils/index.mjs";
7
- import { getRowKey as M } from "../editable/utils.mjs";
8
- function b(t, i, r) {
9
- t.__skipNextRefresh ? t.__skipNextRefresh[i] = r : t.__skipNextRefresh = { [i]: r };
6
+ import "../../utils/index.mjs";
7
+ import { getRowKey as K } from "../editable/utils.mjs";
8
+ import { isDef as M } from "../../utils/is.mjs";
9
+ function b(t, n, i) {
10
+ t.__skipNextRefresh ? t.__skipNextRefresh[n] = i : t.__skipNextRefresh = { [n]: i };
10
11
  }
11
- function S(t, i, r) {
12
- t.__prevEditable ? t.__prevEditable[i] = r : t.__prevEditable = { [i]: r };
12
+ function S(t, n, i) {
13
+ t.__prevEditable ? t.__prevEditable[n] = i : t.__prevEditable = { [n]: i };
13
14
  }
14
- const J = (t, i, r) => {
15
+ const L = (t, n, i) => {
15
16
  function I(e) {
16
- const s = e.editable, o = r ? [r] : m(t.name) ? t.name : [t.name];
17
+ const s = e.editable, o = i ? [i] : m(t.name) ? t.name : [t.name];
17
18
  return !s || e.children?.length ? {
18
19
  _path: [...o]
19
20
  } : {
20
- customRender({ value: d, originalNode: C, params: a, ...n }) {
21
+ customRender({ value: d, originalNode: C, params: a, ...r }) {
21
22
  const c = E(e.editable) ? e.editable(
22
- n.text,
23
- n.record,
24
- n.rowIndex
23
+ r.text,
24
+ r.record,
25
+ r.rowIndex
25
26
  ) : !!e.editable;
26
27
  let u = C;
27
- const R = m(e.dataIndex) ? e.dataIndex : [e.dataIndex], x = M(
28
- n.record,
29
- n.rowIndex,
28
+ const R = m(e.dataIndex) ? e.dataIndex : [e.dataIndex], x = K(
29
+ r.record,
30
+ r.rowIndex,
30
31
  t.rowKey
31
32
  );
32
33
  if (c) {
@@ -34,11 +35,11 @@ const J = (t, i, r) => {
34
35
  e,
35
36
  q(e.fieldProps, {
36
37
  value: d,
37
- ...n
38
+ ...r
38
39
  })
39
40
  ), h = {};
40
41
  t.onFieldChange && (h[`onUpdate:${_.valuePropName || "value"}`] = (N) => t.onFieldChange?.(
41
- n.rowIndex,
42
+ r.rowIndex,
42
43
  e.dataIndex,
43
44
  N
44
45
  ));
@@ -55,21 +56,21 @@ const J = (t, i, r) => {
55
56
  u = A(
56
57
  e,
57
58
  p,
58
- n.record,
59
- k(i)
59
+ r.record,
60
+ k(n)
60
61
  );
61
62
  }
62
63
  e.customRender && (u = e.customRender({
63
64
  value: d,
64
- ...n,
65
+ ...r,
65
66
  editable: c,
66
67
  originalNode: u,
67
- index: n.rowIndex,
68
- renderIndex: n.rowIndex,
68
+ index: r.rowIndex,
69
+ renderIndex: r.rowIndex,
69
70
  path: [...o, String(x)]
70
71
  }));
71
72
  const l = a.node, f = a.column.getColId(), g = l.__prevEditable?.[f];
72
- return !l.__skipNextRefresh?.[f] && K(g) && g !== c && (b(l, f, !0), setTimeout(() => {
73
+ return !l.__skipNextRefresh?.[f] && M(g) && g !== c && (b(l, f, !0), setTimeout(() => {
73
74
  a?.api.refreshCells({
74
75
  rowNodes: [a.node],
75
76
  columns: [a.column.getColId()],
@@ -97,6 +98,6 @@ const J = (t, i, r) => {
97
98
  });
98
99
  };
99
100
  export {
100
- J as default,
101
- J as useGetEditableColumns
101
+ L as default,
102
+ L as useGetEditableColumns
102
103
  };
@@ -1,16 +1,17 @@
1
1
  import { shallowRef as E, unref as d } from "vue";
2
- import { isDef as F } from "../../utils/index.mjs";
3
- import { isFunction as x, isUndefined as V, isNumber as h, cloneDeep as S, isArray as R } from "lodash-unified";
2
+ import "../../utils/index.mjs";
3
+ import { isFunction as F, isUndefined as x, isNumber as h, cloneDeep as S, isArray as V } from "lodash-unified";
4
4
  import { getRowKey as y, arrayToObject as U } from "../editable/utils.mjs";
5
+ import { isDef as R } from "../../utils/is.mjs";
5
6
  let $ = 0;
6
7
  function I() {
7
8
  return `_ag_grid${$++}`;
8
9
  }
9
- const J = (l, c, n, w) => {
10
+ const P = (l, c, n, w) => {
10
11
  const K = E([]);
11
12
  function j(f, s) {
12
13
  const v = d(n)?.length || 0;
13
- if (F(l.maxLength) && v >= l.maxLength || !f && x(l.rowKey))
14
+ if (R(l.maxLength) && v >= l.maxLength || !f && F(l.rowKey))
14
15
  return;
15
16
  const t = {
16
17
  ...f || { [l.rowKey]: I() }
@@ -21,7 +22,7 @@ const J = (l, c, n, w) => {
21
22
  !1,
22
23
  (i, r) => {
23
24
  const e = y(t, void 0, l.rowKey);
24
- i[r] ? i[r][e] = t : i[r] = { [e]: t }, n.value ? V(s) ? n.value.push(t) : (K.value = n.value.map(
25
+ i[r] ? i[r][e] = t : i[r] = { [e]: t }, n.value ? x(s) ? n.value.push(t) : (K.value = n.value.map(
25
26
  (u, o) => o < s ? null : y(u, o, l.rowKey)
26
27
  ).filter(Boolean), n.value.splice(s, 0, t)) : n.value = [t], c?.setFieldValue(
27
28
  l.name,
@@ -32,7 +33,7 @@ const J = (l, c, n, w) => {
32
33
  u[o] = [t];
33
34
  return;
34
35
  }
35
- V(s) ? u[o].push(t) : u[o].splice(s, 0, t);
36
+ x(s) ? u[o].push(t) : u[o].splice(s, 0, t);
36
37
  }
37
38
  );
38
39
  }
@@ -42,7 +43,7 @@ const J = (l, c, n, w) => {
42
43
  if (!f)
43
44
  return;
44
45
  const v = d(n)?.length || 0, t = h(f) ? f : f.length;
45
- if (F(l.maxLength) && v + t > l.maxLength || h(f) && x(l.rowKey))
46
+ if (R(l.maxLength) && v + t > l.maxLength || h(f) && F(l.rowKey))
46
47
  return;
47
48
  const i = h(f) ? new Array(f).fill(0).map(() => ({ [l.rowKey]: I() })) : S(f), r = U(i, l.rowKey);
48
49
  c?.setFieldValue(
@@ -68,7 +69,7 @@ const J = (l, c, n, w) => {
68
69
  );
69
70
  }
70
71
  function L(f) {
71
- const s = R(f) ? f : [f];
72
+ const s = V(f) ? f : [f];
72
73
  c?.setFieldValue(
73
74
  w,
74
75
  void 0,
@@ -97,7 +98,7 @@ const J = (l, c, n, w) => {
97
98
  );
98
99
  }
99
100
  function O(f) {
100
- const s = new Set(R(f) ? f : [f]);
101
+ const s = new Set(V(f) ? f : [f]);
101
102
  s.size !== 0 && c?.setFieldValue(
102
103
  w,
103
104
  void 0,
@@ -172,5 +173,5 @@ const J = (l, c, n, w) => {
172
173
  };
173
174
  };
174
175
  export {
175
- J as useEditableFormItemApi
176
+ P as useEditableFormItemApi
176
177
  };
@@ -16,22 +16,23 @@ import { useToken as Zo } from "@aplus-frontend/antdv/es/theme/internal";
16
16
  import { useTheme as et } from "./theme.mjs";
17
17
  import { useColumns as ot } from "./hooks/use-columns.mjs";
18
18
  import { useColumnsDef as tt } from "./hooks/use-columns-def.mjs";
19
- import { isDef as rt } from "../utils/index.mjs";
20
- import { getValidVNodeList as lt } from "../utils/slot.mjs";
21
- import { useSearchForm as at } from "./hooks/use-search-form.mjs";
19
+ import "../utils/index.mjs";
20
+ import { getValidVNodeList as rt } from "../utils/slot.mjs";
21
+ import { useSearchForm as lt } from "./hooks/use-search-form.mjs";
22
22
  import "./components/empty/index.vue.mjs";
23
- import nt from "./hooks/use-virtual-config.mjs";
24
- import { usePinnedRow as st } from "./hooks/use-pinned-row.mjs";
25
- import it from "./hooks/use-selection-col-def.mjs";
23
+ import at from "./hooks/use-virtual-config.mjs";
24
+ import { usePinnedRow as nt } from "./hooks/use-pinned-row.mjs";
25
+ import st from "./hooks/use-selection-col-def.mjs";
26
26
  import "./components/row/index.vue.mjs";
27
- import ut from "./style/index.mjs";
28
- import { AG_GRID_LOCALE_EN as dt, AG_GRID_LOCALE_CN as ct } from "@ag-grid-community/locale";
29
- import { useNamespace as mt } from "../config-provider/hooks/use-namespace.mjs";
30
- import { useLocale as pt } from "../config-provider/hooks/use-locale.mjs";
31
- import { useGlobalConfig as ft } from "../config-provider/hooks/use-global-config.mjs";
27
+ import it from "./style/index.mjs";
28
+ import { AG_GRID_LOCALE_EN as ut, AG_GRID_LOCALE_CN as dt } from "@ag-grid-community/locale";
29
+ import { useNamespace as ct } from "../config-provider/hooks/use-namespace.mjs";
30
+ import { useLocale as mt } from "../config-provider/hooks/use-locale.mjs";
31
+ import { useGlobalConfig as pt } from "../config-provider/hooks/use-global-config.mjs";
32
+ import { isDef as ft } from "../utils/is.mjs";
32
33
  import gt from "./components/row/index.vue2.mjs";
33
34
  import wt from "./components/empty/index.vue2.mjs";
34
- const Qt = /* @__PURE__ */ po({
35
+ const Xt = /* @__PURE__ */ po({
35
36
  name: "AgGrid",
36
37
  __name: "index",
37
38
  props: {
@@ -108,8 +109,8 @@ const Qt = /* @__PURE__ */ po({
108
109
  },
109
110
  setup(me, { expose: pe }) {
110
111
  const fe = {
111
- "zh-cn": ct,
112
- en: dt
112
+ "zh-cn": dt,
113
+ en: ut
113
114
  };
114
115
  vo.registerModules([
115
116
  bo,
@@ -132,15 +133,15 @@ const Qt = /* @__PURE__ */ po({
132
133
  Oo,
133
134
  Lo
134
135
  ]);
135
- const o = me, U = fo(), { e: x, b: d, be: ge } = mt("ag-grid"), { lang: _ } = pt(), we = ut("ag-grid"), y = M(o.size), Se = et(
136
+ const o = me, U = fo(), { e: x, b: d, be: ge } = ct("ag-grid"), { lang: _ } = mt(), we = it("ag-grid"), y = M(o.size), Se = et(
136
137
  y,
137
138
  F(o, "rowHeight"),
138
139
  F(o, "theme")
139
- ), Ce = nt(F(o, "virtual")), { rowPinnedGridConfig: j, getRowPinnedCellClass: he } = st(
140
+ ), Ce = at(F(o, "virtual")), { rowPinnedGridConfig: j, getRowPinnedCellClass: he } = nt(
140
141
  F(o, "summary")
141
- ), ye = ft("apGrid"), s = M(), [, Re] = Zo();
142
+ ), ye = pt("apGrid"), s = M(), [, Re] = Zo();
142
143
  let R = !!o.dataSource;
143
- const $ = at(o), { shownColumns: g, columns: q, columnKeys: ve, getTargetColumnByKey: be } = ot(o), { defaultColDef: Me, columnDefs: Fe, gridWrapperRef: Be } = tt(q, o, he), I = M({});
144
+ const $ = lt(o), { shownColumns: g, columns: q, columnKeys: ve, getTargetColumnByKey: be } = ot(o), { defaultColDef: Me, columnDefs: Fe, gridWrapperRef: Be } = tt(q, o, he), I = M({});
144
145
  Jo({
145
146
  sorter: I,
146
147
  setSorter(e) {
@@ -178,7 +179,7 @@ const Qt = /* @__PURE__ */ po({
178
179
  return;
179
180
  const r = e.getColumnState()?.map((l) => ({ ...l, sort: null }));
180
181
  e.applyColumnState({ state: r });
181
- }, T = M(!0), Ne = n(() => rt(o.manual) ? o.manual : lt(U.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
182
+ }, T = M(!0), Ne = n(() => ft(o.manual) ? o.manual : rt(U.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
182
183
  formRef: w,
183
184
  submit: D,
184
185
  reset: E,
@@ -221,7 +222,7 @@ const Qt = /* @__PURE__ */ po({
221
222
  ...ce,
222
223
  ...e
223
224
  };
224
- }), Pe = it(o, g), Ke = n(
225
+ }), Pe = st(o, g), Ke = n(
225
226
  () => k(o.dataSource) ? S.records : o.dataSource
226
227
  ), {
227
228
  select: Ve,
@@ -569,5 +570,5 @@ const Qt = /* @__PURE__ */ po({
569
570
  }
570
571
  });
571
572
  export {
572
- Qt as default
573
+ Xt as default
573
574
  };
@@ -1,12 +1,12 @@
1
- import { roundWith as c, toDecimalMark as f } from "@fruits-chain/utils";
2
- import { isNil as l, isString as n } from "lodash-unified";
3
- import { addZeroToDecimalPlaces as m } from "../../ap-field/number/helper.mjs";
1
+ import { isNil as c, isString as n } from "lodash-unified";
2
+ import { addZeroToDecimalPlaces as f } from "../../ap-field/number/helper.mjs";
3
+ import { roundWith as l, toDecimalMark as m } from "../../utils/format.mjs";
4
4
  function v(e) {
5
- if (l(e.value))
5
+ if (c(e.value))
6
6
  return e.emptyText || "--";
7
- const r = n(e.prefix) ? `${e.prefix} ` : "", a = n(e.addonAfter) ? ` ${e.addonAfter}` : "", t = e.precision ? c(e.value, e.precision) : e.value;
8
- let i = e.thousands ? f(t) : String(t);
9
- return e.precision && e.limitDecimalsRetain && (i = m(i, e.precision)), `${r}${i}${a}`;
7
+ const r = n(e.prefix) ? `${e.prefix} ` : "", a = n(e.addonAfter) ? ` ${e.addonAfter}` : "", t = e.precision ? l(e.value, e.precision) : e.value;
8
+ let i = e.thousands ? m(t) : String(t);
9
+ return e.precision && e.limitDecimalsRetain && (i = f(i, e.precision)), `${r}${i}${a}`;
10
10
  }
11
11
  export {
12
12
  v as numberRenderer
@@ -21,10 +21,10 @@ const t = (e) => {
21
21
  display: "inline-flex",
22
22
  flexDirection: "column",
23
23
  alignItems: "center",
24
- color: "rgba(0, 0, 0, 0.29)",
25
- marginInlineStart: "4px",
24
+ color: "rgba(0, 0, 0, 0.3)",
25
+ marginInlineStart: e.spaceXS,
26
26
  "&:hover": {
27
- color: "rgba(0, 0, 0, 0.57)"
27
+ color: "rgba(0, 0, 0, 0.6)"
28
28
  }
29
29
  },
30
30
  [`${r}__sorter-up.active`]: {
@@ -61,7 +61,7 @@ const t = {
61
61
  display: "flex",
62
62
  flexWrap: "wrap",
63
63
  alignItems: "center",
64
- rowGap: "8px",
64
+ rowGap: i.space,
65
65
  ".ant-pagination-total-text": {
66
66
  flex: 1,
67
67
  height: "unset",
@@ -44,7 +44,7 @@ const t = (o) => {
44
44
  },
45
45
  "&--loading": {
46
46
  opacity: i,
47
- transition: "opacity 0.2s",
47
+ transition: `opacity ${o.motionDurationMid}`,
48
48
  cursor: "default",
49
49
  ".btn-loading-icon": {
50
50
  marginRight: o.spaceXS
@@ -1,29 +1,29 @@
1
- import { genComponentStyleHook as o } from "../../utils/cssinjs/index.mjs";
2
- const r = (e) => ({
3
- [`${e.componentCls}-close`]: {
4
- width: "32px",
5
- height: "32px",
1
+ import { genComponentStyleHook as e } from "../../utils/cssinjs/index.mjs";
2
+ const o = (r) => ({
3
+ [`${r.componentCls}-close`]: {
4
+ width: r.controlHeight,
5
+ height: r.controlHeight,
6
6
  display: "flex",
7
7
  flexDirection: "column",
8
8
  justifyContent: "center",
9
9
  alignItems: "center",
10
- border: `1px solid ${e.borderColorBase}`,
11
- borderRadius: e.borderRadius,
10
+ border: `${r.lineWidth} ${r.lineType} ${r.borderColorBase}`,
11
+ borderRadius: r.borderRadius,
12
12
  cursor: "pointer",
13
13
  ".user-frontend-icon": {
14
- fontSize: "18px",
14
+ fontSize: r.fontSizeXL,
15
15
  display: "flex",
16
16
  alignItems: "center",
17
- transition: "color 0.3s"
17
+ transition: `color ${r.motionDurationMid}`
18
18
  },
19
19
  "&:hover": {
20
20
  ".user-frontend-icon": {
21
- color: e.colorError
21
+ color: r.colorError
22
22
  }
23
23
  }
24
24
  }
25
- }), t = o("ApDrawer", (e) => [
26
- r(e)
25
+ }), t = e("ApDrawer", (r) => [
26
+ o(r)
27
27
  ]);
28
28
  export {
29
29
  t as default
@@ -1,16 +1,17 @@
1
1
  import { computed as o } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import { isDef as n } from "../../utils/index.mjs";
4
- import { useLocale as i } from "../../config-provider/hooks/use-locale.mjs";
3
+ import "../../utils/index.mjs";
4
+ import { useLocale as n } from "../../config-provider/hooks/use-locale.mjs";
5
+ import { isDef as i } from "../../utils/is.mjs";
5
6
  const c = ["Select", "Date"], a = [
6
7
  "Text",
7
8
  "TextArea",
8
9
  "Number",
9
10
  "TextPassword"
10
11
  ], d = (t, r) => {
11
- const { t: e } = i();
12
+ const { t: e } = n();
12
13
  return o(() => {
13
- if (n(r.placeholder))
14
+ if (i(r.placeholder))
14
15
  return r.placeholder;
15
16
  if (t === "DateRange")
16
17
  return [e("ap.field.startDateText"), e("ap.field.endDateText")];
@@ -1,5 +1,5 @@
1
1
  import { isNil as a } from "lodash-unified";
2
- import { toDecimalMark as f } from "@fruits-chain/utils";
2
+ import { toDecimalMark as f } from "../../utils/format.mjs";
3
3
  function n(t, e) {
4
4
  if (a(e))
5
5
  return t;