@mobileaction/action-kit 1.1.60 → 1.1.62
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 +8 -8
- package/dist/action-kit.mjs +1003 -929
- package/dist/components/app-icon/index.vue.d.ts +22 -0
- package/dist/components/autocomplete/index.vue.d.ts +12 -0
- package/dist/components/dropdown/index.vue.d.ts +6 -6
- package/dist/components/input/index.vue.d.ts +1 -1
- package/dist/components/popover/index.vue.d.ts +69 -0
- package/dist/components/popover/types.d.ts +6 -0
- package/dist/components/switch/index.vue.d.ts +1 -1
- package/dist/components/tabs/index.vue.d.ts +3 -3
- package/dist/components/toggle/index.vue.d.ts +1 -1
- package/dist/components/tooltip/index.vue.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/src/components/app-icon/index.vue.d.ts +6 -0
- package/dist/src/components/autocomplete/index.vue.d.ts +4 -0
- package/dist/src/components/autocomplete/stories/default.stories.d.ts +1 -1
- package/dist/src/components/dropdown/index.vue.d.ts +4 -4
- package/dist/src/components/input/index.vue.d.ts +1 -1
- package/dist/src/components/input-number/index.vue.d.ts +1 -1
- package/dist/src/components/numeric-input/components/singleNumericInput.vue.d.ts +1 -1
- package/dist/src/components/popover/index.vue.d.ts +50 -0
- package/dist/src/components/popover/stories/constants.d.ts +5 -0
- package/dist/src/components/popover/stories/default.stories.d.ts +8 -0
- package/dist/src/components/popover/types.d.ts +6 -0
- package/dist/src/components/tabs/index.vue.d.ts +1 -1
- package/dist/src/components/tooltip/index.vue.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PropType as __PropType } from 'vue';
|
|
2
2
|
import { AppIconPlatform, AppIconSize } from '../../components/app-icon/types';
|
|
3
|
+
import { MaTooltipProps } from '../../components/tooltip/index.vue';
|
|
3
4
|
export interface MaAppIconProps {
|
|
4
5
|
appIcon: string;
|
|
5
6
|
appName?: string;
|
|
@@ -8,6 +9,8 @@ export interface MaAppIconProps {
|
|
|
8
9
|
platform?: AppIconPlatform;
|
|
9
10
|
rounded?: boolean;
|
|
10
11
|
size?: AppIconSize;
|
|
12
|
+
showTooltip?: boolean;
|
|
13
|
+
tooltipProps?: MaTooltipProps;
|
|
11
14
|
}
|
|
12
15
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
13
16
|
appIcon: {
|
|
@@ -41,6 +44,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
41
44
|
required: false;
|
|
42
45
|
default: string;
|
|
43
46
|
};
|
|
47
|
+
showTooltip: {
|
|
48
|
+
type: __PropType<boolean>;
|
|
49
|
+
required: false;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
tooltipProps: {
|
|
53
|
+
type: __PropType<MaTooltipProps>;
|
|
54
|
+
required: false;
|
|
55
|
+
};
|
|
44
56
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
57
|
appIcon: {
|
|
46
58
|
type: __PropType<string>;
|
|
@@ -73,11 +85,21 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
73
85
|
required: false;
|
|
74
86
|
default: string;
|
|
75
87
|
};
|
|
88
|
+
showTooltip: {
|
|
89
|
+
type: __PropType<boolean>;
|
|
90
|
+
required: false;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
tooltipProps: {
|
|
94
|
+
type: __PropType<MaTooltipProps>;
|
|
95
|
+
required: false;
|
|
96
|
+
};
|
|
76
97
|
}>> & {
|
|
77
98
|
onClose?: (...args: any[]) => any;
|
|
78
99
|
}, {
|
|
79
100
|
closable: boolean;
|
|
80
101
|
size: "x-small" | "small" | "medium" | "large" | "x-large";
|
|
81
102
|
rounded: boolean;
|
|
103
|
+
showTooltip: boolean;
|
|
82
104
|
}>;
|
|
83
105
|
export default _sfc_main;
|
|
@@ -11,6 +11,7 @@ export interface MaAutocompleteProps {
|
|
|
11
11
|
avatarUrl?: string;
|
|
12
12
|
open?: boolean;
|
|
13
13
|
size?: AutoCompleteSize;
|
|
14
|
+
autofocus?: boolean;
|
|
14
15
|
}
|
|
15
16
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
16
17
|
value: {
|
|
@@ -53,6 +54,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
53
54
|
required: false;
|
|
54
55
|
default: string;
|
|
55
56
|
};
|
|
57
|
+
autofocus: {
|
|
58
|
+
type: __PropType<boolean>;
|
|
59
|
+
required: false;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
56
62
|
}, {}, 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
63
|
value: {
|
|
58
64
|
type: __PropType<string>;
|
|
@@ -94,11 +100,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
94
100
|
required: false;
|
|
95
101
|
default: string;
|
|
96
102
|
};
|
|
103
|
+
autofocus: {
|
|
104
|
+
type: __PropType<boolean>;
|
|
105
|
+
required: false;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
97
108
|
}>> & {
|
|
98
109
|
"onUpdate:value"?: (...args: any[]) => any;
|
|
99
110
|
onSearch?: (...args: any[]) => any;
|
|
100
111
|
}, {
|
|
101
112
|
size: "small" | "medium" | "large";
|
|
113
|
+
autofocus: boolean;
|
|
102
114
|
options: OptionType[];
|
|
103
115
|
filterFn: Function;
|
|
104
116
|
open: boolean;
|
|
@@ -20,12 +20,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
22
|
placement: {
|
|
23
|
-
type: __PropType<"
|
|
23
|
+
type: __PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
24
24
|
required: false;
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
trigger: {
|
|
28
|
-
type: __PropType<("
|
|
28
|
+
type: __PropType<("hover" | "click" | "contextmenu")[]>;
|
|
29
29
|
required: false;
|
|
30
30
|
default: () => string[];
|
|
31
31
|
};
|
|
@@ -50,12 +50,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
50
50
|
default: boolean;
|
|
51
51
|
};
|
|
52
52
|
placement: {
|
|
53
|
-
type: __PropType<"
|
|
53
|
+
type: __PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
54
54
|
required: false;
|
|
55
55
|
default: string;
|
|
56
56
|
};
|
|
57
57
|
trigger: {
|
|
58
|
-
type: __PropType<("
|
|
58
|
+
type: __PropType<("hover" | "click" | "contextmenu")[]>;
|
|
59
59
|
required: false;
|
|
60
60
|
default: () => string[];
|
|
61
61
|
};
|
|
@@ -72,10 +72,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
72
72
|
"onUpdate:visible"?: (...args: any[]) => any;
|
|
73
73
|
onVisibleChange?: (...args: any[]) => any;
|
|
74
74
|
}, {
|
|
75
|
+
placement: "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
76
|
+
trigger: ("hover" | "click" | "contextmenu")[];
|
|
75
77
|
disabled: boolean;
|
|
76
78
|
destroyPopupOnHide: boolean;
|
|
77
|
-
placement: "bottomLeft" | "bottom" | "bottomRight" | "topLeft" | "top" | "topRight";
|
|
78
|
-
trigger: ("click" | "hover" | "contextmenu")[];
|
|
79
79
|
visible: boolean;
|
|
80
80
|
}>;
|
|
81
81
|
export default _sfc_main;
|
|
@@ -90,7 +90,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
90
90
|
type: __PropType<string>;
|
|
91
91
|
required: false;
|
|
92
92
|
};
|
|
93
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value" | "currency-change" | "update:amountCurrency" | "
|
|
93
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "change" | "update:value" | "currency-change" | "update:amountCurrency" | "focusout")[], "focus" | "change" | "update:value" | "currency-change" | "update:amountCurrency" | "focusout", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
94
94
|
allowClear: {
|
|
95
95
|
type: __PropType<boolean>;
|
|
96
96
|
required: false;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { PopoverPlacement, PopoverTriggerType } from "./types";
|
|
3
|
+
export interface MaPopoverProps {
|
|
4
|
+
placement?: PopoverPlacement;
|
|
5
|
+
trigger?: PopoverTriggerType[];
|
|
6
|
+
visible?: boolean;
|
|
7
|
+
overlayClassName?: string;
|
|
8
|
+
showArrow?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
11
|
+
placement: {
|
|
12
|
+
type: __PropType<"top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
|
|
13
|
+
required: false;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
trigger: {
|
|
17
|
+
type: __PropType<("hover" | "focus" | "click" | "contextmenu")[]>;
|
|
18
|
+
required: false;
|
|
19
|
+
default: () => string[];
|
|
20
|
+
};
|
|
21
|
+
visible: {
|
|
22
|
+
type: __PropType<boolean>;
|
|
23
|
+
required: false;
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
|
26
|
+
overlayClassName: {
|
|
27
|
+
type: __PropType<string>;
|
|
28
|
+
required: false;
|
|
29
|
+
};
|
|
30
|
+
showArrow: {
|
|
31
|
+
type: __PropType<boolean>;
|
|
32
|
+
required: false;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "visibleChange")[], "update:visible" | "visibleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
placement: {
|
|
37
|
+
type: __PropType<"top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
|
|
38
|
+
required: false;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
trigger: {
|
|
42
|
+
type: __PropType<("hover" | "focus" | "click" | "contextmenu")[]>;
|
|
43
|
+
required: false;
|
|
44
|
+
default: () => string[];
|
|
45
|
+
};
|
|
46
|
+
visible: {
|
|
47
|
+
type: __PropType<boolean>;
|
|
48
|
+
required: false;
|
|
49
|
+
default: any;
|
|
50
|
+
};
|
|
51
|
+
overlayClassName: {
|
|
52
|
+
type: __PropType<string>;
|
|
53
|
+
required: false;
|
|
54
|
+
};
|
|
55
|
+
showArrow: {
|
|
56
|
+
type: __PropType<boolean>;
|
|
57
|
+
required: false;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
}>> & {
|
|
61
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
62
|
+
onVisibleChange?: (...args: any[]) => any;
|
|
63
|
+
}, {
|
|
64
|
+
placement: "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
|
|
65
|
+
trigger: ("hover" | "focus" | "click" | "contextmenu")[];
|
|
66
|
+
visible: boolean;
|
|
67
|
+
showArrow: boolean;
|
|
68
|
+
}>;
|
|
69
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const PopoverPlacements: readonly ["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"];
|
|
2
|
+
export declare const PopoverTypes: readonly ["primary", "secondary"];
|
|
3
|
+
export declare const PopoverTriggerTypes: readonly ["hover", "focus", "click", "contextmenu"];
|
|
4
|
+
export type PopoverPlacement = (typeof PopoverPlacements)[number];
|
|
5
|
+
export type PopoverType = (typeof PopoverTypes)[number];
|
|
6
|
+
export type PopoverTriggerType = (typeof PopoverTriggerTypes)[number];
|
|
@@ -39,7 +39,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
39
39
|
required: false;
|
|
40
40
|
default: string;
|
|
41
41
|
};
|
|
42
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
42
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change")[], "click" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
43
|
active: {
|
|
44
44
|
type: __PropType<string>;
|
|
45
45
|
required: true;
|
|
@@ -23,7 +23,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
23
23
|
default: boolean;
|
|
24
24
|
};
|
|
25
25
|
tabPosition: {
|
|
26
|
-
type: __PropType<"
|
|
26
|
+
type: __PropType<"top" | "left" | "right" | "bottom">;
|
|
27
27
|
required: false;
|
|
28
28
|
default: string;
|
|
29
29
|
};
|
|
@@ -48,7 +48,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
48
48
|
default: boolean;
|
|
49
49
|
};
|
|
50
50
|
tabPosition: {
|
|
51
|
-
type: __PropType<"
|
|
51
|
+
type: __PropType<"top" | "left" | "right" | "bottom">;
|
|
52
52
|
required: false;
|
|
53
53
|
default: string;
|
|
54
54
|
};
|
|
@@ -63,6 +63,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
63
63
|
type: "line" | "card";
|
|
64
64
|
animated: boolean;
|
|
65
65
|
destroyInactiveTabPane: boolean;
|
|
66
|
-
tabPosition: "
|
|
66
|
+
tabPosition: "top" | "left" | "right" | "bottom";
|
|
67
67
|
}>;
|
|
68
68
|
export default _sfc_main;
|
|
@@ -44,7 +44,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
44
44
|
type: __PropType<string>;
|
|
45
45
|
required: false;
|
|
46
46
|
};
|
|
47
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
47
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change")[], "click" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
48
|
size: {
|
|
49
49
|
type: __PropType<"default" | "small" | "large">;
|
|
50
50
|
required: false;
|
|
@@ -36,7 +36,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
36
36
|
required: false;
|
|
37
37
|
};
|
|
38
38
|
trigger: {
|
|
39
|
-
type: __PropType<"
|
|
39
|
+
type: __PropType<"hover" | "focus" | "click" | "contextmenu">;
|
|
40
40
|
required: false;
|
|
41
41
|
default: string;
|
|
42
42
|
};
|
|
@@ -77,7 +77,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
77
77
|
required: false;
|
|
78
78
|
};
|
|
79
79
|
trigger: {
|
|
80
|
-
type: __PropType<"
|
|
80
|
+
type: __PropType<"hover" | "focus" | "click" | "contextmenu">;
|
|
81
81
|
required: false;
|
|
82
82
|
default: string;
|
|
83
83
|
};
|
|
@@ -97,7 +97,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
97
97
|
}>>, {
|
|
98
98
|
type: "primary" | "secondary";
|
|
99
99
|
placement: TooltipPlacement;
|
|
100
|
-
trigger: "
|
|
100
|
+
trigger: "hover" | "focus" | "click" | "contextmenu";
|
|
101
101
|
defaultVisible: boolean;
|
|
102
102
|
}>;
|
|
103
103
|
export default _sfc_main;
|
package/dist/index.d.ts
CHANGED
|
@@ -67,5 +67,6 @@ export { default as MaDrawer } from './components/drawer/index.vue';
|
|
|
67
67
|
export { default as MaKeywordGroupSelection } from './components/keyword-group-selection/index.vue';
|
|
68
68
|
export { default as MaIconButton } from './components/icon-button/index.vue';
|
|
69
69
|
export { default as MaSlider } from './components/slider/index.vue';
|
|
70
|
+
export { default as MaPopover } from './components/popover/index.vue';
|
|
70
71
|
export { ActionKitConfig } from './services/config';
|
|
71
72
|
export { useActionKitConfig } from './composables/config';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AppIconPlatform, AppIconSize } from "@/components/app-icon/types";
|
|
2
|
+
import { MaTooltipProps } from "@/components/tooltip/index.vue";
|
|
2
3
|
export interface MaAppIconProps {
|
|
3
4
|
appIcon: string;
|
|
4
5
|
appName?: string;
|
|
@@ -7,21 +8,26 @@ export interface MaAppIconProps {
|
|
|
7
8
|
platform?: AppIconPlatform;
|
|
8
9
|
rounded?: boolean;
|
|
9
10
|
size?: AppIconSize;
|
|
11
|
+
showTooltip?: boolean;
|
|
12
|
+
tooltipProps?: MaTooltipProps;
|
|
10
13
|
}
|
|
11
14
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAppIconProps>, {
|
|
12
15
|
closable: boolean;
|
|
13
16
|
rounded: boolean;
|
|
14
17
|
size: string;
|
|
18
|
+
showTooltip: boolean;
|
|
15
19
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAppIconProps>, {
|
|
16
20
|
closable: boolean;
|
|
17
21
|
rounded: boolean;
|
|
18
22
|
size: string;
|
|
23
|
+
showTooltip: boolean;
|
|
19
24
|
}>>> & {
|
|
20
25
|
onClose?: (...args: any[]) => any;
|
|
21
26
|
}, {
|
|
22
27
|
size: "small" | "x-small" | "medium" | "large" | "x-large";
|
|
23
28
|
closable: boolean;
|
|
24
29
|
rounded: boolean;
|
|
30
|
+
showTooltip: boolean;
|
|
25
31
|
}>;
|
|
26
32
|
export default _default;
|
|
27
33
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -10,22 +10,26 @@ export interface MaAutocompleteProps {
|
|
|
10
10
|
avatarUrl?: string;
|
|
11
11
|
open?: boolean;
|
|
12
12
|
size?: AutoCompleteSize;
|
|
13
|
+
autofocus?: boolean;
|
|
13
14
|
}
|
|
14
15
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAutocompleteProps>, {
|
|
15
16
|
options: () => OptionType[];
|
|
16
17
|
filterFn: (value: string, option: OptionType) => boolean;
|
|
17
18
|
open: boolean;
|
|
18
19
|
size: string;
|
|
20
|
+
autofocus: boolean;
|
|
19
21
|
}>, {}, 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
22
|
options: () => OptionType[];
|
|
21
23
|
filterFn: (value: string, option: OptionType) => boolean;
|
|
22
24
|
open: boolean;
|
|
23
25
|
size: string;
|
|
26
|
+
autofocus: boolean;
|
|
24
27
|
}>>> & {
|
|
25
28
|
"onUpdate:value"?: (...args: any[]) => any;
|
|
26
29
|
onSearch?: (...args: any[]) => any;
|
|
27
30
|
}, {
|
|
28
31
|
size: "small" | "medium" | "large";
|
|
32
|
+
autofocus: boolean;
|
|
29
33
|
options: OptionType[];
|
|
30
34
|
open: boolean;
|
|
31
35
|
filterFn: Function;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
-
import
|
|
2
|
+
import MaAutoComplete from '../index.vue';
|
|
3
3
|
declare const meta: Meta<typeof MaAutoComplete>;
|
|
4
4
|
export default meta;
|
|
5
5
|
declare type Story = StoryObj<typeof MaAutoComplete>;
|
|
@@ -20,14 +20,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
20
|
trigger: () => string[];
|
|
21
21
|
visible: any;
|
|
22
22
|
}>>> & {
|
|
23
|
-
"onUpdate:visible"?: (...args: any[]) => any;
|
|
24
23
|
onVisibleChange?: (...args: any[]) => any;
|
|
24
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
25
25
|
}, {
|
|
26
|
+
placement: "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
27
|
+
trigger: ("hover" | "click" | "contextmenu")[];
|
|
28
|
+
visible: boolean;
|
|
26
29
|
disabled: boolean;
|
|
27
|
-
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "bottom" | "top";
|
|
28
30
|
destroyPopupOnHide: boolean;
|
|
29
|
-
trigger: ("click" | "hover" | "contextmenu")[];
|
|
30
|
-
visible: boolean;
|
|
31
31
|
}>, {
|
|
32
32
|
default: (_: {}) => any;
|
|
33
33
|
overlay: (_: {}) => any;
|
|
@@ -21,7 +21,7 @@ export interface MaInputProps {
|
|
|
21
21
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaInputProps>, {
|
|
22
22
|
type: "text";
|
|
23
23
|
size: "small";
|
|
24
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
24
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "change" | "currency-change" | "update:value" | "update:amountCurrency" | "focusout")[], "focus" | "change" | "currency-change" | "update:value" | "update:amountCurrency" | "focusout", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaInputProps>, {
|
|
25
25
|
type: "text";
|
|
26
26
|
size: "small";
|
|
27
27
|
}>>> & {
|
|
@@ -43,8 +43,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
43
43
|
onStep?: (...args: any[]) => any;
|
|
44
44
|
}, {
|
|
45
45
|
size: MaInputNumberSize;
|
|
46
|
-
disabled: boolean;
|
|
47
46
|
value: string | number;
|
|
47
|
+
disabled: boolean;
|
|
48
48
|
autofocus: boolean;
|
|
49
49
|
controls: boolean;
|
|
50
50
|
keyboard: boolean;
|
|
@@ -11,8 +11,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
11
11
|
}>>> & {
|
|
12
12
|
"onUpdate:value"?: (...args: any[]) => any;
|
|
13
13
|
}, {
|
|
14
|
-
value: string;
|
|
15
14
|
focus: boolean;
|
|
15
|
+
value: string;
|
|
16
16
|
}>;
|
|
17
17
|
export default _default;
|
|
18
18
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PopoverPlacement, PopoverTriggerType } from "./types";
|
|
2
|
+
export interface MaPopoverProps {
|
|
3
|
+
placement?: PopoverPlacement;
|
|
4
|
+
trigger?: PopoverTriggerType[];
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
overlayClassName?: string;
|
|
7
|
+
showArrow?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaPopoverProps>, {
|
|
10
|
+
placement: string;
|
|
11
|
+
trigger: () => string[];
|
|
12
|
+
visible: any;
|
|
13
|
+
showArrow: boolean;
|
|
14
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "visibleChange")[], "update:visible" | "visibleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaPopoverProps>, {
|
|
15
|
+
placement: string;
|
|
16
|
+
trigger: () => string[];
|
|
17
|
+
visible: any;
|
|
18
|
+
showArrow: boolean;
|
|
19
|
+
}>>> & {
|
|
20
|
+
onVisibleChange?: (...args: any[]) => any;
|
|
21
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
22
|
+
}, {
|
|
23
|
+
placement: "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
|
|
24
|
+
trigger: ("hover" | "focus" | "click" | "contextmenu")[];
|
|
25
|
+
visible: boolean;
|
|
26
|
+
showArrow: boolean;
|
|
27
|
+
}>, {
|
|
28
|
+
default: (_: {}) => any;
|
|
29
|
+
overlay: (_: {}) => any;
|
|
30
|
+
}>;
|
|
31
|
+
export default _default;
|
|
32
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: import('vue').PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
} : P[K];
|
|
45
|
+
};
|
|
46
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaDropdown from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaDropdown>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaDropdown>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const CustomContent: Story;
|
|
8
|
+
export declare const OverlayArrow: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const PopoverPlacements: readonly ["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"];
|
|
2
|
+
export declare const PopoverTypes: readonly ["primary", "secondary"];
|
|
3
|
+
export declare const PopoverTriggerTypes: readonly ["hover", "focus", "click", "contextmenu"];
|
|
4
|
+
export declare type PopoverPlacement = (typeof PopoverPlacements)[number];
|
|
5
|
+
export declare type PopoverType = (typeof PopoverTypes)[number];
|
|
6
|
+
export declare type PopoverTriggerType = (typeof PopoverTriggerTypes)[number];
|
|
@@ -22,7 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
22
22
|
type: "line" | "card";
|
|
23
23
|
animated: boolean;
|
|
24
24
|
destroyInactiveTabPane: boolean;
|
|
25
|
-
tabPosition: "
|
|
25
|
+
tabPosition: "top" | "left" | "right" | "bottom";
|
|
26
26
|
}>, Record<NonNullable<string | number>, (_: {}) => any>>;
|
|
27
27
|
export default _default;
|
|
28
28
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
24
|
}>>>, {
|
|
25
25
|
type: "primary" | "secondary";
|
|
26
26
|
placement: TooltipPlacement;
|
|
27
|
-
trigger: "
|
|
27
|
+
trigger: "hover" | "focus" | "click" | "contextmenu";
|
|
28
28
|
defaultVisible: boolean;
|
|
29
29
|
}>, {
|
|
30
30
|
default: (_: {}) => any;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -68,5 +68,6 @@ export { default as MaDrawer } from './components/drawer/index.vue';
|
|
|
68
68
|
export { default as MaKeywordGroupSelection } from './components/keyword-group-selection/index.vue';
|
|
69
69
|
export { default as MaIconButton } from './components/icon-button/index.vue';
|
|
70
70
|
export { default as MaSlider } from './components/slider/index.vue';
|
|
71
|
+
export { default as MaPopover } from './components/popover/index.vue';
|
|
71
72
|
export { ActionKitConfig } from './services/config';
|
|
72
73
|
export { useActionKitConfig } from './composables/config';
|