@mobileaction/action-kit 1.13.0 → 1.13.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.
@@ -1,18 +1,20 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
2
  import { MaTagInputSize } from "./types";
3
3
  export interface MaTagInputProps {
4
- tags: string[];
4
+ tags?: string[];
5
5
  placeholder?: string;
6
6
  separator?: string[];
7
7
  size?: MaTagInputSize;
8
8
  disabled?: boolean;
9
9
  prefixIcon?: string;
10
10
  suffixIcon?: string;
11
+ tagCharLimit?: number;
11
12
  }
12
13
  declare const _sfc_main: import("vue").DefineComponent<{
13
14
  tags: {
14
15
  type: __PropType<string[]>;
15
- required: true;
16
+ required: false;
17
+ default: () => string[];
16
18
  };
17
19
  placeholder: {
18
20
  type: __PropType<string>;
@@ -42,10 +44,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
42
44
  type: __PropType<string>;
43
45
  required: false;
44
46
  };
45
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:tags" | "added" | "removed")[], "change" | "update:tags" | "added" | "removed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
47
+ tagCharLimit: {
48
+ type: __PropType<number>;
49
+ required: false;
50
+ };
51
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "change" | "update:tags" | "added" | "removed")[], "error" | "change" | "update:tags" | "added" | "removed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
52
  tags: {
47
53
  type: __PropType<string[]>;
48
- required: true;
54
+ required: false;
55
+ default: () => string[];
49
56
  };
50
57
  placeholder: {
51
58
  type: __PropType<string>;
@@ -75,7 +82,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
75
82
  type: __PropType<string>;
76
83
  required: false;
77
84
  };
85
+ tagCharLimit: {
86
+ type: __PropType<number>;
87
+ required: false;
88
+ };
78
89
  }>> & {
90
+ onError?: (...args: any[]) => any;
79
91
  onChange?: (...args: any[]) => any;
80
92
  "onUpdate:tags"?: (...args: any[]) => any;
81
93
  onAdded?: (...args: any[]) => any;
@@ -84,6 +96,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
84
96
  size: "sm" | "md" | "lg";
85
97
  disabled: boolean;
86
98
  placeholder: string;
99
+ tags: string[];
87
100
  separator: string[];
88
101
  }>;
89
102
  export default _sfc_main;
@@ -1,25 +1,29 @@
1
1
  import { MaTagInputSize } from "./types";
2
2
  export interface MaTagInputProps {
3
- tags: string[];
3
+ tags?: string[];
4
4
  placeholder?: string;
5
5
  separator?: string[];
6
6
  size?: MaTagInputSize;
7
7
  disabled?: boolean;
8
8
  prefixIcon?: string;
9
9
  suffixIcon?: string;
10
+ tagCharLimit?: number;
10
11
  }
11
12
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTagInputProps>, {
12
13
  separator: () => string[];
14
+ tags: () => string[];
13
15
  size: string;
14
16
  disabled: boolean;
15
17
  placeholder: string;
16
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:tags" | "added" | "removed")[], "change" | "update:tags" | "added" | "removed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTagInputProps>, {
18
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "change" | "update:tags" | "added" | "removed")[], "error" | "change" | "update:tags" | "added" | "removed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTagInputProps>, {
17
19
  separator: () => string[];
20
+ tags: () => string[];
18
21
  size: string;
19
22
  disabled: boolean;
20
23
  placeholder: string;
21
24
  }>>> & {
22
25
  onChange?: (...args: any[]) => any;
26
+ onError?: (...args: any[]) => any;
23
27
  "onUpdate:tags"?: (...args: any[]) => any;
24
28
  onAdded?: (...args: any[]) => any;
25
29
  onRemoved?: (...args: any[]) => any;
@@ -27,6 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
27
31
  size: "sm" | "md" | "lg";
28
32
  disabled: boolean;
29
33
  placeholder: string;
34
+ tags: string[];
30
35
  separator: string[];
31
36
  }>, {
32
37
  prefix: (_: {}) => any;
@@ -12,3 +12,4 @@ export declare const Large: Story;
12
12
  export declare const PrefixIcon: Story;
13
13
  export declare const SuffixIcon: Story;
14
14
  export declare const PrefixAndSuffixIcon: Story;
15
+ export declare const TagCharacterLimit: Story;