@aplus-frontend/ui 6.26.1 → 6.26.3

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 (438) hide show
  1. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +26 -29
  2. package/es/src/ag-grid/hooks/use-columns-def.mjs +69 -72
  3. package/es/src/ag-grid/hooks/use-columns.mjs +11 -13
  4. package/es/src/ag-grid/hooks/use-row-selection.mjs +43 -43
  5. package/es/src/ag-grid/hooks/use-search-form.mjs +33 -36
  6. package/es/src/ag-grid/index.vue.mjs +251 -268
  7. package/es/src/ag-grid/interface.d.ts +4 -0
  8. package/es/src/ag-grid/renderer/checkbox.mjs +4 -5
  9. package/es/src/ag-grid/renderer/date-range.mjs +11 -12
  10. package/es/src/ag-grid/renderer/date.mjs +12 -13
  11. package/es/src/ag-grid/renderer/radio.mjs +9 -10
  12. package/es/src/ag-grid/renderer/select.mjs +10 -17
  13. package/es/src/ag-grid/renderer/tree-select.mjs +8 -10
  14. package/es/src/ap-action/item/index.vue2.mjs +19 -20
  15. package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -24
  16. package/es/src/ap-action/item-modal/index.vue.mjs +15 -16
  17. package/es/src/ap-action/item-popconfirm/index.vue.mjs +17 -18
  18. package/es/src/ap-button/ap-confirm-button.vue.mjs +18 -19
  19. package/es/src/ap-button/utils/index.mjs +27 -28
  20. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +78 -86
  21. package/es/src/ap-descriptions/formatter/index.mjs +60 -61
  22. package/es/src/ap-descriptions/helper.mjs +6 -6
  23. package/es/src/ap-download/ap-download.vue.mjs +42 -46
  24. package/es/src/ap-download/hooks/index.mjs +13 -13
  25. package/es/src/ap-download/utils/getFileInfo.mjs +21 -21
  26. package/es/src/ap-drawer/utils/createDrawer.mjs +43 -52
  27. package/es/src/ap-field/checkbox/index.vue.mjs +31 -34
  28. package/es/src/ap-field/checkbox/read.vue2.mjs +11 -14
  29. package/es/src/ap-field/date/index.vue.mjs +66 -68
  30. package/es/src/ap-field/date-range/index.vue.mjs +99 -107
  31. package/es/src/ap-field/date-range/read.vue2.mjs +28 -32
  32. package/es/src/ap-field/hooks/use-date-timezone.mjs +1 -4
  33. package/es/src/ap-field/hooks/use-default-presets.mjs +18 -24
  34. package/es/src/ap-field/hooks/use-options.mjs +11 -11
  35. package/es/src/ap-field/number/helper.mjs +17 -17
  36. package/es/src/ap-field/number/index.vue.mjs +2 -4
  37. package/es/src/ap-field/radio/index.vue.mjs +38 -42
  38. package/es/src/ap-field/radio/read.vue2.mjs +12 -13
  39. package/es/src/ap-field/rate/index.vue.mjs +23 -25
  40. package/es/src/ap-field/segmented/index.vue.mjs +38 -39
  41. package/es/src/ap-field/select/index.vue.mjs +90 -107
  42. package/es/src/ap-field/select/read.vue2.mjs +13 -20
  43. package/es/src/ap-field/select/use-select-options.mjs +24 -25
  44. package/es/src/ap-field/slider/index.vue.mjs +28 -30
  45. package/es/src/ap-field/switch/index.vue.mjs +38 -39
  46. package/es/src/ap-field/text/index.vue2.mjs +43 -52
  47. package/es/src/ap-field/text/password.vue.mjs +20 -22
  48. package/es/src/ap-field/text-area/index.vue.mjs +25 -31
  49. package/es/src/ap-field/tree-select/index.vue.mjs +61 -65
  50. package/es/src/ap-field/tree-select/read.vue2.mjs +26 -28
  51. package/es/src/ap-field/tree-select/use-request.mjs +40 -41
  52. package/es/src/ap-form/ap-form.vue2.mjs +127 -142
  53. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  54. package/es/src/ap-form/drawer-form/index.vue.mjs +109 -146
  55. package/es/src/ap-form/hooks/use-watch.mjs +25 -26
  56. package/es/src/ap-form/item/index.vue.mjs +76 -81
  57. package/es/src/ap-form/item-group/index.vue.mjs +20 -20
  58. package/es/src/ap-form/items/date/index.vue.mjs +18 -21
  59. package/es/src/ap-form/items/date-range/index.vue.mjs +24 -27
  60. package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
  61. package/es/src/ap-form/items/number/index.vue.mjs +2 -4
  62. package/es/src/ap-form/items/radio/index.vue.mjs +8 -10
  63. package/es/src/ap-form/items/select/index.vue.d.ts +7 -7
  64. package/es/src/ap-form/items/select/index.vue.mjs +30 -36
  65. package/es/src/ap-form/items/text/index.vue2.mjs +20 -27
  66. package/es/src/ap-form/items/text/password.vue.mjs +12 -14
  67. package/es/src/ap-form/items/text-area/index.vue.mjs +18 -23
  68. package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  69. package/es/src/ap-form/items/tree-select/index.vue.mjs +28 -34
  70. package/es/src/ap-form/list/index.vue.mjs +26 -26
  71. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -3
  72. package/es/src/ap-form/modal-form/index.vue.mjs +98 -130
  73. package/es/src/ap-form/provider/index.vue.mjs +24 -24
  74. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +9 -9
  75. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -24
  76. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +25 -26
  77. package/es/src/ap-form/search-form/index.vue.d.ts +3 -3
  78. package/es/src/ap-form/search-form/index.vue.mjs +96 -103
  79. package/es/src/ap-form/search-form/utils.mjs +17 -17
  80. package/es/src/ap-form/set/index.vue.mjs +16 -20
  81. package/es/src/ap-form/utils/get.mjs +11 -11
  82. package/es/src/ap-grid/editable/form-item.vue.mjs +85 -92
  83. package/es/src/ap-grid/editable/index.vue.mjs +102 -116
  84. package/es/src/ap-grid/hooks/use-editable-columns.mjs +40 -43
  85. package/es/src/ap-grid/hooks/use-inner-params.mjs +15 -15
  86. package/es/src/ap-grid/hooks/use-row-selection.mjs +76 -76
  87. package/es/src/ap-grid/index.vue.mjs +309 -334
  88. package/es/src/ap-grid/utils/col.mjs +78 -81
  89. package/es/src/ap-grid/utils/editable.mjs +17 -18
  90. package/es/src/ap-grid/utils/renderer.mjs +7 -11
  91. package/es/src/ap-grid/utils/table.mjs +45 -46
  92. package/es/src/ap-grid/utils/to-tree-array.mjs +9 -10
  93. package/es/src/ap-list/hooks/use-offline-list.mjs +16 -17
  94. package/es/src/ap-list/index.vue.mjs +120 -131
  95. package/es/src/ap-modal/utils/createModal.mjs +60 -67
  96. package/es/src/ap-modal/utils/createModalStream.mjs +65 -73
  97. package/es/src/ap-modal/utils/methods.mjs +17 -22
  98. package/es/src/ap-modal/utils/util.mjs +1 -1
  99. package/es/src/ap-pro-card/components/card/index.vue2.mjs +114 -127
  100. package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
  101. package/es/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
  102. package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +47 -57
  103. package/es/src/ap-table/ap-table.vue2.mjs +270 -303
  104. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
  105. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
  106. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
  107. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
  108. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
  109. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
  110. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
  111. package/es/src/ap-table/components/setting/utils.mjs +44 -46
  112. package/es/src/ap-table/constants.d.ts +6 -6
  113. package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
  114. package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
  115. package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
  116. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
  117. package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
  118. package/es/src/ap-table/utils.mjs +123 -130
  119. package/es/src/ap-upload/apUpload.vue.mjs +43 -46
  120. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
  121. package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
  122. package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
  123. package/es/src/ap-upload/hooks/useOss.mjs +35 -35
  124. package/es/src/ap-upload/utils/accept.mjs +37 -38
  125. package/es/src/ap-upload/utils/returnData.mjs +14 -14
  126. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
  127. package/es/src/business/ap-appendix/utils/index.mjs +13 -13
  128. package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
  129. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
  130. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
  131. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
  132. package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
  133. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
  134. package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
  135. package/es/src/business/ap-copy/ApCopy.mjs +38 -39
  136. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +118 -112
  137. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
  138. package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
  139. package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
  140. package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
  141. package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
  142. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
  143. package/es/src/business/ap-keep-alive/hook.mjs +14 -20
  144. package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
  145. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
  146. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
  147. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
  148. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
  149. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
  150. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
  151. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
  152. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
  153. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
  154. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
  155. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
  156. package/es/src/business/ap-keep-alive/utils.mjs +25 -26
  157. package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
  158. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
  159. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
  160. package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
  161. package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
  162. package/es/src/business/ap-summary/utils.mjs +23 -29
  163. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
  164. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
  165. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
  166. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
  167. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
  168. package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
  169. package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
  170. package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
  171. package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
  172. package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
  173. package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
  174. package/es/src/business/ap-value-select-card/utils.mjs +1 -1
  175. package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
  176. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  177. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
  178. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  179. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
  180. package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
  181. package/es/src/business/batch-input-group/index.vue.mjs +113 -127
  182. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
  183. package/es/src/business/hooks/useGridRefresh.mjs +11 -12
  184. package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
  185. package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
  186. package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
  187. package/es/src/business/hooks/usePageListApTable.mjs +27 -32
  188. package/es/src/business/hooks/useTableRefresh.mjs +39 -41
  189. package/es/src/check-card/index.vue2.mjs +51 -56
  190. package/es/src/config-provider/config-provider.mjs +12 -12
  191. package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
  192. package/es/src/config-provider/hooks/use-locale.mjs +17 -17
  193. package/es/src/editable-table/form-item.vue.mjs +82 -88
  194. package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
  195. package/es/src/editable-table/index.vue.mjs +100 -113
  196. package/es/src/editable-table/utils.mjs +88 -95
  197. package/es/src/hooks/useControllableValue.mjs +18 -18
  198. package/es/src/hooks/useResize.mjs +16 -16
  199. package/es/src/mask/index.vue.mjs +11 -11
  200. package/es/src/resize-observer/index.vue.mjs +20 -22
  201. package/es/src/scroll-bar/index.vue.mjs +2 -8
  202. package/es/src/scroll-bar/internal.vue.mjs +59 -65
  203. package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
  204. package/es/src/scroll-view/index.vue.mjs +40 -42
  205. package/es/src/splitter/Splitter.vue2.mjs +48 -52
  206. package/es/src/splitter/hooks/useItems.mjs +14 -15
  207. package/es/src/splitter/hooks/useResize.mjs +31 -34
  208. package/es/src/splitter/hooks/useSizes.mjs +34 -34
  209. package/es/src/text/index.vue.mjs +24 -24
  210. package/es/src/utils/config-provider-preset.mjs +17 -21
  211. package/es/src/utils/copy.mjs +9 -9
  212. package/es/src/utils/index.mjs +43 -43
  213. package/es/src/version.d.ts +1 -1
  214. package/es/src/version.mjs +1 -1
  215. package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
  216. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  217. package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
  218. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  219. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  220. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  221. package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
  222. package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
  223. package/lib/src/ag-grid/index.vue.js +1 -1
  224. package/lib/src/ag-grid/interface.d.ts +4 -0
  225. package/lib/src/ag-grid/renderer/checkbox.js +1 -1
  226. package/lib/src/ag-grid/renderer/date-range.js +1 -1
  227. package/lib/src/ag-grid/renderer/date.js +1 -1
  228. package/lib/src/ag-grid/renderer/radio.js +1 -1
  229. package/lib/src/ag-grid/renderer/select.js +1 -1
  230. package/lib/src/ag-grid/renderer/tree-select.js +1 -1
  231. package/lib/src/ap-action/item/index.vue2.js +1 -1
  232. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  233. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  234. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  235. package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
  236. package/lib/src/ap-button/utils/index.js +1 -1
  237. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  238. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  239. package/lib/src/ap-descriptions/helper.js +1 -1
  240. package/lib/src/ap-download/ap-download.vue.js +1 -1
  241. package/lib/src/ap-download/hooks/index.js +1 -1
  242. package/lib/src/ap-download/utils/getFileInfo.js +1 -1
  243. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  244. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  245. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  246. package/lib/src/ap-field/date/index.vue.js +1 -1
  247. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  248. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  249. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  250. package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
  251. package/lib/src/ap-field/hooks/use-options.js +1 -1
  252. package/lib/src/ap-field/number/helper.js +1 -1
  253. package/lib/src/ap-field/number/index.vue.js +1 -1
  254. package/lib/src/ap-field/radio/index.vue.js +1 -1
  255. package/lib/src/ap-field/radio/read.vue2.js +1 -1
  256. package/lib/src/ap-field/rate/index.vue.js +1 -1
  257. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  258. package/lib/src/ap-field/select/index.vue.js +1 -1
  259. package/lib/src/ap-field/select/read.vue2.js +1 -1
  260. package/lib/src/ap-field/select/use-select-options.js +1 -1
  261. package/lib/src/ap-field/slider/index.vue.js +1 -1
  262. package/lib/src/ap-field/switch/index.vue.js +1 -1
  263. package/lib/src/ap-field/text/index.vue2.js +1 -1
  264. package/lib/src/ap-field/text/password.vue.js +1 -1
  265. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  266. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  267. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  268. package/lib/src/ap-field/tree-select/use-request.js +1 -1
  269. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  270. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  271. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  272. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  273. package/lib/src/ap-form/item/index.vue.js +1 -1
  274. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  275. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  276. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  277. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
  278. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  279. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  280. package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
  281. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  282. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  283. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  284. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  285. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  286. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  287. package/lib/src/ap-form/list/index.vue.js +1 -1
  288. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
  289. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  290. package/lib/src/ap-form/provider/index.vue.js +1 -1
  291. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  292. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
  293. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  294. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
  295. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  296. package/lib/src/ap-form/search-form/utils.js +1 -1
  297. package/lib/src/ap-form/set/index.vue.js +1 -1
  298. package/lib/src/ap-form/utils/get.js +1 -1
  299. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  300. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  301. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  302. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  303. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
  304. package/lib/src/ap-grid/index.vue.js +1 -1
  305. package/lib/src/ap-grid/utils/col.js +1 -1
  306. package/lib/src/ap-grid/utils/editable.js +1 -1
  307. package/lib/src/ap-grid/utils/renderer.js +1 -1
  308. package/lib/src/ap-grid/utils/table.js +1 -1
  309. package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
  310. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  311. package/lib/src/ap-list/index.vue.js +1 -1
  312. package/lib/src/ap-modal/utils/createModal.js +1 -1
  313. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  314. package/lib/src/ap-modal/utils/methods.js +1 -1
  315. package/lib/src/ap-modal/utils/util.js +1 -1
  316. package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
  317. package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
  318. package/lib/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
  319. package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
  320. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  321. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  322. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  323. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  324. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  325. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  326. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  327. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  328. package/lib/src/ap-table/components/setting/utils.js +1 -1
  329. package/lib/src/ap-table/constants.d.ts +6 -6
  330. package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
  331. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  332. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  333. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  334. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  335. package/lib/src/ap-table/utils.js +1 -1
  336. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  337. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  338. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  339. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  340. package/lib/src/ap-upload/hooks/useOss.js +1 -1
  341. package/lib/src/ap-upload/utils/accept.js +1 -1
  342. package/lib/src/ap-upload/utils/returnData.js +1 -1
  343. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  344. package/lib/src/business/ap-appendix/utils/index.js +1 -1
  345. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  346. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  347. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  348. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  349. package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
  350. package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
  351. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  352. package/lib/src/business/ap-copy/ApCopy.js +1 -1
  353. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
  354. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  355. package/lib/src/business/ap-export-group/convertExportField.js +1 -1
  356. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
  357. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  358. package/lib/src/business/ap-image/hooks/useOss.js +1 -1
  359. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  360. package/lib/src/business/ap-keep-alive/hook.js +1 -1
  361. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
  362. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
  363. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
  364. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
  365. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
  366. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
  367. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
  368. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
  369. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
  370. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
  371. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
  372. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
  373. package/lib/src/business/ap-keep-alive/utils.js +1 -1
  374. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  375. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  376. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  377. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  378. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  379. package/lib/src/business/ap-summary/utils.js +1 -1
  380. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  381. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
  382. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  383. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  384. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  385. package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
  386. package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
  387. package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
  388. package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
  389. package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
  390. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  391. package/lib/src/business/ap-value-select-card/utils.js +1 -1
  392. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  393. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  394. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  395. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  396. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  397. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  398. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  399. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  400. package/lib/src/business/hooks/useGridRefresh.js +1 -1
  401. package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
  402. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  403. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  404. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  405. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  406. package/lib/src/check-card/index.vue2.js +1 -1
  407. package/lib/src/config-provider/config-provider.js +1 -1
  408. package/lib/src/config-provider/hooks/use-global-config.js +1 -1
  409. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  410. package/lib/src/editable-table/form-item.vue.js +1 -1
  411. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  412. package/lib/src/editable-table/index.vue.js +1 -1
  413. package/lib/src/editable-table/utils.js +1 -1
  414. package/lib/src/hooks/useControllableValue.js +1 -1
  415. package/lib/src/hooks/useResize.js +1 -1
  416. package/lib/src/mask/index.vue.js +1 -1
  417. package/lib/src/resize-observer/index.vue.js +1 -1
  418. package/lib/src/scroll-bar/index.vue.js +1 -1
  419. package/lib/src/scroll-bar/internal.vue.js +1 -1
  420. package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
  421. package/lib/src/scroll-view/index.vue.js +1 -1
  422. package/lib/src/splitter/Splitter.vue2.js +1 -1
  423. package/lib/src/splitter/hooks/useItems.js +1 -1
  424. package/lib/src/splitter/hooks/useResize.js +1 -1
  425. package/lib/src/splitter/hooks/useSizes.js +1 -1
  426. package/lib/src/text/index.vue.js +1 -1
  427. package/lib/src/utils/config-provider-preset.js +1 -1
  428. package/lib/src/utils/copy.js +1 -1
  429. package/lib/src/utils/index.js +1 -1
  430. package/lib/src/version.d.ts +1 -1
  431. package/lib/src/version.js +1 -1
  432. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  433. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  434. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  435. package/package.json +7 -7
  436. package/theme/ap-draggable-grid/ap-draggable-grid.css +7 -3
  437. package/theme/ap-draggable-grid/ap-draggable-grid.less +5 -3
  438. package/theme/index.css +7 -3
