@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,5 +1,5 @@
1
- import { defineComponent as h, ref as y, toRef as w, createBlock as u, openBlock as s, unref as e, withCtx as o, createVNode as t, normalizeClass as a, withDirectives as x, createElementVNode as f, toDisplayString as g, vShow as R, createElementBlock as S, Fragment as D, renderList as L, resolveDynamicComponent as N, createTextVNode as b } from "vue";
2
- import { Popover as P, Tooltip as T, Button as d, Row as V, Col as z, Divider as A, Flex as E } from "@aplus-frontend/antdv";
1
+ import { defineComponent as h, ref as y, toRef as w, createBlock as u, openBlock as s, unref as e, withCtx as o, createVNode as t, normalizeClass as a, withDirectives as x, createElementVNode as f, toDisplayString as d, vShow as R, createElementBlock as S, Fragment as D, renderList as L, resolveDynamicComponent as N, createTextVNode as b } from "vue";
2
+ import { Popover as P, Tooltip as T, Button as g, Row as V, Col as z, Divider as A, Flex as E } from "@aplus-frontend/antdv";
3
3
  import { IconApFilterOutlined as I } from "@aplus-frontend/icon";
4
4
  import "../../../config-provider/index.mjs";
5
5
  import { useCollapseInputCount as j } from "../hooks/use-collapse-input-count.mjs";
