@aplus-frontend/ui 6.26.2 → 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 (434) 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 +113 -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.vue2.mjs +44 -53
  102. package/es/src/ap-table/ap-table.vue2.mjs +270 -303
  103. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
  104. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
  105. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
  106. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
  107. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
  108. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
  109. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
  110. package/es/src/ap-table/components/setting/utils.mjs +44 -46
  111. package/es/src/ap-table/constants.d.ts +6 -6
  112. package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
  113. package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
  114. package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
  115. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
  116. package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
  117. package/es/src/ap-table/utils.mjs +123 -130
  118. package/es/src/ap-upload/apUpload.vue.mjs +43 -46
  119. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
  120. package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
  121. package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
  122. package/es/src/ap-upload/hooks/useOss.mjs +35 -35
  123. package/es/src/ap-upload/utils/accept.mjs +37 -38
  124. package/es/src/ap-upload/utils/returnData.mjs +14 -14
  125. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
  126. package/es/src/business/ap-appendix/utils/index.mjs +13 -13
  127. package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
  128. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
  129. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
  130. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
  131. package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
  132. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
  133. package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
  134. package/es/src/business/ap-copy/ApCopy.mjs +38 -39
  135. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
  136. package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
  137. package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
  138. package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
  139. package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
  140. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
  141. package/es/src/business/ap-keep-alive/hook.mjs +14 -20
  142. package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
  143. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
  144. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
  145. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
  146. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
  147. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
  148. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
  149. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
  150. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
  151. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
  152. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
  153. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
  154. package/es/src/business/ap-keep-alive/utils.mjs +25 -26
  155. package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
  156. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
  157. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
  158. package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
  159. package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
  160. package/es/src/business/ap-summary/utils.mjs +23 -29
  161. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
  162. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
  163. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
  164. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
  165. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
  166. package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
  167. package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
  168. package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
  169. package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
  170. package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
  171. package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
  172. package/es/src/business/ap-value-select-card/utils.mjs +1 -1
  173. package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
  174. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  175. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
  176. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  177. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
  178. package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
  179. package/es/src/business/batch-input-group/index.vue.mjs +113 -127
  180. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
  181. package/es/src/business/hooks/useGridRefresh.mjs +11 -12
  182. package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
  183. package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
  184. package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
  185. package/es/src/business/hooks/usePageListApTable.mjs +27 -32
  186. package/es/src/business/hooks/useTableRefresh.mjs +39 -41
  187. package/es/src/check-card/index.vue2.mjs +51 -56
  188. package/es/src/config-provider/config-provider.mjs +12 -12
  189. package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
  190. package/es/src/config-provider/hooks/use-locale.mjs +17 -17
  191. package/es/src/editable-table/form-item.vue.mjs +82 -88
  192. package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
  193. package/es/src/editable-table/index.vue.mjs +100 -113
  194. package/es/src/editable-table/utils.mjs +88 -95
  195. package/es/src/hooks/useControllableValue.mjs +18 -18
  196. package/es/src/hooks/useResize.mjs +16 -16
  197. package/es/src/mask/index.vue.mjs +11 -11
  198. package/es/src/resize-observer/index.vue.mjs +20 -22
  199. package/es/src/scroll-bar/index.vue.mjs +2 -8
  200. package/es/src/scroll-bar/internal.vue.mjs +59 -65
  201. package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
  202. package/es/src/scroll-view/index.vue.mjs +40 -42
  203. package/es/src/splitter/Splitter.vue2.mjs +48 -52
  204. package/es/src/splitter/hooks/useItems.mjs +14 -15
  205. package/es/src/splitter/hooks/useResize.mjs +31 -34
  206. package/es/src/splitter/hooks/useSizes.mjs +34 -34
  207. package/es/src/text/index.vue.mjs +24 -24
  208. package/es/src/utils/config-provider-preset.mjs +17 -21
  209. package/es/src/utils/copy.mjs +9 -9
  210. package/es/src/utils/index.mjs +43 -43
  211. package/es/src/version.d.ts +1 -1
  212. package/es/src/version.mjs +1 -1
  213. package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
  214. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  215. package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
  216. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  217. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  218. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  219. package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
  220. package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
  221. package/lib/src/ag-grid/index.vue.js +1 -1
  222. package/lib/src/ag-grid/interface.d.ts +4 -0
  223. package/lib/src/ag-grid/renderer/checkbox.js +1 -1
  224. package/lib/src/ag-grid/renderer/date-range.js +1 -1
  225. package/lib/src/ag-grid/renderer/date.js +1 -1
  226. package/lib/src/ag-grid/renderer/radio.js +1 -1
  227. package/lib/src/ag-grid/renderer/select.js +1 -1
  228. package/lib/src/ag-grid/renderer/tree-select.js +1 -1
  229. package/lib/src/ap-action/item/index.vue2.js +1 -1
  230. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  231. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  232. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  233. package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
  234. package/lib/src/ap-button/utils/index.js +1 -1
  235. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  236. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  237. package/lib/src/ap-descriptions/helper.js +1 -1
  238. package/lib/src/ap-download/ap-download.vue.js +1 -1
  239. package/lib/src/ap-download/hooks/index.js +1 -1
  240. package/lib/src/ap-download/utils/getFileInfo.js +1 -1
  241. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  242. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  243. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  244. package/lib/src/ap-field/date/index.vue.js +1 -1
  245. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  246. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  247. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  248. package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
  249. package/lib/src/ap-field/hooks/use-options.js +1 -1
  250. package/lib/src/ap-field/number/helper.js +1 -1
  251. package/lib/src/ap-field/number/index.vue.js +1 -1
  252. package/lib/src/ap-field/radio/index.vue.js +1 -1
  253. package/lib/src/ap-field/radio/read.vue2.js +1 -1
  254. package/lib/src/ap-field/rate/index.vue.js +1 -1
  255. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  256. package/lib/src/ap-field/select/index.vue.js +1 -1
  257. package/lib/src/ap-field/select/read.vue2.js +1 -1
  258. package/lib/src/ap-field/select/use-select-options.js +1 -1
  259. package/lib/src/ap-field/slider/index.vue.js +1 -1
  260. package/lib/src/ap-field/switch/index.vue.js +1 -1
  261. package/lib/src/ap-field/text/index.vue2.js +1 -1
  262. package/lib/src/ap-field/text/password.vue.js +1 -1
  263. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  264. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  265. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  266. package/lib/src/ap-field/tree-select/use-request.js +1 -1
  267. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  268. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  269. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  270. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  271. package/lib/src/ap-form/item/index.vue.js +1 -1
  272. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  273. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  274. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  275. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
  276. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  277. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  278. package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
  279. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  280. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  281. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  282. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  283. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  284. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  285. package/lib/src/ap-form/list/index.vue.js +1 -1
  286. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
  287. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  288. package/lib/src/ap-form/provider/index.vue.js +1 -1
  289. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  290. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
  291. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  292. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
  293. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  294. package/lib/src/ap-form/search-form/utils.js +1 -1
  295. package/lib/src/ap-form/set/index.vue.js +1 -1
  296. package/lib/src/ap-form/utils/get.js +1 -1
  297. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  298. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  299. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  300. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  301. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
  302. package/lib/src/ap-grid/index.vue.js +1 -1
  303. package/lib/src/ap-grid/utils/col.js +1 -1
  304. package/lib/src/ap-grid/utils/editable.js +1 -1
  305. package/lib/src/ap-grid/utils/renderer.js +1 -1
  306. package/lib/src/ap-grid/utils/table.js +1 -1
  307. package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
  308. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  309. package/lib/src/ap-list/index.vue.js +1 -1
  310. package/lib/src/ap-modal/utils/createModal.js +1 -1
  311. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  312. package/lib/src/ap-modal/utils/methods.js +1 -1
  313. package/lib/src/ap-modal/utils/util.js +1 -1
  314. package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
  315. package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
  316. package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
  317. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  318. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  319. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  320. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  321. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  322. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  323. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  324. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  325. package/lib/src/ap-table/components/setting/utils.js +1 -1
  326. package/lib/src/ap-table/constants.d.ts +6 -6
  327. package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
  328. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  329. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  330. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  331. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  332. package/lib/src/ap-table/utils.js +1 -1
  333. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  334. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  335. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  336. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  337. package/lib/src/ap-upload/hooks/useOss.js +1 -1
  338. package/lib/src/ap-upload/utils/accept.js +1 -1
  339. package/lib/src/ap-upload/utils/returnData.js +1 -1
  340. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  341. package/lib/src/business/ap-appendix/utils/index.js +1 -1
  342. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  343. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  344. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  345. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  346. package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
  347. package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
  348. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  349. package/lib/src/business/ap-copy/ApCopy.js +1 -1
  350. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  351. package/lib/src/business/ap-export-group/convertExportField.js +1 -1
  352. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
  353. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  354. package/lib/src/business/ap-image/hooks/useOss.js +1 -1
  355. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  356. package/lib/src/business/ap-keep-alive/hook.js +1 -1
  357. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
  358. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
  359. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
  360. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
  361. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
  362. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
  363. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
  364. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
  365. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
  366. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
  367. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
  368. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
  369. package/lib/src/business/ap-keep-alive/utils.js +1 -1
  370. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  371. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  372. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  373. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  374. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  375. package/lib/src/business/ap-summary/utils.js +1 -1
  376. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  377. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
  378. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  379. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  380. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  381. package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
  382. package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
  383. package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
  384. package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
  385. package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
  386. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  387. package/lib/src/business/ap-value-select-card/utils.js +1 -1
  388. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  389. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  390. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  391. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  392. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  393. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  394. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  395. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  396. package/lib/src/business/hooks/useGridRefresh.js +1 -1
  397. package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
  398. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  399. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  400. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  401. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  402. package/lib/src/check-card/index.vue2.js +1 -1
  403. package/lib/src/config-provider/config-provider.js +1 -1
  404. package/lib/src/config-provider/hooks/use-global-config.js +1 -1
  405. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  406. package/lib/src/editable-table/form-item.vue.js +1 -1
  407. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  408. package/lib/src/editable-table/index.vue.js +1 -1
  409. package/lib/src/editable-table/utils.js +1 -1
  410. package/lib/src/hooks/useControllableValue.js +1 -1
  411. package/lib/src/hooks/useResize.js +1 -1
  412. package/lib/src/mask/index.vue.js +1 -1
  413. package/lib/src/resize-observer/index.vue.js +1 -1
  414. package/lib/src/scroll-bar/index.vue.js +1 -1
  415. package/lib/src/scroll-bar/internal.vue.js +1 -1
  416. package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
  417. package/lib/src/scroll-view/index.vue.js +1 -1
  418. package/lib/src/splitter/Splitter.vue2.js +1 -1
  419. package/lib/src/splitter/hooks/useItems.js +1 -1
  420. package/lib/src/splitter/hooks/useResize.js +1 -1
  421. package/lib/src/splitter/hooks/useSizes.js +1 -1
  422. package/lib/src/text/index.vue.js +1 -1
  423. package/lib/src/utils/config-provider-preset.js +1 -1
  424. package/lib/src/utils/copy.js +1 -1
  425. package/lib/src/utils/index.js +1 -1
  426. package/lib/src/version.d.ts +1 -1
  427. package/lib/src/version.js +1 -1
  428. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  429. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  430. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  431. package/package.json +5 -5
  432. package/theme/ap-draggable-grid/ap-draggable-grid.css +2 -1
  433. package/theme/ap-draggable-grid/ap-draggable-grid.less +2 -1
  434. package/theme/index.css +2 -1
