@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,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
  };
@@ -66,9 +66,9 @@ declare function __VLS_template(): {
66
66
  type: "up" | "down";
67
67
  }) => void) | undefined;
68
68
  readonly type?: string | undefined;
69
+ readonly placeholder?: string | undefined;
69
70
  readonly name?: string | undefined;
70
71
  readonly id?: string | undefined;
71
- readonly placeholder?: string | undefined;
72
72
  readonly valueModifiers?: Record<string, any> | undefined;
73
73
  readonly addonBefore?: any;
74
74
  readonly addonAfter?: any;
@@ -561,9 +561,9 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
561
561
  type: "up" | "down";
562
562
  }) => void) | undefined;
563
563
  readonly type?: string | undefined;
564
+ readonly placeholder?: string | undefined;
564
565
  readonly name?: string | undefined;
565
566
  readonly id?: string | undefined;
566
- readonly placeholder?: string | undefined;
567
567
  readonly valueModifiers?: Record<string, any> | undefined;
568
568
  readonly addonBefore?: any;
569
569
  readonly addonAfter?: any;
@@ -66,6 +66,7 @@ declare function __VLS_template(): {
66
66
  readonly direction?: "ltr" | "rtl" | undefined;
67
67
  readonly animation?: string | undefined;
68
68
  readonly children?: VueNode[] | undefined;
69
+ readonly placeholder?: any;
69
70
  readonly prefixCls?: string | undefined;
70
71
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
71
72
  readonly loading?: boolean | undefined;
@@ -76,7 +77,6 @@ declare function __VLS_template(): {
76
77
  readonly getPopupContainer?: RenderDOMFunc | undefined;
77
78
  readonly virtual?: boolean | undefined;
78
79
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
79
- readonly placeholder?: any;
80
80
  readonly status?: "" | "error" | "warning" | undefined;
81
81
  readonly defaultValue?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
82
82
  readonly prefix?: any;
@@ -715,6 +715,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
715
715
  readonly direction?: "ltr" | "rtl" | undefined;
716
716
  readonly animation?: string | undefined;
717
717
  readonly children?: VueNode[] | undefined;
718
+ readonly placeholder?: any;
718
719
  readonly prefixCls?: string | undefined;
719
720
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
720
721
  readonly loading?: boolean | undefined;
@@ -725,7 +726,6 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
725
726
  readonly getPopupContainer?: RenderDOMFunc | undefined;
726
727
  readonly virtual?: boolean | undefined;
727
728
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
728
- readonly placeholder?: any;
729
729
  readonly status?: "" | "error" | "warning" | undefined;
730
730
  readonly defaultValue?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
731
731
  readonly prefix?: any;
@@ -46,6 +46,7 @@ declare function __VLS_template(): {
46
46
  readonly onMousedown?: MouseEventHandler | undefined;
47
47
  readonly value?: string | number | undefined;
48
48
  readonly disabled?: boolean | undefined;
49
+ readonly placeholder?: string | number | undefined;
49
50
  readonly prefixCls?: string | undefined;
50
51
  readonly name?: string | undefined;
51
52
  readonly loading?: boolean | undefined;
@@ -56,7 +57,6 @@ declare function __VLS_template(): {
56
57
  readonly focused?: boolean | undefined;
57
58
  readonly readonly?: boolean | undefined;
58
59
  readonly autocomplete?: string | undefined;
59
- readonly placeholder?: string | number | undefined;
60
60
  readonly maxlength?: number | undefined;
61
61
  readonly showCount?: boolean | ShowCountProps | undefined;
62
62
  readonly htmlSize?: number | undefined;
@@ -203,6 +203,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
203
203
  readonly onMousedown?: MouseEventHandler | undefined;
204
204
  readonly value?: string | number | undefined;
205
205
  readonly disabled?: boolean | undefined;
206
+ readonly placeholder?: string | number | undefined;
206
207
  readonly prefixCls?: string | undefined;
207
208
  readonly name?: string | undefined;
208
209
  readonly loading?: boolean | undefined;
@@ -213,7 +214,6 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
213
214
  readonly focused?: boolean | undefined;
214
215
  readonly readonly?: boolean | undefined;
215
216
  readonly autocomplete?: string | undefined;
216
- readonly placeholder?: string | number | undefined;
217
217
  readonly maxlength?: number | undefined;
218
218
  readonly showCount?: boolean | ShowCountProps | undefined;
219
219
  readonly htmlSize?: number | undefined;
@@ -47,6 +47,7 @@ declare function __VLS_template(): {
47
47
  readonly onMousedown?: MouseEventHandler | undefined;
48
48
  readonly value?: string | number | undefined;
49
49
  readonly disabled?: boolean | undefined;
50
+ readonly placeholder?: string | number | undefined;
50
51
  readonly prefixCls?: string | undefined;
51
52
  readonly name?: string | undefined;
52
53
  readonly loading?: boolean | undefined;
@@ -57,7 +58,6 @@ declare function __VLS_template(): {
57
58
  readonly focused?: boolean | undefined;
58
59
  readonly readonly?: boolean | undefined;
59
60
  readonly autocomplete?: string | undefined;
60
- readonly placeholder?: string | number | undefined;
61
61
  readonly maxlength?: number | undefined;
62
62
  readonly showCount?: boolean | ShowCountProps | undefined;
63
63
  readonly htmlSize?: number | undefined;
@@ -210,6 +210,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
210
210
  readonly onMousedown?: MouseEventHandler | undefined;
211
211
  readonly value?: string | number | undefined;
212
212
  readonly disabled?: boolean | undefined;
213
+ readonly placeholder?: string | number | undefined;
213
214
  readonly prefixCls?: string | undefined;
214
215
  readonly name?: string | undefined;
215
216
  readonly loading?: boolean | undefined;
@@ -220,7 +221,6 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
220
221
  readonly focused?: boolean | undefined;
221
222
  readonly readonly?: boolean | undefined;
222
223
  readonly autocomplete?: string | undefined;
223
- readonly placeholder?: string | number | undefined;
224
224
  readonly maxlength?: number | undefined;
225
225
  readonly showCount?: boolean | ShowCountProps | undefined;
226
226
  readonly htmlSize?: number | undefined;
@@ -70,6 +70,7 @@ declare function __VLS_template(): {
70
70
  readonly direction?: "ltr" | "rtl" | undefined;
71
71
  readonly animation?: string | undefined;
72
72
  readonly children?: VueNode[] | undefined;
73
+ readonly placeholder?: any;
73
74
  readonly prefixCls?: string | undefined;
74
75
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
75
76
  readonly loading?: boolean | undefined;
@@ -81,7 +82,6 @@ declare function __VLS_template(): {
81
82
  readonly getPopupContainer?: RenderDOMFunc | undefined;
82
83
  readonly virtual?: boolean | undefined;
83
84
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
84
- readonly placeholder?: any;
85
85
  readonly status?: "" | "error" | "warning" | undefined;
86
86
  readonly defaultValue?: unknown;
87
87
  readonly prefix?: any;
@@ -861,6 +861,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
861
861
  readonly direction?: "ltr" | "rtl" | undefined;
862
862
  readonly animation?: string | undefined;
863
863
  readonly children?: VueNode[] | undefined;
864
+ readonly placeholder?: any;
864
865
  readonly prefixCls?: string | undefined;
865
866
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
866
867
  readonly loading?: boolean | undefined;
@@ -872,7 +873,6 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
872
873
  readonly getPopupContainer?: RenderDOMFunc | undefined;
873
874
  readonly virtual?: boolean | undefined;
874
875
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
875
- readonly placeholder?: any;
876
876
  readonly status?: "" | "error" | "warning" | undefined;
877
877
  readonly defaultValue?: unknown;
878
878
  readonly prefix?: any;
@@ -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",
@@ -1,18 +1,18 @@
1
1
  import { genComponentStyleHook as a } from "../../utils/cssinjs/index.mjs";
2
- const r = (n) => {
3
- const { componentCls: e, namespace: t } = n;
2
+ const i = (n) => {
3
+ const { componentCls: t, namespace: e } = n;
4
4
  return {
5
- [e]: {
5
+ [t]: {
6
6
  // bordered
7
7
  "&--bordered": {
8
8
  boxSizing: "border-box",
9
- border: `1px solid ${n.borderColorBase}`,
9
+ border: `${n.lineWidth} ${n.lineType} ${n.borderColorBase}`,
10
10
  borderRadius: n.borderRadius,
11
11
  paddingInline: n.space,
12
12
  ".ant-input-affix-wrapper": {
13
13
  padding: 0
14
14
  },
15
- [`&:has(.${t}-batch-input-group):has(.ant-select)`]: {
15
+ [`&:has(.${e}-batch-input-group):has(.ant-select)`]: {
16
16
  ".ant-input-affix-wrapper": {
17
17
  paddingInlineEnd: n.space
18
18
  }
@@ -46,7 +46,7 @@ const r = (n) => {
46
46
  background: "unset !important"
47
47
  },
48
48
  ".ant-select-single .ant-select-selector": {
49
- height: "30px !important"
49
+ height: `${n.controlHeight} !important`
50
50
  },
51
51
  "input.ant-input-number-input": {
52
52
  paddingInlineStart: 0
@@ -66,13 +66,13 @@ const r = (n) => {
66
66
  },
67
67
  ".ant-form-item-label > label": {
68
68
  paddingRight: n.spaceLG,
69
- height: "30px",
69
+ height: n.controlHeight,
70
70
  "&::after": {
71
71
  margin: 0
72
72
  }
73
73
  },
74
74
  ".ant-form-item-control-input": {
75
- minHeight: "30px",
75
+ minHeight: n.controlHeight,
76
76
  ".ant-select-single": {
77
77
  height: "unset"
78
78
  }
@@ -84,7 +84,7 @@ const r = (n) => {
84
84
  borderColor: n.activeColorBase,
85
85
  boxShadow: "0 0 0 2px rgba(5, 155, 255, 0.1)"
86
86
  },
87
- [`.${t}-batch-input-group-popover-input__popover`]: {
87
+ [`.${e}-batch-input-group-popover-input__popover`]: {
88
88
  width: "calc(100% + 12px)"
89
89
  }
90
90
  },
@@ -104,14 +104,14 @@ const r = (n) => {
104
104
  ".ant-form-show-help": {
105
105
  ".ant-form-item-explain-error": {
106
106
  fontSize: n.fontSize,
107
- lineHeight: "16px"
107
+ lineHeight: n.lineHeightSM
108
108
  }
109
109
  },
110
110
  ".ant-col .ant-form-item-extra": {
111
- lineHeight: "22px",
111
+ lineHeight: n.lineHeightLG,
112
112
  minHeight: "unset",
113
- marginBlockStart: "4px",
114
- marginBlockEnd: "12px"
113
+ marginBlockStart: n.spaceXS,
114
+ marginBlockEnd: n.spaceLG
115
115
  },
116
116
  ".ant-input-group": {
117
117
  ".ant-picker:only-child": {
@@ -125,8 +125,8 @@ const r = (n) => {
125
125
  }
126
126
  }
127
127
  };
128
- }, o = a("ApForm", (n) => [r(n)]);
128
+ }, o = a("ApForm", (n) => [i(n)]);
129
129
  export {
130
130
  o as default,
131
- r as genApFormItemStyle
131
+ i as genApFormItemStyle
132
132
  };
@@ -9,7 +9,8 @@ const e = (o) => {
9
9
  ".ant-modal-header": {
10
10
  paddingInline: o.apFormModalHeaderPaddingInline,
11
11
  paddingBlock: o.apFormModalHeaderPaddingBlock,
12
- borderBottom: "1px solid #E9EDF3",
12
+ // todo:边框颜色在这里没有合适的token可以对应,后续需要优化
13
+ borderBottom: `${o.lineWidth} ${o.lineType} #E9EDF3`,
13
14
  marginBottom: 0
14
15
  },
15
16
  [`${a}__content`]: {
@@ -46,7 +46,7 @@ const l = (r) => {
46
46
  "> div": {
47
47
  border: `1px solid ${r.borderColorBase}`,
48
48
  borderRadius: r.borderRadius,
49
- padding: "8px",
49
+ padding: r.space,
50
50
  display: "flex",
51
51
  alignItems: "center",
52
52
  backgroundColor: "#fff",
@@ -1,6 +1,12 @@
1
1
  import { GenStyleFunc, StyleMixin } from '../../design-token/interface';
2
2
  import { ComputedRef } from 'vue';
3
+ export type SearchFormToken = {
4
+ /**
5
+ * 查询表单筛选弹框触发按钮徽标记尺寸
6
+ */
7
+ searchFormPopoverFilterBadgeSize: number;
8
+ };
3
9
  export declare const genPopoverStyle: StyleMixin;
4
- export declare const genSearchFormStyle: GenStyleFunc;
10
+ export declare const genSearchFormStyle: GenStyleFunc<SearchFormToken>;
5
11
  declare const _default: (prefixCls: string) => ComputedRef<string>;
6
12
  export default _default;