@aplus-frontend/ui 6.29.3 → 6.30.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 (205) hide show
  1. package/es/src/ag-grid/index.vue.mjs +228 -222
  2. package/es/src/ag-grid/renderer/select.mjs +8 -11
  3. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +5 -6
  4. package/es/src/ap-field/checkbox/index.vue.d.ts +1 -1
  5. package/es/src/ap-field/checkbox/read.vue.d.ts +1 -1
  6. package/es/src/ap-field/date/index.vue.d.ts +4 -4
  7. package/es/src/ap-field/date/index.vue.mjs +11 -10
  8. package/es/src/ap-field/date/read.vue.d.ts +1 -1
  9. package/es/src/ap-field/date/read.vue2.mjs +8 -7
  10. package/es/src/ap-field/date-range/index.vue.d.ts +4 -4
  11. package/es/src/ap-field/date-range/index.vue.mjs +1 -0
  12. package/es/src/ap-field/date-range/read.vue.d.ts +1 -1
  13. package/es/src/ap-field/date-range/read.vue2.mjs +1 -0
  14. package/es/src/ap-field/index.d.ts +7 -7
  15. package/es/src/ap-field/number/index.vue.d.ts +90 -50
  16. package/es/src/ap-field/number/index.vue.mjs +14 -12
  17. package/es/src/ap-field/number/read.vue2.mjs +8 -6
  18. package/es/src/ap-field/rate/index.vue.d.ts +6 -6
  19. package/es/src/ap-field/select/index.vue.d.ts +241 -241
  20. package/es/src/ap-field/select/index.vue.mjs +27 -27
  21. package/es/src/ap-field/select/read.vue2.mjs +27 -27
  22. package/es/src/ap-field/slider/index.vue.d.ts +9 -9
  23. package/es/src/ap-field/switch/index.vue.d.ts +1 -1
  24. package/es/src/ap-field/switch/read.vue.d.ts +1 -1
  25. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  26. package/es/src/ap-field/text/index.vue2.mjs +39 -38
  27. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  28. package/es/src/ap-field/text/password.vue.mjs +34 -33
  29. package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
  30. package/es/src/ap-field/text/read-password.vue2.mjs +31 -30
  31. package/es/src/ap-field/text/read.vue.d.ts +1 -1
  32. package/es/src/ap-field/text/read.vue2.mjs +21 -20
  33. package/es/src/ap-field/text-area/index.vue.d.ts +67 -57
  34. package/es/src/ap-field/text-area/index.vue.mjs +15 -14
  35. package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
  36. package/es/src/ap-field/text-area/read.vue2.mjs +11 -10
  37. package/es/src/ap-field/tree-select/index.vue.d.ts +326 -326
  38. package/es/src/ap-field/tree-select/index.vue.mjs +46 -46
  39. package/es/src/ap-field/tree-select/read.vue2.mjs +45 -45
  40. package/es/src/ap-form/ap-form.vue.d.ts +71 -67
  41. package/es/src/ap-form/drawer-form/index.vue.d.ts +65 -65
  42. package/es/src/ap-form/item/index.vue.d.ts +36 -36
  43. package/es/src/ap-form/item/index.vue.mjs +10 -10
  44. package/es/src/ap-form/items/number/index.vue.d.ts +103 -59
  45. package/es/src/ap-form/items/select/index.vue.d.ts +306 -306
  46. package/es/src/ap-form/items/text/index.vue.d.ts +19 -17
  47. package/es/src/ap-form/items/text/password.vue.d.ts +19 -17
  48. package/es/src/ap-form/items/text-area/index.vue.d.ts +138 -118
  49. package/es/src/ap-form/items/tree-select/index.vue.d.ts +407 -407
  50. package/es/src/ap-form/modal-form/index.vue.d.ts +69 -70
  51. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +5 -6
  52. package/es/src/ap-form/search-form/index.vue.d.ts +67 -67
  53. package/es/src/ap-form/search-form/index.vue.mjs +40 -40
  54. package/es/src/ap-grid/constants.d.ts +3 -0
  55. package/es/src/ap-grid/constants.mjs +6 -3
  56. package/es/src/ap-grid/index.vue.mjs +221 -214
  57. package/es/src/ap-grid/utils/table.d.ts +1 -1
  58. package/es/src/ap-grid/utils/table.mjs +59 -62
  59. package/es/src/ap-table/constants.d.ts +499 -465
  60. package/es/src/ap-table/utils.d.ts +1 -1
  61. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +8 -8
  62. package/es/src/business/ap-batch-action-group/index.d.ts +7 -8
  63. package/es/src/business/ap-label/ApLabel.d.ts +4 -4
  64. package/es/src/business/ap-label/constans.d.ts +1 -1
  65. package/es/src/business/ap-label/index.d.ts +9 -9
  66. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
  67. package/es/src/business/ap-radio-group/index.d.ts +3 -3
  68. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
  69. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
  70. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
  71. package/es/src/business/ap-table-modal/index.d.ts +3 -3
  72. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
  73. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -2
  74. package/es/src/business/ap-view/ap-view.vue2.mjs +80 -80
  75. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +33 -33
  76. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +33 -33
  77. package/es/src/business/ap-view/interface.d.ts +13 -3
  78. package/es/src/business/batch-input-group/index.vue.d.ts +11 -10
  79. package/es/src/business/batch-input-group/index.vue.mjs +20 -19
  80. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +66 -56
  81. package/es/src/business/hooks/usePageListApTable.d.ts +1 -1
  82. package/es/src/config-provider/config-provider-props.d.ts +64 -52
  83. package/es/src/config-provider/config-provider-props.mjs +10 -2
  84. package/es/src/config-provider/config-provider.d.ts +130 -113
  85. package/es/src/config-provider/config-provider.mjs +26 -24
  86. package/es/src/config-provider/hooks/use-global-config.d.ts +60 -49
  87. package/es/src/config-provider/index.d.ts +214 -197
  88. package/es/src/mask/utils.d.ts +1 -1
  89. package/es/src/mask/utils.mjs +29 -13
  90. package/es/src/text/index.vue.mjs +3 -3
  91. package/es/src/utils/config-provider-preset.d.ts +36 -49
  92. package/es/src/version.d.ts +1 -1
  93. package/es/src/version.mjs +1 -1
  94. package/es/src/work-order-modal/work-order-modal.vue.d.ts +33 -33
  95. package/lib/src/ag-grid/index.vue.js +1 -1
  96. package/lib/src/ag-grid/renderer/select.js +1 -1
  97. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +5 -6
  98. package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
  99. package/lib/src/ap-field/checkbox/read.vue.d.ts +1 -1
  100. package/lib/src/ap-field/date/index.vue.d.ts +4 -4
  101. package/lib/src/ap-field/date/index.vue.js +1 -1
  102. package/lib/src/ap-field/date/read.vue.d.ts +1 -1
  103. package/lib/src/ap-field/date/read.vue2.js +1 -1
  104. package/lib/src/ap-field/date-range/index.vue.d.ts +4 -4
  105. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  106. package/lib/src/ap-field/date-range/read.vue.d.ts +1 -1
  107. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  108. package/lib/src/ap-field/index.d.ts +7 -7
  109. package/lib/src/ap-field/number/index.vue.d.ts +90 -50
  110. package/lib/src/ap-field/number/index.vue.js +1 -1
  111. package/lib/src/ap-field/number/read.vue2.js +1 -1
  112. package/lib/src/ap-field/rate/index.vue.d.ts +6 -6
  113. package/lib/src/ap-field/select/index.vue.d.ts +241 -241
  114. package/lib/src/ap-field/select/index.vue.js +1 -1
  115. package/lib/src/ap-field/select/read.vue2.js +1 -1
  116. package/lib/src/ap-field/slider/index.vue.d.ts +9 -9
  117. package/lib/src/ap-field/switch/index.vue.d.ts +1 -1
  118. package/lib/src/ap-field/switch/read.vue.d.ts +1 -1
  119. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  120. package/lib/src/ap-field/text/index.vue2.js +1 -1
  121. package/lib/src/ap-field/text/password.vue.d.ts +1 -1
  122. package/lib/src/ap-field/text/password.vue.js +1 -1
  123. package/lib/src/ap-field/text/read-password.vue.d.ts +1 -1
  124. package/lib/src/ap-field/text/read-password.vue2.js +1 -1
  125. package/lib/src/ap-field/text/read.vue.d.ts +1 -1
  126. package/lib/src/ap-field/text/read.vue2.js +1 -1
  127. package/lib/src/ap-field/text-area/index.vue.d.ts +67 -57
  128. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  129. package/lib/src/ap-field/text-area/read.vue.d.ts +1 -1
  130. package/lib/src/ap-field/text-area/read.vue2.js +1 -1
  131. package/lib/src/ap-field/tree-select/index.vue.d.ts +326 -326
  132. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  133. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  134. package/lib/src/ap-form/ap-form.vue.d.ts +71 -67
  135. package/lib/src/ap-form/drawer-form/index.vue.d.ts +65 -65
  136. package/lib/src/ap-form/item/index.vue.d.ts +36 -36
  137. package/lib/src/ap-form/item/index.vue.js +1 -1
  138. package/lib/src/ap-form/items/number/index.vue.d.ts +103 -59
  139. package/lib/src/ap-form/items/select/index.vue.d.ts +306 -306
  140. package/lib/src/ap-form/items/text/index.vue.d.ts +19 -17
  141. package/lib/src/ap-form/items/text/password.vue.d.ts +19 -17
  142. package/lib/src/ap-form/items/text-area/index.vue.d.ts +138 -118
  143. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +407 -407
  144. package/lib/src/ap-form/modal-form/index.vue.d.ts +69 -70
  145. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +5 -6
  146. package/lib/src/ap-form/search-form/index.vue.d.ts +67 -67
  147. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  148. package/lib/src/ap-grid/constants.d.ts +3 -0
  149. package/lib/src/ap-grid/constants.js +1 -1
  150. package/lib/src/ap-grid/index.vue.js +1 -1
  151. package/lib/src/ap-grid/utils/table.d.ts +1 -1
  152. package/lib/src/ap-grid/utils/table.js +1 -1
  153. package/lib/src/ap-table/constants.d.ts +499 -465
  154. package/lib/src/ap-table/utils.d.ts +1 -1
  155. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +8 -8
  156. package/lib/src/business/ap-batch-action-group/index.d.ts +7 -8
  157. package/lib/src/business/ap-label/ApLabel.d.ts +4 -4
  158. package/lib/src/business/ap-label/constans.d.ts +1 -1
  159. package/lib/src/business/ap-label/index.d.ts +9 -9
  160. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
  161. package/lib/src/business/ap-radio-group/index.d.ts +3 -3
  162. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
  163. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
  164. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
  165. package/lib/src/business/ap-table-modal/index.d.ts +3 -3
  166. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
  167. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  168. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  169. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +33 -33
  170. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +33 -33
  171. package/lib/src/business/ap-view/interface.d.ts +13 -3
  172. package/lib/src/business/batch-input-group/index.vue.d.ts +11 -10
  173. package/lib/src/business/batch-input-group/index.vue.js +1 -1
  174. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +66 -56
  175. package/lib/src/business/hooks/usePageListApTable.d.ts +1 -1
  176. package/lib/src/config-provider/config-provider-props.d.ts +64 -52
  177. package/lib/src/config-provider/config-provider-props.js +1 -1
  178. package/lib/src/config-provider/config-provider.d.ts +130 -113
  179. package/lib/src/config-provider/config-provider.js +1 -1
  180. package/lib/src/config-provider/hooks/use-global-config.d.ts +60 -49
  181. package/lib/src/config-provider/index.d.ts +214 -197
  182. package/lib/src/mask/utils.d.ts +1 -1
  183. package/lib/src/mask/utils.js +3 -3
  184. package/lib/src/text/index.vue.js +1 -1
  185. package/lib/src/utils/config-provider-preset.d.ts +36 -49
  186. package/lib/src/version.d.ts +1 -1
  187. package/lib/src/version.js +1 -1
  188. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +33 -33
  189. package/package.json +3 -3
  190. package/theme/ag-grid/index.css +0 -6
  191. package/theme/antdv-override.css +0 -6
  192. package/theme/antdv-override.less +0 -8
  193. package/theme/ap-expand-alert/ap-expand-alert.css +0 -4
  194. package/theme/ap-expand-alert/ap-expand-alert.less +6 -5
  195. package/theme/ap-form/ap-form-item.css +0 -6
  196. package/theme/ap-form/ap-form-item.less +0 -6
  197. package/theme/ap-form/index.css +0 -6
  198. package/theme/ap-form/search-form.css +0 -6
  199. package/theme/ap-grid/index.css +0 -6
  200. package/theme/ap-table/ap-table.css +0 -6
  201. package/theme/ap-table-modal/index.css +0 -6
  202. package/theme/ap-view/ap-view.css +4 -0
  203. package/theme/ap-view/ap-view.less +4 -0
  204. package/theme/editable-table/index.css +0 -6
  205. package/theme/index.css +4 -16
