@mobileaction/action-kit 1.42.7 → 1.42.8
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/CHANGELOG.md +13 -0
- package/dist/action-kit.mjs +7147 -7088
- package/dist/src/components/country-select/components/multiCountrySelect.vue.d.ts +8 -10
- package/dist/src/components/country-select/components/singleCountrySelect.vue.d.ts +12 -11
- package/dist/src/components/country-select/index.vue.d.ts +9 -8
- package/dist/src/components/country-select/stories/default.stories.d.ts +1 -0
- package/dist/src/components/country-select/types.d.ts +2 -1
- package/dist/src/components/date-picker/index.vue.d.ts +1 -1
- package/dist/src/components/date-picker-2/components/calendarSelect.vue.d.ts +1 -1
- package/dist/src/components/drawer/index.vue.d.ts +1 -1
- package/dist/src/components/input/types.d.ts +2 -2
- package/dist/src/components/popover-2/index.vue.d.ts +1 -1
- package/dist/src/components/popover-2/stories/constants.d.ts +3 -3
- package/dist/src/components/select/index.vue.d.ts +4 -4
- package/dist/src/components/select-2/index.vue.d.ts +8 -4
- package/dist/src/components/select-2/types.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { MaBadgeProps } from '../../badge/index.vue';
|
|
1
|
+
import { MaSelectOption, MaSelectSize } from '@/components/select-2/types';
|
|
2
|
+
import { MaFlagIconRatio } from '@/components/icon/types';
|
|
3
|
+
import { MaBadgeProps } from '@/components/badge/index.vue';
|
|
5
4
|
export interface MaCountrySelectProps {
|
|
6
5
|
value: string | string[] | null;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
size?: SelectSize;
|
|
6
|
+
options: MaSelectOption[];
|
|
7
|
+
size?: MaSelectSize;
|
|
10
8
|
showSearch?: boolean;
|
|
11
|
-
dropdownMatchSelectWidth?: boolean
|
|
9
|
+
dropdownMatchSelectWidth?: boolean;
|
|
12
10
|
listHeight?: number;
|
|
13
11
|
showSelectedCountryCode?: boolean;
|
|
14
12
|
placeholder?: string;
|
|
@@ -25,9 +23,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
|
|
|
25
23
|
"update:value": (...args: any[]) => void;
|
|
26
24
|
}, string, import("vue").PublicProps, Readonly<MaCountrySelectProps> & Readonly<{
|
|
27
25
|
"onUpdate:value"?: (...args: any[]) => any;
|
|
28
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, Partial<Record<NonNullable<import("@/components/select-2/types").MaSelectOptionValue>, (_: {
|
|
29
27
|
label: string;
|
|
30
|
-
value:
|
|
28
|
+
value: import("@/components/select-2/types").MaSelectOptionValue;
|
|
31
29
|
}) => any>> & {
|
|
32
30
|
multiCountryText?(_: {}): any;
|
|
33
31
|
}>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { MaBadgeProps } from "../../badge/index.vue";
|
|
1
|
+
import { MaSelectOption, MaSelectSize } from '@/components/select-2/types';
|
|
2
|
+
import { MaFlagIconRatio } from '@/components/icon/types';
|
|
3
|
+
import { MaBadgeProps } from '@/components/badge/index.vue';
|
|
5
4
|
export interface MaCountrySelectProps {
|
|
6
5
|
value: string | string[] | null;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
size?: SelectSize;
|
|
6
|
+
options: MaSelectOption[];
|
|
7
|
+
size?: MaSelectSize;
|
|
10
8
|
showSearch?: boolean;
|
|
11
|
-
dropdownMatchSelectWidth?: boolean | number;
|
|
12
9
|
listHeight?: number;
|
|
13
10
|
showSelectedCountryCode?: boolean;
|
|
14
11
|
placeholder?: string;
|
|
@@ -21,10 +18,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
|
|
|
21
18
|
"update:value": (...args: any[]) => void;
|
|
22
19
|
}, string, import("vue").PublicProps, Readonly<MaCountrySelectProps> & Readonly<{
|
|
23
20
|
"onUpdate:value"?: (...args: any[]) => any;
|
|
24
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, Partial<Record<NonNullable<import("@/components/select-2/types").MaSelectOptionValue>, (_: {
|
|
25
22
|
label: string;
|
|
26
|
-
value:
|
|
27
|
-
}) => any
|
|
23
|
+
value: import("@/components/select-2/types").MaSelectOptionValue;
|
|
24
|
+
}) => any>> & {
|
|
25
|
+
input?(_: {
|
|
26
|
+
value: string | string[];
|
|
27
|
+
}): any;
|
|
28
|
+
}>;
|
|
28
29
|
export default _default;
|
|
29
30
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
31
|
new (): {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { MaCountry } from './types';
|
|
2
|
-
import { MaFlagIconRatio
|
|
2
|
+
import { MaFlagIconRatio } from '@/index';
|
|
3
|
+
import { MaSelectSize } from '../select-2/types';
|
|
3
4
|
import { MaBadgeProps } from '../badge/index.vue';
|
|
4
5
|
export interface MaCountrySelectProps {
|
|
5
6
|
value: string | string[] | null;
|
|
6
|
-
filterFn?: Function;
|
|
7
7
|
countries: MaCountry[];
|
|
8
|
-
size?:
|
|
8
|
+
size?: MaSelectSize;
|
|
9
9
|
showSearch?: boolean;
|
|
10
|
-
dropdownMatchSelectWidth?: boolean | number;
|
|
11
10
|
listHeight?: number;
|
|
12
11
|
showSelectedCountryCode?: boolean;
|
|
13
12
|
placeholder?: string;
|
|
14
13
|
iconRound?: boolean;
|
|
15
14
|
iconRatio?: MaFlagIconRatio;
|
|
16
15
|
dropdownClassName?: string;
|
|
16
|
+
dropdownMatchSelectWidth?: boolean;
|
|
17
17
|
badgeProps?: MaBadgeProps;
|
|
18
18
|
multiple?: boolean;
|
|
19
19
|
}
|
|
@@ -24,16 +24,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
|
|
|
24
24
|
onChange?: (...args: any[]) => any;
|
|
25
25
|
"onUpdate:value"?: (...args: any[]) => any;
|
|
26
26
|
}>, {
|
|
27
|
-
size:
|
|
28
|
-
|
|
27
|
+
size: MaSelectSize;
|
|
28
|
+
multiple: boolean;
|
|
29
29
|
showSearch: boolean;
|
|
30
30
|
listHeight: number;
|
|
31
|
-
|
|
31
|
+
dropdownMatchSelectWidth: boolean;
|
|
32
|
+
dropdownClassName: string;
|
|
32
33
|
showSelectedCountryCode: boolean;
|
|
33
34
|
iconRound: boolean;
|
|
34
35
|
iconRatio: MaFlagIconRatio;
|
|
35
36
|
badgeProps: MaBadgeProps;
|
|
36
|
-
|
|
37
|
+
countries: MaCountry[];
|
|
37
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
|
|
38
39
|
export default _default;
|
|
39
40
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -48,9 +48,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<MaDatePickerProp
|
|
|
48
48
|
size: MaDatePickerSize;
|
|
49
49
|
disabled: boolean;
|
|
50
50
|
inline: boolean;
|
|
51
|
-
open: boolean;
|
|
52
51
|
allowClear: boolean;
|
|
53
52
|
prefixIcon: string;
|
|
53
|
+
open: boolean;
|
|
54
54
|
picker: PickerMode;
|
|
55
55
|
keepPickerHidden: boolean;
|
|
56
56
|
format: string;
|
|
@@ -9,5 +9,5 @@ interface MonthSelectProps {
|
|
|
9
9
|
}>;
|
|
10
10
|
dateType: (typeof DateTypes)[number];
|
|
11
11
|
}
|
|
12
|
-
declare const _default: import("vue").DefineComponent<MonthSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MonthSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
12
|
+
declare const _default: import("vue").DefineComponent<MonthSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MonthSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
13
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MaSelectOption } from '../select-2/types';
|
|
2
2
|
export declare const MaInputType: {
|
|
3
3
|
readonly text: "text";
|
|
4
4
|
readonly password: "password";
|
|
@@ -31,4 +31,4 @@ export declare const currencySymbols: {
|
|
|
31
31
|
readonly GBP: "£";
|
|
32
32
|
readonly JPY: "¥";
|
|
33
33
|
};
|
|
34
|
-
export declare const currencyOptions:
|
|
34
|
+
export declare const currencyOptions: MaSelectOption[];
|
|
@@ -36,9 +36,9 @@ declare const __VLS_component: import("vue").DefineComponent<MaPopover2Props, {}
|
|
|
36
36
|
trigger: Popover2TriggerType[];
|
|
37
37
|
overlayClassName: string;
|
|
38
38
|
visible: boolean | undefined;
|
|
39
|
-
showArrow: boolean;
|
|
40
39
|
autoHide: boolean;
|
|
41
40
|
isMobile: boolean;
|
|
41
|
+
showArrow: boolean;
|
|
42
42
|
noPadding: boolean;
|
|
43
43
|
popupContainer: HTMLElement | null | string;
|
|
44
44
|
noAutoFocus: boolean;
|
|
@@ -14,9 +14,9 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
14
14
|
trigger: import("../types").Popover2TriggerType[];
|
|
15
15
|
overlayClassName: string;
|
|
16
16
|
visible: boolean | undefined;
|
|
17
|
-
showArrow: boolean;
|
|
18
17
|
autoHide: boolean;
|
|
19
18
|
isMobile: boolean;
|
|
19
|
+
showArrow: boolean;
|
|
20
20
|
noPadding: boolean;
|
|
21
21
|
popupContainer: HTMLElement | null | string;
|
|
22
22
|
noAutoFocus: boolean;
|
|
@@ -38,9 +38,9 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
38
38
|
trigger: import("../types").Popover2TriggerType[];
|
|
39
39
|
overlayClassName: string;
|
|
40
40
|
visible: boolean | undefined;
|
|
41
|
-
showArrow: boolean;
|
|
42
41
|
autoHide: boolean;
|
|
43
42
|
isMobile: boolean;
|
|
43
|
+
showArrow: boolean;
|
|
44
44
|
noPadding: boolean;
|
|
45
45
|
popupContainer: HTMLElement | null | string;
|
|
46
46
|
noAutoFocus: boolean;
|
|
@@ -62,9 +62,9 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
62
62
|
trigger: import("../types").Popover2TriggerType[];
|
|
63
63
|
overlayClassName: string;
|
|
64
64
|
visible: boolean | undefined;
|
|
65
|
-
showArrow: boolean;
|
|
66
65
|
autoHide: boolean;
|
|
67
66
|
isMobile: boolean;
|
|
67
|
+
showArrow: boolean;
|
|
68
68
|
noPadding: boolean;
|
|
69
69
|
popupContainer: HTMLElement | null | string;
|
|
70
70
|
noAutoFocus: boolean;
|
|
@@ -44,13 +44,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
|
|
|
44
44
|
}>, {
|
|
45
45
|
size: SelectSize;
|
|
46
46
|
value: string | number | string[] | number[];
|
|
47
|
-
open: boolean;
|
|
48
|
-
dropdownMatchSelectWidth: boolean | number;
|
|
49
47
|
showArrow: boolean;
|
|
50
|
-
menuItemSelectedIcon: string;
|
|
51
|
-
listHeight: number;
|
|
52
48
|
autoClearSearchValue: boolean;
|
|
49
|
+
open: boolean;
|
|
50
|
+
listHeight: number;
|
|
51
|
+
dropdownMatchSelectWidth: boolean | number;
|
|
53
52
|
borderless: boolean;
|
|
53
|
+
menuItemSelectedIcon: string;
|
|
54
54
|
selectOptionType: SelectOptionType;
|
|
55
55
|
checkboxPlacement: CheckboxPlacement;
|
|
56
56
|
multiSelectOptionType: MultiSelectOption;
|
|
@@ -26,7 +26,9 @@ declare function __VLS_template(): {
|
|
|
26
26
|
/**
|
|
27
27
|
* Slot for each option in the dropdown
|
|
28
28
|
*/
|
|
29
|
-
option(option
|
|
29
|
+
option({ option }: {
|
|
30
|
+
option: MaSelectOptionType;
|
|
31
|
+
}): unknown;
|
|
30
32
|
/**
|
|
31
33
|
* Customize dropdown header area
|
|
32
34
|
*/
|
|
@@ -59,7 +61,9 @@ declare function __VLS_template(): {
|
|
|
59
61
|
/**
|
|
60
62
|
* Slot for each option in the dropdown
|
|
61
63
|
*/
|
|
62
|
-
option(option
|
|
64
|
+
option({ option }: {
|
|
65
|
+
option: MaSelectOptionType;
|
|
66
|
+
}): unknown;
|
|
63
67
|
/**
|
|
64
68
|
* Customize dropdown header area
|
|
65
69
|
*/
|
|
@@ -199,11 +203,11 @@ declare const __VLS_component: import("vue").DefineComponent<MaSelectProps, {
|
|
|
199
203
|
loading: boolean;
|
|
200
204
|
value: MaSelectValue;
|
|
201
205
|
options: MaSelectOptionType[];
|
|
202
|
-
|
|
206
|
+
multiple: boolean;
|
|
203
207
|
showSearch: boolean;
|
|
204
208
|
allowClear: boolean;
|
|
205
209
|
listHeight: number;
|
|
206
|
-
|
|
210
|
+
dropdownMatchSelectWidth: boolean;
|
|
207
211
|
compact: boolean;
|
|
208
212
|
searchPlaceholder: string;
|
|
209
213
|
dropdownProps: import("../popover-2/index.vue").MaPopover2Props;
|