@aplus-frontend/ui 6.18.0 → 6.19.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 (102) hide show
  1. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
  2. package/es/src/ap-button/ap-action-button.vue.mjs +11 -7
  3. package/es/src/ap-button/ap-button.vue.mjs +24 -20
  4. package/es/src/ap-button/ap-confirm-button.vue.mjs +14 -10
  5. package/es/src/ap-download/ap-download.vue.mjs +21 -18
  6. package/es/src/ap-field/number/index.vue.d.ts +29 -29
  7. package/es/src/ap-field/rate/index.vue.d.ts +4 -4
  8. package/es/src/ap-field/segmented/index.vue.mjs +17 -12
  9. package/es/src/ap-field/select/index.vue.d.ts +97 -97
  10. package/es/src/ap-field/select/index.vue.mjs +8 -8
  11. package/es/src/ap-field/slider/index.vue.d.ts +8 -8
  12. package/es/src/ap-field/text-area/index.vue.d.ts +54 -54
  13. package/es/src/ap-field/text-area/index.vue.mjs +9 -9
  14. package/es/src/ap-field/tree-select/index.vue.d.ts +93 -93
  15. package/es/src/ap-field/tree-select/index.vue.mjs +16 -16
  16. package/es/src/ap-form/ap-form.vue.d.ts +13 -13
  17. package/es/src/ap-form/drawer-form/index.vue.d.ts +15 -15
  18. package/es/src/ap-form/items/number/index.vue.d.ts +31 -31
  19. package/es/src/ap-form/items/select/index.vue.d.ts +99 -99
  20. package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
  21. package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
  22. package/es/src/ap-form/items/text-area/index.vue.d.ts +106 -106
  23. package/es/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
  24. package/es/src/ap-form/modal-form/index.vue.d.ts +45 -16
  25. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
  26. package/es/src/ap-form/search-form/index.vue.d.ts +15 -15
  27. package/es/src/ap-table/constants.d.ts +326 -326
  28. package/es/src/ap-tag/ap-tag-group.vue.mjs +73 -78
  29. package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
  30. package/es/src/ap-tag/ap-tag.vue.mjs +45 -30
  31. package/es/src/ap-tag/interface.d.ts +6 -0
  32. package/es/src/ap-tag/utils.d.ts +1 -0
  33. package/es/src/ap-tag/utils.mjs +12 -0
  34. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
  35. package/es/src/business/ap-batch-action-group/index.d.ts +30 -8
  36. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +8 -8
  37. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +8 -8
  38. package/es/src/business/batch-input-group/index.vue.d.ts +2 -2
  39. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
  40. package/es/src/config-provider/config-provider-props.d.ts +4 -5
  41. package/es/src/config-provider/config-provider.d.ts +8 -9
  42. package/es/src/config-provider/hooks/use-global-config.d.ts +4 -5
  43. package/es/src/config-provider/index.d.ts +13 -14
  44. package/es/src/utils/config-provider-preset.d.ts +5 -6
  45. package/es/src/version.d.ts +1 -1
  46. package/es/src/version.mjs +1 -1
  47. package/es/src/work-order-modal/work-order-modal.vue.d.ts +8 -8
  48. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
  49. package/lib/src/ap-button/ap-action-button.vue.js +1 -1
  50. package/lib/src/ap-button/ap-button.vue.js +1 -1
  51. package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
  52. package/lib/src/ap-download/ap-download.vue.js +1 -1
  53. package/lib/src/ap-field/number/index.vue.d.ts +29 -29
  54. package/lib/src/ap-field/rate/index.vue.d.ts +4 -4
  55. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  56. package/lib/src/ap-field/select/index.vue.d.ts +97 -97
  57. package/lib/src/ap-field/select/index.vue.js +1 -1
  58. package/lib/src/ap-field/slider/index.vue.d.ts +8 -8
  59. package/lib/src/ap-field/text-area/index.vue.d.ts +54 -54
  60. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  61. package/lib/src/ap-field/tree-select/index.vue.d.ts +93 -93
  62. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  63. package/lib/src/ap-form/ap-form.vue.d.ts +13 -13
  64. package/lib/src/ap-form/drawer-form/index.vue.d.ts +15 -15
  65. package/lib/src/ap-form/items/number/index.vue.d.ts +31 -31
  66. package/lib/src/ap-form/items/select/index.vue.d.ts +99 -99
  67. package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
  68. package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
  69. package/lib/src/ap-form/items/text-area/index.vue.d.ts +106 -106
  70. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
  71. package/lib/src/ap-form/modal-form/index.vue.d.ts +45 -16
  72. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
  73. package/lib/src/ap-form/search-form/index.vue.d.ts +15 -15
  74. package/lib/src/ap-table/constants.d.ts +326 -326
  75. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  76. package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -0
  77. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  78. package/lib/src/ap-tag/interface.d.ts +6 -0
  79. package/lib/src/ap-tag/utils.d.ts +1 -0
  80. package/lib/src/ap-tag/utils.js +1 -0
  81. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
  82. package/lib/src/business/ap-batch-action-group/index.d.ts +30 -8
  83. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +8 -8
  84. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +8 -8
  85. package/lib/src/business/batch-input-group/index.vue.d.ts +2 -2
  86. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
  87. package/lib/src/config-provider/config-provider-props.d.ts +4 -5
  88. package/lib/src/config-provider/config-provider.d.ts +8 -9
  89. package/lib/src/config-provider/hooks/use-global-config.d.ts +4 -5
  90. package/lib/src/config-provider/index.d.ts +13 -14
  91. package/lib/src/utils/config-provider-preset.d.ts +5 -6
  92. package/lib/src/version.d.ts +1 -1
  93. package/lib/src/version.js +1 -1
  94. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +8 -8
  95. package/package.json +3 -3
  96. package/theme/antdv-override.css +2 -6
  97. package/theme/antdv-override.less +2 -6
  98. package/theme/ap-label/ap-label.css +1 -0
  99. package/theme/ap-label/ap-label.less +1 -0
  100. package/theme/ap-tag/ap-tag.css +3 -1
  101. package/theme/ap-tag/ap-tag.less +3 -1
  102. package/theme/index.css +6 -7