@@ -60,7 +60,7 @@ export declare function getFieldProps<RecordType = any>(fieldProps: ApColumnType
60
60
  * @param item
61
61
  * @returns
62
62
  */
63
- export declare function getTableRenderType(item: ApColumnType | EditableColumnType): "number" | "select" | "date" | "checkbox" | "radio" | "text" | "switch" | "index" | "status" | "password" | "action" | "dateRange" | "textArea" | "treeSelect";
63
+ export declare function getTableRenderType(item: ApColumnType | EditableColumnType): "number" | "select" | "date" | "checkbox" | "radio" | "text" | "switch" | "treeSelect" | "textArea" | "status" | "password" | "index" | "action" | "dateRange";
64
64
  export declare function getTableCellRenderNode(renderType: keyof typeof apTableRenderItemMap, renderProps: any, record: any, extraRenderMap?: Record<string, ValueTypeRenderConfig>): any;
65
65
  /**
66
66
  * 获取查询表单最终渲染的节点
@@ -190,18 +190,18 @@ declare const _default: DefineComponent<{}, {
190
190
  disabled: boolean;
191
191
  method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
192
192
  locale: UploadLocale;
193
+ removeIcon: (opt: {
194
+ file: UploadFile<any>;
195
+ }) => VueNode;
193
196
  action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
194
197
  remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
195
198
  capture: boolean | "user" | "environment";
199
+ itemRender: ItemRender<any>;
196
200
  iconRender: (opt: {
197
201
  file: UploadFile<any>;
198
202
  listType?: UploadListType;
199
203
  }) => VueNode;
200
204
  onRemove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
201
- removeIcon: (opt: {
202
- file: UploadFile<any>;
203
- }) => VueNode;
204
- itemRender: ItemRender<any>;
205
205
  directory: boolean;
206
206
  headers: HttpRequestHeader;
207
207
  onReject: (fileList: FileType[]) => void;
@@ -416,18 +416,18 @@ declare const _default: DefineComponent<{}, {
416
416
  disabled: boolean;
417
417
  method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
418
418
  locale: UploadLocale;
419
+ removeIcon: (opt: {
420
+ file: UploadFile<any>;
421
+ }) => VueNode;
419
422
  action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
420
423
  remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
421
424
  capture: boolean | "user" | "environment";
425
+ itemRender: ItemRender<any>;
422
426
  iconRender: (opt: {
423
427
  file: UploadFile<any>;
424
428
  listType?: UploadListType;
425
429
  }) => VueNode;
426
430
  onRemove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
427
- removeIcon: (opt: {
428
- file: UploadFile<any>;
429
- }) => VueNode;
430
- itemRender: ItemRender<any>;
431
431
  directory: boolean;
432
432
  headers: HttpRequestHeader;
433
433
  onReject: (fileList: FileType[]) => void;
@@ -1,7 +1,6 @@
1
1
  import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNodeChild, CSSProperties, ComputedRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
- import { ButtonType, ButtonShape } from '@aplus-frontend/antdv/es/button';
2
+ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
3
3
  import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
4
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
5
4
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
6
5
  import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
7
6
  import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
@@ -27,7 +26,7 @@ declare const ApBatchActionGroup: {
27
26
  type: PropType<ButtonShape>;
28
27
  };
29
28
  size: {
30
- type: PropType<SizeType>;
29
+ type: PropType<ButtonSize>;
31
30
  };
32
31
  loading: {
33
32
  type: PropType<boolean | {
@@ -68,7 +67,7 @@ declare const ApBatchActionGroup: {
68
67
  type: PropType<ButtonIconPosition>;
69
68
  default: string;
70
69
  };
71
- color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "primary" | "danger">;
70
+ color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
72
71
  variant: PropType<ButtonVariantType>;
73
72
  }>>, "type" | "onClick"> & {
74
73
  type?: ( ButtonType | undefined) | "borderLink";
@@ -337,7 +336,7 @@ declare const ApBatchActionGroup: {
337
336
  type: PropType<ButtonShape>;
338
337
  };
339
338
  size: {
340
- type: PropType<SizeType>;
339
+ type: PropType<ButtonSize>;
341
340
  };
342
341
  loading: {
343
342
  type: PropType<boolean | {
@@ -378,7 +377,7 @@ declare const ApBatchActionGroup: {
378
377
  type: PropType<ButtonIconPosition>;
379
378
  default: string;
380
379
  };
381
- color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "primary" | "danger">;
380
+ color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
382
381
  variant: PropType<ButtonVariantType>;
383
382
  }>>, "type" | "onClick"> & {
384
383
  type?: ( ButtonType | undefined) | "borderLink";
@@ -644,7 +643,7 @@ declare const ApBatchActionGroup: {
644
643
  type: PropType<ButtonShape>;
645
644
  };
646
645
  size: {
647
- type: PropType<SizeType>;
646
+ type: PropType<ButtonSize>;
648
647
  };
649
648
  loading: {
650
649
  type: PropType<boolean | {
@@ -685,7 +684,7 @@ declare const ApBatchActionGroup: {
685
684
  type: PropType<ButtonIconPosition>;
686
685
  default: string;
687
686
  };
688
- color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "primary" | "danger">;
687
+ color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
689
688
  variant: PropType<ButtonVariantType>;
690
689
  }>>, "type" | "onClick"> & {
691
690
  type?: ButtonProps["type"] | "borderLink";
@@ -49,7 +49,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
49
49
  prefixCls: StringConstructor;
50
50
  scrollNumberPrefixCls: StringConstructor;
51
51
  status: {
52
- type: PropType<"error" | "default" | "success" | "processing" | "warning">;
52
+ type: PropType<"error" | "default" | "warning" | "success" | "processing">;
53
53
  };
54
54
  size: {
55
55
  type: PropType<"default" | "small">;
@@ -109,7 +109,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
109
109
  prefixCls: StringConstructor;
110
110
  scrollNumberPrefixCls: StringConstructor;
111
111
  status: {
112
- type: PropType<"error" | "default" | "success" | "processing" | "warning">;
112
+ type: PropType<"error" | "default" | "warning" | "success" | "processing">;
113
113
  };
114
114
  size: {
115
115
  type: PropType<"default" | "small">;
@@ -133,10 +133,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
133
133
  showZero: boolean;
134
134
  overflowCount: number;
135
135
  numberStyle: CSSProperties;
136
+ iconColor: string;
137
+ iconSize: number;
136
138
  helpMessage: string | VNode< RendererNode, RendererElement, {
137
139
  [key: string]: any;
138
140
  }> | undefined;
139
- iconColor: string;
140
- iconSize: number;
141
141
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
142
142
  export default _default;
@@ -67,7 +67,7 @@ export declare const ApLabelProps: () => {
67
67
  prefixCls: StringConstructor;
68
68
  scrollNumberPrefixCls: StringConstructor;
69
69
  status: {
70
- type: PropType<"error" | "default" | "success" | "processing" | "warning">;
70
+ type: PropType<"error" | "default" | "warning" | "success" | "processing">;
71
71
  };
72
72
  size: {
73
73
  type: PropType<"default" | "small">;
@@ -51,7 +51,7 @@ declare const ApLabel: {
51
51
  prefixCls: StringConstructor;
52
52
  scrollNumberPrefixCls: StringConstructor;
53
53
  status: {
54
- type: PropType<"error" | "default" | "success" | "processing" | "warning">;
54
+ type: PropType<"error" | "default" | "warning" | "success" | "processing">;
55
55
  };
56
56
  size: {
57
57
  type: PropType<"default" | "small">;
@@ -75,11 +75,11 @@ declare const ApLabel: {
75
75
  showZero: boolean;
76
76
  overflowCount: number;
77
77
  numberStyle: CSSProperties;
78
+ iconColor: string;
79
+ iconSize: number;
78
80
  helpMessage: string | VNode<RendererNode, RendererElement, {
79
81
  [key: string]: any;
80
82
  }> | undefined;
81
- iconColor: string;
82
- iconSize: number;
83
83
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
84
84
  P: {};
85
85
  B: {};
@@ -133,7 +133,7 @@ declare const ApLabel: {
133
133
  prefixCls: StringConstructor;
134
134
  scrollNumberPrefixCls: StringConstructor;
135
135
  status: {
136
- type: PropType<"error" | "default" | "success" | "processing" | "warning">;
136
+ type: PropType<"error" | "default" | "warning" | "success" | "processing">;
137
137
  };
138
138
  size: {
139
139
  type: PropType<"default" | "small">;
@@ -157,11 +157,11 @@ declare const ApLabel: {
157
157
  showZero: boolean;
158
158
  overflowCount: number;
159
159
  numberStyle: CSSProperties;
160
+ iconColor: string;
161
+ iconSize: number;
160
162
  helpMessage: string | VNode<RendererNode, RendererElement, {
161
163
  [key: string]: any;
162
164
  }> | undefined;
163
- iconColor: string;
164
- iconSize: number;
165
165
  }>;
166
166
  __isFragment?: never;
167
167
  __isTeleport?: never;
@@ -212,7 +212,7 @@ declare const ApLabel: {
212
212
  prefixCls: StringConstructor;
213
213
  scrollNumberPrefixCls: StringConstructor;
214
214
  status: {
215
- type: PropType<"error" | "default" | "success" | "processing" | "warning">;
215
+ type: PropType<"error" | "default" | "warning" | "success" | "processing">;
216
216
  };
217
217
  size: {
218
218
  type: PropType<"default" | "small">;
@@ -236,11 +236,11 @@ declare const ApLabel: {
236
236
  showZero: boolean;
237
237
  overflowCount: number;
238
238
  numberStyle: CSSProperties;
239
+ iconColor: string;
240
+ iconSize: number;
239
241
  helpMessage: string | VNode<RendererNode, RendererElement, {
240
242
  [key: string]: any;
241
243
  }> | undefined;
242
- iconColor: string;
243
- iconSize: number;
244
244
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
245
245
  $props: {
246
246
  onClick?: () => void;
@@ -14,8 +14,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
14
14
  "onUpdate:value"?: ((value: string | number) => any) | undefined;
15
15
  }>, {
16
16
  value: string | number;
17
- delay: number;
18
17
  options: RadioOptionType[];
18
+ delay: number;
19
19
  optionStyle: RadioOptionStyleType;
20
20
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
21
21
  export default _default;
@@ -15,8 +15,8 @@ declare const ApRadioGroup: {
15
15
  "update:value": (value: string | number) => any;
16
16
  }, PublicProps, {
17
17
  value: string | number;
18
- delay: number;
19
18
  options: RadioOptionType[];
19
+ delay: number;
20
20
  optionStyle: RadioOptionStyleType;
21
21
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
22
22
  P: {};
@@ -35,8 +35,8 @@ declare const ApRadioGroup: {
35
35
  "onUpdate:value"?: ((value: string | number) => any) | undefined;
36
36
  }>, {}, {}, {}, {}, {
37
37
  value: string | number;
38
- delay: number;
39
38
  options: RadioOptionType[];
39
+ delay: number;
40
40
  optionStyle: RadioOptionStyleType;
41
41
  }>;
42
42
  __isFragment?: never;
@@ -55,8 +55,8 @@ declare const ApRadioGroup: {
55
55
  "update:value": (value: string | number) => any;
56
56
  }, string, {
57
57
  value: string | number;
58
- delay: number;
59
58
  options: RadioOptionType[];
59
+ delay: number;
60
60
  optionStyle: RadioOptionStyleType;
61
61
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
62
62
  $props: {
@@ -20,10 +20,10 @@ export declare function useCreateTableModal(props: UseCreateTableModalProps): {
20
20
  select: (item: any) => void;
21
21
  selectAll: () => void;
22
22
  unSelectAll: () => void;
23
- clearAll: () => void;
24
23
  selectedRows: any[];
25
24
  unSelect: (item: any) => void;
26
25
  isSelected: (item: any) => boolean;
26
+ clearAll: () => void;
27
27
  toggleSelect: (item: any) => void;
28
28
  selectMulti: (items: any[]) => void;
29
29
  unSelectMulti: (items: any[]) => void;
@@ -18,10 +18,10 @@ export declare function useTableModal<TableRowType = Record<string, any>>(props:
18
18
  select: (item: any) => void;
19
19
  selectAll: () => void;
20
20
  unSelectAll: () => void;
21
- clearAll: () => void;
22
21
  selectedRows: any[];
23
22
  unSelect: (item: any) => void;
24
23
  isSelected: (item: any) => boolean;
24
+ clearAll: () => void;
25
25
  toggleSelect: (item: any) => void;
26
26
  selectMulti: (items: any[]) => void;
27
27
  unSelectMulti: (items: any[]) => void;
@@ -17,10 +17,10 @@ export declare function useTableSelectModal<TableRowType = Record<string, any>>(
17
17
  select: (item: any) => void;
18
18
  selectAll: () => void;
19
19
  unSelectAll: () => void;
20
- clearAll: () => void;
21
20
  selectedRows: any[];
22
21
  unSelect: (item: any) => void;
23
22
  isSelected: (item: any) => boolean;
23
+ clearAll: () => void;
24
24
  toggleSelect: (item: any) => void;
25
25
  selectMulti: (items: any[]) => void;
26
26
  unSelectMulti: (items: any[]) => void;
@@ -26,10 +26,10 @@ declare const ApTableModal: {
26
26
  select: (item: any) => void;
27
27
  selectAll: () => void;
28
28
  unSelectAll: () => void;
29
- clearAll: () => void;
30
29
  selectedRows: any[];
31
30
  unSelect: (item: any) => void;
32
31
  isSelected: (item: any) => boolean;
32
+ clearAll: () => void;
33
33
  toggleSelect: (item: any) => void;
34
34
  selectMulti: (items: any[]) => void;
35
35
  unSelectMulti: (items: any[]) => void;
@@ -137,10 +137,10 @@ declare const ApTableModal: {
137
137
  select: (item: any) => void;
138
138
  selectAll: () => void;
139
139
  unSelectAll: () => void;
140
- clearAll: () => void;
141
140
  selectedRows: any[];
142
141
  unSelect: (item: any) => void;
143
142
  isSelected: (item: any) => boolean;
143
+ clearAll: () => void;
144
144
  toggleSelect: (item: any) => void;
145
145
  selectMulti: (items: any[]) => void;
146
146
  unSelectMulti: (items: any[]) => void;
@@ -202,10 +202,10 @@ declare const ApTableModal: {
202
202
  select: (item: any) => void;
203
203
  selectAll: () => void;
204
204
  unSelectAll: () => void;
205
- clearAll: () => void;
206
205
  selectedRows: any[];
207
206
  unSelect: (item: any) => void;
208
207
  isSelected: (item: any) => boolean;
208
+ clearAll: () => void;
209
209
  toggleSelect: (item: any) => void;
210
210
  selectMulti: (items: any[]) => void;
211
211
  unSelectMulti: (items: any[]) => void;
@@ -19,10 +19,10 @@ declare const _default: DefineComponent<__VLS_Props, {
19
19
  select: (item: any) => void;
20
20
  selectAll: () => void;
21
21
  unSelectAll: () => void;
22
- clearAll: () => void;
23
22
  selectedRows: any[];
24
23
  unSelect: (item: any) => void;
25
24
  isSelected: (item: any) => boolean;
25
+ clearAll: () => void;
26
26
  toggleSelect: (item: any) => void;
27
27
  selectMulti: (items: any[]) => void;
28
28
  unSelectMulti: (items: any[]) => void;
@@ -98,11 +98,12 @@ const ue = /* @__PURE__ */ E({
98
98
  }
99
99
  if (e.getRowKey) {
100
100
  const t = j(r(a)), o = t.map(e.getRowKey);
101
- if (M("finish", o, t), f?.({ keys: o, rows: t }), e.onOk && await e.onOk({
101
+ if (e.onOk && await e.onOk({
102
102
  keys: o,
103
103
  rows: t
104
104
  }) === !1)
105
105
  return;
106
+ M("finish", o, t), f?.({ keys: o, rows: t });
106
107
  } else {
107
108
  u?.(y.NotFineGetRowKey);
108
109
  return;
@@ -142,7 +143,7 @@ const ue = /* @__PURE__ */ E({
142
143
  );
143
144
  return;
144
145
  }
145
- a.value.push(o);
146
+ e.rowSelection?.type === "radio" ? a.value = [o] : a.value.push(o);
146
147
  } else {
147
148
  const l = a.value.findIndex(
148
149
  (c) => t(o) === t(c)
@@ -39,15 +39,15 @@ const Ke = /* @__PURE__ */ $({
39
39
  setup(F, {
40
40
  expose: N
41
41
  }) {
42
- const s = F, _ = te("viewCacheOption"), {
42
+ const o = F, _ = te("viewCacheOption"), {
43
43
  b: V
44
44
  } = ae("ap-view"), {
45
- t: O
45
+ t: I
46
46
  } = ie(), d = C(() => ({
47
47
  viewKey: u,
48
- viewName: O("ap.apView.systemView")
48
+ viewName: I("ap.apView.systemView")
49
49
  })), {
50
- getSearchFormValues: I,
50
+ getSearchFormValues: O,
51
51
  setSearchFormValues: L,
52
52
  submit: x,
53
53
  reset: B,
@@ -55,20 +55,20 @@ const Ke = /* @__PURE__ */ $({
55
55
  getSearchFormSorterItems: k,
56
56
  setSearchFormSorterItems: A,
57
57
  resetSearchFormSorterItems: P
58
- } = Z(), T = p(!1), S = p(!1), v = p("");
58
+ } = Z(), T = p(!1), S = p(!1), w = p("");
59
59
  let c = !1, b = !1;
60
60
  const W = {
61
61
  dropdownType: "dropdown",
62
62
  content: K(se, {
63
- maxViewNum: s.maxViewNum
63
+ maxViewNum: o.maxViewNum
64
64
  }, null)
65
- }, a = p([d.value]), j = C(() => a.value.map((e) => ({
66
- id: e.viewKey,
65
+ }, i = p([d.value]), j = C(() => i.value.map((t) => ({
66
+ id: t.viewKey,
67
67
  content: K(oe, {
68
- view: e
68
+ view: t
69
69
  }, null)
70
- }))), o = {
71
- getSearchFormValues: I,
70
+ }))), r = {
71
+ getSearchFormValues: O,
72
72
  setSearchFormValues: L,
73
73
  submit: x,
74
74
  reset: B,
@@ -76,112 +76,112 @@ const Ke = /* @__PURE__ */ $({
76
76
  getSearchFormSorterItems: k,
77
77
  setSearchFormSorterItems: A,
78
78
  resetSearchFormSorterItems: P,
79
- ...s.saveDataSource
80
- }, w = {
79
+ ...o.saveDataSource
80
+ }, v = {
81
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);
86
- i && setTimeout(() => {
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;
82
+ ...o.viewCacheOption
83
+ }, g = () => o.isDefaultSystemView ? u : (o.isFirstDefaultSystemView || b) && c ? u : i.value.find((a) => a.isDefault)?.viewKey ?? u, l = (t) => {
84
+ w.value = t;
85
+ const a = i.value.find((e) => e.viewKey === w.value);
86
+ a && setTimeout(() => {
87
+ a.viewKey === u ? c ? o.manual || r?.submitWith?.() : o.manual || (r?.resetSearchFormSorterItems?.(), r?.reset?.()) : (r?.setSearchFormValues?.({
88
+ ...Object.fromEntries(Object.keys(r?.getSearchFormValues?.() ?? {}).map((e) => [e, void 0])) ?? {},
89
+ ...r?.getSearchFormSorterItems?.()?.reduce((e, s) => (a.viewConfig?.searchForm?.[s.name] && (e[s.name] = a.viewConfig?.searchForm?.[s.name]), e), {}) ?? {}
90
+ }), r?.setSearchFormSorterItems?.(a.viewConfig?.sorterItems ?? []), c ? o.manual || r?.submitWith?.() : r?.submit?.()), c = !1;
91
91
  });
92
92
  }, D = {
93
- getViewList: async (e) => {
93
+ getViewList: async (t) => {
94
94
  try {
95
95
  const {
96
- tableKey: i
97
- } = e, t = await w?.getViewList?.({
98
- tableKey: i
96
+ tableKey: a
97
+ } = t, e = await v?.getViewList?.({
98
+ tableKey: a
99
99
  });
100
- return a.value = [d.value, ...t ?? []], n(g()), a.value;
100
+ return i.value = [d.value, ...e ?? []], l(g()), i.value;
101
101
  } catch {
102
- return a.value = [d.value], n(u), a.value;
102
+ return i.value = [d.value], l(u), i.value;
103
103
  }
104
104
  },
105
- addView: async (e) => {
105
+ addView: async (t) => {
106
106
  const {
107
- tableKey: i,
108
- viewKey: t,
109
- viewName: r,
110
- isDefault: l,
107
+ tableKey: a,
108
+ viewKey: e,
109
+ viewName: s,
110
+ isDefault: n,
111
111
  viewConfig: f
112
- } = e;
113
- await w?.addView?.({
114
- tableKey: i,
115
- viewKey: t,
116
- viewName: r,
117
- isDefault: l,
112
+ } = t;
113
+ await v?.addView?.({
114
+ tableKey: a,
115
+ viewKey: e,
116
+ viewName: s,
117
+ isDefault: n,
118
118
  viewConfig: f
119
- }), l && (a.value = a.value.map((m) => ({
119
+ }), n && (i.value = i.value.map((m) => ({
120
120
  ...m,
121
121
  isDefault: !1
122
- }))), a.value = [...a.value, {
123
- viewKey: t,
124
- viewName: r,
125
- isDefault: l,
122
+ }))), i.value = [...i.value, {
123
+ viewKey: e,
124
+ viewName: s,
125
+ isDefault: n,
126
126
  viewConfig: f
127
- }], n(t);
127
+ }], l(e);
128
128
  },
129
- changeView: async (e) => {
129
+ changeView: async (t) => {
130
130
  const {
131
- tableKey: i,
132
- viewKey: t,
133
- viewName: r,
134
- isDefault: l,
131
+ tableKey: a,
132
+ viewKey: e,
133
+ viewName: s,
134
+ isDefault: n,
135
135
  viewConfig: f
136
- } = e;
137
- await w?.changeView?.({
138
- tableKey: i,
139
- viewKey: t,
140
- viewName: r,
141
- isDefault: l,
136
+ } = t;
137
+ await v?.changeView?.({
138
+ tableKey: a,
139
+ viewKey: e,
140
+ viewName: s,
141
+ isDefault: n,
142
142
  viewConfig: f
143
- }), l && (a.value = a.value.map((h) => ({
143
+ }), n && (i.value = i.value.map((h) => ({
144
144
  ...h,
145
145
  isDefault: !1
146
146
  })));
147
- const m = a.value.find((h) => h.viewKey === t);
148
- m && (m.viewName = r, m.isDefault = l, m.viewConfig = f), n(t);
147
+ const m = i.value.find((h) => h.viewKey === e);
148
+ m && (m.viewName = s, m.isDefault = n, m.viewConfig = f), l(e);
149
149
  },
150
- removeView: async (e) => {
150
+ removeView: async (t) => {
151
151
  const {
152
- tableKey: i,
153
- viewKey: t
154
- } = e;
155
- await w?.removeView?.({
156
- tableKey: i,
157
- viewKey: t
158
- }), a.value = a.value.filter((r) => r.viewKey !== t), t === v.value && n(g());
152
+ tableKey: a,
153
+ viewKey: e
154
+ } = t;
155
+ await v?.removeView?.({
156
+ tableKey: a,
157
+ viewKey: e
158
+ }), i.value = i.value.filter((s) => s.viewKey !== e), e === w.value && l(g());
159
159
  }
160
160
  }, G = {
161
- tableKey: s.tableKey,
162
- currentViewKey: v,
163
- changeCurrentViewKey: n,
161
+ tableKey: o.tableKey,
162
+ currentViewKey: w,
163
+ changeCurrentViewKey: l,
164
164
  popoverOpen: T,
165
165
  menuOpen: S,
166
- viewList: a,
166
+ viewList: i,
167
167
  viewListCRUD: D,
168
- saveDataSource: o
168
+ saveDataSource: r
169
169
  };
170
- return X(G), U(() => s.tableKey, (e) => {
171
- ee(e) && (c = !0, D?.getViewList?.({
172
- tableKey: e
170
+ return X(G), U(() => o.tableKey, (t) => {
171
+ ee(t) && (c = !0, D?.getViewList?.({
172
+ tableKey: t
173
173
  }));
174
174
  }, {
175
175
  immediate: !0
176
176
  }), N({
177
- setFirstDefaultSystemView: (e) => {
178
- b = e;
177
+ setFirstDefaultSystemView: (t) => {
178
+ b = t;
179
179
  }
180
- }), (e, i) => (z(), Y(y(Q), M({
181
- ...e.$attrs
180
+ }), (t, a) => (z(), Y(y(Q), M({
181
+ ...t.$attrs
182
182
  }, {
183
183
  open: S.value,
184
- "onUpdate:open": i[0] || (i[0] = (t) => S.value = t),
184
+ "onUpdate:open": a[0] || (a[0] = (e) => S.value = e),
185
185
  class: [y(V)()],
186
186
  "button-props": W,
187
187
  "menu-list": j.value,