@@ -16,7 +16,7 @@ const Q = /* @__PURE__ */ h({
16
16
  setup(k) {
17
17
  const C = k, F = y(), { e: i, b: c } = O("ap-form-search-form"), { t: m } = U(), p = y(!1), B = w(() => C.config), { count: v } = j(B);
18
18
  function _(r) {
19
- return (r == null ? void 0 : r.closest(".ant-form")) || document.body;
19
+ return r?.closest(".ant-form") || document.body;
20
20
  }
21
21
  return (r, l) => (s(), u(e(P), {
22
22
  open: p.value,
@@ -55,22 +55,22 @@ const Q = /* @__PURE__ */ h({
55
55
  }, [
56
56
  t(e(E), { justify: "end" }, {
57
57
  default: o(() => [
58
- t(e(d), {
58
+ t(e(g), {
59
59
  onClick: l[0] || (l[0] = (n) => p.value = !1)
60
60
  }, {
61
61
  default: o(() => [
62
- b(g(e(m)("ap.common.cancelText")), 1)
62
+ b(d(e(m)("ap.common.cancelText")), 1)
63
63
  ]),
64
64
  _: 1
65
65
  }),
66
- t(e(d), {
66
+ t(e(g), {
67
67
  class: a(e(i)("popover-footer-confirm-btn")),
68
68
  type: "primary",
69
69
  loading: r.submitLoading,
70
70
  onClick: r.onSubmit
71
71
  }, {
72
72
  default: o(() => [
73
- b(g(e(m)("ap.apForm.search.search")), 1)
73
+ b(d(e(m)("ap.apForm.search.search")), 1)
74
74
  ]),
75
75
  _: 1
76
76
  }, 8, ["class", "loading", "onClick"])
@@ -85,7 +85,7 @@ const Q = /* @__PURE__ */ h({
85
85
  placement: "top"
86
86
  }, {
87
87
  default: o(() => [
88
- t(e(d), {
88
+ t(e(g), {
89
89
  ref_key: "triggerBtnRef",
90
90
  ref: F,
91
91
  class: a([e(c)("trigger-btn"), { [e(c)("trigger-btn-active")]: p.value }])
@@ -93,7 +93,7 @@ const Q = /* @__PURE__ */ h({
93
93
  icon: o(() => [
94
94
  x(f("sup", {
95
95
  class: a(e(c)("trigger-btn-badge"))
96
- }, g(e(v)), 3), [
96
+ }, d(e(v)), 3), [
97
97
  [R, e(v) !== 0]
98
98
  ]),
99
99
  t(e(I), { size: 14 })
@@ -1,45 +1,44 @@
1
- import { computed as a } from "vue";
2
- import { useInjectForm as d } from "../../context.mjs";
3
- import { isArray as F, isObject as g, isFunction as h } from "lodash-unified";
1
+ import { computed as p } from "vue";
2
+ import { useInjectForm as a } from "../../context.mjs";
3
+ import { isArray as d, isObject as F, isFunction as g } from "lodash-unified";
4
4
  import "../../../config-provider/index.mjs";
5
- import { getModelValue as y } from "../../utils/get.mjs";
6
- import { useGlobalConfig as C } from "../../../config-provider/hooks/use-global-config.mjs";
7
- function s(t) {
5
+ import { getModelValue as h } from "../../utils/get.mjs";
6
+ import { useGlobalConfig as y } from "../../../config-provider/hooks/use-global-config.mjs";
7
+ function i(t) {
8
8
  if (t == null)
9
9
  return !1;
10
10
  if (typeof t == "string")
11
11
  return t.trim() !== "";
12
- if (F(t))
13
- return t.some((e) => s(e));
14
- if (g(t)) {
12
+ if (d(t))
13
+ return t.some((e) => i(e));
14
+ if (F(t)) {
15
15
  const o = Object.keys(t);
16
16
  if (o.length === 0)
17
17
  return !1;
18
18
  for (const e of o)
19
- if (s(t[e]))
19
+ if (i(t[e]))
20
20
  return !0;
21
21
  return !1;
22
22
  }
23
23
  return !0;
24
24
  }
25
- function b(t) {
26
- return h(t.type) ? t.type() : t;
25
+ function C(t) {
26
+ return g(t.type) ? t.type() : t;
27
27
  }
28
- const E = (t) => {
29
- const { model: o } = d(), e = C("searchForm");
28
+ const x = (t) => {
29
+ const { model: o } = a(), e = y("searchForm");
30
30
  return {
31
- count: a(() => {
32
- let i = 0;
33
- return t.value.forEach((m) => {
34
- var f;
35
- const r = b(m.node), p = [r.props.name].flat(1), l = y(o == null ? void 0 : o.value, p), c = r.props.customFilled || r.props["custom-filled"], n = (f = e.value) == null ? void 0 : f.customFilled;
36
- !c && n ? n != null && n(r, l) && (i += 1) : (c || s)(l) && (i += 1);
37
- }), i;
31
+ count: p(() => {
32
+ let n = 0;
33
+ return t.value.forEach((u) => {
34
+ const r = C(u.node), m = [r.props.name].flat(1), l = h(o?.value, m), s = r.props.customFilled || r.props["custom-filled"], c = e.value?.customFilled;
35
+ !s && c ? c?.(r, l) && (n += 1) : (s || i)(l) && (n += 1);
36
+ }), n;
38
37
  })
39
38
  };
40
39
  };
41
40
  export {
42
- s as defaultFilled,
43
- b as getTargetNode,
44
- E as useCollapseInputCount
41
+ i as defaultFilled,
42
+ C as getTargetNode,
43
+ x as useCollapseInputCount
45
44
  };
@@ -1,39 +1,38 @@
1
- import { isBoolean as f } from "lodash-unified";
2
- import { ref as c, computed as u } from "vue";
3
- import { getStringName as m } from "../../item-group/helper.mjs";
4
- import { isDef as l } from "../../../utils/index.mjs";
5
- import { getTargetNode as p } from "./use-collapse-input-count.mjs";
6
- function g(n, r) {
7
- var d;
8
- const i = new Set(n.map((e) => e.name)), a = /* @__PURE__ */ new Map();
9
- for (const e of r) {
10
- const t = String(m((d = p(e).props) == null ? void 0 : d.name));
11
- t && i.has(t) && a.set(t, e);
1
+ import { isBoolean as p } from "lodash-unified";
2
+ import { ref as f, computed as c } from "vue";
3
+ import { getStringName as d } from "../../item-group/helper.mjs";
4
+ import { isDef as u } from "../../../utils/index.mjs";
5
+ import { getTargetNode as m } from "./use-collapse-input-count.mjs";
6
+ function l(n, r) {
7
+ const i = new Set(n.map((o) => o.name)), a = /* @__PURE__ */ new Map();
8
+ for (const o of r) {
9
+ const e = String(d(m(o).props?.name));
10
+ e && i.has(e) && a.set(e, o);
12
11
  }
13
- const s = /* @__PURE__ */ new Set(), o = [];
14
- for (const e of n) {
15
- const t = a.get(e.name);
16
- t && (o.push(t), s.add(t));
12
+ const s = /* @__PURE__ */ new Set(), t = [];
13
+ for (const o of n) {
14
+ const e = a.get(o.name);
15
+ e && (t.push(e), s.add(e));
17
16
  }
18
- for (const e of r)
19
- s.has(e) || o.push(e);
20
- return o;
17
+ for (const o of r)
18
+ s.has(o) || t.push(o);
19
+ return t;
21
20
  }
22
- const C = (n) => {
23
- const r = c(!1), i = u(() => (n.value || []).map((o) => {
24
- const e = p(o).props;
21
+ const w = (n) => {
22
+ const r = f(!1), i = c(() => (n.value || []).map((t) => {
23
+ const e = m(t).props;
25
24
  return {
26
25
  label: e.description || e.label || e.placeholder,
27
- name: m(e.name),
28
- isHidden: f(e.hidden) ? !!e.hidden : l(e.hidden)
26
+ name: d(e.name),
27
+ isHidden: p(e.hidden) ? !!e.hidden : u(e.hidden)
29
28
  };
30
29
  }));
31
30
  function a(s) {
32
- const o = g(
31
+ const t = l(
33
32
  s || [],
34
33
  n.value || []
35
34
  );
36
- r.value = !0, n.value = o;
35
+ r.value = !0, n.value = t;
37
36
  }
38
37
  return {
39
38
  items: i,
@@ -42,5 +41,5 @@ const C = (n) => {
42
41
  };
43
42
  };
44
43
  export {
45
- C as useSorter
44
+ w as useSorter
46
45
  };
@@ -1,6 +1,5 @@
1
1
  import { ApFormExpose, ApFormSearchFormProps } from '../interface';
2
2
  import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
3
- import { SizeType, ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
4
3
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
5
4
  import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
6
5
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
@@ -8,6 +7,7 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
8
7
  import { Options } from '../../../node_modules/scroll-into-view-if-needed';
9
8
  import { Recordable } from '../../type';
10
9
  import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
10
+ import { ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
11
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
12
12
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSearchFormPopoverSorterItem } from '..';
13
13
  import { OnCleanup } from '@vue/reactivity';
@@ -25,7 +25,7 @@ declare function __VLS_template(): {
25
25
  $: ComponentInternalInstance;
26
26
  $data: {};
27
27
  $props: {
28
- readonly size?: SizeType;
28
+ readonly size?: "small" | "large" | "middle" | undefined;
29
29
  readonly onSubmit?: ((e: Event) => void) | undefined;
30
30
  readonly layout?: string | undefined;
31
31
  readonly disabled?: boolean | undefined;
@@ -864,7 +864,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
864
864
  $: ComponentInternalInstance;
865
865
  $data: {};
866
866
  $props: {
867
- readonly size?: SizeType;
867
+ readonly size?: "small" | "large" | "middle" | undefined;
868
868
  readonly onSubmit?: ((e: Event) => void) | undefined;
869
869
  readonly layout?: string | undefined;
870
870
  readonly disabled?: boolean | undefined;
@@ -1,28 +1,28 @@
1
- import { isVNode as se, defineComponent as ie, useSlots as ue, ref as D, shallowRef as U, computed as _, unref as n, watch as z, createVNode as o, Fragment as w, createBlock as g, openBlock as d, mergeProps as ce, withCtx as B, resolveDynamicComponent as I, createElementBlock as pe, renderList as de, normalizeStyle as fe } from "vue";
2
- import { Col as R, Flex as k, Button as M, Row as me } from "@aplus-frontend/antdv";
1
+ import { isVNode as re, defineComponent as se, useSlots as ie, ref as V, shallowRef as D, computed as _, unref as a, watch as U, createVNode as o, Fragment as w, createBlock as y, openBlock as p, mergeProps as ue, withCtx as B, resolveDynamicComponent as I, createElementBlock as ce, renderList as pe, normalizeStyle as de } from "vue";
2
+ import { Col as R, Flex as k, Button as z, Row as fe } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../item/index.vue2.mjs";
5
- import { genRealChildren as q } from "../item-group/helper.mjs";
5
+ import { genRealChildren as M } from "../item-group/helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { isArray as he, isBoolean as xe, omit as ye } from "lodash-unified";
8
- import { isDef as H } from "../../utils/index.mjs";
9
- import { execFunc as G, diffFormItem as ge } from "./utils.mjs";
7
+ import { isArray as me, isBoolean as he, omit as xe } from "lodash-unified";
8
+ import { isDef as q } from "../../utils/index.mjs";
9
+ import { execFunc as H, diffFormItem as ye } from "./utils.mjs";
10
10
  import "./components/popover-filter.vue.mjs";
11
- import { useCountPerRow as ve } from "./hooks/use-count-per-row.mjs";
11
+ import { useCountPerRow as ge } from "./hooks/use-count-per-row.mjs";
12
12
  import "./components/popover-sorter/index.vue.mjs";
13
- import { useSorter as Ce } from "./hooks/use-sorter.mjs";
14
- import { getTargetNode as Se } from "./hooks/use-collapse-input-count.mjs";
15
- import { floorWith as J } from "@fruits-chain/utils";
16
- import { useNamespace as _e } from "../../config-provider/hooks/use-namespace.mjs";
17
- import { useLocale as we } from "../../config-provider/hooks/use-locale.mjs";
18
- import K from "../item/index.vue.mjs";
19
- import Re from "./components/popover-filter.vue2.mjs";
20
- import be from "./components/popover-sorter/index.vue2.mjs";
21
- import Fe from "../ap-form.vue2.mjs";
22
- function Ne(f) {
23
- return typeof f == "function" || Object.prototype.toString.call(f) === "[object Object]" && !se(f);
13
+ import { useSorter as ve } from "./hooks/use-sorter.mjs";
14
+ import { getTargetNode as Ce } from "./hooks/use-collapse-input-count.mjs";
15
+ import { floorWith as G } from "@fruits-chain/utils";
16
+ import { useNamespace as Se } from "../../config-provider/hooks/use-namespace.mjs";
17
+ import { useLocale as _e } from "../../config-provider/hooks/use-locale.mjs";
18
+ import J from "../item/index.vue.mjs";
19
+ import we from "./components/popover-filter.vue2.mjs";
20
+ import Re from "./components/popover-sorter/index.vue2.mjs";
21
+ import be from "../ap-form.vue2.mjs";
22
+ function Fe(d) {
23
+ return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !re(d);
24
24
  }
25
- const s = 100, Xe = /* @__PURE__ */ ie({
25
+ const r = 100, Qe = /* @__PURE__ */ se({
26
26
  name: "ApFormSearchForm",
27
27
  __name: "index",
28
28
  props: {
@@ -117,158 +117,151 @@ const s = 100, Xe = /* @__PURE__ */ ie({
117
117
  default: 300
118
118
  }
119
119
  },
120
- setup(f, {
121
- expose: Q
120
+ setup(d, {
121
+ expose: K
122
122
  }) {
123
- var W;
124
- const i = ue(), t = f, {
125
- b: m
126
- } = _e("ap-form-search-form"), {
123
+ const g = ie(), t = d, {
124
+ b: f
125
+ } = Se("ap-form-search-form"), {
127
126
  t: T
128
- } = we(), X = ve(t), v = D(), Y = D();
127
+ } = _e(), Q = ge(t), v = V(), X = V();
129
128
  function P() {
130
- var a;
131
- const e = (a = v.value) == null ? void 0 : a.getFieldsValueTransformed(!0);
132
- G(t.onSubmit, e);
129
+ const e = v.value?.getFieldsValueTransformed(!0);
130
+ H(t.onSubmit, e);
133
131
  }
134
- function Z() {
135
- var e, a;
136
- t.customReset || (a = (e = v.value) == null ? void 0 : e.resetFields) == null || a.call(e), G(t.onReset);
132
+ function Y() {
133
+ t.customReset || v.value?.resetFields?.(), H(t.onReset);
137
134
  }
138
- const ee = (e) => H(e) ? (he(e) ? e : [e]).join("") : Date.now();
135
+ const Z = (e) => q(e) ? (me(e) ? e : [e]).join("") : Date.now();
139
136
  let E = [];
140
- const h = U(q(i.default())), p = U((W = i.extra) == null ? void 0 : W.call(i)), O = _(() => J(s / n(X), 4)), {
137
+ const m = D(M(g.default())), u = D(g.extra?.()), O = _(() => G(r / a(Q), 4)), {
141
138
  items: b,
142
139
  sorted: L,
143
140
  handleClickConfirm: F
144
- } = Ce(h);
145
- z(() => i.default(), (e) => {
146
- E = h.value, h.value = ge(E, q(e)), L.value = !1;
147
- }), z(() => {
148
- var e;
149
- return (e = i.extra) == null ? void 0 : e.call(i);
150
- }, (e) => {
151
- p.value = e;
141
+ } = ve(m);
142
+ U(() => g.default(), (e) => {
143
+ E = m.value, m.value = ye(E, M(e)), L.value = !1;
144
+ }), U(() => g.extra?.(), (e) => {
145
+ u.value = e;
152
146
  });
153
- function te(e) {
154
- return J(e * (s / 24), 4);
147
+ function ee(e) {
148
+ return G(e * (r / 24), 4);
155
149
  }
156
- const l = _(() => {
157
- const e = h.value, a = [], r = [], y = [], u = n(O);
150
+ const n = _(() => {
151
+ const e = m.value, c = [], l = [], x = [], s = a(O);
158
152
  let C = 0, N = 0;
159
- const ne = s * t.maxRows - u * (n(p) && !t.extraInAction ? 2 : 1);
153
+ const ae = r * t.maxRows - s * (a(u) && !t.extraInAction ? 2 : 1);
160
154
  e.forEach((A) => {
161
- const c = Se(A).props;
162
- if (xe(c.hidden) ? !!c.hidden : H(c.hidden))
163
- a.push(A);
155
+ const i = Ce(A).props;
156
+ if (he(i.hidden) ? !!i.hidden : q(i.hidden))
157
+ c.push(A);
164
158
  else {
165
- let S = c.span ? te(c.span) : u;
166
- const j = {
159
+ let S = i.span ? ee(i.span) : s;
160
+ const $ = {
167
161
  node: A,
168
162
  span: S,
169
- key: `ApFormSearchFormItem-${ee(c.name)}-${c._signal}`
170
- }, V = s - C % s;
171
- V < S && (S += V), C += S, C > ne ? r.push(j) : (N = C, y.push(j));
163
+ key: `ApFormSearchFormItem-${Z(i.name)}-${i._signal}`
164
+ }, j = r - C % r;
165
+ j < S && (S += j), C += S, C > ae ? l.push($) : (N = C, x.push($));
172
166
  }
173
167
  });
174
- const $ = s - (N + u) % s, le = Math.ceil(N) % s < u, re = $ < u ? s : $;
168
+ const W = r - (N + s) % r, ne = Math.ceil(N) % r < s, le = W < s ? r : W;
175
169
  return {
176
- hideNode: o(w, null, [a]),
177
- nodes: y,
178
- collapseNodes: r,
179
- extraSpan: re,
180
- lastRowOnlyIncludeActionAndExtra: le
170
+ hideNode: o(w, null, [c]),
171
+ nodes: x,
172
+ collapseNodes: l,
173
+ extraSpan: le,
174
+ lastRowOnlyIncludeActionAndExtra: ne
181
175
  };
182
- }), x = (e) => `${e}%`, oe = _(() => {
176
+ }), h = (e) => `${e}%`, te = _(() => {
183
177
  let e;
184
- const a = l.value.collapseNodes.length || t.sortable && h.value.length, r = o(R, {
185
- flex: x(n(O)),
178
+ const c = n.value.collapseNodes.length || t.sortable && m.value.length, l = o(R, {
179
+ flex: h(a(O)),
186
180
  key: "actionWrapper"
187
181
  }, {
188
- default: () => [o(K, null, {
182
+ default: () => [o(J, null, {
189
183
  default: () => [o(k, {
190
184
  wrap: "wrap",
191
- justify: l.value.lastRowOnlyIncludeActionAndExtra && !(n(p) && t.extraInAction) ? "flex-end" : "space-between"
185
+ justify: n.value.lastRowOnlyIncludeActionAndExtra && !(a(u) && t.extraInAction) ? "flex-end" : "space-between"
192
186
  }, {
193
187
  default: () => [o(k, {
194
188
  gap: 8,
195
189
  wrap: "wrap"
196
190
  }, {
197
- default: () => [a ? o("div", {
198
- class: m("column-setting-trigger-wrapper")
199
- }, [l.value.collapseNodes.length ? o(Re, {
191
+ default: () => [c ? o("div", {
192
+ class: f("column-setting-trigger-wrapper")
193
+ }, [n.value.collapseNodes.length ? o(we, {
200
194
  onSubmit: P,
201
- config: l.value.collapseNodes,
195
+ config: n.value.collapseNodes,
202
196
  submitLoading: t.submitLoading
203
- }, null) : null, t.sortable && b.value.length ? o(be, {
197
+ }, null) : null, t.sortable && b.value.length ? o(Re, {
204
198
  ref: "sorterIns",
205
199
  items: b.value,
206
200
  onClickConfirm: F,
207
201
  sorted: L.value
208
- }, null) : null]) : null, o(M, {
202
+ }, null) : null]) : null, o(z, {
209
203
  type: "primary",
210
204
  onClick: P,
211
205
  loading: t.submitLoading ? {
212
206
  delay: t.loadingDelay
213
207
  } : !1,
214
208
  htmlType: "submit",
215
- class: m("action-btn")
209
+ class: f("action-btn")
216
210
  }, {
217
211
  default: () => [t.searchText || T("ap.apForm.search.search")]
218
- }), o(M, {
219
- onClick: Z,
212
+ }), o(z, {
213
+ onClick: Y,
220
214
  type: "text",
221
- class: [m("action-btn"), m("action-btn-reset")]
215
+ class: [f("action-btn"), f("action-btn-reset")]
222
216
  }, {
223
217
  default: () => [t.resetText || T("ap.apForm.search.reset")]
224
218
  })]
225
- }), t.extraInAction ? n(p) : null]
219
+ }), t.extraInAction ? a(u) : null]
226
220
  })]
227
221
  })]
228
- }), y = !t.extraInAction && n(p) ? o(R, {
229
- flex: x(l.value.extraSpan),
222
+ }), x = !t.extraInAction && a(u) ? o(R, {
223
+ flex: h(n.value.extraSpan),
230
224
  key: "extraNode"
231
225
  }, {
232
- default: () => [o(K, null, {
226
+ default: () => [o(J, null, {
233
227
  default: () => [o(k, {
234
- justify: l.value.extraSpan === s || l.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
235
- }, Ne(e = n(p)) ? e : {
228
+ justify: n.value.extraSpan === r || n.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
229
+ }, Fe(e = a(u)) ? e : {
236
230
  default: () => [e]
237
231
  })]
238
232
  })]
239
- }) : null, u = o(R, {
240
- flex: x(l.value.extraSpan)
233
+ }) : null, s = o(R, {
234
+ flex: h(n.value.extraSpan)
241
235
  }, null);
242
- return l.value.lastRowOnlyIncludeActionAndExtra ? o(w, null, [y || u, r]) : o(w, null, [r, y]);
236
+ return n.value.lastRowOnlyIncludeActionAndExtra ? o(w, null, [x || s, l]) : o(w, null, [l, x]);
243
237
  });
244
- function ae() {
245
- var a;
246
- const e = (a = Y.value) == null ? void 0 : a.getCachedList();
238
+ function oe() {
239
+ const e = X.value?.getCachedList();
247
240
  F(e);
248
241
  }
249
- return Q({
250
- apForm: _(() => n(v)),
242
+ return K({
243
+ apForm: _(() => a(v)),
251
244
  getSorterItems: () => b.value,
252
245
  setSorterItems: F,
253
- resetSorterItems: ae
254
- }), (e, a) => (d(), g(Fe, ce({
246
+ resetSorterItems: oe
247
+ }), (e, c) => (p(), y(be, ue({
255
248
  ref_key: "apForm",
256
249
  ref: v,
257
- class: n(m)()
258
- }, n(ye)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
259
- default: B(() => [(d(), g(I(l.value.hideNode))), o(n(me), {
250
+ class: a(f)()
251
+ }, a(xe)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
252
+ default: B(() => [(p(), y(I(n.value.hideNode))), o(a(fe), {
260
253
  gutter: 8
261
254
  }, {
262
- default: B(() => [(d(!0), pe(w, null, de(l.value.nodes, (r) => (d(), g(n(R), {
263
- key: r.key,
264
- flex: x(r.span),
265
- style: fe({
266
- maxWidth: x(r.span)
255
+ default: B(() => [(p(!0), ce(w, null, pe(n.value.nodes, (l) => (p(), y(a(R), {
256
+ key: l.key,
257
+ flex: h(l.span),
258
+ style: de({
259
+ maxWidth: h(l.span)
267
260
  })
268
261
  }, {
269
- default: B(() => [(d(), g(I(r.node)))]),
262
+ default: B(() => [(p(), y(I(l.node)))]),
270
263
  _: 2
271
- }, 1032, ["flex", "style"]))), 128)), (d(), g(I(oe.value)))]),
264
+ }, 1032, ["flex", "style"]))), 128)), (p(), y(I(te.value)))]),
272
265
  _: 1
273
266
  })]),
274
267
  _: 1
@@ -276,5 +269,5 @@ const s = 100, Xe = /* @__PURE__ */ ie({
276
269
  }
277
270
  });
278
271
  export {
279
- Xe as default
272
+ Qe as default
280
273
  };
@@ -1,13 +1,13 @@
1
1
  import { cloneVNode as l } from "vue";
2
2
  import { isArray as a, isFunction as p } from "lodash-unified";
3
- function M(n, r) {
4
- const t = u(n), e = u(r);
5
- return r.map((o) => {
6
- const i = m(o.props.name), c = e.get(i), s = t.get(i);
7
- if (!t.get(i) || (c == null ? void 0 : c.index) !== (s == null ? void 0 : s.index))
8
- return o;
9
- const g = f(s.item), y = f(c.item);
10
- return JSON.stringify(g) !== JSON.stringify(y) ? o : l(o, { _signal: s.item._signal });
3
+ function x(n, r) {
4
+ const t = u(n), o = u(r);
5
+ return r.map((e) => {
6
+ const i = m(e.props.name), f = o.get(i), s = t.get(i);
7
+ if (!t.get(i) || f?.index !== s?.index)
8
+ return e;
9
+ const g = c(s.item), y = c(f.item);
10
+ return JSON.stringify(g) !== JSON.stringify(y) ? e : l(e, { _signal: s.item._signal });
11
11
  });
12
12
  }
13
13
  function m(n) {
@@ -15,27 +15,27 @@ function m(n) {
15
15
  }
16
16
  function u(n) {
17
17
  const r = /* @__PURE__ */ new Map();
18
- return n.forEach((t, e) => {
19
- const o = t.props, i = m(o.name);
20
- r.set(i, { item: o, index: e });
18
+ return n.forEach((t, o) => {
19
+ const e = t.props, i = m(e.name);
20
+ r.set(i, { item: e, index: o });
21
21
  }), r;
22
22
  }
23
- function f(n) {
23
+ function c(n) {
24
24
  if (n === null || typeof n != "object") return n;
25
25
  const r = {};
26
26
  for (const t in n) {
27
- const e = n[t];
28
- t === "_signal" || typeof e == "function" || (r[t] = f(e));
27
+ const o = n[t];
28
+ t === "_signal" || typeof o == "function" || (r[t] = c(o));
29
29
  }
30
30
  return r;
31
31
  }
32
- function N(n, ...r) {
32
+ function M(n, ...r) {
33
33
  if (a(n))
34
34
  for (const t of n)
35
35
  p(t) && t(...r);
36
36
  else p(n) && n(...r);
37
37
  }
38
38
  export {
39
- M as diffFormItem,
40
- N as execFunc
39
+ x as diffFormItem,
40
+ M as execFunc
41
41
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as p, useSlots as f, cloneVNode as d, onMounted as V, createElementBlock as _, openBlock as l, Fragment as y, renderList as C, createBlock as F, resolveDynamicComponent as k } from "vue";
2
- import { useInjectForm as g } from "../context.mjs";
3
- import { isFunction as h, cloneDeep as w } from "lodash-unified";
4
- import { isPromise as x } from "@fruits-chain/utils";
5
- const v = /* @__PURE__ */ p({
1
+ import { defineComponent as c, useSlots as u, cloneVNode as p, onMounted as f, createElementBlock as d, openBlock as o, Fragment as V, renderList as _, createBlock as y, resolveDynamicComponent as C } from "vue";
2
+ import { useInjectForm as F } from "../context.mjs";
3
+ import { isFunction as k, cloneDeep as g } from "lodash-unified";
4
+ import { isPromise as h } from "@fruits-chain/utils";
5
+ const I = /* @__PURE__ */ c({
6
6
  name: "ApFormSet",
7
7
  __name: "index",
8
8
  props: {
@@ -11,25 +11,21 @@ const v = /* @__PURE__ */ p({
11
11
  initialValue: {},
12
12
  transform: {}
13
13
  },
14
- setup(s) {
15
- const { internalInstance: t } = g(), a = f(), e = s, u = () => {
16
- var o;
17
- return (((o = a.default) == null ? void 0 : o.call(a)) || []).map((r, i) => {
18
- var m;
19
- const c = e.as === "array" ? [e.name, i] : [e.name, ((m = r.props) == null ? void 0 : m.name) || ""];
20
- return d(r, { name: c });
21
- });
22
- };
23
- return V(async () => {
24
- let n = h(e.initialValue) ? e.initialValue() : e.initialValue;
25
- x(n) && (n = await n), t == null || t.registerField({
14
+ setup(i) {
15
+ const { internalInstance: l } = F(), s = u(), e = i, m = () => (s.default?.() || []).map((r, t) => {
16
+ const a = e.as === "array" ? [e.name, t] : [e.name, r.props?.name || ""];
17
+ return p(r, { name: a });
18
+ });
19
+ return f(async () => {
20
+ let n = k(e.initialValue) ? e.initialValue() : e.initialValue;
21
+ h(n) && (n = await n), l?.registerField({
26
22
  name: e.name,
27
- initialValue: w(n),
23
+ initialValue: g(n),
28
24
  transform: e.transform
29
25
  });
30
- }), (n, o) => (l(!0), _(y, null, C(u(), (r, i) => (l(), F(k(r), { key: i }))), 128));
26
+ }), (n, r) => (o(!0), d(V, null, _(m(), (t, a) => (o(), y(C(t), { key: a }))), 128));
31
27
  }
32
28
  });
33
29
  export {
34
- v as default
30
+ I as default
35
31
  };