@@ -1,7 +1,7 @@
1
1
  import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
2
2
  import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
3
3
  import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
4
- import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
4
+ import { SizeType, ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
5
5
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
6
6
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
7
7
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
@@ -27,7 +27,7 @@ declare function __VLS_template(): {
27
27
  $: ComponentInternalInstance;
28
28
  $data: {};
29
29
  $props: {
30
- readonly size?: ButtonSize;
30
+ readonly size?: SizeType;
31
31
  readonly onSubmit?: ((e: Event) => void) | undefined;
32
32
  readonly layout?: string | undefined;
33
33
  readonly disabled?: boolean | undefined;
@@ -322,8 +322,8 @@ declare function __VLS_template(): {
322
322
  default: string | string[];
323
323
  };
324
324
  size: {
325
- type: PropType<SizeType>;
326
- default: SizeType;
325
+ type: PropType<ButtonSize>;
326
+ default: ButtonSize;
327
327
  };
328
328
  disabled: {
329
329
  type: BooleanConstructor;
@@ -350,7 +350,7 @@ declare function __VLS_template(): {
350
350
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
351
351
  };
352
352
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
353
- size: SizeType;
353
+ size: ButtonSize;
354
354
  onSubmit: (e: Event) => void;
355
355
  disabled: boolean;
356
356
  validateTrigger: string | string[];
@@ -642,8 +642,8 @@ declare function __VLS_template(): {
642
642
  default: string | string[];
643
643
  };
644
644
  size: {
645
- type: PropType<SizeType>;
646
- default: SizeType;
645
+ type: PropType<ButtonSize>;
646
+ default: ButtonSize;
647
647
  };
648
648
  disabled: {
649
649
  type: BooleanConstructor;
@@ -670,7 +670,7 @@ declare function __VLS_template(): {
670
670
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
671
671
  };
672
672
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
673
- size: SizeType;
673
+ size: ButtonSize;
674
674
  onSubmit: (e: Event) => void;
675
675
  disabled: boolean;
676
676
  validateTrigger: string | string[];
@@ -975,7 +975,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
975
975
  $: ComponentInternalInstance;
976
976
  $data: {};
977
977
  $props: {
978
- readonly size?: ButtonSize;
978
+ readonly size?: SizeType;
979
979
  readonly onSubmit?: ((e: Event) => void) | undefined;
980
980
  readonly layout?: string | undefined;
981
981
  readonly disabled?: boolean | undefined;
@@ -1270,8 +1270,8 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1270
1270
  default: string | string[];
1271
1271
  };
1272
1272
  size: {
1273
- type: PropType<SizeType>;
1274
- default: SizeType;
1273
+ type: PropType<ButtonSize>;
1274
+ default: ButtonSize;
1275
1275
  };
1276
1276
  disabled: {
1277
1277
  type: BooleanConstructor;
@@ -1298,7 +1298,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1298
1298
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1299
1299
  };
1300
1300
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1301
- size: SizeType;
1301
+ size: ButtonSize;
1302
1302
  onSubmit: (e: Event) => void;
1303
1303
  disabled: boolean;
1304
1304
  validateTrigger: string | string[];
@@ -1590,8 +1590,8 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1590
1590
  default: string | string[];
1591
1591
  };
1592
1592
  size: {
1593
- type: PropType<SizeType>;
1594
- default: SizeType;
1593
+ type: PropType<ButtonSize>;
1594
+ default: ButtonSize;
1595
1595
  };
1596
1596
  disabled: {
1597
1597
  type: BooleanConstructor;
@@ -1618,7 +1618,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1618
1618
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
1619
1619
  };
1620
1620
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
1621
- size: SizeType;
1621
+ size: ButtonSize;
1622
1622
  onSubmit: (e: Event) => void;
1623
1623
  disabled: boolean;
1624
1624
  validateTrigger: string | string[];
@@ -2,7 +2,7 @@ import { ApFormItemNumberProps } from '../interface';
2
2
  import { ApFormItemSlots } from '../../interface';
3
3
  import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
4
4
  import { FieldMode, ApFieldNumberProps } from '../../..';
5
- import { ButtonSize } from '@aplus-frontend/antdv/es/button';
5
+ import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
6
6
  import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
7
7
  import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
8
8
  import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
@@ -33,7 +33,7 @@ declare function __VLS_template(): {
33
33
  readonly mode?: FieldMode | undefined;
34
34
  readonly class?: unknown;
35
35
  readonly style?: unknown;
36
- readonly size?: ButtonSize;
36
+ readonly size?: SizeType;
37
37
  readonly step?: ValueType | undefined;
38
38
  readonly onBlur?: ((e: FocusEvent) => void) | undefined;
39
39
  readonly onChange?: ((value: ValueType) => void) | undefined;
@@ -87,8 +87,8 @@ declare function __VLS_template(): {
87
87
  } & {
88
88
  inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
89
89
  size: {
90
- type: PropType<ButtonSize>;
91
- default: ButtonSize;
90
+ type: PropType<SizeType>;
91
+ default: SizeType;
92
92
  };
93
93
  bordered: {
94
94
  type: BooleanConstructor;
@@ -207,7 +207,7 @@ declare function __VLS_template(): {
207
207
  default: (e: FocusEvent) => void;
208
208
  };
209
209
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
210
- size: ButtonSize;
210
+ size: SizeType;
211
211
  value: ValueType;
212
212
  onFocus: (e: FocusEvent) => void;
213
213
  onBlur: (e: FocusEvent) => void;
@@ -217,13 +217,13 @@ declare function __VLS_template(): {
217
217
  max: ValueType;
218
218
  min: ValueType;
219
219
  prefixCls: string;
220
+ bordered: boolean;
221
+ defaultValue: ValueType;
222
+ status: "" | "error" | "warning";
223
+ step: ValueType;
220
224
  autofocus: boolean;
221
225
  readonly: boolean;
222
- status: "" | "error" | "warning";
223
- defaultValue: ValueType;
224
226
  'onUpdate:value': (value: ValueType) => void;
225
- step: ValueType;
226
- bordered: boolean;
227
227
  onPressEnter: KeyboardEventHandler;
228
228
  formatter: (value: ValueType, info: {
229
229
  userTyping: boolean;
@@ -254,8 +254,8 @@ declare function __VLS_template(): {
254
254
  Defaults: {};
255
255
  }, Readonly< ExtractPropTypes<{
256
256
  size: {
257
- type: PropType<ButtonSize>;
258
- default: ButtonSize;
257
+ type: PropType<SizeType>;
258
+ default: SizeType;
259
259
  };
260
260
  bordered: {
261
261
  type: BooleanConstructor;
@@ -374,7 +374,7 @@ declare function __VLS_template(): {
374
374
  default: (e: FocusEvent) => void;
375
375
  };
376
376
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
377
- size: ButtonSize;
377
+ size: SizeType;
378
378
  value: ValueType;
379
379
  onFocus: (e: FocusEvent) => void;
380
380
  onBlur: (e: FocusEvent) => void;
@@ -384,13 +384,13 @@ declare function __VLS_template(): {
384
384
  max: ValueType;
385
385
  min: ValueType;
386
386
  prefixCls: string;
387
+ bordered: boolean;
388
+ defaultValue: ValueType;
389
+ status: "" | "error" | "warning";
390
+ step: ValueType;
387
391
  autofocus: boolean;
388
392
  readonly: boolean;
389
- status: "" | "error" | "warning";
390
- defaultValue: ValueType;
391
393
  'onUpdate:value': (value: ValueType) => void;
392
- step: ValueType;
393
- bordered: boolean;
394
394
  onPressEnter: KeyboardEventHandler;
395
395
  formatter: (value: ValueType, info: {
396
396
  userTyping: boolean;
@@ -506,7 +506,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
506
506
  readonly mode?: FieldMode | undefined;
507
507
  readonly class?: unknown;
508
508
  readonly style?: unknown;
509
- readonly size?: ButtonSize;
509
+ readonly size?: SizeType;
510
510
  readonly step?: ValueType | undefined;
511
511
  readonly onBlur?: ((e: FocusEvent) => void) | undefined;
512
512
  readonly onChange?: ((value: ValueType) => void) | undefined;
@@ -560,8 +560,8 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
560
560
  } & {
561
561
  inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
562
562
  size: {
563
- type: PropType<ButtonSize>;
564
- default: ButtonSize;
563
+ type: PropType<SizeType>;
564
+ default: SizeType;
565
565
  };
566
566
  bordered: {
567
567
  type: BooleanConstructor;
@@ -680,7 +680,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
680
680
  default: (e: FocusEvent) => void;
681
681
  };
682
682
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
683
- size: ButtonSize;
683
+ size: SizeType;
684
684
  value: ValueType;
685
685
  onFocus: (e: FocusEvent) => void;
686
686
  onBlur: (e: FocusEvent) => void;
@@ -690,13 +690,13 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
690
690
  max: ValueType;
691
691
  min: ValueType;
692
692
  prefixCls: string;
693
+ bordered: boolean;
694
+ defaultValue: ValueType;
695
+ status: "" | "error" | "warning";
696
+ step: ValueType;
693
697
  autofocus: boolean;
694
698
  readonly: boolean;
695
- status: "" | "error" | "warning";
696
- defaultValue: ValueType;
697
699
  'onUpdate:value': (value: ValueType) => void;
698
- step: ValueType;
699
- bordered: boolean;
700
700
  onPressEnter: KeyboardEventHandler;
701
701
  formatter: (value: ValueType, info: {
702
702
  userTyping: boolean;
@@ -727,8 +727,8 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
727
727
  Defaults: {};
728
728
  }, Readonly< ExtractPropTypes<{
729
729
  size: {
730
- type: PropType<ButtonSize>;
731
- default: ButtonSize;
730
+ type: PropType<SizeType>;
731
+ default: SizeType;
732
732
  };
733
733
  bordered: {
734
734
  type: BooleanConstructor;
@@ -847,7 +847,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
847
847
  default: (e: FocusEvent) => void;
848
848
  };
849
849
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
850
- size: ButtonSize;
850
+ size: SizeType;
851
851
  value: ValueType;
852
852
  onFocus: (e: FocusEvent) => void;
853
853
  onBlur: (e: FocusEvent) => void;
@@ -857,13 +857,13 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
857
857
  max: ValueType;
858
858
  min: ValueType;
859
859
  prefixCls: string;
860
+ bordered: boolean;
861
+ defaultValue: ValueType;
862
+ status: "" | "error" | "warning";
863
+ step: ValueType;
860
864
  autofocus: boolean;
861
865
  readonly: boolean;
862
- status: "" | "error" | "warning";
863
- defaultValue: ValueType;
864
866
  'onUpdate:value': (value: ValueType) => void;
865
- step: ValueType;
866
- bordered: boolean;
867
867
  onPressEnter: KeyboardEventHandler;
868
868
  formatter: (value: ValueType, info: {
869
869
  userTyping: boolean;