@aplus-frontend/ui 0.5.37 → 0.6.0-beta.1

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 (329) hide show
  1. package/es/index.mjs +74 -72
  2. package/es/src/ap-field/select/index.vue.d.ts +2 -2
  3. package/es/src/ap-field/tree-select/index.vue.d.ts +3 -3
  4. package/es/src/ap-form/ap-form.vue2.mjs +57 -58
  5. package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  6. package/es/src/ap-form/interface.d.ts +35 -1
  7. package/es/src/ap-form/item/index.vue.d.ts +22 -22
  8. package/es/src/ap-form/item/index.vue.mjs +33 -28
  9. package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  10. package/es/src/ap-form/items/checkbox/index.vue.mjs +1 -0
  11. package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
  12. package/es/src/ap-form/items/date/index.vue.mjs +8 -7
  13. package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  14. package/es/src/ap-form/items/date-range/index.vue.mjs +1 -0
  15. package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
  16. package/es/src/ap-form/items/number/index.vue.mjs +9 -8
  17. package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
  18. package/es/src/ap-form/items/radio/index.vue.mjs +1 -0
  19. package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
  20. package/es/src/ap-form/items/select/index.vue.mjs +7 -6
  21. package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
  22. package/es/src/ap-form/items/switch/index.vue.mjs +1 -0
  23. package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
  24. package/es/src/ap-form/items/text/index.vue2.mjs +8 -7
  25. package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
  26. package/es/src/ap-form/items/text/password.vue.mjs +1 -0
  27. package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  28. package/es/src/ap-form/items/text-area/index.vue.mjs +1 -0
  29. package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  30. package/es/src/ap-form/items/tree-select/index.vue.mjs +6 -5
  31. package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
  32. package/es/src/ap-form/render/item.vue.d.ts +2 -2
  33. package/es/src/ap-form/render/item.vue.mjs +5 -4
  34. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  35. package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
  36. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
  37. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  38. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
  39. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
  40. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  41. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
  42. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
  43. package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  44. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
  45. package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
  46. package/es/src/ap-form/search-form/index.vue.mjs +128 -127
  47. package/es/src/ap-grid/editable/form-item.vue.mjs +1 -1
  48. package/es/src/ap-grid/editable/index.vue.mjs +1 -1
  49. package/es/src/ap-grid/index.vue.mjs +113 -108
  50. package/es/src/ap-grid/interface.d.ts +1 -1
  51. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
  52. package/es/src/ap-table/ap-table.vue2.mjs +108 -104
  53. package/es/src/ap-table/constants.d.ts +161 -161
  54. package/es/src/ap-table/context.d.ts +5 -0
  55. package/es/src/ap-table/context.mjs +13 -5
  56. package/es/src/ap-table/utils.d.ts +147 -147
  57. package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
  58. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  59. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
  60. package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
  61. package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  62. package/es/src/business/ap-size-input/index.d.ts +3 -3
  63. package/es/src/business/ap-table-modal/index.d.ts +15 -15
  64. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  65. package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
  66. package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
  67. package/es/src/business/ap-view/ap-view.vue2.mjs +174 -0
  68. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  69. package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
  70. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +177 -0
  71. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  72. package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
  73. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
  74. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  75. package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
  76. package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  77. package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
  78. package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  79. package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
  80. package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  81. package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
  82. package/es/src/business/ap-view/index.d.ts +27 -0
  83. package/es/src/business/ap-view/index.mjs +8 -0
  84. package/es/src/business/ap-view/interface.d.ts +54 -0
  85. package/es/src/business/ap-view/interface.mjs +1 -0
  86. package/es/src/business/ap-view/style/css.d.ts +0 -0
  87. package/es/src/business/ap-view/style/css.js +1 -0
  88. package/es/src/business/ap-view/style/index.d.ts +0 -0
  89. package/es/src/business/ap-view/style/index.js +1 -0
  90. package/es/src/business/ap-view/utils/enum.d.ts +1 -0
  91. package/es/src/business/ap-view/utils/enum.mjs +4 -0
  92. package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
  93. package/es/src/business/ap-view/utils/uuid.mjs +22 -0
  94. package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  95. package/es/src/business/batch-input-group/form-item.vue.mjs +1 -0
  96. package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
  97. package/es/src/business/index.d.ts +1 -0
  98. package/es/src/business/index.mjs +25 -23
  99. package/es/src/check-card/index.vue2.mjs +1 -1
  100. package/es/src/config-provider/config-provider-props.d.ts +5 -0
  101. package/es/src/config-provider/config-provider-props.mjs +4 -0
  102. package/es/src/config-provider/config-provider.d.ts +25 -1
  103. package/es/src/config-provider/config-provider.mjs +21 -20
  104. package/es/src/config-provider/css-var.d.ts +14 -0
  105. package/es/src/config-provider/css-var.mjs +40 -12
  106. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
  107. package/es/src/config-provider/index.d.ts +89 -3
  108. package/es/src/design-token/index.mjs +9 -3
  109. package/es/src/editable-table/form-item.vue.mjs +1 -1
  110. package/es/src/editable-table/index.vue.mjs +27 -27
  111. package/es/src/full-screen/interface.d.ts +1 -1
  112. package/es/src/index.mjs +61 -59
  113. package/es/src/locale/lang/en.mjs +22 -1
  114. package/es/src/locale/lang/zh-cn.mjs +22 -1
  115. package/es/src/path-map.mjs +2 -1
  116. package/es/src/utils/config-provider-preset.d.ts +4 -4
  117. package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  118. package/lib/index.js +1 -1
  119. package/lib/src/ap-field/select/index.vue.d.ts +2 -2
  120. package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
  121. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  122. package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  123. package/lib/src/ap-form/interface.d.ts +35 -1
  124. package/lib/src/ap-form/item/index.vue.d.ts +22 -22
  125. package/lib/src/ap-form/item/index.vue.js +1 -1
  126. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  127. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  128. package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
  129. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  130. package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  131. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  132. package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
  133. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  134. package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
  135. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  136. package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
  137. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  138. package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
  139. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  140. package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
  141. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  142. package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
  143. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  144. package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  145. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  146. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  147. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  148. package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
  149. package/lib/src/ap-form/render/item.vue.d.ts +2 -2
  150. package/lib/src/ap-form/render/item.vue.js +1 -1
  151. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  152. package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
  153. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
  154. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  155. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
  156. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
  157. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  158. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
  159. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
  160. package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  161. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
  162. package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
  163. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  164. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  165. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  166. package/lib/src/ap-grid/index.vue.js +1 -1
  167. package/lib/src/ap-grid/interface.d.ts +1 -1
  168. package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
  169. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  170. package/lib/src/ap-table/constants.d.ts +161 -161
  171. package/lib/src/ap-table/context.d.ts +5 -0
  172. package/lib/src/ap-table/context.js +1 -1
  173. package/lib/src/ap-table/utils.d.ts +147 -147
  174. package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
  175. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  176. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  177. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
  178. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  179. package/lib/src/business/ap-size-input/index.d.ts +3 -3
  180. package/lib/src/business/ap-table-modal/index.d.ts +15 -15
  181. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  182. package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
  183. package/lib/src/business/ap-view/ap-view.vue.js +1 -0
  184. package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
  185. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  186. package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
  187. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
  188. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  189. package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
  190. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
  191. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  192. package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
  193. package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  194. package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
  195. package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  196. package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
  197. package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  198. package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
  199. package/lib/src/business/ap-view/index.d.ts +27 -0
  200. package/lib/src/business/ap-view/index.js +1 -0
  201. package/lib/src/business/ap-view/interface.d.ts +54 -0
  202. package/lib/src/business/ap-view/interface.js +1 -0
  203. package/lib/src/business/ap-view/style/css.cjs +1 -0
  204. package/lib/src/business/ap-view/style/css.d.ts +0 -0
  205. package/lib/src/business/ap-view/style/index.cjs +1 -0
  206. package/lib/src/business/ap-view/style/index.d.ts +0 -0
  207. package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
  208. package/lib/src/business/ap-view/utils/enum.js +1 -0
  209. package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
  210. package/lib/src/business/ap-view/utils/uuid.js +1 -0
  211. package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  212. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  213. package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
  214. package/lib/src/business/index.d.ts +1 -0
  215. package/lib/src/business/index.js +1 -1
  216. package/lib/src/check-card/index.vue2.js +1 -1
  217. package/lib/src/config-provider/config-provider-props.d.ts +5 -0
  218. package/lib/src/config-provider/config-provider-props.js +1 -1
  219. package/lib/src/config-provider/config-provider.d.ts +25 -1
  220. package/lib/src/config-provider/config-provider.js +1 -1
  221. package/lib/src/config-provider/css-var.d.ts +14 -0
  222. package/lib/src/config-provider/css-var.js +1 -1
  223. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
  224. package/lib/src/config-provider/index.d.ts +89 -3
  225. package/lib/src/design-token/index.js +1 -1
  226. package/lib/src/editable-table/form-item.vue.js +1 -1
  227. package/lib/src/editable-table/index.vue.js +1 -1
  228. package/lib/src/full-screen/interface.d.ts +1 -1
  229. package/lib/src/index.js +1 -1
  230. package/lib/src/locale/lang/en.js +1 -1
  231. package/lib/src/locale/lang/zh-cn.js +1 -1
  232. package/lib/src/path-map.js +1 -1
  233. package/lib/src/utils/config-provider-preset.d.ts +4 -4
  234. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  235. package/package.json +7 -7
  236. package/theme/ap-action/item-dropdown.css +30 -2
  237. package/theme/ap-action/item-dropdown.less +2 -2
  238. package/theme/ap-action/item.css +36 -2
  239. package/theme/ap-action/item.less +2 -3
  240. package/theme/ap-appendix/ap-appendix.css +28 -0
  241. package/theme/ap-attachment/ap-attachment.css +28 -0
  242. package/theme/ap-batch-action/ap-batch-action.css +28 -0
  243. package/theme/ap-button/ap-button.css +28 -0
  244. package/theme/ap-card/ap-card.css +28 -0
  245. package/theme/ap-descriptions/ap-descriptions.css +28 -0
  246. package/theme/ap-download/ap-download.css +28 -0
  247. package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
  248. package/theme/ap-field/checkbox.css +29 -1
  249. package/theme/ap-field/checkbox.less +2 -1
  250. package/theme/ap-field/index.css +30 -2
  251. package/theme/ap-field/number.css +28 -0
  252. package/theme/ap-field/radio.css +29 -1
  253. package/theme/ap-field/radio.less +1 -1
  254. package/theme/ap-field/text-area.css +28 -0
  255. package/theme/ap-form/ap-form-item-group.css +28 -0
  256. package/theme/ap-form/ap-form-item.css +35 -5
  257. package/theme/ap-form/ap-form-item.less +8 -6
  258. package/theme/ap-form/drawer-form.css +28 -0
  259. package/theme/ap-form/index.css +177 -6
  260. package/theme/ap-form/item-text-group.css +28 -0
  261. package/theme/ap-form/item-text.css +28 -0
  262. package/theme/ap-form/modal-form.css +28 -0
  263. package/theme/ap-form/search-form-sorter.css +120 -0
  264. package/theme/ap-form/search-form-sorter.less +71 -0
  265. package/theme/ap-form/search-form.css +177 -6
  266. package/theme/ap-form/search-form.less +57 -1
  267. package/theme/ap-grid/editable.css +30 -2
  268. package/theme/ap-grid/editable.less +2 -2
  269. package/theme/ap-grid/index.css +206 -20
  270. package/theme/ap-grid/index.less +17 -8
  271. package/theme/ap-group-search/ap-extension-select.css +28 -0
  272. package/theme/ap-group-search/ap-group-search.css +28 -0
  273. package/theme/ap-group-search/ap-popover-select.css +28 -0
  274. package/theme/ap-image/ap-image.css +28 -0
  275. package/theme/ap-input-radio/ap-input-radio.css +28 -0
  276. package/theme/ap-label/ap-label.css +28 -0
  277. package/theme/ap-ladder/ap-ladder.css +28 -0
  278. package/theme/ap-layout/ap-info-layout.css +28 -0
  279. package/theme/ap-list/index.css +29 -1
  280. package/theme/ap-list/index.less +2 -1
  281. package/theme/ap-product-info/ap-product-info.css +28 -0
  282. package/theme/ap-select-layout/ap-select-layout.css +28 -0
  283. package/theme/ap-size-input/ap-size-input.css +28 -0
  284. package/theme/ap-status/ap-status.css +28 -0
  285. package/theme/ap-summary/index.css +28 -0
  286. package/theme/ap-table/ap-table-index.css +28 -0
  287. package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
  288. package/theme/ap-table/ap-table.css +217 -34
  289. package/theme/ap-table/ap-table.less +12 -9
  290. package/theme/ap-table/setting/index.css +44 -2
  291. package/theme/ap-table/setting/modal.css +36 -0
  292. package/theme/ap-table/setting/modal.less +1 -0
  293. package/theme/ap-table/setting/select-group.css +28 -0
  294. package/theme/ap-table/setting/sortable-item-meta.css +28 -0
  295. package/theme/ap-table/setting/sortable-item.css +28 -0
  296. package/theme/ap-table/setting/sorter.css +36 -2
  297. package/theme/ap-table/setting/sorter.less +1 -2
  298. package/theme/ap-table-modal/index.css +217 -34
  299. package/theme/ap-tag/ap-tag-group.css +28 -0
  300. package/theme/ap-tag/ap-tag.css +28 -0
  301. package/theme/ap-title/ap-title.css +28 -0
  302. package/theme/ap-upload/index.css +28 -0
  303. package/theme/ap-upload/multiple-file.css +28 -0
  304. package/theme/ap-upload/picture.css +28 -0
  305. package/theme/ap-upload/single-file.css +28 -0
  306. package/theme/ap-upload/upload.css +28 -0
  307. package/theme/ap-upload-single/index.css +28 -0
  308. package/theme/ap-view/ap-view.css +149 -0
  309. package/theme/ap-view/ap-view.less +128 -0
  310. package/theme/batch-input-group/index.css +30 -2
  311. package/theme/batch-input-group/popover-input.css +28 -0
  312. package/theme/check-card/index.css +65 -17
  313. package/theme/check-card/index.less +20 -19
  314. package/theme/editable-table/index.css +198 -19
  315. package/theme/editable-table/index.less +9 -7
  316. package/theme/full-screen/index.css +28 -0
  317. package/theme/index.css +417 -75
  318. package/theme/index.less +1 -0
  319. package/theme/mask/index.css +28 -0
  320. package/theme/mixins/config.less +26 -3
  321. package/theme/mixins/mixins.css +28 -0
  322. package/theme/mixins/mixins.less +35 -0
  323. package/theme/scroll-bar/index.css +28 -0
  324. package/theme/scroll-view/index.css +28 -0
  325. package/theme/splitter/index.css +33 -5
  326. package/theme/text/group.css +28 -0
  327. package/theme/text/index.css +36 -1
  328. package/theme/text/index.less +1 -1
  329. package/theme/work-order-modal/index.css +28 -0
