@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,20 +1,20 @@
1
- import { defineComponent as T, ref as g, computed as r, unref as l, createElementBlock as $, openBlock as B, normalizeStyle as b, normalizeClass as K, createVNode as c, withCtx as A, createBlock as M, createCommentVNode as D, mergeProps as G } from "vue";
1
+ import { defineComponent as _, ref as y, computed as u, unref as t, createElementBlock as z, openBlock as h, normalizeStyle as g, normalizeClass as T, createVNode as c, withCtx as B, createBlock as $, createCommentVNode as K, mergeProps as M } from "vue";
2
2
  import "../../ap-field/index.mjs";
3
- import { Space as q } from "@aplus-frontend/antdv";
3
+ import { Space as D } from "@aplus-frontend/antdv";
4
4
  import "../../config-provider/index.mjs";
5
- import { isNumber as H, omit as Y } from "lodash-unified";
5
+ import { isNumber as G, omit as q } from "lodash-unified";
6
6
  import "./popover-input/index.vue.mjs";
7
7
  import "../../hooks/index.mjs";
8
- import { isDef as J } from "../../utils/index.mjs";
9
- import { useDefaultPlaceholder as Q } from "../../ap-field/hooks/use-default-placeholder.mjs";
10
- import { splitValue as W } from "./utils.mjs";
11
- import { useControllableValue as X } from "../../hooks/useControllableValue.mjs";
12
- import { useLocale as Z } from "../../config-provider/hooks/use-locale.mjs";
13
- import { useNamespace as ee } from "../../config-provider/hooks/use-namespace.mjs";
14
- import te from "../../ap-field/select/index.vue.mjs";
15
- import { ApFieldText as oe } from "../../ap-field/text/index.mjs";
16
- import ne from "./popover-input/index.vue2.mjs";
17
- const m = "GROUP_SEARCH_ALL", be = /* @__PURE__ */ T({
8
+ import { isDef as H } from "../../utils/index.mjs";
9
+ import { useDefaultPlaceholder as Y } from "../../ap-field/hooks/use-default-placeholder.mjs";
10
+ import { splitValue as J } from "./utils.mjs";
11
+ import { useControllableValue as Q } from "../../hooks/useControllableValue.mjs";
12
+ import { useLocale as W } from "../../config-provider/hooks/use-locale.mjs";
13
+ import { useNamespace as X } from "../../config-provider/hooks/use-namespace.mjs";
14
+ import Z from "../../ap-field/select/index.vue.mjs";
15
+ import { ApFieldText as ee } from "../../ap-field/text/index.mjs";
16
+ import te from "./popover-input/index.vue2.mjs";
17
+ const m = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ _({
18
18
  name: "BatchInputGroup",
19
19
  __name: "index",
20
20
  props: {
@@ -74,142 +74,128 @@ const m = "GROUP_SEARCH_ALL", be = /* @__PURE__ */ T({
74
74
  beforeInput: {}
75
75
  },
76
76
  emits: ["update:value"],
77
- setup(V, { emit: x }) {
78
- const n = V, C = Q("Text", n), S = x, { value: a, updateValue: p } = X(
79
- n,
80
- S
81
- ), i = g(), f = g(), { t: I } = Z(), { b: U, cssVar: w } = ee("batch-input-group"), P = r(() => {
82
- const e = n.popoverPlacement;
77
+ setup(b, { emit: A }) {
78
+ const o = b, V = Y("Text", o), x = A, { value: a, updateValue: r } = Q(
79
+ o,
80
+ x
81
+ ), s = y(), f = y(), { t: C } = W(), { b: S, cssVar: k } = X("batch-input-group"), I = u(() => {
82
+ const e = o.popoverPlacement;
83
83
  return {
84
- "popover-left": H(e) ? `${e}px` : e === "left" ? "0px" : "unset",
84
+ "popover-left": G(e) ? `${e}px` : e === "left" ? "0px" : "unset",
85
85
  "popover-right": e === "right" ? "0px" : "unset"
86
86
  };
87
- }), k = r(() => n.options ? n.options.length > 1 && n.hasAll ? [
88
- { value: m, label: I("ap.common.all") },
89
- ...n.options
90
- ] : n.options : []), R = r(() => n.options ? n.options.map((e) => e.value) : []), N = r(() => {
91
- var e, t;
92
- return (t = (e = l(a)) == null ? void 0 : e.value) != null && t.length ? l(a).value.join(",") : "";
93
- }), j = r(() => {
94
- var e, t;
95
- return (t = (e = l(a)) == null ? void 0 : e.value) != null && t.length ? l(a).value.join(`
96
- `) : "";
97
- }), E = r(() => {
98
- var t;
99
- const e = (t = l(a)) == null ? void 0 : t.key;
100
- if (e != null && e.length)
101
- return e.length === 1 || !n.hasAll ? e[0] : m;
102
- }), F = r(() => {
103
- var o;
104
- const e = (o = l(a)) == null ? void 0 : o.key;
105
- return !e || (e == null ? void 0 : e.length) <= 1 ? l(C) : (n.options || []).filter((u) => e.includes(u.value)).map((u) => u.label).join("/");
87
+ }), U = u(() => o.options ? o.options.length > 1 && o.hasAll ? [
88
+ { value: m, label: C("ap.common.all") },
89
+ ...o.options
90
+ ] : o.options : []), w = u(() => o.options ? o.options.map((e) => e.value) : []), P = u(() => t(a)?.value?.length ? t(a).value.join(",") : ""), R = u(() => t(a)?.value?.length ? t(a).value.join(`
91
+ `) : ""), N = u(() => {
92
+ const e = t(a)?.key;
93
+ if (e?.length)
94
+ return e.length === 1 || !o.hasAll ? e[0] : m;
95
+ }), j = u(() => {
96
+ const e = t(a)?.key;
97
+ return !e || e?.length <= 1 ? t(V) : (o.options || []).filter((n) => e.includes(n.value)).map((n) => n.label).join("/");
106
98
  });
107
- function L(e) {
108
- const t = l(a) || {}, o = e === m ? l(R) : J(e) ? [e] : [];
109
- p({
110
- ...t,
111
- key: o
99
+ function E(e) {
100
+ const l = t(a) || {}, n = e === m ? t(w) : H(e) ? [e] : [];
101
+ r({
102
+ ...l,
103
+ key: n
112
104
  });
113
105
  }
114
- function O(e) {
115
- var v, y;
116
- const t = l(a) || {}, o = e.target.value || "";
117
- let u = W(o, ",", ",", n.maxNum);
118
- if (o !== u) {
119
- const h = (y = (v = f.value) == null ? void 0 : v.$el) == null ? void 0 : y.querySelector("input");
120
- h && (h.value = u);
106
+ function F(e) {
107
+ const l = t(a) || {}, n = e.target.value || "";
108
+ let i = J(n, ",", ",", o.maxNum);
109
+ if (n !== i) {
110
+ const v = f.value?.$el?.querySelector("input");
111
+ v && (v.value = i);
121
112
  }
122
- let s = u.split(",");
123
- s.length === 1 && s[0] === "" && (s = []), p({
124
- ...t,
125
- value: s
113
+ let p = i.split(",");
114
+ p.length === 1 && p[0] === "" && (p = []), r({
115
+ ...l,
116
+ value: p
126
117
  });
127
118
  }
128
- function _(e) {
129
- const t = l(a) || {};
130
- let o = e.split(/,|\n/);
131
- p({
132
- ...t,
133
- value: o
119
+ function L(e) {
120
+ const l = t(a) || {};
121
+ let n = e.split(/,|\n/);
122
+ r({
123
+ ...l,
124
+ value: n
134
125
  });
135
126
  }
136
127
  function d() {
137
- var o;
138
- const e = l(a) || {}, t = (o = e.value) == null ? void 0 : o.filter(Boolean);
139
- p({
128
+ const e = t(a) || {}, l = e.value?.filter(Boolean);
129
+ r({
140
130
  ...e,
141
- value: t
131
+ value: l
142
132
  });
143
133
  }
144
- function z(e) {
145
- var t;
146
- d(), (t = n.onBlur) == null || t.call(n, e);
134
+ function O(e) {
135
+ d(), o.onBlur?.(e);
147
136
  }
148
- return (e, t) => (B(), $("div", {
137
+ return (e, l) => (h(), z("div", {
149
138
  ref_key: "containerRef",
150
- ref: i,
151
- class: K(l(U)()),
152
- style: b(l(w)(P.value)),
153
- onFocus: t[0] || (t[0] = //@ts-ignore
154
- (...o) => e.onFocus && e.onFocus(...o)),
155
- onBlur: t[1] || (t[1] = //@ts-ignore
156
- (...o) => e.onBlur && e.onBlur(...o))
139
+ ref: s,
140
+ class: T(t(S)()),
141
+ style: g(t(k)(I.value)),
142
+ onFocus: l[0] || (l[0] = //@ts-ignore
143
+ (...n) => e.onFocus && e.onFocus(...n)),
144
+ onBlur: l[1] || (l[1] = //@ts-ignore
145
+ (...n) => e.onBlur && e.onBlur(...n))
157
146
  }, [
158
- c(l(q).Compact, { block: "" }, {
159
- default: A(() => {
160
- var o;
161
- return [
162
- (o = e.options) != null && o.length ? (B(), M(l(te), {
163
- key: 0,
164
- style: b(e.style),
165
- options: k.value,
166
- value: E.value,
167
- "allow-clear": !1,
168
- "dropdown-match-select-width": !1,
169
- disabled: e.disabled,
170
- "get-popup-container": () => i.value,
171
- "onUpdate:value": L
172
- }, null, 8, ["style", "options", "value", "disabled", "get-popup-container"])) : D("", !0),
173
- c(l(oe), G(
174
- l(Y)(n, [
175
- "style",
176
- "value",
177
- "onUpdate:value",
178
- "inputStyle",
179
- "hasAll",
180
- "options",
181
- "onBlur"
182
- ]),
183
- {
184
- ref_key: "inputRef",
185
- ref: f,
186
- style: e.inputStyle,
187
- value: N.value,
188
- placeholder: F.value,
189
- onInput: O,
190
- onBlur: z
191
- }
192
- ), {
193
- suffix: A(() => [
194
- c(ne, {
195
- _parent: i.value,
196
- value: j.value,
197
- disabled: e.disabled,
198
- placement: n.popoverPlacement,
199
- "max-num": e.maxNum,
200
- "onUpdate:value": _,
201
- onClose: d
202
- }, null, 8, ["_parent", "value", "disabled", "placement", "max-num"])
203
- ]),
204
- _: 1
205
- }, 16, ["style", "value", "placeholder"])
206
- ];
207
- }),
147
+ c(t(D).Compact, { block: "" }, {
148
+ default: B(() => [
149
+ e.options?.length ? (h(), $(t(Z), {
150
+ key: 0,
151
+ style: g(e.style),
152
+ options: U.value,
153
+ value: N.value,
154
+ "allow-clear": !1,
155
+ "dropdown-match-select-width": !1,
156
+ disabled: e.disabled,
157
+ "get-popup-container": () => s.value,
158
+ "onUpdate:value": E
159
+ }, null, 8, ["style", "options", "value", "disabled", "get-popup-container"])) : K("", !0),
160
+ c(t(ee), M(
161
+ t(q)(o, [
162
+ "style",
163
+ "value",
164
+ "onUpdate:value",
165
+ "inputStyle",
166
+ "hasAll",
167
+ "options",
168
+ "onBlur"
169
+ ]),
170
+ {
171
+ ref_key: "inputRef",
172
+ ref: f,
173
+ style: e.inputStyle,
174
+ value: P.value,
175
+ placeholder: j.value,
176
+ onInput: F,
177
+ onBlur: O
178
+ }
179
+ ), {
180
+ suffix: B(() => [
181
+ c(te, {
182
+ _parent: s.value,
183
+ value: R.value,
184
+ disabled: e.disabled,
185
+ placement: o.popoverPlacement,
186
+ "max-num": e.maxNum,
187
+ "onUpdate:value": L,
188
+ onClose: d
189
+ }, null, 8, ["_parent", "value", "disabled", "placement", "max-num"])
190
+ ]),
191
+ _: 1
192
+ }, 16, ["style", "value", "placeholder"])
193
+ ]),
208
194
  _: 1
209
195
  })
210
196
  ], 38));
211
197
  }
212
198
  });
213
199
  export {
214
- be as default
200
+ ge as default
215
201
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as k, ref as m, createElementBlock as A, openBlock as w, normalizeClass as p, unref as e, createVNode as u, withCtx as f, createElementVNode as B } from "vue";
2
- import { Popover as L, Textarea as P } from "@aplus-frontend/antdv";
1
+ import { defineComponent as I, ref as i, createElementBlock as k, openBlock as A, normalizeClass as p, unref as e, createVNode as u, withCtx as m, createElementVNode as w } from "vue";
2
+ import { Popover as B, Textarea as L } from "@aplus-frontend/antdv";
3
3
  import "../../../config-provider/index.mjs";
4
- import { IconApAdLineScreen as z } from "@aplus-frontend/icon";
4
+ import { IconApAdLineScreen as P } from "@aplus-frontend/icon";
5
5
  import "../../../hooks/index.mjs";
6
- import { splitValue as E } from "../utils.mjs";
7
- import { useControllableValue as F } from "../../../hooks/useControllableValue.mjs";
8
- import { useLocale as O } from "../../../config-provider/hooks/use-locale.mjs";
9
- import { useNamespace as R } from "../../../config-provider/hooks/use-namespace.mjs";
10
- const J = /* @__PURE__ */ k({
6
+ import { splitValue as z } from "../utils.mjs";
7
+ import { useControllableValue as E } from "../../../hooks/useControllableValue.mjs";
8
+ import { useLocale as F } from "../../../config-provider/hooks/use-locale.mjs";
9
+ import { useNamespace as O } from "../../../config-provider/hooks/use-namespace.mjs";
10
+ const H = /* @__PURE__ */ I({
11
11
  __name: "index",
12
12
  props: {
13
13
  _parent: {},
@@ -18,60 +18,58 @@ const J = /* @__PURE__ */ k({
18
18
  "onUpdate:value": { type: Function }
19
19
  },
20
20
  emits: ["update:value"],
21
- setup(d, { emit: v }) {
22
- const o = d, g = v, { value: b, updateValue: h } = F(o, g), n = m(!1), l = m(), x = (t) => o._parent || t, { t: C } = O();
23
- function _(t) {
24
- var c;
25
- const a = t.target.value || "";
26
- let r = E(a, `
21
+ setup(f, { emit: d }) {
22
+ const t = f, v = d, { value: g, updateValue: b } = E(t, v), a = i(!1), n = i(), h = (o) => t._parent || o, { t: x } = F();
23
+ function C(o) {
24
+ const l = o.target.value || "";
25
+ let r = z(l, `
27
26
  ,`, `
28
- `, o.maxNum);
29
- if (r !== a) {
30
- const i = ((c = l.value) == null ? void 0 : c.$el) || l.value;
31
- i && (i.value = r);
27
+ `, t.maxNum);
28
+ if (r !== l) {
29
+ const c = n.value?.$el || n.value;
30
+ c && (c.value = r);
32
31
  }
33
- h(r);
32
+ b(r);
34
33
  }
35
- function N(t) {
36
- var a;
37
- o.disabled ? n.value = !1 : n.value = t, !t && ((a = o.onClose) == null || a.call(o));
34
+ function _(o) {
35
+ t.disabled ? a.value = !1 : a.value = o, !o && t.onClose?.();
38
36
  }
39
- const { b: s, e: V, em: y, bm: I } = R("batch-input-group-popover-input");
40
- return (t, a) => (w(), A("div", {
37
+ const { b: s, e: N, em: V, bm: y } = O("batch-input-group-popover-input");
38
+ return (o, l) => (A(), k("div", {
41
39
  class: p(e(s)())
42
40
  }, [
43
- u(e(L), {
44
- "overlay-class-name": e(V)("popover"),
45
- "get-popup-container": x,
41
+ u(e(B), {
42
+ "overlay-class-name": e(N)("popover"),
43
+ "get-popup-container": h,
46
44
  trigger: "click",
47
45
  placement: "bottomLeft",
48
- open: n.value,
49
- onOpenChange: N
46
+ open: a.value,
47
+ onOpenChange: _
50
48
  }, {
51
- content: f(() => [
52
- B("div", {
53
- class: p(e(y)("popover", "content"))
49
+ content: m(() => [
50
+ w("div", {
51
+ class: p(e(V)("popover", "content"))
54
52
  }, [
55
- u(e(P), {
53
+ u(e(L), {
56
54
  ref_key: "textAreaRef",
57
- ref: l,
58
- placeholder: e(C)("ap.batchInputGroup.popoverInputPlaceholder", {
59
- maxNum: t.maxNum + ""
55
+ ref: n,
56
+ placeholder: e(x)("ap.batchInputGroup.popoverInputPlaceholder", {
57
+ maxNum: o.maxNum + ""
60
58
  }),
61
59
  bordered: !1,
62
60
  rows: 10,
63
- value: e(b),
61
+ value: e(g),
64
62
  "allow-clear": !1,
65
63
  "auto-size": !1,
66
- onInput: _
64
+ onInput: C
67
65
  }, null, 8, ["placeholder", "value"])
68
66
  ], 2)
69
67
  ]),
70
- default: f(() => [
71
- u(e(z), {
68
+ default: m(() => [
69
+ u(e(P), {
72
70
  class: p([
73
71
  e(s)("trigger-icon"),
74
- t.disabled ? e(I)("trigger-icon", "disabled") : null
72
+ o.disabled ? e(y)("trigger-icon", "disabled") : null
75
73
  ])
76
74
  }, null, 8, ["class"])
77
75
  ]),
@@ -81,5 +79,5 @@ const J = /* @__PURE__ */ k({
81
79
  }
82
80
  });
83
81
  export {
84
- J as default
82
+ H as default
85
83
  };
@@ -1,17 +1,16 @@
1
- import { onMounted as m, onActivated as b } from "vue";
2
- function l(e) {
3
- const a = (["reset", "submit", void 0].includes(e == null ? void 0 : e.refreshType) ? e == null ? void 0 : e.refreshType : "submit") ?? "submit", r = (e == null ? void 0 : e.refreshBefore) ?? (() => !0);
4
- let s = !0;
5
- m(() => {
6
- s = !1;
7
- }), b(() => {
8
- const c = r == null ? void 0 : r();
9
- s || c && setTimeout(() => {
10
- var u, f;
11
- (f = (u = e == null ? void 0 : e.apTableRef) == null ? void 0 : u.value) == null || f[a]();
1
+ import { onMounted as u, onActivated as i } from "vue";
2
+ function n(e) {
3
+ const s = (["reset", "submit", void 0].includes(e?.refreshType) ? e?.refreshType : "submit") ?? "submit", t = e?.refreshBefore ?? (() => !0);
4
+ let r = !0;
5
+ u(() => {
6
+ r = !1;
7
+ }), i(() => {
8
+ const f = t?.();
9
+ r || f && setTimeout(() => {
10
+ e?.apTableRef?.value?.[s]();
12
11
  });
13
12
  });
14
13
  }
15
14
  export {
16
- l as useGridRefresh
15
+ n as useGridRefresh
17
16
  };
@@ -1,10 +1,10 @@
1
1
  import { onActivated as v, onDeactivated as c } from "vue";
2
- function l(a) {
3
- let e = "notKeepAlive", t = a == null ? void 0 : a.afterDeactivated;
2
+ function o(a) {
3
+ let e = "notKeepAlive", t = a?.afterDeactivated;
4
4
  return v(() => {
5
5
  e = "activated";
6
6
  }), c(() => {
7
- e = "deactivated", t == null || t();
7
+ e = "deactivated", t?.();
8
8
  }), {
9
9
  isDeactivated: () => e === "deactivated",
10
10
  isActivated: () => e === "activated",
@@ -14,5 +14,5 @@ function l(a) {
14
14
  };
15
15
  }
16
16
  export {
17
- l as useKeepAliveFlag
17
+ o as useKeepAliveFlag
18
18
  };
@@ -3,85 +3,80 @@ import { merge as v, cloneDeep as A } from "lodash-unified";
3
3
  import { ref as F } from "vue";
4
4
  import { useKeepAliveFlag as R } from "./useKeepAliveFlag.mjs";
5
5
  import { useTableRefresh as w } from "./useTableRefresh.mjs";
6
- function z(s) {
7
- const t = F(null), {
8
- isShowRowSelection: i = !0,
9
- clearSelectionOnRequest: f = !0,
10
- transformSearchFormValues: a,
11
- api: n,
12
- tableRefresh: d = !0,
13
- clearDataOnDeactivated: m = !0,
14
- ...p
15
- } = s || {};
16
- let l = null;
17
- const u = () => {
18
- var e, r;
19
- (r = (e = t.value) == null ? void 0 : e.rowSelection) == null || r.clearAll();
6
+ function z(a) {
7
+ const r = F(null), {
8
+ isShowRowSelection: c = !0,
9
+ clearSelectionOnRequest: i = !0,
10
+ transformSearchFormValues: o,
11
+ api: s,
12
+ tableRefresh: f = !0,
13
+ clearDataOnDeactivated: d = !0,
14
+ ...m
15
+ } = a || {};
16
+ let n = null;
17
+ const l = () => {
18
+ r.value?.rowSelection?.clearAll();
20
19
  };
21
20
  w({
22
- ...V(d),
23
- apTableRef: t
21
+ ...V(f),
22
+ apTableRef: r
24
23
  });
25
- const c = () => {
26
- var e;
27
- (e = t.value) == null || e.submit();
28
- }, h = () => {
29
- var e;
30
- (e = t.value) == null || e.reset();
31
- }, { isDeactivated: S } = R({
32
- afterDeactivated: c
24
+ const u = () => {
25
+ r.value?.submit();
26
+ }, p = () => {
27
+ r.value?.reset();
28
+ }, { isDeactivated: h } = R({
29
+ afterDeactivated: u
33
30
  });
34
31
  return [v(
35
32
  {
36
33
  // scroll,tableLayout,columnResizable设置表格可拖动
37
34
  columnResizable: !0,
38
- request: n ? async (e) => {
39
- if (S() && m)
35
+ request: s ? async (e) => {
36
+ if (h() && d)
40
37
  return {
41
38
  data: [],
42
39
  total: 0
43
40
  };
44
- l = e.sort;
45
- const r = a ? a(e) : e;
46
- if (!n) throw new Error("api is not defined");
47
- const { records: o, total: g } = await n(r);
48
- return f && u(), {
49
- data: o,
41
+ n = e.sort;
42
+ const t = o ? o(e) : e;
43
+ if (!s) throw new Error("api is not defined");
44
+ const { records: S, total: g } = await s(t);
45
+ return i && l(), {
46
+ data: S,
50
47
  total: g
51
48
  };
52
49
  } : void 0,
53
- rowSelection: i ? {
50
+ rowSelection: c ? {
54
51
  fixed: "left",
55
52
  columnWidth: 38
56
53
  } : void 0,
57
54
  ref(e) {
58
- t.value = e;
55
+ r.value = e;
59
56
  },
60
57
  // 新UI规范,需要都添加分割线
61
58
  card: !0
62
59
  },
63
- p
60
+ m
64
61
  ), {
65
- reload: c,
66
- reset: h,
62
+ reload: u,
63
+ reset: p,
67
64
  getSearchFormValues: (e = !0) => {
68
- var o;
69
- const r = ((o = t.value) == null ? void 0 : o.getSearchFormValues(!!e)) || {};
70
- return a ? a(r) : r;
65
+ const t = r.value?.getSearchFormValues(!!e) || {};
66
+ return o ? o(t) : t;
71
67
  },
72
- getAgGridInstance: () => t.value,
68
+ getAgGridInstance: () => r.value,
73
69
  getSearchFormValuesAndSorted: (e = !0) => {
74
- var o;
75
- const r = ((o = t.value) == null ? void 0 : o.getSearchFormValues(!!e)) || {};
76
- return r.sort = l && A(l), a ? a(r) : r;
70
+ const t = r.value?.getSearchFormValues(!!e) || {};
71
+ return t.sort = n && A(n), o ? o(t) : t;
77
72
  },
78
- clearSelection: u
73
+ clearSelection: l
79
74
  }];
80
75
  }
81
- function V(s) {
82
- return s === !0 ? {} : s === !1 ? {
76
+ function V(a) {
77
+ return a === !0 ? {} : a === !1 ? {
83
78
  refreshBefore: () => !1
84
- } : s;
79
+ } : a;
85
80
  }
86
81
  export {
87
82
  z as usePageListAgGrid