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

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 (278) 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/drawer-form/index.vue.d.ts +10 -10
  5. package/es/src/ap-form/interface.d.ts +31 -1
  6. package/es/src/ap-form/item/index.vue.d.ts +22 -22
  7. package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  8. package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
  9. package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  10. package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
  11. package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
  12. package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
  13. package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
  14. package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
  15. package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
  16. package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  17. package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  18. package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
  19. package/es/src/ap-form/render/item.vue.d.ts +2 -2
  20. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  21. package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
  22. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
  23. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  24. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
  25. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
  26. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  27. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
  28. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
  29. package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  30. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
  31. package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
  32. package/es/src/ap-form/search-form/index.vue.mjs +127 -127
  33. package/es/src/ap-grid/index.vue.mjs +97 -93
  34. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
  35. package/es/src/ap-table/ap-table.vue2.mjs +108 -104
  36. package/es/src/ap-table/constants.d.ts +161 -161
  37. package/es/src/ap-table/context.d.ts +5 -0
  38. package/es/src/ap-table/context.mjs +13 -5
  39. package/es/src/ap-table/utils.d.ts +147 -147
  40. package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
  41. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  42. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
  43. package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
  44. package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  45. package/es/src/business/ap-size-input/index.d.ts +3 -3
  46. package/es/src/business/ap-table-modal/index.d.ts +15 -15
  47. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  48. package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
  49. package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
  50. package/es/src/business/ap-view/ap-view.vue2.mjs +171 -0
  51. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  52. package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
  53. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +175 -0
  54. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  55. package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
  56. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
  57. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  58. package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
  59. package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  60. package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
  61. package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  62. package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
  63. package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  64. package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
  65. package/es/src/business/ap-view/index.d.ts +27 -0
  66. package/es/src/business/ap-view/index.mjs +8 -0
  67. package/es/src/business/ap-view/interface.d.ts +54 -0
  68. package/es/src/business/ap-view/interface.mjs +1 -0
  69. package/es/src/business/ap-view/style/css.d.ts +0 -0
  70. package/es/src/business/ap-view/style/css.js +1 -0
  71. package/es/src/business/ap-view/style/index.d.ts +0 -0
  72. package/es/src/business/ap-view/style/index.js +1 -0
  73. package/es/src/business/ap-view/utils/enum.d.ts +1 -0
  74. package/es/src/business/ap-view/utils/enum.mjs +4 -0
  75. package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
  76. package/es/src/business/ap-view/utils/uuid.mjs +22 -0
  77. package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  78. package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
  79. package/es/src/business/index.d.ts +1 -0
  80. package/es/src/business/index.mjs +25 -23
  81. package/es/src/config-provider/config-provider-props.d.ts +5 -0
  82. package/es/src/config-provider/config-provider-props.mjs +4 -0
  83. package/es/src/config-provider/config-provider.d.ts +25 -1
  84. package/es/src/config-provider/config-provider.mjs +21 -20
  85. package/es/src/config-provider/css-var.d.ts +14 -0
  86. package/es/src/config-provider/css-var.mjs +40 -12
  87. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
  88. package/es/src/config-provider/index.d.ts +89 -3
  89. package/es/src/full-screen/interface.d.ts +1 -1
  90. package/es/src/index.mjs +61 -59
  91. package/es/src/locale/lang/en.mjs +22 -1
  92. package/es/src/locale/lang/zh-cn.mjs +22 -1
  93. package/es/src/path-map.mjs +2 -1
  94. package/es/src/utils/config-provider-preset.d.ts +4 -4
  95. package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  96. package/lib/index.js +1 -1
  97. package/lib/src/ap-field/select/index.vue.d.ts +2 -2
  98. package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
  99. package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  100. package/lib/src/ap-form/interface.d.ts +31 -1
  101. package/lib/src/ap-form/item/index.vue.d.ts +22 -22
  102. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  103. package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
  104. package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  105. package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
  106. package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
  107. package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
  108. package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
  109. package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
  110. package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
  111. package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  112. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  113. package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
  114. package/lib/src/ap-form/render/item.vue.d.ts +2 -2
  115. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  116. package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
  117. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
  118. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  119. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
  120. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
  121. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  122. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
  123. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
  124. package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  125. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
  126. package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
  127. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  128. package/lib/src/ap-grid/index.vue.js +1 -1
  129. package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
  130. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  131. package/lib/src/ap-table/constants.d.ts +161 -161
  132. package/lib/src/ap-table/context.d.ts +5 -0
  133. package/lib/src/ap-table/context.js +1 -1
  134. package/lib/src/ap-table/utils.d.ts +147 -147
  135. package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
  136. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  137. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  138. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
  139. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  140. package/lib/src/business/ap-size-input/index.d.ts +3 -3
  141. package/lib/src/business/ap-table-modal/index.d.ts +15 -15
  142. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  143. package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
  144. package/lib/src/business/ap-view/ap-view.vue.js +1 -0
  145. package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
  146. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  147. package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
  148. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
  149. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  150. package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
  151. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
  152. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  153. package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
  154. package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  155. package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
  156. package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  157. package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
  158. package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  159. package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
  160. package/lib/src/business/ap-view/index.d.ts +27 -0
  161. package/lib/src/business/ap-view/index.js +1 -0
  162. package/lib/src/business/ap-view/interface.d.ts +54 -0
  163. package/lib/src/business/ap-view/interface.js +1 -0
  164. package/lib/src/business/ap-view/style/css.cjs +1 -0
  165. package/lib/src/business/ap-view/style/css.d.ts +0 -0
  166. package/lib/src/business/ap-view/style/index.cjs +1 -0
  167. package/lib/src/business/ap-view/style/index.d.ts +0 -0
  168. package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
  169. package/lib/src/business/ap-view/utils/enum.js +1 -0
  170. package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
  171. package/lib/src/business/ap-view/utils/uuid.js +1 -0
  172. package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  173. package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
  174. package/lib/src/business/index.d.ts +1 -0
  175. package/lib/src/business/index.js +1 -1
  176. package/lib/src/config-provider/config-provider-props.d.ts +5 -0
  177. package/lib/src/config-provider/config-provider-props.js +1 -1
  178. package/lib/src/config-provider/config-provider.d.ts +25 -1
  179. package/lib/src/config-provider/config-provider.js +1 -1
  180. package/lib/src/config-provider/css-var.d.ts +14 -0
  181. package/lib/src/config-provider/css-var.js +1 -1
  182. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
  183. package/lib/src/config-provider/index.d.ts +89 -3
  184. package/lib/src/full-screen/interface.d.ts +1 -1
  185. package/lib/src/index.js +1 -1
  186. package/lib/src/locale/lang/en.js +1 -1
  187. package/lib/src/locale/lang/zh-cn.js +1 -1
  188. package/lib/src/path-map.js +1 -1
  189. package/lib/src/utils/config-provider-preset.d.ts +4 -4
  190. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  191. package/package.json +7 -7
  192. package/theme/ap-action/item-dropdown.css +28 -0
  193. package/theme/ap-action/item-dropdown.less +1 -1
  194. package/theme/ap-action/item.css +35 -1
  195. package/theme/ap-action/item.less +1 -2
  196. package/theme/ap-appendix/ap-appendix.css +28 -0
  197. package/theme/ap-attachment/ap-attachment.css +28 -0
  198. package/theme/ap-batch-action/ap-batch-action.css +28 -0
  199. package/theme/ap-button/ap-button.css +28 -0
  200. package/theme/ap-card/ap-card.css +28 -0
  201. package/theme/ap-descriptions/ap-descriptions.css +28 -0
  202. package/theme/ap-download/ap-download.css +28 -0
  203. package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
  204. package/theme/ap-field/checkbox.css +28 -0
  205. package/theme/ap-field/index.css +28 -0
  206. package/theme/ap-field/number.css +28 -0
  207. package/theme/ap-field/radio.css +28 -0
  208. package/theme/ap-field/text-area.css +28 -0
  209. package/theme/ap-form/ap-form-item-group.css +28 -0
  210. package/theme/ap-form/ap-form-item.css +28 -0
  211. package/theme/ap-form/drawer-form.css +28 -0
  212. package/theme/ap-form/index.css +169 -0
  213. package/theme/ap-form/item-text-group.css +28 -0
  214. package/theme/ap-form/item-text.css +28 -0
  215. package/theme/ap-form/modal-form.css +28 -0
  216. package/theme/ap-form/search-form-sorter.css +120 -0
  217. package/theme/ap-form/search-form-sorter.less +71 -0
  218. package/theme/ap-form/search-form.css +169 -0
  219. package/theme/ap-form/search-form.less +56 -0
  220. package/theme/ap-grid/editable.css +28 -0
  221. package/theme/ap-grid/index.css +176 -1
  222. package/theme/ap-group-search/ap-extension-select.css +28 -0
  223. package/theme/ap-group-search/ap-group-search.css +28 -0
  224. package/theme/ap-group-search/ap-popover-select.css +28 -0
  225. package/theme/ap-image/ap-image.css +28 -0
  226. package/theme/ap-input-radio/ap-input-radio.css +28 -0
  227. package/theme/ap-label/ap-label.css +28 -0
  228. package/theme/ap-ladder/ap-ladder.css +28 -0
  229. package/theme/ap-layout/ap-info-layout.css +28 -0
  230. package/theme/ap-list/index.css +28 -0
  231. package/theme/ap-product-info/ap-product-info.css +28 -0
  232. package/theme/ap-select-layout/ap-select-layout.css +28 -0
  233. package/theme/ap-size-input/ap-size-input.css +28 -0
  234. package/theme/ap-status/ap-status.css +28 -0
  235. package/theme/ap-summary/index.css +28 -0
  236. package/theme/ap-table/ap-table-index.css +28 -0
  237. package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
  238. package/theme/ap-table/ap-table.css +190 -13
  239. package/theme/ap-table/ap-table.less +0 -1
  240. package/theme/ap-table/setting/index.css +42 -0
  241. package/theme/ap-table/setting/modal.css +36 -0
  242. package/theme/ap-table/setting/modal.less +1 -0
  243. package/theme/ap-table/setting/select-group.css +28 -0
  244. package/theme/ap-table/setting/sortable-item-meta.css +28 -0
  245. package/theme/ap-table/setting/sortable-item.css +28 -0
  246. package/theme/ap-table/setting/sorter.css +34 -0
  247. package/theme/ap-table/setting/sorter.less +1 -2
  248. package/theme/ap-table-modal/index.css +190 -13
  249. package/theme/ap-tag/ap-tag-group.css +28 -0
  250. package/theme/ap-tag/ap-tag.css +28 -0
  251. package/theme/ap-title/ap-title.css +28 -0
  252. package/theme/ap-upload/index.css +28 -0
  253. package/theme/ap-upload/multiple-file.css +28 -0
  254. package/theme/ap-upload/picture.css +28 -0
  255. package/theme/ap-upload/single-file.css +28 -0
  256. package/theme/ap-upload/upload.css +28 -0
  257. package/theme/ap-upload-single/index.css +28 -0
  258. package/theme/ap-view/ap-view.css +149 -0
  259. package/theme/ap-view/ap-view.less +128 -0
  260. package/theme/batch-input-group/index.css +28 -0
  261. package/theme/batch-input-group/popover-input.css +28 -0
  262. package/theme/check-card/index.css +49 -1
  263. package/theme/check-card/index.less +3 -4
  264. package/theme/editable-table/index.css +176 -1
  265. package/theme/full-screen/index.css +28 -0
  266. package/theme/index.css +340 -15
  267. package/theme/index.less +1 -0
  268. package/theme/mask/index.css +28 -0
  269. package/theme/mixins/config.less +1 -0
  270. package/theme/mixins/mixins.css +28 -0
  271. package/theme/mixins/mixins.less +35 -0
  272. package/theme/scroll-bar/index.css +28 -0
  273. package/theme/scroll-view/index.css +28 -0
  274. package/theme/splitter/index.css +28 -0
  275. package/theme/text/group.css +28 -0
  276. package/theme/text/index.css +36 -1
  277. package/theme/text/index.less +1 -1
  278. 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,171 @@
