@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,17 +1,17 @@
1
- import { isArray as n } from "lodash-unified";
2
- function e(r, u) {
3
- let t = r;
4
- for (let i = 0; i < u.length; i += 1) {
5
- if (t == null)
1
+ import { isArray as i } from "lodash-unified";
2
+ function o(u, t) {
3
+ let r = u;
4
+ for (let e = 0; e < t.length; e += 1) {
5
+ if (r == null)
6
6
  return;
7
- t = t[u[i]];
7
+ r = r[t[e]];
8
8
  }
9
- return t;
9
+ return r;
10
10
  }
11
- function c(r, u) {
12
- return n(u) ? u.reduce((t, i) => t == null ? void 0 : t[i], r) : r == null ? void 0 : r[u];
11
+ function f(u, t) {
12
+ return i(t) ? t.reduce((r, e) => r?.[e], u) : u?.[t];
13
13
  }
14
14
  export {
15
- e as default,
16
- c as getModelValue
15
+ o as default,
16
+ f as getModelValue
17
17
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as K, useSlots as H, toRef as P, ref as h, unref as u, watch as A, nextTick as W, createBlock as G, openBlock as U, mergeProps as y, withCtx as g, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
2
- import { ApForm as C } from "../../ap-form/index.mjs";
3
- import { isUndefined as Z, isNumber as m, cloneDeep as I, isArray as M, omit as ee } from "lodash-unified";
1
+ import { defineComponent as O, useSlots as z, toRef as K, ref as c, unref as s, watch as H, nextTick as P, createBlock as A, openBlock as W, mergeProps as h, withCtx as y, createVNode as G, createSlots as U, renderList as $, renderSlot as q, normalizeProps as J, guardReactiveProps as Q } from "vue";
2
+ import { ApForm as g } from "../../ap-form/index.mjs";
3
+ import { isUndefined as X, isNumber as d, cloneDeep as Y, isArray as Z, omit as M } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
- import { isDef as w } from "../../utils/index.mjs";
6
- import { useGetEditableColumns as oe } from "../hooks/use-editable-columns.mjs";
5
+ import { isDef as C } from "../../utils/index.mjs";
6
+ import { useGetEditableColumns as ee } from "../hooks/use-editable-columns.mjs";
7
7
  import "../index.vue2.mjs";
8
8
  import { useInjectForm as te } from "../../ap-form/context.mjs";
9
- import { getModelValue as ae } from "../../ap-form/utils/get.mjs";
10
- import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
11
- import { useGlobalConfig as ne } from "../../config-provider/hooks/use-global-config.mjs";
12
- import re from "../index.vue.mjs";
13
- const we = /* @__PURE__ */ K({
9
+ import { getModelValue as oe } from "../../ap-form/utils/get.mjs";
10
+ import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
11
+ import { useGlobalConfig as le } from "../../config-provider/hooks/use-global-config.mjs";
12
+ import ne from "../index.vue.mjs";
13
+ const Ce = /* @__PURE__ */ O({
14
14
  name: "EditableGridFormItem",
15
15
  __name: "form-item",
16
16
  props: {
@@ -163,130 +163,123 @@ const we = /* @__PURE__ */ K({
163
163
  default: () => ({})
164
164
  }
165
165
  },
166
- setup(b, {
167
- expose: x
166
+ setup(w, {
167
+ expose: b
168
168
  }) {
169
- const R = H(), l = b, {
170
- b: B
171
- } = le("editable-grid"), {
172
- internalInstance: o,
173
- model: S
174
- } = te(), p = P(l.name), d = h(ae(u(S), p.value) || []), v = C.useWatch(p);
175
- A(() => v.value, async (e) => {
176
- var a;
177
- await W(), d.value = e, (a = l.onChange) == null || a.call(l, e);
169
+ const x = z(), a = w, {
170
+ b: R
171
+ } = ae("editable-grid"), {
172
+ internalInstance: f,
173
+ model: B
174
+ } = te(), m = K(a.name), i = c(oe(s(B), m.value) || []), S = g.useWatch(m);
175
+ H(() => S.value, async (e) => {
176
+ await P(), i.value = e, a.onChange?.(e);
178
177
  }, {
179
178
  deep: !0
180
179
  });
181
- const c = h(), F = ne("valueTypeMap"), N = oe(l, F);
182
- function D(e, a) {
183
- var n;
184
- const r = ((n = u(d)) == null ? void 0 : n.length) || 0;
185
- if (w(l.maxLength) && r >= l.maxLength)
180
+ const p = c(), v = le("valueTypeMap"), F = ee(a, v);
181
+ function N(e, l) {
182
+ const r = s(i)?.length || 0;
183
+ if (C(a.maxLength) && r >= a.maxLength)
186
184
  return;
187
185
  const t = {
188
186
  ...e || {}
189
187
  };
190
- o == null || o.setFieldValue(l.name, t, !0, (f, s) => {
191
- if (!f[s]) {
192
- f[s] = [t];
188
+ f?.setFieldValue(a.name, t, !0, (o, n) => {
189
+ if (!o[n]) {
190
+ o[n] = [t];
193
191
  return;
194
192
  }
195
- Z(a) ? f[s].push(t) : f[s].splice(a, 0, t);
193
+ X(l) ? o[n].push(t) : o[n].splice(l, 0, t);
196
194
  });
197
195
  }
198
- function V(e, a = "suffix") {
199
- var f;
200
- const r = ((f = u(d)) == null ? void 0 : f.length) || 0, t = m(e) ? e : e.length;
201
- if (w(l.maxLength) && r + t > l.maxLength)
196
+ function D(e, l = "suffix") {
197
+ const r = s(i)?.length || 0, t = d(e) ? e : e.length;
198
+ if (C(a.maxLength) && r + t > a.maxLength)
202
199
  return;
203
- const n = m(e) ? new Array(e).fill(0).map(() => ({})) : I(e);
204
- o == null || o.setFieldValue(l.name, n, !0, (s, i) => {
205
- if (!s[i]) {
206
- s[i] = [...n];
200
+ const o = d(e) ? new Array(e).fill(0).map(() => ({})) : Y(e);
201
+ f?.setFieldValue(a.name, o, !0, (n, u) => {
202
+ if (!n[u]) {
203
+ n[u] = [...o];
207
204
  return;
208
205
  }
209
- a === "suffix" ? s[i].push(...n) : s[i].unshift(...n);
206
+ l === "suffix" ? n[u].push(...o) : n[u].unshift(...o);
210
207
  });
211
208
  }
212
- function L(e) {
213
- const a = new Set(m(e) ? [e] : e);
214
- o == null || o.setFieldValue(l.name, void 0, !0, (r, t) => {
215
- r[t] = r[t].filter((n, f) => !a.has(f));
209
+ function I(e) {
210
+ const l = new Set(d(e) ? [e] : e);
211
+ f?.setFieldValue(a.name, void 0, !0, (r, t) => {
212
+ r[t] = r[t].filter((o, n) => !l.has(n));
216
213
  });
217
214
  }
218
- function T(e) {
219
- var r;
220
- const a = new Set(M(e) ? e : [e]);
221
- a.size !== 0 && ((r = o == null ? void 0 : o.setFieldValue) == null || r.call(o, l.name, void 0, !0, (t, n) => {
222
- t[n] = t[n].filter((f) => !a.has(f[l.rowKey]));
223
- }));
215
+ function V(e) {
216
+ const l = new Set(Z(e) ? e : [e]);
217
+ l.size !== 0 && f?.setFieldValue?.(a.name, void 0, !0, (r, t) => {
218
+ r[t] = r[t].filter((o) => !l.has(o[a.rowKey]));
219
+ });
224
220
  }
225
- function k() {
226
- return u(d);
221
+ function L() {
222
+ return s(i);
227
223
  }
228
- function _(e) {
229
- var a;
230
- return (a = u(d)) == null ? void 0 : a[e];
224
+ function T(e) {
225
+ return s(i)?.[e];
231
226
  }
232
- function j(e, a, r = !0) {
233
- o == null || o.setFieldValue(l.name, void 0, !0, (t, n) => {
234
- if (!(!t[n] || !t[n][e])) {
227
+ function k(e, l, r = !0) {
228
+ f?.setFieldValue(a.name, void 0, !0, (t, o) => {
229
+ if (!(!t[o] || !t[o][e])) {
235
230
  if (!r) {
236
- const f = Object.keys(t[n][e]);
237
- for (const s of f)
238
- s !== l.rowKey && delete t[n][e][s];
231
+ const n = Object.keys(t[o][e]);
232
+ for (const u of n)
233
+ u !== a.rowKey && delete t[o][e][u];
239
234
  }
240
- Object.assign(t[n][e], {
241
- ...a
235
+ Object.assign(t[o][e], {
236
+ ...l
242
237
  });
243
238
  }
244
239
  });
245
240
  }
246
- function E(e) {
247
- o == null || o.setFieldValue(l.name, e);
241
+ function _(e) {
242
+ f?.setFieldValue(a.name, e);
248
243
  }
249
- function O(e) {
250
- var r;
251
- const a = e === "end" ? d.value.length - 1 : e;
252
- (r = c.value) == null || r.scrollToRow(a);
244
+ function j(e) {
245
+ const l = e === "end" ? i.value.length - 1 : e;
246
+ p.value?.scrollToRow(l);
253
247
  }
254
- function z() {
255
- var e;
256
- (e = o == null ? void 0 : o.setFieldValue) == null || e.call(o, l.name, []);
248
+ function E() {
249
+ f?.setFieldValue?.(a.name, []);
257
250
  }
258
- return x({
259
- add: D,
260
- remove: L,
261
- getRowData: _,
262
- getRowsData: k,
263
- setRowData: j,
264
- addMultiple: V,
265
- scrollTo: O,
266
- setTableData: E,
267
- clear: z,
268
- removeByKey: T
269
- }), (e, a) => (U(), G(u(C).FormItem, y(e.formItem, {
251
+ return b({
252
+ add: N,
253
+ remove: I,
254
+ getRowData: T,
255
+ getRowsData: L,
256
+ setRowData: k,
257
+ addMultiple: D,
258
+ scrollTo: j,
259
+ setTableData: _,
260
+ clear: E,
261
+ removeByKey: V
262
+ }), (e, l) => (W(), A(s(g).FormItem, h(e.formItem, {
270
263
  name: e.name,
271
264
  label: e.label
272
265
  }), {
273
- default: g(() => [$(re, y(u(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
266
+ default: y(() => [G(ne, h(s(M)(a, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
274
267
  ref_key: "tableRef",
275
- ref: c,
276
- class: u(B)(),
277
- columns: u(N),
278
- "data-source": d.value,
268
+ ref: p,
269
+ class: s(R)(),
270
+ columns: s(F),
271
+ "data-source": i.value,
279
272
  "search-form": !1
280
- }), q({
273
+ }), U({
281
274
  _: 2
282
- }, [J(R, (r, t) => ({
275
+ }, [$(x, (r, t) => ({
283
276
  name: t,
284
- fn: g((n) => [Q(e.$slots, t, X(Y(n || {})))])
277
+ fn: y((o) => [q(e.$slots, t, J(Q(o || {})))])
285
278
  }))]), 1040, ["class", "columns", "data-source"])]),
286
279
  _: 3
287
280
  }, 16, ["name", "label"]));
288
281
  }
289
282
  });
290
283
  export {
291
- we as default
284
+ Ce as default
292
285
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as $, useSlots as q, ref as v, watch as x, unref as u, createBlock as J, openBlock as Q, withCtx as h, createVNode as b, mergeProps as X, createSlots as Y, renderList as Z, renderSlot as M, normalizeProps as ee, guardReactiveProps as te } from "vue";
2
- import { ApForm as y } from "../../ap-form/index.mjs";
3
- import { isEqual as ae, isArray as g, isUndefined as oe, isNumber as C, cloneDeep as le, omit as ne } from "lodash-unified";
1
+ import { defineComponent as W, useSlots as G, ref as g, watch as C, unref as r, createBlock as U, openBlock as $, withCtx as p, createVNode as w, mergeProps as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
2
+ import { ApForm as m } from "../../ap-form/index.mjs";
3
+ import { isEqual as M, isArray as c, isUndefined as ee, isNumber as h, cloneDeep as te, omit as ae } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../hooks/index.mjs";
6
- import { isDef as R } from "../../utils/index.mjs";
7
- import { useGetEditableColumns as se } from "../hooks/use-editable-columns.mjs";
6
+ import { isDef as v } from "../../utils/index.mjs";
7
+ import { useGetEditableColumns as oe } from "../hooks/use-editable-columns.mjs";
8
8
  import "../index.vue2.mjs";
9
- import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useControllableValue as ue } from "../../hooks/useControllableValue.mjs";
11
- import { useGlobalConfig as ie } from "../../config-provider/hooks/use-global-config.mjs";
12
- import fe from "../index.vue.mjs";
13
- const Re = /* @__PURE__ */ $({
9
+ import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { useControllableValue as ne } from "../../hooks/useControllableValue.mjs";
11
+ import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
12
+ import re from "../index.vue.mjs";
13
+ const ve = /* @__PURE__ */ W({
14
14
  name: "EditableGrid",
15
15
  __name: "index",
16
16
  props: {
@@ -162,159 +162,145 @@ const Re = /* @__PURE__ */ $({
162
162
  onFieldChange: {}
163
163
  },
164
164
  emits: ["update:value"],
165
- setup(B, {
166
- expose: F,
167
- emit: S
165
+ setup(x, {
166
+ expose: b,
167
+ emit: R
168
168
  }) {
169
- const N = q(), o = B, {
170
- b: V
171
- } = re("editable-grid"), _ = S, w = v(), {
172
- value: m,
173
- updateValue: L
174
- } = ue(o, _), i = v(), k = ie("valueTypeMap"), c = y.useWatch(o.name, i);
175
- x(() => c.value, (e) => {
176
- var t;
177
- L(e), (t = o.onChange) == null || t.call(o, e);
169
+ const B = G(), t = x, {
170
+ b: F
171
+ } = le("editable-grid"), S = R, y = g(), {
172
+ value: i,
173
+ updateValue: N
174
+ } = ne(t, S), u = g(), V = se("valueTypeMap"), d = m.useWatch(t.name, u);
175
+ C(() => d.value, (e) => {
176
+ N(e), t.onChange?.(e);
178
177
  }, {
179
178
  deep: !0,
180
179
  flush: "post"
181
- }), x(m, (e) => {
182
- var t;
183
- e !== u(c) && (ae(e, u(c)) || (t = i.value) == null || t.setFieldValue(o.name, e));
180
+ }), C(i, (e) => {
181
+ e !== r(d) && (M(e, r(d)) || u.value?.setFieldValue(t.name, e));
184
182
  }, {
185
183
  deep: !0
186
184
  });
187
- const D = se(o, k);
188
- function E() {
189
- var e;
190
- (e = i.value) == null || e.resetFields();
185
+ const _ = oe(t, V);
186
+ function L() {
187
+ u.value?.resetFields();
191
188
  }
192
- function T(e) {
193
- return e ? (g(e) ? e : [e]).map((a) => g(a) ? [o.name, ...a] : [o.name, a]) : void 0;
189
+ function k(e) {
190
+ return e ? (c(e) ? e : [e]).map((n) => c(n) ? [t.name, ...n] : [t.name, n]) : void 0;
194
191
  }
195
- async function j(e, t) {
196
- var l;
197
- const a = await ((l = i.value) == null ? void 0 : l.validateFields(T(e), t));
198
- return a == null ? void 0 : a[o.name];
192
+ async function D(e, l) {
193
+ return (await u.value?.validateFields(k(e), l))?.[t.name];
199
194
  }
200
- function O(e, t) {
201
- var s, n, r;
202
- const a = ((s = u(m)) == null ? void 0 : s.length) || 0;
203
- if (R(o.maxLength) && a >= o.maxLength)
195
+ function E(e, l) {
196
+ const n = r(i)?.length || 0;
197
+ if (v(t.maxLength) && n >= t.maxLength)
204
198
  return;
205
- const l = {
199
+ const a = {
206
200
  ...e || {}
207
201
  };
208
- (r = (n = i.value) == null ? void 0 : n.setFieldValue) == null || r.call(n, o.name, l, !0, (d, f) => {
209
- if (!d[f]) {
210
- d[f] = [l];
202
+ u.value?.setFieldValue?.(t.name, a, !0, (o, s) => {
203
+ if (!o[s]) {
204
+ o[s] = [a];
211
205
  return;
212
206
  }
213
- oe(t) ? d[f].push(l) : d[f].splice(t, 0, l);
207
+ ee(l) ? o[s].push(a) : o[s].splice(l, 0, a);
214
208
  });
215
209
  }
216
- function z(e, t = "suffix") {
217
- var n, r, d;
218
- const a = ((n = u(m)) == null ? void 0 : n.length) || 0, l = C(e) ? e : e.length;
219
- if (R(o.maxLength) && a + l > o.maxLength)
210
+ function T(e, l = "suffix") {
211
+ const n = r(i)?.length || 0, a = h(e) ? e : e.length;
212
+ if (v(t.maxLength) && n + a > t.maxLength)
220
213
  return;
221
- const s = C(e) ? new Array(e).fill(0).map(() => ({})) : le(e);
222
- (d = (r = i.value) == null ? void 0 : r.setFieldValue) == null || d.call(r, o.name, s, !0, (f, p) => {
223
- if (!f[p]) {
224
- f[p] = [...s];
214
+ const o = h(e) ? new Array(e).fill(0).map(() => ({})) : te(e);
215
+ u.value?.setFieldValue?.(t.name, o, !0, (s, f) => {
216
+ if (!s[f]) {
217
+ s[f] = [...o];
225
218
  return;
226
219
  }
227
- t === "suffix" ? f[p].push(...s) : f[p].unshift(...s);
220
+ l === "suffix" ? s[f].push(...o) : s[f].unshift(...o);
228
221
  });
229
222
  }
230
- function A(e) {
231
- var a, l;
232
- const t = new Set(C(e) ? [e] : e);
233
- (l = (a = i.value) == null ? void 0 : a.setFieldValue) == null || l.call(a, o.name, void 0, !0, (s, n) => {
234
- s[n] = s[n].filter((r, d) => !t.has(d));
223
+ function j(e) {
224
+ const l = new Set(h(e) ? [e] : e);
225
+ u.value?.setFieldValue?.(t.name, void 0, !0, (n, a) => {
226
+ n[a] = n[a].filter((o, s) => !l.has(s));
235
227
  });
236
228
  }
237
- function K(e) {
238
- var a, l;
239
- const t = new Set(g(e) ? e : [e]);
240
- t.size !== 0 && ((l = (a = i.value) == null ? void 0 : a.setFieldValue) == null || l.call(a, o.name, void 0, !0, (s, n) => {
241
- s[n] = s[n].filter((r) => !t.has(r[o.rowKey]));
242
- }));
229
+ function O(e) {
230
+ const l = new Set(c(e) ? e : [e]);
231
+ l.size !== 0 && u.value?.setFieldValue?.(t.name, void 0, !0, (n, a) => {
232
+ n[a] = n[a].filter((o) => !l.has(o[t.rowKey]));
233
+ });
243
234
  }
244
- function H() {
245
- return u(m);
235
+ function z() {
236
+ return r(i);
246
237
  }
247
- function I(e) {
248
- var t;
249
- (t = i.value) == null || t.setFieldValue(o.name, e);
238
+ function A(e) {
239
+ u.value?.setFieldValue(t.name, e);
250
240
  }
251
- function P(e) {
252
- var t;
253
- return (t = u(m)) == null ? void 0 : t[e];
241
+ function K(e) {
242
+ return r(i)?.[e];
254
243
  }
255
- function W(e, t, a = !0) {
256
- var l, s;
257
- (s = (l = i.value) == null ? void 0 : l.setFieldValue) == null || s.call(l, o.name, void 0, !0, (n, r) => {
258
- if (!(!n[r] || !n[r][e])) {
259
- if (!a) {
260
- const d = Object.keys(n[r][e]);
261
- for (const f of d)
262
- f !== o.rowKey && delete n[r][e][f];
244
+ function H(e, l, n = !0) {
245
+ u.value?.setFieldValue?.(t.name, void 0, !0, (a, o) => {
246
+ if (!(!a[o] || !a[o][e])) {
247
+ if (!n) {
248
+ const s = Object.keys(a[o][e]);
249
+ for (const f of s)
250
+ f !== t.rowKey && delete a[o][e][f];
263
251
  }
264
- Object.assign(n[r][e], {
265
- ...t
252
+ Object.assign(a[o][e], {
253
+ ...l
266
254
  });
267
255
  }
268
256
  });
269
257
  }
270
- function G(e) {
271
- var a;
272
- const t = e === "end" ? m.value.length - 1 : e;
273
- (a = w.value) == null || a.scrollToRow(t);
258
+ function I(e) {
259
+ const l = e === "end" ? i.value.length - 1 : e;
260
+ y.value?.scrollToRow(l);
274
261
  }
275
- function U() {
276
- var e, t;
277
- (t = (e = i.value) == null ? void 0 : e.setFieldValue) == null || t.call(e, o.name, []);
262
+ function P() {
263
+ u.value?.setFieldValue?.(t.name, []);
278
264
  }
279
- return F({
280
- resetFields: E,
281
- validateFields: j,
282
- add: O,
283
- remove: A,
284
- getRowData: P,
285
- getRowsData: H,
286
- setRowData: W,
287
- addMultiple: z,
288
- scrollTo: G,
289
- clear: U,
290
- setTableData: I,
291
- removeByKey: K
292
- }), (e, t) => (Q(), J(u(y), {
265
+ return b({
266
+ resetFields: L,
267
+ validateFields: D,
268
+ add: E,
269
+ remove: j,
270
+ getRowData: K,
271
+ getRowsData: z,
272
+ setRowData: H,
273
+ addMultiple: T,
274
+ scrollTo: I,
275
+ clear: P,
276
+ setTableData: A,
277
+ removeByKey: O
278
+ }), (e, l) => ($(), U(r(m), {
293
279
  ref_key: "formRef",
294
- ref: i,
280
+ ref: u,
295
281
  "initial-values": {
296
- [o.name]: u(m)
282
+ [t.name]: r(i)
297
283
  },
298
284
  style: {
299
285
  height: "100%"
300
286
  }
301
287
  }, {
302
- default: h(() => [b(u(y).FormItem, {
288
+ default: p(() => [w(r(m).FormItem, {
303
289
  name: e.name,
304
290
  "no-style": ""
305
291
  }, {
306
- default: h(() => [b(fe, X(u(ne)(o, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
292
+ default: p(() => [w(re, q(r(ae)(t, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
307
293
  ref_key: "tableRef",
308
- ref: w,
309
- class: u(V)(),
310
- columns: u(D),
311
- "data-source": u(m),
294
+ ref: y,
295
+ class: r(F)(),
296
+ columns: r(_),
297
+ "data-source": r(i),
312
298
  "search-form": !1
313
- }), Y({
299
+ }), J({
314
300
  _: 2
315
- }, [Z(N, (a, l) => ({
316
- name: l,
317
- fn: h((s) => [M(e.$slots, l, ee(te(s || {})))])
301
+ }, [Q(B, (n, a) => ({
302
+ name: a,
303
+ fn: p((o) => [X(e.$slots, a, Y(Z(o || {})))])
318
304
  }))]), 1040, ["class", "columns", "data-source"])]),
319
305
  _: 3
320
306
  }, 8, ["name"])]),
@@ -323,5 +309,5 @@ const Re = /* @__PURE__ */ $({
323
309
  }
324
310
  });
325
311
  export {
326
- Re as default
312
+ ve as default
327
313
  };