@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
@@ -20,7 +20,7 @@ const ce = /* @__PURE__ */ T({
20
20
  maxViewNum: {}
21
21
  },
22
22
  setup(N) {
23
- const f = N, { t: o } = G(), { b: n } = H("ap-view"), m = P("ap-view"), V = z(), { tableKey: F, popoverOpen: p, viewList: c, saveDataSource: h, viewListCRUD: b } = O(), _ = $({
23
+ const f = N, { t: o } = G(), { b: i } = H("ap-view"), m = P("ap-view"), V = z(), { tableKey: F, popoverOpen: p, viewList: c, saveDataSource: h, viewListCRUD: b } = O(), _ = $({
24
24
  get: () => p.value && c.value.length < f.maxViewNum + 1,
25
25
  set: (l) => {
26
26
  c.value.length < f.maxViewNum + 1 && (p.value = l);
@@ -29,12 +29,12 @@ const ce = /* @__PURE__ */ T({
29
29
  L(p, (l) => {
30
30
  l && (V.value?.resetFields(), setTimeout(() => {
31
31
  V.value?.setFieldsValue({
32
- isDefault: !c.value.some((i) => i.isDefault)
32
+ isDefault: !c.value.some((n) => n.isDefault)
33
33
  });
34
34
  }));
35
35
  });
36
36
  const D = async (l) => {
37
- const { viewName: i, isDefault: v } = l, S = A(), k = g(
37
+ const { viewName: n, isDefault: v } = l, S = A(), k = g(
38
38
  h?.getSearchFormValues?.(
39
39
  !!h?.searchFormTransform
40
40
  )
@@ -45,14 +45,14 @@ const ce = /* @__PURE__ */ T({
45
45
  await b.addView?.({
46
46
  tableKey: F,
47
47
  viewKey: S,
48
- viewName: i,
48
+ viewName: n,
49
49
  isDefault: v,
50
50
  viewConfig: I
51
51
  }), p.value = !1;
52
52
  };
53
- return (l, i) => (E(), Y(e(R), {
53
+ return (l, n) => (E(), Y(e(R), {
54
54
  open: _.value,
55
- "onUpdate:open": i[1] || (i[1] = (v) => _.value = v),
55
+ "onUpdate:open": n[1] || (n[1] = (v) => _.value = v),
56
56
  placement: "bottom",
57
57
  trigger: "click",
58
58
  arrow: !1,
@@ -62,7 +62,7 @@ const ce = /* @__PURE__ */ T({
62
62
  }, {
63
63
  content: t(() => [
64
64
  u("div", {
65
- class: r([e(n)("main-content-popover"), e(m)])
65
+ class: r([e(i)(), e(i)("main-content-popover"), e(m)])
66
66
  }, [
67
67
  a(w, {
68
68
  ref_key: "formRef",
@@ -75,10 +75,10 @@ const ce = /* @__PURE__ */ T({
75
75
  }, {
76
76
  default: t(() => [
77
77
  u("div", {
78
- class: r([e(n)("main-content-popover-title-content"), e(m)])
78
+ class: r([e(i)("main-content-popover-title-content"), e(m)])
79
79
  }, [
80
80
  u("div", {
81
- class: r([e(n)("main-content-popover-title-content-title")])
81
+ class: r([e(i)("main-content-popover-title-content-title")])
82
82
  }, s(e(o)("ap.apView.saveNewView")), 3),
83
83
  a(w.FormItem, {
84
84
  name: "isDefault",
@@ -110,14 +110,14 @@ const ce = /* @__PURE__ */ T({
110
110
  _: 1
111
111
  }, 8, ["label", "rules"]),
112
112
  a(w.FormItem, {
113
- class: r([e(n)("main-content-popover-btn"), e(m)])
113
+ class: r([e(i)("main-content-popover-btn"), e(m)])
114
114
  }, {
115
115
  default: t(() => [
116
116
  a(e(y), { size: 8 }, {
117
117
  default: t(() => [
118
118
  a(e(x), {
119
119
  size: "small",
120
- onClick: i[0] || (i[0] = (v) => p.value = !1)
120
+ onClick: n[0] || (n[0] = (v) => p.value = !1)
121
121
  }, {
122
122
  default: t(() => [
123
123
  d(s(e(o)("ap.apView.cancel")), 1)
@@ -148,8 +148,8 @@ const ce = /* @__PURE__ */ T({
148
148
  default: t(() => [
149
149
  u("div", {
150
150
  class: r({
151
- [e(n)("main-content")]: !0,
152
- [e(n)("main-content-disabled")]: e(c).length >= f.maxViewNum + 1,
151
+ [e(i)("main-content")]: !0,
152
+ [e(i)("main-content-disabled")]: e(c).length >= f.maxViewNum + 1,
153
153
  hashId: e(m)
154
154
  })
155
155
  }, [
@@ -158,7 +158,7 @@ const ce = /* @__PURE__ */ T({
158
158
  a(e(y), { size: 4 }, {
159
159
  default: t(() => [
160
160
  a(q, {
161
- class: r([e(n)("icon"), e(m)])
161
+ class: r([e(i)("icon"), e(m)])
162
162
  }, null, 8, ["class"]),
163
163
  u("div", null, s(e(o)("ap.apView.saveView")), 1)
164
164
  ]),
@@ -1,8 +1,8 @@
1
- import { defineComponent as T, ref as y, watch as $, createElementBlock as l, openBlock as m, normalizeClass as V, unref as e, createElementVNode as o, createCommentVNode as f, toDisplayString as c, createVNode as i, withModifiers as b, withCtx as r } from "vue";
1
+ import { defineComponent as T, ref as y, watch as $, createElementBlock as m, openBlock as c, normalizeClass as V, unref as e, createElementVNode as o, createCommentVNode as f, toDisplayString as r, createVNode as i, withModifiers as b, withCtx as v } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
3
  import { useViewInject as B } from "../hooks/use-view-provide.mjs";
4
- import { SYSTEM_VIEW_KEY as h } from "../utils/enum.mjs";
5
- import { Space as C, Popconfirm as F } from "@aplus-frontend/antdv";
4
+ import { SYSTEM_VIEW_KEY as C } from "../utils/enum.mjs";
5
+ import { Space as h, Popconfirm as F } from "@aplus-frontend/antdv";
6
6
  import L from "../icons/line-delete.vue.mjs";
7
7
  import "../../ap-tag/index.mjs";
8
8
  import "../../../ap-form/ap-form.vue.mjs";
@@ -22,13 +22,13 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
22
22
  view: {}
23
23
  },
24
24
  setup(N) {
25
- const { b: v } = j("ap-view"), d = P("ap-view"), { token: K } = Y(), { t: n } = A(), t = N, {
25
+ const { b: s } = j("ap-view"), d = P("ap-view"), { token: K } = Y(), { t: n } = A(), t = N, {
26
26
  currentViewKey: D,
27
27
  changeCurrentViewKey: S,
28
28
  viewListCRUD: p,
29
29
  tableKey: w,
30
30
  menuOpen: _
31
- } = B(), s = y(!1), k = y(), g = () => {
31
+ } = B(), l = y(!1), k = y(), g = () => {
32
32
  S(t.view.viewKey), _.value = !1;
33
33
  }, E = () => {
34
34
  p?.changeView?.({
@@ -36,69 +36,70 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
36
36
  tableKey: w,
37
37
  isDefault: !0
38
38
  });
39
- }, I = () => {
39
+ }, z = () => {
40
40
  p?.removeView?.({
41
41
  tableKey: w,
42
42
  viewKey: t.view.viewKey
43
43
  });
44
- }, z = async () => {
44
+ }, I = async () => {
45
45
  const u = await k.value?.validate?.();
46
46
  p?.changeView?.({
47
47
  ...t.view,
48
48
  tableKey: w,
49
49
  viewName: u?.viewName || t.view.viewName
50
- }), s.value = !1;
50
+ }), l.value = !1;
51
51
  };
52
52
  return $(
53
53
  () => _.value,
54
54
  (u) => {
55
- u && (s.value = !1);
55
+ u && (l.value = !1);
56
56
  }
57
- ), (u, a) => s.value === !1 ? (m(), l("div", {
57
+ ), (u, a) => l.value === !1 ? (c(), m("div", {
58
58
  key: 0,
59
59
  class: V({
60
- [e(v)("menu-list-content")]: !0,
61
- [e(v)("menu-list-content-active")]: t.view?.viewKey === e(D),
62
- hashId: e(d)
60
+ [e(s)()]: !0,
61
+ [e(s)("menu-list-content")]: !0,
62
+ [e(s)("menu-list-content-active")]: t.view?.viewKey === e(D),
63
+ [e(d)]: !0
63
64
  }),
64
65
  onClick: g
65
66
  }, [
66
67
  o("div", U, [
67
68
  o("span", {
68
69
  title: t.view?.viewName
69
- }, c(t.view?.viewName), 9, W)
70
+ }, r(t.view?.viewName), 9, W)
70
71
  ]),
71
- t.view?.viewKey !== e(h) && t.view?.isDefault ? (m(), l("div", q, [
72
+ t.view?.viewKey !== e(C) && t.view?.isDefault ? (c(), m("div", q, [
72
73
  i(e(O), {
73
74
  text: e(n)("ap.apView.default"),
74
75
  size: "small",
75
76
  color: e(K).colorPrimary
76
77
  }, null, 8, ["text", "color"])
77
78
  ])) : f("", !0),
78
- t.view?.viewKey !== e(h) ? (m(), l("div", {
79
+ t.view?.viewKey !== e(C) ? (c(), m("div", {
79
80
  key: 1,
80
81
  class: "menu-list-content-action",
81
82
  onClick: a[1] || (a[1] = b(() => {
82
83
  }, ["stop"]))
83
84
  }, [
84
- i(e(C), { size: 8 }, {
85
- default: r(() => [
85
+ i(e(h), { size: 8 }, {
86
+ default: v(() => [
86
87
  o("div", {
87
88
  class: "menu-list-content-action-text",
88
- onClick: a[0] || (a[0] = (R) => s.value = !0)
89
- }, c(e(n)("ap.apView.rename")), 1),
90
- t.view?.isDefault ? f("", !0) : (m(), l("div", {
89
+ onClick: a[0] || (a[0] = (R) => l.value = !0)
90
+ }, r(e(n)("ap.apView.rename")), 1),
91
+ t.view?.isDefault ? f("", !0) : (c(), m("div", {
91
92
  key: 0,
92
93
  class: "menu-list-content-action-text",
93
94
  onClick: E
94
- }, c(e(n)("ap.apView.setDefault")), 1)),
95
+ }, r(e(n)("ap.apView.setDefault")), 1)),
95
96
  o("div", G, [
96
97
  i(e(F), {
97
98
  title: e(n)("ap.apView.deleteTip"),
98
99
  "ok-text": e(n)("ap.apView.ok"),
99
- onConfirm: I
100
+ onConfirm: z
100
101
  }, {
101
- default: r(() => [
102
+ default: v(() => [
102
103
  i(L)
103
104
  ]),
104
105
  _: 1
@@ -108,9 +109,9 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
108
109
  _: 1
109
110
  })
110
111
  ])) : f("", !0)
111
- ], 2)) : (m(), l("div", {
112
+ ], 2)) : (c(), m("div", {
112
113
  key: 1,
113
- class: V([e(v)("menu-list-content"), e(v)("menu-list-content-edit"), e(d)])
114
+ class: V([e(s)("menu-list-content"), e(s)("menu-list-content-edit"), e(d)])
114
115
  }, [
115
116
  i(x, {
116
117
  ref_key: "formRef",
@@ -119,24 +120,24 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
119
120
  viewName: t.view?.viewName
120
121
  }
121
122
  }, {
122
- default: r(() => [
123
+ default: v(() => [
123
124
  o("div", H, [
124
- i(e(C), { size: 8 }, {
125
- default: r(() => [
125
+ i(e(h), { size: 8 }, {
126
+ default: v(() => [
126
127
  i(x.FormItem, { name: "viewName" }, {
127
- default: r(() => [
128
+ default: v(() => [
128
129
  i(e(M).Text, { maxlength: 20 })
129
130
  ]),
130
131
  _: 1
131
132
  }),
132
133
  o("div", {
133
134
  class: "menu-list-content-action-text",
134
- onClick: z
135
- }, c(e(n)("ap.apView.save")), 1),
135
+ onClick: I
136
+ }, r(e(n)("ap.apView.save")), 1),
136
137
  o("div", {
137
138
  class: "menu-list-content-action-text",
138
- onClick: a[2] || (a[2] = (R) => s.value = !1)
139
- }, c(e(n)("ap.apView.cancel")), 1)
139
+ onClick: a[2] || (a[2] = (R) => l.value = !1)
140
+ }, r(e(n)("ap.apView.cancel")), 1)
140
141
  ]),
141
142
  _: 1
142
143
  })
@@ -10,7 +10,7 @@ const r = {}, L = {
10
10
  viewBox: "0 0 14 14"
11
11
  };
12
12
  function i(s, t) {
13
- return n(), l("svg", L, t[0] || (t[0] = [
13
+ return n(), l("svg", L, [...t[0] || (t[0] = [
14
14
  e("g", null, [
15
15
  e("g", null, [
16
16
  e("path", {
@@ -21,7 +21,7 @@ function i(s, t) {
21
21
  })
22
22
  ])
23
23
  ], -1)
24
- ]));
24
+ ])]);
25
25
  }
26
26
  const f = /* @__PURE__ */ o(r, [["render", i]]);
27
27
  export {
@@ -10,7 +10,7 @@ const r = {}, i = {
10
10
  viewBox: "0 0 14 14"
11
11
  };
12
12
  function s(c, n) {
13
- return t(), o("svg", i, n[0] || (n[0] = [
13
+ return t(), o("svg", i, [...n[0] || (n[0] = [
14
14
  e("g", null, [
15
15
  e("g", null, [
16
16
  e("path", {
@@ -21,7 +21,7 @@ function s(c, n) {
21
21
  })
22
22
  ])
23
23
  ], -1)
24
- ]));
24
+ ])]);
25
25
  }
26
26
  const d = /* @__PURE__ */ l(r, [["render", s]]);
27
27
  export {
@@ -10,7 +10,7 @@ const l = {}, r = {
10
10
  viewBox: "0 0 16 16"
11
11
  };
12
12
  function i(s, t) {
13
- return o(), n("svg", r, t[0] || (t[0] = [
13
+ return o(), n("svg", r, [...t[0] || (t[0] = [
14
14
  e("g", null, [
15
15
  e("g", null, [
16
16
  e("path", {
@@ -21,7 +21,7 @@ function i(s, t) {
21
21
  })
22
22
  ])
23
23
  ], -1)
24
- ]));
24
+ ])]);
25
25
  }
26
26
  const w = /* @__PURE__ */ Q(l, [["render", i]]);
27
27
  export {
@@ -1,5 +1,9 @@
1
- import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
1
+ import { GenStyleFunc } from '../../../design-token/interface';
2
2
  import { ComputedRef } from 'vue';
3
- export declare const genApViewStyle: GenStyleFunc<BaseToken>;
3
+ export type ApViewToken = {
4
+ apViewPopoverWidth: number;
5
+ apViewMenuListWidth: number;
6
+ };
7
+ export declare const genApViewStyle: GenStyleFunc<ApViewToken>;
4
8
  declare const _default: (prefixCls: string) => ComputedRef<string>;
5
9
  export default _default;
@@ -1,44 +1,45 @@
1
1
  import { genComponentStyleHook as n } from "../../../utils/cssinjs/index.mjs";
2
- const o = (t) => {
3
- const { componentCls: e } = t;
2
+ const i = (e) => {
3
+ const { componentCls: t } = e;
4
4
  return {
5
- [e]: {
5
+ [t]: {
6
6
  "& > .ant-btn": {
7
7
  padding: 0
8
8
  },
9
9
  "& > .ant-dropdown-trigger": {
10
- color: t.textColor3
10
+ color: e.textColor3
11
11
  },
12
- [`${e}-main-content`]: {
13
- padding: "4px 8px",
12
+ [`${t}-main-content`]: {
13
+ paddingInline: e.space,
14
+ paddingBlock: e.spaceXS,
14
15
  display: "flex",
15
16
  alignItems: "center",
16
17
  justifyContent: "center",
17
18
  "&-disabled": {
18
- color: t.textColor4,
19
+ color: e.textColor4,
19
20
  cursor: "not-allowed"
20
21
  }
21
22
  },
22
- [`${e}-icon`]: {
23
+ [`${t}-icon`]: {
23
24
  width: "100%",
24
25
  height: "100%",
25
- fontSize: "14px",
26
+ fontSize: e.fontSizeLG,
26
27
  display: "flex",
27
28
  justifyContent: "center",
28
29
  alignItems: "center"
29
30
  }
30
31
  },
31
- [`${e}-main-content-popover`]: {
32
- width: "340px",
32
+ [`${t}-main-content-popover`]: {
33
+ width: e.apViewPopoverWidth,
33
34
  "&-title-content": {
34
35
  display: "flex",
35
36
  alignItems: "center",
36
37
  justifyContent: "space-between",
37
- marginBottom: "8px",
38
+ marginBottom: e.space,
38
39
  "&-title": {
39
- ontSize: "14px",
40
+ fontSize: e.fontSizeLG,
40
41
  fontWeight: 500,
41
- lineHeight: "22px"
42
+ lineHeight: e.lineHeightLG
42
43
  },
43
44
  ".ant-form-item": {
44
45
  marginBottom: 0
@@ -52,9 +53,9 @@ const o = (t) => {
52
53
  }
53
54
  }
54
55
  },
55
- [`${e}-overlay`]: {
56
+ [`${t}-overlay`]: {
56
57
  ".ant-dropdown-menu": {
57
- padding: "8px",
58
+ padding: e.space,
58
59
  "&-item": {
59
60
  padding: "0 !important",
60
61
  "&:hover": {
@@ -62,22 +63,23 @@ const o = (t) => {
62
63
  }
63
64
  }
64
65
  },
65
- [`${e}-menu-list-content`]: {
66
- width: "250px",
66
+ [`${t}-menu-list-content`]: {
67
+ width: e.apViewMenuListWidth,
67
68
  display: "flex",
68
- padding: "6px 8px",
69
+ paddingBlock: e.spaceSM,
70
+ paddingInline: e.space,
69
71
  alignItems: "center",
70
- height: "32px",
72
+ height: e.calc(e.controlHeight).add(e.calc(e.lineWidth).mul(2)).equal(),
71
73
  ".menu-list-content-name": {
72
74
  overflow: "hidden",
73
75
  display: "block",
74
76
  textOverflow: "ellipsis",
75
77
  whiteSpace: "nowrap",
76
- fontSize: "12px",
77
- marginRight: "8px"
78
+ fontSize: e.fontSize,
79
+ marginInlineEnd: e.space
78
80
  },
79
81
  ".menu-list-content-default": {
80
- marginRight: "8px",
82
+ marginInlineEnd: e.space,
81
83
  flexShrink: 0
82
84
  },
83
85
  ".menu-list-content-action": {
@@ -88,16 +90,16 @@ const o = (t) => {
88
90
  userSelect: "none",
89
91
  "&-text": {
90
92
  cursor: "pointer",
91
- fontSize: "12px",
93
+ fontSize: e.fontSize,
92
94
  display: "flex",
93
95
  alignItems: "center",
94
- color: t.colorPrimary
96
+ color: e.colorPrimary
95
97
  },
96
98
  "&-delete": {
97
99
  cursor: "pointer",
98
100
  display: "flex",
99
101
  alignItems: "center",
100
- color: t.textColor3,
102
+ color: e.textColor3,
101
103
  svg: {
102
104
  outline: "none",
103
105
  boxShadow: "none"
@@ -116,27 +118,33 @@ const o = (t) => {
116
118
  },
117
119
  "&-edit": {
118
120
  background: "transparent !important",
119
- padding: "0 8px",
121
+ paddingInline: e.space,
122
+ paddingBlock: 0,
120
123
  cursor: "default"
121
124
  },
122
125
  "&:hover": {
123
- background: t.colorBg3,
126
+ background: e.colorBg3,
124
127
  ".menu-list-content-action": {
125
128
  display: "block"
126
129
  }
127
130
  }
128
131
  },
129
- [`${e}-menu-list-content-active`]: {
132
+ [`${t}-menu-list-content-active`]: {
130
133
  ".menu-list-content-name": {
131
- color: t.colorPrimary
134
+ color: e.colorPrimary
132
135
  }
133
136
  }
134
137
  }
135
138
  };
136
- }, r = n("ApView", (t) => [
137
- o(t)
138
- ]);
139
+ }, a = n(
140
+ "ApView",
141
+ (e) => [i(e)],
142
+ {
143
+ apViewPopoverWidth: 340,
144
+ apViewMenuListWidth: 250
145
+ }
146
+ );
139
147
  export {
140
- r as default,
141
- o as genApViewStyle
148
+ a as default,
149
+ i as genApViewStyle
142
150
  };
@@ -45,6 +45,7 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
45
45
  readonly onMousedown?: MouseEventHandler | undefined;
46
46
  readonly value?: string | number | undefined;
47
47
  readonly disabled?: boolean | undefined;
48
+ readonly placeholder?: string | number | undefined;
48
49
  readonly prefixCls?: string | undefined;
49
50
  readonly name?: string | undefined;
50
51
  readonly loading?: boolean | undefined;
@@ -55,7 +56,6 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
55
56
  readonly focused?: boolean | undefined;
56
57
  readonly readonly?: boolean | undefined;
57
58
  readonly autocomplete?: string | undefined;
58
- readonly placeholder?: string | number | undefined;
59
59
  readonly maxlength?: number | undefined;
60
60
  readonly showCount?: boolean | ShowCountProps | undefined;
61
61
  readonly htmlSize?: number | undefined;
@@ -1,21 +1,22 @@
1
- import { defineComponent as T, ref as h, computed as u, unref as t, createElementBlock as $, openBlock as g, normalizeStyle as B, normalizeClass as b, createVNode as c, withCtx as A, createBlock as K, createCommentVNode as M, mergeProps as D } from "vue";
1
+ import { defineComponent as T, ref as h, computed as r, unref as t, createElementBlock as $, openBlock as g, normalizeStyle as B, normalizeClass as b, createVNode as c, withCtx as A, createBlock as K, createCommentVNode as M, mergeProps as D } from "vue";
2
2
  import "../../ap-field/index.mjs";
3
3
  import { Space as G } from "@aplus-frontend/antdv";
4
4
  import "../../config-provider/index.mjs";
5
5
  import { isNumber as q, omit as H } from "lodash-unified";
6
6
  import "./popover-input/index.vue.mjs";
7
7
  import "../../hooks/index.mjs";
8
- import { isDef as Y } from "../../utils/index.mjs";
9
- import { useDefaultPlaceholder as J } from "../../ap-field/hooks/use-default-placeholder.mjs";
10
- import { splitValue as Q } from "./utils.mjs";
11
- import W from "./style/index.mjs";
12
- import { useControllableValue as X } from "../../hooks/useControllableValue.mjs";
13
- import { useLocale as Z } from "../../config-provider/hooks/use-locale.mjs";
14
- import { useNamespace as ee } from "../../config-provider/hooks/use-namespace.mjs";
8
+ import "../../utils/index.mjs";
9
+ import { useDefaultPlaceholder as Y } from "../../ap-field/hooks/use-default-placeholder.mjs";
10
+ import { splitValue as J } from "./utils.mjs";
11
+ import Q from "./style/index.mjs";
12
+ import { useControllableValue as W } from "../../hooks/useControllableValue.mjs";
13
+ import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
14
+ import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
15
+ import { isDef as ee } from "../../utils/is.mjs";
15
16
  import te from "../../ap-field/select/index.vue.mjs";
16
17
  import { ApFieldText as oe } from "../../ap-field/text/index.mjs";
17
18
  import ne from "./popover-input/index.vue2.mjs";
18
- const m = "GROUP_SEARCH_ALL", Ae = /* @__PURE__ */ T({
19
+ const m = "GROUP_SEARCH_ALL", Ve = /* @__PURE__ */ T({
19
20
  name: "BatchInputGroup",
20
21
  __name: "index",
21
22
  props: {
@@ -77,43 +78,43 @@ const m = "GROUP_SEARCH_ALL", Ae = /* @__PURE__ */ T({
77
78
  },
78
79
  emits: ["update:value"],
79
80
  setup(V, { emit: x }) {
80
- const o = V, C = J("Text", o), S = x, { value: a, updateValue: r } = X(
81
+ const o = V, C = Y("Text", o), S = x, { value: a, updateValue: u } = W(
81
82
  o,
82
83
  S
83
- ), s = h(), f = h(), { t: I } = Z(), { b: k, cssVar: U } = ee("batch-input-group"), d = W("batch-input-group"), w = u(() => {
84
+ ), s = h(), f = h(), { t: I } = X(), { b: k, cssVar: U } = Z("batch-input-group"), d = Q("batch-input-group"), w = r(() => {
84
85
  const e = o.popoverPlacement;
85
86
  return {
86
87
  "popover-left": q(e) ? `${e}px` : e === "left" ? "0px" : "unset",
87
88
  "popover-right": e === "right" ? "0px" : "unset"
88
89
  };
89
- }), P = u(() => o.options ? o.options.length > 1 && o.hasAll ? [
90
+ }), P = r(() => o.options ? o.options.length > 1 && o.hasAll ? [
90
91
  { value: m, label: I("ap.common.all") },
91
92
  ...o.options
92
- ] : o.options : []), R = u(() => o.options ? o.options.map((e) => e.value) : []), N = u(() => t(a)?.value?.length ? t(a).value.join(",") : ""), j = u(() => t(a)?.value?.length ? t(a).value.join(`
93
- `) : ""), E = u(() => {
93
+ ] : o.options : []), R = r(() => o.options ? o.options.map((e) => e.value) : []), N = r(() => t(a)?.value?.length ? t(a).value.join(",") : ""), j = r(() => t(a)?.value?.length ? t(a).value.join(`
94
+ `) : ""), E = r(() => {
94
95
  const e = t(a)?.key;
95
96
  if (e?.length)
96
97
  return e.length === 1 || !o.hasAll ? e[0] : m;
97
- }), F = u(() => {
98
+ }), F = r(() => {
98
99
  const e = t(a)?.key;
99
100
  return !e || e?.length <= 1 ? t(C) : (o.options || []).filter((n) => e.includes(n.value)).map((n) => n.label).join("/");
100
101
  });
101
102
  function L(e) {
102
- const l = t(a) || {}, n = e === m ? t(R) : Y(e) ? [e] : [];
103
- r({
103
+ const l = t(a) || {}, n = e === m ? t(R) : ee(e) ? [e] : [];
104
+ u({
104
105
  ...l,
105
106
  key: n
106
107
  });
107
108
  }
108
109
  function O(e) {
109
110
  const l = t(a) || {}, n = e.target.value || "";
110
- let i = Q(n, ",", ",", o.maxNum);
111
+ let i = J(n, ",", ",", o.maxNum);
111
112
  if (n !== i) {
112
113
  const y = f.value?.$el?.querySelector("input");
113
114
  y && (y.value = i);
114
115
  }
115
116
  let p = i.split(",");
116
- p.length === 1 && p[0] === "" && (p = []), r({
117
+ p.length === 1 && p[0] === "" && (p = []), u({
117
118
  ...l,
118
119
  value: p
119
120
  });
@@ -121,14 +122,14 @@ const m = "GROUP_SEARCH_ALL", Ae = /* @__PURE__ */ T({
121
122
  function _(e) {
122
123
  const l = t(a) || {};
123
124
  let n = e.split(/,|\n/);
124
- r({
125
+ u({
125
126
  ...l,
126
127
  value: n
127
128
  });
128
129
  }
129
130
  function v() {
130
131
  const e = t(a) || {}, l = e.value?.filter(Boolean);
131
- r({
132
+ u({
132
133
  ...e,
133
134
  value: l
134
135
  });
@@ -200,5 +201,5 @@ const m = "GROUP_SEARCH_ALL", Ae = /* @__PURE__ */ T({
200
201
  }
201
202
  });
202
203
  export {
203
- Ae as default
204
+ Ve as default
204
205
  };
@@ -9,7 +9,7 @@ const a = (o) => {
9
9
  alignItems: "center",
10
10
  [`${r}-trigger-icon`]: {
11
11
  cursor: "pointer",
12
- fontSize: "16px",
12
+ fontSize: o.fontSizeXL,
13
13
  color: o.textColor2,
14
14
  lineHeight: 0,
15
15
  "&:hover": {
@@ -37,7 +37,7 @@ const a = (o) => {
37
37
  padding: 0
38
38
  },
39
39
  [`${r}__popover--content`]: {
40
- padding: "12px",
40
+ padding: o.spaceLG,
41
41
  textarea: {
42
42
  padding: 0,
43
43
  resize: "none"