@@ -1,18 +1,18 @@
1
- import { defineComponent as T, computed as d, ref as V, createElementBlock as u, openBlock as s, mergeProps as S, unref as t, renderSlot as p, createVNode as g, withCtx as v, createElementVNode as c, normalizeClass as n, createBlock as C, createCommentVNode as h, Fragment as j, renderList as D, createSlots as E, createTextVNode as U, toDisplayString as z } from "vue";
2
- import G from "./icons/file-icon.vue.mjs";
3
- import { Tooltip as P, TypographyText as q } from "@aplus-frontend/antdv";
4
- import { IconVariantDownload as H } from "@aplus-frontend/icon";
5
- import { LoadingOutlined as J } from "@ant-design/icons-vue";
1
+ import { defineComponent as O, computed as p, ref as I, createElementBlock as m, openBlock as n, mergeProps as T, unref as e, renderSlot as d, createVNode as u, withCtx as g, createElementVNode as r, normalizeClass as o, createBlock as A, createCommentVNode as F, Fragment as V, renderList as S, createSlots as j, createTextVNode as D, toDisplayString as E } from "vue";
2
+ import U from "./icons/file-icon.vue.mjs";
3
+ import { Tooltip as z, TypographyText as G } from "@aplus-frontend/antdv";
4
+ import { IconVariantDownload as P } from "@aplus-frontend/icon";
5
+ import { LoadingOutlined as q } from "@ant-design/icons-vue";
6
6
  import "../ap-title/ApTitle.vue.mjs";
