@mobileaction/action-kit 1.1.61 → 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 +959 -924
- package/dist/components/autocomplete/index.vue.d.ts +12 -0
- package/dist/components/popover/index.vue.d.ts +69 -0
- package/dist/components/popover/types.d.ts +6 -0
- package/dist/index.d.ts +1 -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/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/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -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];
|
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';
|
|
@@ -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>;
|
|
@@ -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];
|
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';
|