@aplus-frontend/ui 6.26.2 → 6.26.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +26 -29
  2. package/es/src/ag-grid/hooks/use-columns-def.mjs +69 -72
  3. package/es/src/ag-grid/hooks/use-columns.mjs +11 -13
  4. package/es/src/ag-grid/hooks/use-row-selection.mjs +43 -43
  5. package/es/src/ag-grid/hooks/use-search-form.mjs +33 -36
  6. package/es/src/ag-grid/index.vue.mjs +251 -268
  7. package/es/src/ag-grid/interface.d.ts +4 -0
  8. package/es/src/ag-grid/renderer/checkbox.mjs +4 -5
  9. package/es/src/ag-grid/renderer/date-range.mjs +11 -12
  10. package/es/src/ag-grid/renderer/date.mjs +12 -13
  11. package/es/src/ag-grid/renderer/radio.mjs +9 -10
  12. package/es/src/ag-grid/renderer/select.mjs +10 -17
  13. package/es/src/ag-grid/renderer/tree-select.mjs +8 -10
  14. package/es/src/ap-action/item/index.vue2.mjs +19 -20
  15. package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -24
  16. package/es/src/ap-action/item-modal/index.vue.mjs +15 -16
  17. package/es/src/ap-action/item-popconfirm/index.vue.mjs +17 -18
  18. package/es/src/ap-button/ap-confirm-button.vue.mjs +18 -19
  19. package/es/src/ap-button/utils/index.mjs +27 -28
  20. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +78 -86
  21. package/es/src/ap-descriptions/formatter/index.mjs +60 -61
  22. package/es/src/ap-descriptions/helper.mjs +6 -6
  23. package/es/src/ap-download/ap-download.vue.mjs +42 -46
  24. package/es/src/ap-download/hooks/index.mjs +13 -13
  25. package/es/src/ap-download/utils/getFileInfo.mjs +21 -21
  26. package/es/src/ap-drawer/utils/createDrawer.mjs +43 -52
  27. package/es/src/ap-field/checkbox/index.vue.mjs +31 -34
  28. package/es/src/ap-field/checkbox/read.vue2.mjs +11 -14
  29. package/es/src/ap-field/date/index.vue.mjs +66 -68
  30. package/es/src/ap-field/date-range/index.vue.mjs +99 -107
  31. package/es/src/ap-field/date-range/read.vue2.mjs +28 -32
  32. package/es/src/ap-field/hooks/use-date-timezone.mjs +1 -4
  33. package/es/src/ap-field/hooks/use-default-presets.mjs +18 -24
  34. package/es/src/ap-field/hooks/use-options.mjs +11 -11
  35. package/es/src/ap-field/number/helper.mjs +17 -17
  36. package/es/src/ap-field/number/index.vue.mjs +2 -4
  37. package/es/src/ap-field/radio/index.vue.mjs +38 -42
  38. package/es/src/ap-field/radio/read.vue2.mjs +12 -13
  39. package/es/src/ap-field/rate/index.vue.mjs +23 -25
  40. package/es/src/ap-field/segmented/index.vue.mjs +38 -39
  41. package/es/src/ap-field/select/index.vue.mjs +90 -107
  42. package/es/src/ap-field/select/read.vue2.mjs +13 -20
  43. package/es/src/ap-field/select/use-select-options.mjs +24 -25
  44. package/es/src/ap-field/slider/index.vue.mjs +28 -30
  45. package/es/src/ap-field/switch/index.vue.mjs +38 -39
  46. package/es/src/ap-field/text/index.vue2.mjs +43 -52
  47. package/es/src/ap-field/text/password.vue.mjs +20 -22
  48. package/es/src/ap-field/text-area/index.vue.mjs +25 -31
  49. package/es/src/ap-field/tree-select/index.vue.mjs +61 -65
  50. package/es/src/ap-field/tree-select/read.vue2.mjs +26 -28
  51. package/es/src/ap-field/tree-select/use-request.mjs +40 -41
  52. package/es/src/ap-form/ap-form.vue2.mjs +127 -142
  53. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  54. package/es/src/ap-form/drawer-form/index.vue.mjs +109 -146
  55. package/es/src/ap-form/hooks/use-watch.mjs +25 -26
  56. package/es/src/ap-form/item/index.vue.mjs +76 -81
  57. package/es/src/ap-form/item-group/index.vue.mjs +20 -20
  58. package/es/src/ap-form/items/date/index.vue.mjs +18 -21
  59. package/es/src/ap-form/items/date-range/index.vue.mjs +24 -27
  60. package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
  61. package/es/src/ap-form/items/number/index.vue.mjs +2 -4
  62. package/es/src/ap-form/items/radio/index.vue.mjs +8 -10
  63. package/es/src/ap-form/items/select/index.vue.d.ts +7 -7
  64. package/es/src/ap-form/items/select/index.vue.mjs +30 -36
  65. package/es/src/ap-form/items/text/index.vue2.mjs +20 -27
  66. package/es/src/ap-form/items/text/password.vue.mjs +12 -14
  67. package/es/src/ap-form/items/text-area/index.vue.mjs +18 -23
  68. package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  69. package/es/src/ap-form/items/tree-select/index.vue.mjs +28 -34
  70. package/es/src/ap-form/list/index.vue.mjs +26 -26
  71. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -3
  72. package/es/src/ap-form/modal-form/index.vue.mjs +98 -130
  73. package/es/src/ap-form/provider/index.vue.mjs +24 -24
  74. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +9 -9
  75. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -24
  76. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +25 -26
  77. package/es/src/ap-form/search-form/index.vue.d.ts +3 -3
  78. package/es/src/ap-form/search-form/index.vue.mjs +96 -103
  79. package/es/src/ap-form/search-form/utils.mjs +17 -17
  80. package/es/src/ap-form/set/index.vue.mjs +16 -20
  81. package/es/src/ap-form/utils/get.mjs +11 -11
  82. package/es/src/ap-grid/editable/form-item.vue.mjs +85 -92
  83. package/es/src/ap-grid/editable/index.vue.mjs +102 -116
  84. package/es/src/ap-grid/hooks/use-editable-columns.mjs +40 -43
  85. package/es/src/ap-grid/hooks/use-inner-params.mjs +15 -15
  86. package/es/src/ap-grid/hooks/use-row-selection.mjs +76 -76
  87. package/es/src/ap-grid/index.vue.mjs +309 -334
  88. package/es/src/ap-grid/utils/col.mjs +78 -81
  89. package/es/src/ap-grid/utils/editable.mjs +17 -18
  90. package/es/src/ap-grid/utils/renderer.mjs +7 -11
  91. package/es/src/ap-grid/utils/table.mjs +45 -46
  92. package/es/src/ap-grid/utils/to-tree-array.mjs +9 -10
  93. package/es/src/ap-list/hooks/use-offline-list.mjs +16 -17
  94. package/es/src/ap-list/index.vue.mjs +120 -131
  95. package/es/src/ap-modal/utils/createModal.mjs +60 -67
  96. package/es/src/ap-modal/utils/createModalStream.mjs +65 -73
  97. package/es/src/ap-modal/utils/methods.mjs +17 -22
  98. package/es/src/ap-modal/utils/util.mjs +1 -1
  99. package/es/src/ap-pro-card/components/card/index.vue2.mjs +113 -127
  100. package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
  101. package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +44 -53
  102. package/es/src/ap-table/ap-table.vue2.mjs +270 -303
  103. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
  104. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
  105. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
  106. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
  107. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
  108. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
  109. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
  110. package/es/src/ap-table/components/setting/utils.mjs +44 -46
  111. package/es/src/ap-table/constants.d.ts +6 -6
  112. package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
  113. package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
  114. package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
  115. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
  116. package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
  117. package/es/src/ap-table/utils.mjs +123 -130
  118. package/es/src/ap-upload/apUpload.vue.mjs +43 -46
  119. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
  120. package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
  121. package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
  122. package/es/src/ap-upload/hooks/useOss.mjs +35 -35
  123. package/es/src/ap-upload/utils/accept.mjs +37 -38
  124. package/es/src/ap-upload/utils/returnData.mjs +14 -14
  125. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
  126. package/es/src/business/ap-appendix/utils/index.mjs +13 -13
  127. package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
  128. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
  129. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
  130. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
  131. package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
  132. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
  133. package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
  134. package/es/src/business/ap-copy/ApCopy.mjs +38 -39
  135. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
  136. package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
  137. package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
  138. package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
  139. package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
  140. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
  141. package/es/src/business/ap-keep-alive/hook.mjs +14 -20
  142. package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
  143. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
  144. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
  145. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
  146. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
  147. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
  148. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
  149. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
  150. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
  151. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
  152. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
  153. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
  154. package/es/src/business/ap-keep-alive/utils.mjs +25 -26
  155. package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
  156. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
  157. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
  158. package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
  159. package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
  160. package/es/src/business/ap-summary/utils.mjs +23 -29
  161. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
  162. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
  163. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
  164. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
  165. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
  166. package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
  167. package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
  168. package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
  169. package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
  170. package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
  171. package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
  172. package/es/src/business/ap-value-select-card/utils.mjs +1 -1
  173. package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
  174. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  175. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
  176. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  177. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
  178. package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
  179. package/es/src/business/batch-input-group/index.vue.mjs +113 -127
  180. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
  181. package/es/src/business/hooks/useGridRefresh.mjs +11 -12
  182. package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
  183. package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
  184. package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
  185. package/es/src/business/hooks/usePageListApTable.mjs +27 -32
  186. package/es/src/business/hooks/useTableRefresh.mjs +39 -41
  187. package/es/src/check-card/index.vue2.mjs +51 -56
  188. package/es/src/config-provider/config-provider.mjs +12 -12
  189. package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
  190. package/es/src/config-provider/hooks/use-locale.mjs +17 -17
  191. package/es/src/editable-table/form-item.vue.mjs +82 -88
  192. package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
  193. package/es/src/editable-table/index.vue.mjs +100 -113
  194. package/es/src/editable-table/utils.mjs +88 -95
  195. package/es/src/hooks/useControllableValue.mjs +18 -18
  196. package/es/src/hooks/useResize.mjs +16 -16
  197. package/es/src/mask/index.vue.mjs +11 -11
  198. package/es/src/resize-observer/index.vue.mjs +20 -22
  199. package/es/src/scroll-bar/index.vue.mjs +2 -8
  200. package/es/src/scroll-bar/internal.vue.mjs +59 -65
  201. package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
  202. package/es/src/scroll-view/index.vue.mjs +40 -42
  203. package/es/src/splitter/Splitter.vue2.mjs +48 -52
  204. package/es/src/splitter/hooks/useItems.mjs +14 -15
  205. package/es/src/splitter/hooks/useResize.mjs +31 -34
  206. package/es/src/splitter/hooks/useSizes.mjs +34 -34
  207. package/es/src/text/index.vue.mjs +24 -24
  208. package/es/src/utils/config-provider-preset.mjs +17 -21
  209. package/es/src/utils/copy.mjs +9 -9
  210. package/es/src/utils/index.mjs +43 -43
  211. package/es/src/version.d.ts +1 -1
  212. package/es/src/version.mjs +1 -1
  213. package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
  214. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  215. package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
  216. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  217. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  218. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  219. package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
  220. package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
  221. package/lib/src/ag-grid/index.vue.js +1 -1
  222. package/lib/src/ag-grid/interface.d.ts +4 -0
  223. package/lib/src/ag-grid/renderer/checkbox.js +1 -1
  224. package/lib/src/ag-grid/renderer/date-range.js +1 -1
  225. package/lib/src/ag-grid/renderer/date.js +1 -1
  226. package/lib/src/ag-grid/renderer/radio.js +1 -1
  227. package/lib/src/ag-grid/renderer/select.js +1 -1
  228. package/lib/src/ag-grid/renderer/tree-select.js +1 -1
  229. package/lib/src/ap-action/item/index.vue2.js +1 -1
  230. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  231. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  232. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  233. package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
  234. package/lib/src/ap-button/utils/index.js +1 -1
  235. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  236. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  237. package/lib/src/ap-descriptions/helper.js +1 -1
  238. package/lib/src/ap-download/ap-download.vue.js +1 -1
  239. package/lib/src/ap-download/hooks/index.js +1 -1
  240. package/lib/src/ap-download/utils/getFileInfo.js +1 -1
  241. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  242. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  243. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  244. package/lib/src/ap-field/date/index.vue.js +1 -1
  245. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  246. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  247. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  248. package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
  249. package/lib/src/ap-field/hooks/use-options.js +1 -1
  250. package/lib/src/ap-field/number/helper.js +1 -1
  251. package/lib/src/ap-field/number/index.vue.js +1 -1
  252. package/lib/src/ap-field/radio/index.vue.js +1 -1
  253. package/lib/src/ap-field/radio/read.vue2.js +1 -1
  254. package/lib/src/ap-field/rate/index.vue.js +1 -1
  255. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  256. package/lib/src/ap-field/select/index.vue.js +1 -1
  257. package/lib/src/ap-field/select/read.vue2.js +1 -1
  258. package/lib/src/ap-field/select/use-select-options.js +1 -1
  259. package/lib/src/ap-field/slider/index.vue.js +1 -1
  260. package/lib/src/ap-field/switch/index.vue.js +1 -1
  261. package/lib/src/ap-field/text/index.vue2.js +1 -1
  262. package/lib/src/ap-field/text/password.vue.js +1 -1
  263. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  264. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  265. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  266. package/lib/src/ap-field/tree-select/use-request.js +1 -1
  267. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  268. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  269. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  270. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  271. package/lib/src/ap-form/item/index.vue.js +1 -1
  272. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  273. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  274. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  275. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
  276. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  277. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  278. package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
  279. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  280. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  281. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  282. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  283. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  284. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  285. package/lib/src/ap-form/list/index.vue.js +1 -1
  286. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
  287. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  288. package/lib/src/ap-form/provider/index.vue.js +1 -1
  289. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  290. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
  291. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  292. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
  293. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  294. package/lib/src/ap-form/search-form/utils.js +1 -1
  295. package/lib/src/ap-form/set/index.vue.js +1 -1
  296. package/lib/src/ap-form/utils/get.js +1 -1
  297. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  298. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  299. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  300. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  301. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
  302. package/lib/src/ap-grid/index.vue.js +1 -1
  303. package/lib/src/ap-grid/utils/col.js +1 -1
  304. package/lib/src/ap-grid/utils/editable.js +1 -1
  305. package/lib/src/ap-grid/utils/renderer.js +1 -1
  306. package/lib/src/ap-grid/utils/table.js +1 -1
  307. package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
  308. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  309. package/lib/src/ap-list/index.vue.js +1 -1
  310. package/lib/src/ap-modal/utils/createModal.js +1 -1
  311. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  312. package/lib/src/ap-modal/utils/methods.js +1 -1
  313. package/lib/src/ap-modal/utils/util.js +1 -1
  314. package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
  315. package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
  316. package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
  317. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  318. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  319. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  320. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  321. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  322. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  323. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  324. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  325. package/lib/src/ap-table/components/setting/utils.js +1 -1
  326. package/lib/src/ap-table/constants.d.ts +6 -6
  327. package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
  328. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  329. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  330. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  331. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  332. package/lib/src/ap-table/utils.js +1 -1
  333. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  334. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  335. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  336. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  337. package/lib/src/ap-upload/hooks/useOss.js +1 -1
  338. package/lib/src/ap-upload/utils/accept.js +1 -1
  339. package/lib/src/ap-upload/utils/returnData.js +1 -1
  340. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  341. package/lib/src/business/ap-appendix/utils/index.js +1 -1
  342. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  343. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  344. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  345. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  346. package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
  347. package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
  348. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  349. package/lib/src/business/ap-copy/ApCopy.js +1 -1
  350. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  351. package/lib/src/business/ap-export-group/convertExportField.js +1 -1
  352. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
  353. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  354. package/lib/src/business/ap-image/hooks/useOss.js +1 -1
  355. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  356. package/lib/src/business/ap-keep-alive/hook.js +1 -1
  357. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
  358. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
  359. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
  360. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
  361. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
  362. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
  363. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
  364. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
  365. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
  366. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
  367. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
  368. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
  369. package/lib/src/business/ap-keep-alive/utils.js +1 -1
  370. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  371. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  372. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  373. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  374. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  375. package/lib/src/business/ap-summary/utils.js +1 -1
  376. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  377. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
  378. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  379. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  380. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  381. package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
  382. package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
  383. package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
  384. package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
  385. package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
  386. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  387. package/lib/src/business/ap-value-select-card/utils.js +1 -1
  388. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  389. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  390. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  391. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  392. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  393. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  394. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  395. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  396. package/lib/src/business/hooks/useGridRefresh.js +1 -1
  397. package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
  398. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  399. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  400. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  401. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  402. package/lib/src/check-card/index.vue2.js +1 -1
  403. package/lib/src/config-provider/config-provider.js +1 -1
  404. package/lib/src/config-provider/hooks/use-global-config.js +1 -1
  405. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  406. package/lib/src/editable-table/form-item.vue.js +1 -1
  407. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  408. package/lib/src/editable-table/index.vue.js +1 -1
  409. package/lib/src/editable-table/utils.js +1 -1
  410. package/lib/src/hooks/useControllableValue.js +1 -1
  411. package/lib/src/hooks/useResize.js +1 -1
  412. package/lib/src/mask/index.vue.js +1 -1
  413. package/lib/src/resize-observer/index.vue.js +1 -1
  414. package/lib/src/scroll-bar/index.vue.js +1 -1
  415. package/lib/src/scroll-bar/internal.vue.js +1 -1
  416. package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
  417. package/lib/src/scroll-view/index.vue.js +1 -1
  418. package/lib/src/splitter/Splitter.vue2.js +1 -1
  419. package/lib/src/splitter/hooks/useItems.js +1 -1
  420. package/lib/src/splitter/hooks/useResize.js +1 -1
  421. package/lib/src/splitter/hooks/useSizes.js +1 -1
  422. package/lib/src/text/index.vue.js +1 -1
  423. package/lib/src/utils/config-provider-preset.js +1 -1
  424. package/lib/src/utils/copy.js +1 -1
  425. package/lib/src/utils/index.js +1 -1
  426. package/lib/src/version.d.ts +1 -1
  427. package/lib/src/version.js +1 -1
  428. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  429. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  430. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  431. package/package.json +5 -5
  432. package/theme/ap-draggable-grid/ap-draggable-grid.css +2 -1
  433. package/theme/ap-draggable-grid/ap-draggable-grid.less +2 -1
  434. package/theme/index.css +2 -1