@@ -163,20 +163,20 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
163
163
  title: string;
164
164
  onChange: Function;
165
165
  value: string | unknown[] | Record<string, any>;
166
- getOssAccess: GetOssAccess;
167
- dirName: string;
166
+ maxCount: number;
168
167
  needName: boolean | Record<string, any>;
168
+ getOssAccess: GetOssAccess;
169
169
  accept: string;
170
- maxSize: number;
171
- subTitle: string | VNode< RendererNode, RendererElement, {
172
- [key: string]: any;
173
- }>;
174
170
  beforeUpload: BeforeUpload;
171
+ onRemove: Function;
175
172
  customRequest: CustomRequest;
173
+ maxSize: number;
174
+ dirName: string;
176
175
  maxSizeErrorMsg: string;
177
176
  acceptErrorMsg: string;
178
- onRemove: Function;
179
- maxCount: number;
177
+ subTitle: string | VNode< RendererNode, RendererElement, {
178
+ [key: string]: any;
179
+ }>;
180
180
  maxCountErrorMsg: string;
181
181
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
182
182
  uploadRef: unknown;
@@ -2,8 +2,21 @@ import { ApBatchActionGroupProps } from './interface';
2
2
  import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { TableColumnsType } from '@aplus-frontend/antdv';
4
4
  type __VLS_Props = ApBatchActionGroupProps;