@@ -1,11 +1,11 @@
1
- import { defineComponent as g, ref as w, computed as _, createElementBlock as f, openBlock as l, mergeProps as B, unref as e, createElementVNode as O, createCommentVNode as E, normalizeClass as y, createVNode as d, createSlots as N, withCtx as i, createBlock as s, resolveDynamicComponent as v, h as b } from "vue";
1
+ import { defineComponent as C, ref as k, computed as T, createElementBlock as c, openBlock as l, mergeProps as g, unref as e, createElementVNode as w, createCommentVNode as _, normalizeClass as u, createVNode as m, createSlots as B, withCtx as i, createBlock as s, resolveDynamicComponent as f, h as y } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
- import { Tooltip as h } from "@aplus-frontend/antdv";
4
- import { CopyOutlined as V, CheckOutlined as j } from "@ant-design/icons-vue";
5
- import { copy as x } from "../../../utils/copy.mjs";
6
- import { useNamespace as S } from "../../../config-provider/hooks/use-namespace.mjs";
7
- import { useLocale as A } from "../../../config-provider/hooks/use-locale.mjs";
8
- const G = /* @__PURE__ */ g({
3
+ import { Tooltip as d } from "@aplus-frontend/antdv";
4
+ import { CopyOutlined as O, CheckOutlined as E } from "@ant-design/icons-vue";
5
+ import { copy as N } from "../../../utils/copy.mjs";
6
+ import { useNamespace as V } from "../../../config-provider/hooks/use-namespace.mjs";
7
+ import { useLocale as j } from "../../../config-provider/hooks/use-locale.mjs";
8
+ const $ = /* @__PURE__ */ C({
9
9
  name: "ApTableParagraphEllipsis",
10
10
  __name: "index",
11
11
  props: {
@@ -14,8 +14,8 @@ const G = /* @__PURE__ */ g({
14
14
  rawValue: {},
15
15
  ellipsis: { type: [Boolean, Object] }
16
16
  },
17
- setup(C) {
18
- const { b: p } = S("ap-table-paragraph-ellipsis"), { t: n } = A(), t = C, o = w(!1), a = _(() => t.ellipsis === !0 ? {
17
+ setup(v) {
18
+ const { b: p } = V("ap-table-paragraph-ellipsis"), { t: n } = j(), t = v, o = k(!1), a = T(() => t.ellipsis === !0 ? {
19
19
  rows: 1,
20
20
  tooltip: t.content,
21
21
  htmlTitle: ""
@@ -27,64 +27,58 @@ const G = /* @__PURE__ */ g({
27
27
  },
28
28
  t.ellipsis
29
29
  ) : {});
30
- function k() {
30
+ function b() {
31
31
  const r = t.rawValue || "";
32
- x(r) && !o.value && (o.value = !0, setTimeout(() => {
32
+ N(r) && !o.value && (o.value = !0, setTimeout(() => {
33
33
  o.value = !1;
34
34
  }, 2200));
35
35
  }
36
- return (r, T) => {
37
- var c, u;
38
- return l(), f("div", B({
39
- class: [e(p)()]
40
- }, {
41
- ...r.$attrs
42
- }, {
43
- style: {
44
- "--ap-table-paragraph-ellipsis-rows": (c = a.value) == null ? void 0 : c.rows
45
- }
46
- }), [
47
- O("div", {
48
- class: y([e(p)("content")])
36
+ return (r, h) => (l(), c("div", g({
37
+ class: [e(p)()]
38
+ }, {
39
+ ...r.$attrs
40
+ }, {
41
+ style: {
42
+ "--ap-table-paragraph-ellipsis-rows": a.value?.rows
43
+ }
44
+ }), [
45
+ w("div", {
46
+ class: u([e(p)("content")])
47
+ }, [
48
+ m(e(d), null, B({
49
+ default: i(() => [
50
+ (l(), s(f(
51
+ y("span", { title: a.value?.htmlTitle }, [t.content])
52
+ )))
53
+ ]),
54
+ _: 2
49
55
  }, [
50
- d(e(h), null, N({
51
- default: i(() => {
52
- var m;
53
- return [
54
- (l(), s(v(
55
- b("span", { title: (m = a.value) == null ? void 0 : m.htmlTitle }, [t.content])
56
- )))
57
- ];
58
- }),
59
- _: 2
60
- }, [
61
- (u = a.value) != null && u.tooltip ? {
62
- name: "title",
63
- fn: i(() => [
64
- (l(), s(v(b("div", [a.value.tooltip]))))
65
- ]),
66
- key: "0"
67
- } : void 0
68
- ]), 1024)
69
- ], 2),
70
- t.copyable ? (l(), f("div", {
71
- key: 0,
72
- class: y([e(p)("copyable")]),
73
- onClick: k
74
- }, [
75
- d(e(h), {
76
- title: o.value ? e(n)("ap.apTable.paragraphEllipsis.copySuccess") : e(n)("ap.apTable.paragraphEllipsis.copy")
77
- }, {
78
- default: i(() => [
79
- o.value ? (l(), s(e(j), { key: 1 })) : (l(), s(e(V), { key: 0 }))
56
+ a.value?.tooltip ? {
57
+ name: "title",
58
+ fn: i(() => [
59
+ (l(), s(f(y("div", [a.value.tooltip]))))
80
60
  ]),
81
- _: 1
82
- }, 8, ["title"])
83
- ], 2)) : E("", !0)
84
- ], 16);
85
- };
61
+ key: "0"
62
+ } : void 0
63
+ ]), 1024)
64
+ ], 2),
65
+ t.copyable ? (l(), c("div", {
66
+ key: 0,
67
+ class: u([e(p)("copyable")]),
68
+ onClick: b
69
+ }, [
70
+ m(e(d), {
71
+ title: o.value ? e(n)("ap.apTable.paragraphEllipsis.copySuccess") : e(n)("ap.apTable.paragraphEllipsis.copy")
72
+ }, {
73
+ default: i(() => [
74
+ o.value ? (l(), s(e(E), { key: 1 })) : (l(), s(e(O), { key: 0 }))
75
+ ]),
76
+ _: 1
77
+ }, 8, ["title"])
78
+ ], 2)) : _("", !0)
79
+ ], 16));
86
80
  }
87
81
  });
88
82
  export {
89
- G as default
83
+ $ as default
90
84
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as G, ref as y, unref as e, computed as L, useSlots as M, createVNode as l, cloneVNode as P, createElementBlock as q, openBlock as T, Fragment as H, createBlock as J, createCommentVNode as Q, resolveDynamicComponent as W, withCtx as r, createElementVNode as s, normalizeClass as i, toDisplayString as c, createTextVNode as S, isRef as X } from "vue";
2
- import { Button as x, Modal as Y, RadioGroup as Z, RadioButton as B, Divider as N } from "@aplus-frontend/antdv";
1
+ import { defineComponent as G, ref as b, unref as e, computed as L, useSlots as M, createVNode as t, cloneVNode as P, createElementBlock as q, openBlock as k, Fragment as H, createBlock as J, createCommentVNode as Q, resolveDynamicComponent as W, withCtx as u, createElementVNode as a, normalizeClass as s, toDisplayString as m, createTextVNode as v, isRef as X } from "vue";
2
+ import { Button as y, Modal as Y, RadioGroup as Z, RadioButton as T, Divider as x } from "@aplus-frontend/antdv";
3
3
  import { getSingleVNode as ee } from "../../../../utils/slot.mjs";
4
4
  import { useInjectApTable as te } from "../../../context.mjs";
5
5
  import "../tree-select/index.vue.mjs";
6
6
  import { useTableColumnState as le } from "../../../hooks/use-table-column-state.mjs";
7
7
  import "../../../../config-provider/index.mjs";
8
8
  import "../sorter/index.vue.mjs";
9
- import ne, { customCloneColumnStates as h } from "../utils.mjs";
9
+ import ne, { customCloneColumnStates as B } from "../utils.mjs";
10
10
  import { SettingOutlined as oe } from "@ant-design/icons-vue";
11
11
  import { useLocale as ae } from "../../../../config-provider/hooks/use-locale.mjs";
12
- import { useNamespace as _ } from "../../../../config-provider/hooks/use-namespace.mjs";
12
+ import { useNamespace as N } from "../../../../config-provider/hooks/use-namespace.mjs";
13
13
  import se from "../tree-select/index.vue2.mjs";
14
14
  import ie from "../sorter/index.vue2.mjs";
15
15
  const Te = /* @__PURE__ */ G({
@@ -20,50 +20,49 @@ const Te = /* @__PURE__ */ G({
20
20
  default: () => ({})
21
21
  }
22
22
  },
23
- setup(A) {
24
- const m = A, {
25
- columnsBackup: V,
23
+ setup(h) {
24
+ const c = h, {
25
+ columnsBackup: _,
26
26
  size: z,
27
- updateSize: d,
28
- updateColumns: f
29
- } = te(), g = y(e(z)), R = L(() => m.config.persistenceKey), {
30
- columnState: o,
27
+ updateSize: A,
28
+ updateColumns: V
29
+ } = te(), d = b(e(z)), R = L(() => c.config.persistenceKey), {
30
+ columnState: l,
31
31
  setColumnState: w,
32
32
  isAllSelected: D,
33
33
  toggleSelectAll: O,
34
34
  columnStateBackup: U,
35
35
  setColumnStateBackup: E,
36
36
  cacheColumnStateIfNeeded: I
37
- } = le(m.config, R, []), {
38
- t: a
37
+ } = le(c.config, R, []), {
38
+ t: n
39
39
  } = ae(), {
40
- b: v,
41
- be: C
42
- } = _("ap-column-setting"), {
40
+ b: f,
41
+ be: g
42
+ } = N("ap-column-setting"), {
43
43
  b: K
44
- } = _("ap-table"), u = y(!1), $ = M(), b = ee($.trigger) || l(x, {
45
- icon: l(oe, null, null),
44
+ } = N("ap-table"), r = b(!1), $ = M(), C = ee($.trigger) || t(y, {
45
+ icon: t(oe, null, null),
46
46
  class: K("setting-trigger-button")
47
- }, null), k = b ? P(b, {
47
+ }, null), S = C ? P(C, {
48
48
  onClick: () => {
49
- u.value = !0;
49
+ r.value = !0;
50
50
  }
51
51
  }) : null;
52
52
  function j() {
53
- w(h(e(U)));
53
+ w(B(e(U)));
54
54
  }
55
55
  function F() {
56
- var t, n;
57
- f == null || f(ne(e(V), e(o))), d == null || d(e(g)), u.value = !1;
58
- const p = h(o.value);
59
- E(p), I(p), (n = (t = m.config) == null ? void 0 : t.onChange) == null || n.call(t, p);
56
+ V?.(ne(e(_), e(l))), A?.(e(d)), r.value = !1;
57
+ const p = B(l.value);
58
+ E(p), I(p), c.config?.onChange?.(p);
60
59
  }
61
- return (p, t) => (T(), q(H, null, [e(k) ? (T(), J(W(e(k)), {
60
+ return (p, o) => (k(), q(H, null, [e(S) ? (k(), J(W(e(S)), {
62
61
  key: 0
63
- })) : Q("", !0), l(e(Y), {
64
- open: u.value,
65
- "onUpdate:open": t[2] || (t[2] = (n) => u.value = n),
66
- title: e(a)("ap.apTable.setting.title"),
62
+ })) : Q("", !0), t(e(Y), {
63
+ open: r.value,
64
+ "onUpdate:open": o[2] || (o[2] = (i) => r.value = i),
65
+ title: e(n)("ap.apTable.setting.title"),
67
66
  width: 900,
68
67
  centered: !0,
69
68
  "body-style": {
@@ -72,56 +71,56 @@ const Te = /* @__PURE__ */ G({
72
71
  },
73
72
  onOk: F
74
73
  }, {
75
- default: r(() => [s("div", {
76
- class: i(e(v)("wrapper"))
77
- }, [s("div", {
78
- class: i(e(v)("left"))
79
- }, [s("div", {
80
- class: i(e(C)("left", "header"))
81
- }, [s("div", null, [s("span", {
82
- class: i(e(C)("left", "header-tips"))
83
- }, c(e(a)("ap.apTable.setting.selectAllTip")), 3), l(e(x), {
74
+ default: u(() => [a("div", {
75
+ class: s(e(f)("wrapper"))
76
+ }, [a("div", {
77
+ class: s(e(f)("left"))
78
+ }, [a("div", {
79
+ class: s(e(g)("left", "header"))
80
+ }, [a("div", null, [a("span", {
81
+ class: s(e(g)("left", "header-tips"))
82
+ }, m(e(n)("ap.apTable.setting.selectAllTip")), 3), t(e(y), {
84
83
  type: "link",
85
84
  size: "small",
86
85
  onClick: e(O)
87
86
  }, {
88
- default: r(() => [S(c(e(D) ? e(a)("ap.apTable.setting.unSelectAll") : e(a)("ap.apTable.setting.selectAll")), 1)]),
87
+ default: u(() => [v(m(e(D) ? e(n)("ap.apTable.setting.unSelectAll") : e(n)("ap.apTable.setting.selectAll")), 1)]),
89
88
  _: 1
90
- }, 8, ["onClick"])]), l(e(Z), {
91
- value: g.value,
92
- "onUpdate:value": t[0] || (t[0] = (n) => g.value = n)
89
+ }, 8, ["onClick"])]), t(e(Z), {
90
+ value: d.value,
91
+ "onUpdate:value": o[0] || (o[0] = (i) => d.value = i)
93
92
  }, {
94
- default: r(() => [l(e(B), {
93
+ default: u(() => [t(e(T), {
95
94
  value: "small"
96
95
  }, {
97
- default: r(() => [S(c(e(a)("ap.apTable.setting.sizeSmall")), 1)]),
96
+ default: u(() => [v(m(e(n)("ap.apTable.setting.sizeSmall")), 1)]),
98
97
  _: 1
99
- }), l(e(B), {
98
+ }), t(e(T), {
100
99
  value: "middle"
101
100
  }, {
102
- default: r(() => [S(c(e(a)("ap.apTable.setting.sizeNormal")), 1)]),
101
+ default: u(() => [v(m(e(n)("ap.apTable.setting.sizeNormal")), 1)]),
103
102
  _: 1
104
103
  })]),
105
104
  _: 1
106
- }, 8, ["value"])], 2), l(e(N), {
105
+ }, 8, ["value"])], 2), t(e(x), {
107
106
  dashed: "",
108
107
  style: {
109
108
  margin: "0px"
110
109
  }
111
- }), l(se, {
112
- class: i(e(C)("left", "content")),
113
- value: e(o)
114
- }, null, 8, ["class", "value"])], 2), l(e(N), {
110
+ }), t(se, {
111
+ class: s(e(g)("left", "content")),
112
+ value: e(l)
113
+ }, null, 8, ["class", "value"])], 2), t(e(x), {
115
114
  type: "vertical",
116
115
  style: {
117
116
  height: "100%",
118
117
  margin: "0px"
119
118
  }
120
- }), s("div", {
121
- class: i(e(v)("right"))
122
- }, [l(ie, {
123
- value: e(o),
124
- "onUpdate:value": t[1] || (t[1] = (n) => X(o) ? o.value = n : null),
119
+ }), a("div", {
120
+ class: s(e(f)("right"))
121
+ }, [t(ie, {
122
+ value: e(l),
123
+ "onUpdate:value": o[1] || (o[1] = (i) => X(l) ? l.value = i : null),
125
124
  onReset: j
126
125
  }, null, 8, ["value"])], 2)], 2)]),
127
126
  _: 1
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as U, computed as p, unref as l, watch as x, createElementBlock as v, openBlock as s, createElementVNode as k, normalizeClass as D, createVNode as u, withCtx as i, createBlock as h, resolveDynamicComponent as w, Fragment as L, renderList as j, mergeProps as z } from "vue";
1
+ import { defineComponent as P, ref as U, computed as p, unref as r, watch as x, createElementBlock as v, openBlock as s, createElementVNode as k, normalizeClass as D, createVNode as i, withCtx as c, createBlock as u, resolveDynamicComponent as w, Fragment as L, renderList as j, mergeProps as z } from "vue";
2
2
  import { Checkbox as b, Row as F, Col as I } from "@aplus-frontend/antdv";
3
3
  import "../../../../config-provider/index.mjs";
4
4
  import { useInjectApTable as R } from "../../../context.mjs";
@@ -10,88 +10,79 @@ const M = /* @__PURE__ */ P({
10
10
  value: {}
11
11
  },
12
12
  setup(y) {
13
- const t = y, { b: _ } = T("select-group"), d = U(!1), { columnsBackup: g, renderConfig: m } = R(), f = p(() => {
14
- var e;
15
- return (e = l(g)) == null ? void 0 : e.find(
16
- (n) => {
17
- var r;
18
- return n.key === ((r = t.value) == null ? void 0 : r.key);
19
- }
20
- );
21
- });
22
- function S(o) {
23
- const e = t.value.children.find((n) => n.key === o.key);
13
+ const t = y, { b: g } = T("select-group"), d = U(!1), { columnsBackup: _, renderConfig: h } = R(), m = p(() => r(_)?.find(
14
+ (n) => n.key === t.value?.key
15
+ ));
16
+ function S(e) {
17
+ const n = t.value.children.find((o) => o.key === e.key);
24
18
  return {
25
- checked: e == null ? void 0 : e.show,
26
- disabled: t.value.disabled || (e == null ? void 0 : e.disabled)
19
+ checked: n?.show,
20
+ disabled: t.value.disabled || n?.disabled
27
21
  };
28
22
  }
29
- function A(o) {
30
- const e = t.value;
31
- e.children.forEach((n) => n.show = o), e.show = o, d.value = !1;
23
+ function A(e) {
24
+ const n = t.value;
25
+ n.children.forEach((o) => o.show = e), n.show = e, d.value = !1;
32
26
  }
33
- function B(o, e) {
34
- const n = t.value, r = n.children.find((a) => a.key === o);
35
- if (!r)
27
+ function B(e, n) {
28
+ const o = t.value, l = o.children.find((a) => a.key === e);
29
+ if (!l)
36
30
  return;
37
- r.show = e;
38
- const c = n.children.every((a) => a.show), E = n.children.some((a) => a.show);
39
- n.show = c, d.value = E && !c;
31
+ l.show = n;
32
+ const f = o.children.every((a) => a.show), E = o.children.some((a) => a.show);
33
+ o.show = f, d.value = E && !f;
40
34
  }
41
- const N = p(() => t.value.disabled || t.value.children.every((o) => o.disabled));
35
+ const N = p(() => t.value.disabled || t.value.children.every((e) => e.disabled));
42
36
  return x(
43
37
  () => t.value,
44
- (o) => {
45
- const e = o.children.every((r) => r.show), n = o.children.some((r) => r.show);
46
- d.value = n && !e, o.show !== e && (o.show = e);
38
+ (e) => {
39
+ const n = e.children.every((l) => l.show), o = e.children.some((l) => l.show);
40
+ d.value = o && !n, e.show !== n && (e.show = n);
47
41
  },
48
42
  {
49
43
  deep: !0,
50
44
  immediate: !0
51
45
  }
52
- ), (o, e) => {
53
- var n;
54
- return s(), v("div", null, [
55
- k("div", {
56
- class: D(l(_)("header"))
57
- }, [
58
- u(l(b), {
59
- indeterminate: d.value,
60
- checked: (n = o.value) == null ? void 0 : n.show,
61
- disabled: N.value,
62
- "onUpdate:checked": A
63
- }, {
64
- default: i(() => [
65
- (s(), h(w(l(C)(f.value, l(m)))))
66
- ]),
67
- _: 1
68
- }, 8, ["indeterminate", "checked", "disabled"])
69
- ], 2),
70
- k("div", null, [
71
- u(l(F), { align: "middle" }, {
72
- default: i(() => [
73
- (s(!0), v(L, null, j(f.value.children, (r) => (s(), h(l(I), {
74
- key: r.key,
75
- span: 8
76
- }, {
77
- default: i(() => [
78
- u(l(b), z({ ref_for: !0 }, S(r), {
79
- "onUpdate:checked": (c) => B(r.key, c)
80
- }), {
81
- default: i(() => [
82
- (s(), h(w(l(C)(r, l(m)))))
83
- ]),
84
- _: 2
85
- }, 1040, ["onUpdate:checked"])
86
- ]),
87
- _: 2
88
- }, 1024))), 128))
89
- ]),
90
- _: 1
91
- })
92
- ])
93
- ]);
94
- };
46
+ ), (e, n) => (s(), v("div", null, [
47
+ k("div", {
48
+ class: D(r(g)("header"))
49
+ }, [
50
+ i(r(b), {
51
+ indeterminate: d.value,
52
+ checked: e.value?.show,
53
+ disabled: N.value,
54
+ "onUpdate:checked": A
55
+ }, {
56
+ default: c(() => [
57
+ (s(), u(w(r(C)(m.value, r(h)))))
58
+ ]),
59
+ _: 1
60
+ }, 8, ["indeterminate", "checked", "disabled"])
61
+ ], 2),
62
+ k("div", null, [
63
+ i(r(F), { align: "middle" }, {
64
+ default: c(() => [
65
+ (s(!0), v(L, null, j(m.value.children, (o) => (s(), u(r(I), {
66
+ key: o.key,
67
+ span: 8
68
+ }, {
69
+ default: c(() => [
70
+ i(r(b), z({ ref_for: !0 }, S(o), {
71
+ "onUpdate:checked": (l) => B(o.key, l)
72
+ }), {
73
+ default: c(() => [
74
+ (s(), u(w(r(C)(o, r(h)))))
75
+ ]),
76
+ _: 2
77
+ }, 1040, ["onUpdate:checked"])
78
+ ]),
79
+ _: 2
80
+ }, 1024))), 128))
81
+ ]),
82
+ _: 1
83
+ })
84
+ ])
85
+ ]));
95
86
  }
96
87
  });
97
88
  export {
@@ -1,50 +1,47 @@
1
- import { defineComponent as f, ref as c, createElementBlock as u, openBlock as n, normalizeClass as m, unref as r, createVNode as i, createCommentVNode as p, withCtx as k, createBlock as y } from "vue";
1
+ import { defineComponent as v, ref as f, createElementBlock as t, openBlock as n, normalizeClass as u, unref as r, createVNode as m, createCommentVNode as i, withCtx as c, createBlock as k } from "vue";
2
2
  import "./item.vue.mjs";
3
3
  import "../../../../config-provider/index.mjs";
4
- import V from "vuedraggable";
5
- import { useNamespace as h } from "../../../../config-provider/hooks/use-namespace.mjs";
6
- import s from "./item.vue2.mjs";
7
- const w = /* @__PURE__ */ f({
4
+ import y from "vuedraggable";
5
+ import { useNamespace as V } from "../../../../config-provider/hooks/use-namespace.mjs";
6
+ import p from "./item.vue2.mjs";
7
+ const _ = /* @__PURE__ */ v({
8
8
  __name: "index",
9
9
  props: {
10
10
  value: {},
11
11
  "onUpdate:value": { type: Function }
12
12
  },
13
- setup(C) {
14
- const { b: d, is: v } = h("sortable-item"), a = c(!1);
15
- return (l, o) => {
16
- var t;
17
- return n(), u("div", {
18
- class: m(r(d)())
13
+ setup(h) {
14
+ const { b: s, is: d } = V("sortable-item"), a = f(!1);
15
+ return (l, o) => (n(), t("div", {
16
+ class: u(r(s)())
17
+ }, [
18
+ m(p, {
19
+ open: a.value,
20
+ "onUpdate:open": o[0] || (o[0] = (e) => a.value = e),
21
+ value: l.value
22
+ }, null, 8, ["open", "value"]),
23
+ l.value.children?.length ? (n(), t("div", {
24
+ key: 0,
25
+ class: u(r(d)("hidden", a.value))
19
26
  }, [
20
- i(s, {
21
- open: a.value,
22
- "onUpdate:open": o[0] || (o[0] = (e) => a.value = e),
23
- value: l.value
24
- }, null, 8, ["open", "value"]),
25
- (t = l.value.children) != null && t.length ? (n(), u("div", {
26
- key: 0,
27
- class: m(r(v)("hidden", a.value))
28
- }, [
29
- i(r(V), {
30
- modelValue: l.value.children,
31
- "onUpdate:modelValue": o[1] || (o[1] = (e) => l.value.children = e),
32
- "item-key": "key"
33
- }, {
34
- item: k(({ element: e }) => [
35
- e.show ? (n(), y(s, {
36
- key: 0,
37
- value: e,
38
- level: 2
39
- }, null, 8, ["value"])) : p("", !0)
40
- ]),
41
- _: 1
42
- }, 8, ["modelValue"])
43
- ], 2)) : p("", !0)
44
- ], 2);
45
- };
27
+ m(r(y), {
28
+ modelValue: l.value.children,
29
+ "onUpdate:modelValue": o[1] || (o[1] = (e) => l.value.children = e),
30
+ "item-key": "key"
31
+ }, {
32
+ item: c(({ element: e }) => [
33
+ e.show ? (n(), k(p, {
34
+ key: 0,
35
+ value: e,
36
+ level: 2
37
+ }, null, 8, ["value"])) : i("", !0)
38
+ ]),
39
+ _: 1
40
+ }, 8, ["modelValue"])
41
+ ], 2)) : i("", !0)
42
+ ], 2));
46
43
  }
47
44
  });
48
45
  export {
49
- w as default
46
+ _ as default
50
47
  };