@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,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,9 +1,9 @@
1
- import { defineComponent as E, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as N, withCtx as s, createVNode as P, createCommentVNode as I, isRef as j, renderList as b, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as W, guardReactiveProps as $ } from "vue";
1
+ import { defineComponent as E, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as N, withCtx as s, createVNode as b, createCommentVNode as j, isRef as I, renderList as P, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as W, guardReactiveProps as $ } from "vue";
2
2
  import u from "dayjs";
3
3
  import { InputGroup as G, FormItemRest as L, Select as Y, SelectOption as Z, DatePicker as q } from "@aplus-frontend/antdv";
4
4
  import { ApFieldDatePresetFormats as J, PRESET_FORMAT_MAP as C, PRESET_FORMAT_PICK_MAP as Q, PRESET_FORMAT_TIME_MAP as X } from "./constant.mjs";
5
5
  import "../../hooks/index.mjs";
6
- import { isNil as S, omit as ee } from "lodash-unified";
6
+ import { isNil as O, omit as ee } from "lodash-unified";
7
7
  import { formatDayWithTimezone as oe } from "./helper.mjs";
8
8
  import { getTimeFormatToZone as te } from "@aplus-frontend/utils";
9
9
  import { useDefaultPlaceholder as ae } from "../hooks/use-default-placeholder.mjs";