@@ -1,60 +1,57 @@
1
- import { defineComponent as w, computed as f, createElementBlock as C, openBlock as c, normalizeClass as n, unref as e, createBlock as B, createCommentVNode as O, resolveDynamicComponent as _, createVNode as g } from "vue";
1
+ import { defineComponent as w, computed as d, createElementBlock as f, openBlock as s, normalizeClass as r, unref as e, createBlock as B, createCommentVNode as O, resolveDynamicComponent as _, createVNode as C } from "vue";
2
2
  import { useToken as D } from "@aplus-frontend/antdv/es/theme/internal";
3
3
  import { CaretUpOutlined as V, CaretDownOutlined as j } from "@ant-design/icons-vue";
4
4
  import { getTableTitle as z } from "../../../ap-table/utils.mjs";
5
5
  import "../../../config-provider/index.mjs";
6
6
  import { useInjectSorter as A } from "../../context.mjs";
7
- import { useNamespace as S } from "../../../config-provider/hooks/use-namespace.mjs";
7
+ import { useNamespace as g } from "../../../config-provider/hooks/use-namespace.mjs";
8
8
  const K = /* @__PURE__ */ w({
9
9
  __name: "index",
10
10
  props: {
11
11
  params: {}
12
12
  },
13
- setup(v) {
14
- const r = v, { b, e: l } = S("ag-custom-header"), { be: k, bem: I } = S("ap-grid"), [, T] = D(), { sorter: m, setSorter: h } = A(), s = f(() => r.params.column.sorter);
15
- function y(t) {
13
+ setup(S) {
14
+ const o = S, { b: v, e: a } = g("ag-custom-header"), { be: b, bem: k } = g("ap-grid"), [, I] = D(), { sorter: c, setSorter: T } = A(), n = d(() => o.params.column.sorter);
15
+ function h(t) {
16
16
  return t ? t === "asc" ? "desc" : null : "asc";
17
17
  }
18
- const u = f(() => {
19
- var t, o, a;
20
- return (a = (o = (t = r.params) == null ? void 0 : t.column) == null ? void 0 : o.getColId) == null ? void 0 : a.call(o);
21
- });
22
- function x() {
23
- if (!s.value)
18
+ const m = d(() => o.params?.column?.getColId?.());
19
+ function y() {
20
+ if (!n.value)
24
21
  return;
25
- const o = r.params.column.getColId(), a = r.params.column.getSort(), p = y(a), i = r.params.api, N = i.getColumnState().map((d) => ({
26
- ...d,
27
- sort: d.colId === o ? p : null
22
+ const l = o.params.column.getColId(), x = o.params.column.getSort(), u = h(x), p = o.params.api, N = p.getColumnState().map((i) => ({
23
+ ...i,
24
+ sort: i.colId === l ? u : null
28
25
  }));
29
- i.applyColumnState({
26
+ p.applyColumnState({
30
27
  state: N,
31
28
  applyOrder: !0
32
- }), h({ [o]: p });
29
+ }), T({ [l]: u });
33
30
  }
34
- return (t, o) => (c(), C("div", {
35
- class: n([e(b)(), { sortable: s.value }, `align-${t.params.column.align || "left"}`]),
36
- onClick: x
31
+ return (t, l) => (s(), f("div", {
32
+ class: r([e(v)(), { sortable: n.value }, `align-${t.params.column.align || "left"}`]),
33
+ onClick: y
37
34
  }, [
38
- (c(), B(_(
35
+ (s(), B(_(
39
36
  e(z)(
40
37
  t.params.column,
41
38
  [
42
- e(k)("table-header", "title"),
43
- t.params.column.tooltip ? "" : e(I)("table-header", "title", "single")
39
+ e(b)("table-header", "title"),
40
+ t.params.column.tooltip ? "" : e(k)("table-header", "title", "single")
44
41
  ],
45
42
  void 0,
46
- e(T).colorTextTertiary
43
+ e(I).colorTextTertiary
47
44
  )
48
45
  ))),
49
- s.value ? (c(), C("span", {
46
+ n.value ? (s(), f("span", {
50
47
  key: 0,
51
- class: n(e(l)("sort-wrapper"))
48
+ class: r(e(a)("sort-wrapper"))
52
49
  }, [
53
- g(e(V), {
54
- class: n({ [e(l)("sorter-up")]: !0, active: e(m)[u.value] === "asc" })
50
+ C(e(V), {
51
+ class: r({ [e(a)("sorter-up")]: !0, active: e(c)[m.value] === "asc" })
55
52
  }, null, 8, ["class"]),
56
- g(e(j), {
57
- class: n({ [e(l)("sorter-down")]: !0, active: e(m)[u.value] === "desc" })
53
+ C(e(j), {
54
+ class: r({ [e(a)("sorter-down")]: !0, active: e(c)[m.value] === "desc" })
58
55
  }, null, 8, ["class"])
59
56
  ], 2)) : O("", !0)
60
57
  ], 2));
@@ -1,90 +1,87 @@
1
- import { getTableRenderProps as h, objectToString as m } from "../../ap-table/utils.mjs";
2
- import { rendererMap as g } from "../renderer/index.mjs";
3
- import { isFunction as w, isNumber as T } from "lodash-unified";
4
- import { computed as b, unref as c } from "vue";
1
+ import { getTableRenderProps as C, objectToString as w } from "../../ap-table/utils.mjs";
2
+ import { rendererMap as y } from "../renderer/index.mjs";
3
+ import { isFunction as b, isNumber as f } from "lodash-unified";
4
+ import { computed as v, unref as T } from "vue";
5
5
  import "../components/body-cell/index.vue.mjs";
6
6
  import "../components/header-cell/index.vue.mjs";
7
7
  import "../../config-provider/index.mjs";
8
- import { dataIndexToField as R } from "../../ap-grid/utils/col.mjs";
9
- import { isDef as D } from "../../utils/index.mjs";
10
- import { useGlobalConfig as I } from "../../config-provider/hooks/use-global-config.mjs";
11
- import { useNamespace as P } from "../../config-provider/hooks/use-namespace.mjs";
12
- import S from "../components/body-cell/index.vue2.mjs";
13
- import _ from "../components/header-cell/index.vue2.mjs";
14
- function z(r, a) {
15
- var p, f;
8
+ import { dataIndexToField as m } from "../../ap-grid/utils/col.mjs";
9
+ import { isDef as R } from "../../utils/index.mjs";
10
+ import { useGlobalConfig as D } from "../../config-provider/hooks/use-global-config.mjs";
11
+ import { useNamespace as I } from "../../config-provider/hooks/use-namespace.mjs";
12
+ import P from "../components/body-cell/index.vue2.mjs";
13
+ import S from "../components/header-cell/index.vue2.mjs";
14
+ function _(t, a) {
16
15
  if (a.bodyCellTooltip)
17
- return w(a.bodyCellTooltip) ? a.bodyCellTooltip(r.value, r.data) : a.bodyCellTooltip;
16
+ return b(a.bodyCellTooltip) ? a.bodyCellTooltip(t.value, t.data) : a.bodyCellTooltip;
18
17
  if (a.renderText)
19
18
  return a.renderText({
20
- value: r.value,
21
- record: r.data,
19
+ value: t.value,
20
+ record: t.data,
22
21
  column: a,
23
- text: r.value
22
+ text: t.value
24
23
  });
25
- const d = a.valueType || "text", n = g[d];
26
- if (n) {
27
- const v = h(
28
- { ...a, valueType: d },
24
+ const s = a.valueType || "text", d = y[s];
25
+ if (d) {
26
+ const p = C(
27
+ { ...a, valueType: s },
29
28
  {
30
- value: r.value,
31
- text: r.value,
32
- record: r.data,
33
- column: r.column,
34
- rowIndex: (p = r.node) == null ? void 0 : p.rowIndex,
35
- pinned: (f = r.node) == null ? void 0 : f.rowPinned
29
+ value: t.value,
30
+ text: t.value,
31
+ record: t.data,
32
+ column: t.column,
33
+ rowIndex: t.node?.rowIndex,
34
+ pinned: t.node?.rowPinned
36
35
  }
37
36
  );
38
- return n(v);
37
+ return d(p);
39
38
  }
40
- return m(r.value);
39
+ return w(t.value);
41
40
  }
42
- const J = (r, a) => {
43
- const d = I("valueTypeMap"), { em: n } = P("ag-grid"), C = b(() => {
44
- const f = c(r), v = (i) => {
41
+ const E = (t, a) => {
42
+ const s = D("valueTypeMap"), { em: d } = I("ag-grid"), u = v(() => {
43
+ const c = T(t), h = (i) => {
45
44
  const e = {
46
- cellRenderer: S,
45
+ cellRenderer: P,
47
46
  cellRendererParams: {
48
47
  column: i,
49
- extraValueType: c(d)
48
+ extraValueType: T(s)
50
49
  }
51
50
  };
52
51
  if (i.customRender)
53
52
  return e;
54
53
  if (i.renderText)
55
54
  return {
56
- valueFormatter: (t) => i.renderText({
57
- value: t.value,
58
- record: t.data,
55
+ valueFormatter: (r) => i.renderText({
56
+ value: r.value,
57
+ record: r.data,
59
58
  column: i,
60
- text: t.value
59
+ text: r.value
61
60
  })
62
61
  };
63
- const u = i.valueType || "text", s = g[u];
64
- return s ? {
65
- valueFormatter: (t) => {
66
- var o, x;
67
- const l = h(
68
- { ...i, valueType: u },
62
+ const n = i.valueType || "text", l = y[n];
63
+ return l ? {
64
+ valueFormatter: (r) => {
65
+ const o = C(
66
+ { ...i, valueType: n },
69
67
  {
70
- value: t.value,
71
- text: t.value,
72
- record: t.data,
73
- column: t.column,
74
- rowIndex: (o = t.node) == null ? void 0 : o.rowIndex,
75
- pinned: (x = t.node) == null ? void 0 : x.rowPinned
68
+ value: r.value,
69
+ text: r.value,
70
+ record: r.data,
71
+ column: r.column,
72
+ rowIndex: r.node?.rowIndex,
73
+ pinned: r.node?.rowPinned
76
74
  }
77
75
  );
78
- return s(l);
76
+ return l(o);
79
77
  }
80
78
  } : e;
81
79
  };
82
- function y(i) {
80
+ function x(i) {
83
81
  return i.map((e) => {
84
- var t;
85
- const u = e.bodyCellTooltip || !e.customRender && (e.ellipsis === !0 || e.ellipsis === "tooltip" || T(e.ellipsis)), s = {
86
- field: R(e.dataIndex),
87
- colId: D(e.key) ? String(e.key) : void 0,
82
+ const n = e.bodyCellTooltip || !e.customRender && (e.ellipsis === !0 || e.ellipsis === "tooltip" || f(e.ellipsis)), l = {
83
+ field: m(e.dataIndex),
84
+ colId: R(e.key) ? String(e.key) : void 0,
88
85
  sortable: !!e.sorter,
89
86
  comparator: e.sorter === !0 ? () => 0 : e.sorter,
90
87
  headerComponentParams: {
@@ -99,42 +96,42 @@ const J = (r, a) => {
99
96
  pinned: e.fixed || null,
100
97
  // undefined to null
101
98
  colSpan: e.colSpan,
102
- cellClass: (l) => {
103
- const o = e.cellClass || "", x = w(o) ? o(l.data, l.node) : o;
99
+ cellClass: (r) => {
100
+ const o = e.cellClass || "", g = b(o) ? o(r.data, r.node) : o;
104
101
  return [
105
- `${n("cell", e.align || "left")}`,
106
- x
102
+ `${d("cell", e.align || "left")}`,
103
+ g
107
104
  ].flat().filter(Boolean);
108
105
  },
109
106
  cellStyle: {
110
- "--ag-grid-line-clamp": T(e.ellipsis) ? e.ellipsis : 1
107
+ "--ag-grid-line-clamp": f(e.ellipsis) ? e.ellipsis : 1
111
108
  },
112
- wrapText: !e.ellipsis || T(e.ellipsis) && e.ellipsis >= 2,
109
+ wrapText: !e.ellipsis || f(e.ellipsis) && e.ellipsis >= 2,
113
110
  autoHeight: !0,
114
111
  // 设置自动计算高度以自适应多行换行的场景
115
- tooltipValueGetter: u ? (l) => z(l, e) : void 0,
116
- ...v(e)
112
+ tooltipValueGetter: n ? (r) => _(r, e) : void 0,
113
+ ...h(e)
117
114
  };
118
- return (t = e.children) != null && t.length ? {
119
- ...s,
120
- children: y(e.children)
121
- } : s;
115
+ return e.children?.length ? {
116
+ ...l,
117
+ children: x(e.children)
118
+ } : l;
122
119
  });
123
120
  }
124
- return y(f);
125
- }), p = b(
121
+ return x(c);
122
+ }), p = v(
126
123
  () => ({
127
- headerComponent: _,
124
+ headerComponent: S,
128
125
  resizable: a.columnResizable,
129
126
  suppressMovable: !0,
130
127
  cellDataType: !1
131
128
  })
132
129
  );
133
130
  return {
134
- columnDefs: C,
131
+ columnDefs: u,
135
132
  defaultColDef: p
136
133
  };
137
134
  };
138
135
  export {
139
- J as useColumnsDef
136
+ E as useColumnsDef
140
137
  };
@@ -1,26 +1,24 @@
1
- import { ref as l, watch as c } from "vue";
2
- const a = (e) => {
3
- const t = l([]), o = l([]);
4
- function m() {
5
- var n;
6
- return ((n = e.columns) == null ? void 0 : n.filter((u) => !u.hideInTable)) || [];
1
+ import { ref as t, watch as l } from "vue";
2
+ const c = (e) => {
3
+ const o = t([]), u = t([]);
4
+ function s() {
5
+ return e.columns?.filter((n) => !n.hideInTable) || [];
7
6
  }
8
- return c(
7
+ return l(
9
8
  () => e.columns,
10
9
  () => {
11
- var u;
12
- const n = m();
13
- t.value = n, o.value = n, (u = e.onShownColumnsChange) == null || u.call(e, n);
10
+ const n = s();
11
+ o.value = n, u.value = n, e.onShownColumnsChange?.(n);
14
12
  },
15
13
  {
16
14
  deep: !0,
17
15
  immediate: !0
18
16
  }
19
17
  ), {
20
- shownColumns: t,
21
- shownColumnsBackup: o
18
+ shownColumns: o,
19
+ shownColumnsBackup: u
22
20
  };
23
21
  };
24
22
  export {
25
- a as useColumns
23
+ c as useColumns
26
24
  };
@@ -1,96 +1,96 @@
1
- import { ref as D, computed as d, unref as o } from "vue";
1
+ import { ref as A, computed as i, unref as o } from "vue";
2
2
  import { isFunction as r } from "lodash-unified";
3
- function E(l, n) {
4
- return !(n != null && n.length) || r(l) ? [] : n.map((u) => ({ [l]: u }));
3
+ function D(c, n) {
4
+ return !n?.length || r(c) ? [] : n.map((u) => ({ [c]: u }));
5
5
  }
6
- const m = (l) => {
7
- const n = D(
8
- E(l.rowKey, l.defaultSelectedRowKeys)
9
- ), u = (e) => r(l.rowKey) ? l.rowKey(e) : e[l.rowKey], a = d(() => {
6
+ const m = (c) => {
7
+ const n = A(
8
+ D(c.rowKey, c.defaultSelectedRowKeys)
9
+ ), u = (e) => r(c.rowKey) ? c.rowKey(e) : e[c.rowKey], a = i(() => {
10
10
  const e = /* @__PURE__ */ new Map();
11
11
  return o(n).forEach((t) => {
12
12
  e.set(u(t), t);
13
13
  }), e;
14
14
  });
15
- function v(e) {
15
+ function S(e) {
16
16
  return o(a).has(u(e));
17
17
  }
18
- function S(e) {
18
+ function v(e) {
19
19
  if (!s(e))
20
20
  return;
21
21
  const t = o(a);
22
22
  t.set(u(e), e), n.value = [...t.values()];
23
23
  }
24
- function M(e) {
24
+ function w(e) {
25
25
  const t = o(a);
26
- for (const c of e)
27
- s(c) && t.set(u(c), c);
26
+ for (const l of e)
27
+ s(l) && t.set(u(l), l);
28
28
  n.value = [...t.values()];
29
29
  }
30
- function w(e) {
31
- if (r(l.rowKey))
30
+ function M(e) {
31
+ if (r(c.rowKey))
32
32
  return;
33
33
  const t = o(a);
34
- for (const c of e) {
35
- const f = o(l.dataSource).find(
36
- (A) => u(A) === c
37
- ), i = { [l.rowKey]: c };
38
- s(f || i) && t.set(c, f || i);
34
+ for (const l of e) {
35
+ const f = o(c.dataSource).find(
36
+ (b) => u(b) === l
37
+ ), d = { [c.rowKey]: l };
38
+ s(f || d) && t.set(l, f || d);
39
39
  }
40
40
  n.value = [...t.values()];
41
41
  }
42
- function x(e) {
42
+ function y(e) {
43
43
  if (!s(e))
44
44
  return;
45
45
  const t = o(a);
46
46
  t.delete(u(e)), n.value = [...t.values()];
47
47
  }
48
- function g(e) {
48
+ function x(e) {
49
49
  const t = o(a);
50
- for (const c of e)
51
- s(c) && t.delete(u(c));
50
+ for (const l of e)
51
+ s(l) && t.delete(u(l));
52
52
  n.value = [...t.values()];
53
53
  }
54
54
  function s(e) {
55
- const t = l.disabled;
55
+ const t = c.disabled;
56
56
  return !(t ? t(e) : !1);
57
57
  }
58
- function y() {
58
+ function K() {
59
59
  const e = o(a);
60
- o(l.dataSource).forEach((t) => {
60
+ o(c.dataSource).forEach((t) => {
61
61
  s(t) && e.set(u(t), t);
62
62
  }), n.value = [...e.values()];
63
63
  }
64
- function h(e) {
64
+ function g(e) {
65
65
  if (!s(e))
66
66
  return;
67
- const t = o(a), c = u(e);
68
- t.has(c) ? t.delete(c) : t.set(c, e), n.value = [...t.values()];
67
+ const t = o(a), l = u(e);
68
+ t.has(l) ? t.delete(l) : t.set(l, e), n.value = [...t.values()];
69
69
  }
70
- function b() {
70
+ function R() {
71
71
  const e = o(a);
72
- o(l.dataSource).forEach((t) => {
72
+ o(c.dataSource).forEach((t) => {
73
73
  s(t) && e.delete(u(t));
74
74
  }), n.value = [...e.values()];
75
75
  }
76
- function K() {
76
+ function h() {
77
77
  n.value = [];
78
78
  }
79
79
  return {
80
- select: S,
81
- unSelect: x,
82
- isSelected: v,
83
- selectAll: y,
84
- unSelectAll: b,
85
- clearAll: K,
86
- toggleSelect: h,
80
+ select: v,
81
+ unSelect: y,
82
+ isSelected: S,
83
+ selectAll: K,
84
+ unSelectAll: R,
85
+ clearAll: h,
86
+ toggleSelect: g,
87
87
  selectedRows: n,
88
- selectedRowKeys: d(
88
+ selectedRowKeys: i(
89
89
  () => o(n).map((e) => u(e))
90
90
  ),
91
- selectMulti: M,
92
- unSelectMulti: g,
93
- selectMultiByKeys: w
91
+ selectMulti: w,
92
+ unSelectMulti: x,
93
+ selectMultiByKeys: M
94
94
  };
95
95
  };
96
96
  export {
@@ -1,41 +1,38 @@
1
- import { noRenderAsFormItemValueList as m } from "../../ap-table/constants.mjs";
2
- import { computed as u, unref as i } from "vue";
3
- import { getColumnOrder as s, updateFormProps as c, getFieldProps as f, getSearchFormItemRenderNode as g } from "../../ap-table/utils.mjs";
1
+ import { noRenderAsFormItemValueList as s } from "../../ap-table/constants.mjs";
2
+ import { computed as p, unref as l } from "vue";
3
+ import { getColumnOrder as d, updateFormProps as m, getFieldProps as u, getSearchFormItemRenderNode as i } from "../../ap-table/utils.mjs";
4
4
  import "../../config-provider/index.mjs";
5
- import { useGlobalConfig as I } from "../../config-provider/hooks/use-global-config.mjs";
6
- const O = (p) => {
5
+ import { useGlobalConfig as c } from "../../config-provider/hooks/use-global-config.mjs";
6
+ const h = (n) => {
7
7
  let t = 0;
8
- const l = I("valueTypeMap");
9
- return u(() => {
10
- var d, n, a;
11
- return t++, ((a = (n = (d = p.columns) == null ? void 0 : d.filter(
12
- (e) => !e.hideInSearch && e.dataIndex && (e.valueType || e.customRenderFormItem) && !m.includes(e.valueType)
13
- )) == null ? void 0 : n.sort((e, o) => {
14
- const r = s(e.order);
15
- return s(o.order) - r;
16
- })) == null ? void 0 : a.map((e) => {
17
- const o = c(
18
- e,
19
- f(e.fieldProps, {})
20
- ), r = {
21
- ...e,
22
- fieldProps: {
23
- label: e.title,
24
- name: e.dataIndex,
25
- // tips: 在表格中的查询表单项默认是带边框的
26
- bordered: !0,
27
- ...o || {},
28
- _signal: t
29
- },
30
- renderNode: void 0
31
- };
32
- return r.renderNode = g(
33
- r,
34
- i(l)
35
- ), r;
36
- })) || [];
37
- });
8
+ const a = c("valueTypeMap");
9
+ return p(() => (t++, n.columns?.filter(
10
+ (e) => !e.hideInSearch && e.dataIndex && (e.valueType || e.customRenderFormItem) && !s.includes(e.valueType)
11
+ )?.sort((e, o) => {
12
+ const r = d(e.order);
13
+ return d(o.order) - r;
14
+ })?.map((e) => {
15
+ const o = m(
16
+ e,
17
+ u(e.fieldProps, {})
18
+ ), r = {
19
+ ...e,
20
+ fieldProps: {
21
+ label: e.title,
22
+ name: e.dataIndex,
23
+ // tips: 在表格中的查询表单项默认是带边框的
24
+ bordered: !0,
25
+ ...o || {},
26
+ _signal: t
27
+ },
28
+ renderNode: void 0
29
+ };
30
+ return r.renderNode = i(
31
+ r,
32
+ l(a)
33
+ ), r;
34
+ }) || []));
38
35
  };
39
36
  export {
40
- O as useSearchForm
37
+ h as useSearchForm
41
38
  };