@maas/vue-equipment 0.12.0 → 0.13.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/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 +2 -2
- 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/MagicConsent/src/composables/private/defineConsentApi.mjs +1 -1
- 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/composables/useModalApi.mjs +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 +22 -31
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue.d.ts +32 -45
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue +7 -138
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue.d.ts +13 -11
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue +4 -16
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +13 -18
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue +5 -42
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +13 -11
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue +4 -103
- 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/MagicPlayer/src/composables/private/useControlsApi.mjs +3 -3
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerInternalApi.mjs +3 -3
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStore.d.ts +4 -2
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStore.mjs +12 -6
- package/dist/plugins/MagicPlayer/src/composables/usePlayerApi.d.ts +2 -1
- package/dist/plugins/MagicPlayer/src/composables/usePlayerApi.mjs +1 -1
- package/dist/plugins/MagicPlayer/src/types/index.d.ts +2 -2
- 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 +3 -3
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +30 -26
- 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/MagicScroll/src/composables/useScrollApi.mjs +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 +10 -118
- 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/useToastInternalApi.mjs +1 -1
- package/dist/plugins/MagicToast/src/composables/useToastApi.mjs +1 -1
- 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.mjs → index.cjs} +38 -6
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/{index.d.mts → index.d.cts} +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +5 -37
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/types/index.ts +2 -0
- package/package.json +15 -34
- package/dist/utils/index.mjs.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ref, computed, watch, toValue
|
|
1
|
+
import { ref, computed, watch, toValue } from "vue";
|
|
2
2
|
import {
|
|
3
3
|
useResizeObserver,
|
|
4
4
|
useEventListener,
|
|
5
5
|
defaultWindow
|
|
6
6
|
} from "@vueuse/core";
|
|
7
|
-
import { clampValue, mapValue } from "
|
|
7
|
+
import { clampValue, mapValue } from "utils";
|
|
8
8
|
import { usePlayerStore } from "./usePlayerStore.mjs";
|
|
9
9
|
export function useControlsApi(args) {
|
|
10
10
|
const { findInstance } = usePlayerStore();
|
|
11
11
|
const instance = findInstance(toValue(args.id));
|
|
12
|
-
const { buffered, duration, playing, currentTime } =
|
|
12
|
+
const { buffered, duration, playing, currentTime } = instance.mediaApi;
|
|
13
13
|
const { play, pause, seek } = instance.playerApi;
|
|
14
14
|
const dragging = ref(false);
|
|
15
15
|
const mouseEntered = ref(false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref, watch,
|
|
1
|
+
import { ref, watch, toValue } from "vue";
|
|
2
2
|
import { useFullscreen } from "@vueuse/core";
|
|
3
|
-
import { isIOS } from "
|
|
3
|
+
import { isIOS } from "utils";
|
|
4
4
|
import { usePlayerStore } from "./usePlayerStore.mjs";
|
|
5
5
|
export function usePlayerInternalApi(args) {
|
|
6
6
|
const touched = ref(false);
|
|
@@ -8,7 +8,7 @@ export function usePlayerInternalApi(args) {
|
|
|
8
8
|
const fullscreenTarget = isIOS() ? args.videoRef : args.playerRef;
|
|
9
9
|
const { findInstance } = usePlayerStore();
|
|
10
10
|
const instance = findInstance(toValue(args.id));
|
|
11
|
-
const { currentTime, playing, muted } =
|
|
11
|
+
const { currentTime, playing, muted } = instance.mediaApi;
|
|
12
12
|
const {
|
|
13
13
|
isFullscreen,
|
|
14
14
|
enter: enterFullscreen,
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ShallowRef } from 'vue';
|
|
2
2
|
import type { UseMediaApiReturn } from './useMediaApi.js';
|
|
3
3
|
import type { UsePlayerInternalApiReturn } from './usePlayerInternalApi.js';
|
|
4
4
|
import type { UseRuntimeSourceProviderReturn } from './useRuntimeSourceProvider.js';
|
|
5
5
|
import type { UseControlsApiReturn } from './useControlsApi.js';
|
|
6
|
+
import type { UsePlayerApiArgs } from '../../types.js';
|
|
6
7
|
export interface PlayerInstance {
|
|
7
8
|
id: string;
|
|
8
9
|
mediaApi: UseMediaApiReturn;
|
|
9
10
|
playerApi: UsePlayerInternalApiReturn;
|
|
10
11
|
controlsApi: UseControlsApiReturn;
|
|
11
12
|
runtimeProvider: UseRuntimeSourceProviderReturn;
|
|
13
|
+
args: UsePlayerApiArgs;
|
|
12
14
|
}
|
|
13
15
|
export declare function usePlayerStore(): {
|
|
14
|
-
playerStore:
|
|
16
|
+
playerStore: ShallowRef<PlayerInstance[]>;
|
|
15
17
|
findInstance: (id: string) => PlayerInstance;
|
|
16
18
|
addInstance: (id: string) => PlayerInstance;
|
|
17
19
|
removeInstance: (id: string) => void;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const playerStore =
|
|
1
|
+
import { shallowRef, reactive } from "vue";
|
|
2
|
+
const playerStore = shallowRef([]);
|
|
3
3
|
export function usePlayerStore() {
|
|
4
|
+
const defaultMediaApi = reactive({});
|
|
5
|
+
const defaultPlayerApi = reactive({});
|
|
6
|
+
const defaultControlsApi = reactive({});
|
|
7
|
+
const defaultRuntimeProvider = reactive({});
|
|
8
|
+
const defaultArgs = reactive({});
|
|
4
9
|
function createInstance(id) {
|
|
5
10
|
const instance = {
|
|
6
11
|
id,
|
|
7
|
-
mediaApi:
|
|
8
|
-
playerApi:
|
|
9
|
-
controlsApi:
|
|
10
|
-
runtimeProvider:
|
|
12
|
+
mediaApi: defaultMediaApi,
|
|
13
|
+
playerApi: defaultPlayerApi,
|
|
14
|
+
controlsApi: defaultControlsApi,
|
|
15
|
+
runtimeProvider: defaultRuntimeProvider,
|
|
16
|
+
args: defaultArgs
|
|
11
17
|
};
|
|
12
18
|
return instance;
|
|
13
19
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type MaybeRef } from 'vue';
|
|
1
2
|
import type { UsePlayerApiArgs } from '../types.js';
|
|
2
|
-
export declare function usePlayerApi(args: UsePlayerApiArgs): {
|
|
3
|
+
export declare function usePlayerApi(args: UsePlayerApiArgs | MaybeRef<string>): {
|
|
3
4
|
instance: import("vue").ComputedRef<import("./private/usePlayerStore").PlayerInstance>;
|
|
4
5
|
};
|
|
5
6
|
export type UsePlayerApiReturn = ReturnType<typeof usePlayerApi>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { uuid } from "
|
|
1
|
+
import { uuid } from "utils";
|
|
2
2
|
import { computed, onUnmounted, toValue } from "vue";
|
|
3
3
|
import { usePlayerStore } from "./private/usePlayerStore.mjs";
|
|
4
4
|
import { usePlayerInternalApi } from "./private/usePlayerInternalApi.mjs";
|
|
@@ -19,7 +19,7 @@ type UseRuntimeSourceProviderArgs = {
|
|
|
19
19
|
srcType: SourceType;
|
|
20
20
|
src: string;
|
|
21
21
|
};
|
|
22
|
-
type UsePlayerApiArgs =
|
|
22
|
+
type UsePlayerApiArgs = Partial<UseMediaApiArgs & UseControlsApiArgs & UsePlayerInternalApiArgs & UseRuntimeSourceProviderArgs> & {
|
|
23
23
|
id: MaybeRef<string>;
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
25
|
export type { SourceType, UseMediaApiArgs, UsePlayerApiArgs, UseControlsApiArgs, UsePlayerInternalApiArgs, UseRuntimeSourceProviderArgs, };
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { CollisionEntry } from '../types';
|
|
2
|
-
|
|
3
|
-
collisionEntries:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
-
collisionEntries: {
|
|
9
|
-
type: import("vue").PropType<CollisionEntry[]>;
|
|
10
|
-
required: true;
|
|
11
|
-
};
|
|
12
|
-
}>>, {}, {}>, {
|
|
2
|
+
interface Props {
|
|
3
|
+
collisionEntries: CollisionEntry[];
|
|
4
|
+
}
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
|
|
13
6
|
default?(_: {}): any;
|
|
14
7
|
}>;
|
|
15
8
|
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
16
18
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
19
|
new (): {
|
|
18
20
|
$slots: S;
|
|
@@ -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;
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
readonly,
|
|
17
17
|
} from 'vue'
|
|
18
18
|
import { useIntersectionObserver } from '@vueuse/core'
|
|
19
|
-
import { mapValue } from '
|
|
19
|
+
import { mapValue } from 'utils'
|
|
20
20
|
import { useScrollApi } from '../composables/useScrollApi'
|
|
21
21
|
import {
|
|
22
22
|
ScrollPositionKey,
|
|
@@ -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
|
-
import { mapValue } from '
|
|
1
|
+
import { mapValue } from '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,7 +1,7 @@
|
|
|
1
1
|
import { ref, inject, toValue } from "vue";
|
|
2
2
|
import { useWindowSize } from "@vueuse/core";
|
|
3
3
|
import { ScrollPositionKey } from "../symbols/index.mjs";
|
|
4
|
-
import { clampValue } from "
|
|
4
|
+
import { clampValue } from "utils";
|
|
5
5
|
export function useScrollApi(params) {
|
|
6
6
|
const { child, parent, from, to } = params;
|
|
7
7
|
const scrollPosition = inject(ScrollPositionKey, void 0);
|
|
@@ -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
|
+
};
|