@mobileaction/action-kit 1.1.46 → 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 +899 -833
- 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/country-select/index.vue.d.ts +53 -0
- package/dist/src/components/country-select/stories/constants.d.ts +4 -0
- package/dist/src/components/country-select/stories/default.stories.d.ts +8 -0
- package/dist/src/components/country-select/types.d.ts +4 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { MaCountry } from "./types";
|
|
2
|
+
import { SelectSize } from "../select/types";
|
|
3
|
+
export interface MaCountrySelectProps {
|
|
4
|
+
value: string | string[] | null;
|
|
5
|
+
filterFn?: Function;
|
|
6
|
+
countries: MaCountry[];
|
|
7
|
+
size?: SelectSize;
|
|
8
|
+
showSearch?: boolean;
|
|
9
|
+
dropdownMatchSelectWidth?: boolean | number;
|
|
10
|
+
listHeight?: number;
|
|
11
|
+
showSelectedCountryCode?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaCountrySelectProps>, {
|
|
15
|
+
filterFn: (searchTerm: string, country: MaCountry) => boolean;
|
|
16
|
+
size: string;
|
|
17
|
+
showSearch: boolean;
|
|
18
|
+
dropdownMatchSelectWidth: number;
|
|
19
|
+
listHeight: number;
|
|
20
|
+
showSelectedCountryCode: boolean;
|
|
21
|
+
}>, {}, 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<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaCountrySelectProps>, {
|
|
22
|
+
filterFn: (searchTerm: string, country: MaCountry) => boolean;
|
|
23
|
+
size: string;
|
|
24
|
+
showSearch: boolean;
|
|
25
|
+
dropdownMatchSelectWidth: number;
|
|
26
|
+
listHeight: number;
|
|
27
|
+
showSelectedCountryCode: boolean;
|
|
28
|
+
}>>> & {
|
|
29
|
+
onChange?: (...args: any[]) => any;
|
|
30
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
31
|
+
}, {
|
|
32
|
+
size: "default" | "small" | "large";
|
|
33
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
34
|
+
showSearch: boolean;
|
|
35
|
+
listHeight: number;
|
|
36
|
+
filterFn: Function;
|
|
37
|
+
showSelectedCountryCode: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
export default _default;
|
|
40
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
41
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
42
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
43
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
44
|
+
} : {
|
|
45
|
+
type: import('vue').PropType<T[K]>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
50
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
51
|
+
default: D[K];
|
|
52
|
+
} : P[K];
|
|
53
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaCountrySelect from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaCountrySelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaCountrySelect>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const DefaultValue: Story;
|
|
8
|
+
export declare const CountryFullNameDisplay: 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';
|