@mobileaction/action-kit 1.1.47 → 1.1.48
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.
- package/dist/action-kit.js +4 -4
- package/dist/action-kit.mjs +1075 -1014
- package/dist/components/autocomplete/index.vue.d.ts +0 -13
- package/dist/components/country-select/index.vue.d.ts +112 -0
- package/dist/components/country-select/types.d.ts +4 -0
- package/dist/components/select/index.vue.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/src/components/autocomplete/index.vue.d.ts +0 -5
- package/dist/src/components/autocomplete/stories/default.stories.d.ts +0 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/autocomplete/types.d.ts +0 -2
- package/dist/src/components/autocomplete/types.d.ts +0 -2
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { PropType as __PropType } from 'vue';
|
|
2
2
|
import { DefaultOptionType as OptionType } from "ant-design-vue/lib/select";
|
|
3
|
-
import { AutoCompleteSize } from "./types";
|
|
4
3
|
export interface MaAutocompleteProps {
|
|
5
4
|
value?: string | undefined;
|
|
6
5
|
options?: OptionType[] | undefined;
|
|
@@ -10,7 +9,6 @@ export interface MaAutocompleteProps {
|
|
|
10
9
|
prefixIcon?: string;
|
|
11
10
|
avatarUrl?: string;
|
|
12
11
|
open?: boolean;
|
|
13
|
-
size?: AutoCompleteSize;
|
|
14
12
|
}
|
|
15
13
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
16
14
|
value: {
|
|
@@ -48,11 +46,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
48
46
|
required: false;
|
|
49
47
|
default: boolean;
|
|
50
48
|
};
|
|
51
|
-
size: {
|
|
52
|
-
type: __PropType<"small" | "medium" | "large">;
|
|
53
|
-
required: false;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
49
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:value")[], "search" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
50
|
value: {
|
|
58
51
|
type: __PropType<string>;
|
|
@@ -89,16 +82,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
89
82
|
required: false;
|
|
90
83
|
default: boolean;
|
|
91
84
|
};
|
|
92
|
-
size: {
|
|
93
|
-
type: __PropType<"small" | "medium" | "large">;
|
|
94
|
-
required: false;
|
|
95
|
-
default: string;
|
|
96
|
-
};
|
|
97
85
|
}>> & {
|
|
98
86
|
"onUpdate:value"?: (...args: any[]) => any;
|
|
99
87
|
onSearch?: (...args: any[]) => any;
|
|
100
88
|
}, {
|
|
101
|
-
size: "small" | "medium" | "large";
|
|
102
89
|
options: OptionType[];
|
|
103
90
|
filterFn: Function;
|
|
104
91
|
open: boolean;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { MaCountry } from "./types";
|
|
3
|
+
import { SelectSize } from "../select/types";
|
|
4
|
+
export interface MaCountrySelectProps {
|
|
5
|
+
value: string | string[] | null;
|
|
6
|
+
filterFn?: Function;
|
|
7
|
+
countries: MaCountry[];
|
|
8
|
+
size?: SelectSize;
|
|
9
|
+
showSearch?: boolean;
|
|
10
|
+
dropdownMatchSelectWidth?: boolean | number;
|
|
11
|
+
listHeight?: number;
|
|
12
|
+
showSelectedCountryCode?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
16
|
+
value: {
|
|
17
|
+
type: __PropType<string | string[]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
filterFn: {
|
|
21
|
+
type: __PropType<Function>;
|
|
22
|
+
required: false;
|
|
23
|
+
default: (searchTerm: string, country: MaCountry) => boolean;
|
|
24
|
+
};
|
|
25
|
+
countries: {
|
|
26
|
+
type: __PropType<MaCountry[]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
size: {
|
|
30
|
+
type: __PropType<"default" | "small" | "large">;
|
|
31
|
+
required: false;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
showSearch: {
|
|
35
|
+
type: __PropType<boolean>;
|
|
36
|
+
required: false;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
dropdownMatchSelectWidth: {
|
|
40
|
+
type: __PropType<number | boolean>;
|
|
41
|
+
required: false;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
listHeight: {
|
|
45
|
+
type: __PropType<number>;
|
|
46
|
+
required: false;
|
|
47
|
+
default: number;
|
|
48
|
+
};
|
|
49
|
+
showSelectedCountryCode: {
|
|
50
|
+
type: __PropType<boolean>;
|
|
51
|
+
required: false;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
placeholder: {
|
|
55
|
+
type: __PropType<string>;
|
|
56
|
+
required: false;
|
|
57
|
+
};
|
|
58
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
value: {
|
|
60
|
+
type: __PropType<string | string[]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
filterFn: {
|
|
64
|
+
type: __PropType<Function>;
|
|
65
|
+
required: false;
|
|
66
|
+
default: (searchTerm: string, country: MaCountry) => boolean;
|
|
67
|
+
};
|
|
68
|
+
countries: {
|
|
69
|
+
type: __PropType<MaCountry[]>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
type: __PropType<"default" | "small" | "large">;
|
|
74
|
+
required: false;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
showSearch: {
|
|
78
|
+
type: __PropType<boolean>;
|
|
79
|
+
required: false;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
dropdownMatchSelectWidth: {
|
|
83
|
+
type: __PropType<number | boolean>;
|
|
84
|
+
required: false;
|
|
85
|
+
default: number;
|
|
86
|
+
};
|
|
87
|
+
listHeight: {
|
|
88
|
+
type: __PropType<number>;
|
|
89
|
+
required: false;
|
|
90
|
+
default: number;
|
|
91
|
+
};
|
|
92
|
+
showSelectedCountryCode: {
|
|
93
|
+
type: __PropType<boolean>;
|
|
94
|
+
required: false;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
placeholder: {
|
|
98
|
+
type: __PropType<string>;
|
|
99
|
+
required: false;
|
|
100
|
+
};
|
|
101
|
+
}>> & {
|
|
102
|
+
onChange?: (...args: any[]) => any;
|
|
103
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
104
|
+
}, {
|
|
105
|
+
size: "default" | "small" | "large";
|
|
106
|
+
filterFn: Function;
|
|
107
|
+
showSearch: boolean;
|
|
108
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
109
|
+
listHeight: number;
|
|
110
|
+
showSelectedCountryCode: boolean;
|
|
111
|
+
}>;
|
|
112
|
+
export default _sfc_main;
|
|
@@ -239,8 +239,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
239
239
|
value: string | number | string[] | number[];
|
|
240
240
|
size: "default" | "small" | "large";
|
|
241
241
|
open: boolean;
|
|
242
|
+
listHeight: number;
|
|
242
243
|
autoClearSearchValue: boolean;
|
|
243
244
|
menuItemSelectedIcon: string;
|
|
244
|
-
listHeight: number;
|
|
245
245
|
}>;
|
|
246
246
|
export default _sfc_main;
|
package/dist/index.d.ts
CHANGED
|
@@ -59,5 +59,6 @@ export { default as MaAutoComplete } from './components/autocomplete/index.vue';
|
|
|
59
59
|
export { default as MaTabs } from './components/tabs/index.vue';
|
|
60
60
|
export * from './components/tabs/types';
|
|
61
61
|
export { default as MaTabPane } from './components/tabs/components/tabPane.vue';
|
|
62
|
+
export { default as MaCountrySelect } from './components/country-select/index.vue';
|
|
62
63
|
export { ActionKitConfig } from './services/config';
|
|
63
64
|
export { useActionKitConfig } from './composables/config';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DefaultOptionType as OptionType } from "ant-design-vue/lib/select";
|
|
2
|
-
import { AutoCompleteSize } from "./types";
|
|
3
2
|
export interface MaAutocompleteProps {
|
|
4
3
|
value?: string | undefined;
|
|
5
4
|
options?: OptionType[] | undefined;
|
|
@@ -9,23 +8,19 @@ export interface MaAutocompleteProps {
|
|
|
9
8
|
prefixIcon?: string;
|
|
10
9
|
avatarUrl?: string;
|
|
11
10
|
open?: boolean;
|
|
12
|
-
size?: AutoCompleteSize;
|
|
13
11
|
}
|
|
14
12
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAutocompleteProps>, {
|
|
15
13
|
options: () => OptionType[];
|
|
16
14
|
filterFn: (value: string, option: OptionType) => boolean;
|
|
17
15
|
open: boolean;
|
|
18
|
-
size: string;
|
|
19
16
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "search")[], "search" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAutocompleteProps>, {
|
|
20
17
|
options: () => OptionType[];
|
|
21
18
|
filterFn: (value: string, option: OptionType) => boolean;
|
|
22
19
|
open: boolean;
|
|
23
|
-
size: string;
|
|
24
20
|
}>>> & {
|
|
25
21
|
"onUpdate:value"?: (...args: any[]) => any;
|
|
26
22
|
onSearch?: (...args: any[]) => any;
|
|
27
23
|
}, {
|
|
28
|
-
size: "small" | "medium" | "large";
|
|
29
24
|
options: OptionType[];
|
|
30
25
|
open: boolean;
|
|
31
26
|
filterFn: Function;
|
|
@@ -6,7 +6,5 @@ declare type Story = StoryObj<typeof MaAutoComplete>;
|
|
|
6
6
|
export declare const Default: Story;
|
|
7
7
|
export declare const WithIcons: Story;
|
|
8
8
|
export declare const WithAvatar: Story;
|
|
9
|
-
export declare const Small: Story;
|
|
10
|
-
export declare const Medium: Story;
|
|
11
9
|
export declare const CustomInput: Story;
|
|
12
10
|
export declare const CustomAppInput: Story;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -60,5 +60,6 @@ export { default as MaAutoComplete } from './components/autocomplete/index.vue';
|
|
|
60
60
|
export { default as MaTabs } from './components/tabs/index.vue';
|
|
61
61
|
export * from './components/tabs/types';
|
|
62
62
|
export { default as MaTabPane } from './components/tabs/components/tabPane.vue';
|
|
63
|
+
export { default as MaCountrySelect } from './components/country-select/index.vue';
|
|
63
64
|
export { ActionKitConfig } from './services/config';
|
|
64
65
|
export { useActionKitConfig } from './composables/config';
|