@mobileaction/action-kit 1.40.3 → 1.40.4-beta.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.
- package/CHANGELOG.md +7 -0
- package/dist/action-kit.mjs +9687 -9231
- package/dist/src/components/date-picker-2/index.vue.d.ts +4 -4
- package/dist/src/components/modal/index.vue.d.ts +2 -0
- package/dist/src/components/modal/stories/constants.d.ts +2 -0
- package/dist/src/components/modal/stories/default.stories.d.ts +2 -0
- package/dist/src/components/modal/types.d.ts +1 -0
- package/dist/src/components/popconfirm/index.vue.d.ts +2 -2
- package/dist/src/components/popconfirm/stories/constants.d.ts +5 -5
- package/dist/src/components/popover-2/index.vue.d.ts +3 -1
- package/dist/src/components/popover-2/stories/constants.d.ts +6 -3
- package/dist/src/components/select-2/components/selectOption.vue.d.ts +33 -0
- package/dist/src/components/select-2/components/selectOptionGroup.vue.d.ts +19 -0
- package/dist/src/components/select-2/composables/use-keyboard-navigation.d.ts +8 -0
- package/dist/src/components/select-2/composables/use-options-registry.d.ts +7 -0
- package/dist/src/components/select-2/index.vue.d.ts +328 -0
- package/dist/src/components/select-2/select.test.d.ts +1 -0
- package/dist/src/components/select-2/stories/borderless.stories.d.ts +8 -0
- package/dist/src/components/select-2/stories/constants.d.ts +12 -0
- package/dist/src/components/select-2/stories/inline.stories.d.ts +8 -0
- package/dist/src/components/select-2/stories/multiple.stories.d.ts +14 -0
- package/dist/src/components/select-2/stories/select-option-group.stories.d.ts +41 -0
- package/dist/src/components/select-2/stories/select-option.stories.d.ts +81 -0
- package/dist/src/components/select-2/stories/single.stories.d.ts +25 -0
- package/dist/src/components/select-2/types.d.ts +180 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/dist/src/components/modal/stories/custom.stories.d.ts +0 -6
|
@@ -21,8 +21,8 @@ declare function __VLS_template(): {
|
|
|
21
21
|
datepickerInput: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<string[]> | import("vue").ExtractPropTypes<import("vue").ComponentObjectPropsOptions<import("@vuepic/vue-datepicker").VueDatePickerProps>>> & {
|
|
22
22
|
onFocus?: (...args: any[]) => any;
|
|
23
23
|
onBlur?: (...args: any[]) => any;
|
|
24
|
-
onClosed?: (...args: any[]) => any;
|
|
25
24
|
onCleared?: (...args: any[]) => any;
|
|
25
|
+
onClosed?: (...args: any[]) => any;
|
|
26
26
|
onOpen?: (...args: any[]) => any;
|
|
27
27
|
"onUpdate:model-value"?: (...args: any[]) => any;
|
|
28
28
|
"onUpdate:model-timezone-value"?: (...args: any[]) => any;
|
|
@@ -56,8 +56,8 @@ declare function __VLS_template(): {
|
|
|
56
56
|
}, {} & (Readonly<import("vue").ExtractPropTypes<string[]> | import("vue").ExtractPropTypes<import("vue").ComponentObjectPropsOptions<import("@vuepic/vue-datepicker").VueDatePickerProps>>> & {
|
|
57
57
|
onFocus?: (...args: any[]) => any;
|
|
58
58
|
onBlur?: (...args: any[]) => any;
|
|
59
|
-
onClosed?: (...args: any[]) => any;
|
|
60
59
|
onCleared?: (...args: any[]) => any;
|
|
60
|
+
onClosed?: (...args: any[]) => any;
|
|
61
61
|
onOpen?: (...args: any[]) => any;
|
|
62
62
|
"onUpdate:model-value"?: (...args: any[]) => any;
|
|
63
63
|
"onUpdate:model-timezone-value"?: (...args: any[]) => any;
|
|
@@ -99,10 +99,10 @@ declare const __VLS_component: import("vue").DefineComponent<MaDatePickerProps,
|
|
|
99
99
|
change: (...args: any[]) => void;
|
|
100
100
|
focus: (...args: any[]) => void;
|
|
101
101
|
"update:value": (...args: any[]) => void;
|
|
102
|
+
cleared: (...args: any[]) => void;
|
|
102
103
|
opened: (...args: any[]) => void;
|
|
103
104
|
closed: (...args: any[]) => void;
|
|
104
105
|
openChange: (...args: any[]) => void;
|
|
105
|
-
cleared: (...args: any[]) => void;
|
|
106
106
|
rangeStart: (...args: any[]) => void;
|
|
107
107
|
rangeEnd: (...args: any[]) => void;
|
|
108
108
|
}, string, import("vue").PublicProps, Readonly<MaDatePickerProps> & Readonly<{
|
|
@@ -110,10 +110,10 @@ declare const __VLS_component: import("vue").DefineComponent<MaDatePickerProps,
|
|
|
110
110
|
onChange?: (...args: any[]) => any;
|
|
111
111
|
onFocus?: (...args: any[]) => any;
|
|
112
112
|
"onUpdate:value"?: (...args: any[]) => any;
|
|
113
|
+
onCleared?: (...args: any[]) => any;
|
|
113
114
|
onOpened?: (...args: any[]) => any;
|
|
114
115
|
onClosed?: (...args: any[]) => any;
|
|
115
116
|
onOpenChange?: (...args: any[]) => any;
|
|
116
|
-
onCleared?: (...args: any[]) => any;
|
|
117
117
|
onRangeStart?: (...args: any[]) => any;
|
|
118
118
|
onRangeEnd?: (...args: any[]) => any;
|
|
119
119
|
}>, {
|
|
@@ -13,8 +13,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
|
|
|
13
13
|
visible: boolean;
|
|
14
14
|
width: number;
|
|
15
15
|
maskClosable: boolean;
|
|
16
|
+
bodyTitle: string;
|
|
16
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
17
18
|
title?(_: {}): any;
|
|
19
|
+
"body-title"?(_: {}): any;
|
|
18
20
|
content?(_: {}): any;
|
|
19
21
|
default?(_: {}): any;
|
|
20
22
|
footer?(_: {}): any;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
2
|
import MaModal from '../index';
|
|
3
|
+
import '../assets/with-tab.scss';
|
|
3
4
|
export declare const baseConfig: Meta<typeof MaModal>;
|
|
4
5
|
export declare const functionsBaseConfig: any;
|
|
5
6
|
export declare const Template: StoryFn;
|
|
6
7
|
export declare const CustomTemplate: StoryFn;
|
|
8
|
+
export declare const WithTabTemplate: StoryFn;
|
|
7
9
|
export declare const FunctionsTemplate: StoryFn;
|
|
@@ -4,6 +4,8 @@ declare const meta: Meta<typeof MaModal>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof MaModal>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
+
export declare const Custom: Story;
|
|
8
|
+
export declare const WithTab: Story;
|
|
7
9
|
export declare const Success: Story;
|
|
8
10
|
export declare const Confirm: Story;
|
|
9
11
|
export declare const Error: Story;
|
|
@@ -20,14 +20,14 @@ export interface MaPopconfirmProps {
|
|
|
20
20
|
}
|
|
21
21
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MaPopconfirmProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
22
|
cancel: (...args: any[]) => void;
|
|
23
|
-
confirm: (...args: any[]) => void;
|
|
24
23
|
"update:visible": (...args: any[]) => void;
|
|
25
24
|
visibleChange: (...args: any[]) => void;
|
|
25
|
+
confirm: (...args: any[]) => void;
|
|
26
26
|
}, string, import("vue").PublicProps, Readonly<MaPopconfirmProps> & Readonly<{
|
|
27
27
|
onCancel?: (...args: any[]) => any;
|
|
28
|
-
onConfirm?: (...args: any[]) => any;
|
|
29
28
|
"onUpdate:visible"?: (...args: any[]) => any;
|
|
30
29
|
onVisibleChange?: (...args: any[]) => any;
|
|
30
|
+
onConfirm?: (...args: any[]) => any;
|
|
31
31
|
}>, {
|
|
32
32
|
icon: string;
|
|
33
33
|
placement: PopconfirmPlacement;
|
|
@@ -4,14 +4,14 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
4
4
|
MaPopconfirm: {
|
|
5
5
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("@/components/popconfirm/index.vue").MaPopconfirmProps> & Readonly<{
|
|
6
6
|
onCancel?: (...args: any[]) => any;
|
|
7
|
-
onConfirm?: (...args: any[]) => any;
|
|
8
7
|
"onUpdate:visible"?: (...args: any[]) => any;
|
|
9
8
|
onVisibleChange?: (...args: any[]) => any;
|
|
9
|
+
onConfirm?: (...args: any[]) => any;
|
|
10
10
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
cancel: (...args: any[]) => void;
|
|
12
|
-
confirm: (...args: any[]) => void;
|
|
13
12
|
"update:visible": (...args: any[]) => void;
|
|
14
13
|
visibleChange: (...args: any[]) => void;
|
|
14
|
+
confirm: (...args: any[]) => void;
|
|
15
15
|
}, import("vue").PublicProps, {
|
|
16
16
|
icon: string;
|
|
17
17
|
placement: import("@/components/popconfirm/types").PopconfirmPlacement;
|
|
@@ -30,9 +30,9 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
30
30
|
Defaults: {};
|
|
31
31
|
}, Readonly<import("@/components/popconfirm/index.vue").MaPopconfirmProps> & Readonly<{
|
|
32
32
|
onCancel?: (...args: any[]) => any;
|
|
33
|
-
onConfirm?: (...args: any[]) => any;
|
|
34
33
|
"onUpdate:visible"?: (...args: any[]) => any;
|
|
35
34
|
onVisibleChange?: (...args: any[]) => any;
|
|
35
|
+
onConfirm?: (...args: any[]) => any;
|
|
36
36
|
}>, {}, {}, {}, {}, {
|
|
37
37
|
icon: string;
|
|
38
38
|
placement: import("@/components/popconfirm/types").PopconfirmPlacement;
|
|
@@ -48,14 +48,14 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
48
48
|
__isSuspense?: never;
|
|
49
49
|
} & import("vue").ComponentOptionsBase<Readonly<import("@/components/popconfirm/index.vue").MaPopconfirmProps> & Readonly<{
|
|
50
50
|
onCancel?: (...args: any[]) => any;
|
|
51
|
-
onConfirm?: (...args: any[]) => any;
|
|
52
51
|
"onUpdate:visible"?: (...args: any[]) => any;
|
|
53
52
|
onVisibleChange?: (...args: any[]) => any;
|
|
53
|
+
onConfirm?: (...args: any[]) => any;
|
|
54
54
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
55
55
|
cancel: (...args: any[]) => void;
|
|
56
|
-
confirm: (...args: any[]) => void;
|
|
57
56
|
"update:visible": (...args: any[]) => void;
|
|
58
57
|
visibleChange: (...args: any[]) => void;
|
|
58
|
+
confirm: (...args: any[]) => void;
|
|
59
59
|
}, string, {
|
|
60
60
|
icon: string;
|
|
61
61
|
placement: import("@/components/popconfirm/types").PopconfirmPlacement;
|
|
@@ -10,6 +10,7 @@ export interface MaPopover2Props {
|
|
|
10
10
|
showArrow?: boolean;
|
|
11
11
|
noPadding?: boolean;
|
|
12
12
|
popupContainer?: HTMLElement | null | string;
|
|
13
|
+
noAutoFocus?: boolean;
|
|
13
14
|
}
|
|
14
15
|
declare function __VLS_template(): {
|
|
15
16
|
attrs: Partial<{}>;
|
|
@@ -34,10 +35,11 @@ declare const __VLS_component: import("vue").DefineComponent<MaPopover2Props, {}
|
|
|
34
35
|
overlayClassName: string;
|
|
35
36
|
visible: boolean | undefined;
|
|
36
37
|
showArrow: boolean;
|
|
37
|
-
noPadding: boolean;
|
|
38
38
|
autoHide: boolean;
|
|
39
39
|
isMobile: boolean;
|
|
40
|
+
noPadding: boolean;
|
|
40
41
|
popupContainer: HTMLElement | null | string;
|
|
42
|
+
noAutoFocus: boolean;
|
|
41
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
44
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
45
|
export default _default;
|
|
@@ -15,10 +15,11 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
15
15
|
overlayClassName: string;
|
|
16
16
|
visible: boolean | undefined;
|
|
17
17
|
showArrow: boolean;
|
|
18
|
-
noPadding: boolean;
|
|
19
18
|
autoHide: boolean;
|
|
20
19
|
isMobile: boolean;
|
|
20
|
+
noPadding: boolean;
|
|
21
21
|
popupContainer: HTMLElement | null | string;
|
|
22
|
+
noAutoFocus: boolean;
|
|
22
23
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
23
24
|
P: {};
|
|
24
25
|
B: {};
|
|
@@ -36,10 +37,11 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
36
37
|
overlayClassName: string;
|
|
37
38
|
visible: boolean | undefined;
|
|
38
39
|
showArrow: boolean;
|
|
39
|
-
noPadding: boolean;
|
|
40
40
|
autoHide: boolean;
|
|
41
41
|
isMobile: boolean;
|
|
42
|
+
noPadding: boolean;
|
|
42
43
|
popupContainer: HTMLElement | null | string;
|
|
44
|
+
noAutoFocus: boolean;
|
|
43
45
|
}>;
|
|
44
46
|
__isFragment?: never;
|
|
45
47
|
__isTeleport?: never;
|
|
@@ -57,10 +59,11 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
57
59
|
overlayClassName: string;
|
|
58
60
|
visible: boolean | undefined;
|
|
59
61
|
showArrow: boolean;
|
|
60
|
-
noPadding: boolean;
|
|
61
62
|
autoHide: boolean;
|
|
62
63
|
isMobile: boolean;
|
|
64
|
+
noPadding: boolean;
|
|
63
65
|
popupContainer: HTMLElement | null | string;
|
|
66
|
+
noAutoFocus: boolean;
|
|
64
67
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
65
68
|
$slots: {
|
|
66
69
|
default?(_: {}): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MaSelectOptionProps } from '../types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Customized label area
|
|
7
|
+
*/
|
|
8
|
+
default(): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
/**
|
|
11
|
+
* Customized label area
|
|
12
|
+
*/
|
|
13
|
+
default(): unknown;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<MaSelectOptionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
selected: (...args: any[]) => void;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<MaSelectOptionProps> & Readonly<{
|
|
22
|
+
onSelected?: (...args: any[]) => any;
|
|
23
|
+
}>, {
|
|
24
|
+
checkboxPosition: import("../types").MaSelectOptionCheckboxPosition;
|
|
25
|
+
multiSelectionInput: import("../types").MaSelectMultiSelectionInput;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MaSelectGroupProps } from '../types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
label?(_: {}): any;
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<MaSelectGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
import { MaSelectOption } from '../types';
|
|
3
|
+
import { DynamicScroller } from 'vue-virtual-scroller';
|
|
4
|
+
export declare function useArrowNavigation(isOpen: Ref<boolean>, optionList: ComputedRef<MaSelectOption[]>, dynamicScrollerRef: Ref<InstanceType<typeof DynamicScroller> | null>, select: (i: number) => void, isDisabled: ComputedRef<boolean>): {
|
|
5
|
+
getOptionClass: (index: number) => {
|
|
6
|
+
'ma-select-option--highlighted': boolean;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MaSelectOptionValue } from '../types';
|
|
2
|
+
export declare const useOptionsRegistry: () => {
|
|
3
|
+
optionsMap: import("vue").Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
|
|
4
|
+
registerOption: (value: MaSelectOptionValue, label: string) => void;
|
|
5
|
+
unregisterOption: (value: MaSelectOptionValue) => void;
|
|
6
|
+
getOptionLabel: (value: MaSelectOptionValue) => string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { MaSelectProps, MaSelectValue, MaSelectOption as MaSelectOptionType } from './types';
|
|
2
|
+
import { DynamicScroller } from 'vue-virtual-scroller';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<{
|
|
6
|
+
/**
|
|
7
|
+
* Slot for the prefix icon for the select component
|
|
8
|
+
*/
|
|
9
|
+
'prefix-icon'(): unknown;
|
|
10
|
+
/**
|
|
11
|
+
* The input area for the select component.
|
|
12
|
+
*/
|
|
13
|
+
input(): unknown;
|
|
14
|
+
/**
|
|
15
|
+
* Suffix icon slot for the select component.
|
|
16
|
+
*/
|
|
17
|
+
'suffix-icon'(): unknown;
|
|
18
|
+
/**
|
|
19
|
+
* The hint area slot for the bottom of the select input.
|
|
20
|
+
*/
|
|
21
|
+
hint(): unknown;
|
|
22
|
+
/**
|
|
23
|
+
* Customize dropdown content, virtual scroll does not work with this mode
|
|
24
|
+
*/
|
|
25
|
+
default(): unknown;
|
|
26
|
+
/**
|
|
27
|
+
* Slot for each option in the dropdown
|
|
28
|
+
*/
|
|
29
|
+
option(option: MaSelectOptionType): unknown;
|
|
30
|
+
/**
|
|
31
|
+
* Customize dropdown header area
|
|
32
|
+
*/
|
|
33
|
+
header(): unknown;
|
|
34
|
+
/**
|
|
35
|
+
* Customize dropdown footer area
|
|
36
|
+
*/
|
|
37
|
+
footer(): unknown;
|
|
38
|
+
}> & {
|
|
39
|
+
/**
|
|
40
|
+
* Slot for the prefix icon for the select component
|
|
41
|
+
*/
|
|
42
|
+
'prefix-icon'(): unknown;
|
|
43
|
+
/**
|
|
44
|
+
* The input area for the select component.
|
|
45
|
+
*/
|
|
46
|
+
input(): unknown;
|
|
47
|
+
/**
|
|
48
|
+
* Suffix icon slot for the select component.
|
|
49
|
+
*/
|
|
50
|
+
'suffix-icon'(): unknown;
|
|
51
|
+
/**
|
|
52
|
+
* The hint area slot for the bottom of the select input.
|
|
53
|
+
*/
|
|
54
|
+
hint(): unknown;
|
|
55
|
+
/**
|
|
56
|
+
* Customize dropdown content, virtual scroll does not work with this mode
|
|
57
|
+
*/
|
|
58
|
+
default(): unknown;
|
|
59
|
+
/**
|
|
60
|
+
* Slot for each option in the dropdown
|
|
61
|
+
*/
|
|
62
|
+
option(option: MaSelectOptionType): unknown;
|
|
63
|
+
/**
|
|
64
|
+
* Customize dropdown header area
|
|
65
|
+
*/
|
|
66
|
+
header(): unknown;
|
|
67
|
+
/**
|
|
68
|
+
* Customize dropdown footer area
|
|
69
|
+
*/
|
|
70
|
+
footer(): unknown;
|
|
71
|
+
};
|
|
72
|
+
refs: {
|
|
73
|
+
selectInput: HTMLButtonElement;
|
|
74
|
+
overlay: HTMLDivElement;
|
|
75
|
+
searchInput: {
|
|
76
|
+
$: import("vue").ComponentInternalInstance;
|
|
77
|
+
$data: {};
|
|
78
|
+
$props: Partial<{
|
|
79
|
+
size: import("@/index").MaInputSize;
|
|
80
|
+
type: import("@/index").MaInputType;
|
|
81
|
+
}> & Omit<{
|
|
82
|
+
readonly allowClear?: boolean;
|
|
83
|
+
readonly type?: import("@/index").MaInputType;
|
|
84
|
+
readonly size?: import("@/index").MaInputSize;
|
|
85
|
+
readonly title?: string;
|
|
86
|
+
readonly hintText?: string;
|
|
87
|
+
readonly hasError?: boolean;
|
|
88
|
+
readonly placeholder?: string;
|
|
89
|
+
readonly disabled?: boolean;
|
|
90
|
+
readonly addonBefore?: string;
|
|
91
|
+
readonly addonAfter?: string;
|
|
92
|
+
readonly avatarUrl?: string;
|
|
93
|
+
readonly value?: string;
|
|
94
|
+
readonly amountCurrency?: import("@/index").MaInputCurrency;
|
|
95
|
+
readonly hint?: string;
|
|
96
|
+
readonly prefixIcon?: string;
|
|
97
|
+
readonly suffixIcon?: string;
|
|
98
|
+
readonly inputClass?: string;
|
|
99
|
+
readonly onChange?: (...args: any[]) => any;
|
|
100
|
+
readonly onFocus?: (...args: any[]) => any;
|
|
101
|
+
readonly onFocusout?: (...args: any[]) => any;
|
|
102
|
+
readonly "onCurrency-change"?: (...args: any[]) => any;
|
|
103
|
+
readonly "onUpdate:value"?: (...args: any[]) => any;
|
|
104
|
+
readonly "onUpdate:amountCurrency"?: (...args: any[]) => any;
|
|
105
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "type">;
|
|
106
|
+
$attrs: {
|
|
107
|
+
[x: string]: unknown;
|
|
108
|
+
};
|
|
109
|
+
$refs: {
|
|
110
|
+
[x: string]: unknown;
|
|
111
|
+
};
|
|
112
|
+
$slots: Readonly<{
|
|
113
|
+
[name: string]: import("vue").Slot<any>;
|
|
114
|
+
}>;
|
|
115
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
116
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
117
|
+
$host: Element | null;
|
|
118
|
+
$emit: ((event: "change", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "focusout", ...args: any[]) => void) & ((event: "currency-change", ...args: any[]) => void) & ((event: "update:value", ...args: any[]) => void) & ((event: "update:amountCurrency", ...args: any[]) => void);
|
|
119
|
+
$el: any;
|
|
120
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("../input/index.vue").MaInputProps> & Readonly<{
|
|
121
|
+
onChange?: (...args: any[]) => any;
|
|
122
|
+
onFocus?: (...args: any[]) => any;
|
|
123
|
+
onFocusout?: (...args: any[]) => any;
|
|
124
|
+
"onCurrency-change"?: (...args: any[]) => any;
|
|
125
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
126
|
+
"onUpdate:amountCurrency"?: (...args: any[]) => any;
|
|
127
|
+
}>, {
|
|
128
|
+
focus: () => void;
|
|
129
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
130
|
+
change: (...args: any[]) => void;
|
|
131
|
+
focus: (...args: any[]) => void;
|
|
132
|
+
focusout: (...args: any[]) => void;
|
|
133
|
+
"currency-change": (...args: any[]) => void;
|
|
134
|
+
"update:value": (...args: any[]) => void;
|
|
135
|
+
"update:amountCurrency": (...args: any[]) => void;
|
|
136
|
+
}, string, {
|
|
137
|
+
size: import("@/index").MaInputSize;
|
|
138
|
+
type: import("@/index").MaInputType;
|
|
139
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
140
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
141
|
+
created?: (() => void) | (() => void)[];
|
|
142
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
143
|
+
mounted?: (() => void) | (() => void)[];
|
|
144
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
145
|
+
updated?: (() => void) | (() => void)[];
|
|
146
|
+
activated?: (() => void) | (() => void)[];
|
|
147
|
+
deactivated?: (() => void) | (() => void)[];
|
|
148
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
149
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
150
|
+
destroyed?: (() => void) | (() => void)[];
|
|
151
|
+
unmounted?: (() => void) | (() => void)[];
|
|
152
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
153
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
154
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
155
|
+
};
|
|
156
|
+
$forceUpdate: () => void;
|
|
157
|
+
$nextTick: typeof import("vue").nextTick;
|
|
158
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
159
|
+
} & Readonly<{
|
|
160
|
+
size: import("@/index").MaInputSize;
|
|
161
|
+
type: import("@/index").MaInputType;
|
|
162
|
+
}> & Omit<Readonly<import("../input/index.vue").MaInputProps> & Readonly<{
|
|
163
|
+
onChange?: (...args: any[]) => any;
|
|
164
|
+
onFocus?: (...args: any[]) => any;
|
|
165
|
+
onFocusout?: (...args: any[]) => any;
|
|
166
|
+
"onCurrency-change"?: (...args: any[]) => any;
|
|
167
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
168
|
+
"onUpdate:amountCurrency"?: (...args: any[]) => any;
|
|
169
|
+
}>, "focus" | ("size" | "type")> & import("vue").ShallowUnwrapRef<{
|
|
170
|
+
focus: () => void;
|
|
171
|
+
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
172
|
+
$slots: Partial<Record<NonNullable<string | number>, (_: {}) => any>> & Partial<Record<NonNullable<string | number>, (_: {}) => any>> & {
|
|
173
|
+
title?(_: {}): any;
|
|
174
|
+
hint?(_: {}): any;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
dynamicScrollerRef: DynamicScroller;
|
|
178
|
+
};
|
|
179
|
+
rootEl: HTMLDivElement;
|
|
180
|
+
};
|
|
181
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
182
|
+
declare const __VLS_component: import("vue").DefineComponent<MaSelectProps, {
|
|
183
|
+
setSearchValue: (value?: string) => string;
|
|
184
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
185
|
+
change: (...args: any[]) => void;
|
|
186
|
+
"update:value": (...args: any[]) => void;
|
|
187
|
+
dropdownVisibleChange: (...args: any[]) => void;
|
|
188
|
+
searchValueChange: (...args: any[]) => void;
|
|
189
|
+
cleared: (...args: any[]) => void;
|
|
190
|
+
}, string, import("vue").PublicProps, Readonly<MaSelectProps> & Readonly<{
|
|
191
|
+
onChange?: (...args: any[]) => any;
|
|
192
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
193
|
+
onDropdownVisibleChange?: (...args: any[]) => any;
|
|
194
|
+
onSearchValueChange?: (...args: any[]) => any;
|
|
195
|
+
onCleared?: (...args: any[]) => any;
|
|
196
|
+
}>, {
|
|
197
|
+
size: import("./types").MaSelectSize;
|
|
198
|
+
disabled: boolean;
|
|
199
|
+
loading: boolean;
|
|
200
|
+
value: MaSelectValue;
|
|
201
|
+
options: MaSelectOptionType[];
|
|
202
|
+
dropdownMatchSelectWidth: boolean;
|
|
203
|
+
showSearch: boolean;
|
|
204
|
+
allowClear: boolean;
|
|
205
|
+
listHeight: number;
|
|
206
|
+
multiple: boolean;
|
|
207
|
+
compact: boolean;
|
|
208
|
+
searchPlaceholder: string;
|
|
209
|
+
dropdownProps: import("../popover-2/index.vue").MaPopover2Props;
|
|
210
|
+
checkboxPosition: import("./types").MaSelectOptionCheckboxPosition;
|
|
211
|
+
multiSelectionInput: import("./types").MaSelectMultiSelectionInput;
|
|
212
|
+
hideCheckIcon: boolean;
|
|
213
|
+
hideSuffix: boolean;
|
|
214
|
+
disableKeywordActions: boolean;
|
|
215
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
216
|
+
selectInput: HTMLButtonElement;
|
|
217
|
+
overlay: HTMLDivElement;
|
|
218
|
+
searchInput: {
|
|
219
|
+
$: import("vue").ComponentInternalInstance;
|
|
220
|
+
$data: {};
|
|
221
|
+
$props: Partial<{
|
|
222
|
+
size: import("@/index").MaInputSize;
|
|
223
|
+
type: import("@/index").MaInputType;
|
|
224
|
+
}> & Omit<{
|
|
225
|
+
readonly allowClear?: boolean;
|
|
226
|
+
readonly type?: import("@/index").MaInputType;
|
|
227
|
+
readonly size?: import("@/index").MaInputSize;
|
|
228
|
+
readonly title?: string;
|
|
229
|
+
readonly hintText?: string;
|
|
230
|
+
readonly hasError?: boolean;
|
|
231
|
+
readonly placeholder?: string;
|
|
232
|
+
readonly disabled?: boolean;
|
|
233
|
+
readonly addonBefore?: string;
|
|
234
|
+
readonly addonAfter?: string;
|
|
235
|
+
readonly avatarUrl?: string;
|
|
236
|
+
readonly value?: string;
|
|
237
|
+
readonly amountCurrency?: import("@/index").MaInputCurrency;
|
|
238
|
+
readonly hint?: string;
|
|
239
|
+
readonly prefixIcon?: string;
|
|
240
|
+
readonly suffixIcon?: string;
|
|
241
|
+
readonly inputClass?: string;
|
|
242
|
+
readonly onChange?: (...args: any[]) => any;
|
|
243
|
+
readonly onFocus?: (...args: any[]) => any;
|
|
244
|
+
readonly onFocusout?: (...args: any[]) => any;
|
|
245
|
+
readonly "onCurrency-change"?: (...args: any[]) => any;
|
|
246
|
+
readonly "onUpdate:value"?: (...args: any[]) => any;
|
|
247
|
+
readonly "onUpdate:amountCurrency"?: (...args: any[]) => any;
|
|
248
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "type">;
|
|
249
|
+
$attrs: {
|
|
250
|
+
[x: string]: unknown;
|
|
251
|
+
};
|
|
252
|
+
$refs: {
|
|
253
|
+
[x: string]: unknown;
|
|
254
|
+
};
|
|
255
|
+
$slots: Readonly<{
|
|
256
|
+
[name: string]: import("vue").Slot<any>;
|
|
257
|
+
}>;
|
|
258
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
259
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
260
|
+
$host: Element | null;
|
|
261
|
+
$emit: ((event: "change", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "focusout", ...args: any[]) => void) & ((event: "currency-change", ...args: any[]) => void) & ((event: "update:value", ...args: any[]) => void) & ((event: "update:amountCurrency", ...args: any[]) => void);
|
|
262
|
+
$el: any;
|
|
263
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("../input/index.vue").MaInputProps> & Readonly<{
|
|
264
|
+
onChange?: (...args: any[]) => any;
|
|
265
|
+
onFocus?: (...args: any[]) => any;
|
|
266
|
+
onFocusout?: (...args: any[]) => any;
|
|
267
|
+
"onCurrency-change"?: (...args: any[]) => any;
|
|
268
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
269
|
+
"onUpdate:amountCurrency"?: (...args: any[]) => any;
|
|
270
|
+
}>, {
|
|
271
|
+
focus: () => void;
|
|
272
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
273
|
+
change: (...args: any[]) => void;
|
|
274
|
+
focus: (...args: any[]) => void;
|
|
275
|
+
focusout: (...args: any[]) => void;
|
|
276
|
+
"currency-change": (...args: any[]) => void;
|
|
277
|
+
"update:value": (...args: any[]) => void;
|
|
278
|
+
"update:amountCurrency": (...args: any[]) => void;
|
|
279
|
+
}, string, {
|
|
280
|
+
size: import("@/index").MaInputSize;
|
|
281
|
+
type: import("@/index").MaInputType;
|
|
282
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
283
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
284
|
+
created?: (() => void) | (() => void)[];
|
|
285
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
286
|
+
mounted?: (() => void) | (() => void)[];
|
|
287
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
288
|
+
updated?: (() => void) | (() => void)[];
|
|
289
|
+
activated?: (() => void) | (() => void)[];
|
|
290
|
+
deactivated?: (() => void) | (() => void)[];
|
|
291
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
292
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
293
|
+
destroyed?: (() => void) | (() => void)[];
|
|
294
|
+
unmounted?: (() => void) | (() => void)[];
|
|
295
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
296
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
297
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
298
|
+
};
|
|
299
|
+
$forceUpdate: () => void;
|
|
300
|
+
$nextTick: typeof import("vue").nextTick;
|
|
301
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
302
|
+
} & Readonly<{
|
|
303
|
+
size: import("@/index").MaInputSize;
|
|
304
|
+
type: import("@/index").MaInputType;
|
|
305
|
+
}> & Omit<Readonly<import("../input/index.vue").MaInputProps> & Readonly<{
|
|
306
|
+
onChange?: (...args: any[]) => any;
|
|
307
|
+
onFocus?: (...args: any[]) => any;
|
|
308
|
+
onFocusout?: (...args: any[]) => any;
|
|
309
|
+
"onCurrency-change"?: (...args: any[]) => any;
|
|
310
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
311
|
+
"onUpdate:amountCurrency"?: (...args: any[]) => any;
|
|
312
|
+
}>, "focus" | ("size" | "type")> & import("vue").ShallowUnwrapRef<{
|
|
313
|
+
focus: () => void;
|
|
314
|
+
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
315
|
+
$slots: Partial<Record<NonNullable<string | number>, (_: {}) => any>> & Partial<Record<NonNullable<string | number>, (_: {}) => any>> & {
|
|
316
|
+
title?(_: {}): any;
|
|
317
|
+
hint?(_: {}): any;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
dynamicScrollerRef: DynamicScroller;
|
|
321
|
+
}, HTMLDivElement>;
|
|
322
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
323
|
+
export default _default;
|
|
324
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
325
|
+
new (): {
|
|
326
|
+
$slots: S;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { MaSelect2 as MaSelect } from '@/index';
|
|
3
|
+
declare const meta: Meta<typeof MaSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MaSelect>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Disabled: Story;
|
|
8
|
+
export declare const ErrorState: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { MaSelect2 as MaSelect } from '@/index';
|
|
3
|
+
export declare const baseConfig: Meta<typeof MaSelect>;
|
|
4
|
+
export declare const Template: StoryFn;
|
|
5
|
+
export declare const TemplateDropdownRender: StoryFn;
|
|
6
|
+
export declare const TemplateOptionSlot: StoryFn;
|
|
7
|
+
export declare const TemplateAppIcon: StoryFn;
|
|
8
|
+
export declare const TemplateBadge: StoryFn;
|
|
9
|
+
export declare const TemplateIcon: StoryFn;
|
|
10
|
+
export declare const TemplateHeaderFooter: StoryFn;
|
|
11
|
+
export declare const TemplateCustomInput: StoryFn;
|
|
12
|
+
export declare const TemplateCompact: StoryFn;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { MaSelect2 as MaSelect } from '@/index';
|
|
3
|
+
declare const meta: Meta<typeof MaSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MaSelect>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Disabled: Story;
|
|
8
|
+
export declare const ErrorState: Story;
|