@mobileaction/action-kit 1.35.17 → 1.38.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 +34 -0
- package/dist/action-kit.mjs +2155 -2099
- package/dist/src/components/ellipsis/index.vue.d.ts +1 -1
- package/dist/src/components/popover-2/index.vue.d.ts +48 -0
- package/dist/src/components/popover-2/popover2.test.d.ts +1 -0
- package/dist/src/components/popover-2/stories/constants.d.ts +75 -0
- package/dist/src/components/popover-2/stories/default.stories.d.ts +9 -0
- package/dist/src/components/popover-2/types.d.ts +4 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Popover2TriggerType, Popover2Placement } from './types';
|
|
2
|
+
export interface MaPopover2Props {
|
|
3
|
+
visible: boolean | undefined;
|
|
4
|
+
trigger?: Popover2TriggerType[];
|
|
5
|
+
autoHide?: boolean;
|
|
6
|
+
placement?: Popover2Placement;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
isMobile?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
showArrow?: boolean;
|
|
11
|
+
noPadding?: boolean;
|
|
12
|
+
popUpContainer?: HTMLElement | null | string;
|
|
13
|
+
}
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: {
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
overlay?(_: {}): any;
|
|
19
|
+
};
|
|
20
|
+
refs: {};
|
|
21
|
+
rootEl: any;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import("vue").DefineComponent<MaPopover2Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:visible": (...args: any[]) => void;
|
|
26
|
+
visibleChange: (...args: any[]) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<MaPopover2Props> & Readonly<{
|
|
28
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
29
|
+
onVisibleChange?: (...args: any[]) => any;
|
|
30
|
+
}>, {
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
placement: Popover2Placement;
|
|
33
|
+
trigger: Popover2TriggerType[];
|
|
34
|
+
visible: boolean | undefined;
|
|
35
|
+
showArrow: boolean;
|
|
36
|
+
className: string;
|
|
37
|
+
noPadding: boolean;
|
|
38
|
+
autoHide: boolean;
|
|
39
|
+
isMobile: boolean;
|
|
40
|
+
popUpContainer: HTMLElement | null | string;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import MaPopover2 from '../index.vue';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
4
|
+
MaPopover2: {
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../index.vue").MaPopover2Props> & Readonly<{
|
|
6
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
7
|
+
onVisibleChange?: (...args: any[]) => any;
|
|
8
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:visible": (...args: any[]) => void;
|
|
10
|
+
visibleChange: (...args: any[]) => void;
|
|
11
|
+
}, import("vue").PublicProps, {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
placement: import("../types").Popover2Placement;
|
|
14
|
+
trigger: import("../types").Popover2TriggerType[];
|
|
15
|
+
visible: boolean | undefined;
|
|
16
|
+
showArrow: boolean;
|
|
17
|
+
className: string;
|
|
18
|
+
noPadding: boolean;
|
|
19
|
+
autoHide: boolean;
|
|
20
|
+
isMobile: boolean;
|
|
21
|
+
popUpContainer: HTMLElement | null | string;
|
|
22
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
23
|
+
P: {};
|
|
24
|
+
B: {};
|
|
25
|
+
D: {};
|
|
26
|
+
C: {};
|
|
27
|
+
M: {};
|
|
28
|
+
Defaults: {};
|
|
29
|
+
}, Readonly<import("../index.vue").MaPopover2Props> & Readonly<{
|
|
30
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
31
|
+
onVisibleChange?: (...args: any[]) => any;
|
|
32
|
+
}>, {}, {}, {}, {}, {
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
placement: import("../types").Popover2Placement;
|
|
35
|
+
trigger: import("../types").Popover2TriggerType[];
|
|
36
|
+
visible: boolean | undefined;
|
|
37
|
+
showArrow: boolean;
|
|
38
|
+
className: string;
|
|
39
|
+
noPadding: boolean;
|
|
40
|
+
autoHide: boolean;
|
|
41
|
+
isMobile: boolean;
|
|
42
|
+
popUpContainer: HTMLElement | null | string;
|
|
43
|
+
}>;
|
|
44
|
+
__isFragment?: never;
|
|
45
|
+
__isTeleport?: never;
|
|
46
|
+
__isSuspense?: never;
|
|
47
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("../index.vue").MaPopover2Props> & Readonly<{
|
|
48
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
49
|
+
onVisibleChange?: (...args: any[]) => any;
|
|
50
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
"update:visible": (...args: any[]) => void;
|
|
52
|
+
visibleChange: (...args: any[]) => void;
|
|
53
|
+
}, string, {
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
placement: import("../types").Popover2Placement;
|
|
56
|
+
trigger: import("../types").Popover2TriggerType[];
|
|
57
|
+
visible: boolean | undefined;
|
|
58
|
+
showArrow: boolean;
|
|
59
|
+
className: string;
|
|
60
|
+
noPadding: boolean;
|
|
61
|
+
autoHide: boolean;
|
|
62
|
+
isMobile: boolean;
|
|
63
|
+
popUpContainer: HTMLElement | null | string;
|
|
64
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
65
|
+
$slots: {
|
|
66
|
+
default?(_: {}): any;
|
|
67
|
+
overlay?(_: {}): any;
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
71
|
+
export default _default;
|
|
72
|
+
export declare const popover2BaseConfig: Meta<typeof MaPopover2>;
|
|
73
|
+
export declare const popover2Template: StoryFn;
|
|
74
|
+
export declare const popover2PlacementsTemplate: StoryFn;
|
|
75
|
+
export declare const popover2FooterTemplate: StoryFn;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import MaPopover2 from '@/components/popover-2/index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaPopover2>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MaPopover2>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Placements: Story;
|
|
8
|
+
export declare const Mobile: Story;
|
|
9
|
+
export declare const FooterExample: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const Popover2TriggerTypes: readonly ["click", "hover"];
|
|
2
|
+
export declare const Popover2Placements: readonly ["auto", "auto-start", "auto-end", "top", "top-start", "top-end", "right", "right-start", "right-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end"];
|
|
3
|
+
export type Popover2TriggerType = (typeof Popover2TriggerTypes)[number];
|
|
4
|
+
export type Popover2Placement = (typeof Popover2Placements)[number];
|
package/dist/src/index.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export { default as MaIconButton } from './components/icon-button/index.vue';
|
|
|
76
76
|
export { default as MaSlider } from './components/slider/index.vue';
|
|
77
77
|
export { default as MaCountryRadio } from './components/country-radio/index.vue';
|
|
78
78
|
export { default as MaPopover } from './components/popover/index.vue';
|
|
79
|
+
export { default as MaPopover2 } from './components/popover-2/index.vue';
|
|
79
80
|
export { default as MaAppCheckbox } from './components/app-checkbox/index.vue';
|
|
80
81
|
export { default as MaAvatar } from './components/avatar/index.vue';
|
|
81
82
|
export { default as MaTagInput } from './components/tag-input/index.vue';
|