@maas/vue-equipment 0.30.3 → 0.30.4
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.json +1 -1
- package/dist/plugins/MagicAutoSize/src/components/MagicAutoSize.vue +1 -0
- package/dist/plugins/MagicAutoSize/src/components/MagicAutoSize.vue.d.ts +6 -4
- package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue.d.ts +4 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +4 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue.d.ts +4 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue.d.ts +4 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandHead.vue.d.ts +4 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +8 -6
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +4 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +6 -4
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +6 -4
- package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.mjs +1 -2
- package/dist/plugins/MagicCommand/src/composables/private/useCommandView.mjs +1 -2
- package/dist/plugins/MagicCookie/src/components/MagicCookie.vue.d.ts +9 -7
- package/dist/plugins/MagicCookie/src/composables/private/useCookieApi.d.ts +3 -3
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +6 -4
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableScrollLock.mjs +1 -2
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +2 -2
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.d.ts +1 -1
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.mjs +1 -2
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +7 -5
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDOM.mjs +1 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +4 -8
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.mjs +14 -28
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.d.ts +1 -64
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.mjs +1 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerUtils.mjs +8 -16
- package/dist/plugins/MagicEmitter/src/composables/useMagicEmitter.d.ts +30 -30
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +7 -5
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue +21 -15
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +4 -2
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +16 -11
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +7 -5
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue +7 -7
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +4 -2
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +8 -6
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +4 -2
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue +11 -7
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +4 -2
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +4 -4
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +4 -2
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +4 -2
- package/dist/plugins/MagicMenu/src/composables/private/useMenuChannel.mjs +1 -8
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.mjs +29 -10
- package/dist/plugins/MagicMenu/src/composables/private/useMenuDOM.mjs +1 -2
- package/dist/plugins/MagicMenu/src/composables/private/useMenuItem.mjs +1 -2
- package/dist/plugins/MagicMenu/src/composables/private/useMenuKeyListener.mjs +2 -4
- package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.mjs +16 -4
- package/dist/plugins/MagicMenu/src/composables/private/useMenuView.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/composables/private/useMenuView.mjs +53 -13
- package/dist/plugins/MagicMenu/src/composables/useMagicMenu.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/types/index.d.ts +11 -4
- package/dist/plugins/MagicMenu/src/utils/defaultOptions.mjs +6 -3
- package/dist/plugins/MagicMenu/src/utils/modeTransitions.d.ts +6 -0
- package/dist/plugins/MagicMenu/src/utils/modeTransitions.mjs +7 -0
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +7 -5
- package/dist/plugins/MagicModal/src/composables/private/useModalDOM.mjs +1 -2
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.mjs +3 -6
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayer.vue.d.ts +6 -4
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayerControls.vue.d.ts +4 -2
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue.d.ts +7 -5
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue.d.ts +10 -8
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +4 -2
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +4 -2
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.mjs +1 -2
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.mjs +5 -10
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.mjs +8 -16
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.mjs +3 -6
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStateEmitter.d.ts +3 -3
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.mjs +2 -4
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +4 -2
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +6 -4
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +10 -8
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +8 -6
- package/dist/plugins/MagicScroll/src/components/MagicScrollTransform.vue.d.ts +6 -4
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetect.mjs +4 -8
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.mjs +2 -4
- package/dist/plugins/MagicScroll/src/symbols/index.d.ts +2 -18
- package/dist/plugins/MagicToast/src/components/MagicToastComponent.vue.d.ts +6 -4
- package/dist/plugins/MagicToast/src/composables/private/useToastApi.mjs +1 -2
- package/dist/plugins/MagicToast/src/composables/private/useToastStore.d.ts +1 -1
- package/dist/plugins/MagicToast/src/composables/useMagicToast.mjs +1 -2
- package/package.json +2 -1
|
@@ -15,11 +15,11 @@ export declare function useMagicEmitter(): {
|
|
|
15
15
|
snapTo: {
|
|
16
16
|
id: string;
|
|
17
17
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
18
|
-
duration?: number
|
|
18
|
+
duration?: number;
|
|
19
19
|
} | {
|
|
20
20
|
id: string;
|
|
21
21
|
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
22
|
-
duration?: number
|
|
22
|
+
duration?: number;
|
|
23
23
|
};
|
|
24
24
|
afterSnap: {
|
|
25
25
|
id: string;
|
|
@@ -92,7 +92,7 @@ export declare function useMagicEmitter(): {
|
|
|
92
92
|
snapTo: {
|
|
93
93
|
id: string;
|
|
94
94
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
95
|
-
duration?: number
|
|
95
|
+
duration?: number;
|
|
96
96
|
};
|
|
97
97
|
afterSnap: {
|
|
98
98
|
id: string;
|
|
@@ -173,7 +173,7 @@ export declare function useMagicEmitter(): {
|
|
|
173
173
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
174
174
|
position: import("../../../MagicScroll/src/types").Position;
|
|
175
175
|
element: HTMLElement;
|
|
176
|
-
data?: Record<string, unknown
|
|
176
|
+
data?: Record<string, unknown>;
|
|
177
177
|
};
|
|
178
178
|
} & Omit<{
|
|
179
179
|
beforeEnter: string;
|
|
@@ -198,11 +198,11 @@ export declare function useMagicEmitter(): {
|
|
|
198
198
|
snapTo: {
|
|
199
199
|
id: string;
|
|
200
200
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
201
|
-
duration?: number
|
|
201
|
+
duration?: number;
|
|
202
202
|
} | {
|
|
203
203
|
id: string;
|
|
204
204
|
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
205
|
-
duration?: number
|
|
205
|
+
duration?: number;
|
|
206
206
|
};
|
|
207
207
|
afterSnap: {
|
|
208
208
|
id: string;
|
|
@@ -275,7 +275,7 @@ export declare function useMagicEmitter(): {
|
|
|
275
275
|
snapTo: {
|
|
276
276
|
id: string;
|
|
277
277
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
278
|
-
duration?: number
|
|
278
|
+
duration?: number;
|
|
279
279
|
};
|
|
280
280
|
afterSnap: {
|
|
281
281
|
id: string;
|
|
@@ -356,7 +356,7 @@ export declare function useMagicEmitter(): {
|
|
|
356
356
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
357
357
|
position: import("../../../MagicScroll/src/types").Position;
|
|
358
358
|
element: HTMLElement;
|
|
359
|
-
data?: Record<string, unknown
|
|
359
|
+
data?: Record<string, unknown>;
|
|
360
360
|
};
|
|
361
361
|
} & Omit<{
|
|
362
362
|
beforeEnter: string;
|
|
@@ -368,7 +368,7 @@ export declare function useMagicEmitter(): {
|
|
|
368
368
|
} & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>>): void;
|
|
369
369
|
};
|
|
370
370
|
off: {
|
|
371
|
-
<
|
|
371
|
+
<Key extends "progress" | "beforeEnter" | "enter" | "afterEnter" | "beforeLeave" | "leave" | "afterLeave" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | keyof import("../../../MagicCookie/src/types").CookieEvents>(type: Key, handler?: import("mitt").Handler<({
|
|
372
372
|
accept: import("../../../MagicCookie/src/types").MagicCookieConsent;
|
|
373
373
|
reject: import("../../../MagicCookie/src/types").MagicCookieConsent;
|
|
374
374
|
acceptSelected: import("../../../MagicCookie/src/types").MagicCookieConsent;
|
|
@@ -383,11 +383,11 @@ export declare function useMagicEmitter(): {
|
|
|
383
383
|
snapTo: {
|
|
384
384
|
id: string;
|
|
385
385
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
386
|
-
duration?: number
|
|
386
|
+
duration?: number;
|
|
387
387
|
} | {
|
|
388
388
|
id: string;
|
|
389
389
|
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
390
|
-
duration?: number
|
|
390
|
+
duration?: number;
|
|
391
391
|
};
|
|
392
392
|
afterSnap: {
|
|
393
393
|
id: string;
|
|
@@ -460,7 +460,7 @@ export declare function useMagicEmitter(): {
|
|
|
460
460
|
snapTo: {
|
|
461
461
|
id: string;
|
|
462
462
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
463
|
-
duration?: number
|
|
463
|
+
duration?: number;
|
|
464
464
|
};
|
|
465
465
|
afterSnap: {
|
|
466
466
|
id: string;
|
|
@@ -541,7 +541,7 @@ export declare function useMagicEmitter(): {
|
|
|
541
541
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
542
542
|
position: import("../../../MagicScroll/src/types").Position;
|
|
543
543
|
element: HTMLElement;
|
|
544
|
-
data?: Record<string, unknown
|
|
544
|
+
data?: Record<string, unknown>;
|
|
545
545
|
};
|
|
546
546
|
} & Omit<{
|
|
547
547
|
beforeEnter: string;
|
|
@@ -550,7 +550,7 @@ export declare function useMagicEmitter(): {
|
|
|
550
550
|
beforeLeave: string;
|
|
551
551
|
leave: string;
|
|
552
552
|
afterLeave: string;
|
|
553
|
-
} & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>)[
|
|
553
|
+
} & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>)[Key]> | undefined): void;
|
|
554
554
|
(type: "*", handler: import("mitt").WildcardHandler<{
|
|
555
555
|
accept: import("../../../MagicCookie/src/types").MagicCookieConsent;
|
|
556
556
|
reject: import("../../../MagicCookie/src/types").MagicCookieConsent;
|
|
@@ -566,11 +566,11 @@ export declare function useMagicEmitter(): {
|
|
|
566
566
|
snapTo: {
|
|
567
567
|
id: string;
|
|
568
568
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
569
|
-
duration?: number
|
|
569
|
+
duration?: number;
|
|
570
570
|
} | {
|
|
571
571
|
id: string;
|
|
572
572
|
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
573
|
-
duration?: number
|
|
573
|
+
duration?: number;
|
|
574
574
|
};
|
|
575
575
|
afterSnap: {
|
|
576
576
|
id: string;
|
|
@@ -643,7 +643,7 @@ export declare function useMagicEmitter(): {
|
|
|
643
643
|
snapTo: {
|
|
644
644
|
id: string;
|
|
645
645
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
646
|
-
duration?: number
|
|
646
|
+
duration?: number;
|
|
647
647
|
};
|
|
648
648
|
afterSnap: {
|
|
649
649
|
id: string;
|
|
@@ -724,7 +724,7 @@ export declare function useMagicEmitter(): {
|
|
|
724
724
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
725
725
|
position: import("../../../MagicScroll/src/types").Position;
|
|
726
726
|
element: HTMLElement;
|
|
727
|
-
data?: Record<string, unknown
|
|
727
|
+
data?: Record<string, unknown>;
|
|
728
728
|
};
|
|
729
729
|
} & Omit<{
|
|
730
730
|
beforeEnter: string;
|
|
@@ -736,7 +736,7 @@ export declare function useMagicEmitter(): {
|
|
|
736
736
|
} & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>>): void;
|
|
737
737
|
};
|
|
738
738
|
emit: {
|
|
739
|
-
<
|
|
739
|
+
<Key extends "progress" | "beforeEnter" | "enter" | "afterEnter" | "beforeLeave" | "leave" | "afterLeave" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | keyof import("../../../MagicCookie/src/types").CookieEvents>(type: Key, event: ({
|
|
740
740
|
accept: import("../../../MagicCookie/src/types").MagicCookieConsent;
|
|
741
741
|
reject: import("../../../MagicCookie/src/types").MagicCookieConsent;
|
|
742
742
|
acceptSelected: import("../../../MagicCookie/src/types").MagicCookieConsent;
|
|
@@ -751,11 +751,11 @@ export declare function useMagicEmitter(): {
|
|
|
751
751
|
snapTo: {
|
|
752
752
|
id: string;
|
|
753
753
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
754
|
-
duration?: number
|
|
754
|
+
duration?: number;
|
|
755
755
|
} | {
|
|
756
756
|
id: string;
|
|
757
757
|
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
758
|
-
duration?: number
|
|
758
|
+
duration?: number;
|
|
759
759
|
};
|
|
760
760
|
afterSnap: {
|
|
761
761
|
id: string;
|
|
@@ -828,7 +828,7 @@ export declare function useMagicEmitter(): {
|
|
|
828
828
|
snapTo: {
|
|
829
829
|
id: string;
|
|
830
830
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
831
|
-
duration?: number
|
|
831
|
+
duration?: number;
|
|
832
832
|
};
|
|
833
833
|
afterSnap: {
|
|
834
834
|
id: string;
|
|
@@ -909,7 +909,7 @@ export declare function useMagicEmitter(): {
|
|
|
909
909
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
910
910
|
position: import("../../../MagicScroll/src/types").Position;
|
|
911
911
|
element: HTMLElement;
|
|
912
|
-
data?: Record<string, unknown
|
|
912
|
+
data?: Record<string, unknown>;
|
|
913
913
|
};
|
|
914
914
|
} & Omit<{
|
|
915
915
|
beforeEnter: string;
|
|
@@ -918,8 +918,8 @@ export declare function useMagicEmitter(): {
|
|
|
918
918
|
beforeLeave: string;
|
|
919
919
|
leave: string;
|
|
920
920
|
afterLeave: string;
|
|
921
|
-
} & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>)[
|
|
922
|
-
<
|
|
921
|
+
} & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>)[Key]): void;
|
|
922
|
+
<Key extends "progress" | "beforeEnter" | "enter" | "afterEnter" | "beforeLeave" | "leave" | "afterLeave" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | keyof import("../../../MagicCookie/src/types").CookieEvents>(type: undefined extends ({
|
|
923
923
|
accept: import("../../../MagicCookie/src/types").MagicCookieConsent;
|
|
924
924
|
reject: import("../../../MagicCookie/src/types").MagicCookieConsent;
|
|
925
925
|
acceptSelected: import("../../../MagicCookie/src/types").MagicCookieConsent;
|
|
@@ -934,11 +934,11 @@ export declare function useMagicEmitter(): {
|
|
|
934
934
|
snapTo: {
|
|
935
935
|
id: string;
|
|
936
936
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
937
|
-
duration?: number
|
|
937
|
+
duration?: number;
|
|
938
938
|
} | {
|
|
939
939
|
id: string;
|
|
940
940
|
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
941
|
-
duration?: number
|
|
941
|
+
duration?: number;
|
|
942
942
|
};
|
|
943
943
|
afterSnap: {
|
|
944
944
|
id: string;
|
|
@@ -1011,7 +1011,7 @@ export declare function useMagicEmitter(): {
|
|
|
1011
1011
|
snapTo: {
|
|
1012
1012
|
id: string;
|
|
1013
1013
|
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
1014
|
-
duration?: number
|
|
1014
|
+
duration?: number;
|
|
1015
1015
|
};
|
|
1016
1016
|
afterSnap: {
|
|
1017
1017
|
id: string;
|
|
@@ -1092,7 +1092,7 @@ export declare function useMagicEmitter(): {
|
|
|
1092
1092
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
1093
1093
|
position: import("../../../MagicScroll/src/types").Position;
|
|
1094
1094
|
element: HTMLElement;
|
|
1095
|
-
data?: Record<string, unknown
|
|
1095
|
+
data?: Record<string, unknown>;
|
|
1096
1096
|
};
|
|
1097
1097
|
} & Omit<{
|
|
1098
1098
|
beforeEnter: string;
|
|
@@ -1101,6 +1101,6 @@ export declare function useMagicEmitter(): {
|
|
|
1101
1101
|
beforeLeave: string;
|
|
1102
1102
|
leave: string;
|
|
1103
1103
|
afterLeave: string;
|
|
1104
|
-
} & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>)[
|
|
1104
|
+
} & Omit<{}, keyof import("../../../MagicToast/src/types").ToastEvents>, "collision">, keyof import("../../../MagicMenu/src/types").MenuEvents>, keyof import("../../../MagicModal/src/types").ModalEvents>, keyof import("../../../MagicDrawer/src/types").DrawerEvents>, keyof import("../../../MagicDraggable/src/types").DraggableEvents>, keyof import("../../../MagicCookie/src/types").CookieEvents>)[Key] ? Key : never): void;
|
|
1105
1105
|
};
|
|
1106
1106
|
};
|
|
@@ -2,7 +2,11 @@ interface MagicMarqueeProps {
|
|
|
2
2
|
direction?: 'reverse' | 'normal';
|
|
3
3
|
speed?: number;
|
|
4
4
|
}
|
|
5
|
-
declare
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicMarqueeProps>, {
|
|
6
10
|
direction: string;
|
|
7
11
|
speed: number;
|
|
8
12
|
}>, {
|
|
@@ -15,10 +19,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
19
|
}>>>, {
|
|
16
20
|
direction: "reverse" | "normal";
|
|
17
21
|
speed: number;
|
|
18
|
-
}, {}
|
|
19
|
-
|
|
20
|
-
default?(_: {}): any;
|
|
21
|
-
}>;
|
|
22
|
+
}, {}>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
22
24
|
export default _default;
|
|
23
25
|
type __VLS_WithDefaults<P, D> = {
|
|
24
26
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
<transition :name="mappedTransition">
|
|
3
|
+
<div
|
|
4
|
+
:class="['magic-menu-channel', { '-initialized': state.active }]"
|
|
5
|
+
v-if="channel.active"
|
|
6
|
+
:data-id="mappedId"
|
|
7
|
+
:id="id"
|
|
8
|
+
>
|
|
9
|
+
<slot />
|
|
10
|
+
</div>
|
|
11
|
+
</transition>
|
|
10
12
|
</template>
|
|
11
13
|
|
|
12
14
|
<script lang="ts" setup>
|
|
13
|
-
import { computed, inject, provide
|
|
15
|
+
import { computed, inject, provide } from 'vue'
|
|
14
16
|
import { useMenuChannel } from '../composables/private/useMenuChannel'
|
|
15
17
|
import {
|
|
16
18
|
MagicMenuInstanceId,
|
|
@@ -19,6 +21,7 @@ import {
|
|
|
19
21
|
MagicMenuChannelId,
|
|
20
22
|
MagicMenuChannelActive,
|
|
21
23
|
} from '../symbols'
|
|
24
|
+
import { useMenuState } from '../composables/private/useMenuState'
|
|
22
25
|
|
|
23
26
|
interface MagicMenuChannelProps {
|
|
24
27
|
id: string
|
|
@@ -46,10 +49,14 @@ if (!props.id) {
|
|
|
46
49
|
throw new Error('MagicMenuChannel requires an id')
|
|
47
50
|
}
|
|
48
51
|
|
|
52
|
+
const { initializeState } = useMenuState(instanceId)
|
|
53
|
+
const state = initializeState()
|
|
54
|
+
|
|
49
55
|
const mappedId = computed(() => `magic-menu-channel-${props.id}`)
|
|
56
|
+
const mappedTransition = computed(() => state.options.transition.channel)
|
|
50
57
|
|
|
51
58
|
// Register channel
|
|
52
|
-
const { initializeChannel
|
|
59
|
+
const { initializeChannel } = useMenuChannel({
|
|
53
60
|
instanceId,
|
|
54
61
|
viewId,
|
|
55
62
|
})
|
|
@@ -61,9 +68,8 @@ const channel = initializeChannel({
|
|
|
61
68
|
// Pass id and active state to children
|
|
62
69
|
provide(MagicMenuChannelId, mappedId.value)
|
|
63
70
|
provide(MagicMenuChannelActive, channel.active)
|
|
64
|
-
|
|
65
|
-
// Lifecycle
|
|
66
|
-
onBeforeUnmount(() => {
|
|
67
|
-
deleteChannel(mappedId.value)
|
|
68
|
-
})
|
|
69
71
|
</script>
|
|
72
|
+
|
|
73
|
+
<style>
|
|
74
|
+
.magic-menu-channel-enter-active{animation:fade-in .3s ease}.magic-menu-channel-enter-active.-initialized{position:absolute}.magic-menu-channel-leave-active{animation:fade-out .3s ease}.magic-menu-channel-leave-active.-initialized{position:absolute}
|
|
75
|
+
</style>
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
interface MagicMenuChannelProps {
|
|
2
2
|
id: string;
|
|
3
3
|
}
|
|
4
|
-
declare
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
5
|
default?(_: {}): any;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<MagicMenuChannelProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuChannelProps>>>, {}, {}>;
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
7
9
|
export default _default;
|
|
8
10
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
9
11
|
new (): {
|
|
@@ -24,7 +24,11 @@
|
|
|
24
24
|
<slot name="arrow" />
|
|
25
25
|
</template>
|
|
26
26
|
<template #default>
|
|
27
|
-
<div
|
|
27
|
+
<div
|
|
28
|
+
class="magic-menu-content__inner"
|
|
29
|
+
ref="contentRef"
|
|
30
|
+
:class="{ '-disabled': pointerDisabled }"
|
|
31
|
+
>
|
|
28
32
|
<slot />
|
|
29
33
|
</div>
|
|
30
34
|
</template>
|
|
@@ -73,6 +77,7 @@ import {
|
|
|
73
77
|
|
|
74
78
|
import '@maas/vue-equipment/utils/css/animations/fade-in.css'
|
|
75
79
|
import '@maas/vue-equipment/utils/css/animations/fade-out.css'
|
|
80
|
+
import { ModeTransitions } from '../utils/modeTransitions'
|
|
76
81
|
|
|
77
82
|
defineOptions({
|
|
78
83
|
inheritAttrs: false,
|
|
@@ -98,22 +103,22 @@ if (!viewId) {
|
|
|
98
103
|
throw new Error('MagicMenuContent must be nested inside MagicMenuView')
|
|
99
104
|
}
|
|
100
105
|
|
|
101
|
-
const { getView } = useMenuView(instanceId)
|
|
106
|
+
const { getView, unselectView } = useMenuView(instanceId)
|
|
102
107
|
const view = getView(viewId)
|
|
103
108
|
|
|
104
109
|
const { initializeState } = useMenuState(instanceId)
|
|
105
110
|
const state = initializeState()
|
|
106
111
|
|
|
112
|
+
const pointerDisabled = computed(() => state.input.disabled.includes('pointer'))
|
|
113
|
+
|
|
107
114
|
const mappedTransition = computed(() => {
|
|
108
115
|
switch (true) {
|
|
109
116
|
case !!view?.parent.item:
|
|
110
|
-
return state.options.transition
|
|
111
|
-
case state.
|
|
112
|
-
return state.options.transition
|
|
113
|
-
case !state.active:
|
|
114
|
-
return state.options.transition?.final
|
|
117
|
+
return state.options.transition.content.nested
|
|
118
|
+
case !!state.options.transition.content.default:
|
|
119
|
+
return state.options.transition.content.default
|
|
115
120
|
default:
|
|
116
|
-
return
|
|
121
|
+
return ModeTransitions[state.options.mode]
|
|
117
122
|
}
|
|
118
123
|
})
|
|
119
124
|
|
|
@@ -171,7 +176,7 @@ const {
|
|
|
171
176
|
isInsideTriangle,
|
|
172
177
|
isInsideTo,
|
|
173
178
|
isInsideFrom,
|
|
174
|
-
} = useMenuCursor(view
|
|
179
|
+
} = useMenuCursor(view!, state.options.debug)
|
|
175
180
|
|
|
176
181
|
function disableCursor() {
|
|
177
182
|
state.input.disabled = [...state.input.disabled, 'pointer']
|
|
@@ -203,7 +208,7 @@ watch(isOutside, (value, oldValue) => {
|
|
|
203
208
|
if (value && !oldValue) {
|
|
204
209
|
switch (state.options.mode) {
|
|
205
210
|
case 'navigation':
|
|
206
|
-
|
|
211
|
+
unselectView(viewId, 200)
|
|
207
212
|
}
|
|
208
213
|
}
|
|
209
214
|
})
|
|
@@ -216,5 +221,5 @@ provide(MagicMenuContentId, `${viewId}-content`)
|
|
|
216
221
|
</script>
|
|
217
222
|
|
|
218
223
|
<style>
|
|
219
|
-
.magic-menu-content{-webkit-user-select:none;-moz-user-select:none;user-select:none}.magic-menu-content__inner{border:0;padding:0}.magic-menu-content--
|
|
224
|
+
.magic-menu-content{-webkit-user-select:none;-moz-user-select:none;user-select:none}.magic-menu-content__inner{border:0;padding:0}.magic-menu-content__inner.-disabled{pointer-events:none}.magic-menu-content--default-enter-active,.magic-menu-content--default-leave-active{animation:none}.magic-menu-content--fade-enter-active{animation:fade-in .2s ease}.magic-menu-content--fade-leave-active{animation:fade-out .2s ease}
|
|
220
225
|
</style>
|
|
@@ -5,16 +5,18 @@ interface MagicMenuContentProps {
|
|
|
5
5
|
arrow?: boolean | undefined;
|
|
6
6
|
referenceEl?: MaybeRef<HTMLElement | ComponentPublicInstance>;
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
arrow?(_: {}): any;
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicMenuContentProps>, {
|
|
9
13
|
arrow: undefined;
|
|
10
14
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicMenuContentProps>, {
|
|
11
15
|
arrow: undefined;
|
|
12
16
|
}>>>, {
|
|
13
17
|
arrow: boolean;
|
|
14
|
-
}, {}
|
|
15
|
-
|
|
16
|
-
default?(_: {}): any;
|
|
17
|
-
}>;
|
|
18
|
+
}, {}>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
18
20
|
export default _default;
|
|
19
21
|
type __VLS_WithDefaults<P, D> = {
|
|
20
22
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
@@ -145,18 +145,18 @@ const mappedMiddleware = computed(() => {
|
|
|
145
145
|
const mappedReferenceEl = computed(() => {
|
|
146
146
|
if (props.referenceEl) {
|
|
147
147
|
return toValue(props.referenceEl)
|
|
148
|
-
} else if (view?.
|
|
148
|
+
} else if (view?.state.clicked) {
|
|
149
149
|
return {
|
|
150
150
|
getBoundingClientRect() {
|
|
151
151
|
return {
|
|
152
152
|
width: 0,
|
|
153
153
|
height: 0,
|
|
154
|
-
x: view.
|
|
155
|
-
y: view.
|
|
156
|
-
top: view.
|
|
157
|
-
left: view.
|
|
158
|
-
right: view.
|
|
159
|
-
bottom: view.
|
|
154
|
+
x: view.state.clicked!.x,
|
|
155
|
+
y: view.state.clicked!.y,
|
|
156
|
+
top: view.state.clicked!.y,
|
|
157
|
+
left: view.state.clicked!.x,
|
|
158
|
+
right: view.state.clicked!.x,
|
|
159
|
+
bottom: view.state.clicked!.y,
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
}
|
|
@@ -5,10 +5,12 @@ interface MagicMenuFloatProps {
|
|
|
5
5
|
arrow?: boolean;
|
|
6
6
|
referenceEl?: MaybeRef<HTMLElement | ComponentPublicInstance>;
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
9
|
arrow?(_: {}): any;
|
|
10
10
|
default?(_: {}): any;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<MagicMenuFloatProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuFloatProps>>>, {}, {}>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
14
|
export default _default;
|
|
13
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
16
|
new (): {
|
|
@@ -2,16 +2,18 @@ interface MagicMenuItemProps {
|
|
|
2
2
|
id?: string;
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare
|
|
6
|
-
click: (event: MouseEvent) => void;
|
|
7
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuItemProps>>> & {
|
|
8
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
9
|
-
}, {}, {}>, {
|
|
5
|
+
declare function __VLS_template(): {
|
|
10
6
|
default?(_: {
|
|
11
7
|
isActive: boolean;
|
|
12
8
|
isDisabled: boolean | undefined;
|
|
13
9
|
}): any;
|
|
14
|
-
}
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<MagicMenuItemProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
click: (event: MouseEvent) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuItemProps>>> & {
|
|
14
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
15
17
|
export default _default;
|
|
16
18
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
19
|
new (): {
|
|
@@ -4,9 +4,11 @@ interface MagicMenuProviderProps {
|
|
|
4
4
|
id: MaybeRef<string>;
|
|
5
5
|
options?: MagicMenuOptions;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
8
|
default?(_: {}): any;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<MagicMenuProviderProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuProviderProps>>>, {}, {}>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
10
12
|
export default _default;
|
|
11
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
14
|
new (): {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
class="magic-menu-remote"
|
|
4
4
|
:class="{ '-active': channel?.active, '-disabled': disabled }"
|
|
5
5
|
:data-id="`${channelId}-remote`"
|
|
6
|
-
@
|
|
6
|
+
@pointerdown="onClick"
|
|
7
7
|
@mouseenter="onMouseenter"
|
|
8
8
|
>
|
|
9
9
|
<slot :is-active="view?.active" :is-disabled="disabled" />
|
|
@@ -49,6 +49,7 @@ if (!props.channelId) {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
const mappedChannelId = computed(() => `magic-menu-channel-${props.channelId}`)
|
|
52
|
+
|
|
52
53
|
const mappedTrigger = computed<Interaction[]>(
|
|
53
54
|
() => props.trigger ?? ['mouseenter']
|
|
54
55
|
)
|
|
@@ -60,7 +61,6 @@ const { initializeChannel, deleteChannel } = useMenuChannel({
|
|
|
60
61
|
instanceId,
|
|
61
62
|
viewId,
|
|
62
63
|
})
|
|
63
|
-
let channel = initializeChannel({ id: mappedChannelId.value })
|
|
64
64
|
|
|
65
65
|
const { onClick, onMouseenter } = useMenuRemote({
|
|
66
66
|
viewId,
|
|
@@ -69,16 +69,20 @@ const { onClick, onMouseenter } = useMenuRemote({
|
|
|
69
69
|
mappedTrigger,
|
|
70
70
|
})
|
|
71
71
|
|
|
72
|
+
let channel = initializeChannel({ id: mappedChannelId.value })
|
|
73
|
+
|
|
72
74
|
watch(
|
|
73
75
|
() => view?.active,
|
|
74
|
-
() => {
|
|
75
|
-
// Reset if parent view
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
(value) => {
|
|
77
|
+
// Reset if parent view is inactive
|
|
78
|
+
if (!value) {
|
|
79
|
+
deleteChannel(mappedChannelId.value)
|
|
80
|
+
channel = initializeChannel({ id: mappedChannelId.value })
|
|
81
|
+
}
|
|
78
82
|
}
|
|
79
83
|
)
|
|
80
84
|
</script>
|
|
81
85
|
|
|
82
86
|
<style>
|
|
83
|
-
.magic-menu-remote{cursor:var(--magic-menu-remote-cursor,pointer)}
|
|
87
|
+
.magic-menu-remote{cursor:var(--magic-menu-remote-cursor,pointer)}.magic-menu-remote.-disabled{pointer-events:none}
|
|
84
88
|
</style>
|
|
@@ -6,12 +6,14 @@ interface MagicMenuRemoteProps {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
trigger?: Interaction[];
|
|
8
8
|
}
|
|
9
|
-
declare
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
10
|
default?(_: {
|
|
11
11
|
isActive: boolean | undefined;
|
|
12
12
|
isDisabled: boolean | undefined;
|
|
13
13
|
}): any;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<MagicMenuRemoteProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicMenuRemoteProps>>>, {}, {}>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
15
17
|
export default _default;
|
|
16
18
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
19
|
new (): {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:class="{ '-active': view?.active, '-disabled': mappedDisabled }"
|
|
6
6
|
:data-id="`${viewId}-trigger`"
|
|
7
7
|
:tabindex="mappedTabindex"
|
|
8
|
-
@
|
|
8
|
+
@pointerdown="onClick"
|
|
9
9
|
@contextmenu="onClick"
|
|
10
10
|
@mouseenter="onMouseenter"
|
|
11
11
|
>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script lang="ts" setup>
|
|
17
|
-
import { computed, inject,
|
|
17
|
+
import { computed, inject, ref, toValue, watch } from 'vue'
|
|
18
18
|
import { useMenuState } from '../composables/private/useMenuState'
|
|
19
19
|
import { useMenuView } from '../composables/private/useMenuView'
|
|
20
20
|
import { useMenuItem } from '../composables/private/useMenuItem'
|
|
@@ -58,7 +58,7 @@ const state = initializeState()
|
|
|
58
58
|
const { getItem } = useMenuItem({ instanceId, viewId })
|
|
59
59
|
const item = getItem(itemId ?? '')
|
|
60
60
|
|
|
61
|
-
const mappedDisabled = computed(() => props.disabled ?? item?.disabled)
|
|
61
|
+
const mappedDisabled = computed(() => props.disabled ?? item?.disabled ?? false)
|
|
62
62
|
|
|
63
63
|
const mappedTrigger = computed<Interaction[]>(() => {
|
|
64
64
|
if (props.trigger?.length) {
|
|
@@ -112,5 +112,5 @@ onKeyStroke('Enter', onEnter)
|
|
|
112
112
|
</script>
|
|
113
113
|
|
|
114
114
|
<style>
|
|
115
|
-
.magic-menu-trigger{cursor:var(--magic-menu-trigger-cursor,pointer)}
|
|
115
|
+
.magic-menu-trigger{cursor:var(--magic-menu-trigger-cursor,pointer)}.magic-menu-trigger.-disabled{pointer-events:none}
|
|
116
116
|
</style>
|