@mobileaction/action-kit 1.1.59 → 1.1.60
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 +9 -6
- package/dist/action-kit.mjs +1811 -1692
- package/dist/components/slider/index.vue.d.ts +69 -0
- package/dist/components/slider/types.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/components/slider/index.vue.d.ts +42 -0
- package/dist/src/components/slider/stories/constants.d.ts +7 -0
- package/dist/src/components/slider/stories/default.stories.d.ts +13 -0
- package/dist/src/components/slider/types.d.ts +2 -0
- package/dist/src/components/spin/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
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { MaSliderType } from '../../components/slider/types';
|
|
3
|
+
export interface MaSliderProps {
|
|
4
|
+
dualThumbMode?: boolean;
|
|
5
|
+
vertical?: boolean;
|
|
6
|
+
type?: MaSliderType;
|
|
7
|
+
leftThumbValue?: number;
|
|
8
|
+
rightThumbValue?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
11
|
+
dualThumbMode: {
|
|
12
|
+
type: __PropType<boolean>;
|
|
13
|
+
required: false;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
vertical: {
|
|
17
|
+
type: __PropType<boolean>;
|
|
18
|
+
required: false;
|
|
19
|
+
};
|
|
20
|
+
type: {
|
|
21
|
+
type: __PropType<"default" | "label" | "tooltip">;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
leftThumbValue: {
|
|
26
|
+
type: __PropType<number>;
|
|
27
|
+
required: false;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
rightThumbValue: {
|
|
31
|
+
type: __PropType<number>;
|
|
32
|
+
required: false;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:leftThumbValue" | "update:rightThumbValue")[], "update:leftThumbValue" | "update:rightThumbValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
dualThumbMode: {
|
|
37
|
+
type: __PropType<boolean>;
|
|
38
|
+
required: false;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
vertical: {
|
|
42
|
+
type: __PropType<boolean>;
|
|
43
|
+
required: false;
|
|
44
|
+
};
|
|
45
|
+
type: {
|
|
46
|
+
type: __PropType<"default" | "label" | "tooltip">;
|
|
47
|
+
required: false;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
leftThumbValue: {
|
|
51
|
+
type: __PropType<number>;
|
|
52
|
+
required: false;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
rightThumbValue: {
|
|
56
|
+
type: __PropType<number>;
|
|
57
|
+
required: false;
|
|
58
|
+
default: number;
|
|
59
|
+
};
|
|
60
|
+
}>> & {
|
|
61
|
+
"onUpdate:leftThumbValue"?: (...args: any[]) => any;
|
|
62
|
+
"onUpdate:rightThumbValue"?: (...args: any[]) => any;
|
|
63
|
+
}, {
|
|
64
|
+
type: "default" | "label" | "tooltip";
|
|
65
|
+
dualThumbMode: boolean;
|
|
66
|
+
leftThumbValue: number;
|
|
67
|
+
rightThumbValue: number;
|
|
68
|
+
}>;
|
|
69
|
+
export default _sfc_main;
|
package/dist/index.d.ts
CHANGED
|
@@ -66,5 +66,6 @@ export { default as MaInputNumber } from './components/input-number/index.vue';
|
|
|
66
66
|
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
|
+
export { default as MaSlider } from './components/slider/index.vue';
|
|
69
70
|
export { ActionKitConfig } from './services/config';
|
|
70
71
|
export { useActionKitConfig } from './composables/config';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { MaSliderType } from "@/components/slider/types";
|
|
2
|
+
export interface MaSliderProps {
|
|
3
|
+
dualThumbMode?: boolean;
|
|
4
|
+
vertical?: boolean;
|
|
5
|
+
type?: MaSliderType;
|
|
6
|
+
leftThumbValue?: number;
|
|
7
|
+
rightThumbValue?: number;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSliderProps>, {
|
|
10
|
+
dualThumbMode: boolean;
|
|
11
|
+
type: string;
|
|
12
|
+
leftThumbValue: number;
|
|
13
|
+
rightThumbValue: number;
|
|
14
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:leftThumbValue" | "update:rightThumbValue")[], "update:leftThumbValue" | "update:rightThumbValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaSliderProps>, {
|
|
15
|
+
dualThumbMode: boolean;
|
|
16
|
+
type: string;
|
|
17
|
+
leftThumbValue: number;
|
|
18
|
+
rightThumbValue: number;
|
|
19
|
+
}>>> & {
|
|
20
|
+
"onUpdate:leftThumbValue"?: (...args: any[]) => any;
|
|
21
|
+
"onUpdate:rightThumbValue"?: (...args: any[]) => any;
|
|
22
|
+
}, {
|
|
23
|
+
type: "default" | "label" | "tooltip";
|
|
24
|
+
dualThumbMode: boolean;
|
|
25
|
+
leftThumbValue: number;
|
|
26
|
+
rightThumbValue: number;
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
|
29
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
31
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
+
} : {
|
|
34
|
+
type: import('vue').PropType<T[K]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
39
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
40
|
+
default: D[K];
|
|
41
|
+
} : P[K];
|
|
42
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/vue3";
|
|
2
|
+
import MaSlider from "@/components/slider/index.vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const baseConfig: Meta<typeof MaSlider>;
|
|
6
|
+
export declare const Template: StoryFn;
|
|
7
|
+
export declare const TemplateDualThumbs: StoryFn;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaSlider from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaSlider>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaSlider>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const DualThumb: Story;
|
|
8
|
+
export declare const DualThumbWithLabel: Story;
|
|
9
|
+
export declare const DualThumbWithTooltip: Story;
|
|
10
|
+
export declare const Vertical: Story;
|
|
11
|
+
export declare const VerticalDual: Story;
|
|
12
|
+
export declare const VerticalDualLabel: Story;
|
|
13
|
+
export declare const VerticalDualTooltip: Story;
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
spinning: boolean;
|
|
16
16
|
}>>>, {
|
|
17
17
|
type: "round" | "dots" | "three-circles" | "three-dots";
|
|
18
|
-
color: "dark" | "blue" | "orange" | "
|
|
18
|
+
color: "dark" | "blue" | "orange" | "grey" | "jordy";
|
|
19
19
|
spinning: boolean;
|
|
20
20
|
}>, {
|
|
21
21
|
indicator: (_: {}) => any;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -67,5 +67,6 @@ export { default as MaInputNumber } from './components/input-number/index.vue';
|
|
|
67
67
|
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
|
+
export { default as MaSlider } from './components/slider/index.vue';
|
|
70
71
|
export { ActionKitConfig } from './services/config';
|
|
71
72
|
export { useActionKitConfig } from './composables/config';
|