@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,11 +2,11 @@ import { defineComponent as C, ref as N, computed as D, unref as t, createElemen
2
2
  import { InputNumber as M } from "@aplus-frontend/antdv";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as T, omit as F } from "lodash-unified";
5
- import { roundWith as W, toDecimalMark as _ } from "@fruits-chain/utils";
6
- import { addZeroToDecimalPlaces as w } from "./helper.mjs";
5
+ import { addZeroToDecimalPlaces as W } from "./helper.mjs";
7
6
  import "../../config-provider/index.mjs";
8
- import { useDefaultPlaceholder as L } from "../hooks/use-default-placeholder.mjs";
9
- import O from "../style/index.mjs";
7
+ import { useDefaultPlaceholder as _ } from "../hooks/use-default-placeholder.mjs";
8
+ import w from "../style/index.mjs";
9
+ import { roundWith as L, toDecimalMark as O } from "../../utils/format.mjs";
10
10
  import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
11
11
  import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
12
12
  const re = /* @__PURE__ */ C({
@@ -60,16 +60,16 @@ const re = /* @__PURE__ */ C({
60
60
  },
61
61
  emits: ["update:value"],
62
62
  setup(m, { expose: c, emit: y }) {
63
- const v = y, { b: l } = Z("field-number"), h = O("field"), o = m, n = N(), { value: p, updateValue: B } = j(
63
+ const v = y, { b: l } = Z("field-number"), h = w("field"), o = m, n = N(), { value: p, updateValue: B } = j(
64
64
  o,
65
65
  v
66
- ), b = L("Number", o), k = D(() => {
66
+ ), b = _("Number", o), k = D(() => {
67
67
  let e = t(p);
68
68
  if (T(e))
69
69
  return o.emptyText;
70
- o.precision && (e = W(e, o.precision));
71
- let a = o.thousands ? _(e) : String(e);
72
- return o.precision && o.limitDecimalsRetain && (a = w(a, o.precision)), a;
70
+ o.precision && (e = L(e, o.precision));
71
+ let a = o.thousands ? O(e) : String(e);
72
+ return o.precision && o.limitDecimalsRetain && (a = W(a, o.precision)), a;
73
73
  });
74
74
  function g() {
75
75
  n.value?.focus();
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as p, computed as d, createElementBlock as a, openBlock as n, createCommentVNode as r, createElementVNode as m, renderSlot as l, toDisplayString as u } from "vue";
2
2
  import { isNil as c } from "lodash-unified";
3
- import { roundWith as f, toDecimalMark as y } from "@fruits-chain/utils";
4
- import { addZeroToDecimalPlaces as B } from "./helper.mjs";
3
+ import { addZeroToDecimalPlaces as f } from "./helper.mjs";
4
+ import { roundWith as y, toDecimalMark as B } from "../../utils/format.mjs";
5
5
  const h = {
6
6
  key: 0,
7
7
  style: { "padding-right": "4px" }
@@ -62,9 +62,9 @@ const h = {
62
62
  let e = o.value;
63
63
  if (c(e))
64
64
  return o.emptyText;
65
- o.precision && (e = f(e, o.precision));
66
- let t = o.thousands ? y(e) : String(e);
67
- return o.precision && o.limitDecimalsRetain && (t = B(t, o.precision)), t;
65
+ o.precision && (e = y(e, o.precision));
66
+ let t = o.thousands ? B(e) : String(e);
67
+ return o.precision && o.limitDecimalsRetain && (t = f(t, o.precision)), t;
68
68
  });
69
69
  return (e, t) => (n(), a("span", null, [
70
70
  e.$slots.prefix ? (n(), a("span", h, [
@@ -1,2 +1,2 @@
1
- import { BaseToken, GenStyleFunc } from '../../design-token/interface';
2
- export declare const genCheckboxStyle: GenStyleFunc<BaseToken>;
1
+ import { GenStyleFunc } from '../../design-token/interface';
2
+ export declare const genCheckboxStyle: GenStyleFunc;
@@ -1,2 +1,2 @@
1
- import { BaseToken, GenStyleFunc } from '../../design-token/interface';
2
- export declare const genNumberStyle: GenStyleFunc<BaseToken>;
1
+ import { GenStyleFunc } from '../../design-token/interface';
2
+ export declare const genNumberStyle: GenStyleFunc;
@@ -1,2 +1,2 @@
1
- import { BaseToken, GenStyleFunc } from '../../design-token/interface';
2
- export declare const genRadioStyle: GenStyleFunc<BaseToken>;
1
+ import { GenStyleFunc } from '../../design-token/interface';
2
+ export declare const genRadioStyle: GenStyleFunc;
@@ -1,2 +1,2 @@
1
- import { BaseToken, GenStyleFunc } from '../../design-token/interface';
2
- export declare const genTextareaStyle: GenStyleFunc<BaseToken>;
1
+ import { GenStyleFunc } from '../../design-token/interface';
2
+ export declare const genTextareaStyle: GenStyleFunc;
@@ -2,9 +2,10 @@ import { defineComponent as z, useSlots as D, ref as T, unref as o, computed as
2
2
  import { Switch as A, Popconfirm as L } from "@aplus-frontend/antdv";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as M, isFunction as R, omit as P } from "lodash-unified";
5
- import { isDef as d } from "@fruits-chain/utils";
5
+ import "../../utils/index.mjs";
6
6
  import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
7
- const O = /* @__PURE__ */ z({
7
+ import { isDef as d } from "../../utils/is.mjs";
8
+ const Q = /* @__PURE__ */ z({
8
9
  name: "ApFieldSwitch",
9
10
  __name: "index",
10
11
  props: {
@@ -121,5 +122,5 @@ const O = /* @__PURE__ */ z({
121
122
  }
122
123
  });
123
124
  export {
124
- O as default
125
+ Q as default
125
126
  };
@@ -1,16 +1,17 @@
1
1
  import { defineComponent as te, reactive as re, ref as O, unref as h, nextTick as oe, toRaw as P, watch as ne, onWatcherCleanup as ie, computed as le, createBlock as se, openBlock as ae, mergeProps as ue, withCtx as ce, renderSlot as fe } from "vue";
2
2
  import { Form as de } from "@aplus-frontend/antdv";
3
3
  import { useProvideForm as ge } from "./context.mjs";
4
- import { isArray as f, cloneDeep as pe, isEqual as me, isFunction as M, isPlainObject as R, omit as he } from "lodash-unified";
4
+ import { isArray as f, cloneDeep as me, isEqual as pe, isFunction as M, isPlainObject as R, omit as he } from "lodash-unified";
5
5
  import { useUrlSearchParams as Fe } from "@vueuse/core";
6
6
  import { INTERNAL_FORM_INSTANCE_MARK as j } from "./constant.mjs";
7
- import { getRouteType as ye, isDef as T } from "../utils/index.mjs";
7
+ import { getRouteType as ye } from "../utils/index.mjs";
8
8
  import Te from "./utils/set.mjs";
9
9
  import { genParams as B, setToParams as x } from "./utils/params.mjs";
10
10
  import { useInjectFormProvider as Ve } from "./provider/context.mjs";
11
11
  import { getModelValue as W } from "./utils/get.mjs";
12
12
  import { useDevWarning as ve } from "../utils/warning.mjs";
13
- const Oe = /* @__PURE__ */ te({
13
+ import { isDef as T } from "../utils/is.mjs";
14
+ const je = /* @__PURE__ */ te({
14
15
  name: "ApForm",
15
16
  __name: "ap-form",
16
17
  props: {
@@ -62,9 +63,9 @@ const Oe = /* @__PURE__ */ te({
62
63
  const s = O(), v = Fe(ye()), F = Ve(), q = ve("ApForm"), C = O(
63
64
  n.syncToUrl ? B(n.syncToUrl, v, "get") : {}
64
65
  );
65
- let d = pe(_()), g = {};
66
+ let d = me(_()), g = {};
66
67
  const l = re(_());
67
- let p = [];
68
+ let m = [];
68
69
  function _() {
69
70
  const e = n.initialValues || {};
70
71
  return n.syncToUrlPriority ? {
@@ -76,7 +77,7 @@ const Oe = /* @__PURE__ */ te({
76
77
  };
77
78
  }
78
79
  function D(e) {
79
- const t = m(e, g);
80
+ const t = p(e, g);
80
81
  F.triggerFormFinish(n.name, e), n.syncToUrl && x(v, B(n.syncToUrl, t, "set")), n.onFinish?.(t);
81
82
  }
82
83
  const K = async () => {
@@ -85,7 +86,7 @@ const Oe = /* @__PURE__ */ te({
85
86
  v,
86
87
  B(
87
88
  n.syncToUrl,
88
- m(d, g),
89
+ p(d, g),
89
90
  "set"
90
91
  )
91
92
  );
@@ -97,10 +98,10 @@ const Oe = /* @__PURE__ */ te({
97
98
  e,
98
99
  t
99
100
  );
100
- return m(r, g);
101
+ return p(r, g);
101
102
  }, b = (e) => e === !0 ? P(l) : s.value?.getFieldsValue(e), G = (e) => {
102
103
  const t = b(e);
103
- return m(t, g);
104
+ return p(t, g);
104
105
  }, H = (e, t) => s.value?.validate(e, t), J = (e, t = {}) => {
105
106
  s.value?.scrollToField(e, t);
106
107
  }, Q = (e) => {
@@ -109,8 +110,8 @@ const Oe = /* @__PURE__ */ te({
109
110
  V(e, t, r, o), y();
110
111
  };
111
112
  function U(e) {
112
- return e(P(l)), p.push(e), () => {
113
- p = p.filter((t) => t !== e);
113
+ return e(P(l)), m.push(e), () => {
114
+ m = m.filter((t) => t !== e);
114
115
  };
115
116
  }
116
117
  function X(e, t) {
@@ -126,7 +127,7 @@ const Oe = /* @__PURE__ */ te({
126
127
  if (!T(e) || !T(t))
127
128
  return;
128
129
  const r = W(d, t);
129
- if (me(r, e))
130
+ if (pe(r, e))
130
131
  return;
131
132
  const o = W(h(C), t);
132
133
  T(o) && n.syncToUrlPriority || (V(t, e, !1), X(t, e));
@@ -159,14 +160,14 @@ const Oe = /* @__PURE__ */ te({
159
160
  };
160
161
  }
161
162
  function y() {
162
- if (p.length) {
163
+ if (m.length) {
163
164
  const e = P(l);
164
- p.forEach((t) => {
165
+ m.forEach((t) => {
165
166
  t(e);
166
167
  });
167
168
  }
168
169
  }
169
- function m(e, t) {
170
+ function p(e, t) {
170
171
  if (e == null)
171
172
  return;
172
173
  let r = f(e) ? [] : {};
@@ -179,7 +180,7 @@ const Oe = /* @__PURE__ */ te({
179
180
  ...c
180
181
  } : r[o] = c : r[o] = c;
181
182
  } else if (R(a) || f(a)) {
182
- const c = m(
183
+ const c = p(
183
184
  a,
184
185
  i
185
186
  );
@@ -247,5 +248,5 @@ const Oe = /* @__PURE__ */ te({
247
248
  }
248
249
  });
249
250
  export {
250
- Oe as default
251
+ je as default
251
252
  };
@@ -6,9 +6,9 @@ import { apFormItemColPropKeys as le } from "../constant.mjs";
6
6
  import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
7
7
  import "../../config-provider/index.mjs";
8
8
  import { useInjectForm as ae } from "../context.mjs";
9
- import { isPromise as ie } from "@fruits-chain/utils";
10
- import { getValidVNodeList as se } from "../../utils/slot.mjs";
11
- import ue from "../style/item.mjs";
9
+ import { getValidVNodeList as ie } from "../../utils/slot.mjs";
10
+ import se from "../style/item.mjs";
11
+ import { isPromise as ue } from "../../utils/is.mjs";
12
12
  import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
13
13
  const Ce = /* @__PURE__ */ _({
14
14
  name: "ApFormItem",
@@ -58,10 +58,10 @@ const Ce = /* @__PURE__ */ _({
58
58
  disabled: { type: Boolean }
59
59
  },
60
60
  setup(g, { expose: h }) {
61
- const o = g, m = j(), { model: p, updateModel: B, internalInstance: C } = ae(), { m: u, b: k } = de("ap-form-item"), P = ue("ap-form-item"), d = y(!1), a = y(), [, x] = oe();
61
+ const o = g, m = j(), { model: p, updateModel: B, internalInstance: C } = ae(), { m: u, b: k } = de("ap-form-item"), P = se("ap-form-item"), d = y(!1), a = y(), [, x] = oe();
62
62
  E(async () => {
63
63
  let e = F(o.initialValue) ? o.initialValue() : o.initialValue;
64
- ie(e) && (e = await e), C?.registerField({
64
+ ue(e) && (e = await e), C?.registerField({
65
65
  name: o.name,
66
66
  initialValue: te(e),
67
67
  transform: o.transform
@@ -78,7 +78,7 @@ const Ce = /* @__PURE__ */ _({
78
78
  const e = m.default?.() || [];
79
79
  if (!o.name)
80
80
  return e[0];
81
- const t = se(e)[0];
81
+ const t = ie(e)[0];
82
82
  if (!t)
83
83
  return null;
84
84
  const l = t?.type?.props ?? {}, n = {
@@ -1,9 +1,10 @@
1
1
  import { isFunction as c, isArray as u } from "lodash-unified";
2
- import { isDef as p } from "../../utils/index.mjs";
2
+ import "../../utils/index.mjs";
3
+ import { isDef as p } from "../../utils/is.mjs";
3
4
  const s = (r) => r <= 1 ? 1 : r, o = (r, t = 1) => {
4
5
  const n = Math.floor(24 / r), e = n * t;
5
6
  return e > 24 ? n : e;
6
- }, h = (r, t = 1) => ({
7
+ }, y = (r, t = 1) => ({
7
8
  xs: o(s(r - 3), t),
8
9
  sm: o(s(r - 2), t),
9
10
  md: o(s(r - 1), t),
@@ -29,15 +30,15 @@ function f(r) {
29
30
  t.push(i(e));
30
31
  return t;
31
32
  }
32
- const y = (r) => {
33
+ const N = (r) => {
33
34
  const t = [];
34
35
  return t.push(...f(r)), t;
35
36
  };
36
- function N(r) {
37
+ function d(r) {
37
38
  return p(r) ? (u(r) ? r : [r]).join("") : Date.now();
38
39
  }
39
40
  export {
40
- h as buildColSpan,
41
- y as genRealChildren,
42
- N as getStringName
41
+ y as buildColSpan,
42
+ N as genRealChildren,
43
+ d as getStringName
43
44
  };
@@ -1,16 +1,17 @@
1
- import { isVNode as C, defineComponent as P, useSlots as k, ref as w, onBeforeUpdate as S, watch as B, unref as r, createVNode as N, mergeProps as d, createBlock as f, openBlock as a, withCtx as R, createElementBlock as b, Fragment as x, renderList as j, resolveDynamicComponent as v } from "vue";
1
+ import { isVNode as C, defineComponent as P, useSlots as k, ref as w, onBeforeUpdate as S, watch as B, unref as r, createVNode as N, mergeProps as d, createBlock as f, openBlock as s, withCtx as R, createElementBlock as b, Fragment as x, renderList as j, resolveDynamicComponent as v } from "vue";
2
2
  import { Col as F, Row as I } from "@aplus-frontend/antdv";
3
3
  import { pick as D, isBoolean as O, omit as V } from "lodash-unified";
4
4
  import { apFormItemColPropKeys as $ } from "../constant.mjs";
5
5
  import { genRealChildren as A, buildColSpan as E, getStringName as G } from "./helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { isDef as H } from "../../utils/index.mjs";
8
- import K from "../style/item-group.mjs";
9
- import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
7
+ import "../../utils/index.mjs";
8
+ import H from "../style/item-group.mjs";
9
+ import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { isDef as L } from "../../utils/is.mjs";
10
11
  function U(o) {
11
12
  return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !C(o);
12
13
  }
13
- const Z = /* @__PURE__ */ P({
14
+ const ee = /* @__PURE__ */ P({
14
15
  name: "ApFormItemGroup",
15
16
  __name: "index",
16
17
  props: {
@@ -29,20 +30,20 @@ const Z = /* @__PURE__ */ P({
29
30
  }
30
31
  },
31
32
  setup(o) {
32
- const p = o, m = k(), {
33
+ const a = o, m = k(), {
33
34
  b: i
34
- } = L("ap-form-item-group"), g = K("ap-form-item-group"), s = w([]);
35
+ } = K("ap-form-item-group"), g = H("ap-form-item-group"), p = w([]);
35
36
  S(() => {
36
- s.value = c(m.default());
37
+ p.value = c(m.default());
37
38
  }), B(() => m.default(), (n) => {
38
- s.value = c(n);
39
+ p.value = c(n);
39
40
  }, {
40
41
  immediate: !0
41
42
  });
42
43
  function c(n) {
43
44
  const l = A(n || []);
44
45
  return r(l).map((e, y) => {
45
- const t = e.props, u = D(t, $), _ = u?.span ? {} : E(p.countPerRow), h = O(t.hidden) ? !!t.hidden : H(t.hidden);
46
+ const t = e.props, u = D(t, $), _ = u?.span ? {} : E(a.countPerRow), h = O(t.hidden) ? !!t.hidden : L(t.hidden);
46
47
  return {
47
48
  key: `${y}-${G(t.name)}`,
48
49
  node: N(F, d(_, u, {
@@ -53,10 +54,10 @@ const Z = /* @__PURE__ */ P({
53
54
  };
54
55
  });
55
56
  }
56
- return (n, l) => (a(), f(r(I), d({
57
+ return (n, l) => (s(), f(r(I), d({
57
58
  class: [r(i)(), r(g)]
58
- }, r(V)(p, ["countPerRow"])), {
59
- default: R(() => [(a(!0), b(x, null, j(s.value, (e) => (a(), f(v(e.node), {
59
+ }, r(V)(a, ["countPerRow"])), {
60
+ default: R(() => [(s(!0), b(x, null, j(p.value, (e) => (s(), f(v(e.node), {
60
61
  key: e.key
61
62
  }))), 128))]),
62
63
  _: 1
@@ -64,5 +65,5 @@ const Z = /* @__PURE__ */ P({
64
65
  }
65
66
  });
66
67
  export {
67
- Z as default
68
+ ee as default
68
69
  };
@@ -143,7 +143,7 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
143
143
  delay?: number;
144
144
  };
145
145
  danger: boolean;
146
- htmlType: ** @type { [typeof __VLS_components.Tooltip, typeof __VLS_components.Tooltip, ] } */).ButtonHTMLType;
146
+ htmlType: ButtonHTMLType;
147
147
  ghost: boolean;
148
148
  iconPosition: ButtonIconPosition;
149
149
  }> | null;
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, ref as y, toRef as w, createBlock as f, openBlock as l, unref as e, withCtx as o, createVNode as t, normalizeClass as a, withDirectives as x, createElementVNode as u, toDisplayString as d, vShow as R, createElementBlock as D, Fragment as L, renderList as N, resolveDynamicComponent as I, createTextVNode as b } from "vue";
1
+ import { defineComponent as S, ref as y, toRef as w, createBlock as u, openBlock as i, unref as e, withCtx as o, createVNode as t, normalizeClass as l, withDirectives as x, createElementVNode as f, toDisplayString as d, vShow as R, createElementBlock as D, Fragment as L, renderList as N, resolveDynamicComponent as I, createTextVNode as k } from "vue";
2
2
  import { Popover as P, Tooltip as T, Button as g, Row as V, Col as $, Divider as z, Flex as A } from "@aplus-frontend/antdv";
3
3
  import { IconApFilterOutlined as E } from "@aplus-frontend/icon";
4
4
  import "../../../config-provider/index.mjs";
@@ -14,15 +14,15 @@ const Y = /* @__PURE__ */ S({
14
14
  onSubmit: { type: Function },
15
15
  submitLoading: { type: Boolean }
16
16
  },
17
- setup(k) {
18
- const C = k, F = y(), { e: p, b: c } = U("ap-form-search-form"), h = O("ap-form-search-form"), { t: m } = q(), i = y(!1), B = w(() => C.config), { count: v } = j(B);
17
+ setup(b) {
18
+ const C = b, F = y(), { e: s, b: c } = U("ap-form-search-form"), h = O("ap-form-search-form"), { t: m } = q(), a = y(!1), B = w(() => C.config), { count: v } = j(B);
19
19
  function _(r) {
20
20
  return r?.closest(".ant-form") || document.body;
21
21
  }
22
- return (r, s) => (l(), f(e(P), {
23
- open: i.value,
24
- "onUpdate:open": s[1] || (s[1] = (n) => i.value = n),
25
- "overlay-class-name": `${e(p)("popover")} ${e(h)}`,
22
+ return (r, p) => (i(), u(e(P), {
23
+ open: a.value,
24
+ "onUpdate:open": p[1] || (p[1] = (n) => a.value = n),
25
+ "overlay-class-name": `${e(s)("popover")} ${e(h)}`,
26
26
  trigger: "click",
27
27
  placement: "bottom",
28
28
  mask: "",
@@ -31,18 +31,18 @@ const Y = /* @__PURE__ */ S({
31
31
  "force-render": !0
32
32
  }, {
33
33
  content: o(() => [
34
- u("div", {
35
- class: a([e(p)("popover-content")]),
34
+ f("div", {
35
+ class: l([e(s)("popover-content")]),
36
36
  style: { paddingBottom: "4px", width: "825px" }
37
37
  }, [
38
38
  t(e(V), { gutter: 8 }, {
39
39
  default: o(() => [
40
- (l(!0), D(L, null, N(r.config, (n) => (l(), f(e($), {
40
+ (i(!0), D(L, null, N(r.config, (n) => (i(), u(e($), {
41
41
  key: n.key,
42
42
  span: 8
43
43
  }, {
44
44
  default: o(() => [
45
- (l(), f(I(n.node)))
45
+ (i(), u(I(n.node)))
46
46
  ]),
47
47
  _: 2
48
48
  }, 1024))), 128))
@@ -51,30 +51,32 @@ const Y = /* @__PURE__ */ S({
51
51
  })
52
52
  ], 2),
53
53
  t(e(z), { style: { margin: "0" } }),
54
- u("div", {
55
- class: a(e(p)("popover-footer"))
54
+ f("div", {
55
+ class: l(e(s)("popover-footer"))
56
56
  }, [
57
- t(e(A), { justify: "end" }, {
57
+ t(e(A), {
58
+ justify: "end",
59
+ gap: 10
60
+ }, {
58
61
  default: o(() => [
59
62
  t(e(g), {
60
- onClick: s[0] || (s[0] = (n) => i.value = !1)
63
+ onClick: p[0] || (p[0] = (n) => a.value = !1)
61
64
  }, {
62
65
  default: o(() => [
63
- b(d(e(m)("ap.common.cancelText")), 1)
66
+ k(d(e(m)("ap.common.cancelText")), 1)
64
67
  ]),
65
68
  _: 1
66
69
  }),
67
70
  t(e(g), {
68
- class: a(e(p)("popover-footer-confirm-btn")),
69
71
  type: "primary",
70
72
  loading: r.submitLoading,
71
73
  onClick: r.onSubmit
72
74
  }, {
73
75
  default: o(() => [
74
- b(d(e(m)("ap.apForm.search.search")), 1)
76
+ k(d(e(m)("ap.apForm.search.search")), 1)
75
77
  ]),
76
78
  _: 1
77
- }, 8, ["class", "loading", "onClick"])
79
+ }, 8, ["loading", "onClick"])
78
80
  ]),
79
81
  _: 1
80
82
  })
@@ -89,11 +91,11 @@ const Y = /* @__PURE__ */ S({
89
91
  t(e(g), {
90
92
  ref_key: "triggerBtnRef",
91
93
  ref: F,
92
- class: a([e(c)("trigger-btn"), { [e(c)("trigger-btn-active")]: i.value }])
94
+ class: l([e(c)("trigger-btn"), { [e(c)("trigger-btn-active")]: a.value }])
93
95
  }, {
94
96
  icon: o(() => [
95
- x(u("sup", {
96
- class: a(e(c)("trigger-btn-badge"))
97
+ x(f("sup", {
98
+ class: l(e(c)("trigger-btn-badge"))
97
99
  }, d(e(v)), 3), [
98
100
  [R, e(v) !== 0]
99
101
  ]),
@@ -97,7 +97,10 @@ const X = /* @__PURE__ */ S({
97
97
  n("div", {
98
98
  class: o(e(f)("popover-footer"))
99
99
  }, [
100
- t(e(_), { justify: "end" }, {
100
+ t(e(_), {
101
+ justify: "end",
102
+ gap: 8
103
+ }, {
101
104
  default: r(() => [
102
105
  t(e(g), {
103
106
  onClick: u[0] || (u[0] = (d) => p.value = !1)
@@ -1,12 +1,13 @@
1
1
  import { isBoolean as p } from "lodash-unified";
2
2
  import { ref as f, computed as c } from "vue";
3
- import { getStringName as d } from "../../item-group/helper.mjs";
4
- import { isDef as u } from "../../../utils/index.mjs";
5
- import { getTargetNode as m } from "./use-collapse-input-count.mjs";
3
+ import { getStringName as m } from "../../item-group/helper.mjs";
4
+ import "../../../utils/index.mjs";
5
+ import { getTargetNode as d } from "./use-collapse-input-count.mjs";
6
+ import { isDef as u } from "../../../utils/is.mjs";
6
7
  function l(n, r) {
7
8
  const i = new Set(n.map((o) => o.name)), a = /* @__PURE__ */ new Map();
8
9
  for (const o of r) {
9
- const e = String(d(m(o).props?.name));
10
+ const e = String(m(d(o).props?.name));
10
11
  e && i.has(e) && a.set(e, o);
11
12
  }
12
13
  const s = /* @__PURE__ */ new Set(), t = [];
@@ -18,12 +19,12 @@ function l(n, r) {
18
19
  s.has(o) || t.push(o);
19
20
  return t;
20
21
  }
21
- const w = (n) => {
22
+ const C = (n) => {
22
23
  const r = f(!1), i = c(() => (n.value || []).map((t) => {
23
- const e = m(t).props;
24
+ const e = d(t).props;
24
25
  return {
25
26
  label: e.description || e.label || e.placeholder,
26
- name: d(e.name),
27
+ name: m(e.name),
27
28
  isHidden: p(e.hidden) ? !!e.hidden : u(e.hidden)
28
29
  };
29
30
  }));
@@ -41,5 +42,5 @@ const w = (n) => {
41
42
  };
42
43
  };
43
44
  export {
44
- w as useSorter
45
+ C as useSorter
45
46
  };
@@ -5,18 +5,19 @@ import "../item/index.vue2.mjs";
5
5
  import { genRealChildren as G } from "../item-group/helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
7
  import { isArray as xe, isBoolean as ye, omit as ve } from "lodash-unified";
8
- import { isDef as J } from "../../utils/index.mjs";
9
- import { execFunc as K, diffFormItem as Se } from "./utils.mjs";
8
+ import "../../utils/index.mjs";
9
+ import { execFunc as J, diffFormItem as Se } from "./utils.mjs";
10
10
  import "./components/popover-filter.vue.mjs";
11
11
  import { useCountPerRow as Ce } from "./hooks/use-count-per-row.mjs";
12
12
  import "./components/popover-sorter/index.vue.mjs";
13
13
  import { useSorter as we } from "./hooks/use-sorter.mjs";
14
14
  import { getTargetNode as Re } from "./hooks/use-collapse-input-count.mjs";
15
- import { floorWith as Q } from "@fruits-chain/utils";
16
15
  import { useDevWarning as _e } from "../../utils/warning.mjs";
17
16
  import be from "../style/search-form.mjs";
17
+ import { floorWith as K } from "../../utils/format.mjs";
18
18
  import { useNamespace as Fe } from "../../config-provider/hooks/use-namespace.mjs";
19
19
  import { useLocale as Ae } from "../../config-provider/hooks/use-locale.mjs";
20
+ import { isDef as Q } from "../../utils/is.mjs";
20
21
  import X from "../item/index.vue.mjs";
21
22
  import Ne from "./components/popover-filter.vue2.mjs";
22
23
  import Be from "./components/popover-sorter/index.vue2.mjs";
@@ -24,7 +25,7 @@ import Ie from "../ap-form.vue2.mjs";
24
25
  function Te(d) {
25
26
  return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !ce(d);
26
27
  }
27
- const r = 100, at = /* @__PURE__ */ ue({
28
+ const r = 100, nt = /* @__PURE__ */ ue({
28
29
  name: "ApFormSearchForm",
29
30
  __name: "index",
30
31
  props: {
@@ -133,14 +134,14 @@ const r = 100, at = /* @__PURE__ */ ue({
133
134
  } = Ae(), v = B(), E = B(), ee = Ce(t, E), W = B();
134
135
  function z() {
135
136
  const e = v.value?.getFieldsValueTransformed(!0);
136
- K(t.onSubmit, e);
137
+ J(t.onSubmit, e);
137
138
  }
138
139
  function te() {
139
- t.customReset || v.value?.resetFields?.(), K(t.onReset);
140
+ t.customReset || v.value?.resetFields?.(), J(t.onReset);
140
141
  }
141
- const oe = (e) => J(e) ? (xe(e) ? e : [e]).join("") : Date.now();
142
+ const oe = (e) => Q(e) ? (xe(e) ? e : [e]).join("") : Date.now();
142
143
  let O = [];
143
- const m = M(G(y.default())), c = M(y.extra?.()), L = w(() => Q(r / a(ee), 4)), {
144
+ const m = M(G(y.default())), c = M(y.extra?.()), L = w(() => K(r / a(ee), 4)), {
144
145
  items: b,
145
146
  sorted: $,
146
147
  handleClickConfirm: F
@@ -151,7 +152,7 @@ const r = 100, at = /* @__PURE__ */ ue({
151
152
  c.value = e;
152
153
  });
153
154
  function ae(e) {
154
- return Q(e * (r / 24), 4);
155
+ return K(e * (r / 24), 4);
155
156
  }
156
157
  const n = w(() => {
157
158
  const e = m.value, u = [], l = [], g = [], s = a(L);
@@ -162,7 +163,7 @@ const r = 100, at = /* @__PURE__ */ ue({
162
163
  if (!D)
163
164
  return;
164
165
  const i = D.props;
165
- if (ye(i.hidden) ? !!i.hidden : J(i.hidden))
166
+ if (ye(i.hidden) ? !!i.hidden : Q(i.hidden))
166
167
  u.push(N);
167
168
  else {
168
169
  let C = i.span ? ae(i.span) : s;
@@ -280,5 +281,5 @@ const r = 100, at = /* @__PURE__ */ ue({
280
281
  }
281
282
  });
282
283
  export {
283
- at as default
284
+ nt as default
284
285
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as c, useSlots as u, cloneVNode as p, onMounted as f, createElementBlock as d, openBlock as o, Fragment as V, renderList as _, createBlock as y, resolveDynamicComponent as C } from "vue";
2
2
  import { useInjectForm as F } from "../context.mjs";
3
3
  import { isFunction as k, cloneDeep as g } from "lodash-unified";
4
- import { isPromise as h } from "@fruits-chain/utils";
4
+ import { isPromise as h } from "../../utils/is.mjs";
5
5
  const I = /* @__PURE__ */ c({
6
6
  name: "ApFormSet",
7
7
  __name: "index",