@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,102 +1,94 @@
1
- import { isValid as L } from "@aplus-frontend/utils";
2
- import { createModal as P } from "./createModal.mjs";
3
- import { Modal as V } from "@aplus-frontend/antdv";
4
- import { ModalMessage as y } from "../enums/modalMessage.mjs";
5
- const H = (d, F) => {
6
- var A;
7
- const g = F ?? (Array.isArray(d) ? (A = d[0]) == null ? void 0 : A.modalId : void 0), o = /* @__PURE__ */ new Map();
8
- let k, I, m = 1e3;
9
- const T = async ({
10
- modalId: i,
11
- params: E,
12
- handleCurrentModal: n,
13
- handleModal: w
1
+ import { isValid as I } from "@aplus-frontend/utils";
2
+ import { createModal as S } from "./createModal.mjs";
3
+ import { Modal as h } from "@aplus-frontend/antdv";
4
+ import { ModalMessage as u } from "../enums/modalMessage.mjs";
5
+ const A = (p, _) => {
6
+ const E = _ ?? (Array.isArray(p) ? p[0]?.modalId : void 0), n = /* @__PURE__ */ new Map();
7
+ let x, M, i = 1e3;
8
+ const y = async ({
9
+ modalId: d,
10
+ params: r,
11
+ handleCurrentModal: c,
12
+ handleModal: O
14
13
  }) => {
15
- k = E;
16
- const s = d.find((t) => t.modalId === i);
17
- let a = !1;
18
- if (I) {
19
- const t = o.get(I), c = {
14
+ x = r;
15
+ const l = p.find((t) => t.modalId === d);
16
+ let s = !1;
17
+ if (M) {
18
+ const t = n.get(M), a = {
20
19
  ...t,
21
20
  destroy: () => {
22
- var N;
23
- (N = t == null ? void 0 : t.destroy) == null || N.call(t), o.delete(I);
21
+ t?.destroy?.(), n.delete(M);
24
22
  },
25
23
  open: () => {
26
- a = !0;
24
+ s = !0;
27
25
  }
28
26
  };
29
- await (n == null ? void 0 : n(c)), await (w == null ? void 0 : w({
30
- getModal: o.get.bind(o)
31
- }));
27
+ await c?.(a), await O?.({
28
+ getModal: n.get.bind(n)
29
+ });
32
30
  }
33
- return s && setTimeout(() => {
34
- D(s);
35
- }), a;
36
- }, C = () => {
37
- var i;
38
- for (const [E, n] of o)
39
- (i = n == null ? void 0 : n.destroy) == null || i.call(n);
40
- }, D = async (i) => {
41
- var N, z, S, b;
31
+ return l && setTimeout(() => {
32
+ C(l);
33
+ }), s;
34
+ }, m = () => {
35
+ for (const [d, r] of n)
36
+ r?.destroy?.();
37
+ }, C = async (d) => {
42
38
  const {
43
- modalId: E,
44
- modalType: n = "createModal",
45
- props: w
46
- } = i;
47
- I = E;
48
- const s = o.get(E), a = await (w == null ? void 0 : w(k, async (e) => (c = !0, await T(e))));
49
- m = Math.max((a == null ? void 0 : a.zIndex) ?? 0, m), m += 1;
50
- let t, c = !1;
51
- if (n === "createModal") {
52
- const e = a, u = async (r) => (c = !0, await T(r));
39
+ modalId: r,
40
+ modalType: c = "createModal",
41
+ props: O
42
+ } = d;
43
+ M = r;
44
+ const l = n.get(r), s = await O?.(x, async (e) => (a = !0, await y(e)));
45
+ i = Math.max(s?.zIndex ?? 0, i), i += 1;
46
+ let t, a = !1;
47
+ if (c === "createModal") {
48
+ const e = s, f = async (o) => (a = !0, await y(o));
53
49
  t = {
54
50
  ...e,
55
51
  destroyOnClose: !1,
56
- zIndex: m,
57
- onOk: async (r) => {
58
- var _;
59
- const f = await ((_ = e == null ? void 0 : e.onOk) == null ? void 0 : _.call(e, r, u));
60
- if (c || C(), f)
61
- throw new Error(y.NOT_NEED_CLOSE);
52
+ zIndex: i,
53
+ onOk: async (o) => {
54
+ const w = await e?.onOk?.(o, f);
55
+ if (a || m(), w)
56
+ throw new Error(u.NOT_NEED_CLOSE);
62
57
  },
63
- onCancel: async (r) => {
64
- var _;
65
- const f = await ((_ = e == null ? void 0 : e.onCancel) == null ? void 0 : _.call(e, r, u));
66
- if (c || C(), f)
67
- throw new Error(y.NOT_NEED_CLOSE);
58
+ onCancel: async (o) => {
59
+ const w = await e?.onCancel?.(o, f);
60
+ if (a || m(), w)
61
+ throw new Error(u.NOT_NEED_CLOSE);
68
62
  }
69
63
  };
70
64
  } else {
71
- const e = a, u = async (r) => (c = !0, await T(r));
65
+ const e = s, f = async (o) => (a = !0, await y(o));
72
66
  t = {
73
67
  ...e,
74
- zIndex: m,
68
+ zIndex: i,
75
69
  onOk: async () => {
76
- var f;
77
- const r = await ((f = e == null ? void 0 : e.onOk) == null ? void 0 : f.call(e, u));
78
- if (c || C(), r)
79
- throw new Error(y.NOT_NEED_CLOSE);
70
+ const o = await e?.onOk?.(f);
71
+ if (a || m(), o)
72
+ throw new Error(u.NOT_NEED_CLOSE);
80
73
  },
81
74
  onCancel: async () => {
82
- var f;
83
- const r = await ((f = e == null ? void 0 : e.onCancel) == null ? void 0 : f.call(e, u));
84
- if (c || C(), r)
85
- throw new Error(y.NOT_NEED_CLOSE);
75
+ const o = await e?.onCancel?.(f);
76
+ if (a || m(), o)
77
+ throw new Error(u.NOT_NEED_CLOSE);
86
78
  }
87
79
  };
88
80
  }
89
- if (s) {
90
- s == null || s.update(t), (N = s == null ? void 0 : s.open) == null || N.call(s);
81
+ if (l) {
82
+ l?.update(t), l?.open?.();
91
83
  return;
92
- } else if (n === "createModal") {
93
- const e = P(t);
94
- (z = e == null ? void 0 : e.open) == null || z.call(e), o.set(E, e);
84
+ } else if (c === "createModal") {
85
+ const e = S(t);
86
+ e?.open?.(), n.set(r, e);
95
87
  } else
96
- (b = (S = V) == null ? void 0 : S[n]) == null || b.call(S, t);
97
- }, O = d.find((i) => L(g) && i.modalId === g);
98
- O !== void 0 && D(O);
88
+ h?.[c]?.(t);
89
+ }, N = p.find((d) => I(E) && d.modalId === E);
90
+ N !== void 0 && C(N);
99
91
  };
100
92
  export {
101
- H as createModalStream
93
+ A as createModalStream
102
94
  };
@@ -1,34 +1,29 @@
1
- import { defineComponent as u, createVNode as C, render as f, h as g } from "vue";
2
- import { Modal as h } from "@aplus-frontend/antdv";
3
- import { ConfigProvider as x, globalConfigCached as m } from "../../config-provider/config-provider.mjs";
4
- import { getContainerDom as a } from "./util.mjs";
5
- import { getTopWindow as v } from "../../utils/index.mjs";
6
- const D = (i) => (e) => {
7
- var r, d;
8
- let n;
9
- const l = /* @__PURE__ */ u({
1
+ import { defineComponent as s, createVNode as p, render as u, h as C } from "vue";
2
+ import { Modal as f } from "@aplus-frontend/antdv";
3
+ import { ConfigProvider as g, globalConfigCached as e } from "../../config-provider/config-provider.mjs";
4
+ import { getContainerDom as n } from "./util.mjs";
5
+ import { getTopWindow as h } from "../../utils/index.mjs";
6
+ const w = (r) => (o) => {
7
+ let t;
8
+ const d = /* @__PURE__ */ s({
10
9
  data() {
11
- const [o, t] = h.useModal();
10
+ const [l, c] = f.useModal();
12
11
  return {
13
- modal: o,
14
- contextHolder: t
12
+ modal: l,
13
+ contextHolder: c
15
14
  };
16
15
  },
17
16
  mounted() {
18
- var o, t;
19
- n = (t = (o = this.modal) == null ? void 0 : o[i]) == null ? void 0 : t.call(o, e);
17
+ t = this.modal?.[r]?.(o);
20
18
  },
21
19
  render() {
22
- return C(x, m.value, {
23
- default: () => {
24
- var o;
25
- return [(o = this.contextHolder) == null ? void 0 : o.call(this)];
26
- }
20
+ return p(g, e.value, {
21
+ default: () => [this.contextHolder?.()]
27
22
  });
28
23
  }
29
- }), c = a((d = (r = m) == null ? void 0 : r.value) == null ? void 0 : d.getPopupContainer), s = a(e.getContainer), p = c || s || v().document.body;
30
- return f(g(l), p), n;
24
+ }), m = n(e?.value?.getPopupContainer), a = n(o.getContainer), i = m || a || h().document.body;
25
+ return u(C(d), i), t;
31
26
  };
32
27
  export {
33
- D as methodsFn
28
+ w as methodsFn
34
29
  };
@@ -1,4 +1,4 @@
1
- const n = (t) => typeof t == "function" ? t == null ? void 0 : t() : t;
1
+ const n = (t) => typeof t == "function" ? t?.() : t;
2
2
  export {
3
3
  n as getContainerDom
4
4
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as re, useSlots as ae, ref as V, useModel as ne, watch as ie, computed as u, createVNode as d, Fragment as y, createElementBlock as B, openBlock as i, mergeProps as se, createCommentVNode as C, createElementVNode as de, normalizeStyle as I, normalizeClass as g, unref as h, createBlock as p, renderSlot as F, resolveDynamicComponent as v, withCtx as H, mergeModels as ue } from "vue";
2
- import { Spin as ce, Tooltip as fe } from "@aplus-frontend/antdv";
3
- import { QuestionCircleOutlined as pe } from "@ant-design/icons-vue";
1
+ import { defineComponent as _, useSlots as ee, ref as G, useModel as te, watch as le, computed as s, createVNode as a, Fragment as f, createElementBlock as B, openBlock as n, mergeProps as oe, createCommentVNode as b, createElementVNode as ne, normalizeStyle as z, normalizeClass as v, unref as x, createBlock as p, renderSlot as P, resolveDynamicComponent as y, withCtx as D, mergeModels as re } from "vue";
2
+ import { Spin as ae, Tooltip as se } from "@aplus-frontend/antdv";
3
+ import { QuestionCircleOutlined as ie } from "@ant-design/icons-vue";
4
4
  import "../../../config-provider/index.mjs";
5
- import { mergeClass as A } from "../../../editable-table/utils.mjs";
6
- import ye from "@aplus-frontend/antdv/es/_util/hooks/useBreakpoint";
7
- import { IconApAdFillDown as ve } from "@aplus-frontend/icon";
8
- import { useNamespace as xe } from "../../../config-provider/hooks/use-namespace.mjs";
9
- const ke = /* @__PURE__ */ re({
5
+ import { mergeClass as C } from "../../../editable-table/utils.mjs";
6
+ import de from "@aplus-frontend/antdv/es/_util/hooks/useBreakpoint";
7
+ import { IconApAdFillDown as ue } from "@aplus-frontend/icon";
8
+ import { useNamespace as ce } from "../../../config-provider/hooks/use-namespace.mjs";
9
+ const he = /* @__PURE__ */ _({
10
10
  name: "ApProCard",
11
11
  __name: "index",
12
- props: /* @__PURE__ */ ue({
12
+ props: /* @__PURE__ */ re({
13
13
  headStyle: {},
14
14
  bodyStyle: {},
15
15
  actionsStyle: {},
@@ -81,23 +81,23 @@ const ke = /* @__PURE__ */ re({
81
81
  collapsedModifiers: {}
82
82
  }),
83
83
  emits: ["update:collapsed"],
84
- setup(O) {
85
- const t = O, r = ae(), x = V(t.defaultCollapsed), G = ne(O, "collapsed");
86
- ie(() => G.value, (e) => {
87
- e !== void 0 && (x.value = e);
84
+ setup(j) {
85
+ const t = j, i = ee(), m = G(t.defaultCollapsed), M = te(j, "collapsed");
86
+ le(() => M.value, (e) => {
87
+ e !== void 0 && (m.value = e);
88
88
  }, {
89
89
  immediate: !0
90
90
  });
91
- const Q = () => {
92
- x.value = !x.value;
91
+ const R = () => {
92
+ m.value = !m.value;
93
93
  }, {
94
- b: c
95
- } = xe("pro-card"), m = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], b = ye(), w = (e, o) => e ? o : {}, T = (e) => {
96
- const o = [0, 0];
97
- return (Array.isArray(e) ? e : [e, 0]).forEach((n, l) => {
98
- if (typeof n == "object")
99
- for (let s = 0; s < m.length; s += 1) {
100
- const f = m[s];
94
+ b: d
95
+ } = ce("pro-card"), $ = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], E = de(), k = (e, l) => e ? l : {}, V = (e) => {
96
+ const l = [0, 0];
97
+ return (Array.isArray(e) ? e : [e, 0]).forEach((o, c) => {
98
+ if (typeof o == "object")
99
+ for (let u = 0; u < $.length; u += 1) {
100
+ const h = $[u];
101
101
  if ({
102
102
  lg: !0,
103
103
  md: !0,
@@ -106,20 +106,21 @@ const ke = /* @__PURE__ */ re({
106
106
  xs: !1,
107
107
  xxl: !1,
108
108
  xxxl: !1,
109
- ...b == null ? void 0 : b.value
110
- }[f] && n[f] !== void 0) {
111
- o[l] = n[f];
109
+ ...E?.value
110
+ }[h] && o[h] !== void 0) {
111
+ l[c] = o[h];
112
112
  break;
113
113
  }
114
114
  }
115
115
  else
116
- o[l] = n || 0;
117
- }), o;
118
- }, q = (e) => {
119
- let o = e;
116
+ l[c] = o || 0;
117
+ }), l;
118
+ }, F = (e) => {
119
+ let l = e;
120
120
  if (typeof e == "object")
121
- for (let n = 0; n < m.length; n += 1) {
122
- const l = m[n], s = {
121
+ for (let o = 0; o < $.length; o += 1) {
122
+ const c = $[o];
123
+ if ({
123
124
  lg: !0,
124
125
  md: !0,
125
126
  sm: !0,
@@ -127,33 +128,23 @@ const ke = /* @__PURE__ */ re({
127
128
  xs: !1,
128
129
  xxl: !1,
129
130
  xxxl: !1,
130
- ...b == null ? void 0 : b.value
131
- };
132
- if (s != null && s[l] && (e == null ? void 0 : e[l]) !== void 0) {
133
- o = e[l];
131
+ ...E?.value
132
+ }?.[c] && e?.[c] !== void 0) {
133
+ l = e[c];
134
134
  break;
135
135
  }
136
136
  }
137
- const a = w(typeof o == "string" && /\d%|\dpx/i.test(o), {
138
- width: o,
137
+ const r = k(typeof l == "string" && /\d%|\dpx/i.test(l), {
138
+ width: l,
139
139
  flexShrink: 0
140
140
  });
141
141
  return {
142
- span: o,
143
- colSpanStyle: a
142
+ span: l,
143
+ colSpanStyle: r
144
144
  };
145
- }, J = u(() => T(t.gutter)), N = V(!1), M = (e) => {
146
- N.value = e;
147
- }, K = u(() => {
148
- var e;
149
- return d(y, null, [t.title || ((e = r.title) == null ? void 0 : e.call(r))]);
150
- }), L = u(() => d(y, null, [t.tooltip])), U = u(() => {
151
- var e;
152
- return d(y, null, [t.extra || ((e = r.extra) == null ? void 0 : e.call(r))]);
153
- }), W = u(() => {
154
- var e;
155
- return d(y, null, [t.actions || ((e = r.actions) == null ? void 0 : e.call(r))]);
156
- }), X = u(() => t.loading === !0 ? d(ce, {
145
+ }, H = s(() => V(t.gutter)), A = G(!1), I = (e) => {
146
+ A.value = e;
147
+ }, Q = s(() => a(f, null, [t.title || i.title?.()])), T = s(() => a(f, null, [t.tooltip])), q = s(() => a(f, null, [t.extra || i.extra?.()])), J = s(() => a(f, null, [t.actions || i.actions?.()])), K = s(() => t.loading === !0 ? a(ae, {
157
148
  style: {
158
149
  width: "100%",
159
150
  height: "100%",
@@ -161,51 +152,45 @@ const ke = /* @__PURE__ */ re({
161
152
  alignItems: "center",
162
153
  justifyContent: "center"
163
154
  }
164
- }, null) : d(y, null, [t.loading])), $ = u(() => {
165
- var e;
166
- if (t.collapsible && G.value === void 0)
167
- return t.collapsibleIconRender ? (e = t.collapsibleIconRender) == null ? void 0 : e.call(t, {
168
- collapsed: x.value
169
- }) : d(y, null, [d(ve, {
170
- class: c("collapsible-icon"),
171
- style: {
172
- transform: x.value ? "rotate(-90deg)" : "rotate(0deg)"
173
- }
174
- }, null)]);
175
- }), P = (e, o = []) => {
176
- if ((e == null ? void 0 : e.type) === Symbol.for("v-fgt")) {
177
- const a = Array.isArray(e == null ? void 0 : e.children) ? e == null ? void 0 : e.children : [e == null ? void 0 : e.children];
178
- if (a != null && a.length)
179
- for (let n = 0; n < a.length; n++)
180
- a != null && a[n] && P(a == null ? void 0 : a[n], o);
155
+ }, null) : a(f, null, [t.loading])), g = s(() => t.collapsible && M.value === void 0), L = () => t.collapsibleIconRender ? t.collapsibleIconRender?.({
156
+ collapsed: m.value
157
+ }) : a(f, null, [a(ue, {
158
+ class: d("collapsible-icon"),
159
+ style: {
160
+ transform: m.value ? "rotate(-90deg)" : "rotate(0deg)"
161
+ }
162
+ }, null)]), O = (e, l = []) => {
163
+ if (e?.type === Symbol.for("v-fgt")) {
164
+ const r = Array.isArray(e?.children) ? e?.children : [e?.children];
165
+ if (r?.length)
166
+ for (let o = 0; o < r.length; o++)
167
+ r?.[o] && O(r?.[o], l);
181
168
  } else
182
- e && o.push(e);
183
- return o;
184
- }, Y = () => {
185
- var o, a, n;
186
- const e = (o = r.default) == null ? void 0 : o.call(r);
187
- return M(!1), d(y, null, [(n = (a = e == null ? void 0 : e.reduce((l, s) => {
188
- const f = P(s);
189
- return [...l, ...f];
190
- }, [])) == null ? void 0 : a.filter((l) => l.type !== Symbol.for("v-cmt"))) == null ? void 0 : n.map((l, s, f) => {
191
- var z, D, R;
192
- if (l && typeof l == "object" && "type" in l && ((z = l.type) == null ? void 0 : z.isProCard) === !0) {
193
- M(!0);
194
- const te = ((D = l == null ? void 0 : l.props) == null ? void 0 : D.colSpan) || ((R = l == null ? void 0 : l.props) == null ? void 0 : R["col-span"]) || {}, {
195
- span: S,
196
- colSpanStyle: le
197
- } = q(te), k = c("col"), oe = A(`${k}`, [typeof S == "number" && S >= 0 && S <= 24 ? `${k}-span-${S}` : void 0, t.split === "horizontal" && s !== f.length - 1 ? `${k}-split-horizontal` : void 0, t.split === "vertical" && s !== f.length - 1 ? `${k}-split-vertical` : void 0].filter(Boolean)), [j, E] = J.value;
198
- return d("div", {
199
- class: oe,
169
+ e && l.push(e);
170
+ return l;
171
+ }, U = () => {
172
+ const e = i.default?.();
173
+ return I(!1), a(f, null, [e?.reduce((l, r) => {
174
+ const o = O(r);
175
+ return [...l, ...o];
176
+ }, [])?.filter((l) => l.type !== Symbol.for("v-cmt"))?.map((l, r, o) => {
177
+ if (l && typeof l == "object" && "type" in l && l.type?.isProCard === !0) {
178
+ I(!0);
179
+ const c = l?.props?.colSpan || l?.props?.["col-span"] || {}, {
180
+ span: u,
181
+ colSpanStyle: h
182
+ } = F(c), S = d("col"), Z = C(`${S}`, [typeof u == "number" && u >= 0 && u <= 24 ? `${S}-span-${u}` : void 0, t.split === "horizontal" && r !== o.length - 1 ? `${S}-split-horizontal` : void 0, t.split === "vertical" && r !== o.length - 1 ? `${S}-split-vertical` : void 0].filter(Boolean)), [w, N] = H.value;
183
+ return a("div", {
184
+ class: Z,
200
185
  style: {
201
- ...le,
202
- ...w(j > 0, {
203
- paddingInlineStart: `${j / 2}px`,
204
- paddingInlineEnd: `${j / 2}px`
186
+ ...h,
187
+ ...k(w > 0, {
188
+ paddingInlineStart: `${w / 2}px`,
189
+ paddingInlineEnd: `${w / 2}px`
205
190
  }),
206
- ...w(E > 0, {
207
- paddingBlockStart: `${E / 2}px`,
208
- paddingBlockEnd: `${E / 2}px`
191
+ ...k(N > 0, {
192
+ paddingBlockStart: `${N / 2}px`,
193
+ paddingBlockEnd: `${N / 2}px`
209
194
  }),
210
195
  ...t.colStyle
211
196
  }
@@ -213,61 +198,63 @@ const ke = /* @__PURE__ */ re({
213
198
  }
214
199
  return l;
215
200
  })]);
216
- }, Z = u(() => {
217
- const e = c();
218
- return A(`${e}`, [t.bordered ? `${e}-border` : void 0, t.boxShadow ? `${e}-box-shadow` : void 0, N.value ? `${e}-contain-card` : void 0, t.loading ? `${e}-loading` : void 0, t.split === "vertical" || t.split === "horizontal" ? `${e}-split` : void 0, t.ghost ? `${e}-ghost` : void 0, t.hoverable ? `${e}-hoverable` : void 0, t.type ? `${e}-type-${t.type}` : void 0, x.value ? `${e}-collapsed` : void 0].filter(Boolean));
219
- }), _ = u(() => {
220
- const e = c("header");
221
- return A(`${e}`, [t.headerBordered || t.type === "inner" ? `${e}-border` : void 0, $.value ? `${e}-collapsible` : void 0].filter(Boolean));
222
- }), ee = u(() => {
223
- const e = c("body");
224
- return A(`${e}`, [t.layout === "center" ? `${e}-center` : void 0, t.split === "horizontal" || t.direction === "column" ? `${e}-direction-column` : void 0, t.wrap && N.value ? `${e}-wrap` : void 0].filter(Boolean));
201
+ }, W = s(() => {
202
+ const e = d();
203
+ return C(`${e}`, [t.bordered ? `${e}-border` : void 0, t.boxShadow ? `${e}-box-shadow` : void 0, A.value ? `${e}-contain-card` : void 0, t.loading ? `${e}-loading` : void 0, t.split === "vertical" || t.split === "horizontal" ? `${e}-split` : void 0, t.ghost ? `${e}-ghost` : void 0, t.hoverable ? `${e}-hoverable` : void 0, t.type ? `${e}-type-${t.type}` : void 0, m.value ? `${e}-collapsed` : void 0].filter(Boolean));
204
+ }), X = s(() => {
205
+ const e = d("header");
206
+ return C(`${e}`, [t.headerBordered || t.type === "inner" ? `${e}-border` : void 0, g.value ? `${e}-collapsible` : void 0].filter(Boolean));
207
+ }), Y = s(() => {
208
+ const e = d("body");
209
+ return C(`${e}`, [t.layout === "center" ? `${e}-center` : void 0, t.split === "horizontal" || t.direction === "column" ? `${e}-direction-column` : void 0, t.wrap && A.value ? `${e}-wrap` : void 0].filter(Boolean));
225
210
  });
226
- return (e, o) => (i(), B("div", se({
227
- class: Z.value
211
+ return (e, l) => (n(), B("div", oe({
212
+ class: W.value
228
213
  }, {
229
214
  ...e.$attrs
230
- }), [t.title || r.title || t.extra || r.extra || $.value ? (i(), B("div", {
215
+ }), [t.title || i.title || t.extra || i.extra || g.value ? (n(), B("div", {
231
216
  key: 0,
232
- class: g(_.value),
233
- style: I({
217
+ class: v(X.value),
218
+ style: z({
234
219
  ...t.headStyle
235
220
  }),
236
- onClick: o[0] || (o[0] = () => {
237
- $.value && Q();
221
+ onClick: l[0] || (l[0] = () => {
222
+ g.value && R();
238
223
  })
239
- }, [t.title || r.title || $.value ? (i(), B("div", {
224
+ }, [t.title || i.title || g.value ? (n(), B("div", {
240
225
  key: 0,
241
- class: g(h(c)("header-title"))
242
- }, [(i(), p(v($.value))), F(e.$slots, "title", {}, () => [(i(), p(v(K.value)))]), t.tooltip ? (i(), p(h(fe), {
226
+ class: v(x(d)("header-title"))
227
+ }, [g.value ? (n(), p(y(L()), {
243
228
  key: 0
229
+ })) : b("", !0), P(e.$slots, "title", {}, () => [(n(), p(y(Q.value)))]), t.tooltip ? (n(), p(x(se), {
230
+ key: 1
244
231
  }, {
245
- title: H(() => [(i(), p(v(L.value)))]),
246
- default: H(() => [d(h(pe), {
247
- class: g(h(c)("header-title-tooltip"))
232
+ title: D(() => [(n(), p(y(T.value)))]),
233
+ default: D(() => [a(x(ie), {
234
+ class: v(x(d)("header-title-tooltip"))
248
235
  }, null, 8, ["class"])]),
249
236
  _: 1
250
- })) : C("", !0)], 2)) : C("", !0), t.extra || r.extra ? (i(), B("div", {
237
+ })) : b("", !0)], 2)) : b("", !0), t.extra || i.extra ? (n(), B("div", {
251
238
  key: 1,
252
- class: g(h(c)("header-extra"))
253
- }, [F(e.$slots, "extra", {}, () => [(i(), p(v(U.value)))])], 2)) : C("", !0)], 6)) : C("", !0), de("div", {
254
- class: g(ee.value),
255
- style: I({
239
+ class: v(x(d)("header-extra"))
240
+ }, [P(e.$slots, "extra", {}, () => [(n(), p(y(q.value)))])], 2)) : b("", !0)], 6)) : b("", !0), ne("div", {
241
+ class: v(Y.value),
242
+ style: z({
256
243
  ...t.bodyStyle
257
244
  })
258
- }, [t.loading ? (i(), p(v(X.value), {
245
+ }, [t.loading ? (n(), p(y(K.value), {
259
246
  key: 0
260
- })) : (i(), p(v(Y()), {
247
+ })) : (n(), p(y(U()), {
261
248
  key: 1
262
- }))], 6), t.actions || r.actions ? (i(), B("div", {
249
+ }))], 6), t.actions || i.actions ? (n(), B("div", {
263
250
  key: 1,
264
- class: g(h(c)("actions")),
265
- style: I({
251
+ class: v(x(d)("actions")),
252
+ style: z({
266
253
  ...t.actionsStyle
267
254
  })
268
- }, [(i(), p(v(W.value)))], 6)) : C("", !0)], 16));
255
+ }, [(n(), p(y(J.value)))], 6)) : b("", !0)], 16));
269
256
  }
270
257
  });
271
258
  export {
272
- ke as default
259
+ he as default
273
260
  };