@maas/vue-equipment 0.12.1 → 0.13.1
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/composables/index.d.mts +2 -2
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +5 -6
- package/dist/composables/index.js.map +1 -1
- package/dist/composables/index.mjs +0 -1
- package/dist/composables/index.mjs.map +1 -1
- package/dist/nuxt/module.json +2 -2
- package/dist/nuxt/module.mjs +15 -28
- package/dist/plugins/MagicConsent/nuxt.mjs +1 -1
- package/dist/plugins/MagicConsent/src/components/MagicConsent.vue +2 -189
- package/dist/plugins/MagicConsent/src/components/MagicConsent.vue.d.ts +26 -19
- package/dist/plugins/MagicMarquee/nuxt.mjs +1 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +2 -54
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +29 -20
- package/dist/plugins/MagicModal/nuxt.mjs +1 -3
- package/dist/plugins/MagicModal/src/components/MagicModal.vue +4 -101
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +31 -37
- package/dist/plugins/MagicModal/src/composables/useModalApi.d.ts +1 -1
- package/dist/plugins/MagicModal/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicNoise/nuxt.mjs +1 -1
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue +4 -42
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +26 -19
- package/dist/plugins/MagicNoise/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicPlayer/nuxt.mjs +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue +2 -25
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue.d.ts +30 -53
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue +3 -132
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue.d.ts +13 -11
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue +2 -14
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +13 -18
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue +2 -38
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +13 -11
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue +2 -101
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue.d.ts +12 -10
- package/dist/plugins/MagicPlayer/src/components/icons/Waiting.vue +1 -23
- package/dist/plugins/MagicPlayer/src/composables/private/useControlsApi.d.ts +1 -1
- package/dist/plugins/MagicScroll/nuxt.mjs +1 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +13 -11
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +31 -29
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +26 -17
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +2 -2
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +29 -25
- package/dist/plugins/MagicScroll/src/components/MagicScrollTransform.vue.d.ts +46 -67
- package/dist/plugins/MagicScroll/src/composables/useScrollApi.d.ts +1 -1
- package/dist/plugins/MagicToast/demo/DemoToast.vue.d.ts +14 -12
- package/dist/plugins/MagicToast/nuxt.mjs +1 -1
- package/dist/plugins/MagicToast/src/components/MagicToast.vue +9 -117
- package/dist/plugins/MagicToast/src/components/MagicToast.vue.d.ts +19 -24
- package/dist/plugins/MagicToast/src/components/MagicToastComponent.vue +2 -41
- package/dist/plugins/MagicToast/src/components/MagicToastComponent.vue.d.ts +17 -36
- package/dist/plugins/MagicToast/src/composables/private/useToastInternalApi.d.ts +1 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastStore.d.ts +2 -2
- package/dist/plugins/MagicToast/src/types/index.d.ts +1 -1
- package/dist/plugins/MagicToast/src/utils/defaultOptions.d.ts +1 -1
- package/dist/utils/index.d.mts +9 -1
- package/dist/utils/index.d.ts +9 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +3 -3
- package/dist/utils/index.mjs.map +1 -1
- package/dist/utils/types/index.ts +2 -0
- package/package.json +16 -37
|
@@ -1,33 +1,18 @@
|
|
|
1
1
|
import { type Easing } from 'motion';
|
|
2
|
-
|
|
3
|
-
keyframes:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
-
keyframes: {
|
|
18
|
-
type: import("vue").PropType<Record<string, any> | null | undefined>;
|
|
19
|
-
required: true;
|
|
20
|
-
default: undefined;
|
|
21
|
-
};
|
|
22
|
-
offset: {
|
|
23
|
-
type: import("vue").PropType<number[]>;
|
|
24
|
-
default: undefined;
|
|
25
|
-
};
|
|
26
|
-
easing: {
|
|
27
|
-
type: import("vue").PropType<Easing>;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
}>>, {
|
|
2
|
+
interface Props {
|
|
3
|
+
keyframes: Record<string, any> | null | undefined;
|
|
4
|
+
offset?: number[] | undefined;
|
|
5
|
+
easing?: Easing;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
8
|
+
keyframes: undefined;
|
|
9
|
+
offset: undefined;
|
|
10
|
+
easing: string;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
|
+
keyframes: undefined;
|
|
13
|
+
offset: undefined;
|
|
14
|
+
easing: string;
|
|
15
|
+
}>>>, {
|
|
31
16
|
keyframes: Record<string, any> | null | undefined;
|
|
32
17
|
offset: number[];
|
|
33
18
|
easing: Easing;
|
|
@@ -35,6 +20,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
35
20
|
default?(_: {}): any;
|
|
36
21
|
}>;
|
|
37
22
|
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Prettify<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
38
40
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
41
|
new (): {
|
|
40
42
|
$slots: S;
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
el: {
|
|
11
|
-
type: import("vue").PropType<HTMLElement>;
|
|
12
|
-
};
|
|
13
|
-
active: {
|
|
14
|
-
type: import("vue").PropType<Boolean>;
|
|
15
|
-
default: () => true;
|
|
16
|
-
};
|
|
17
|
-
}>>, {
|
|
1
|
+
interface Props {
|
|
2
|
+
active?: Boolean;
|
|
3
|
+
el?: HTMLElement;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
6
|
+
active: () => true;
|
|
7
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
8
|
+
active: () => true;
|
|
9
|
+
}>>>, {
|
|
18
10
|
active: Boolean;
|
|
19
11
|
}, {}>, {
|
|
20
12
|
default?(_: {
|
|
@@ -39,6 +31,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
39
31
|
}): any;
|
|
40
32
|
}>;
|
|
41
33
|
export default _default;
|
|
34
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
36
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
+
} : {
|
|
39
|
+
type: import('vue').PropType<T[K]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type __VLS_WithDefaults<P, D> = {
|
|
44
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
45
|
+
default: D[K];
|
|
46
|
+
}> : P[K];
|
|
47
|
+
};
|
|
48
|
+
type __VLS_Prettify<T> = {
|
|
49
|
+
[K in keyof T]: T[K];
|
|
50
|
+
} & {};
|
|
42
51
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
52
|
new (): {
|
|
44
53
|
$slots: S;
|
|
@@ -66,7 +66,7 @@ watch(
|
|
|
66
66
|
if (intersecting.value) {
|
|
67
67
|
calculate()
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
}
|
|
70
70
|
)
|
|
71
71
|
|
|
72
72
|
useIntersectionObserver(
|
|
@@ -77,7 +77,7 @@ useIntersectionObserver(
|
|
|
77
77
|
calculate()
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
-
{ rootMargin: '150% 0px 150% 0px', threshold: 0.01 }
|
|
80
|
+
{ rootMargin: '150% 0px 150% 0px', threshold: 0.01 }
|
|
81
81
|
)
|
|
82
82
|
|
|
83
83
|
provide('mapValue', mapValue)
|
|
@@ -1,30 +1,17 @@
|
|
|
1
1
|
import { mapValue } from '@maas/vue-equipment/utils';
|
|
2
2
|
import type { FromTo } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
to: {
|
|
17
|
-
type: import("vue").PropType<FromTo>;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
from: {
|
|
21
|
-
type: import("vue").PropType<FromTo>;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
debug: {
|
|
25
|
-
type: import("vue").PropType<boolean>;
|
|
26
|
-
};
|
|
27
|
-
}>>, {
|
|
3
|
+
interface Props {
|
|
4
|
+
from?: FromTo;
|
|
5
|
+
to?: FromTo;
|
|
6
|
+
debug?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
|
+
from: string;
|
|
10
|
+
to: string;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
|
+
from: string;
|
|
13
|
+
to: string;
|
|
14
|
+
}>>>, {
|
|
28
15
|
to: FromTo;
|
|
29
16
|
from: FromTo;
|
|
30
17
|
}, {}>, {
|
|
@@ -34,6 +21,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
21
|
}): any;
|
|
35
22
|
}>;
|
|
36
23
|
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
}> : P[K];
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Prettify<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
37
41
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
42
|
new (): {
|
|
39
43
|
$slots: S;
|
|
@@ -1,70 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
translateY: {
|
|
31
|
-
type: import("vue").PropType<number>;
|
|
32
|
-
default: number;
|
|
33
|
-
};
|
|
34
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
-
scale: {
|
|
36
|
-
type: import("vue").PropType<number>;
|
|
37
|
-
default: number;
|
|
38
|
-
};
|
|
39
|
-
scaleX: {
|
|
40
|
-
type: import("vue").PropType<number>;
|
|
41
|
-
default: number;
|
|
42
|
-
};
|
|
43
|
-
scaleY: {
|
|
44
|
-
type: import("vue").PropType<number>;
|
|
45
|
-
default: number;
|
|
46
|
-
};
|
|
47
|
-
skewX: {
|
|
48
|
-
type: import("vue").PropType<number>;
|
|
49
|
-
default: number;
|
|
50
|
-
};
|
|
51
|
-
skewY: {
|
|
52
|
-
type: import("vue").PropType<number>;
|
|
53
|
-
default: number;
|
|
54
|
-
};
|
|
55
|
-
as: {
|
|
56
|
-
type: import("vue").PropType<string>;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
|
-
translateX: {
|
|
60
|
-
type: import("vue").PropType<number>;
|
|
61
|
-
default: number;
|
|
62
|
-
};
|
|
63
|
-
translateY: {
|
|
64
|
-
type: import("vue").PropType<number>;
|
|
65
|
-
default: number;
|
|
66
|
-
};
|
|
67
|
-
}>>, {
|
|
1
|
+
interface Props {
|
|
2
|
+
as?: string;
|
|
3
|
+
scale?: number;
|
|
4
|
+
scaleX?: number;
|
|
5
|
+
scaleY?: number;
|
|
6
|
+
skewX?: number;
|
|
7
|
+
skewY?: number;
|
|
8
|
+
translateX?: number;
|
|
9
|
+
translateY?: number;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
|
+
as: string;
|
|
13
|
+
scale: number;
|
|
14
|
+
scaleX: number;
|
|
15
|
+
scaleY: number;
|
|
16
|
+
skewX: number;
|
|
17
|
+
skewY: number;
|
|
18
|
+
translateX: number;
|
|
19
|
+
translateY: number;
|
|
20
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
21
|
+
as: string;
|
|
22
|
+
scale: number;
|
|
23
|
+
scaleX: number;
|
|
24
|
+
scaleY: number;
|
|
25
|
+
skewX: number;
|
|
26
|
+
skewY: number;
|
|
27
|
+
translateX: number;
|
|
28
|
+
translateY: number;
|
|
29
|
+
}>>>, {
|
|
68
30
|
scale: number;
|
|
69
31
|
scaleX: number;
|
|
70
32
|
scaleY: number;
|
|
@@ -77,6 +39,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
77
39
|
default?(_: {}): any;
|
|
78
40
|
}>;
|
|
79
41
|
export default _default;
|
|
42
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
44
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
45
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
46
|
+
} : {
|
|
47
|
+
type: import('vue').PropType<T[K]>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
type __VLS_WithDefaults<P, D> = {
|
|
52
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
53
|
+
default: D[K];
|
|
54
|
+
}> : P[K];
|
|
55
|
+
};
|
|
56
|
+
type __VLS_Prettify<T> = {
|
|
57
|
+
[K in keyof T]: T[K];
|
|
58
|
+
} & {};
|
|
80
59
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
81
60
|
new (): {
|
|
82
61
|
$slots: S;
|
|
@@ -8,7 +8,7 @@ type UseScrollApiParams = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare function useScrollApi(params: UseScrollApiParams): {
|
|
10
10
|
getCalculations: () => void;
|
|
11
|
-
getProgress: () =>
|
|
11
|
+
getProgress: () => number;
|
|
12
12
|
};
|
|
13
13
|
export type UseScrollApiReturn = ReturnType<typeof useScrollApi>;
|
|
14
14
|
export {};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
message:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
interface Props {
|
|
2
|
+
message: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
5
|
close: (...args: any[]) => void;
|
|
8
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
-
message: {
|
|
10
|
-
type: import("vue").PropType<string>;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
|
-
}>> & {
|
|
6
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
14
7
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
15
8
|
}, {}, {}>;
|
|
16
9
|
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -55,6 +55,12 @@ import MagicToastComponent from './MagicToastComponent.vue'
|
|
|
55
55
|
|
|
56
56
|
import type { ToastOptions } from './../types/index'
|
|
57
57
|
|
|
58
|
+
import '@maas/vue-equipment/utils/css/animations/fade-out.css'
|
|
59
|
+
import '@maas/vue-equipment/utils/css/animations/slide-ltr-in.css'
|
|
60
|
+
import '@maas/vue-equipment/utils/css/animations/slide-rtl-in.css'
|
|
61
|
+
import '@maas/vue-equipment/utils/css/animations/slide-ttb-in.css'
|
|
62
|
+
import '@maas/vue-equipment/utils/css/animations/slide-btt-in.css'
|
|
63
|
+
|
|
58
64
|
interface MagicToastProps {
|
|
59
65
|
id: MaybeRef<string>
|
|
60
66
|
class: MaybeRef<string>
|
|
@@ -107,124 +113,10 @@ function outsideClickCallback() {
|
|
|
107
113
|
onClickOutside(listRef, outsideClickCallback)
|
|
108
114
|
watch(
|
|
109
115
|
() => props.id,
|
|
110
|
-
() => (teleportKey.value = uuid())
|
|
116
|
+
() => (teleportKey.value = uuid())
|
|
111
117
|
)
|
|
112
118
|
</script>
|
|
113
119
|
|
|
114
|
-
<style
|
|
115
|
-
|
|
116
|
-
@import '@maas/vue-equipment/utils/css/animations/slide-ltr-in.css';
|
|
117
|
-
@import '@maas/vue-equipment/utils/css/animations/slide-rtl-in.css';
|
|
118
|
-
@import '@maas/vue-equipment/utils/css/animations/slide-ttb-in.css';
|
|
119
|
-
@import '@maas/vue-equipment/utils/css/animations/slide-btt-in.css';
|
|
120
|
-
|
|
121
|
-
:root {
|
|
122
|
-
--magic-toast-enter-animation: unset;
|
|
123
|
-
--magic-toast-leave-animation: fade-out 300ms ease;
|
|
124
|
-
--magic-toast-scale: 0.1;
|
|
125
|
-
--magic-toast-transform-x: 0;
|
|
126
|
-
--magic-toast-transform-y: 0;
|
|
127
|
-
--magic-toast-transition: transform 300ms ease;
|
|
128
|
-
--magic-toast-z-index: 999;
|
|
129
|
-
--magic-toast-gap: 0.75rem;
|
|
130
|
-
--magic-toast-padding-x: 1rem;
|
|
131
|
-
--magic-toast-padding-y: 1rem;
|
|
132
|
-
|
|
133
|
-
--mt-multiplier-x: 1;
|
|
134
|
-
--mt-multiplier-y: 1;
|
|
135
|
-
--mt-align-items: flex-start;
|
|
136
|
-
--mt-justify-content: center;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.magic-toast {
|
|
140
|
-
position: fixed;
|
|
141
|
-
inset: 0;
|
|
142
|
-
width: 100%;
|
|
143
|
-
height: 100%;
|
|
144
|
-
display: flex;
|
|
145
|
-
flex-direction: column;
|
|
146
|
-
justify-content: center;
|
|
147
|
-
align-items: center;
|
|
148
|
-
z-index: var(--magic-toast-z-index, 999);
|
|
149
|
-
background: transparent;
|
|
150
|
-
color: inherit;
|
|
151
|
-
pointer-events: none;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.magic-toast__inner {
|
|
155
|
-
position: relative;
|
|
156
|
-
overflow: scroll;
|
|
157
|
-
max-height: 100%;
|
|
158
|
-
width: 100%;
|
|
159
|
-
height: 100%;
|
|
160
|
-
display: flex;
|
|
161
|
-
align-items: var(--mt-align-items);
|
|
162
|
-
justify-content: var(--mt-justify-content);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.magic-toast__inner * {
|
|
166
|
-
pointer-events: all;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.magic-toast.-top-left,
|
|
170
|
-
.magic-toast.-top-center,
|
|
171
|
-
.magic-toast.-top-right {
|
|
172
|
-
--magic-toast-transform-y: 10;
|
|
173
|
-
--magic-toast-enter-animation: slide-ttb-in 300ms ease;
|
|
174
|
-
--mt-multiplier-y: 1;
|
|
175
|
-
--mt-align-items: flex-start;
|
|
176
|
-
& .magic-toast-component {
|
|
177
|
-
padding-top: var(--magic-toast-padding-y, 1rem);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.magic-toast.-bottom-left,
|
|
182
|
-
.magic-toast.-bottom-center,
|
|
183
|
-
.magic-toast.-bottom-right {
|
|
184
|
-
--magic-toast-transform-y: 10;
|
|
185
|
-
--magic-toast-enter-animation: slide-btt-in 300ms ease;
|
|
186
|
-
--mt-multiplier-y: -1;
|
|
187
|
-
--mt-align-items: flex-end;
|
|
188
|
-
& .magic-toast-component {
|
|
189
|
-
padding-bottom: var(--magic-toast-padding-y, 1rem);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.magic-toast.-top-left,
|
|
194
|
-
.magic-toast.-bottom-left {
|
|
195
|
-
--mt-justify-content: flex-start;
|
|
196
|
-
& .magic-toast-component {
|
|
197
|
-
padding-left: var(--magic-toast-padding-x, 1rem);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.magic-toast.-top-right,
|
|
202
|
-
.magic-toast.-bottom-right {
|
|
203
|
-
--mt-justify-content: flex-end;
|
|
204
|
-
& .magic-toast-component {
|
|
205
|
-
padding-right: var(--magic-toast-padding-x, 1rem);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.magic-toast.-from-left {
|
|
210
|
-
--magic-toast-enter-animation: slide-ltr-in 300ms ease;
|
|
211
|
-
--magic-toast-transform-y: 0;
|
|
212
|
-
--magic-toast-transform-x: 30;
|
|
213
|
-
--mt-multiplier-x: 1;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.magic-toast.-from-right {
|
|
217
|
-
--magic-toast-enter-animation: slide-rtl-in 300ms ease;
|
|
218
|
-
--magic-toast-transform-y: 0;
|
|
219
|
-
--magic-toast-transform-x: 30;
|
|
220
|
-
--mt-multiplier-x: -1;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.magic-toast--list-enter-active {
|
|
224
|
-
animation: var(--magic-toast-enter-animation);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.magic-toast--list-leave-active {
|
|
228
|
-
animation: var(--magic-toast-leave-animation);
|
|
229
|
-
}
|
|
120
|
+
<style>
|
|
121
|
+
:root{--magic-toast-enter-animation:unset;--magic-toast-leave-animation:fade-out 300ms ease;--magic-toast-scale:0.1;--magic-toast-transform-x:0;--magic-toast-transform-y:0;--magic-toast-transition:transform 300ms ease;--magic-toast-z-index:999;--magic-toast-gap:0.75rem;--magic-toast-padding-x:1rem;--magic-toast-padding-y:1rem;--mt-multiplier-x:1;--mt-multiplier-y:1;--mt-align-items:flex-start;--mt-justify-content:center}.magic-toast{align-items:center;background:transparent;color:inherit;flex-direction:column;inset:0;justify-content:center;pointer-events:none;position:fixed;z-index:var(--magic-toast-z-index,999)}.magic-toast,.magic-toast__inner{display:flex;height:100%;width:100%}.magic-toast__inner{align-items:var(--mt-align-items);justify-content:var(--mt-justify-content);max-height:100%;overflow:scroll;position:relative}.magic-toast__inner *{pointer-events:all}.magic-toast.-top-center,.magic-toast.-top-left,.magic-toast.-top-right{--magic-toast-transform-y:10;--magic-toast-enter-animation:slide-ttb-in 300ms ease;--mt-multiplier-y:1;--mt-align-items:flex-start}.magic-toast.-top-center .magic-toast-component,.magic-toast.-top-left .magic-toast-component,.magic-toast.-top-right .magic-toast-component{padding-top:var(--magic-toast-padding-y,1rem)}.magic-toast.-bottom-center,.magic-toast.-bottom-left,.magic-toast.-bottom-right{--magic-toast-transform-y:10;--magic-toast-enter-animation:slide-btt-in 300ms ease;--mt-multiplier-y:-1;--mt-align-items:flex-end}.magic-toast.-bottom-center .magic-toast-component,.magic-toast.-bottom-left .magic-toast-component,.magic-toast.-bottom-right .magic-toast-component{padding-bottom:var(--magic-toast-padding-y,1rem)}.magic-toast.-bottom-left,.magic-toast.-top-left{--mt-justify-content:flex-start}.magic-toast.-bottom-left .magic-toast-component,.magic-toast.-top-left .magic-toast-component{padding-left:var(--magic-toast-padding-x,1rem)}.magic-toast.-bottom-right,.magic-toast.-top-right{--mt-justify-content:flex-end}.magic-toast.-bottom-right .magic-toast-component,.magic-toast.-top-right .magic-toast-component{padding-right:var(--magic-toast-padding-x,1rem)}.magic-toast.-from-left{--magic-toast-enter-animation:slide-ltr-in 300ms ease;--magic-toast-transform-y:0;--magic-toast-transform-x:30;--mt-multiplier-x:1}.magic-toast.-from-right{--magic-toast-enter-animation:slide-rtl-in 300ms ease;--magic-toast-transform-y:0;--magic-toast-transform-x:30;--mt-multiplier-x:-1}.magic-toast--list-enter-active{animation:var(--magic-toast-enter-animation)}.magic-toast--list-leave-active{animation:var(--magic-toast-leave-animation)}
|
|
230
122
|
</style>
|
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
import { type MaybeRef } from 'vue';
|
|
2
2
|
import type { ToastOptions } from './../types/index';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
type: import("vue").PropType<MaybeRef<string>>;
|
|
3
|
+
import '@maas/vue-equipment/utils/css/animations/fade-out.css';
|
|
4
|
+
import '@maas/vue-equipment/utils/css/animations/slide-ltr-in.css';
|
|
5
|
+
import '@maas/vue-equipment/utils/css/animations/slide-rtl-in.css';
|
|
6
|
+
import '@maas/vue-equipment/utils/css/animations/slide-ttb-in.css';
|
|
7
|
+
import '@maas/vue-equipment/utils/css/animations/slide-btt-in.css';
|
|
8
|
+
interface MagicToastProps {
|
|
9
|
+
id: MaybeRef<string>;
|
|
10
|
+
class: MaybeRef<string>;
|
|
11
|
+
options?: ToastOptions;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MagicToastProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MagicToastProps>>>, {}, {}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
22
21
|
required: true;
|
|
23
22
|
};
|
|
24
|
-
|
|
25
|
-
type: import("vue").PropType<ToastOptions>;
|
|
26
|
-
};
|
|
27
|
-
}>>, {}, {}>;
|
|
28
|
-
export default _default;
|
|
23
|
+
};
|
|
@@ -59,45 +59,6 @@ watchEffect(() => {
|
|
|
59
59
|
})
|
|
60
60
|
</script>
|
|
61
61
|
|
|
62
|
-
<style
|
|
63
|
-
.magic-toast-component {
|
|
64
|
-
--mt-index: 0;
|
|
65
|
-
--mt-offset: 0;
|
|
66
|
-
--mt-matrix-scale: calc(1 - (var(--magic-toast-scale) * var(--mt-index, 0)));
|
|
67
|
-
--mt-matrix-transform-x: calc(
|
|
68
|
-
var(--magic-toast-transform-x) * var(--mt-index, 0) * var(--mt-multiplier-x)
|
|
69
|
-
);
|
|
70
|
-
--mt-matrix-transform-y: calc(
|
|
71
|
-
var(--magic-toast-transform-y) * var(--mt-index, 0) * var(--mt-multiplier-y)
|
|
72
|
-
);
|
|
73
|
-
position: absolute;
|
|
74
|
-
list-style: none;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.magic-toast-component__inner {
|
|
78
|
-
position: relative;
|
|
79
|
-
width: 100%;
|
|
80
|
-
height: 100%;
|
|
81
|
-
transition: var(--magic-toast-transition, transform 300ms ease);
|
|
82
|
-
transform: matrix(
|
|
83
|
-
var(--mt-matrix-scale),
|
|
84
|
-
0,
|
|
85
|
-
0,
|
|
86
|
-
var(--mt-matrix-scale),
|
|
87
|
-
var(--mt-matrix-transform-x),
|
|
88
|
-
var(--mt-matrix-transform-y)
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.magic-toast-component.expanded {
|
|
93
|
-
--mt-matrix-scale: 1;
|
|
94
|
-
--mt-matrix-transform-y: calc(var(--mt-offset) * var(--mt-multiplier-y));
|
|
95
|
-
--mt-matrix-transform-x: 0;
|
|
96
|
-
&:not(:last-child) {
|
|
97
|
-
& .magic-toast-component__inner {
|
|
98
|
-
padding-bottom: calc(var(--magic-toast-gap) * var(--mt-index));
|
|
99
|
-
padding-top: calc(var(--magic-toast-gap) * var(--mt-index));
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
62
|
+
<style>
|
|
63
|
+
.magic-toast-component{--mt-index:0;--mt-offset:0;--mt-matrix-scale:calc(1 - var(--magic-toast-scale)*var(--mt-index, 0));--mt-matrix-transform-x:calc(var(--magic-toast-transform-x)*var(--mt-index, 0)*var(--mt-multiplier-x));--mt-matrix-transform-y:calc(var(--magic-toast-transform-y)*var(--mt-index, 0)*var(--mt-multiplier-y));list-style:none;position:absolute}.magic-toast-component__inner{height:100%;position:relative;transform:matrix(var(--mt-matrix-scale),0,0,var(--mt-matrix-scale),var(--mt-matrix-transform-x),var(--mt-matrix-transform-y));transition:var(--magic-toast-transition,transform .3s ease);width:100%}.magic-toast-component.expanded{--mt-matrix-scale:1;--mt-matrix-transform-y:calc(var(--mt-offset)*var(--mt-multiplier-y));--mt-matrix-transform-x:0}.magic-toast-component.expanded:not(:last-child) .magic-toast-component__inner{padding-bottom:calc(var(--magic-toast-gap)*var(--mt-index));padding-top:calc(var(--magic-toast-gap)*var(--mt-index))}
|
|
103
64
|
</style>
|