5
- declare const _default: DefineComponent<__VLS_Props, {
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: Readonly<Record<string, any>> & Record<string, any>;
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: DefineComponent<__VLS_Props, {
6
13
  columns: ComputedRef<TableColumnsType<any>> | undefined;
7
14
  dataSource: ComputedRef<any[]> | undefined;
8
15
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
9
17
  export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -1,25 +1,25 @@
1
- import { defineComponent as T, computed as n, createBlock as c, createCommentVNode as N, openBlock as m, unref as a, mergeProps as p, withCtx as r, createElementVNode as $, normalizeStyle as x, resolveDynamicComponent as h, h as w, createVNode as d, normalizeClass as z, normalizeProps as G, guardReactiveProps as M } from "vue";
2
- import { DropdownButton as S, Dropdown as V } from "@aplus-frontend/antdv";
1
+ import { defineComponent as F, useSlots as O, computed as n, createBlock as m, createCommentVNode as j, openBlock as d, unref as s, mergeProps as b, createSlots as g, withCtx as r, createElementVNode as x, normalizeStyle as E, resolveDynamicComponent as k, h as A, createVNode as i, renderList as B, renderSlot as C, normalizeProps as v, guardReactiveProps as y, normalizeClass as I } from "vue";
2
+ import { DropdownButton as q, Dropdown as H } from "@aplus-frontend/antdv";
3
3
  import "../../ap-button/index.mjs";
4
4
  import "./MenuItemGroup.vue.mjs";
5
5
  import "../../config-provider/index.mjs";
6
- import { DownOutlined as F } from "@ant-design/icons-vue";
7
- import { usePermission as O } from "@aplus-frontend/hooks";
8
- import { useInjectApTable as j } from "../../ap-table/context.mjs";
9
- import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useLocale as I } from "../../config-provider/hooks/use-locale.mjs";
11
- import { useGlobalConfig as q } from "../../config-provider/hooks/use-global-config.mjs";
12
- import P from "./MenuItemGroup.vue2.mjs";
13
- import H from "../../ap-button/ap-button.vue.mjs";
14
- const re = /* @__PURE__ */ T({
6
+ import { DownOutlined as J } from "@ant-design/icons-vue";
7
+ import { usePermission as K } from "@aplus-frontend/hooks";
8
+ import { useInjectApTable as Q } from "../../ap-table/context.mjs";
9
+ import { useNamespace as U } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { useLocale as W } from "../../config-provider/hooks/use-locale.mjs";
11
+ import { useGlobalConfig as X } from "../../config-provider/hooks/use-global-config.mjs";
12
+ import S from "./MenuItemGroup.vue2.mjs";
13
+ import Y from "../../ap-button/ap-button.vue.mjs";
14
+ const ie = /* @__PURE__ */ F({
15
15
  __name: "ApBatchActionGroup",
16
16
  props: {
17
17
  selectedRows: {},
18
18
  buttonProps: {},
19
19
  menuList: {}
20
20
  },
21
- setup(_, { expose: g }) {
22
- const { b: f } = E("ap-batch-action-group"), { t: k } = I(), { columns: A, dataSource: B } = j(), e = _, C = q("uiMode"), { hasPermission: L } = O(), b = n(
21
+ setup($, { expose: D }) {
22
+ const { b: h } = U("ap-batch-action-group"), { t: R } = W(), { columns: T, dataSource: N } = Q(), e = $, z = X("uiMode"), { hasPermission: G } = K(), w = O(), P = n(
23
23
  () => {
24
24
  var t;
25
25
  return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.dropdownType) || "default";
@@ -29,88 +29,102 @@ const re = /* @__PURE__ */ T({
29
29
  var t;
30
30
  return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.type) || "borderLink";
31
31
  }
32
- ), v = n(
32
+ ), _ = n(
33
33
  () => {
34
34
  var t;
35
- return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || k("ap.apApBatchActionGroup.batchOperation");
35
+ return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || R("ap.apApBatchActionGroup.batchOperation");
36
36
  }
37
- ), D = n(() => (e == null ? void 0 : e.selectedRows) || []), i = n(
37
+ ), M = n(() => (e == null ? void 0 : e.selectedRows) || []), p = n(
38
38
  () => {
39
39
  var t;
40
- return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ? D.value.length === 0 : !1);
40
+ return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ? M.value.length === 0 : !1);
41
41
  }
42
- ), R = n(() => {
42
+ ), V = n(() => {
43
43
  const t = {
44
44
  aplus: "#0070FF",
45
45
  admin: "#34b77c"
46
46
  };
47
- return u.value === "borderLink" ? i.value ? void 0 : t[C.value] || t.aplus : void 0;
48
- }), l = n(() => {
47
+ return u.value === "borderLink" ? p.value ? void 0 : t[z.value] || t.aplus : void 0;
48
+ }), c = n(() => {
49
49
  var t;
50
50
  return ((t = e == null ? void 0 : e.menuList) == null ? void 0 : t.filter((o) => {
51
- let s = o == null ? void 0 : o.ifShow;
52
- return !(o != null && o.ifShow) && (o != null && o.auth) && (s = () => L(o.auth)), (s == null ? void 0 : s()) ?? !0;
51
+ let a = o == null ? void 0 : o.ifShow;
52
+ return !(o != null && o.ifShow) && (o != null && o.auth) && (a = () => G(o.auth)), (a == null ? void 0 : a()) ?? !0;
53
53
  })) || [];
54
54
  });
55
- function y() {
55
+ function L() {
56
56
  return e != null && e.buttonProps ? {
57
57
  ...e.buttonProps,
58
58
  type: u.value === "borderLink" ? "default" : u.value
59
59
  } : {};
60
60
  }
61
- return g({
62
- columns: A,
63
- dataSource: B
64
- }), (t, o) => l.value.length && b.value === "dropdown" ? (m(), c(a(S), p({
61
+ return D({
62
+ columns: T,
63
+ dataSource: N
64
+ }), (t, o) => c.value.length && P.value === "dropdown" ? (d(), m(s(q), b({
65
65
  key: 0,
66
- class: [a(f)()]
66
+ class: [s(h)()]
67
67
  }, {
68
68
  ...t.$attrs,
69
- ...y(),
70
- disabled: i.value
71
- }), {
69
+ ...L(),
70
+ disabled: p.value
71
+ }), g({
72
72
  overlay: r(() => [
73
- d(P, p({
73
+ i(S, b({
74
74
  ...e
75
- }, { "menu-list": l.value }), null, 16, ["menu-list"])
75
+ }, { "menu-list": c.value }), null, 16, ["menu-list"])
76
76
  ]),
77
77
  default: r(() => [
78
- $("span", {
79
- style: x({
80
- color: R.value
78
+ x("span", {
79
+ style: E({
80
+ color: V.value
81
81
  })
82
82
  }, [
83
- (m(), c(h(w("span", [v.value]))))
83
+ (d(), m(k(A("span", [_.value]))))
84
84
  ], 4)
85
85
  ]),
86
- _: 1
87
- }, 16, ["class"])) : l.value.length && b.value === "default" ? (m(), c(a(V), {
86
+ _: 2
87
+ }, [
88
+ B(w, (a, l) => ({
89
+ name: l,
90
+ fn: r((f) => [
91
+ C(t.$slots, l, v(y(f || {})))
92
+ ])
93
+ }))
94
+ ]), 1040, ["class"])) : c.value.length && P.value === "default" ? (d(), m(s(H), {
88
95
  key: 1,
89
- class: z([a(f)()]),
90
- disabled: i.value
91
- }, {
96
+ class: I([s(h)()]),
97
+ disabled: p.value
98
+ }, g({
92
99
  overlay: r(() => [
93
- d(P, p({
100
+ i(S, b({
94
101
  ...e
95
- }, { "menu-list": l.value }), null, 16, ["menu-list"])
102
+ }, { "menu-list": c.value }), null, 16, ["menu-list"])
96
103
  ]),
97
104
  default: r(() => [
98
- d(a(H), G(M({
105
+ i(s(Y), v(y({
99
106
  ...t.$attrs,
100
- ...y(),
107
+ ...L(),
101
108
  type: u.value
102
109
  })), {
103
110
  default: r(() => [
104
- (m(), c(h(w("span", [v.value])))),
105
- d(a(F))
111
+ (d(), m(k(A("span", [_.value])))),
112
+ i(s(J))
106
113
  ]),
107
114
  _: 1
108
115
  }, 16)
109
116
  ]),
110
- _: 1
111
- }, 8, ["class", "disabled"])) : N("", !0);
117
+ _: 2
118
+ }, [
119
+ B(w, (a, l) => ({
120
+ name: l,
121
+ fn: r((f) => [
122
+ C(t.$slots, l, v(y(f || {})))
123
+ ])
124
+ }))
125
+ ]), 1032, ["class", "disabled"])) : j("", !0);
112
126
  }
113
127
  });
114
128
  export {
115
- re as default
129
+ ie as default
116
130
  };
@@ -904,7 +904,9 @@ declare const ApBatchActionGroup: {
904
904
  }> & Readonly<{}>, {
905
905
  columns: ComputedRef<TableColumnsType<any>> | undefined;
906
906
  dataSource: ComputedRef<any[]> | undefined;
907
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
907
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
908
+ $slots: Readonly<Record<string, any>> & Record<string, any>;
909
+ }) & ( Plugin & (new (...args: any[]) => {
908
910
  $props: {
909
911
  onClick?: () => void;
910
912
  };
@@ -74,10 +74,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
74
74
  }>> & Readonly<{}>, {
75
75
  step: number;
76
76
  value: (string | number)[];
77
- placeholder: string[];
78
77
  max: number;
79
78
  min: number;
80
79
  editable: boolean;
80
+ placeholder: string[];
81
81
  precision: number;
82
82
  perfix: string;
83
83
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -40,10 +40,10 @@ declare const ApSizeInput: {
40
40
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
41
41
  step: number;
42
42
  value: (string | number)[];
43
- placeholder: string[];
44
43
  max: number;
45
44
  min: number;
46
45
  editable: boolean;
46
+ placeholder: string[];
47
47
  precision: number;
48
48
  perfix: string;
49
49
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
@@ -92,10 +92,10 @@ declare const ApSizeInput: {
92
92
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
93
93
  step: number;
94
94
  value: (string | number)[];
95
- placeholder: string[];
96
95
  max: number;
97
96
  min: number;
98
97
  editable: boolean;
98
+ placeholder: string[];
99
99
  precision: number;
100
100
  perfix: string;
101
101
  }>;
@@ -141,10 +141,10 @@ declare const ApSizeInput: {
141
141
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
142
142
  step: number;
143
143
  value: (string | number)[];
144
- placeholder: string[];
145
144
  max: number;
146
145
  min: number;
147
146
  editable: boolean;
147
+ placeholder: string[];
148
148
  precision: number;
149
149
  perfix: string;
150
150
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
@@ -45,19 +45,19 @@ declare const ApTableModal: {
45
45
  finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
46
46
  }, PublicProps, {
47
47
  mask: boolean;
48
- api: (params: any) => Promise<{
49
- records: any[];
50
- total: number;
51
- }>;
52
- maskClosable: boolean;
53
48
  confirmLoading: boolean;
54
49
  closable: boolean;
55
50
  centered: boolean;
51
+ maskClosable: boolean;
56
52
  forceRender: boolean;
57
53
  destroyOnClose: boolean;
58
54
  getContainer: string | false | HTMLElement | (() => HTMLElement);
59
55
  keyboard: boolean;
60
56
  focusTriggerAfterClose: boolean;
57
+ api: (params: any) => Promise<{
58
+ records: any[];
59
+ total: number;
60
+ }>;
61
61
  maxCount: number;
62
62
  isRenderModalTitleSuffix: boolean;
63
63
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -131,19 +131,19 @@ declare const ApTableModal: {
131
131
  } | null;
132
132
  }, {}, {}, {}, {
133
133
  mask: boolean;
134
- api: (params: any) => Promise<{
135
- records: any[];
136
- total: number;
137
- }>;
138
- maskClosable: boolean;
139
134
  confirmLoading: boolean;
140
135
  closable: boolean;
141
136
  centered: boolean;
137
+ maskClosable: boolean;
142
138
  forceRender: boolean;
143
139
  destroyOnClose: boolean;
144
140
  getContainer: string | false | HTMLElement | (() => HTMLElement);
145
141
  keyboard: boolean;
146
142
  focusTriggerAfterClose: boolean;
143
+ api: (params: any) => Promise<{
144
+ records: any[];
145
+ total: number;
146
+ }>;
147
147
  maxCount: number;
148
148
  isRenderModalTitleSuffix: boolean;
149
149
  }>;
@@ -187,19 +187,19 @@ declare const ApTableModal: {
187
187
  finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
188
188
  }, string, {
189
189
  mask: boolean;
190
- api: (params: any) => Promise<{
191
- records: any[];
192
- total: number;
193
- }>;
194
- maskClosable: boolean;
195
190
  confirmLoading: boolean;
196
191
  closable: boolean;
197
192
  centered: boolean;
193
+ maskClosable: boolean;
198
194
  forceRender: boolean;
199
195
  destroyOnClose: boolean;
200
196
  getContainer: string | false | HTMLElement | (() => HTMLElement);
201
197
  keyboard: boolean;
202
198
  focusTriggerAfterClose: boolean;
199
+ api: (params: any) => Promise<{
200
+ records: any[];
201
+ total: number;
202
+ }>;
203
203
  maxCount: number;
204
204
  isRenderModalTitleSuffix: boolean;
205
205
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
@@ -40,19 +40,19 @@ declare const _default: DefineComponent<__VLS_Props, {
40
40
  onFinish?: ((selectedRowKeys: (string | number)[], selectedRows: any[]) => any) | undefined;
41
41
  }>, {
42
42
  mask: boolean;
43
- api: (params: any) => Promise<{
44
- records: any[];
45
- total: number;
46
- }>;
47
- maskClosable: boolean;
48
43
  confirmLoading: boolean;
49
44
  closable: boolean;
50
45
  centered: boolean;
46
+ maskClosable: boolean;
51
47
  forceRender: boolean;
52
48
  destroyOnClose: boolean;
53
49
  getContainer: string | false | HTMLElement | (() => HTMLElement);
54
50
  keyboard: boolean;
55
51
  focusTriggerAfterClose: boolean;
52
+ api: (params: any) => Promise<{
53
+ records: any[];
54
+ total: number;
55
+ }>;
56
56
  maxCount: number;
57
57
  isRenderModalTitleSuffix: boolean;
58
58
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -0,0 +1,6 @@
1
+ import { ApViewProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<ApViewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApViewProps> & Readonly<{}>, {
4
+ maxViewNum: number;
5
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./ap-view.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,174 @@
1
+ import { defineComponent as Y, computed as N, ref as p, createVNode as g, watch as x, createBlock as $, openBlock as j, unref as w, normalizeClass as E, withCtx as z, createElementVNode as M } from "vue";
2
+ import "../../config-provider/index.mjs";
3
+ import W from "./icons/line-down.vue.mjs";
4
+ import { ApBatchActionGroup as q } from "../ap-batch-action-group/index.mjs";
5
+ import "./components/main-button-content.vue.mjs";
6
+ import "./components/menu-list-content.vue.mjs";
7
+ import { useViewProvide as H } from "./hooks/use-view-provide.mjs";
8
+ import { useInjectApTable as J } from "../../ap-table/context.mjs";
9
+ import { SYSTEM_VIEW_KEY as y } from "./utils/enum.mjs";
10
+ import { isValid as Q } from "@aplus-frontend/utils";
11
+ import { useGlobalConfig as X } from "../../config-provider/hooks/use-global-config.mjs";
12
+ import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
13
+ import { useLocale as h } from "../../config-provider/hooks/use-locale.mjs";
14
+ import U from "./components/main-button-content.vue2.mjs";
15
+ import R from "./components/menu-list-content.vue2.mjs";
16
+ const ve = /* @__PURE__ */ Y({
17
+ __name: "ap-view",
18
+ props: {
19
+ tableKey: {},
20
+ saveDataSource: {},
21
+ viewCacheOption: {},
22
+ maxViewNum: {
23
+ default: 20
24
+ }
25
+ },
26
+ setup(F) {
27
+ const f = F, L = X("viewCacheOption"), {
28
+ b: d
29
+ } = Z("ap-view"), {
30
+ t: T
31
+ } = h(), V = N(() => ({
32
+ viewKey: y,
33
+ viewName: T("ap.apView.systemView")
34
+ })), {
35
+ getSearchFormValues: k,
36
+ setSearchFormValues: A,
37
+ submit: B,
38
+ reset: G
39
+ } = J(), P = p(!1), K = p(!1), r = p("system"), D = {
40
+ dropdownType: "dropdown",
41
+ content: g(U, {
42
+ maxViewNum: f.maxViewNum
43
+ }, null)
44
+ }, s = p([V.value]), I = N(() => s.value.map((t) => ({
45
+ id: t.viewKey,
46
+ content: g(R, {
47
+ view: t
48
+ }, null)
49
+ }))), n = {
50
+ getSearchFormValues: k,
51
+ setSearchFormValues: A,
52
+ submit: B,
53
+ reset: G,
54
+ ...f.saveDataSource
55
+ }, e = {
56
+ ...L.value,
57
+ ...f.viewCacheOption
58
+ }, _ = () => {
59
+ const t = s.value.find((a) => a.isDefault);
60
+ return (t == null ? void 0 : t.viewKey) ?? y;
61
+ }, c = {
62
+ getViewList: async (t) => {
63
+ var a;
64
+ try {
65
+ const {
66
+ tableKey: o
67
+ } = t, i = await ((a = e == null ? void 0 : e.getViewList) == null ? void 0 : a.call(e, {
68
+ tableKey: o
69
+ }));
70
+ return s.value = [V.value, ...i ?? []], r.value = _(), s.value;
71
+ } catch {
72
+ return s.value = [V.value], r.value = y, s.value;
73
+ }
74
+ },
75
+ addView: async (t) => {
76
+ var u;
77
+ const {
78
+ tableKey: a,
79
+ viewKey: o,
80
+ viewName: i,
81
+ isDefault: l,
82
+ viewConfig: m
83
+ } = t;
84
+ await ((u = e == null ? void 0 : e.addView) == null ? void 0 : u.call(e, {
85
+ tableKey: a,
86
+ viewKey: o,
87
+ viewName: i,
88
+ isDefault: l,
89
+ viewConfig: m
90
+ })), l && (s.value = s.value.map((v) => ({
91
+ ...v,
92
+ isDefault: !1
93
+ }))), s.value = [...s.value, {
94
+ viewKey: o,
95
+ viewName: i,
96
+ isDefault: l,
97
+ viewConfig: m
98
+ }], r.value = o;
99
+ },
100
+ changeView: async (t) => {
101
+ var v;
102
+ const {
103
+ tableKey: a,
104
+ viewKey: o,
105
+ viewName: i,
106
+ isDefault: l,
107
+ viewConfig: m
108
+ } = t;
109
+ await ((v = e == null ? void 0 : e.changeView) == null ? void 0 : v.call(e, {
110
+ tableKey: a,
111
+ viewKey: o,
112
+ viewName: i,
113
+ isDefault: l,
114
+ viewConfig: m
115
+ })), l && (s.value = s.value.map((b) => ({
116
+ ...b,
117
+ isDefault: !1
118
+ })));
119
+ const u = s.value.find((b) => b.viewKey === o);
120
+ u && (u.viewName = i, u.isDefault = l, u.viewConfig = m), r.value = o;
121
+ },
122
+ removeView: async (t) => {
123
+ var i;
124
+ const {
125
+ tableKey: a,
126
+ viewKey: o
127
+ } = t;
128
+ await ((i = e == null ? void 0 : e.removeView) == null ? void 0 : i.call(e, {
129
+ tableKey: a,
130
+ viewKey: o
131
+ })), s.value = s.value.filter((l) => l.viewKey !== o), o === r.value && (r.value = _());
132
+ }
133
+ }, S = {
134
+ tableKey: f.tableKey,
135
+ currentViewKey: r,
136
+ popoverOpen: P,
137
+ menuOpen: K,
138
+ viewList: s,
139
+ viewListCRUD: c,
140
+ saveDataSource: n
141
+ };
142
+ return x(r, (t) => {
143
+ const a = s.value.find((o) => o.viewKey === t);
144
+ a && setTimeout(() => {
145
+ var o, i, l, m;
146
+ a.viewKey === y ? (o = n.reset) == null || o.call(n) : ((l = n.setSearchFormValues) == null || l.call(n, ((i = a.viewConfig) == null ? void 0 : i.searchForm) ?? {}), (m = n.submit) == null || m.call(n));
147
+ });
148
+ }), H(S), x(() => f.tableKey, (t) => {
149
+ var a;
150
+ Q(t) && ((a = c == null ? void 0 : c.getViewList) == null || a.call(c, {
151
+ tableKey: t
152
+ }));
153
+ }, {
154
+ immediate: !0
155
+ }), (t, a) => (j(), $(w(q), {
156
+ open: K.value,
157
+ "onUpdate:open": a[0] || (a[0] = (o) => K.value = o),
158
+ class: E([w(d)()]),
159
+ "button-props": D,
160
+ "menu-list": I.value,
161
+ "overlay-class-name": [w(d)("overlay")],
162
+ trigger: "click",
163
+ placement: "bottom"
164
+ }, {
165
+ icon: z(() => [M("div", {
166
+ class: E([w(d)("icon")])
167
+ }, [g(W)], 2)]),
168
+ _: 1
169
+ }, 8, ["open", "class", "menu-list", "overlay-class-name"]));
170
+ }
171
+ });
172
+ export {
173
+ ve as default
174
+ };