@aplus-frontend/ui 7.6.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 (299) hide show
  1. package/es/src/ag-grid/hooks/use-columns-def.mjs +32 -31
  2. package/es/src/ag-grid/hooks/use-editable-api.mjs +9 -8
  3. package/es/src/ag-grid/hooks/use-editable-columns.mjs +26 -25
  4. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +11 -10
  5. package/es/src/ag-grid/index.vue.mjs +22 -21
  6. package/es/src/ag-grid/renderer/number.mjs +7 -7
  7. package/es/src/ag-grid/style/custom-header.mjs +3 -3
  8. package/es/src/ag-grid/style/index.mjs +1 -1
  9. package/es/src/ap-action/style/index.mjs +1 -1
  10. package/es/src/ap-drawer/style/index.mjs +12 -12
  11. package/es/src/ap-field/hooks/use-default-placeholder.mjs +5 -4
  12. package/es/src/ap-field/number/helper.mjs +1 -1
  13. package/es/src/ap-field/number/index.vue.mjs +9 -9
  14. package/es/src/ap-field/number/read.vue2.mjs +5 -5
  15. package/es/src/ap-field/style/checkbox.d.ts +2 -2
  16. package/es/src/ap-field/style/number.d.ts +2 -2
  17. package/es/src/ap-field/style/radio.d.ts +2 -2
  18. package/es/src/ap-field/style/textarea.d.ts +2 -2
  19. package/es/src/ap-field/switch/index.vue.mjs +4 -3
  20. package/es/src/ap-form/ap-form.vue2.mjs +18 -17
  21. package/es/src/ap-form/item/index.vue.mjs +6 -6
  22. package/es/src/ap-form/item-group/helper.mjs +8 -7
  23. package/es/src/ap-form/item-group/index.vue.mjs +15 -14
  24. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  25. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +24 -22
  26. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
  27. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +9 -8
  28. package/es/src/ap-form/search-form/index.vue.mjs +12 -11
  29. package/es/src/ap-form/set/index.vue.mjs +1 -1
  30. package/es/src/ap-form/style/item.mjs +15 -15
  31. package/es/src/ap-form/style/modal-form.mjs +2 -1
  32. package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
  33. package/es/src/ap-form/style/search-form.d.ts +7 -1
  34. package/es/src/ap-form/style/search-form.mjs +37 -34
  35. package/es/src/ap-grid/editable/form-item.vue.mjs +4 -3
  36. package/es/src/ap-grid/editable/index.vue.mjs +4 -3
  37. package/es/src/ap-grid/index.vue.mjs +13 -12
  38. package/es/src/ap-grid/style/editable.mjs +7 -7
  39. package/es/src/ap-grid/style/index.mjs +11 -11
  40. package/es/src/ap-grid/utils/table.mjs +14 -13
  41. package/es/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  42. package/es/src/ap-list/hooks/use-offline-list.mjs +13 -12
  43. package/es/src/ap-list/style/index.mjs +1 -1
  44. package/es/src/ap-pro-card/style/divider.mjs +2 -2
  45. package/es/src/ap-pro-card/style/index.mjs +14 -14
  46. package/es/src/ap-pro-card/style/operation.mjs +1 -2
  47. package/es/src/ap-pro-card/style/statistic.mjs +12 -12
  48. package/es/src/ap-pro-card/style/statistics-card.mjs +13 -13
  49. package/es/src/ap-pro-card/style/title.mjs +13 -33
  50. package/es/src/ap-table/ap-table.vue2.mjs +4 -3
  51. package/es/src/ap-table/hooks/use-table-column-state.mjs +23 -22
  52. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  53. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +4 -3
  54. package/es/src/ap-table/style/index-comp.d.ts +2 -1
  55. package/es/src/ap-table/style/index-comp.mjs +15 -12
  56. package/es/src/ap-table/style/index.d.ts +3 -0
  57. package/es/src/ap-table/style/index.mjs +14 -11
  58. package/es/src/ap-table/style/setting.d.ts +2 -1
  59. package/es/src/ap-table/style/setting.mjs +73 -61
  60. package/es/src/ap-table/utils.mjs +61 -62
  61. package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +15 -15
  62. package/es/src/business/ag-grid-modal/style/index.d.ts +3 -0
  63. package/es/src/business/ag-grid-modal/style/index.mjs +24 -20
  64. package/es/src/business/ag-grid-modal/style/selected-items.mjs +8 -8
  65. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +26 -27
  66. package/es/src/business/ap-appendix/style/index.mjs +20 -21
  67. package/es/src/business/ap-attachment/style/index.d.ts +6 -0
  68. package/es/src/business/ap-attachment/style/index.mjs +28 -25
  69. package/es/src/business/ap-batch-action/style/index.d.ts +2 -2
  70. package/es/src/business/ap-batch-action/style/index.mjs +18 -18
  71. package/es/src/business/ap-card/style/index.d.ts +2 -2
  72. package/es/src/business/ap-card/style/index.mjs +8 -8
  73. package/es/src/business/ap-copy/style/index.mjs +16 -22
  74. package/es/src/business/ap-descriptions/formatter/index.mjs +1 -1
  75. package/es/src/business/ap-descriptions/style/index.mjs +6 -5
  76. package/es/src/business/ap-download/style/index.mjs +4 -4
  77. package/es/src/business/ap-draggable-grid/style/index.mjs +7 -7
  78. package/es/src/business/ap-expand-alert/style/index.mjs +30 -26
  79. package/es/src/business/ap-image/style/index.d.ts +2 -2
  80. package/es/src/business/ap-image/style/index.mjs +8 -7
  81. package/es/src/business/ap-input-radio/style/index.mjs +1 -1
  82. package/es/src/business/ap-label/style/index.d.ts +14 -0
  83. package/es/src/business/ap-label/style/index.mjs +29 -19
  84. package/es/src/business/ap-ladder/style/index.mjs +7 -6
  85. package/es/src/business/ap-product-info/style/index.d.ts +10 -0
  86. package/es/src/business/ap-product-info/style/index.mjs +35 -28
  87. package/es/src/business/ap-radio-group/style/index.mjs +3 -3
  88. package/es/src/business/ap-select-layout/style/index.d.ts +6 -0
  89. package/es/src/business/ap-select-layout/style/index.mjs +59 -53
  90. package/es/src/business/ap-size-input/style/index.mjs +3 -3
  91. package/es/src/business/ap-status/style/index.mjs +1 -1
  92. package/es/src/business/ap-summary/style/index.d.ts +10 -0
  93. package/es/src/business/ap-summary/style/index.mjs +18 -11
  94. package/es/src/business/ap-table-modal/style/index.d.ts +11 -1
  95. package/es/src/business/ap-table-modal/style/index.mjs +17 -12
  96. package/es/src/business/ap-tag/style/index.mjs +33 -31
  97. package/es/src/business/ap-title/style/index.d.ts +2 -1
  98. package/es/src/business/ap-title/style/index.mjs +41 -49
  99. package/es/src/business/ap-upload/style/index.mjs +10 -5
  100. package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  101. package/es/src/business/ap-upload/style/multiple-file.mjs +8 -7
  102. package/es/src/business/ap-upload/style/picture.d.ts +3 -2
  103. package/es/src/business/ap-upload/style/picture.mjs +26 -26
  104. package/es/src/business/ap-upload/style/single-file.d.ts +3 -2
  105. package/es/src/business/ap-upload/style/single-file.mjs +30 -29
  106. package/es/src/business/ap-upload/style/token.d.ts +19 -0
  107. package/es/src/business/ap-upload/style/token.mjs +9 -0
  108. package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  109. package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +51 -42
  110. package/es/src/business/ap-value-select-card/style/index.mjs +45 -43
  111. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +14 -14
  112. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +35 -34
  113. package/es/src/business/ap-view/style/index.d.ts +6 -2
  114. package/es/src/business/ap-view/style/index.mjs +43 -35
  115. package/es/src/business/batch-input-group/index.vue.mjs +23 -22
  116. package/es/src/business/batch-input-group/style/index.mjs +2 -2
  117. package/es/src/check-card/style/index.mjs +17 -17
  118. package/es/src/design-token/constants.mjs +9 -1
  119. package/es/src/design-token/interface.d.ts +137 -12
  120. package/es/src/editable-table/form-item.vue.mjs +4 -3
  121. package/es/src/editable-table/index.vue.mjs +4 -3
  122. package/es/src/editable-table/style/index.mjs +11 -11
  123. package/es/src/editable-table/utils.d.ts +1 -1
  124. package/es/src/editable-table/utils.mjs +27 -26
  125. package/es/src/hooks/useMessage.mjs +4 -4
  126. package/es/src/loading-bar/index.vue2.mjs +4 -3
  127. package/es/src/loading-bar/style/index.mjs +10 -10
  128. package/es/src/scroll-view/hooks/use-scroll-smooth.mjs +10 -9
  129. package/es/src/scroll-view/index.vue.mjs +4 -3
  130. package/es/src/splitter/style/index.mjs +11 -11
  131. package/es/src/text/index.vue.mjs +8 -7
  132. package/es/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  133. package/es/src/utils/cssinjs/TokenUtil.mjs +3 -0
  134. package/es/src/utils/decimal.d.ts +36 -0
  135. package/es/src/utils/decimal.mjs +45 -0
  136. package/es/src/utils/format.d.ts +21 -0
  137. package/es/src/utils/format.mjs +32 -0
  138. package/es/src/utils/index.d.ts +2 -1
  139. package/es/src/utils/index.mjs +20 -22
  140. package/es/src/utils/is.d.ts +54 -0
  141. package/es/src/utils/is.mjs +26 -0
  142. package/es/src/utils/slot.mjs +1 -2
  143. package/es/src/version.d.ts +1 -1
  144. package/es/src/version.mjs +1 -1
  145. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  146. package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
  147. package/lib/src/ag-grid/hooks/use-editable-columns.js +1 -1
  148. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  149. package/lib/src/ag-grid/index.vue.js +1 -1
  150. package/lib/src/ag-grid/renderer/number.js +1 -1
  151. package/lib/src/ag-grid/style/custom-header.js +1 -1
  152. package/lib/src/ag-grid/style/index.js +1 -1
  153. package/lib/src/ap-action/style/index.js +1 -1
  154. package/lib/src/ap-drawer/style/index.js +1 -1
  155. package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
  156. package/lib/src/ap-field/number/helper.js +1 -1
  157. package/lib/src/ap-field/number/index.vue.js +1 -1
  158. package/lib/src/ap-field/number/read.vue2.js +1 -1
  159. package/lib/src/ap-field/style/checkbox.d.ts +2 -2
  160. package/lib/src/ap-field/style/number.d.ts +2 -2
  161. package/lib/src/ap-field/style/radio.d.ts +2 -2
  162. package/lib/src/ap-field/style/textarea.d.ts +2 -2
  163. package/lib/src/ap-field/switch/index.vue.js +1 -1
  164. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  165. package/lib/src/ap-form/item/index.vue.js +1 -1
  166. package/lib/src/ap-form/item-group/helper.js +1 -1
  167. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  168. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  169. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  170. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  171. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  172. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  173. package/lib/src/ap-form/set/index.vue.js +1 -1
  174. package/lib/src/ap-form/style/item.js +1 -1
  175. package/lib/src/ap-form/style/modal-form.js +1 -1
  176. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  177. package/lib/src/ap-form/style/search-form.d.ts +7 -1
  178. package/lib/src/ap-form/style/search-form.js +1 -1
  179. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  180. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  181. package/lib/src/ap-grid/index.vue.js +1 -1
  182. package/lib/src/ap-grid/style/editable.js +1 -1
  183. package/lib/src/ap-grid/style/index.js +1 -1
  184. package/lib/src/ap-grid/utils/table.js +1 -1
  185. package/lib/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  186. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  187. package/lib/src/ap-list/style/index.js +1 -1
  188. package/lib/src/ap-pro-card/style/divider.js +1 -1
  189. package/lib/src/ap-pro-card/style/index.js +1 -1
  190. package/lib/src/ap-pro-card/style/operation.js +1 -1
  191. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  192. package/lib/src/ap-pro-card/style/statistics-card.js +1 -1
  193. package/lib/src/ap-pro-card/style/title.js +1 -1
  194. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  195. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  196. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  197. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  198. package/lib/src/ap-table/style/index-comp.d.ts +2 -1
  199. package/lib/src/ap-table/style/index-comp.js +1 -1
  200. package/lib/src/ap-table/style/index.d.ts +3 -0
  201. package/lib/src/ap-table/style/index.js +1 -1
  202. package/lib/src/ap-table/style/setting.d.ts +2 -1
  203. package/lib/src/ap-table/style/setting.js +1 -1
  204. package/lib/src/ap-table/utils.js +1 -1
  205. package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
  206. package/lib/src/business/ag-grid-modal/style/index.d.ts +3 -0
  207. package/lib/src/business/ag-grid-modal/style/index.js +1 -1
  208. package/lib/src/business/ag-grid-modal/style/selected-items.js +1 -1
  209. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  210. package/lib/src/business/ap-appendix/style/index.js +1 -1
  211. package/lib/src/business/ap-attachment/style/index.d.ts +6 -0
  212. package/lib/src/business/ap-attachment/style/index.js +1 -1
  213. package/lib/src/business/ap-batch-action/style/index.d.ts +2 -2
  214. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  215. package/lib/src/business/ap-card/style/index.d.ts +2 -2
  216. package/lib/src/business/ap-card/style/index.js +1 -1
  217. package/lib/src/business/ap-copy/style/index.js +1 -1
  218. package/lib/src/business/ap-descriptions/formatter/index.js +1 -1
  219. package/lib/src/business/ap-descriptions/style/index.js +1 -1
  220. package/lib/src/business/ap-download/style/index.js +1 -1
  221. package/lib/src/business/ap-draggable-grid/style/index.js +1 -1
  222. package/lib/src/business/ap-expand-alert/style/index.js +1 -1
  223. package/lib/src/business/ap-image/style/index.d.ts +2 -2
  224. package/lib/src/business/ap-image/style/index.js +1 -1
  225. package/lib/src/business/ap-input-radio/style/index.js +1 -1
  226. package/lib/src/business/ap-label/style/index.d.ts +14 -0
  227. package/lib/src/business/ap-label/style/index.js +1 -1
  228. package/lib/src/business/ap-ladder/style/index.js +1 -1
  229. package/lib/src/business/ap-product-info/style/index.d.ts +10 -0
  230. package/lib/src/business/ap-product-info/style/index.js +1 -1
  231. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  232. package/lib/src/business/ap-select-layout/style/index.d.ts +6 -0
  233. package/lib/src/business/ap-select-layout/style/index.js +1 -1
  234. package/lib/src/business/ap-size-input/style/index.js +1 -1
  235. package/lib/src/business/ap-status/style/index.js +1 -1
  236. package/lib/src/business/ap-summary/style/index.d.ts +10 -0
  237. package/lib/src/business/ap-summary/style/index.js +1 -1
  238. package/lib/src/business/ap-table-modal/style/index.d.ts +11 -1
  239. package/lib/src/business/ap-table-modal/style/index.js +1 -1
  240. package/lib/src/business/ap-tag/style/index.js +1 -1
  241. package/lib/src/business/ap-title/style/index.d.ts +2 -1
  242. package/lib/src/business/ap-title/style/index.js +1 -1
  243. package/lib/src/business/ap-upload/style/index.js +1 -1
  244. package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  245. package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
  246. package/lib/src/business/ap-upload/style/picture.d.ts +3 -2
  247. package/lib/src/business/ap-upload/style/picture.js +1 -1
  248. package/lib/src/business/ap-upload/style/single-file.d.ts +3 -2
  249. package/lib/src/business/ap-upload/style/single-file.js +1 -1
  250. package/lib/src/business/ap-upload/style/token.d.ts +19 -0
  251. package/lib/src/business/ap-upload/style/token.js +1 -0
  252. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  253. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
  254. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  255. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  256. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  257. package/lib/src/business/ap-view/style/index.d.ts +6 -2
  258. package/lib/src/business/ap-view/style/index.js +1 -1
  259. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  260. package/lib/src/business/batch-input-group/style/index.js +1 -1
  261. package/lib/src/check-card/style/index.js +1 -1
  262. package/lib/src/design-token/constants.js +1 -1
  263. package/lib/src/design-token/interface.d.ts +137 -12
  264. package/lib/src/editable-table/form-item.vue.js +1 -1
  265. package/lib/src/editable-table/index.vue.js +1 -1
  266. package/lib/src/editable-table/style/index.js +1 -1
  267. package/lib/src/editable-table/utils.d.ts +1 -1
  268. package/lib/src/editable-table/utils.js +1 -1
  269. package/lib/src/hooks/useMessage.js +1 -1
  270. package/lib/src/loading-bar/index.vue2.js +1 -1
  271. package/lib/src/loading-bar/style/index.js +3 -3
  272. package/lib/src/scroll-view/hooks/use-scroll-smooth.js +1 -1
  273. package/lib/src/scroll-view/index.vue.js +1 -1
  274. package/lib/src/splitter/style/index.js +1 -1
  275. package/lib/src/text/index.vue.js +1 -1
  276. package/lib/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  277. package/lib/src/utils/cssinjs/TokenUtil.js +1 -1
  278. package/lib/src/utils/decimal.d.ts +36 -0
  279. package/lib/src/utils/decimal.js +1 -0
  280. package/lib/src/utils/format.d.ts +21 -0
  281. package/lib/src/utils/format.js +1 -0
  282. package/lib/src/utils/index.d.ts +2 -1
  283. package/lib/src/utils/index.js +1 -1
  284. package/lib/src/utils/is.d.ts +54 -0
  285. package/lib/src/utils/is.js +1 -0
  286. package/lib/src/utils/slot.js +1 -1
  287. package/lib/src/version.d.ts +1 -1
  288. package/lib/src/version.js +1 -1
  289. package/package.json +4 -4
  290. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  291. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +0 -18
  292. package/es/src/utils/copy-text-to-clipboard.d.ts +0 -1
  293. package/es/src/utils/tree.d.ts +0 -38
  294. package/es/src/utils/uuid.d.ts +0 -2
  295. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  296. package/lib/src/business/ap-appendix/icons/file-icon.vue.js +0 -1
  297. package/lib/src/utils/copy-text-to-clipboard.d.ts +0 -1
  298. package/lib/src/utils/tree.d.ts +0 -38
  299. package/lib/src/utils/uuid.d.ts +0 -2
