@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,19 +1,19 @@
1
- import { defineComponent as Z, computed as E, ref as K, createVNode as N, watch as U, createBlock as R, openBlock as C, unref as b, mergeProps as S, withCtx as O, createElementVNode as D, normalizeClass as ee } from "vue";
1
+ import { defineComponent as $, computed as C, ref as p, createVNode as K, watch as U, createBlock as Y, openBlock as z, unref as y, mergeProps as M, withCtx as R, createElementVNode as q, normalizeClass as H } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import te from "./icons/line-down.vue.mjs";
4
- import { ApBatchActionGroup as ie } from "../ap-batch-action-group/index.mjs";
3
+ import J from "./icons/line-down.vue.mjs";
4
+ import { ApBatchActionGroup as Q } from "../ap-batch-action-group/index.mjs";
5
5
  import "./components/main-button-content.vue.mjs";
6
6
  import "./components/menu-list-content.vue.mjs";
7
- import { useViewProvide as le } from "./hooks/use-view-provide.mjs";
8
- import { useInjectApTable as se } from "../../ap-table/context.mjs";
9
- import { SYSTEM_VIEW_KEY as V } from "./utils/enum.mjs";
10
- import { isValid as me } from "@aplus-frontend/utils";
11
- import { useGlobalConfig as ne } from "../../config-provider/hooks/use-global-config.mjs";
12
- import { useNamespace as oe } from "../../config-provider/hooks/use-namespace.mjs";
13
- import { useLocale as re } from "../../config-provider/hooks/use-locale.mjs";
14
- import fe from "./components/main-button-content.vue2.mjs";
15
- import ue from "./components/menu-list-content.vue2.mjs";
16
- const Ie = /* @__PURE__ */ Z({
7
+ import { useViewProvide as X } from "./hooks/use-view-provide.mjs";
8
+ import { useInjectApTable as Z } from "../../ap-table/context.mjs";
9
+ import { SYSTEM_VIEW_KEY as u } from "./utils/enum.mjs";
10
+ import { isValid as ee } from "@aplus-frontend/utils";
11
+ import { useGlobalConfig as te } from "../../config-provider/hooks/use-global-config.mjs";
12
+ import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
13
+ import { useLocale as ie } from "../../config-provider/hooks/use-locale.mjs";
14
+ import se from "./components/main-button-content.vue2.mjs";
15
+ import oe from "./components/menu-list-content.vue2.mjs";
16
+ const Ke = /* @__PURE__ */ $({
17
17
  name: "ApView",
18
18
  __name: "ap-view",
19
19
  props: {
@@ -36,179 +36,166 @@ const Ie = /* @__PURE__ */ Z({
36
36
  default: !1
37
37
  }
38
38
  },
39
- setup(k, {
40
- expose: A
39
+ setup(F, {
40
+ expose: N
41
41
  }) {
42
- const r = k, L = ne("viewCacheOption"), {
43
- b: g
44
- } = oe("ap-view"), {
45
- t: P
46
- } = re(), v = E(() => ({
47
- viewKey: V,
48
- viewName: P("ap.apView.systemView")
42
+ const s = F, _ = te("viewCacheOption"), {
43
+ b: V
44
+ } = ae("ap-view"), {
45
+ t: O
46
+ } = ie(), d = C(() => ({
47
+ viewKey: u,
48
+ viewName: O("ap.apView.systemView")
49
49
  })), {
50
- getSearchFormValues: T,
51
- setSearchFormValues: W,
52
- submit: j,
53
- reset: G,
54
- submitWith: $,
55
- getSearchFormSorterItems: Y,
56
- setSearchFormSorterItems: z,
57
- resetSearchFormSorterItems: M
58
- } = se(), q = K(!1), F = K(!1), d = K("");
59
- let c = !1, _ = !1;
60
- const H = {
50
+ getSearchFormValues: I,
51
+ setSearchFormValues: L,
52
+ submit: x,
53
+ reset: B,
54
+ submitWith: E,
55
+ getSearchFormSorterItems: k,
56
+ setSearchFormSorterItems: A,
57
+ resetSearchFormSorterItems: P
58
+ } = Z(), T = p(!1), S = p(!1), v = p("");
59
+ let c = !1, b = !1;
60
+ const W = {
61
61
  dropdownType: "dropdown",
62
- content: N(fe, {
63
- maxViewNum: r.maxViewNum
62
+ content: K(se, {
63
+ maxViewNum: s.maxViewNum
64
64
  }, null)
65
- }, m = K([v.value]), J = E(() => m.value.map((t) => ({
66
- id: t.viewKey,
67
- content: N(ue, {
68
- view: t
65
+ }, a = p([d.value]), j = C(() => a.value.map((e) => ({
66
+ id: e.viewKey,
67
+ content: K(oe, {
68
+ view: e
69
69
  }, null)
70
- }))), e = {
71
- getSearchFormValues: T,
72
- setSearchFormValues: W,
73
- submit: j,
74
- reset: G,
75
- submitWith: $,
76
- getSearchFormSorterItems: Y,
77
- setSearchFormSorterItems: z,
78
- resetSearchFormSorterItems: M,
79
- ...r.saveDataSource
80
- }, l = {
81
- ...L.value,
82
- ...r.viewCacheOption
83
- }, h = () => {
84
- if (r.isDefaultSystemView)
85
- return V;
86
- if ((r.isFirstDefaultSystemView || _) && c)
87
- return V;
88
- const t = m.value.find((i) => i.isDefault);
89
- return (t == null ? void 0 : t.viewKey) ?? V;
90
- }, p = (t) => {
91
- d.value = t;
92
- const i = m.value.find((s) => s.viewKey === d.value);
70
+ }))), o = {
71
+ getSearchFormValues: I,
72
+ setSearchFormValues: L,
73
+ submit: x,
74
+ reset: B,
75
+ submitWith: E,
76
+ getSearchFormSorterItems: k,
77
+ setSearchFormSorterItems: A,
78
+ resetSearchFormSorterItems: P,
79
+ ...s.saveDataSource
80
+ }, w = {
81
+ ..._.value,
82
+ ...s.viewCacheOption
83
+ }, g = () => s.isDefaultSystemView ? u : (s.isFirstDefaultSystemView || b) && c ? u : a.value.find((i) => i.isDefault)?.viewKey ?? u, n = (e) => {
84
+ v.value = e;
85
+ const i = a.value.find((t) => t.viewKey === v.value);
93
86
  i && setTimeout(() => {
94
- var s, n, o, u, f, a, y, I, x, B;
95
- i.viewKey === V ? c ? r.manual || (s = e == null ? void 0 : e.submitWith) == null || s.call(e) : ((n = e == null ? void 0 : e.resetSearchFormSorterItems) == null || n.call(e), r.manual || (o = e == null ? void 0 : e.reset) == null || o.call(e)) : ((a = e == null ? void 0 : e.setSearchFormValues) == null || a.call(e, {
96
- ...Object.fromEntries(Object.keys(((u = e == null ? void 0 : e.getSearchFormValues) == null ? void 0 : u.call(e)) ?? {}).map((X) => [X, void 0])) ?? {},
97
- ...((f = i.viewConfig) == null ? void 0 : f.searchForm) ?? {}
98
- }), (I = e == null ? void 0 : e.setSearchFormSorterItems) == null || I.call(e, ((y = i.viewConfig) == null ? void 0 : y.sorterItems) ?? []), c ? r.manual || (x = e == null ? void 0 : e.submitWith) == null || x.call(e) : (B = e == null ? void 0 : e.submit) == null || B.call(e)), c = !1;
87
+ i.viewKey === u ? c ? s.manual || o?.submitWith?.() : (o?.resetSearchFormSorterItems?.(), s.manual || o?.reset?.()) : (o?.setSearchFormValues?.({
88
+ ...Object.fromEntries(Object.keys(o?.getSearchFormValues?.() ?? {}).map((t) => [t, void 0])) ?? {},
89
+ ...i.viewConfig?.searchForm ?? {}
90
+ }), o?.setSearchFormSorterItems?.(i.viewConfig?.sorterItems ?? []), c ? s.manual || o?.submitWith?.() : o?.submit?.()), c = !1;
99
91
  });
100
- }, w = {
101
- getViewList: async (t) => {
102
- var i;
92
+ }, D = {
93
+ getViewList: async (e) => {
103
94
  try {
104
95
  const {
105
- tableKey: s
106
- } = t, n = await ((i = l == null ? void 0 : l.getViewList) == null ? void 0 : i.call(l, {
107
- tableKey: s
108
- }));
109
- return m.value = [v.value, ...n ?? []], p(h()), m.value;
96
+ tableKey: i
97
+ } = e, t = await w?.getViewList?.({
98
+ tableKey: i
99
+ });
100
+ return a.value = [d.value, ...t ?? []], n(g()), a.value;
110
101
  } catch {
111
- return m.value = [v.value], p(V), m.value;
102
+ return a.value = [d.value], n(u), a.value;
112
103
  }
113
104
  },
114
- addView: async (t) => {
115
- var f;
105
+ addView: async (e) => {
116
106
  const {
117
107
  tableKey: i,
118
- viewKey: s,
119
- viewName: n,
120
- isDefault: o,
121
- viewConfig: u
122
- } = t;
123
- await ((f = l == null ? void 0 : l.addView) == null ? void 0 : f.call(l, {
108
+ viewKey: t,
109
+ viewName: r,
110
+ isDefault: l,
111
+ viewConfig: f
112
+ } = e;
113
+ await w?.addView?.({
124
114
  tableKey: i,
125
- viewKey: s,
126
- viewName: n,
127
- isDefault: o,
128
- viewConfig: u
129
- })), o && (m.value = m.value.map((a) => ({
130
- ...a,
115
+ viewKey: t,
116
+ viewName: r,
117
+ isDefault: l,
118
+ viewConfig: f
119
+ }), l && (a.value = a.value.map((m) => ({
120
+ ...m,
131
121
  isDefault: !1
132
- }))), m.value = [...m.value, {
133
- viewKey: s,
134
- viewName: n,
135
- isDefault: o,
136
- viewConfig: u
137
- }], p(s);
122
+ }))), a.value = [...a.value, {
123
+ viewKey: t,
124
+ viewName: r,
125
+ isDefault: l,
126
+ viewConfig: f
127
+ }], n(t);
138
128
  },
139
- changeView: async (t) => {
140
- var a;
129
+ changeView: async (e) => {
141
130
  const {
142
131
  tableKey: i,
143
- viewKey: s,
144
- viewName: n,
145
- isDefault: o,
146
- viewConfig: u
147
- } = t;
148
- await ((a = l == null ? void 0 : l.changeView) == null ? void 0 : a.call(l, {
132
+ viewKey: t,
133
+ viewName: r,
134
+ isDefault: l,
135
+ viewConfig: f
136
+ } = e;
137
+ await w?.changeView?.({
149
138
  tableKey: i,
150
- viewKey: s,
151
- viewName: n,
152
- isDefault: o,
153
- viewConfig: u
154
- })), o && (m.value = m.value.map((y) => ({
155
- ...y,
139
+ viewKey: t,
140
+ viewName: r,
141
+ isDefault: l,
142
+ viewConfig: f
143
+ }), l && (a.value = a.value.map((h) => ({
144
+ ...h,
156
145
  isDefault: !1
157
146
  })));
158
- const f = m.value.find((y) => y.viewKey === s);
159
- f && (f.viewName = n, f.isDefault = o, f.viewConfig = u), p(s);
147
+ const m = a.value.find((h) => h.viewKey === t);
148
+ m && (m.viewName = r, m.isDefault = l, m.viewConfig = f), n(t);
160
149
  },
161
- removeView: async (t) => {
162
- var n;
150
+ removeView: async (e) => {
163
151
  const {
164
152
  tableKey: i,
165
- viewKey: s
166
- } = t;
167
- await ((n = l == null ? void 0 : l.removeView) == null ? void 0 : n.call(l, {
153
+ viewKey: t
154
+ } = e;
155
+ await w?.removeView?.({
168
156
  tableKey: i,
169
- viewKey: s
170
- })), m.value = m.value.filter((o) => o.viewKey !== s), s === d.value && p(h());
157
+ viewKey: t
158
+ }), a.value = a.value.filter((r) => r.viewKey !== t), t === v.value && n(g());
171
159
  }
172
- }, Q = {
173
- tableKey: r.tableKey,
174
- currentViewKey: d,
175
- changeCurrentViewKey: p,
176
- popoverOpen: q,
177
- menuOpen: F,
178
- viewList: m,
179
- viewListCRUD: w,
180
- saveDataSource: e
160
+ }, G = {
161
+ tableKey: s.tableKey,
162
+ currentViewKey: v,
163
+ changeCurrentViewKey: n,
164
+ popoverOpen: T,
165
+ menuOpen: S,
166
+ viewList: a,
167
+ viewListCRUD: D,
168
+ saveDataSource: o
181
169
  };
182
- return le(Q), U(() => r.tableKey, (t) => {
183
- var i;
184
- me(t) && (c = !0, (i = w == null ? void 0 : w.getViewList) == null || i.call(w, {
185
- tableKey: t
170
+ return X(G), U(() => s.tableKey, (e) => {
171
+ ee(e) && (c = !0, D?.getViewList?.({
172
+ tableKey: e
186
173
  }));
187
174
  }, {
188
175
  immediate: !0
189
- }), A({
190
- setFirstDefaultSystemView: (t) => {
191
- _ = t;
176
+ }), N({
177
+ setFirstDefaultSystemView: (e) => {
178
+ b = e;
192
179
  }
193
- }), (t, i) => (C(), R(b(ie), S({
194
- ...t.$attrs
180
+ }), (e, i) => (z(), Y(y(Q), M({
181
+ ...e.$attrs
195
182
  }, {
196
- open: F.value,
197
- "onUpdate:open": i[0] || (i[0] = (s) => F.value = s),
198
- class: [b(g)()],
199
- "button-props": H,
200
- "menu-list": J.value,
201
- "overlay-class-name": [b(g)("overlay")],
183
+ open: S.value,
184
+ "onUpdate:open": i[0] || (i[0] = (t) => S.value = t),
185
+ class: [y(V)()],
186
+ "button-props": W,
187
+ "menu-list": j.value,
188
+ "overlay-class-name": [y(V)("overlay")],
202
189
  trigger: "click",
203
190
  placement: "bottom"
204
191
  }), {
205
- icon: O(() => [D("div", {
206
- class: ee([b(g)("icon")])
207
- }, [N(te)], 2)]),
192
+ icon: R(() => [q("div", {
193
+ class: H([y(V)("icon")])
194
+ }, [K(J)], 2)]),
208
195
  _: 1
209
196
  }, 16, ["open", "class", "menu-list", "overlay-class-name"]));
210
197
  }
211
198
  });
212
199
  export {
213
- Ie as default
200
+ Ke as default
214
201
  };
@@ -1,6 +1,5 @@
1
1
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } 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 { OnCleanup } from '@vue/reactivity';
13
13
  type __VLS_Props = {
@@ -18,7 +18,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
18
18
  $: ComponentInternalInstance;
19
19
  $data: {};
20
20
  $props: {
21
- readonly size?: SizeType;
21
+ readonly size?: "small" | "large" | "middle" | undefined;
22
22
  readonly onSubmit?: ((e: Event) => void) | undefined;
23
23
  readonly layout?: string | undefined;
24
24
  readonly disabled?: boolean | undefined;
@@ -1,61 +1,57 @@
1
- import { defineComponent as E, ref as K, computed as j, watch as q, createBlock as B, openBlock as L, unref as e, withCtx as o, createElementVNode as f, normalizeClass as r, createVNode as a, createSlots as M, toDisplayString as s, createTextVNode as w } from "vue";
2
- import { Popover as O, Tooltip as A, Space as F, Checkbox as P } from "@aplus-frontend/antdv";
1
+ import { defineComponent as I, ref as T, computed as z, watch as $, createBlock as L, openBlock as Y, unref as e, withCtx as t, createElementVNode as c, normalizeClass as r, createVNode as a, createSlots as E, toDisplayString as m, createTextVNode as v } from "vue";
2
+ import { Popover as K, Tooltip as R, Space as h, Checkbox as U } from "@aplus-frontend/antdv";
3
3
  import "../../../config-provider/index.mjs";
4
- import R from "../icons/line-eye.vue.mjs";
4
+ import j from "../icons/line-eye.vue.mjs";
5
5
  import "../../../ap-form/ap-form.vue.mjs";
6
- import { ApField as U } from "../../../ap-field/index.mjs";
6
+ import { ApField as q } from "../../../ap-field/index.mjs";
7
7
  import "../../../ap-button/index.mjs";
8
- import G from "dayjs";
9
- import { useViewInject as H } from "../hooks/use-view-provide.mjs";
10
- import { generateUniqueKey as J } from "../utils/uuid.mjs";
11
- import { cloneDeep as b } from "lodash-unified";
12
- import { useLocale as Q } from "../../../config-provider/hooks/use-locale.mjs";
13
- import { useNamespace as W } from "../../../config-provider/hooks/use-namespace.mjs";
14
- import v from "../../../ap-form/ap-form.vue2.mjs";
15
- import k from "../../../ap-button/ap-button.vue.mjs";
16
- const ce = /* @__PURE__ */ E({
8
+ import B from "dayjs";
9
+ import { useViewInject as M } from "../hooks/use-view-provide.mjs";
10
+ import { generateUniqueKey as O } from "../utils/uuid.mjs";
11
+ import { cloneDeep as g } from "lodash-unified";
12
+ import { useLocale as A } from "../../../config-provider/hooks/use-locale.mjs";
13
+ import { useNamespace as P } from "../../../config-provider/hooks/use-namespace.mjs";
14
+ import d from "../../../ap-form/ap-form.vue2.mjs";
15
+ import y from "../../../ap-button/ap-button.vue.mjs";
16
+ const me = /* @__PURE__ */ I({
17
17
  __name: "main-button-content",
18
18
  props: {
19
19
  maxViewNum: {}
20
20
  },
21
- setup(C) {
22
- const d = C, { t: i } = Q(), { b: l } = W("ap-view"), V = K(), { tableKey: I, popoverOpen: c, viewList: u, saveDataSource: t, viewListCRUD: _ } = H(), g = j({
23
- get: () => c.value && u.value.length < d.maxViewNum + 1,
24
- set: (p) => {
25
- u.value.length < d.maxViewNum + 1 && (c.value = p);
21
+ setup(x) {
22
+ const u = x, { t: o } = A(), { b: n } = P("ap-view"), w = T(), { tableKey: N, popoverOpen: s, viewList: p, saveDataSource: V, viewListCRUD: F } = M(), _ = z({
23
+ get: () => s.value && p.value.length < u.maxViewNum + 1,
24
+ set: (l) => {
25
+ p.value.length < u.maxViewNum + 1 && (s.value = l);
26
26
  }
27
27
  });
28
- q(c, (p) => {
29
- var n;
30
- p && ((n = V.value) == null || n.resetFields(), setTimeout(() => {
31
- var m;
32
- (m = V.value) == null || m.setFieldsValue({
33
- isDefault: !u.value.some((h) => h.isDefault)
28
+ $(s, (l) => {
29
+ l && (w.value?.resetFields(), setTimeout(() => {
30
+ w.value?.setFieldsValue({
31
+ isDefault: !p.value.some((i) => i.isDefault)
34
32
  });
35
33
  }));
36
34
  });
37
- const T = async (p) => {
38
- var y, x, N;
39
- const { viewName: n, isDefault: m } = p, h = J(), z = b(
40
- (y = t == null ? void 0 : t.getSearchFormValues) == null ? void 0 : y.call(
41
- t,
42
- !!(t != null && t.searchFormTransform)
35
+ const b = async (l) => {
36
+ const { viewName: i, isDefault: f } = l, D = O(), k = g(
37
+ V?.getSearchFormValues?.(
38
+ !!V?.searchFormTransform
43
39
  )
44
- ), $ = b((x = t == null ? void 0 : t.getSearchFormSorterItems) == null ? void 0 : x.call(t)), Y = {
45
- searchForm: z,
46
- sorterItems: $
40
+ ), C = g(V?.getSearchFormSorterItems?.()), S = {
41
+ searchForm: k,
42
+ sorterItems: C
47
43
  };
48
- await ((N = _.addView) == null ? void 0 : N.call(_, {
49
- tableKey: I,
50
- viewKey: h,
51
- viewName: n,
52
- isDefault: m,
53
- viewConfig: Y
54
- })), c.value = !1;
44
+ await F.addView?.({
45
+ tableKey: N,
46
+ viewKey: D,
47
+ viewName: i,
48
+ isDefault: f,
49
+ viewConfig: S
50
+ }), s.value = !1;
55
51
  };
56
- return (p, n) => (L(), B(e(O), {
57
- open: g.value,
58
- "onUpdate:open": n[1] || (n[1] = (m) => g.value = m),
52
+ return (l, i) => (Y(), L(e(K), {
53
+ open: _.value,
54
+ "onUpdate:open": i[1] || (i[1] = (f) => _.value = f),
59
55
  placement: "bottom",
60
56
  trigger: "click",
61
57
  arrow: !1,
@@ -63,34 +59,34 @@ const ce = /* @__PURE__ */ E({
63
59
  padding: "12px 16px"
64
60
  }
65
61
  }, {
66
- content: o(() => [
67
- f("div", {
68
- class: r([e(l)("main-content-popover")])
62
+ content: t(() => [
63
+ c("div", {
64
+ class: r([e(n)("main-content-popover")])
69
65
  }, [
70
- a(v, {
66
+ a(d, {
71
67
  ref_key: "formRef",
72
- ref: V,
68
+ ref: w,
73
69
  layout: "vertical",
74
70
  "initial-values": {
75
- viewName: `${e(i)("ap.apView.newView")} ${e(G)().format("YYYY-MM-DD").toString()}`
71
+ viewName: `${e(o)("ap.apView.newView")} ${e(B)().format("YYYY-MM-DD").toString()}`
76
72
  },
77
- onFinish: T
73
+ onFinish: b
78
74
  }, {
79
- default: o(() => [
80
- f("div", {
81
- class: r([e(l)("main-content-popover-title-content")])
75
+ default: t(() => [
76
+ c("div", {
77
+ class: r([e(n)("main-content-popover-title-content")])
82
78
  }, [
83
- f("div", {
84
- class: r([e(l)("main-content-popover-title-content-title")])
85
- }, s(e(i)("ap.apView.saveNewView")), 3),
86
- a(v.FormItem, {
79
+ c("div", {
80
+ class: r([e(n)("main-content-popover-title-content-title")])
81
+ }, m(e(o)("ap.apView.saveNewView")), 3),
82
+ a(d.FormItem, {
87
83
  name: "isDefault",
88
84
  "value-prop-name": "checked"
89
85
  }, {
90
- default: o(() => [
91
- a(e(P), null, {
92
- default: o(() => [
93
- w(s(e(i)("ap.apView.setDefault")), 1)
86
+ default: t(() => [
87
+ a(e(U), null, {
88
+ default: t(() => [
89
+ v(m(e(o)("ap.apView.setDefault")), 1)
94
90
  ]),
95
91
  _: 1
96
92
  })
@@ -98,42 +94,42 @@ const ce = /* @__PURE__ */ E({
98
94
  _: 1
99
95
  })
100
96
  ], 2),
101
- a(v.FormItem, {
102
- label: e(i)("ap.apView.viewName"),
97
+ a(d.FormItem, {
98
+ label: e(o)("ap.apView.viewName"),
103
99
  name: "viewName",
104
- rules: [{ required: !0, message: e(i)("ap.apView.notEmpty") }]
100
+ rules: [{ required: !0, message: e(o)("ap.apView.notEmpty") }]
105
101
  }, {
106
- default: o(() => [
107
- a(e(U).Text, {
108
- placeholder: e(i)("ap.apView.viewName"),
102
+ default: t(() => [
103
+ a(e(q).Text, {
104
+ placeholder: e(o)("ap.apView.viewName"),
109
105
  maxlength: 20,
110
106
  "show-count": ""
111
107
  }, null, 8, ["placeholder"])
112
108
  ]),
113
109
  _: 1
114
110
  }, 8, ["label", "rules"]),
115
- a(v.FormItem, {
116
- class: r([e(l)("main-content-popover-btn")])
111
+ a(d.FormItem, {
112
+ class: r([e(n)("main-content-popover-btn")])
117
113
  }, {
118
- default: o(() => [
119
- a(e(F), { size: 8 }, {
120
- default: o(() => [
121
- a(e(k), {
114
+ default: t(() => [
115
+ a(e(h), { size: 8 }, {
116
+ default: t(() => [
117
+ a(e(y), {
122
118
  size: "small",
123
- onClick: n[0] || (n[0] = (m) => c.value = !1)
119
+ onClick: i[0] || (i[0] = (f) => s.value = !1)
124
120
  }, {
125
- default: o(() => [
126
- w(s(e(i)("ap.apView.cancel")), 1)
121
+ default: t(() => [
122
+ v(m(e(o)("ap.apView.cancel")), 1)
127
123
  ]),
128
124
  _: 1
129
125
  }),
130
- a(e(k), {
126
+ a(e(y), {
131
127
  type: "primary",
132
128
  size: "small",
133
129
  "html-type": "submit"
134
130
  }, {
135
- default: o(() => [
136
- w(s(e(i)("ap.apView.save")), 1)
131
+ default: t(() => [
132
+ v(m(e(o)("ap.apView.save")), 1)
137
133
  ]),
138
134
  _: 1
139
135
  })
@@ -148,31 +144,31 @@ const ce = /* @__PURE__ */ E({
148
144
  }, 8, ["initial-values"])
149
145
  ], 2)
150
146
  ]),
151
- default: o(() => [
152
- f("div", {
147
+ default: t(() => [
148
+ c("div", {
153
149
  class: r({
154
- [e(l)("main-content")]: !0,
155
- [e(l)("main-content-disabled")]: e(u).length >= d.maxViewNum + 1
150
+ [e(n)("main-content")]: !0,
151
+ [e(n)("main-content-disabled")]: e(p).length >= u.maxViewNum + 1
156
152
  })
157
153
  }, [
158
- a(e(A), { placement: "bottom" }, M({
159
- default: o(() => [
160
- a(e(F), { size: 4 }, {
161
- default: o(() => [
162
- a(R, {
163
- class: r([e(l)("icon")])
154
+ a(e(R), { placement: "bottom" }, E({
155
+ default: t(() => [
156
+ a(e(h), { size: 4 }, {
157
+ default: t(() => [
158
+ a(j, {
159
+ class: r([e(n)("icon")])
164
160
  }, null, 8, ["class"]),
165
- f("div", null, s(e(i)("ap.apView.saveView")), 1)
161
+ c("div", null, m(e(o)("ap.apView.saveView")), 1)
166
162
  ]),
167
163
  _: 1
168
164
  })
169
165
  ]),
170
166
  _: 2
171
167
  }, [
172
- e(u).length >= d.maxViewNum + 1 ? {
168
+ e(p).length >= u.maxViewNum + 1 ? {
173
169
  name: "title",
174
- fn: o(() => [
175
- w(s(e(i)("ap.apView.maxTip")), 1)
170
+ fn: t(() => [
171
+ v(m(e(o)("ap.apView.maxTip")), 1)
176
172
  ]),
177
173
  key: "0"
178
174
  } : void 0
@@ -184,5 +180,5 @@ const ce = /* @__PURE__ */ E({
184
180
  }
185
181
  });
186
182
  export {
187
- ce as default
183
+ me as default
188
184
  };