@maas/vue-equipment 0.33.1 → 0.35.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/README.md +4 -1
- package/dist/composables/index.d.mts +5 -5
- package/dist/composables/index.d.ts +5 -5
- package/dist/nuxt/module.d.mts +1 -1
- package/dist/nuxt/module.d.ts +1 -1
- package/dist/nuxt/module.json +2 -2
- package/dist/plugins/MagicAccordion/nuxt.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +10 -15
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +8 -12
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +57 -31
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue +2 -3
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +10 -14
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionState.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionView.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicAutoSize/nuxt.d.ts +1 -1
- package/dist/plugins/MagicAutoSize/src/components/MagicAutoSize.vue.d.ts +11 -29
- package/dist/plugins/MagicCommand/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue.d.ts +10 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +8 -12
- package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue.d.ts +8 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue.d.ts +8 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandHead.vue.d.ts +8 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +13 -29
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +8 -12
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +9 -25
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +11 -25
- package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/composables/private/useCommandStore.d.ts +7 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandView.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/symbols/index.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/types/index.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicCookie/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCookie/src/components/MagicCookie.vue.d.ts +13 -29
- package/dist/plugins/MagicCookie/src/composables/private/useCookieApi.d.ts +16 -4
- package/dist/plugins/MagicCookie/src/composables/useMagicCookie.d.ts +5 -3
- package/dist/plugins/MagicDraggable/index.d.ts +1 -1
- package/dist/plugins/MagicDraggable/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +13 -25
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +9 -2
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +7 -1
- package/dist/plugins/MagicDraggable/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicDrawer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +7 -2
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +14 -26
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerCallback.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +12 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.d.ts +3 -0
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.d.ts +4 -4
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/useMagicDrawer.d.ts +3 -0
- package/dist/plugins/MagicDrawer/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicEmitter/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMarquee/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +1 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +15 -30
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.d.ts +2 -2
- package/dist/plugins/MagicMenu/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +8 -12
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +1 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +12 -26
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +12 -13
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +2 -3
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +16 -18
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +10 -12
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +11 -15
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +57 -15
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue +2 -3
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +8 -12
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.d.ts +2 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.mjs +4 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuChannel.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.d.ts +7 -4
- package/dist/plugins/MagicMenu/src/composables/private/useMenuRemote.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuState.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuView.mjs +2 -2
- package/dist/plugins/MagicMenu/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicModal/nuxt.d.ts +1 -1
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +12 -26
- package/dist/plugins/MagicModal/src/composables/private/useModalCallback.d.ts +1 -1
- package/dist/plugins/MagicModal/src/composables/private/useModalStore.d.ts +1 -1
- package/dist/plugins/MagicModal/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicNoise/nuxt.d.ts +1 -1
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +2 -23
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.d.ts +2 -2
- package/dist/plugins/MagicPlayer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayer.vue.d.ts +12 -27
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayerControls.vue.d.ts +12 -13
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue.d.ts +12 -33
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue.d.ts +21 -33
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +2 -23
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +1 -10
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +11 -15
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +8 -12
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue.d.ts +1 -10
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenEnter.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenExit.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Pause.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Play.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOff.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOn.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Waiting.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.d.ts +17 -7
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.d.ts +12 -11
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStateEmitter.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.d.ts +3 -3
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.d.ts +32 -22
- package/dist/plugins/MagicScroll/nuxt.d.ts +1 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +10 -12
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +11 -25
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +27 -43
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +0 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +13 -30
- package/dist/plugins/MagicScroll/src/components/MagicScrollTransform.vue.d.ts +9 -39
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetect.d.ts +29 -1
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.d.ts +1 -1
- package/dist/plugins/MagicToast/nuxt.d.ts +1 -1
- package/dist/plugins/MagicToast/src/components/MagicToast.vue +4 -4
- package/dist/plugins/MagicToast/src/components/MagicToast.vue.d.ts +1 -10
- package/dist/plugins/MagicToast/src/components/MagicToastComponent.vue.d.ts +13 -15
- package/dist/plugins/MagicToast/src/composables/private/useToastCallback.d.ts +8 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastInternalApi.d.ts +1 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastInternalApi.mjs +3 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastStore.d.ts +11 -1
- package/dist/plugins/MagicToast/src/composables/useMagicToast.d.ts +1 -1
- package/dist/plugins/MagicToast/src/utils/defaultOptions.mjs +1 -1
- package/dist/utils/index.d.mts +1 -3
- package/dist/utils/index.d.ts +1 -3
- package/dist/utils/index.js +2 -12
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +1 -10
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MagicDrawerOptions } from '../types.js';
|
|
1
|
+
import type { MagicDrawerOptions } from '../types/index.js';
|
|
2
2
|
import type { RequireAll } from '@maas/vue-equipment/utils';
|
|
3
3
|
type DefaultOptions = RequireAll<MagicDrawerOptions> & {
|
|
4
4
|
scrollLock: RequireAll<MagicDrawerOptions['scrollLock']>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions>;
|
|
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("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions>;
|
|
1
|
+
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions, import("@nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -53,5 +53,5 @@ defineExpose({
|
|
|
53
53
|
</script>
|
|
54
54
|
|
|
55
55
|
<style>
|
|
56
|
-
@keyframes magicMarqueeScrollX{0%{transform:translateZ(0)}to{transform:translate3d(-100%,0,0)}}@keyframes magicMarqueeScrollY{0%{transform:translateZ(0)}to{transform:translate3d(0,-100%,0)}}.magic-marquee{overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.magic-marquee__track{display:flex;justify-content:flex-start;position:relative;width:100%}.magic-marquee__content{animation-direction:var(--magic-marquee-animation-direction,normal);animation-duration:var(--magic-marquee-animation-duration);animation-iteration-count:infinite;animation-name:var(--magic-marquee-animation-name);animation-play-state:var(--magic-marquee-animation-play-state,running);animation-timing-function:linear;backface-visibility:hidden;display:flex;flex-grow:0;flex-shrink:0;gap:var(--magic-marquee-gap,1rem);padding-right:var(--magic-marquee-gap,1rem);white-space:nowrap;width:var(--magic-marquee-content-width,unset)}
|
|
56
|
+
@keyframes magicMarqueeScrollX{0%{transform:translateZ(0)}to{transform:translate3d(-100%,0,0)}}@keyframes magicMarqueeScrollY{0%{transform:translateZ(0)}to{transform:translate3d(0,-100%,0)}}.magic-marquee{overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.magic-marquee__track{align-items:var(--magic-marquee-align-items,baseline);display:flex;justify-content:var(--magic-marquee-jusrify-content,flex-start);position:relative;width:100%}.magic-marquee__content{animation-direction:var(--magic-marquee-animation-direction,normal);animation-duration:var(--magic-marquee-animation-duration);animation-iteration-count:infinite;animation-name:var(--magic-marquee-animation-name);animation-play-state:var(--magic-marquee-animation-play-state,running);animation-timing-function:linear;backface-visibility:hidden;display:flex;flex-grow:0;flex-shrink:0;gap:var(--magic-marquee-gap,1rem);padding-right:var(--magic-marquee-gap,1rem);white-space:nowrap;width:var(--magic-marquee-content-width,unset)}
|
|
57
57
|
</style>
|
|
@@ -3,44 +3,29 @@ interface MagicMarqueeProps {
|
|
|
3
3
|
speed?: number;
|
|
4
4
|
}
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
parentRef: HTMLDivElement;
|
|
12
|
+
childRef: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
attrs: Partial<{}>;
|
|
8
15
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}>, {
|
|
13
|
-
playing: import("vue").Ref<boolean>;
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicMarqueeProps, {
|
|
18
|
+
playing: import("vue").Ref<boolean, boolean>;
|
|
14
19
|
play: () => void;
|
|
15
20
|
pause: () => void;
|
|
16
|
-
},
|
|
17
|
-
direction: string;
|
|
18
|
-
speed: number;
|
|
19
|
-
}>>>, {
|
|
21
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMarqueeProps> & Readonly<{}>, {
|
|
20
22
|
direction: "reverse" | "normal";
|
|
21
23
|
speed: number;
|
|
22
|
-
}, {}>;
|
|
23
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
26
|
export default _default;
|
|
25
|
-
type __VLS_WithDefaults<P, D> = {
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_Prettify<T> = {
|
|
31
|
-
[K in keyof T]: T[K];
|
|
32
|
-
} & {};
|
|
33
27
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
28
|
new (): {
|
|
35
29
|
$slots: S;
|
|
36
30
|
};
|
|
37
31
|
};
|
|
38
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
|
-
type __VLS_TypePropsToOption<T> = {
|
|
40
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
-
} : {
|
|
43
|
-
type: import('vue').PropType<T[K]>;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -8,8 +8,8 @@ export type UseMarqueeApiParams = {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export declare function useMarqueeApi({ child, parent, options }: UseMarqueeApiParams): {
|
|
11
|
-
duplicates: import("vue").Ref<number>;
|
|
12
|
-
playing: import("vue").Ref<boolean>;
|
|
11
|
+
duplicates: import("vue").Ref<number, number>;
|
|
12
|
+
playing: import("vue").Ref<boolean, boolean>;
|
|
13
13
|
play: () => void;
|
|
14
14
|
pause: () => void;
|
|
15
15
|
initialize: () => Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions>;
|
|
1
|
+
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions, import("@nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -2,22 +2,18 @@ interface MagicMenuChannelProps {
|
|
|
2
2
|
id: string;
|
|
3
3
|
}
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
|
-
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
6
10
|
};
|
|
7
|
-
|
|
8
|
-
declare const
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicMenuChannelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuChannelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
9
14
|
export default _default;
|
|
10
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
11
16
|
new (): {
|
|
12
17
|
$slots: S;
|
|
13
18
|
};
|
|
14
19
|
};
|
|
15
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
-
type __VLS_TypePropsToOption<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]>;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
@@ -6,37 +6,23 @@ interface MagicMenuContentProps {
|
|
|
6
6
|
referenceEl?: MaybeRef<HTMLElement | ComponentPublicInstance>;
|
|
7
7
|
}
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
slots: {
|
|
10
|
+
arrow?(_: {}): any;
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {
|
|
14
|
+
contentRef: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
attrs: Partial<{}>;
|
|
11
17
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicMenuContentProps>, {
|
|
15
|
-
arrow: undefined;
|
|
16
|
-
}>>>, {
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicMenuContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuContentProps> & Readonly<{}>, {
|
|
17
20
|
arrow: boolean;
|
|
18
|
-
}, {}>;
|
|
19
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
23
|
export default _default;
|
|
21
|
-
type __VLS_WithDefaults<P, D> = {
|
|
22
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
23
|
-
default: D[K];
|
|
24
|
-
}> : P[K];
|
|
25
|
-
};
|
|
26
|
-
type __VLS_Prettify<T> = {
|
|
27
|
-
[K in keyof T]: T[K];
|
|
28
|
-
} & {};
|
|
29
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
25
|
new (): {
|
|
31
26
|
$slots: S;
|
|
32
27
|
};
|
|
33
28
|
};
|
|
34
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
-
type __VLS_TypePropsToOption<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
|
-
};
|
|
@@ -6,23 +6,22 @@ interface MagicMenuFloatProps {
|
|
|
6
6
|
referenceEl?: MaybeRef<HTMLElement | ComponentPublicInstance>;
|
|
7
7
|
}
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
slots: {
|
|
10
|
+
arrow?(_: {}): any;
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {
|
|
14
|
+
elRef: HTMLDivElement;
|
|
15
|
+
arrowRef: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
attrs: Partial<{}>;
|
|
11
18
|
};
|
|
12
|
-
|
|
13
|
-
declare const
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicMenuFloatProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuFloatProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
22
|
export default _default;
|
|
15
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
24
|
new (): {
|
|
17
25
|
$slots: S;
|
|
18
26
|
};
|
|
19
27
|
};
|
|
20
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
-
type __VLS_TypePropsToOption<T> = {
|
|
22
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
-
} : {
|
|
25
|
-
type: import('vue').PropType<T[K]>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
17
|
<script lang="ts" setup>
|
|
18
|
-
import { computed, inject, provide, onBeforeUnmount, watch } from 'vue'
|
|
19
|
-
import { uuid } from '@maas/vue-equipment/utils'
|
|
18
|
+
import { computed, inject, provide, onBeforeUnmount, watch, useId } from 'vue'
|
|
20
19
|
import { useMenuItem } from '../composables/private/useMenuItem'
|
|
21
20
|
import { useMenuState } from '../composables/private/useMenuState'
|
|
22
21
|
import { useMenuView } from '../composables/private/useMenuView'
|
|
@@ -53,7 +52,7 @@ if (!viewId) {
|
|
|
53
52
|
if (!contentId) {
|
|
54
53
|
throw new Error('MagicMenuItem must be nested inside MagicMenuContent')
|
|
55
54
|
}
|
|
56
|
-
const mappedId = computed(() => props.id ?? `magic-menu-item-${
|
|
55
|
+
const mappedId = computed(() => props.id ?? `magic-menu-item-${useId()}`)
|
|
57
56
|
|
|
58
57
|
// Register item
|
|
59
58
|
const { initializeItem, deleteItem, selectItem, unselectItem } = useMenuItem({
|
|
@@ -3,29 +3,27 @@ interface MagicMenuItemProps {
|
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
}
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
isDisabled: boolean | undefined;
|
|
10
|
+
}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {
|
|
13
|
+
elRef: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
attrs: Partial<{}>;
|
|
10
16
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
|
+
click: (event: MouseEvent) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<MagicMenuItemProps> & Readonly<{
|
|
14
21
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
15
|
-
}, {}, {}>;
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
22
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
24
|
export default _default;
|
|
18
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
26
|
new (): {
|
|
20
27
|
$slots: S;
|
|
21
28
|
};
|
|
22
29
|
};
|
|
23
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
-
type __VLS_TypePropsToOption<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
|
-
};
|
|
@@ -5,22 +5,20 @@ interface MagicMenuProviderProps {
|
|
|
5
5
|
options?: MagicMenuOptions;
|
|
6
6
|
}
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
|
-
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {
|
|
12
|
+
elRef: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
attrs: Partial<{}>;
|
|
9
15
|
};
|
|
10
|
-
|
|
11
|
-
declare const
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicMenuProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
19
|
export default _default;
|
|
13
20
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
21
|
new (): {
|
|
15
22
|
$slots: S;
|
|
16
23
|
};
|
|
17
24
|
};
|
|
18
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
-
type __VLS_TypePropsToOption<T> = {
|
|
20
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
-
} : {
|
|
23
|
-
type: import('vue').PropType<T[K]>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
@@ -8,25 +8,21 @@ interface MagicMenuRemoteProps {
|
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare function __VLS_template(): {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {
|
|
13
|
+
channelActive: boolean;
|
|
14
|
+
remoteDisabled: boolean | undefined;
|
|
15
|
+
}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {};
|
|
18
|
+
attrs: Partial<{}>;
|
|
15
19
|
};
|
|
16
|
-
|
|
17
|
-
declare const
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicMenuRemoteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuRemoteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
23
|
export default _default;
|
|
19
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
25
|
new (): {
|
|
21
26
|
$slots: S;
|
|
22
27
|
};
|
|
23
28
|
};
|
|
24
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
-
type __VLS_TypePropsToOption<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
|
-
};
|
|
@@ -5,25 +5,67 @@ interface MagicMenuTriggerProps {
|
|
|
5
5
|
asChild?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {
|
|
10
|
+
viewActive: boolean | undefined;
|
|
11
|
+
triggerDisabled: boolean;
|
|
12
|
+
}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
elRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
asChild: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
as: {
|
|
21
|
+
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
asChild: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
as: {
|
|
32
|
+
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
}>>, {
|
|
36
|
+
asChild: boolean;
|
|
37
|
+
as: import("@maas/vue-primitive").ElementOrComponent;
|
|
38
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
39
|
+
P: {};
|
|
40
|
+
B: {};
|
|
41
|
+
D: {};
|
|
42
|
+
C: {};
|
|
43
|
+
M: {};
|
|
44
|
+
Defaults: {};
|
|
45
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
asChild: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
as: {
|
|
51
|
+
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}>, {}, {}, {}, {
|
|
57
|
+
asChild: boolean;
|
|
58
|
+
as: import("@maas/vue-primitive").ElementOrComponent;
|
|
59
|
+
}> | null;
|
|
60
|
+
};
|
|
61
|
+
attrs: Partial<{}>;
|
|
12
62
|
};
|
|
13
|
-
|
|
14
|
-
declare const
|
|
63
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
64
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicMenuTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
65
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
66
|
export default _default;
|
|
16
67
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
68
|
new (): {
|
|
18
69
|
$slots: S;
|
|
19
70
|
};
|
|
20
71
|
};
|
|
21
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
-
type __VLS_TypePropsToOption<T> = {
|
|
23
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
-
} : {
|
|
26
|
-
type: import('vue').PropType<T[K]>;
|
|
27
|
-
required: true;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script lang="ts" setup>
|
|
8
|
-
import { computed, inject, onBeforeUnmount, provide } from 'vue'
|
|
9
|
-
import { uuid } from '@maas/vue-equipment/utils'
|
|
8
|
+
import { computed, inject, onBeforeUnmount, provide, useId } from 'vue'
|
|
10
9
|
import { useMenuView } from '../composables/private/useMenuView'
|
|
11
10
|
import {
|
|
12
11
|
MagicMenuInstanceId,
|
|
@@ -33,7 +32,7 @@ if (!instanceId) {
|
|
|
33
32
|
throw new Error('MagicMenuView must be nested inside MagicMenuProvider')
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
const mappedId = computed(() => props.id ?? `magic-menu-view-${
|
|
35
|
+
const mappedId = computed(() => props.id ?? `magic-menu-view-${useId()}`)
|
|
37
36
|
const mappedParentTree = computed(() => [...parentTree, mappedId.value])
|
|
38
37
|
|
|
39
38
|
// Register view
|
|
@@ -4,22 +4,18 @@ interface MagicMenuViewProps {
|
|
|
4
4
|
placement?: Placement;
|
|
5
5
|
}
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
-
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
attrs: Partial<{}>;
|
|
8
12
|
};
|
|
9
|
-
|
|
10
|
-
declare const
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicMenuViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
11
16
|
export default _default;
|
|
12
17
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
18
|
new (): {
|
|
14
19
|
$slots: S;
|
|
15
20
|
};
|
|
16
21
|
};
|
|
17
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
-
type __VLS_TypePropsToOption<T> = {
|
|
19
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
-
} : {
|
|
22
|
-
type: import('vue').PropType<T[K]>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type MaybeRef, type Ref } from 'vue';
|
|
2
|
-
import type { MenuState } from '../../types.js';
|
|
2
|
+
import type { MenuState } from '../../types/index.js';
|
|
3
3
|
type UseMenuCallbackArgs = {
|
|
4
4
|
state: MenuState;
|
|
5
5
|
instanceId: MaybeRef<string>;
|
|
6
6
|
viewId: string;
|
|
7
|
+
innerActive: Ref<boolean>;
|
|
7
8
|
wrapperActive: Ref<boolean>;
|
|
8
9
|
lockScroll: () => void;
|
|
9
10
|
unlockScroll: () => void;
|
|
@@ -6,6 +6,7 @@ export function useMenuCallback(args) {
|
|
|
6
6
|
state,
|
|
7
7
|
instanceId,
|
|
8
8
|
viewId,
|
|
9
|
+
innerActive,
|
|
9
10
|
wrapperActive,
|
|
10
11
|
lockScroll,
|
|
11
12
|
unlockScroll,
|
|
@@ -44,7 +45,9 @@ export function useMenuCallback(args) {
|
|
|
44
45
|
removeScrollLockPadding();
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
|
|
48
|
+
if (!innerActive.value) {
|
|
49
|
+
wrapperActive.value = false;
|
|
50
|
+
}
|
|
48
51
|
}
|
|
49
52
|
return {
|
|
50
53
|
onBeforeEnter,
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import type { MenuView } from '../../types.js';
|
|
1
|
+
import type { Coordinates, MenuView } from '../../types/index.js';
|
|
2
2
|
export declare function useMenuCursor(view: MenuView, debug?: boolean): {
|
|
3
3
|
coords: import("vue").Ref<{
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
|
6
|
+
}[], Coordinates[] | {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
6
9
|
}[]>;
|
|
7
|
-
isInsideFrom: import("vue").Ref<boolean>;
|
|
8
|
-
isInsideTo: import("vue").Ref<boolean>;
|
|
9
|
-
isInsideTriangle: import("vue").Ref<boolean>;
|
|
10
|
+
isInsideFrom: import("vue").Ref<boolean, boolean>;
|
|
11
|
+
isInsideTo: import("vue").Ref<boolean, boolean>;
|
|
12
|
+
isInsideTriangle: import("vue").Ref<boolean, boolean>;
|
|
10
13
|
initialize: () => void;
|
|
11
14
|
destroy: () => void;
|
|
12
15
|
};
|
|
@@ -3,5 +3,5 @@ import type { MenuState, MagicMenuOptions } from '../../types/index.js';
|
|
|
3
3
|
export declare function useMenuState(instanceId: MaybeRef<string>): {
|
|
4
4
|
initializeState: (options?: MagicMenuOptions) => MenuState;
|
|
5
5
|
deleteState: () => void;
|
|
6
|
-
menuStateStore: Ref<MenuState[]>;
|
|
6
|
+
menuStateStore: Ref<MenuState[], MenuState[]>;
|
|
7
7
|
};
|
|
@@ -102,7 +102,7 @@ export function useMenuView(instanceId) {
|
|
|
102
102
|
instance.active = true;
|
|
103
103
|
unselectUnrelatedViews(id);
|
|
104
104
|
} catch (error) {
|
|
105
|
-
if (error.name === "AbortError") {
|
|
105
|
+
if (error.name === "AbortError" && state.options.debug) {
|
|
106
106
|
console.log(
|
|
107
107
|
`selectView() was interrupted by a call to unselectView()`
|
|
108
108
|
);
|
|
@@ -124,7 +124,7 @@ export function useMenuView(instanceId) {
|
|
|
124
124
|
await delay(delayMs, abortController.signal);
|
|
125
125
|
instance.active = false;
|
|
126
126
|
} catch (error) {
|
|
127
|
-
if (error.name === "AbortError") {
|
|
127
|
+
if (error.name === "AbortError" && state.options.debug) {
|
|
128
128
|
console.log(
|
|
129
129
|
`unselectView() was interrupted by a call to selectView()`
|
|
130
130
|
);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions>;
|
|
1
|
+
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions, import("@nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|