@@ -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
  })
@@ -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
  };
@@ -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"
@@ -3,11 +3,11 @@ import { genComponentStyleHook as t } from "../../utils/cssinjs/index.mjs";
3
3
  const s = (e) => {
4
4
  const {
5
5
  componentCls: i,
6
- checkCardDisabledOutlineColor: c,
7
- checkCardIndicatorSize: d,
6
+ checkCardDisabledOutlineColor: l,
7
+ checkCardIndicatorSize: c,
8
8
  checkCardOutlineWidth: r,
9
- checkCardIndicatorOffset: l
10
- } = e, a = e.calc(d).mul(2).equal();
9
+ checkCardIndicatorOffset: d
10
+ } = e, a = e.calc(c).mul(2).equal();
11
11
  return {
12
12
  [`${i}`]: {
13
13
  ...o(e),
@@ -18,11 +18,11 @@ const s = (e) => {
18
18
  cursor: "not-allowed !important"
19
19
  },
20
20
  "&--bordered": {
21
- outline: `1px solid ${e.borderColorBase}`
21
+ outline: `${e.lineWidth} ${e.lineType} ${e.borderColorBase}`
22
22
  },
23
23
  [`&:hover:not(${i}--disabled)`]: {
24
24
  cursor: "pointer",
25
- outline: `1px solid ${e.colorPrimary}`
25
+ outline: `${e.lineWidth} ${e.lineType} ${e.colorPrimary}`
26
26
  },
27
27
  "&::after": {
28
28
  content: '""',
@@ -36,21 +36,21 @@ const s = (e) => {
36
36
  borderRadius: e.calc(e.borderRadius).add("2px").equal()
37
37
  },
38
38
  "&--checked": {
39
- outline: `${r} solid ${e.colorPrimary}`,
39
+ outline: `${r} ${e.lineType} ${e.colorPrimary}`,
40
40
  [`&:hover:not(${i}--disabled)`]: {
41
- outline: `${r} solid ${e.colorPrimary}`
41
+ outline: `${r} ${e.lineType} ${e.colorPrimary}`
42
42
  },
43
43
  "&::after": {
44
44
  width: a,
45
45
  height: a,
46
- insetBlockStart: l,
47
- insetInlineEnd: l,
46
+ insetBlockStart: d,
47
+ insetInlineEnd: d,
48
48
  transition: "width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), inset 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"
49
49
  },
50
50
  [`&${i}--disabled`]: {
51
- outlineColor: c,
51
+ outlineColor: l,
52
52
  "&::after": {
53
- backgroundColor: c
53
+ backgroundColor: l
54
54
  }
55
55
  }
56
56
  },
@@ -63,7 +63,7 @@ const s = (e) => {
63
63
  [`${i}__title`]: {
64
64
  ...o(e),
65
65
  marginBottom: e.spaceXS,
66
- color: "#333",
66
+ color: e.textColor1,
67
67
  fontWeight: "bold",
68
68
  "&--disabled": {
69
69
  color: e.textColor4
@@ -71,7 +71,7 @@ const s = (e) => {
71
71
  },
72
72
  [`${i}__content`]: {
73
73
  ...o(e),
74
- color: "#333",
74
+ color: e.textColor1,
75
75
  "&--disabled": {
76
76
  color: e.textColor4
77
77
  }
@@ -84,13 +84,13 @@ const s = (e) => {
84
84
  lineHeight: 1,
85
85
  userSelect: "none",
86
86
  "& > img": {
87
- width: e.calc(d).sub(r).equal(),
87
+ width: e.calc(c).sub(r).equal(),
88
88
  verticalAlign: "top"
89
89
  }
90
90
  }
91
91
  }
92
92
  };
93
- }, h = t(
93
+ }, u = t(
94
94
  "CheckCard",
95
95
  (e) => [s(e)],
96
96
  {
@@ -102,5 +102,5 @@ const s = (e) => {
102
102
  }
103
103
  );
104
104
  export {
105
- h as default
105
+ u as default
106
106
  };
@@ -27,10 +27,12 @@ const o = {
27
27
  fontSize: 12,
28
28
  fontSizeLG: 14,
29
29
  fontSizeXL: 16,
30
+ fontSizeXXL: 20,
30
31
  lineHeightSM: 16,
31
32
  lineHeight: 18,
32
33
  lineHeightLG: 22,
33
34
  borderRadiusXS: 1,
35
+ borderRadiusSM: 2,
34
36
  borderRadius: 4,
35
37
  spaceXXS: 2,
36
38
  spaceXS: 4,
@@ -44,7 +46,13 @@ const o = {
44
46
  scrollbarThumbColorHover: "#959ca7",
45
47
  scrollbarTrackColorHover: "#f2f6f9",
46
48
  tableHeaderBg: "#f2f6f9",
47
- lineClamp: 2
49
+ lineClamp: 2,
50
+ motionDurationFast: "0.1s",
51
+ motionDurationMid: "0.2s",
52
+ motionDurationSlow: "0.3s",
53
+ lineWidth: 1,
54
+ lineType: "solid",
55
+ controlHeight: 30
48
56
  };
49
57
  export {
50
58
  o as defaultToken