@maas/vue-equipment 1.0.0-beta.14 → 1.0.0-beta.16
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/nuxt/module.d.mts +2 -1
- package/dist/nuxt/module.d.ts +2 -1
- package/dist/nuxt/module.json +1 -1
- package/dist/nuxt/types.d.mts +7 -1
- package/dist/nuxt/types.d.ts +7 -1
- package/dist/plugins/MagicAccordion/nuxt.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue +2 -0
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue +1 -0
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue +1 -0
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue +1 -0
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.mjs +1 -0
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionView.mjs +1 -0
- package/dist/plugins/MagicAccordion/src/composables/useMagicAccordion.mjs +1 -0
- package/dist/plugins/MagicCommand/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue +1 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue +1 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.mjs +1 -0
- package/dist/plugins/MagicCookie/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +1 -1
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue +1 -0
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +1 -1
- package/dist/plugins/MagicDraggable/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +3 -2
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +3 -2
- package/dist/plugins/MagicDrawer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +3 -1
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +3 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.mjs +1 -1
- package/dist/plugins/MagicDrawer/src/types/index.mjs +1 -0
- package/dist/plugins/MagicEmitter/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMarquee/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMenu/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +1 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue +1 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +1 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuKeyListener.mjs +1 -0
- package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.mjs +2 -0
- package/dist/plugins/MagicMenu/src/composables/useMagicMenu.mjs +1 -0
- package/dist/plugins/MagicModal/nuxt.d.ts +1 -1
- package/dist/plugins/MagicModal/src/components/MagicModal.vue +3 -1
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +3 -2
- package/dist/plugins/MagicModal/src/types/index.mjs +1 -0
- package/dist/plugins/MagicNoise/nuxt.d.ts +1 -1
- package/dist/plugins/MagicPie/nuxt.d.ts +1 -1
- package/dist/plugins/MagicPlayer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +2 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue +3 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +6 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue.d.ts +1 -1
- package/dist/plugins/MagicScroll/nuxt.d.ts +1 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue +1 -0
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +2 -19
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +1 -1
- package/dist/plugins/MagicToast/nuxt.d.ts +1 -1
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +4 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastListener.mjs +1 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastView.mjs +1 -0
- package/package.json +1 -1
package/dist/nuxt/module.d.mts
CHANGED
package/dist/nuxt/module.d.ts
CHANGED
package/dist/nuxt/module.json
CHANGED
package/dist/nuxt/types.d.mts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NuxtModule } from '@nuxt/schema'
|
|
2
|
+
|
|
3
|
+
import type { default as Module } from './module.js'
|
|
4
|
+
|
|
5
|
+
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
|
+
|
|
7
|
+
export { default } from './module.js'
|
package/dist/nuxt/types.d.ts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NuxtModule } from '@nuxt/schema'
|
|
2
|
+
|
|
3
|
+
import type { default as Module } from './module'
|
|
4
|
+
|
|
5
|
+
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
|
+
|
|
7
|
+
export { default } from './module'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
<script setup>
|
|
30
30
|
import { inject, computed } from "vue";
|
|
31
31
|
import { defu } from "defu";
|
|
32
|
+
import { AutoSize } from "@maas/vue-autosize";
|
|
33
|
+
import { Primitive } from "@maas/vue-primitive";
|
|
32
34
|
import { useAccordionView } from "../composables/private/useAccordionView";
|
|
33
35
|
import { useAccordionState } from "../composables/private/useAccordionState";
|
|
34
36
|
import { useAccordionCallback } from "../composables/private/useAccordionCallback";
|
|
@@ -21,7 +21,7 @@ declare const mappedAnimation: import("vue").ComputedRef<{
|
|
|
21
21
|
declare const onBeforeEnter: () => void, onEnter: () => void, onAfterEnter: () => Promise<void>, onBeforeLeave: () => void, onLeave: () => void, onAfterLeave: () => void;
|
|
22
22
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
23
23
|
declare var __VLS_13: {
|
|
24
|
-
viewActive:
|
|
24
|
+
viewActive: any;
|
|
25
25
|
};
|
|
26
26
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
27
27
|
default?: (props: typeof __VLS_13) => any;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<script setup>
|
|
8
8
|
import { onBeforeUnmount, provide } from "vue";
|
|
9
|
+
import { Primitive } from "@maas/vue-primitive";
|
|
9
10
|
import { MagicAccordionInstanceId } from "../symbols";
|
|
10
11
|
import { useAccordionState } from "../composables/private/useAccordionState";
|
|
11
12
|
const { id, asChild, options } = defineProps({
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
<script setup>
|
|
17
17
|
import { useTemplateRef, inject, computed, toValue } from "vue";
|
|
18
|
+
import { Primitive } from "@maas/vue-primitive";
|
|
18
19
|
import { onKeyStroke } from "@vueuse/core";
|
|
19
20
|
import { useAccordionTrigger } from "../composables/private/useAccordionTrigger";
|
|
20
21
|
import { useAccordionState } from "../composables/private/useAccordionState";
|
|
@@ -13,7 +13,7 @@ declare const mappedDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
|
13
13
|
declare const onMouseenter: () => void, onClick: () => void;
|
|
14
14
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
15
15
|
declare var __VLS_12: {
|
|
16
|
-
viewActive:
|
|
16
|
+
viewActive: any;
|
|
17
17
|
};
|
|
18
18
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
19
19
|
default?: (props: typeof __VLS_12) => any;
|
|
@@ -8,7 +8,7 @@ declare const mappedId: import("vue").ComputedRef<string>;
|
|
|
8
8
|
declare const view: import("../types/index.js").AccordionView;
|
|
9
9
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
10
10
|
declare var __VLS_6: {
|
|
11
|
-
viewActive:
|
|
11
|
+
viewActive: any;
|
|
12
12
|
};
|
|
13
13
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
14
14
|
default?: (props: typeof __VLS_6) => any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { reactive } from "vue";
|
|
2
2
|
import { useAccordionState } from "./useAccordionState.mjs";
|
|
3
|
+
import {} from "../../types/index.mjs";
|
|
3
4
|
export function useAccordionView(instanceId) {
|
|
4
5
|
const { initializeState } = useAccordionState(instanceId);
|
|
5
6
|
const state = initializeState();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -10,7 +10,7 @@ declare function guardedSelect(): void;
|
|
|
10
10
|
declare function onClick(event: MouseEvent): void;
|
|
11
11
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
12
12
|
declare var __VLS_1: {
|
|
13
|
-
itemActive:
|
|
13
|
+
itemActive: any;
|
|
14
14
|
itemDisabled: boolean;
|
|
15
15
|
};
|
|
16
16
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
<script setup>
|
|
8
8
|
import { shallowRef, provide, watch, onBeforeUnmount } from "vue";
|
|
9
9
|
import { useMagicKeys, usePointer } from "@vueuse/core";
|
|
10
|
+
import { Primitive } from "@maas/vue-primitive";
|
|
10
11
|
import { createDefu } from "defu";
|
|
11
12
|
import { useCommandState } from "../composables/private/useCommandState";
|
|
12
13
|
import { useMagicCommand } from "../composables/useMagicCommand";
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
<script setup>
|
|
17
17
|
import { computed, inject, useTemplateRef, toValue, watch } from "vue";
|
|
18
|
+
import { Primitive } from "@maas/vue-primitive";
|
|
18
19
|
import { useCommandView } from "../composables/private/useCommandView";
|
|
19
20
|
import { useCommandTrigger } from "../composables/private/useCommandTrigger";
|
|
20
21
|
import {
|
|
@@ -15,8 +15,8 @@ declare const mappedDisabled: import("vue").ComputedRef<boolean>;
|
|
|
15
15
|
declare const onMouseenter: () => Promise<void>, onClick: (e: MouseEvent) => Promise<void>;
|
|
16
16
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
17
17
|
declare var __VLS_12: {
|
|
18
|
-
viewActive:
|
|
19
|
-
triggerDisabled:
|
|
18
|
+
viewActive: any;
|
|
19
|
+
triggerDisabled: any;
|
|
20
20
|
};
|
|
21
21
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
22
22
|
default?: (props: typeof __VLS_12) => any;
|
|
@@ -6,7 +6,7 @@ declare const mappedId: import("vue").ComputedRef<string>;
|
|
|
6
6
|
declare const view: import("../types/index.js").CommandView;
|
|
7
7
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
8
|
declare var __VLS_1: {
|
|
9
|
-
viewActive:
|
|
9
|
+
viewActive: any;
|
|
10
10
|
};
|
|
11
11
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
12
12
|
default?: (props: typeof __VLS_1) => any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -6,7 +6,7 @@ interface MagicCookieItemProps {
|
|
|
6
6
|
declare const item: import("../types/index.js").CookieItem;
|
|
7
7
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
8
|
declare var __VLS_1: {
|
|
9
|
-
item:
|
|
9
|
+
item: any;
|
|
10
10
|
};
|
|
11
11
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
12
12
|
default?: (props: typeof __VLS_1) => any;
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<script setup>
|
|
25
25
|
import { inject } from "vue";
|
|
26
|
+
import { AutoSize } from "@maas/vue-autosize";
|
|
26
27
|
import { useCookieState } from "../composables/private/useCookieState";
|
|
27
28
|
import { useCookieCallback } from "../composables/private/useCookieCallback";
|
|
28
29
|
import { MagicCookieInstanceId } from "../symbols";
|
|
@@ -5,7 +5,7 @@ declare const state: import("../types/index.js").CookieState;
|
|
|
5
5
|
declare const onBeforeEnter: () => void, onEnter: () => void, onAfterEnter: () => Promise<void>, onBeforeLeave: () => void, onLeave: () => void, onAfterLeave: () => void;
|
|
6
6
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
7
7
|
declare var __VLS_18: {
|
|
8
|
-
viewActive:
|
|
8
|
+
viewActive: any;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
11
11
|
default?: (props: typeof __VLS_18) => any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
:data-id="
|
|
3
|
+
:data-id="mappedId"
|
|
4
4
|
:data-dragging="dragging"
|
|
5
5
|
:data-disabled="disabled"
|
|
6
6
|
class="magic-draggable"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script setup>
|
|
26
|
-
import { useTemplateRef, computed, toRefs } from "vue";
|
|
26
|
+
import { useTemplateRef, computed, toValue, toRefs } from "vue";
|
|
27
27
|
import { defu } from "defu";
|
|
28
28
|
import { useDraggableDrag } from "../composables/private/useDraggableDrag";
|
|
29
29
|
import { useDraggableState } from "../composables/private/useDraggableState";
|
|
@@ -42,6 +42,7 @@ const { id, options = {} } = defineProps({
|
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
const mappedOptions = defu(options, defaultOptions);
|
|
45
|
+
const mappedId = toValue(id);
|
|
45
46
|
const elRef = useTemplateRef("el");
|
|
46
47
|
const wrapperRef = useTemplateRef("wrapper");
|
|
47
48
|
const { initializeState } = useDraggableState(id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type MaybeRef } from 'vue';
|
|
2
2
|
import type { MagicDraggableOptions } from '../types/index.js';
|
|
3
3
|
interface MagicDraggableProps {
|
|
4
4
|
id: MaybeRef<string>;
|
|
@@ -77,6 +77,7 @@ declare const mappedOptions: Omit<MagicDraggableOptions, keyof MagicDraggableOpt
|
|
|
77
77
|
snapPoint?: import("../types/index.js").DraggableSnapPoint;
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
+
declare const mappedId: string;
|
|
80
81
|
declare const dragging: import("vue").Ref<boolean, boolean>;
|
|
81
82
|
declare const disabled: import("vue").ComputedRef<boolean>;
|
|
82
83
|
declare const style: import("vue").ComputedRef<string>, hasDragged: import("vue").ComputedRef<boolean>;
|
|
@@ -88,8 +89,8 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
88
89
|
default?: (props: typeof __VLS_12) => any;
|
|
89
90
|
}>;
|
|
90
91
|
declare const __VLS_self: import("vue").DefineComponent<MagicDraggableProps, {
|
|
91
|
-
toValue: typeof toValue;
|
|
92
92
|
mappedOptions: typeof mappedOptions;
|
|
93
|
+
mappedId: typeof mappedId;
|
|
93
94
|
dragging: typeof dragging;
|
|
94
95
|
disabled: typeof disabled;
|
|
95
96
|
style: typeof style;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<div
|
|
8
8
|
ref="drawer"
|
|
9
9
|
class="magic-drawer"
|
|
10
|
-
:data-id="
|
|
10
|
+
:data-id="mappedId"
|
|
11
11
|
:data-dragging="dragging"
|
|
12
12
|
:data-wheeling="wheeling"
|
|
13
13
|
:data-disabled="disabled"
|
|
@@ -64,6 +64,7 @@ import {
|
|
|
64
64
|
watch,
|
|
65
65
|
computed,
|
|
66
66
|
nextTick,
|
|
67
|
+
toValue,
|
|
67
68
|
onBeforeMount,
|
|
68
69
|
onBeforeUnmount,
|
|
69
70
|
onUnmounted,
|
|
@@ -110,6 +111,7 @@ const { options = {}, id } = defineProps({
|
|
|
110
111
|
}
|
|
111
112
|
});
|
|
112
113
|
const mappedOptions = customDefu(options, defaultOptions);
|
|
114
|
+
const mappedId = toValue(id);
|
|
113
115
|
const elRef = useTemplateRef("el");
|
|
114
116
|
const drawerRef = useTemplateRef("drawer");
|
|
115
117
|
const wrapperRef = useTemplateRef("wrapper");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type MaybeRef } from 'vue';
|
|
2
2
|
import type { MagicDrawerOptions } from '../types/index.js';
|
|
3
3
|
import '@maas/vue-equipment/utils/css/animations/fade-in.css';
|
|
4
4
|
import '@maas/vue-equipment/utils/css/animations/fade-out.css';
|
|
@@ -138,6 +138,7 @@ declare const mappedOptions: Omit<MagicDrawerOptions, keyof MagicDrawerOptions>
|
|
|
138
138
|
preventZoom: boolean;
|
|
139
139
|
preventDragClose: boolean;
|
|
140
140
|
};
|
|
141
|
+
declare const mappedId: string;
|
|
141
142
|
declare const disabled: import("vue").ComputedRef<boolean>;
|
|
142
143
|
declare const style: import("vue").ComputedRef<string>, hasDragged: import("vue").ComputedRef<boolean>;
|
|
143
144
|
declare const dragging: import("vue").Ref<boolean, boolean>, wheeling: import("vue").Ref<boolean, boolean>;
|
|
@@ -157,8 +158,8 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
157
158
|
default?: (props: typeof __VLS_35) => any;
|
|
158
159
|
}>;
|
|
159
160
|
declare const __VLS_self: import("vue").DefineComponent<MagicDrawerProps, {
|
|
160
|
-
toValue: typeof toValue;
|
|
161
161
|
mappedOptions: typeof mappedOptions;
|
|
162
|
+
mappedId: typeof mappedId;
|
|
162
163
|
disabled: typeof disabled;
|
|
163
164
|
style: typeof style;
|
|
164
165
|
hasDragged: typeof hasDragged;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
toRefs
|
|
5
5
|
} from "vue";
|
|
6
6
|
import { unrefElement } from "@vueuse/core";
|
|
7
|
-
import WheelGestures from "wheel-gestures";
|
|
7
|
+
import WheelGestures, {} from "wheel-gestures";
|
|
8
8
|
import { useDrawerState } from "./useDrawerState.mjs";
|
|
9
9
|
export function useDrawerWheel(args) {
|
|
10
10
|
const { id, elRef, position, disabled } = args;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {} from "focus-trap";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -10,7 +10,7 @@ declare function guardedUnselect(): void;
|
|
|
10
10
|
declare function onClick(event: MouseEvent): void;
|
|
11
11
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
12
12
|
declare var __VLS_1: {
|
|
13
|
-
itemActive:
|
|
13
|
+
itemActive: any;
|
|
14
14
|
itemDisabled: boolean;
|
|
15
15
|
};
|
|
16
16
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
onBeforeUnmount
|
|
20
20
|
} from "vue";
|
|
21
21
|
import { onClickOutside, onKeyStroke, usePointer } from "@vueuse/core";
|
|
22
|
+
import { Primitive } from "@maas/vue-primitive";
|
|
22
23
|
import { defu } from "defu";
|
|
23
24
|
import { useMenuState } from "../composables/private/useMenuState";
|
|
24
25
|
import { useMenuView } from "../composables/private/useMenuView";
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<script setup>
|
|
16
16
|
import { computed, inject, watch } from "vue";
|
|
17
|
+
import { Primitive } from "@maas/vue-primitive";
|
|
17
18
|
import { useMenuView } from "../composables/private/useMenuView";
|
|
18
19
|
import { useMenuChannel } from "../composables/private/useMenuChannel";
|
|
19
20
|
import { MagicMenuInstanceId, MagicMenuViewId } from "../symbols";
|
|
@@ -12,7 +12,7 @@ declare const onClick: () => void, onMouseenter: () => void;
|
|
|
12
12
|
declare let channel: import("../types/index.js").MenuChannel;
|
|
13
13
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
14
14
|
declare var __VLS_11: {
|
|
15
|
-
channelActive:
|
|
15
|
+
channelActive: any;
|
|
16
16
|
remoteDisabled: boolean;
|
|
17
17
|
};
|
|
18
18
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<script setup>
|
|
19
19
|
import { computed, inject, useTemplateRef, toValue, watch } from "vue";
|
|
20
|
+
import { Primitive } from "@maas/vue-primitive";
|
|
20
21
|
import { useMenuState } from "../composables/private/useMenuState";
|
|
21
22
|
import { useMenuView } from "../composables/private/useMenuView";
|
|
22
23
|
import { useMenuItem } from "../composables/private/useMenuItem";
|
|
@@ -14,8 +14,8 @@ declare const mappedTabindex: import("vue").ComputedRef<0 | undefined>;
|
|
|
14
14
|
declare const onMouseenter: () => void, onClick: (e: MouseEvent) => void;
|
|
15
15
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
16
16
|
declare var __VLS_13: {
|
|
17
|
-
viewActive:
|
|
18
|
-
triggerDisabled:
|
|
17
|
+
viewActive: any;
|
|
18
|
+
triggerDisabled: any;
|
|
19
19
|
};
|
|
20
20
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
21
21
|
default?: (props: typeof __VLS_13) => any;
|
|
@@ -7,7 +7,7 @@ declare const mappedId: import("vue").ComputedRef<string>;
|
|
|
7
7
|
declare const view: import("../types/index.js").MenuView;
|
|
8
8
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
9
9
|
declare var __VLS_1: {
|
|
10
|
-
viewActive:
|
|
10
|
+
viewActive: any;
|
|
11
11
|
};
|
|
12
12
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
13
13
|
default?: (props: typeof __VLS_1) => any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<div
|
|
8
8
|
ref="modal"
|
|
9
9
|
class="magic-modal"
|
|
10
|
-
:data-id="
|
|
10
|
+
:data-id="mappedId"
|
|
11
11
|
v-bind="$attrs"
|
|
12
12
|
aria-modal="true"
|
|
13
13
|
@click.self="close"
|
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
shallowRef,
|
|
53
53
|
watch,
|
|
54
54
|
nextTick,
|
|
55
|
+
toValue,
|
|
55
56
|
onBeforeUnmount,
|
|
56
57
|
onUnmounted
|
|
57
58
|
} from "vue";
|
|
@@ -87,6 +88,7 @@ const { id, options = {} } = defineProps({
|
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
90
|
const mappedOptions = customDefu(options, defaultOptions);
|
|
91
|
+
const mappedId = toValue(id);
|
|
90
92
|
const modalRef = useTemplateRef("modal");
|
|
91
93
|
const {
|
|
92
94
|
trapFocus,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type MaybeRef } from 'vue';
|
|
2
2
|
import type { MagicModalOptions } from './../types/index.js';
|
|
3
3
|
import '@maas/vue-equipment/utils/css/animations/fade-in.css';
|
|
4
4
|
import '@maas/vue-equipment/utils/css/animations/fade-out.css';
|
|
@@ -26,6 +26,7 @@ declare const mappedOptions: Omit<MagicModalOptions, keyof MagicModalOptions> &
|
|
|
26
26
|
close?: string[] | false;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
+
declare const mappedId: string;
|
|
29
30
|
declare const close: () => void;
|
|
30
31
|
declare const innerActive: import("vue").ShallowRef<boolean, boolean>;
|
|
31
32
|
declare const wrapperActive: import("vue").ShallowRef<boolean, boolean>;
|
|
@@ -38,8 +39,8 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
38
39
|
default?: (props: typeof __VLS_32) => any;
|
|
39
40
|
}>;
|
|
40
41
|
declare const __VLS_self: import("vue").DefineComponent<MagicModalProps, {
|
|
41
|
-
toValue: typeof toValue;
|
|
42
42
|
mappedOptions: typeof mappedOptions;
|
|
43
|
+
mappedId: typeof mappedId;
|
|
43
44
|
close: typeof close;
|
|
44
45
|
innerActive: typeof innerActive;
|
|
45
46
|
wrapperActive: typeof wrapperActive;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {} from "focus-trap";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -65,6 +65,8 @@ import { useIdle } from "@vueuse/core";
|
|
|
65
65
|
import { usePlayerState } from "../composables/private/usePlayerState";
|
|
66
66
|
import { usePlayerAudioApi } from "../composables/private/usePlayerAudioApi";
|
|
67
67
|
import { usePlayerControlsApi } from "../composables/private/usePlayerControlsApi";
|
|
68
|
+
import IconPlay from "./icons/Play.vue";
|
|
69
|
+
import IconPause from "./icons/Pause.vue";
|
|
68
70
|
import {
|
|
69
71
|
MagicPlayerInstanceId,
|
|
70
72
|
MagicPlayerTrackRef,
|
|
@@ -6,7 +6,7 @@ interface MagicAudioPlayerControlsProps {
|
|
|
6
6
|
declare const play: () => void, pause: () => void;
|
|
7
7
|
declare const onMouseenter: () => void, onMouseleave: () => void;
|
|
8
8
|
declare const playing: import("vue").Ref<boolean, boolean>, waiting: import("vue").Ref<boolean, boolean>, touched: import("vue").Ref<boolean, boolean>, controlsMouseEntered: import("vue").Ref<boolean, boolean>;
|
|
9
|
-
declare const idle: import("vue").
|
|
9
|
+
declare const idle: import("vue").ShallowRef<boolean>;
|
|
10
10
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
11
11
|
declare var __VLS_1: {}, __VLS_6: {};
|
|
12
12
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
@@ -35,6 +35,9 @@
|
|
|
35
35
|
<script setup>
|
|
36
36
|
import { inject, toRefs } from "vue";
|
|
37
37
|
import { useIdle } from "@vueuse/core";
|
|
38
|
+
import IconPlay from "./icons/Play.vue";
|
|
39
|
+
import IconPause from "./icons/Pause.vue";
|
|
40
|
+
import IconWaiting from "./icons/Waiting.vue";
|
|
38
41
|
import { usePlayerState } from "../composables/private/usePlayerState";
|
|
39
42
|
import { usePlayerVideoApi } from "../composables/private/usePlayerVideoApi";
|
|
40
43
|
import { MagicPlayerInstanceId } from "../symbols";
|
|
@@ -3,7 +3,7 @@ import IconPause from './icons/Pause.vue.js';
|
|
|
3
3
|
import IconWaiting from './icons/Waiting.vue.js';
|
|
4
4
|
declare const mouseEntered: import("vue").Ref<boolean, boolean>, playing: import("vue").Ref<boolean, boolean>, waiting: import("vue").Ref<boolean, boolean>;
|
|
5
5
|
declare const togglePlay: () => void;
|
|
6
|
-
declare const idle: import("vue").
|
|
6
|
+
declare const idle: import("vue").ShallowRef<boolean>;
|
|
7
7
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
8
|
declare var __VLS_1: {}, __VLS_3: {}, __VLS_8: {}, __VLS_13: {};
|
|
9
9
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
@@ -85,6 +85,12 @@ import {
|
|
|
85
85
|
onBeforeUnmount
|
|
86
86
|
} from "vue";
|
|
87
87
|
import { useElementVisibility, useIdle } from "@vueuse/core";
|
|
88
|
+
import IconPlay from "./icons/Play.vue";
|
|
89
|
+
import IconPause from "./icons/Pause.vue";
|
|
90
|
+
import IconVolumeOn from "./icons/VolumeOn.vue";
|
|
91
|
+
import IconVolumeOff from "./icons/VolumeOff.vue";
|
|
92
|
+
import IconFullscreenEnter from "./icons/FullscreenEnter.vue";
|
|
93
|
+
import IconFullscreenExit from "./icons/FullscreenExit.vue";
|
|
88
94
|
import { usePlayerState } from "../composables/private/usePlayerState";
|
|
89
95
|
import { usePlayerVideoApi } from "../composables/private/usePlayerVideoApi";
|
|
90
96
|
import { usePlayerControlsApi } from "../composables/private/usePlayerControlsApi";
|
|
@@ -15,7 +15,7 @@ declare const mappedTransition: import("vue").ComputedRef<string | undefined>;
|
|
|
15
15
|
declare const playing: import("vue").Ref<boolean, boolean>, waiting: import("vue").Ref<boolean, boolean>, muted: import("vue").Ref<boolean, boolean>, touched: import("vue").Ref<boolean, boolean>, controlsMouseEntered: import("vue").Ref<boolean, boolean>, isFullscreen: import("vue").Ref<boolean, boolean>, popoverOffsetX: import("vue").Ref<number, number>, seekedTime: import("vue").Ref<number, number>;
|
|
16
16
|
declare const play: () => void, pause: () => void, mute: () => void, unmute: () => void, enterFullscreen: () => void, exitFullscreen: () => void;
|
|
17
17
|
declare const onMouseenter: () => void, onMouseleave: () => void;
|
|
18
|
-
declare const idle: import("vue").
|
|
18
|
+
declare const idle: import("vue").ShallowRef<boolean>;
|
|
19
19
|
declare const hidden: import("vue").ComputedRef<boolean>;
|
|
20
20
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
21
21
|
declare var __VLS_5: {}, __VLS_7: {}, __VLS_12: {}, __VLS_17: {}, __VLS_23: {}, __VLS_25: {}, __VLS_30: {}, __VLS_35: {}, __VLS_40: {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -5,7 +5,7 @@ interface MagicScrollProviderProps {
|
|
|
5
5
|
declare const scrollReturn: {
|
|
6
6
|
x: import("vue").WritableComputedRef<number, number>;
|
|
7
7
|
y: import("vue").WritableComputedRef<number, number>;
|
|
8
|
-
isScrolling: import("vue").
|
|
8
|
+
isScrolling: import("vue").ShallowRef<boolean, boolean>;
|
|
9
9
|
arrivedState: {
|
|
10
10
|
left: boolean;
|
|
11
11
|
right: boolean;
|
|
@@ -22,24 +22,7 @@ declare const scrollReturn: {
|
|
|
22
22
|
};
|
|
23
23
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
24
24
|
declare var __VLS_1: {
|
|
25
|
-
scrollReturn:
|
|
26
|
-
x: import("vue").WritableComputedRef<number, number>;
|
|
27
|
-
y: import("vue").WritableComputedRef<number, number>;
|
|
28
|
-
isScrolling: import("vue").Ref<boolean, boolean>;
|
|
29
|
-
arrivedState: {
|
|
30
|
-
left: boolean;
|
|
31
|
-
right: boolean;
|
|
32
|
-
top: boolean;
|
|
33
|
-
bottom: boolean;
|
|
34
|
-
};
|
|
35
|
-
directions: {
|
|
36
|
-
left: boolean;
|
|
37
|
-
right: boolean;
|
|
38
|
-
top: boolean;
|
|
39
|
-
bottom: boolean;
|
|
40
|
-
};
|
|
41
|
-
measure(): void;
|
|
42
|
-
};
|
|
25
|
+
scrollReturn: any;
|
|
43
26
|
};
|
|
44
27
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
45
28
|
default?: (props: typeof __VLS_1) => any;
|
|
@@ -6,7 +6,7 @@ interface MagicScrollSceneProps {
|
|
|
6
6
|
declare const progress: import("vue").ShallowRef<number, number>;
|
|
7
7
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
8
|
declare var __VLS_1: {
|
|
9
|
-
progress:
|
|
9
|
+
progress: any;
|
|
10
10
|
};
|
|
11
11
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
12
12
|
default?: (props: typeof __VLS_1) => any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("nuxt/schema").NuxtModule<import("nuxt/schema").ModuleOptions, import("nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:disabled="state.options.teleport?.disabled"
|
|
5
5
|
>
|
|
6
6
|
<div
|
|
7
|
-
:data-id="
|
|
7
|
+
:data-id="mappedId"
|
|
8
8
|
:data-position="state.options.position"
|
|
9
9
|
:data-expanded="state.expanded"
|
|
10
10
|
class="magic-toast-provider"
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
<script setup>
|
|
45
45
|
import {
|
|
46
|
+
toValue,
|
|
46
47
|
useTemplateRef,
|
|
47
48
|
provide,
|
|
48
49
|
watch,
|
|
@@ -52,6 +53,7 @@ import { onClickOutside } from "@vueuse/core";
|
|
|
52
53
|
import { useToastState } from "../composables/private/useToastState";
|
|
53
54
|
import { useToastView } from "../composables/private/useToastView";
|
|
54
55
|
import { useToastCallback } from "../composables/private/useToastCallback";
|
|
56
|
+
import MagicToastView from "./MagicToastView.vue";
|
|
55
57
|
import { MagicToastInstanceId } from "../../symbols";
|
|
56
58
|
import "@maas/vue-equipment/utils/css/animations/fade-out.css";
|
|
57
59
|
import "@maas/vue-equipment/utils/css/animations/squash-y.css";
|
|
@@ -70,6 +72,7 @@ const { id, options } = defineProps({
|
|
|
70
72
|
required: false
|
|
71
73
|
}
|
|
72
74
|
});
|
|
75
|
+
const mappedId = toValue(id);
|
|
73
76
|
defineOptions({
|
|
74
77
|
inheritAttrs: false
|
|
75
78
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { reactive, markRaw } from "vue";
|
|
2
2
|
import { useToastState } from "./useToastState.mjs";
|
|
3
|
+
import {} from "../../types/index.mjs";
|
|
3
4
|
export function useToastView(instanceId) {
|
|
4
5
|
const { initializeState } = useToastState(instanceId);
|
|
5
6
|
const state = initializeState();
|