7
7
  import "../../ap-download/ap-download.vue2.mjs";
8
8
  import "../../config-provider/index.mjs";
9
- import { getFileInfo as K } from "./utils/index.mjs";
10
- import { useNamespace as M } from "../../config-provider/hooks/use-namespace.mjs";
11
- import { useLocale as Q } from "../../config-provider/hooks/use-locale.mjs";
12
- import { useGlobalConfig as w } from "../../config-provider/hooks/use-global-config.mjs";
13
- import R from "../ap-title/ApTitle.vue2.mjs";
14
- import W from "../../ap-download/ap-download.vue.mjs";
15
- const X = ["onClick"], de = /* @__PURE__ */ T({
9
+ import { getFileInfo as H } from "./utils/index.mjs";
10
+ import { useNamespace as J } from "../../config-provider/hooks/use-namespace.mjs";
11
+ import { useLocale as K } from "../../config-provider/hooks/use-locale.mjs";
12
+ import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
13
+ import M from "../ap-title/ApTitle.vue2.mjs";
14
+ import Q from "../../ap-download/ap-download.vue.mjs";
15
+ const R = ["onClick"], fe = /* @__PURE__ */ O({
16
16
  __name: "ap-appendix",
17
17
  props: {
18
18
  fileList: {},
@@ -23,71 +23,67 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
23
23
  column: { default: 2 },
24
24
  isFileAreaBorder: { type: Boolean, default: !1 }
25
25
  },
26
- setup($) {
27
- const { b: x, e: a, em: k } = M("ap-appendix"), { t: y } = Q(), e = $, B = w("apUpload"), N = w(
26
+ setup(h) {
27
+ const { b: w, e: a, em: C } = J("ap-appendix"), { t: v } = K(), l = h, $ = _("apUpload"), k = _(
28
28
  "downloadCenterTriggerConfig"
29
- ), f = d(
30
- () => K(e == null ? void 0 : e.needName, (e == null ? void 0 : e.fileList) ?? [])
31
- ), b = d(
32
- () => {
33
- var l;
34
- return e.getOssAccess || ((l = B.value) == null ? void 0 : l.getOssAccess);
35
- }
36
- ), F = d(
37
- () => !(Array.isArray(f.value) && f.value.length)
38
- ), i = V([]), O = d(() => e.title || y("ap.apAppendix.appendix"));
39
- async function I(l, m) {
40
- var o, A;
41
- if (!(i.value.findIndex((r) => r === m) > -1)) {
42
- i.value = [...i.value, m];
29
+ ), c = p(
30
+ () => H(l?.needName, l?.fileList ?? [])
31
+ ), x = p(
32
+ () => l.getOssAccess || $.value?.getOssAccess
33
+ ), N = p(
34
+ () => !(Array.isArray(c.value) && c.value.length)
35
+ ), i = I([]), B = p(() => l.title || v("ap.apAppendix.appendix"));
36
+ async function b(s, f) {
37
+ if (!(i.value.findIndex((t) => t === f) > -1)) {
38
+ i.value = [...i.value, f];
43
39
  try {
44
- if ((o = N.value) != null && o.trigger) {
45
- let r = [l].map((_) => ({
46
- objectName: _.path,
47
- fileName: _.fileName
40
+ if (k.value?.trigger) {
41
+ let t = [s].map((L) => ({
42
+ objectName: L.path,
43
+ fileName: L.fileName
48
44
  }));
49
- await ((A = N.value) == null ? void 0 : A.trigger(r));
45
+ await k.value?.trigger(t);
50
46
  }
51
47
  } finally {
52
- i.value = i.value.filter((r) => r !== m);
48
+ i.value = i.value.filter((t) => t !== f);
53
49
  }
54
50
  }
55
51
  }
56
- return (l, m) => (s(), u("div", S({
57
- class: [t(x)()]
52
+ return (s, f) => (n(), m("div", T({
53
+ class: [e(w)()]
58
54
  }, {
59
- ...l.$attrs
55
+ ...s.$attrs
60
56
  }, {
61
57
  style: {
62
- "--ap-appendix-column": `repeat(${Number((e == null ? void 0 : e.column) || 2)}, 1fr)`
58
+ "--ap-appendix-column": `repeat(${Number(l?.column || 2)}, 1fr)`
63
59
  }
64
60
  }), [
65
- p(l.$slots, "title", {
66
- fileList: e.fileList
61
+ d(s.$slots, "title", {
62
+ fileList: l.fileList
67
63
  }, () => [
68
- g(R, {
69
- title: O.value,
70
- "help-message": e == null ? void 0 : e.tooltip
64
+ u(M, {
65
+ title: B.value,
66
+ "help-message": l?.tooltip
71
67
  }, {
72
- suffix: v(() => [
73
- c("div", {
74
- class: n([t(a)("suffix")])
68
+ suffix: g(() => [
69
+ r("div", {
70
+ class: o([e(a)("suffix")])
75
71
  }, [
76
- p(l.$slots, "titleSuffix", {
77
- fileList: e.fileList
72
+ d(s.$slots, "titleSuffix", {
73
+ fileList: l.fileList
78
74
  }),
79
- p(l.$slots, "titleDownloadAllBtn", {
80
- fileList: e.fileList
75
+ d(s.$slots, "titleDownloadAllBtn", {
76
+ fileList: l.fileList
81
77
  }, () => [
82
- F.value ? h("", !0) : (s(), C(W, {
78
+ N.value ? F("", !0) : (n(), A(Q, {
83
79
  key: 0,
84
- class: n([t(a)("download-all")]),
85
- text: t(y)("ap.apAppendix.downloadAll"),
86
- "get-oss-access": b.value,
87
- "file-name": f.value
80
+ class: o([e(a)("download-all")]),
81
+ text: e(v)("ap.apAppendix.downloadAll"),
82
+ "get-oss-access": x.value,
83
+ "file-name": c.value
88
84
  }, {
89
- icon: v(() => [
90
- g(t(H))
85
+ icon: g(() => [
86
+ u(e(P))
91
87
  ]),
92
88
  _: 1
93
89
  }, 8, ["class", "text", "get-oss-access", "file-name"]))
@@ -97,56 +93,56 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
97
93
  _: 3
98
94
  }, 8, ["title", "help-message"])
99
95
  ]),
100
- p(l.$slots, "fileArea", {
101
- fileList: e.fileList
96
+ d(s.$slots, "fileArea", {
97
+ fileList: l.fileList
102
98
  }, () => [
103
- F.value ? h("", !0) : (s(), u("div", {
99
+ N.value ? F("", !0) : (n(), m("div", {
104
100
  key: 0,
105
- class: n({
106
- [t(a)("file-area")]: !0,
107
- [t(k)("file-area", "border")]: !!e.isFileAreaBorder
101
+ class: o({
102
+ [e(a)("file-area")]: !0,
103
+ [e(C)("file-area", "border")]: !!l.isFileAreaBorder
108
104
  })
109
105
  }, [
110
- c("div", {
111
- class: n([t(a)("file-area-content")])
106
+ r("div", {
107
+ class: o([e(a)("file-area-content")])
112
108
  }, [
113
- (s(!0), u(j, null, D(f.value, (L, o) => (s(), u("div", {
114
- key: o,
115
- class: n({
116
- [t(a)("file-area-content-item")]: !0,
117
- [t(k)("file-area-content-item", "loading")]: i.value.includes(o)
109
+ (n(!0), m(V, null, S(c.value, (y, t) => (n(), m("div", {
110
+ key: t,
111
+ class: o({
112
+ [e(a)("file-area-content-item")]: !0,
113
+ [e(C)("file-area-content-item", "loading")]: i.value.includes(t)
118
114
  })
119
115
  }, [
120
- g(t(P), null, E({
121
- default: v(() => [
122
- c("div", {
123
- class: n({
124
- [t(a)("file-area-content-item-content")]: !0,
125
- [t(a)("file-area-content-item--loading-content")]: i.value.includes(o)
116
+ u(e(z), null, j({
117
+ default: g(() => [
118
+ r("div", {
119
+ class: o({
120
+ [e(a)("file-area-content-item-content")]: !0,
121
+ [e(a)("file-area-content-item--loading-content")]: i.value.includes(t)
126
122
  }),
127
- onClick: (A) => I(L, o)
123
+ onClick: (L) => b(y, t)
128
124
  }, [
129
- c("div", {
130
- class: n([t(a)("file-area-content-item-icon")])
125
+ r("div", {
126
+ class: o([e(a)("file-area-content-item-icon")])
131
127
  }, [
132
- i.value.includes(o) ? (s(), C(t(J), { key: 0 })) : (s(), C(G, { key: 1 }))
128
+ i.value.includes(t) ? (n(), A(e(q), { key: 0 })) : (n(), A(U, { key: 1 }))
133
129
  ], 2),
134
- c("div", {
135
- class: n([t(a)("file-area-content-item-file-name")])
130
+ r("div", {
131
+ class: o([e(a)("file-area-content-item-file-name")])
136
132
  }, [
137
- g(t(q), {
133
+ u(e(G), {
138
134
  ellipsis: "",
139
- content: L.fileName
135
+ content: y.fileName
140
136
  }, null, 8, ["content"])
141
137
  ], 2)
142
- ], 10, X)
138
+ ], 10, R)
143
139
  ]),
144
140
  _: 2
145
141
  }, [
146
- i.value.includes(o) ? void 0 : {
142
+ i.value.includes(t) ? void 0 : {
147
143
  name: "title",
148
- fn: v(() => [
149
- U(z(t(y)("ap.apAppendix.downloadFile")), 1)
144
+ fn: g(() => [
145
+ D(E(e(v)("ap.apAppendix.downloadFile")), 1)
150
146
  ]),
151
147
  key: "0"
152
148
  }
@@ -159,5 +155,5 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
159
155
  }
160
156
  });
161
157
  export {
162
- de as default
158
+ fe as default
163
159
  };
@@ -1,6 +1,6 @@
1
- import { ApNeedNameKeyDefault as y } from "../interface.mjs";
2
- function u(p, t) {
3
- if (p === !0) {
1
+ import { ApNeedNameKeyDefault as p } from "../interface.mjs";
2
+ function n(y, t) {
3
+ if (y === !0) {
4
4
  if (typeof t == "string")
5
5
  return [
6
6
  {
@@ -10,17 +10,17 @@ function u(p, t) {
10
10
  ];
11
11
  if (Array.isArray(t))
12
12
  return t.map((r) => ({
13
- path: (r == null ? void 0 : r[y.pathKey]) ?? r,
14
- fileName: (r == null ? void 0 : r[y.nameKey]) ?? r
13
+ path: r?.[p.pathKey] ?? r,
14
+ fileName: r?.[p.nameKey] ?? r
15
15
  }));
16
16
  if (typeof t == "object")
17
17
  return [
18
18
  {
19
- path: t == null ? void 0 : t[y.pathKey],
20
- fileName: t == null ? void 0 : t[y.nameKey]
19
+ path: t?.[p.pathKey],
20
+ fileName: t?.[p.nameKey]
21
21
  }
22
22
  ];
23
- } else if (typeof p == "object") {
23
+ } else if (typeof y == "object") {
24
24
  if (typeof t == "string")
25
25
  return [
26
26
  {
@@ -30,14 +30,14 @@ function u(p, t) {
30
30
  ];
31
31
  if (Array.isArray(t))
32
32
  return t.map((r) => ({
33
- path: (r == null ? void 0 : r[(p == null ? void 0 : p.pathKey) || y.pathKey]) ?? r,
34
- fileName: (r == null ? void 0 : r[(p == null ? void 0 : p.nameKey) || y.nameKey]) ?? r
33
+ path: r?.[y?.pathKey || p.pathKey] ?? r,
34
+ fileName: r?.[y?.nameKey || p.nameKey] ?? r
35
35
  }));
36
36
  if (typeof t == "object")
37
37
  return [
38
38
  {
39
- path: t == null ? void 0 : t[(p == null ? void 0 : p.pathKey) || y.pathKey],
40
- fileName: t == null ? void 0 : t[(p == null ? void 0 : p.nameKey) || y.nameKey]
39
+ path: t?.[y?.pathKey || p.pathKey],
40
+ fileName: t?.[y?.nameKey || p.nameKey]
41
41
  }
42
42
  ];
43
43
  } else {
@@ -59,5 +59,5 @@ function u(p, t) {
59
59
  return [];
60
60
  }
61
61
  export {
62
- u as getFileInfo
62
+ n as getFileInfo
63
63
  };
@@ -1,112 +1,105 @@
1
- import { defineComponent as _, ref as F, useSlots as j, computed as n, cloneVNode as K, toRaw as v, unref as B, createVNode as l, createTextVNode as G } from "vue";
2
- import { Tooltip as H, Popover as R } from "@aplus-frontend/antdv";
1
+ import { defineComponent as M, ref as C, useSlots as U, computed as n, cloneVNode as _, toRaw as f, unref as j, createVNode as t, createTextVNode as K } 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 W } from "./constans.mjs";
5
- import { getHexWithOpacity as q, getFileInfo as w } 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 { useNamespace as Q } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useGlobalConfig as h } from "../../config-provider/hooks/use-global-config.mjs";
11
- import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
12
- const se = /* @__PURE__ */ _({
4
+ import { ApAttachmentProps as H } from "./constans.mjs";
5
+ import { getHexWithOpacity as R, getFileInfo as y } from "../../ap-download/utils/getFileInfo.mjs";
6
+ import { useOssInit as W } 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 { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { useGlobalConfig as g } from "../../config-provider/hooks/use-global-config.mjs";
11
+ import { useLocale as J } from "../../config-provider/hooks/use-locale.mjs";
12
+ const ie = /* @__PURE__ */ M({
13
13
  name: "ApAttachment",
14
- props: W(),
14
+ props: H(),
15
15
  setup(e) {
16
16
  const {
17
- b,
18
- e: a
19
- } = Q("ap-attachment"), O = h("uiMode"), T = h("apUpload"), N = h("downloadCenterTriggerConfig"), {
20
- lang: x,
21
- t: m
22
- } = X(), i = F(!1), c = F(""), d = j(), P = n(() => x.value === "zh-cn" ? "zh_CN" : "en_US"), u = n(() => e.attachmentList.length === 1), p = n(() => 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 : ""), k = n(() => u.value ? p.value : m("ap.apAttachment.downloadall")), A = n(() => e.color ? e.color : O.value === "aplus" ? "#0070FF" : "#1890FF"), S = n(() => ({
17
+ b: F,
18
+ e: l
19
+ } = E("ap-attachment"), w = g("uiMode"), b = g("apUpload"), h = g("downloadCenterTriggerConfig"), {
20
+ lang: O,
21
+ t: r
22
+ } = J(), i = C(!1), c = C(""), m = U(), T = n(() => O.value === "zh-cn" ? "zh_CN" : "en_US"), u = n(() => e.attachmentList.length === 1), N = n(() => 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 : ""), x = n(() => u.value ? N.value : r("ap.apAttachment.downloadall")), p = n(() => e.color ? e.color : w.value === "aplus" ? "#0070FF" : "#1890FF"), P = n(() => ({
23
23
  width: u.value ? "auto" : "266px"
24
- })), L = n(() => ({
25
- "--download-main-color": A.value,
26
- "--download-main-color-opacity": q(A.value, 0.6)
27
- })), V = n(() => {
28
- var t;
29
- return e.getOssAccess || ((t = T.value) == null ? void 0 : t.getOssAccess);
30
- }), z = n(() => {
31
- const t = d.default ? d.default()[0] : null;
32
- return t ? K(t, {
24
+ })), A = n(() => ({
25
+ "--download-main-color": p.value,
26
+ "--download-main-color-opacity": R(p.value, 0.6)
27
+ })), k = n(() => e.getOssAccess || b.value?.getOssAccess), S = n(() => {
28
+ const a = m.default ? m.default()[0] : null;
29
+ return a ? _(a, {
33
30
  style: {
34
31
  "font-size": "16px"
35
32
  }
36
33
  }) : null;
37
- }), f = E(async (t, s) => {
38
- var o, C;
34
+ }), d = q(async (a, s) => {
39
35
  if (!e.disabled) {
40
36
  i.value = !0, s && (c.value = s);
41
37
  try {
42
- const r = J(v(t)) ? v(t) : [v(t)];
43
- if ((o = N.value) != null && o.trigger) {
44
- const U = w(e.needName, r).map((y) => ({
45
- objectName: y.path,
46
- fileName: y.fileName
38
+ const o = D(f(a)) ? f(a) : [f(a)];
39
+ if (h.value?.trigger) {
40
+ const I = y(e.needName, o).map((L) => ({
41
+ objectName: L.path,
42
+ fileName: L.fileName
47
43
  }));
48
- (C = N.value) == null || C.trigger(U);
44
+ h.value?.trigger(I);
49
45
  } else
50
- await (await D(V.value, B(P))).downloadFile(w(e.needName, r));
51
- } catch (r) {
52
- console.error(r);
46
+ await (await W(k.value, j(T))).downloadFile(y(e.needName, o));
47
+ } catch (o) {
48
+ console.error(o);
53
49
  } finally {
54
50
  i.value = !1, c.value = "";
55
51
  }
56
52
  }
57
- }, 500), I = (t) => t && t.length > 0 ? l("ul", {
58
- class: [a("file-list")],
59
- style: L.value
60
- }, [t.map((s, o) => l("li", {
53
+ }, 500), V = (a) => a && a.length > 0 ? t("ul", {
54
+ class: [l("file-list")],
55
+ style: A.value
56
+ }, [a.map((s, o) => t("li", {
61
57
  key: o,
62
- class: [a("file-item")],
63
- onClick: () => f(s, o + 1)
64
- }, [i.value && c.value === o + 1 ? l("span", {
65
- class: [a("spin")]
66
- }, [l(g, {
58
+ class: [l("file-item")],
59
+ onClick: () => d(s, o + 1)
60
+ }, [i.value && c.value === o + 1 ? t("span", {
61
+ class: [l("spin")]
62
+ }, [t(v, {
67
63
  spin: !0
68
- }, null)]) : null, s.fileName])), l("li", {
69
- class: [a("down-load-all")],
70
- onClick: () => f(e.attachmentList, "all")
71
- }, [i.value && c.value === "all" ? l("span", {
72
- class: [a("spin")]
73
- }, [l(g, {
64
+ }, null)]) : null, s.fileName])), t("li", {
65
+ class: [l("down-load-all")],
66
+ onClick: () => d(e.attachmentList, "all")
67
+ }, [i.value && c.value === "all" ? t("span", {
68
+ class: [l("spin")]
69
+ }, [t(v, {
74
70
  spin: !0
75
- }, null)]) : null, m("ap.apAttachment.downloadall")])]) : null;
76
- return () => {
77
- var t;
78
- return ((t = e.attachmentList) == null ? void 0 : t.length) > 0 && l("div", {
79
- class: [b()],
80
- style: [S.value, L.value]
81
- }, [l(H, {
82
- title: k.value,
83
- placement: e.textToolTipPlacement,
84
- color: e.toolTipBgColor
85
- }, {
86
- default: () => [l("div", {
87
- class: [a("content")],
88
- onClick: () => f(u.value ? e.attachmentList[0] : e.attachmentList, "global")
89
- }, [i.value && c.value === "global" ? l("div", {
90
- class: [a("spin")]
91
- }, [l(g, {
92
- spin: !0
93
- }, null)]) : null, d.default ? l("div", {
94
- class: [a("text-render")]
95
- }, [z.value, G(" ")]) : null, l("div", {
96
- class: [a("text-inner")]
97
- }, [p.value])])]
98
- }), l(R, {
99
- content: I(e.attachmentList),
100
- placement: e.fileMorePopoverPlacement,
101
- color: "#fff"
102
- }, {
103
- default: () => [!u.value && l("div", {
104
- class: [a("more")]
105
- }, [m("ap.apAttachment.more")])]
106
- })]);
107
- };
71
+ }, null)]) : null, r("ap.apAttachment.downloadall")])]) : null;
72
+ return () => e.attachmentList?.length > 0 && t("div", {
73
+ class: [F()],
74
+ style: [P.value, A.value]
75
+ }, [t(B, {
76
+ title: x.value,
77
+ placement: e.textToolTipPlacement,
78
+ color: e.toolTipBgColor
79
+ }, {
80
+ default: () => [t("div", {
81
+ class: [l("content")],
82
+ onClick: () => d(u.value ? e.attachmentList[0] : e.attachmentList, "global")
83
+ }, [i.value && c.value === "global" ? t("div", {
84
+ class: [l("spin")]
85
+ }, [t(v, {
86
+ spin: !0
87
+ }, null)]) : null, m.default ? t("div", {
88
+ class: [l("text-render")]
89
+ }, [S.value, K(" ")]) : null, t("div", {
90
+ class: [l("text-inner")]
91
+ }, [N.value])])]
92
+ }), t(G, {
93
+ content: V(e.attachmentList),
94
+ placement: e.fileMorePopoverPlacement,
95
+ color: "#fff"
96
+ }, {
97
+ default: () => [!u.value && t("div", {
98
+ class: [l("more")]
99
+ }, [r("ap.apAttachment.more")])]
100
+ })]);
108
101
  }
109
102
  });
110
103
  export {
111
- se as default
104
+ ie as default
112
105
  };
@@ -1,77 +1,70 @@
1
- import { defineComponent as x, useSlots as D, computed as E, ref as N, watch as K, createElementBlock as R, openBlock as V, normalizeClass as f, unref as t, withDirectives as T, createElementVNode as c, renderSlot as m, vShow as z, createCommentVNode as O, createTextVNode as v, toDisplayString as n, createVNode as j, withCtx as q } from "vue";
2
- import { Button as F } from "@aplus-frontend/antdv";
1
+ import { defineComponent as _, useSlots as w, computed as B, ref as m, watch as S, createElementBlock as f, openBlock as v, normalizeClass as d, unref as e, withDirectives as g, createElementVNode as s, renderSlot as p, vShow as k, createCommentVNode as C, createTextVNode as h, toDisplayString as a, createVNode as N, withCtx as R } from "vue";
2
+ import { Button as V } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
- import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
5
- import { useLocale as I } from "../../config-provider/hooks/use-locale.mjs";
6
- const J = {
4
+ import { useNamespace as $ } from "../../config-provider/hooks/use-namespace.mjs";
5
+ import { useLocale as b } from "../../config-provider/hooks/use-locale.mjs";
6
+ const x = {
7
7
  key: 0,
8
8
  class: "selected-desc"
9
- }, M = { class: "selected-desc-conut" }, P = { class: "selected-desc-clean" }, Z = /* @__PURE__ */ x({
9
+ }, D = { class: "selected-desc-conut" }, E = { class: "selected-desc-clean" }, j = /* @__PURE__ */ _({
10
10
  __name: "ApBatchAction",
11
11
  props: {
12
12
  selectedRowKeys: {},
13
13
  clearAll: {},
14
14
  showSelected: { type: Boolean, default: !0 }
15
15
  },
16
- setup($) {
17
- const { b: r } = G("ap-batch-action"), { t: d } = I(), o = $, s = D(), b = E(() => {
18
- var e;
19
- return ((e = o.selectedRowKeys) == null ? void 0 : e.length) || 0;
20
- }), i = N(!1), p = N();
21
- return K(
22
- () => s.header,
16
+ setup(y) {
17
+ const { b: c } = $("ap-batch-action"), { t: r } = b(), l = y, u = w(), A = B(() => l.selectedRowKeys?.length || 0), n = m(!1), i = m();
18
+ return S(
19
+ () => u.header,
23
20
  () => {
24
21
  setTimeout(() => {
25
- var l, h, y, A, _, w, a, B, S, g, k;
26
- const e = (l = s.header) == null ? void 0 : l.call(s);
27
- (e == null ? void 0 : e.length) === 1 && ((y = (h = e == null ? void 0 : e[0]) == null ? void 0 : h.type) == null ? void 0 : y.name) === "ASpace" ? i.value = !!((S = (B = (a = Array.prototype.slice.call((w = (_ = (A = p.value) == null ? void 0 : A.children) == null ? void 0 : _[0]) == null ? void 0 : w.children)) == null ? void 0 : a.filter) == null ? void 0 : B.call(a, (u) => {
28
- var C;
29
- return (C = u == null ? void 0 : u.children) == null ? void 0 : C.length;
30
- })) != null && S.length) : i.value = !!((k = (g = p.value) == null ? void 0 : g.children) != null && k.length);
22
+ const t = u.header?.();
23
+ t?.length === 1 && t?.[0]?.type?.name === "ASpace" ? n.value = !!Array.prototype.slice.call(i.value?.children?.[0]?.children)?.filter?.((o) => o?.children?.length)?.length : n.value = !!i.value?.children?.length;
31
24
  });
32
25
  },
33
26
  {
34
27
  immediate: !0
35
28
  }
36
- ), (e, l) => (V(), R("div", {
37
- class: f([t(r)()])
29
+ ), (t, o) => (v(), f("div", {
30
+ class: d([e(c)()])
38
31
  }, [
39
- T(c("div", {
32
+ g(s("div", {
40
33
  ref_key: "headerRef",
41
- ref: p,
42
- class: f(t(r)("header"))
34
+ ref: i,
35
+ class: d(e(c)("header"))
43
36
  }, [
44
- m(e.$slots, "header")
37
+ p(t.$slots, "header")
45
38
  ], 2), [
46
- [z, i.value]
39
+ [k, n.value]
47
40
  ]),
48
- c("div", {
49
- class: f(t(r)("body"))
41
+ s("div", {
42
+ class: d(e(c)("body"))
50
43
  }, [
51
- m(e.$slots, "prefix"),
52
- o.showSelected ? (V(), R("div", J, [
53
- c("div", M, [
54
- v(n(t(d)("ap.apBatchAction.selected")) + " ", 1),
55
- c("span", null, n(b.value), 1),
56
- v(" " + n(t(d)("ap.apBatchAction.piecesOfData")), 1)
44
+ p(t.$slots, "prefix"),
45
+ l.showSelected ? (v(), f("div", x, [
46
+ s("div", D, [
47
+ h(a(e(r)("ap.apBatchAction.selected")) + " ", 1),
48
+ s("span", null, a(A.value), 1),
49
+ h(" " + a(e(r)("ap.apBatchAction.piecesOfData")), 1)
57
50
  ]),
58
- c("div", P, [
59
- j(t(F), {
51
+ s("div", E, [
52
+ N(e(V), {
60
53
  type: "link",
61
- onClick: l[0] || (l[0] = (h) => o.clearAll && o.clearAll())
54
+ onClick: o[0] || (o[0] = (H) => l.clearAll && l.clearAll())
62
55
  }, {
63
- default: q(() => [
64
- v(n(t(d)("ap.apBatchAction.empty")), 1)
56
+ default: R(() => [
57
+ h(a(e(r)("ap.apBatchAction.empty")), 1)
65
58
  ]),
66
59
  _: 1
67
60
  })
68
61
  ])
69
- ])) : O("", !0),
70
- m(e.$slots, "suffix")
62
+ ])) : C("", !0),
63
+ p(t.$slots, "suffix")
71
64
  ], 2)
72
65
  ], 2));
73
66
  }
74
67
  });
75
68
  export {
76
- Z as default
69
+ j as default
77
70
  };