@aplus-frontend/ui 7.0.0-beta.2 → 7.0.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 (303) hide show
  1. package/es/index.mjs +216 -218
  2. package/es/src/ag-grid/editable/form-item.vue.mjs +68 -63
  3. package/es/src/ag-grid/editable/index.vue.mjs +66 -61
  4. package/es/src/ag-grid/editable/interface.d.ts +3 -1
  5. package/es/src/ag-grid/hooks/use-columns-def.mjs +71 -70
  6. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +65 -63
  7. package/es/src/ag-grid/index.vue.mjs +1 -0
  8. package/es/src/ag-grid/interface.d.ts +1 -0
  9. package/es/src/ag-grid/style/custom-header.d.ts +2 -2
  10. package/es/src/ag-grid/style/editable.d.ts +2 -2
  11. package/es/src/ag-grid/style/index.d.ts +30 -3
  12. package/es/src/ag-grid/style/index.mjs +56 -43
  13. package/es/src/ag-grid/theme.mjs +12 -11
  14. package/es/src/ap-action/item/index.vue2.mjs +14 -12
  15. package/es/src/ap-action/item-dropdown/index.vue.mjs +18 -17
  16. package/es/src/ap-action/style/dropdown-item.d.ts +2 -2
  17. package/es/src/ap-action/style/dropdown-item.mjs +4 -4
  18. package/es/src/ap-action/style/index.d.ts +7 -4
  19. package/es/src/ap-action/style/index.mjs +29 -23
  20. package/es/src/ap-button/ap-button.vue.mjs +45 -49
  21. package/es/src/ap-button/style/index.d.ts +2 -2
  22. package/es/src/ap-button/style/index.mjs +5 -4
  23. package/es/src/ap-button/utils/index.mjs +16 -16
  24. package/es/src/ap-descriptions/style/index.d.ts +2 -2
  25. package/es/src/ap-download/ap-download.vue.d.ts +4 -4
  26. package/es/src/ap-download/ap-download.vue.mjs +27 -27
  27. package/es/src/ap-download/hooks/useStyle.mjs +9 -9
  28. package/es/src/ap-download/interface.d.ts +4 -0
  29. package/es/src/ap-download/style/index.d.ts +2 -2
  30. package/es/src/ap-drawer/style/index.d.ts +2 -2
  31. package/es/src/ap-field/style/index.d.ts +2 -2
  32. package/es/src/ap-form/style/drawer-form.d.ts +2 -2
  33. package/es/src/ap-form/style/item-group.d.ts +2 -2
  34. package/es/src/ap-form/style/item-text-group.d.ts +2 -2
  35. package/es/src/ap-form/style/item.d.ts +3 -4
  36. package/es/src/ap-form/style/item.mjs +12 -16
  37. package/es/src/ap-form/style/modal-form.d.ts +4 -3
  38. package/es/src/ap-form/style/modal-form.mjs +26 -13
  39. package/es/src/ap-form/style/search-form-sorter.d.ts +4 -3
  40. package/es/src/ap-form/style/search-form-sorter.mjs +20 -13
  41. package/es/src/ap-form/style/search-form.d.ts +2 -2
  42. package/es/src/ap-form/style/token.d.ts +25 -1
  43. package/es/src/ap-grid/hooks/use-table-style.mjs +1 -1
  44. package/es/src/ap-grid/index.vue.mjs +2 -2
  45. package/es/src/ap-grid/style/editable.d.ts +2 -2
  46. package/es/src/ap-grid/style/index.d.ts +6 -3
  47. package/es/src/ap-grid/style/index.mjs +10 -7
  48. package/es/src/ap-grid/utils/col.mjs +33 -33
  49. package/es/src/ap-list/style/index.d.ts +2 -2
  50. package/es/src/ap-modal/interface.d.ts +31 -11
  51. package/es/src/ap-modal/utils/createModal.mjs +52 -45
  52. package/es/src/ap-pro-card/style/divider.d.ts +2 -2
  53. package/es/src/ap-pro-card/style/index.d.ts +2 -2
  54. package/es/src/ap-pro-card/style/operation.d.ts +2 -2
  55. package/es/src/ap-pro-card/style/statistic.d.ts +2 -2
  56. package/es/src/ap-pro-card/style/statistics-card.d.ts +2 -2
  57. package/es/src/ap-pro-card/style/title.d.ts +2 -2
  58. package/es/src/ap-table/ap-table.vue2.mjs +2 -2
  59. package/es/src/ap-table/style/ellipsis.d.ts +2 -2
  60. package/es/src/ap-table/style/index-comp.d.ts +2 -2
  61. package/es/src/ap-table/style/index.d.ts +2 -2
  62. package/es/src/ap-table/style/setting.d.ts +2 -2
  63. package/es/src/ap-table/utils.mjs +14 -11
  64. package/es/src/ap-tag/ap-tag.vue.mjs +7 -6
  65. package/es/src/ap-tag/style/group.d.ts +2 -2
  66. package/es/src/ap-tag/style/index.d.ts +2 -2
  67. package/es/src/ap-upload/style/index.d.ts +2 -2
  68. package/es/src/business/ag-grid-modal/style/index.d.ts +2 -2
  69. package/es/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
  70. package/es/src/business/ag-grid-modal/utils.mjs +23 -23
  71. package/es/src/business/ap-appendix/style/index.d.ts +5 -4
  72. package/es/src/business/ap-appendix/style/index.mjs +20 -17
  73. package/es/src/business/ap-appendix/style/token.d.ts +4 -0
  74. package/es/src/business/ap-appendix/style/token.mjs +6 -0
  75. package/es/src/business/ap-attachment/ApAttachment.mjs +64 -60
  76. package/es/src/business/ap-attachment/style/index.d.ts +2 -2
  77. package/es/src/business/ap-attachment/style/index.mjs +1 -0
  78. package/es/src/business/ap-batch-action/style/index.d.ts +3 -3
  79. package/es/src/business/ap-batch-action/style/index.mjs +4 -4
  80. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +50 -56
  81. package/es/src/business/ap-batch-action-group/style/index.d.ts +3 -0
  82. package/es/src/business/ap-batch-action-group/style/index.mjs +14 -0
  83. package/es/src/business/ap-card/style/index.d.ts +3 -3
  84. package/es/src/business/ap-card/style/index.mjs +8 -8
  85. package/es/src/business/ap-copy/style/index.d.ts +2 -2
  86. package/es/src/business/ap-draggable-grid/style/index.d.ts +2 -2
  87. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
  88. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +57 -49
  89. package/es/src/business/ap-expand-alert/index.d.ts +5 -2
  90. package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
  91. package/es/src/business/ap-expand-alert/style/index.d.ts +2 -2
  92. package/es/src/business/ap-image/style/index.d.ts +3 -3
  93. package/es/src/business/ap-image/style/index.mjs +6 -6
  94. package/es/src/business/ap-input-radio/style/index.d.ts +2 -2
  95. package/es/src/business/ap-label/style/index.d.ts +2 -2
  96. package/es/src/business/ap-ladder/style/index.d.ts +2 -2
  97. package/es/src/business/ap-product-info/style/index.d.ts +2 -2
  98. package/es/src/business/ap-radio-group/style/index.d.ts +2 -2
  99. package/es/src/business/ap-radio-group/style/index.mjs +3 -3
  100. package/es/src/business/ap-select-layout/style/index.d.ts +2 -2
  101. package/es/src/business/ap-size-input/style/index.d.ts +2 -2
  102. package/es/src/business/ap-status/style/index.d.ts +2 -2
  103. package/es/src/business/ap-summary/style/index.d.ts +2 -2
  104. package/es/src/business/ap-table-modal/style/index.d.ts +2 -2
  105. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +23 -23
  106. package/es/src/business/ap-title/style/index.d.ts +2 -2
  107. package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
  108. package/es/src/business/ap-value-select-card/style/index.d.ts +2 -2
  109. package/es/src/business/ap-view/style/index.d.ts +3 -3
  110. package/es/src/business/ap-view/style/index.mjs +19 -22
  111. package/es/src/business/batch-input-group/style/index.d.ts +5 -2
  112. package/es/src/business/batch-input-group/style/index.mjs +9 -5
  113. package/es/src/business/hooks/usePageListAgGrid.mjs +7 -6
  114. package/es/src/check-card/style/index.d.ts +2 -2
  115. package/es/src/check-card/style/index.mjs +37 -31
  116. package/es/src/config-provider/config-provider.d.ts +1 -2
  117. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -2
  118. package/es/src/config-provider/hooks/use-global-config.mjs +42 -33
  119. package/es/src/config-provider/hooks/use-token.d.ts +7 -2
  120. package/es/src/config-provider/hooks/use-token.mjs +6 -3
  121. package/es/src/config-provider/index.d.ts +1 -2
  122. package/es/src/design-token/constants.d.ts +1 -6
  123. package/es/src/design-token/constants.mjs +2 -100
  124. package/es/src/design-token/index.d.ts +1 -1
  125. package/es/src/design-token/index.mjs +5 -6
  126. package/es/src/design-token/interface.d.ts +9 -1
  127. package/es/src/design-token/interface.mjs +1 -0
  128. package/es/src/editable-table/style/index.d.ts +2 -2
  129. package/es/src/full-screen/index.vue.mjs +31 -30
  130. package/es/src/full-screen/style/index.d.ts +2 -2
  131. package/es/src/index.mjs +196 -198
  132. package/es/src/mask/style/index.d.ts +2 -2
  133. package/es/src/mask/style/index.mjs +2 -2
  134. package/es/src/scroll-bar/style/index.d.ts +2 -2
  135. package/es/src/scroll-bar/style/index.mjs +17 -17
  136. package/es/src/scroll-view/style/index.d.ts +2 -2
  137. package/es/src/splitter/style/index.d.ts +11 -3
  138. package/es/src/splitter/style/index.mjs +1 -2
  139. package/es/src/text/style/group.d.ts +2 -2
  140. package/es/src/text/style/index.d.ts +6 -3
  141. package/es/src/text/style/index.mjs +22 -18
  142. package/es/src/utils/cssinjs/index.d.ts +3 -7
  143. package/es/src/utils/cssinjs/index.mjs +55 -39
  144. package/es/src/utils/cssinjs/instance.mjs +7 -7
  145. package/es/src/utils/cssinjs/plugin-append-cssvar.d.ts +6 -0
  146. package/es/src/utils/cssinjs/plugin-append-cssvar.mjs +6 -0
  147. package/es/src/utils/cssinjs/plugin-specificity.mjs +6 -6
  148. package/es/src/utils/cssinjs/utils.d.ts +6 -0
  149. package/es/src/utils/cssinjs/utils.mjs +15 -0
  150. package/es/src/version.d.ts +1 -1
  151. package/es/src/version.mjs +1 -1
  152. package/lib/index.js +1 -1
  153. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  154. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  155. package/lib/src/ag-grid/editable/interface.d.ts +3 -1
  156. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  157. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  158. package/lib/src/ag-grid/index.vue.js +1 -1
  159. package/lib/src/ag-grid/interface.d.ts +1 -0
  160. package/lib/src/ag-grid/style/custom-header.d.ts +2 -2
  161. package/lib/src/ag-grid/style/editable.d.ts +2 -2
  162. package/lib/src/ag-grid/style/index.d.ts +30 -3
  163. package/lib/src/ag-grid/style/index.js +1 -1
  164. package/lib/src/ag-grid/theme.js +1 -1
  165. package/lib/src/ap-action/item/index.vue2.js +1 -1
  166. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  167. package/lib/src/ap-action/style/dropdown-item.d.ts +2 -2
  168. package/lib/src/ap-action/style/dropdown-item.js +1 -1
  169. package/lib/src/ap-action/style/index.d.ts +7 -4
  170. package/lib/src/ap-action/style/index.js +1 -1
  171. package/lib/src/ap-button/ap-button.vue.js +1 -1
  172. package/lib/src/ap-button/style/index.d.ts +2 -2
  173. package/lib/src/ap-button/style/index.js +1 -1
  174. package/lib/src/ap-button/utils/index.js +1 -1
  175. package/lib/src/ap-descriptions/style/index.d.ts +2 -2
  176. package/lib/src/ap-download/ap-download.vue.d.ts +4 -4
  177. package/lib/src/ap-download/ap-download.vue.js +1 -1
  178. package/lib/src/ap-download/hooks/useStyle.js +1 -1
  179. package/lib/src/ap-download/interface.d.ts +4 -0
  180. package/lib/src/ap-download/style/index.d.ts +2 -2
  181. package/lib/src/ap-drawer/style/index.d.ts +2 -2
  182. package/lib/src/ap-field/style/index.d.ts +2 -2
  183. package/lib/src/ap-form/style/drawer-form.d.ts +2 -2
  184. package/lib/src/ap-form/style/item-group.d.ts +2 -2
  185. package/lib/src/ap-form/style/item-text-group.d.ts +2 -2
  186. package/lib/src/ap-form/style/item.d.ts +3 -4
  187. package/lib/src/ap-form/style/item.js +1 -1
  188. package/lib/src/ap-form/style/modal-form.d.ts +4 -3
  189. package/lib/src/ap-form/style/modal-form.js +1 -1
  190. package/lib/src/ap-form/style/search-form-sorter.d.ts +4 -3
  191. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  192. package/lib/src/ap-form/style/search-form.d.ts +2 -2
  193. package/lib/src/ap-form/style/token.d.ts +25 -1
  194. package/lib/src/ap-grid/hooks/use-table-style.js +1 -1
  195. package/lib/src/ap-grid/index.vue.js +1 -1
  196. package/lib/src/ap-grid/style/editable.d.ts +2 -2
  197. package/lib/src/ap-grid/style/index.d.ts +6 -3
  198. package/lib/src/ap-grid/style/index.js +1 -1
  199. package/lib/src/ap-grid/utils/col.js +1 -1
  200. package/lib/src/ap-list/style/index.d.ts +2 -2
  201. package/lib/src/ap-modal/interface.d.ts +31 -11
  202. package/lib/src/ap-modal/utils/createModal.js +1 -1
  203. package/lib/src/ap-pro-card/style/divider.d.ts +2 -2
  204. package/lib/src/ap-pro-card/style/index.d.ts +2 -2
  205. package/lib/src/ap-pro-card/style/operation.d.ts +2 -2
  206. package/lib/src/ap-pro-card/style/statistic.d.ts +2 -2
  207. package/lib/src/ap-pro-card/style/statistics-card.d.ts +2 -2
  208. package/lib/src/ap-pro-card/style/title.d.ts +2 -2
  209. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  210. package/lib/src/ap-table/style/ellipsis.d.ts +2 -2
  211. package/lib/src/ap-table/style/index-comp.d.ts +2 -2
  212. package/lib/src/ap-table/style/index.d.ts +2 -2
  213. package/lib/src/ap-table/style/setting.d.ts +2 -2
  214. package/lib/src/ap-table/utils.js +1 -1
  215. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  216. package/lib/src/ap-tag/style/group.d.ts +2 -2
  217. package/lib/src/ap-tag/style/index.d.ts +2 -2
  218. package/lib/src/ap-upload/style/index.d.ts +2 -2
  219. package/lib/src/business/ag-grid-modal/style/index.d.ts +2 -2
  220. package/lib/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
  221. package/lib/src/business/ag-grid-modal/utils.js +1 -1
  222. package/lib/src/business/ap-appendix/style/index.d.ts +5 -4
  223. package/lib/src/business/ap-appendix/style/index.js +1 -1
  224. package/lib/src/business/ap-appendix/style/token.d.ts +4 -0
  225. package/lib/src/business/ap-appendix/style/token.js +1 -0
  226. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  227. package/lib/src/business/ap-attachment/style/index.d.ts +2 -2
  228. package/lib/src/business/ap-attachment/style/index.js +1 -1
  229. package/lib/src/business/ap-batch-action/style/index.d.ts +3 -3
  230. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  231. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  232. package/lib/src/business/ap-batch-action-group/style/index.d.ts +3 -0
  233. package/lib/src/business/ap-batch-action-group/style/index.js +1 -0
  234. package/lib/src/business/ap-card/style/index.d.ts +3 -3
  235. package/lib/src/business/ap-card/style/index.js +1 -1
  236. package/lib/src/business/ap-copy/style/index.d.ts +2 -2
  237. package/lib/src/business/ap-draggable-grid/style/index.d.ts +2 -2
  238. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
  239. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  240. package/lib/src/business/ap-expand-alert/index.d.ts +5 -2
  241. package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
  242. package/lib/src/business/ap-expand-alert/style/index.d.ts +2 -2
  243. package/lib/src/business/ap-image/style/index.d.ts +3 -3
  244. package/lib/src/business/ap-image/style/index.js +1 -1
  245. package/lib/src/business/ap-input-radio/style/index.d.ts +2 -2
  246. package/lib/src/business/ap-label/style/index.d.ts +2 -2
  247. package/lib/src/business/ap-ladder/style/index.d.ts +2 -2
  248. package/lib/src/business/ap-product-info/style/index.d.ts +2 -2
  249. package/lib/src/business/ap-radio-group/style/index.d.ts +2 -2
  250. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  251. package/lib/src/business/ap-select-layout/style/index.d.ts +2 -2
  252. package/lib/src/business/ap-size-input/style/index.d.ts +2 -2
  253. package/lib/src/business/ap-status/style/index.d.ts +2 -2
  254. package/lib/src/business/ap-summary/style/index.d.ts +2 -2
  255. package/lib/src/business/ap-table-modal/style/index.d.ts +2 -2
  256. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  257. package/lib/src/business/ap-title/style/index.d.ts +2 -2
  258. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
  259. package/lib/src/business/ap-value-select-card/style/index.d.ts +2 -2
  260. package/lib/src/business/ap-view/style/index.d.ts +3 -3
  261. package/lib/src/business/ap-view/style/index.js +1 -1
  262. package/lib/src/business/batch-input-group/style/index.d.ts +5 -2
  263. package/lib/src/business/batch-input-group/style/index.js +1 -1
  264. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  265. package/lib/src/check-card/style/index.d.ts +2 -2
  266. package/lib/src/check-card/style/index.js +1 -1
  267. package/lib/src/config-provider/config-provider.d.ts +1 -2
  268. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -2
  269. package/lib/src/config-provider/hooks/use-global-config.js +1 -1
  270. package/lib/src/config-provider/hooks/use-token.d.ts +7 -2
  271. package/lib/src/config-provider/hooks/use-token.js +1 -1
  272. package/lib/src/config-provider/index.d.ts +1 -2
  273. package/lib/src/design-token/constants.d.ts +1 -6
  274. package/lib/src/design-token/constants.js +1 -1
  275. package/lib/src/design-token/index.d.ts +1 -1
  276. package/lib/src/design-token/index.js +1 -1
  277. package/lib/src/design-token/interface.d.ts +9 -1
  278. package/lib/src/design-token/interface.js +1 -0
  279. package/lib/src/editable-table/style/index.d.ts +2 -2
  280. package/lib/src/full-screen/index.vue.js +1 -1
  281. package/lib/src/full-screen/style/index.d.ts +2 -2
  282. package/lib/src/index.js +1 -1
  283. package/lib/src/mask/style/index.d.ts +2 -2
  284. package/lib/src/mask/style/index.js +2 -2
  285. package/lib/src/scroll-bar/style/index.d.ts +2 -2
  286. package/lib/src/scroll-bar/style/index.js +1 -1
  287. package/lib/src/scroll-view/style/index.d.ts +2 -2
  288. package/lib/src/splitter/style/index.d.ts +11 -3
  289. package/lib/src/splitter/style/index.js +1 -1
  290. package/lib/src/text/style/group.d.ts +2 -2
  291. package/lib/src/text/style/index.d.ts +6 -3
  292. package/lib/src/text/style/index.js +1 -1
  293. package/lib/src/utils/cssinjs/index.d.ts +3 -7
  294. package/lib/src/utils/cssinjs/index.js +1 -1
  295. package/lib/src/utils/cssinjs/instance.js +1 -1
  296. package/lib/src/utils/cssinjs/plugin-append-cssvar.d.ts +6 -0
  297. package/lib/src/utils/cssinjs/plugin-append-cssvar.js +1 -0
  298. package/lib/src/utils/cssinjs/plugin-specificity.js +1 -1
  299. package/lib/src/utils/cssinjs/utils.d.ts +6 -0
  300. package/lib/src/utils/cssinjs/utils.js +1 -0
  301. package/lib/src/version.d.ts +1 -1
  302. package/lib/src/version.js +1 -1
  303. package/package.json +1 -1