1
+ import { defineComponent as M, computed as N, ref as p, createVNode as g, watch as S, onMounted as Y, createBlock as $, openBlock as j, unref as w, normalizeClass as x, withCtx as z, createElementVNode as W } from "vue";
2
+ import "../../config-provider/index.mjs";
3
+ import q from "./icons/line-down.vue.mjs";
4
+ import { ApBatchActionGroup as H } 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 J } from "./hooks/use-view-provide.mjs";
8
+ import { useInjectApTable as Q } from "../../ap-table/context.mjs";
9
+ import { SYSTEM_VIEW_KEY as y } from "./utils/enum.mjs";
10
+ import { useGlobalConfig as X } from "../../config-provider/hooks/use-global-config.mjs";
11
+ import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
12
+ import { useLocale as U } from "../../config-provider/hooks/use-locale.mjs";
13
+ import h from "./components/main-button-content.vue2.mjs";
14
+ import R from "./components/menu-list-content.vue2.mjs";
15
+ const fe = /* @__PURE__ */ M({
16
+ __name: "ap-view",
17
+ props: {
18
+ tableKey: {},
19
+ saveDataSource: {},
20
+ viewCacheOption: {},
21
+ maxViewNum: {
22
+ default: 20
23
+ }
24
+ },
25
+ setup(E) {
26
+ const c = E, L = X("viewCacheOption"), {
27
+ b: d
28
+ } = Z("ap-view"), {
29
+ t: T
30
+ } = U(), V = N(() => ({
31
+ viewKey: y,
32
+ viewName: T("ap.apView.systemView")
33
+ })), {
34
+ getSearchFormValues: k,
35
+ setSearchFormValues: A,
36
+ submit: B,
37
+ reset: F
38
+ } = Q(), G = p(!1), K = p(!1), r = p("system"), P = {
39
+ dropdownType: "dropdown",
40
+ content: g(h, {
41
+ maxViewNum: c.maxViewNum
42
+ }, null)
43
+ }, o = p([V.value]), D = N(() => o.value.map((t) => ({
44
+ id: t.viewKey,
45
+ content: g(R, {
46
+ view: t
47
+ }, null)
48
+ }))), n = {
49
+ getSearchFormValues: k,
50
+ setSearchFormValues: A,
51
+ submit: B,
52
+ reset: F,
53
+ ...c.saveDataSource
54
+ }, e = {
55
+ ...L.value,
56
+ ...c.viewCacheOption
57
+ }, _ = () => {
58
+ const t = o.value.find((s) => s.isDefault);
59
+ return (t == null ? void 0 : t.viewKey) ?? y;
60
+ }, m = {
61
+ getViewList: async (t) => {
62
+ var s;
63
+ try {
64
+ const {
65
+ tableKey: a
66
+ } = t, l = await ((s = e == null ? void 0 : e.getViewList) == null ? void 0 : s.call(e, {
67
+ tableKey: a
68
+ }));
69
+ return o.value = [V.value, ...l ?? []], r.value = _(), o.value;
70
+ } catch {
71
+ return o.value = [V.value], r.value = y, o.value;
72
+ }
73
+ },
74
+ addView: async (t) => {
75
+ var u;
76
+ const {
77
+ tableKey: s,
78
+ viewKey: a,
79
+ viewName: l,
80
+ isDefault: i,
81
+ viewConfig: f
82
+ } = t;
83
+ await ((u = e == null ? void 0 : e.addView) == null ? void 0 : u.call(e, {
84
+ tableKey: s,
85
+ viewKey: a,
86
+ viewName: l,
87
+ isDefault: i,
88
+ viewConfig: f
89
+ })), i && (o.value = o.value.map((v) => ({
90
+ ...v,
91
+ isDefault: !1
92
+ }))), o.value = [...o.value, {
93
+ viewKey: a,
94
+ viewName: l,
95
+ isDefault: i,
96
+ viewConfig: f
97
+ }], r.value = a;
98
+ },
99
+ changeView: async (t) => {
100
+ var v;
101
+ const {
102
+ tableKey: s,
103
+ viewKey: a,
104
+ viewName: l,
105
+ isDefault: i,
106
+ viewConfig: f
107
+ } = t;
108
+ await ((v = e == null ? void 0 : e.changeView) == null ? void 0 : v.call(e, {
109
+ tableKey: s,
110
+ viewKey: a,
111
+ viewName: l,
112
+ isDefault: i,
113
+ viewConfig: f
114
+ })), i && (o.value = o.value.map((b) => ({
115
+ ...b,
116
+ isDefault: !1
117
+ })));
118
+ const u = o.value.find((b) => b.viewKey === a);
119
+ u && (u.viewName = l, u.isDefault = i, u.viewConfig = f), r.value = a;
120
+ },
121
+ removeView: async (t) => {
122
+ var l;
123
+ const {
124
+ tableKey: s,
125
+ viewKey: a
126
+ } = t;
127
+ await ((l = e == null ? void 0 : e.removeView) == null ? void 0 : l.call(e, {
128
+ tableKey: s,
129
+ viewKey: a
130
+ })), o.value = o.value.filter((i) => i.viewKey !== a), a === r.value && (r.value = _());
131
+ }
132
+ }, I = {
133
+ tableKey: c.tableKey,
134
+ currentViewKey: r,
135
+ popoverOpen: G,
136
+ menuOpen: K,
137
+ viewList: o,
138
+ viewListCRUD: m,
139
+ saveDataSource: n
140
+ };
141
+ return S(r, (t) => {
142
+ const s = o.value.find((a) => a.viewKey === t);
143
+ s && setTimeout(() => {
144
+ var a, l, i;
145
+ s.viewKey === y ? (a = n.reset) == null || a.call(n) : ((l = n.setSearchFormValues) == null || l.call(n, s.viewConfig ?? {}), (i = n.submit) == null || i.call(n));
146
+ });
147
+ }), J(I), Y(() => {
148
+ var t;
149
+ (t = m == null ? void 0 : m.getViewList) == null || t.call(m, {
150
+ tableKey: c.tableKey
151
+ });
152
+ }), (t, s) => (j(), $(w(H), {
153
+ open: K.value,
154
+ "onUpdate:open": s[0] || (s[0] = (a) => K.value = a),
155
+ class: x([w(d)()]),
156
+ "button-props": P,
157
+ "menu-list": D.value,
158
+ "overlay-class-name": [w(d)("overlay")],
159
+ trigger: "click",
160
+ placement: "bottom"
161
+ }, {
162
+ icon: z(() => [W("div", {
163
+ class: x([w(d)("icon")])
164
+ }, [g(q)], 2)]),
165
+ _: 1
166
+ }, 8, ["open", "class", "menu-list", "overlay-class-name"]));
167
+ }
168
+ });
169
+ export {
170
+ fe as default
171
+ };