@@ -51,7 +51,7 @@ const he = /* @__PURE__ */ E({
51
51
  autocomplete: {},
52
52
  direction: {},
53
53
  showToday: { type: Boolean, default: void 0 },
54
- showTime: { type: Boolean, default: void 0 },
54
+ showTime: { type: [Boolean, Object], default: void 0 },
55
55
  picker: {},
56
56
  prefixCls: {},
57
57
  defaultPickerValue: {},
@@ -92,16 +92,16 @@ const he = /* @__PURE__ */ E({
92
92
  timezone: {}
93
93
  },
94
94
  emits: ["update:value"],
95
- setup(T, { emit: F }) {
96
- const e = T, O = F, { value: f, updateValue: h } = le(
95
+ setup(S, { emit: T }) {
96
+ const e = S, F = T, { value: f, updateValue: h } = le(
97
97
  e,
98
- O
98
+ F
99
99
  ), _ = ae("Date", e), { currentTimezone: d } = ne(e), l = r(
100
100
  () => J.indexOf(e.format) > -1
101
101
  ), A = r(() => e.shownFormat ? e.shownFormat : l.value ? C[e.format] : e.format), m = r(
102
102
  () => l.value ? C[e.format] : e.format
103
103
  ), c = r(() => {
104
- if (S(t(f)))
104
+ if (O(t(f)))
105
105
  return;
106
106
  let o = u(t(f));
107
107
  return e.timezone && (o = u(te(t(f), d.value))), o;
@@ -122,7 +122,7 @@ const he = /* @__PURE__ */ E({
122
122
  };
123
123
  }), v = (o, n, a = !0) => oe(d.value)(o, n, a);
124
124
  function D(o) {
125
- if (S(o)) {
125
+ if (O(o)) {
126
126
  h(null);
127
127
  return;
128
128
  }
@@ -161,19 +161,19 @@ const he = /* @__PURE__ */ E({
161
161
  })
162
162
  }, {
163
163
  default: s(() => [
164
- P(t(L), null, {
164
+ b(t(L), null, {
165
165
  default: s(() => [
166
166
  Array.isArray(e.timezone) && e.timezone.length ? (i(), y(t(Y), {
167
167
  key: 0,
168
168
  value: t(d),
169
- "onUpdate:value": n[0] || (n[0] = (a) => j(d) ? d.value = a : null),
169
+ "onUpdate:value": n[0] || (n[0] = (a) => I(d) ? d.value = a : null),
170
170
  "default-active-first-option": "",
171
171
  "dropdown-match-select-width": !1,
172
172
  style: { "max-width": "50%" },
173
173
  disabled: o.disabled
174
174
  }, {
175
175
  default: s(() => [
176
- (i(!0), B(g, null, b(e.timezone, (a) => (i(), y(t(Z), {
176
+ (i(!0), B(g, null, P(e.timezone, (a) => (i(), y(t(Z), {
177
177
  key: a?.value,
178
178
  value: a?.value
179
179
  }, {
@@ -184,11 +184,11 @@ const he = /* @__PURE__ */ E({
184
184
  }, 1032, ["value"]))), 128))
185
185
  ]),
186
186
  _: 1
187
- }, 8, ["value", "disabled"])) : I("", !0)
187
+ }, 8, ["value", "disabled"])) : j("", !0)
188
188
  ]),
189
189
  _: 1
190
190
  }),
191
- P(t(q), U(M.value, {
191
+ b(t(q), U(M.value, {
192
192
  value: c.value,
193
193
  format: A.value,
194
194
  picker: R.value,
@@ -196,7 +196,7 @@ const he = /* @__PURE__ */ E({
196
196
  onChange: V,
197
197
  onOk: x
198
198
  }), H({ _: 2 }, [
199
- b(o.$slots, (a, p) => ({
199
+ P(o.$slots, (a, p) => ({
200
200
  name: p,
201
201
  fn: s((z) => [
202
202
  K(o.$slots, p, W($(z || {})))
@@ -4,7 +4,7 @@ import { isNil as m } from "lodash-unified";
4
4
  import { getTimeFormatToZone as c } from "@aplus-frontend/utils";
5
5
  import { useDateTimezone as f } from "../hooks/use-date-timezone.mjs";
6
6
  import { ApFieldDatePresetFormats as y, PRESET_FORMAT_MAP as B } from "./constant.mjs";
7
- const T = /* @__PURE__ */ u({
7
+ const S = /* @__PURE__ */ u({
8
8
  name: "ApFieldDateRead",
9
9
  __name: "read",
10
10
  props: {
@@ -46,7 +46,7 @@ const T = /* @__PURE__ */ u({
46
46
  autocomplete: {},
47
47
  direction: {},
48
48
  showToday: { type: Boolean },
49
- showTime: { type: Boolean },
49
+ showTime: { type: [Boolean, Object] },
50
50
  picker: {},
51
51
  prefixCls: {},
52
52
  defaultPickerValue: {},
@@ -101,5 +101,5 @@ const T = /* @__PURE__ */ u({
101
101
  }
102
102
  });
103
103
  export {
104
- T as default
104
+ S as default
105
105
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as P, Fragment as m, createElementBlock as g, createBlock as k, openBlock as u, createTextVNode as S, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as w, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
1
+ import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as O, Fragment as m, createElementBlock as g, createBlock as k, openBlock as u, createTextVNode as S, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as w, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
2
2
  import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as T, PRESET_FORMAT_PICK_MAP as le, PRESET_FORMAT_TIME_MAP as ue } from "../date/constant.mjs";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as M, omit as b, isString as c, isFunction as de } from "lodash-unified";
@@ -103,7 +103,7 @@ const ze = /* @__PURE__ */ L({
103
103
  },
104
104
  variant: {},
105
105
  showTime: {
106
- type: Boolean,
106
+ type: [Boolean, Object],
107
107
  default: void 0
108
108
  },
109
109
  showNow: {
@@ -166,7 +166,7 @@ const ze = /* @__PURE__ */ L({
166
166
  }) {
167
167
  const o = R, _ = F, z = Y(), i = s(() => re.indexOf(o.format) > -1), y = s(() => i.value ? T[o.format] : o.format), {
168
168
  value: v,
169
- updateValue: O
169
+ updateValue: P
170
170
  } = ke(o, _), N = s(() => o.shownFormat ? o.shownFormat : i.value ? T[o.format] : o.format), x = ve("DateRange", o), {
171
171
  currentTimezone: l
172
172
  } = ge(o), {
@@ -192,12 +192,12 @@ const ze = /* @__PURE__ */ L({
192
192
  });
193
193
  function j(e) {
194
194
  if (!e) {
195
- O(e);
195
+ P(e);
196
196
  return;
197
197
  }
198
198
  let a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1];
199
199
  const r = t(i) ? t(y) : void 0;
200
- O([p(a, r), p(n, r, !1)]);
200
+ P([p(a, r), p(n, r, !1)]);
201
201
  }
202
202
  function H(e) {
203
203
  const a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1], r = t(i) ? t(y) : void 0, f = e[0] ? p(a, r) : null, D = e[1] ? p(n, r, !1) : null;
@@ -217,9 +217,9 @@ const ze = /* @__PURE__ */ L({
217
217
  const $ = s(() => {
218
218
  const e = o.readModeSeparator;
219
219
  if (e)
220
- return Z(e) || de(e) ? o.readModeSeparator : P(m, null, [o.readModeSeparator]);
220
+ return Z(e) || de(e) ? o.readModeSeparator : O(m, null, [o.readModeSeparator]);
221
221
  const a = z.readModeSeparator?.();
222
- return a ? P(m, null, [a]) : ce;
222
+ return a ? O(m, null, [a]) : ce;
223
223
  });
224
224
  return (e, a) => e.mode === "read" ? (u(), g(m, {
225
225
  key: 0
@@ -249,7 +249,7 @@ const ze = /* @__PURE__ */ L({
249
249
  _: 2
250
250
  }, 1032, ["value"]))), 128))]),
251
251
  _: 1
252
- }, 8, ["value"])) : Q("", !0), P(t(fe).RangePicker, ee(U.value, {
252
+ }, 8, ["value"])) : Q("", !0), O(t(fe).RangePicker, ee(U.value, {
253
253
  value: h.value,
254
254
  picker: I.value,
255
255
  format: N.value,
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as h, toDisplayString as p, resolveDynamicComponent as b } from "vue";
1
+ import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as b, toDisplayString as p, resolveDynamicComponent as h } from "vue";
2
2
  import { isNil as g } from "lodash-unified";
3
3
  import { useDateTimezone as w } from "../hooks/use-date-timezone.mjs";
4
4
  import { getTimeFormatToZone as m } from "@aplus-frontend/utils";
@@ -60,7 +60,7 @@ const M = /* @__PURE__ */ v({
60
60
  size: {},
61
61
  bordered: { type: Boolean },
62
62
  variant: {},
63
- showTime: { type: Boolean },
63
+ showTime: { type: [Boolean, Object] },
64
64
  showNow: { type: Boolean },
65
65
  order: { type: Boolean },
66
66
  defaultOpenValue: {},
@@ -108,7 +108,7 @@ const M = /* @__PURE__ */ v({
108
108
  );
109
109
  return (o, s) => t.value ? (r(), d(i, { key: 0 }, [
110
110
  l(p(t.value[0]?.format(u.value)) + " ", 1),
111
- (r(), h(b(o.readModeSeparator))),
111
+ (r(), b(h(o.readModeSeparator))),
112
112
  l(" " + p(t.value[1]?.format(u.value)), 1)
113
113
  ], 64)) : (r(), d(i, { key: 1 }, [
114
114
  l(p(o.emptyText), 1)
@@ -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;
@@ -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
  };