@@ -1,108 +1,112 @@
1
- import { defineComponent as M, ref as C, useSlots as U, computed as o, cloneVNode as W, toRaw as f, unref as _, createVNode as t, createTextVNode as j } from "vue";
2
- import { Tooltip as K, Popover as B } from "@aplus-frontend/antdv";
1
+ import { defineComponent as W, ref as x, useSlots as _, computed as n, cloneVNode as j, toRaw as h, unref as K, createVNode as t, createTextVNode as R } from "vue";
2
+ import { Tooltip as B, Popover as G } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
- import { ApAttachmentProps as G } from "./constans.mjs";
5
- import { getHexWithOpacity as H, getFileInfo as w } from "../../ap-download/utils/getFileInfo.mjs";
6
- import { useOssInit as R } from "../../ap-download/hooks/index.mjs";
7
- import { debounce as q, isArray as D } from "lodash-unified";
8
- import { LoadingOutlined as v } from "@ant-design/icons-vue";
9
- import { warning as E } from "../../utils/warning.mjs";
10
- import J from "./style/index.mjs";
11
- import { useNamespace as Q } from "../../config-provider/hooks/use-namespace.mjs";
12
- import { useGlobalConfig as h } from "../../config-provider/hooks/use-global-config.mjs";
13
- import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
14
- const ue = /* @__PURE__ */ M({
4
+ import { ApAttachmentProps as H } from "./constans.mjs";
5
+ import { getHexWithOpacity as q, getFileInfo as O } from "../../ap-download/utils/getFileInfo.mjs";
6
+ import { useOssInit as D } from "../../ap-download/hooks/index.mjs";
7
+ import { debounce as E, isArray as J } from "lodash-unified";
8
+ import { LoadingOutlined as g } from "@ant-design/icons-vue";
9
+ import { warning as Q } from "../../utils/warning.mjs";
10
+ import X from "./style/index.mjs";
11
+ import { useNamespace as Y } from "../../config-provider/hooks/use-namespace.mjs";
12
+ import { useGlobalConfig as p } from "../../config-provider/hooks/use-global-config.mjs";
13
+ import { useLocale as Z } from "../../config-provider/hooks/use-locale.mjs";
14
+ const de = /* @__PURE__ */ W({
15
15
  name: "ApAttachment",
16
- props: G(),
17
- setup(e) {
16
+ props: H(),
17
+ setup(e, {
18
+ emit: C
19
+ }) {
18
20
  const {
19
- b: F,
21
+ b: T,
20
22
  e: a
21
- } = Q("ap-attachment"), g = J("ap-attachment"), b = h("uiMode"), x = h("apUpload"), N = h("downloadCenterTriggerConfig"), {
22
- lang: O,
23
+ } = Y("ap-attachment"), L = X("ap-attachment"), k = p("uiMode"), N = p("apUpload"), w = p("downloadCenterTriggerConfig"), {
24
+ lang: P,
23
25
  t: m
24
- } = X(), i = C(!1), c = C(""), u = U(), T = o(() => O.value === "zh-cn" ? "zh_CN" : "en_US"), r = o(() => e.attachmentList.length === 1), L = o(() => e.needName ? e.attachmentList.length > 0 && e.needName && e.needName.nameKey ? e.attachmentList[0][e.needName.nameKey] : "" : e.attachmentList.length > 0 ? e.attachmentList[0].fileName : ""), P = o(() => r.value ? L.value : m("ap.apAttachment.downloadall")), p = o(() => e.color ? e.color : b.value === "aplus" ? "#0070FF" : "#1890FF"), y = o(() => ({
25
- "--download-main-color": p.value,
26
- "--download-main-color-opacity": H(p.value, 0.6)
27
- })), k = o(() => e.getOssAccess || x.value?.getOssAccess), I = o(() => {
28
- const l = u.default ? u.default()[0] : null;
29
- return l ? W(l, {
26
+ } = Z(), i = x(!1), c = x(""), d = _(), I = n(() => P.value === "zh-cn" ? "zh_CN" : "en_US"), s = n(() => e.needName ?? N?.value?.needName), f = n(() => e.attachmentList.length === 1), y = n(() => s.value ? e.attachmentList.length > 0 && s.value && s.value?.nameKey ? e.attachmentList[0][s.value.nameKey] : "" : e.attachmentList.length > 0 ? e.attachmentList[0].fileName : ""), S = n(() => f.value ? y.value : m("ap.apAttachment.downloadall")), A = n(() => e.color ? e.color : k.value === "aplus" ? "#0070FF" : "#1890FF"), F = n(() => ({
27
+ "--download-main-color": A.value,
28
+ "--download-main-color-opacity": q(A.value, 0.6)
29
+ })), V = n(() => e.getOssAccess || N.value?.getOssAccess), z = n(() => {
30
+ const l = d.default ? d.default()[0] : null;
31
+ return l ? j(l, {
30
32
  style: {
31
33
  "font-size": "16px"
32
34
  }
33
35
  }) : null;
34
- }), d = q(async (l, s) => {
36
+ }), v = E(async (l, u) => {
35
37
  if (!e.disabled) {
36
- i.value = !0, s && (c.value = s);
38
+ i.value = !0, u && (c.value = u);
37
39
  try {
38
- const n = D(f(l)) ? f(l) : [f(l)];
39
- if (N.value?.trigger) {
40
- const z = w(e.needName, n).map((A) => ({
41
- objectName: A.path,
42
- fileName: A.fileName
40
+ const o = J(h(l)) ? h(l) : [h(l)];
41
+ if (w.value?.trigger) {
42
+ const r = O(s.value, o).map((b) => ({
43
+ objectName: b.path,
44
+ fileName: b.fileName
43
45
  }));
44
- N.value?.trigger(z);
45
- } else
46
- await (await R(k.value, _(T))).downloadFile(w(e.needName, n));
47
- } catch (n) {
48
- E(!1, n);
46
+ w.value?.trigger(r), C("downloadCallback", r);
47
+ } else {
48
+ const r = await (await D(V.value, K(I))).downloadFile(O(e.needName, o));
49
+ C("downloadCallback", r);
50
+ }
51
+ } catch (o) {
52
+ Q(!1, o);
49
53
  } finally {
50
54
  i.value = !1, c.value = "";
51
55
  }
52
56
  }
53
- }, 500), S = (l) => l && l.length > 0 ? t("ul", {
54
- class: [a("file-list"), g.value],
55
- style: y.value
56
- }, [l.map((s, n) => t("li", {
57
- key: n,
57
+ }, 500), M = (l) => l && l.length > 0 ? t("ul", {
58
+ class: [a("file-list"), L.value],
59
+ style: F.value
60
+ }, [l.map((u, o) => t("li", {
61
+ key: o,
58
62
  class: [a("file-item")],
59
- onClick: () => d(s, n + 1)
60
- }, [i.value && c.value === n + 1 ? t("span", {
63
+ onClick: () => v(u, o + 1)
64
+ }, [i.value && c.value === o + 1 ? t("span", {
61
65
  class: [a("spin")]
62
- }, [t(v, {
66
+ }, [t(g, {
63
67
  spin: !0
64
- }, null)]) : null, s.fileName])), t("li", {
68
+ }, null)]) : null, u.fileName])), t("li", {
65
69
  class: [a("download-all")],
66
- onClick: () => d(e.attachmentList, "all")
70
+ onClick: () => v(e.attachmentList, "all")
67
71
  }, [i.value && c.value === "all" ? t("span", {
68
72
  class: [a("spin")]
69
- }, [t(v, {
73
+ }, [t(g, {
70
74
  spin: !0
71
75
  }, null)]) : null, m("ap.apAttachment.downloadall")])]) : null;
72
76
  return () => e.attachmentList?.length > 0 && t("div", {
73
- class: [F(), g.value],
74
- style: [y.value]
75
- }, [t(K, {
76
- title: P.value,
77
+ class: [T(), L.value],
78
+ style: [F.value]
79
+ }, [t(B, {
80
+ title: S.value,
77
81
  placement: e.textToolTipPlacement,
78
82
  color: e.toolTipBgColor
79
83
  }, {
80
84
  default: () => [t("div", {
81
85
  class: [a("content")],
82
- onClick: () => d(r.value ? e.attachmentList[0] : e.attachmentList, "global")
86
+ onClick: () => v(f.value ? e.attachmentList[0] : e.attachmentList, "global")
83
87
  }, [i.value && c.value === "global" ? t("div", {
84
88
  class: [a("spin")]
85
- }, [t(v, {
89
+ }, [t(g, {
86
90
  spin: !0
87
- }, null)]) : null, u.default ? t("div", {
91
+ }, null)]) : null, d.default ? t("div", {
88
92
  class: [a("text-render")]
89
- }, [I.value, j(" ")]) : null, t("div", {
93
+ }, [z.value, R(" ")]) : null, t("div", {
90
94
  class: [a("text-inner")],
91
95
  style: {
92
96
  "max-width": e.maxWidth ? e.maxWidth + "px" : "auto"
93
97
  }
94
- }, [L.value])])]
95
- }), t(B, {
96
- content: S(e.attachmentList),
98
+ }, [y.value])])]
99
+ }), t(G, {
100
+ content: M(e.attachmentList),
97
101
  placement: e.fileMorePopoverPlacement,
98
102
  color: "#fff"
99
103
  }, {
100
- default: () => [!r.value && t("div", {
104
+ default: () => [!f.value && t("div", {
101
105
  class: [a("more")]
102
106
  }, [m("ap.apAttachment.more")])]
103
107
  })]);
104
108
  }
105
109
  });
106
110
  export {
107
- ue as default
111
+ de as default
108
112
  };
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -39,6 +39,7 @@ const n = (r) => {
39
39
  lineHeight: r.lineHeight,
40
40
  cursor: "pointer",
41
41
  color: "var(--download-main-color)",
42
+ marginLeft: "8px",
42
43
  "&:hover": {
43
44
  color: "var(--download-main-color-opacity)"
44
45
  }
@@ -1,5 +1,5 @@
1
1
  import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
2
- import { Ref } from 'vue';
3
- export declare const genProCardStyle: GenStyleFunc<BaseToken>;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
2
+ import { ComputedRef } from 'vue';
3
+ export declare const genApBatchActionStyle: GenStyleFunc<BaseToken>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -8,7 +8,7 @@ const n = (t) => {
8
8
  width: "100%",
9
9
  paddingBottom: "8px",
10
10
  marginBottom: "8px",
11
- borderBottom: "1px solid var(--ap-color-bg)"
11
+ borderBottom: `1px solid ${t.colorBg1}`
12
12
  },
13
13
  [`${e}-body`]: {
14
14
  width: "100%",
@@ -23,9 +23,9 @@ const n = (t) => {
23
23
  display: "flex",
24
24
  alignItems: "center",
25
25
  fontSize: t.fontSize,
26
- color: "var(--ap-text-color-3)",
26
+ color: t.textColor3,
27
27
  span: {
28
- color: "var(--ap-color-primary)",
28
+ color: t.colorPrimary,
29
29
  fontWeight: "bold",
30
30
  minWidth: "10px",
31
31
  textAlign: "center",
@@ -47,5 +47,5 @@ const n = (t) => {
47
47
  ]);
48
48
  export {
49
49
  l as default,
50
- n as genProCardStyle
50
+ n as genApBatchActionStyle
51
51
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as F, useSlots as O, computed as t, createBlock as u, createCommentVNode as j, openBlock as p, unref as n, mergeProps as f, createSlots as L, withCtx as r, createElementVNode as x, normalizeStyle as E, resolveDynamicComponent as S, h as g, createVNode as i, renderList as k, renderSlot as A, normalizeProps as b, guardReactiveProps as v, normalizeClass as I } from "vue";
2
- import { DropdownButton as q, Dropdown as H } from "@aplus-frontend/antdv";
1
+ import { defineComponent as O, useSlots as j, computed as t, createBlock as u, createCommentVNode as x, openBlock as p, unref as r, mergeProps as f, createSlots as S, withCtx as n, createElementVNode as E, normalizeStyle as q, resolveDynamicComponent as k, h as L, createVNode as i, renderList as g, renderSlot as A, normalizeProps as b, guardReactiveProps as v, normalizeClass as F } from "vue";
2
+ import { DropdownButton as H, Dropdown as J } from "@aplus-frontend/antdv";
3
3
  import "../../ap-button/index.mjs";
4
4
  import "./MenuItemGroup.vue.mjs";
5
5
  import "../../config-provider/index.mjs";
6
- import { DownOutlined as J } from "@ant-design/icons-vue";
7
- import { usePermission as K } from "@aplus-frontend/hooks";
6
+ import { DownOutlined as K } from "@ant-design/icons-vue";
7
+ import { usePermission as M } from "@aplus-frontend/hooks";
8
8
  import { useInjectApTable as Q } from "../../ap-table/context.mjs";
9
- import { useNamespace as U } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useLocale as W } from "../../config-provider/hooks/use-locale.mjs";
11
- import { useGlobalConfig as X } from "../../config-provider/hooks/use-global-config.mjs";
9
+ import U from "./style/index.mjs";
10
+ import { useNamespace as W } from "../../config-provider/hooks/use-namespace.mjs";
11
+ import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
12
12
  import B from "./MenuItemGroup.vue2.mjs";
13
13
  import Y from "../../ap-button/ap-button.vue.mjs";
14
- const me = /* @__PURE__ */ F({
14
+ const me = /* @__PURE__ */ O({
15
15
  __name: "ApBatchActionGroup",
16
16
  props: {
17
17
  selectedRows: {},
@@ -19,95 +19,89 @@ const me = /* @__PURE__ */ F({
19
19
  menuList: {}
20
20
  },
21
21
  setup(C, { expose: $ }) {
22
- const { b: h } = U("ap-batch-action-group"), { t: D } = W(), { columns: R, dataSource: T } = Q(), o = C, N = X("uiMode"), { hasPermission: z } = K(), w = O(), y = t(
23
- () => o?.buttonProps?.dropdownType || "default"
22
+ const { b: h } = W("ap-batch-action-group"), D = U("ap-batch-action-group"), { t: R } = X(), { columns: T, dataSource: N } = Q(), e = C, { hasPermission: z } = M(), y = j(), w = t(
23
+ () => e?.buttonProps?.dropdownType || "default"
24
24
  ), a = t(
25
- () => o?.buttonProps?.type || "borderLink"
25
+ () => e?.buttonProps?.type || "borderLink"
26
26
  ), P = t(
27
- () => o?.buttonProps?.content || D("ap.apApBatchActionGroup.batchOperation")
28
- ), G = t(() => o?.selectedRows || []), c = t(
29
- () => o?.buttonProps?.disabled ?? (Array.isArray(o.selectedRows) ? G.value.length === 0 : !1)
30
- ), M = t(() => {
31
- const e = {
32
- aplus: "#0070FF",
33
- admin: "#34b77c"
34
- };
35
- return a.value === "borderLink" ? c.value ? void 0 : e[N.value] || e.aplus : void 0;
36
- }), l = t(() => o?.menuList?.filter((e) => {
37
- let m = e?.ifShow;
38
- return !e?.ifShow && e?.auth && (m = () => z(e.auth)), m?.() ?? !0;
27
+ () => e?.buttonProps?.content || R("ap.apApBatchActionGroup.batchOperation")
28
+ ), V = t(() => e?.selectedRows || []), c = t(
29
+ () => e?.buttonProps?.disabled ?? (Array.isArray(e.selectedRows) ? V.value.length === 0 : !1)
30
+ ), G = t(() => a.value === "borderLink" ? c.value ? void 0 : "var(--ap-button-border-link-color)" : void 0), l = t(() => e?.menuList?.filter((o) => {
31
+ let m = o?.ifShow;
32
+ return !o?.ifShow && o?.auth && (m = () => z(o.auth)), m?.() ?? !0;
39
33
  }) || []);
40
34
  function _() {
41
- return o?.buttonProps ? {
42
- ...o.buttonProps,
35
+ return e?.buttonProps ? {
36
+ ...e.buttonProps,
43
37
  type: a.value === "borderLink" ? "default" : a.value
44
38
  } : {};
45
39
  }
46
40
  return $({
47
- columns: R,
48
- dataSource: T
49
- }), (e, m) => l.value.length && y.value === "dropdown" ? (p(), u(n(q), f({
41
+ columns: T,
42
+ dataSource: N
43
+ }), (o, m) => l.value.length && w.value === "dropdown" ? (p(), u(r(H), f({
50
44
  key: 0,
51
- class: [n(h)()]
45
+ class: [r(h)(), r(D)]
52
46
  }, {
53
- ...e.$attrs,
47
+ ...o.$attrs,
54
48
  ..._(),
55
49
  disabled: c.value
56
- }), L({
57
- overlay: r(() => [
50
+ }), S({
51
+ overlay: n(() => [
58
52
  i(B, f({
59
- ...o
53
+ ...e
60
54
  }, { "menu-list": l.value }), null, 16, ["menu-list"])
61
55
  ]),
62
- default: r(() => [
63
- x("span", {
64
- style: E({
65
- color: M.value
56
+ default: n(() => [
57
+ E("span", {
58
+ style: q({
59
+ color: G.value
66
60
  })
67
61
  }, [
68
- (p(), u(S(g("span", [P.value]))))
62
+ (p(), u(k(L("span", [P.value]))))
69
63
  ], 4)
70
64
  ]),
71
65
  _: 2
72
66
  }, [
73
- k(w, (V, s) => ({
67
+ g(y, (I, s) => ({
74
68
  name: s,
75
- fn: r((d) => [
76
- A(e.$slots, s, b(v(d || {})))
69
+ fn: n((d) => [
70
+ A(o.$slots, s, b(v(d || {})))
77
71
  ])
78
72
  }))
79
- ]), 1040, ["class"])) : l.value.length && y.value === "default" ? (p(), u(n(H), {
73
+ ]), 1040, ["class"])) : l.value.length && w.value === "default" ? (p(), u(r(J), {
80
74
  key: 1,
81
- class: I([n(h)()]),
75
+ class: F([r(h)()]),
82
76
  disabled: c.value
83
- }, L({
84
- overlay: r(() => [
77
+ }, S({
78
+ overlay: n(() => [
85
79
  i(B, f({
86
- ...o
80
+ ...e
87
81
  }, { "menu-list": l.value }), null, 16, ["menu-list"])
88
82
  ]),
89
- default: r(() => [
90
- i(n(Y), b(v({
91
- ...e.$attrs,
83
+ default: n(() => [
84
+ i(r(Y), b(v({
85
+ ...o.$attrs,
92
86
  ..._(),
93
87
  type: a.value
94
88
  })), {
95
- default: r(() => [
96
- (p(), u(S(g("span", [P.value])))),
97
- i(n(J))
89
+ default: n(() => [
90
+ (p(), u(k(L("span", [P.value])))),
91
+ i(r(K))
98
92
  ]),
99
93
  _: 1
100
94
  }, 16)
101
95
  ]),
102
96
  _: 2
103
97
  }, [
104
- k(w, (V, s) => ({
98
+ g(y, (I, s) => ({
105
99
  name: s,
106
- fn: r((d) => [
107
- A(e.$slots, s, b(v(d || {})))
100
+ fn: n((d) => [
101
+ A(o.$slots, s, b(v(d || {})))
108
102
  ])
109
103
  }))
110
- ]), 1032, ["class", "disabled"])) : j("", !0);
104
+ ]), 1032, ["class", "disabled"])) : x("", !0);
111
105
  }
112
106
  });
113
107
  export {
@@ -0,0 +1,3 @@
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { genComponentStyleHook as n } from "../../../utils/cssinjs/index.mjs";
2
+ const r = (o) => {
3
+ const { componentCls: t } = o;
4
+ return {
5
+ [t]: {
6
+ "--ap-button-border-link-color": o.colorPrimary
7
+ }
8
+ };
9
+ }, c = n("ApBatchActionGroup", (o) => [
10
+ r(o)
11
+ ]);
12
+ export {
13
+ c as default
14
+ };
@@ -1,5 +1,5 @@
1
1
  import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
2
- import { Ref } from 'vue';
3
- export declare const genProCardStyle: GenStyleFunc<BaseToken>;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
2
+ import { ComputedRef } from 'vue';
3
+ export declare const genApCardStyle: GenStyleFunc<BaseToken>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,22 +1,22 @@
1
1
  import { genComponentStyleHook as n } from "../../../utils/cssinjs/index.mjs";
2
- const e = (o) => {
3
- const { componentCls: t } = o;
2
+ const e = (t) => {
3
+ const { componentCls: o } = t;
4
4
  return {
5
- [t]: {
5
+ [o]: {
6
6
  width: "100%",
7
7
  background: "#fff",
8
- [`& + ${t}`]: {
8
+ [`& + ${o}`]: {
9
9
  marginTop: "10px"
10
10
  },
11
- [`${t}-title`]: {
11
+ [`${o}-title`]: {
12
12
  marginBottom: "12px"
13
13
  }
14
14
  }
15
15
  };
16
- }, p = n("ApCard", (o) => [
17
- e(o)
16
+ }, p = n("ApCard", (t) => [
17
+ e(t)
18
18
  ]);
19
19
  export {
20
20
  p as default,
21
- e as genProCardStyle
21
+ e as genApCardStyle
22
22
  };
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -2,9 +2,10 @@ import { ApExpandAlertProps } from './interface';
2
2
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
3
  declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
+ readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
5
6
  readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
6
7
  readonly onChoose?: ((args_0: T) => any) | undefined;
7
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
8
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onClose" | "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
8
9
  expose(exposed: ShallowUnwrapRef<{
9
10
  setExpand: (state?: boolean) => void;
10
11
  }>): void;
@@ -22,7 +23,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
22
23
  index: number;
23
24
  }): any;
24
25
  };
25
- emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
26
+ emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
26
27
  }>) => VNode & {
27
28
  __ctx?: Awaited<typeof __VLS_setup>;
28
29
  };