@maas/vue-equipment 0.40.0 → 1.0.0-beta.10
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 +6 -16
- package/dist/composables/index.d.ts +7 -18
- package/dist/composables/index.js +79 -132
- package/dist/composables/index.js.map +1 -1
- package/dist/nuxt/module.json +1 -1
- package/dist/nuxt/module.mjs +35 -42
- package/dist/plugins/.turbo/turbo-build.log +0 -0
- package/dist/plugins/.turbo/turbo-lint.log +5 -0
- package/dist/plugins/.turbo/turbo-release.log +7 -0
- package/dist/plugins/MagicAccordion/demo/data/footer.json +117 -0
- package/dist/plugins/MagicAccordion/index.d.ts +2 -0
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue +103 -70
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +39 -13
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue +36 -30
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +12 -12
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue +73 -71
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +24 -55
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue +52 -50
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +18 -14
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionCallback.d.ts +6 -6
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionCallback.mjs +6 -6
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionState.mjs +10 -10
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionView.mjs +11 -10
- package/dist/plugins/MagicAccordion/src/symbols/index.d.ts +2 -2
- package/dist/plugins/MagicAccordion/src/types/index.d.ts +4 -0
- package/dist/plugins/MagicAccordion/src/utils/defaultOptions.d.ts +2 -2
- package/dist/plugins/MagicAccordion/src/utils/defaultOptions.mjs +7 -2
- package/dist/plugins/MagicCommand/demo/data/about.json +3 -0
- package/dist/plugins/MagicCommand/demo/data/search.json +594 -0
- package/dist/plugins/MagicCommand/index.d.ts +2 -0
- package/dist/plugins/MagicCommand/index.mjs +9 -11
- package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue +199 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue.d.ts +32 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue +60 -53
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +14 -14
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +105 -80
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +32 -22
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue +55 -53
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +12 -12
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue +92 -62
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +15 -16
- package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue +63 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue.d.ts +2 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue +111 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +40 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +56 -73
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +16 -16
- package/dist/plugins/MagicCommand/src/composables/private/useCommandCallback.d.ts +14 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandCallback.mjs +32 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.d.ts +15 -6
- package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.mjs +77 -44
- package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.d.ts +24 -6
- package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.mjs +45 -28
- package/dist/plugins/MagicCommand/src/composables/private/useCommandState.d.ts +7 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandState.mjs +49 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.d.ts +18 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.mjs +76 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandView.d.ts +21 -5
- package/dist/plugins/MagicCommand/src/composables/private/useCommandView.mjs +193 -18
- package/dist/plugins/MagicCommand/src/composables/useMagicCommand.d.ts +14 -5
- package/dist/plugins/MagicCommand/src/composables/useMagicCommand.mjs +43 -13
- package/dist/plugins/MagicCommand/src/symbols/index.d.ts +9 -2
- package/dist/plugins/MagicCommand/src/symbols/index.mjs +18 -1
- package/dist/plugins/MagicCommand/src/types/index.d.ts +73 -13
- package/dist/plugins/MagicCommand/src/utils/defaultOptions.d.ts +3 -5
- package/dist/plugins/MagicCommand/src/utils/defaultOptions.mjs +8 -3
- package/dist/plugins/MagicCookie/index.d.ts +5 -3
- package/dist/plugins/MagicCookie/index.mjs +7 -3
- package/dist/plugins/MagicCookie/nuxt.mjs +5 -9
- package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue +56 -0
- package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +24 -0
- package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue +43 -0
- package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue.d.ts +20 -0
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue +96 -0
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +30 -0
- package/dist/plugins/MagicCookie/src/composables/private/useCookieCallback.d.ts +9 -0
- package/dist/plugins/MagicCookie/src/composables/private/useCookieCallback.mjs +31 -0
- package/dist/plugins/MagicCookie/src/composables/private/useCookieItem.d.ts +16 -0
- package/dist/plugins/MagicCookie/src/composables/private/useCookieItem.mjs +87 -0
- package/dist/plugins/MagicCookie/src/composables/private/useCookieState.d.ts +7 -0
- package/dist/plugins/MagicCookie/src/composables/private/useCookieState.mjs +43 -0
- package/dist/plugins/MagicCookie/src/composables/useMagicCookie.d.ts +15 -15
- package/dist/plugins/MagicCookie/src/composables/useMagicCookie.mjs +59 -60
- package/dist/plugins/MagicCookie/src/symbols/index.d.ts +5 -0
- package/dist/plugins/MagicCookie/src/symbols/index.mjs +4 -0
- package/dist/plugins/MagicCookie/src/types/index.d.ts +31 -13
- package/dist/plugins/MagicCookie/src/utils/defaultOptions.d.ts +4 -0
- package/dist/plugins/MagicCookie/src/utils/defaultOptions.mjs +10 -0
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +136 -97
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +95 -18
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.d.ts +8 -8
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +12 -6
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableScrollLock.mjs +34 -14
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +9 -8
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.mjs +46 -8
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.d.ts +2 -1
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.mjs +10 -10
- package/dist/plugins/MagicDraggable/src/types/index.d.ts +11 -6
- package/dist/plugins/MagicDraggable/src/utils/defaultOptions.d.ts +3 -8
- package/dist/plugins/MagicDraggable/src/utils/defaultOptions.mjs +6 -6
- package/dist/plugins/MagicDrawer/nuxt.mjs +1 -1
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +501 -337
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +166 -19
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerCallback.d.ts +6 -6
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerCallback.mjs +6 -6
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDOM.mjs +34 -14
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.d.ts +9 -11
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +29 -19
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.d.ts +3 -4
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.mjs +28 -10
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.d.ts +4 -4
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.mjs +4 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.d.ts +8 -9
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.mjs +45 -26
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.mjs +8 -8
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.d.ts +3 -3
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.mjs +23 -19
- package/dist/plugins/MagicDrawer/src/composables/useMagicDrawer.mjs +4 -3
- package/dist/plugins/MagicDrawer/src/types/index.d.ts +10 -3
- package/dist/plugins/MagicDrawer/src/utils/defaultOptions.d.ts +3 -11
- package/dist/plugins/MagicDrawer/src/utils/defaultOptions.mjs +1 -3
- package/dist/plugins/MagicEmitter/src/composables/useMagicEmitter.d.ts +190 -46
- package/dist/plugins/MagicEmitter/src/types/index.d.ts +1 -1
- package/dist/plugins/MagicMarquee/index.d.ts +4 -2
- package/dist/plugins/MagicMarquee/index.mjs +2 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +121 -50
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +18 -25
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.d.ts +4 -8
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.mjs +57 -43
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeState.d.ts +7 -0
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeState.mjs +42 -0
- package/dist/plugins/MagicMarquee/src/composables/useMagicMarquee.d.ts +11 -0
- package/dist/plugins/MagicMarquee/src/composables/useMagicMarquee.mjs +45 -0
- package/dist/plugins/MagicMarquee/src/types/index.d.ts +9 -0
- package/dist/plugins/MagicMarquee/src/types/index.mjs +0 -0
- package/dist/plugins/MagicMarquee/src/utils/defaultOptions.d.ts +4 -0
- package/dist/plugins/MagicMarquee/src/utils/defaultOptions.mjs +5 -0
- package/dist/plugins/MagicMenu/index.d.ts +2 -0
- package/dist/plugins/MagicMenu/nuxt.mjs +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue +78 -69
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +17 -11
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +245 -216
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +42 -14
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue +234 -212
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +42 -17
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +115 -124
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +28 -16
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +105 -96
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +14 -15
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue +88 -87
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +19 -14
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +121 -112
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +27 -51
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue +67 -70
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +15 -11
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.d.ts +6 -6
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.mjs +9 -9
- package/dist/plugins/MagicMenu/src/composables/private/useMenuChannel.mjs +44 -25
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.d.ts +3 -3
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.mjs +16 -10
- package/dist/plugins/MagicMenu/src/composables/private/useMenuDOM.mjs +35 -15
- package/dist/plugins/MagicMenu/src/composables/private/useMenuItem.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuItem.mjs +20 -14
- package/dist/plugins/MagicMenu/src/composables/private/useMenuKeyListener.mjs +20 -13
- package/dist/plugins/MagicMenu/src/composables/private/useMenuState.mjs +10 -10
- package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.mjs +6 -3
- package/dist/plugins/MagicMenu/src/composables/private/useMenuView.d.ts +3 -3
- package/dist/plugins/MagicMenu/src/composables/private/useMenuView.mjs +111 -75
- package/dist/plugins/MagicMenu/src/symbols/index.d.ts +4 -4
- package/dist/plugins/MagicMenu/src/types/index.d.ts +1 -2
- package/dist/plugins/MagicMenu/src/utils/modeDelayDefaults.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/utils/modeDelayDefaults.mjs +2 -2
- package/dist/plugins/MagicModal/src/components/MagicModal.vue +266 -166
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +45 -17
- package/dist/plugins/MagicModal/src/composables/private/useModalCallback.d.ts +6 -6
- package/dist/plugins/MagicModal/src/composables/private/useModalCallback.mjs +6 -6
- package/dist/plugins/MagicModal/src/composables/private/useModalDOM.mjs +34 -14
- package/dist/plugins/MagicModal/src/composables/private/useModalStore.mjs +1 -1
- package/dist/plugins/MagicModal/src/types/index.d.ts +2 -2
- package/dist/plugins/MagicModal/src/utils/defaultOptions.mjs +2 -2
- package/dist/plugins/MagicNoise/index.d.ts +3 -1
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue +120 -63
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +2 -4
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.d.ts +3 -3
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.mjs +4 -4
- package/dist/plugins/MagicPie/index.d.ts +7 -0
- package/dist/plugins/MagicPie/index.mjs +8 -0
- package/dist/plugins/MagicPie/nuxt.mjs +23 -0
- package/dist/plugins/MagicPie/src/components/MagicPie.vue +202 -0
- package/dist/plugins/MagicPie/src/components/MagicPie.vue.d.ts +7 -0
- package/dist/plugins/MagicPie/src/composables/private/usePieState.d.ts +6 -0
- package/dist/plugins/MagicPie/src/composables/private/usePieState.mjs +33 -0
- package/dist/plugins/MagicPie/src/composables/useMagicPie.d.ts +13 -0
- package/dist/plugins/MagicPie/src/composables/useMagicPie.mjs +43 -0
- package/dist/plugins/MagicPie/src/types/index.d.ts +9 -0
- package/dist/plugins/MagicPie/src/types/index.mjs +0 -0
- package/dist/plugins/MagicPlayer/index.d.ts +4 -9
- package/dist/plugins/MagicPlayer/index.mjs +11 -17
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue +84 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue.d.ts +2 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +128 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +34 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue +45 -41
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +2 -5
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue +127 -114
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +4 -5
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue +111 -58
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +30 -18
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue +42 -23
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +14 -15
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue +82 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue.d.ts +34 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue +111 -65
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue.d.ts +1 -4
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue +93 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue.d.ts +2 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +221 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue.d.ts +73 -0
- 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 +23 -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/usePlayerAudioApi.mjs +8 -9
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.d.ts +10 -10
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.mjs +33 -31
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.d.ts +13 -13
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.mjs +31 -24
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.d.ts +5 -5
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.mjs +7 -7
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.d.ts +6 -6
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.mjs +10 -12
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.d.ts +22 -26
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.mjs +5 -5
- package/dist/plugins/MagicPlayer/src/css/magic-player-audio-controls.css +95 -0
- package/dist/plugins/MagicPlayer/src/css/magic-player-display-time.css +10 -0
- package/dist/plugins/MagicPlayer/src/css/magic-player-timeline.css +89 -0
- package/dist/plugins/MagicPlayer/src/css/magic-player-video-controls.css +115 -0
- package/dist/plugins/MagicPlayer/src/symbols/index.d.ts +5 -0
- package/dist/plugins/MagicPlayer/src/symbols/index.mjs +3 -0
- package/dist/plugins/MagicPlayer/src/types/index.d.ts +11 -1
- package/dist/plugins/MagicPlayer/src/utils/defaultOptions.d.ts +3 -0
- package/dist/plugins/MagicPlayer/src/utils/defaultOptions.mjs +12 -0
- package/dist/plugins/MagicScroll/index.d.ts +4 -10
- package/dist/plugins/MagicScroll/index.mjs +2 -11
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue +76 -31
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +13 -17
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue +78 -64
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +13 -20
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue +39 -39
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +48 -34
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +84 -73
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +16 -21
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.d.ts +13 -0
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.mjs +130 -0
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.d.ts +3 -3
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.mjs +19 -7
- package/dist/plugins/MagicScroll/src/symbols/index.d.ts +2 -2
- package/dist/plugins/MagicScroll/src/symbols/index.mjs +2 -2
- package/dist/plugins/MagicScroll/src/types/index.d.ts +12 -22
- package/dist/plugins/MagicToast/index.d.ts +3 -2
- package/dist/plugins/MagicToast/index.mjs +3 -3
- package/dist/plugins/MagicToast/nuxt.mjs +2 -2
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +290 -0
- package/dist/plugins/MagicToast/src/components/{MagicToast.vue.d.ts → MagicToastProvider.vue.d.ts} +4 -4
- package/dist/plugins/MagicToast/src/components/MagicToastView.vue +152 -0
- package/dist/plugins/MagicToast/src/components/MagicToastView.vue.d.ts +34 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastCallback.d.ts +8 -31
- package/dist/plugins/MagicToast/src/composables/private/useToastCallback.mjs +33 -28
- package/dist/plugins/MagicToast/src/composables/private/useToastDrag.d.ts +12 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastDrag.mjs +312 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastListener.d.ts +6 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastListener.mjs +25 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastScrollLock.d.ts +6 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastScrollLock.mjs +59 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastState.d.ts +7 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastState.mjs +45 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastView.d.ts +12 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastView.mjs +51 -0
- package/dist/plugins/MagicToast/src/composables/useMagicToast.d.ts +14 -8
- package/dist/plugins/MagicToast/src/composables/useMagicToast.mjs +34 -23
- package/dist/plugins/MagicToast/src/types/index.d.ts +58 -17
- package/dist/plugins/MagicToast/src/utils/defaultOptions.d.ts +2 -3
- package/dist/plugins/MagicToast/src/utils/defaultOptions.mjs +21 -4
- package/dist/plugins/MagicToast/symbols/index.d.ts +3 -0
- package/dist/plugins/MagicToast/symbols/index.mjs +2 -0
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.mjs +1 -1
- package/dist/utils/css/animations/auto-size-out.css +12 -0
- package/dist/utils/css/animations/squash-y.css +5 -0
- package/dist/utils/css/animations.css +2 -1
- package/dist/utils/index.d.ts +10 -6
- package/dist/utils/index.js +41 -56
- package/dist/utils/index.js.map +1 -1
- package/package.json +62 -58
- package/dist/composables/index.d.mts +0 -108
- package/dist/composables/index.mjs +0 -383
- package/dist/composables/index.mjs.map +0 -1
- package/dist/plugins/MagicAutoSize/index.d.ts +0 -4
- package/dist/plugins/MagicAutoSize/index.mjs +0 -7
- package/dist/plugins/MagicAutoSize/nuxt.mjs +0 -14
- package/dist/plugins/MagicAutoSize/src/components/MagicAutoSize.vue +0 -152
- package/dist/plugins/MagicAutoSize/src/components/MagicAutoSize.vue.d.ts +0 -29
- package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue +0 -91
- package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue.d.ts +0 -19
- package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue +0 -5
- package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue.d.ts +0 -17
- package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue +0 -5
- package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue.d.ts +0 -17
- package/dist/plugins/MagicCommand/src/components/MagicCommandHead.vue +0 -5
- package/dist/plugins/MagicCommand/src/components/MagicCommandHead.vue.d.ts +0 -17
- package/dist/plugins/MagicCommand/src/composables/private/useCommandStore.d.ts +0 -35
- package/dist/plugins/MagicCommand/src/composables/private/useCommandStore.mjs +0 -67
- package/dist/plugins/MagicCookie/src/components/MagicCookie.vue +0 -117
- package/dist/plugins/MagicCookie/src/components/MagicCookie.vue.d.ts +0 -27
- package/dist/plugins/MagicCookie/src/composables/private/useCookieApi.d.ts +0 -29
- package/dist/plugins/MagicCookie/src/composables/private/useCookieApi.mjs +0 -22
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayer.vue +0 -89
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayer.vue.d.ts +0 -28
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayerControls.vue +0 -95
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayerControls.vue.d.ts +0 -24
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue +0 -125
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue.d.ts +0 -35
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue +0 -152
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue.d.ts +0 -38
- package/dist/plugins/MagicScroll/src/components/MagicScrollTransform.vue +0 -42
- package/dist/plugins/MagicScroll/src/components/MagicScrollTransform.vue.d.ts +0 -36
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetect.d.ts +0 -56
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetect.mjs +0 -140
- package/dist/plugins/MagicToast/src/components/MagicToast.vue +0 -141
- package/dist/plugins/MagicToast/src/components/MagicToastComponent.vue +0 -64
- package/dist/plugins/MagicToast/src/components/MagicToastComponent.vue.d.ts +0 -30
- package/dist/plugins/MagicToast/src/composables/private/useToastApi.d.ts +0 -5
- package/dist/plugins/MagicToast/src/composables/private/useToastApi.mjs +0 -22
- package/dist/plugins/MagicToast/src/composables/private/useToastInternalApi.d.ts +0 -4
- package/dist/plugins/MagicToast/src/composables/private/useToastInternalApi.mjs +0 -28
- package/dist/plugins/MagicToast/src/composables/private/useToastStore.d.ts +0 -27
- package/dist/plugins/MagicToast/src/composables/private/useToastStore.mjs +0 -41
- package/dist/utils/index.d.mts +0 -80
- package/dist/utils/index.mjs +0 -200
- package/dist/utils/index.mjs.map +0 -1
- /package/dist/plugins/{MagicAutoSize → MagicPie}/nuxt.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare function useMagicEmitter(): {
|
|
2
2
|
on: {
|
|
3
|
-
<Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents |
|
|
3
|
+
<Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: Key, handler: import("mitt").Handler<({
|
|
4
4
|
beforeEnter: string | {
|
|
5
5
|
id: string;
|
|
6
6
|
viewId: string;
|
|
@@ -44,9 +44,33 @@ export declare function useMagicEmitter(): {
|
|
|
44
44
|
viewId: string;
|
|
45
45
|
};
|
|
46
46
|
} & Omit<{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
beforeEnter: string | {
|
|
48
|
+
id: string;
|
|
49
|
+
viewId: string;
|
|
50
|
+
};
|
|
51
|
+
enter: string | {
|
|
52
|
+
id: string;
|
|
53
|
+
viewId: string;
|
|
54
|
+
};
|
|
55
|
+
afterEnter: string | {
|
|
56
|
+
id: string;
|
|
57
|
+
viewId: string;
|
|
58
|
+
};
|
|
59
|
+
beforeLeave: string | {
|
|
60
|
+
id: string;
|
|
61
|
+
viewId: string;
|
|
62
|
+
};
|
|
63
|
+
leave: string | {
|
|
64
|
+
id: string;
|
|
65
|
+
viewId: string;
|
|
66
|
+
};
|
|
67
|
+
afterLeave: string | {
|
|
68
|
+
id: string;
|
|
69
|
+
viewId: string;
|
|
70
|
+
};
|
|
71
|
+
acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
72
|
+
rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
73
|
+
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
50
74
|
} & Omit<{
|
|
51
75
|
beforeSnap: {
|
|
52
76
|
id: string;
|
|
@@ -213,10 +237,10 @@ export declare function useMagicEmitter(): {
|
|
|
213
237
|
};
|
|
214
238
|
} & Omit<{
|
|
215
239
|
collision: {
|
|
240
|
+
id: string;
|
|
216
241
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
data?: Record<string, unknown>;
|
|
242
|
+
childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
243
|
+
parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
220
244
|
};
|
|
221
245
|
} & Omit<{
|
|
222
246
|
beforeEnter: string;
|
|
@@ -225,7 +249,7 @@ export declare function useMagicEmitter(): {
|
|
|
225
249
|
beforeLeave: string;
|
|
226
250
|
leave: string;
|
|
227
251
|
afterLeave: string;
|
|
228
|
-
} & Omit<
|
|
252
|
+
} & Omit<object, 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>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key]>): void;
|
|
229
253
|
(type: "*", handler: import("mitt").WildcardHandler<{
|
|
230
254
|
beforeEnter: string | {
|
|
231
255
|
id: string;
|
|
@@ -270,9 +294,33 @@ export declare function useMagicEmitter(): {
|
|
|
270
294
|
viewId: string;
|
|
271
295
|
};
|
|
272
296
|
} & Omit<{
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
297
|
+
beforeEnter: string | {
|
|
298
|
+
id: string;
|
|
299
|
+
viewId: string;
|
|
300
|
+
};
|
|
301
|
+
enter: string | {
|
|
302
|
+
id: string;
|
|
303
|
+
viewId: string;
|
|
304
|
+
};
|
|
305
|
+
afterEnter: string | {
|
|
306
|
+
id: string;
|
|
307
|
+
viewId: string;
|
|
308
|
+
};
|
|
309
|
+
beforeLeave: string | {
|
|
310
|
+
id: string;
|
|
311
|
+
viewId: string;
|
|
312
|
+
};
|
|
313
|
+
leave: string | {
|
|
314
|
+
id: string;
|
|
315
|
+
viewId: string;
|
|
316
|
+
};
|
|
317
|
+
afterLeave: string | {
|
|
318
|
+
id: string;
|
|
319
|
+
viewId: string;
|
|
320
|
+
};
|
|
321
|
+
acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
322
|
+
rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
323
|
+
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
276
324
|
} & Omit<{
|
|
277
325
|
beforeSnap: {
|
|
278
326
|
id: string;
|
|
@@ -439,10 +487,10 @@ export declare function useMagicEmitter(): {
|
|
|
439
487
|
};
|
|
440
488
|
} & Omit<{
|
|
441
489
|
collision: {
|
|
490
|
+
id: string;
|
|
442
491
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
data?: Record<string, unknown>;
|
|
492
|
+
childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
493
|
+
parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
446
494
|
};
|
|
447
495
|
} & Omit<{
|
|
448
496
|
beforeEnter: string;
|
|
@@ -451,10 +499,10 @@ export declare function useMagicEmitter(): {
|
|
|
451
499
|
beforeLeave: string;
|
|
452
500
|
leave: string;
|
|
453
501
|
afterLeave: string;
|
|
454
|
-
} & Omit<
|
|
502
|
+
} & Omit<object, 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>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>>): void;
|
|
455
503
|
};
|
|
456
504
|
off: {
|
|
457
|
-
<Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents |
|
|
505
|
+
<Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: Key, handler?: import("mitt").Handler<({
|
|
458
506
|
beforeEnter: string | {
|
|
459
507
|
id: string;
|
|
460
508
|
viewId: string;
|
|
@@ -498,9 +546,33 @@ export declare function useMagicEmitter(): {
|
|
|
498
546
|
viewId: string;
|
|
499
547
|
};
|
|
500
548
|
} & Omit<{
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
549
|
+
beforeEnter: string | {
|
|
550
|
+
id: string;
|
|
551
|
+
viewId: string;
|
|
552
|
+
};
|
|
553
|
+
enter: string | {
|
|
554
|
+
id: string;
|
|
555
|
+
viewId: string;
|
|
556
|
+
};
|
|
557
|
+
afterEnter: string | {
|
|
558
|
+
id: string;
|
|
559
|
+
viewId: string;
|
|
560
|
+
};
|
|
561
|
+
beforeLeave: string | {
|
|
562
|
+
id: string;
|
|
563
|
+
viewId: string;
|
|
564
|
+
};
|
|
565
|
+
leave: string | {
|
|
566
|
+
id: string;
|
|
567
|
+
viewId: string;
|
|
568
|
+
};
|
|
569
|
+
afterLeave: string | {
|
|
570
|
+
id: string;
|
|
571
|
+
viewId: string;
|
|
572
|
+
};
|
|
573
|
+
acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
574
|
+
rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
575
|
+
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
504
576
|
} & Omit<{
|
|
505
577
|
beforeSnap: {
|
|
506
578
|
id: string;
|
|
@@ -667,10 +739,10 @@ export declare function useMagicEmitter(): {
|
|
|
667
739
|
};
|
|
668
740
|
} & Omit<{
|
|
669
741
|
collision: {
|
|
742
|
+
id: string;
|
|
670
743
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
data?: Record<string, unknown>;
|
|
744
|
+
childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
745
|
+
parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
674
746
|
};
|
|
675
747
|
} & Omit<{
|
|
676
748
|
beforeEnter: string;
|
|
@@ -679,7 +751,7 @@ export declare function useMagicEmitter(): {
|
|
|
679
751
|
beforeLeave: string;
|
|
680
752
|
leave: string;
|
|
681
753
|
afterLeave: string;
|
|
682
|
-
} & Omit<
|
|
754
|
+
} & Omit<object, 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>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key]> | undefined): void;
|
|
683
755
|
(type: "*", handler: import("mitt").WildcardHandler<{
|
|
684
756
|
beforeEnter: string | {
|
|
685
757
|
id: string;
|
|
@@ -724,9 +796,33 @@ export declare function useMagicEmitter(): {
|
|
|
724
796
|
viewId: string;
|
|
725
797
|
};
|
|
726
798
|
} & Omit<{
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
799
|
+
beforeEnter: string | {
|
|
800
|
+
id: string;
|
|
801
|
+
viewId: string;
|
|
802
|
+
};
|
|
803
|
+
enter: string | {
|
|
804
|
+
id: string;
|
|
805
|
+
viewId: string;
|
|
806
|
+
};
|
|
807
|
+
afterEnter: string | {
|
|
808
|
+
id: string;
|
|
809
|
+
viewId: string;
|
|
810
|
+
};
|
|
811
|
+
beforeLeave: string | {
|
|
812
|
+
id: string;
|
|
813
|
+
viewId: string;
|
|
814
|
+
};
|
|
815
|
+
leave: string | {
|
|
816
|
+
id: string;
|
|
817
|
+
viewId: string;
|
|
818
|
+
};
|
|
819
|
+
afterLeave: string | {
|
|
820
|
+
id: string;
|
|
821
|
+
viewId: string;
|
|
822
|
+
};
|
|
823
|
+
acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
824
|
+
rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
825
|
+
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
730
826
|
} & Omit<{
|
|
731
827
|
beforeSnap: {
|
|
732
828
|
id: string;
|
|
@@ -893,10 +989,10 @@ export declare function useMagicEmitter(): {
|
|
|
893
989
|
};
|
|
894
990
|
} & Omit<{
|
|
895
991
|
collision: {
|
|
992
|
+
id: string;
|
|
896
993
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
data?: Record<string, unknown>;
|
|
994
|
+
childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
995
|
+
parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
900
996
|
};
|
|
901
997
|
} & Omit<{
|
|
902
998
|
beforeEnter: string;
|
|
@@ -905,10 +1001,10 @@ export declare function useMagicEmitter(): {
|
|
|
905
1001
|
beforeLeave: string;
|
|
906
1002
|
leave: string;
|
|
907
1003
|
afterLeave: string;
|
|
908
|
-
} & Omit<
|
|
1004
|
+
} & Omit<object, 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>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>>): void;
|
|
909
1005
|
};
|
|
910
1006
|
emit: {
|
|
911
|
-
<Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents |
|
|
1007
|
+
<Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: Key, event: ({
|
|
912
1008
|
beforeEnter: string | {
|
|
913
1009
|
id: string;
|
|
914
1010
|
viewId: string;
|
|
@@ -952,9 +1048,33 @@ export declare function useMagicEmitter(): {
|
|
|
952
1048
|
viewId: string;
|
|
953
1049
|
};
|
|
954
1050
|
} & Omit<{
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
1051
|
+
beforeEnter: string | {
|
|
1052
|
+
id: string;
|
|
1053
|
+
viewId: string;
|
|
1054
|
+
};
|
|
1055
|
+
enter: string | {
|
|
1056
|
+
id: string;
|
|
1057
|
+
viewId: string;
|
|
1058
|
+
};
|
|
1059
|
+
afterEnter: string | {
|
|
1060
|
+
id: string;
|
|
1061
|
+
viewId: string;
|
|
1062
|
+
};
|
|
1063
|
+
beforeLeave: string | {
|
|
1064
|
+
id: string;
|
|
1065
|
+
viewId: string;
|
|
1066
|
+
};
|
|
1067
|
+
leave: string | {
|
|
1068
|
+
id: string;
|
|
1069
|
+
viewId: string;
|
|
1070
|
+
};
|
|
1071
|
+
afterLeave: string | {
|
|
1072
|
+
id: string;
|
|
1073
|
+
viewId: string;
|
|
1074
|
+
};
|
|
1075
|
+
acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
1076
|
+
rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
1077
|
+
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
958
1078
|
} & Omit<{
|
|
959
1079
|
beforeSnap: {
|
|
960
1080
|
id: string;
|
|
@@ -1121,10 +1241,10 @@ export declare function useMagicEmitter(): {
|
|
|
1121
1241
|
};
|
|
1122
1242
|
} & Omit<{
|
|
1123
1243
|
collision: {
|
|
1244
|
+
id: string;
|
|
1124
1245
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
data?: Record<string, unknown>;
|
|
1246
|
+
childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
1247
|
+
parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
1128
1248
|
};
|
|
1129
1249
|
} & Omit<{
|
|
1130
1250
|
beforeEnter: string;
|
|
@@ -1133,8 +1253,8 @@ export declare function useMagicEmitter(): {
|
|
|
1133
1253
|
beforeLeave: string;
|
|
1134
1254
|
leave: string;
|
|
1135
1255
|
afterLeave: string;
|
|
1136
|
-
} & Omit<
|
|
1137
|
-
<Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents |
|
|
1256
|
+
} & Omit<object, 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>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key]): void;
|
|
1257
|
+
<Key extends "progress" | "collision" | keyof import("../../../MagicDraggable/src/types").DraggableEvents | "acceptAll" | "rejectAll" | "acceptSelected" | keyof import("../../../MagicAccordion/src/types").AccordionEvents>(type: undefined extends ({
|
|
1138
1258
|
beforeEnter: string | {
|
|
1139
1259
|
id: string;
|
|
1140
1260
|
viewId: string;
|
|
@@ -1178,9 +1298,33 @@ export declare function useMagicEmitter(): {
|
|
|
1178
1298
|
viewId: string;
|
|
1179
1299
|
};
|
|
1180
1300
|
} & Omit<{
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1301
|
+
beforeEnter: string | {
|
|
1302
|
+
id: string;
|
|
1303
|
+
viewId: string;
|
|
1304
|
+
};
|
|
1305
|
+
enter: string | {
|
|
1306
|
+
id: string;
|
|
1307
|
+
viewId: string;
|
|
1308
|
+
};
|
|
1309
|
+
afterEnter: string | {
|
|
1310
|
+
id: string;
|
|
1311
|
+
viewId: string;
|
|
1312
|
+
};
|
|
1313
|
+
beforeLeave: string | {
|
|
1314
|
+
id: string;
|
|
1315
|
+
viewId: string;
|
|
1316
|
+
};
|
|
1317
|
+
leave: string | {
|
|
1318
|
+
id: string;
|
|
1319
|
+
viewId: string;
|
|
1320
|
+
};
|
|
1321
|
+
afterLeave: string | {
|
|
1322
|
+
id: string;
|
|
1323
|
+
viewId: string;
|
|
1324
|
+
};
|
|
1325
|
+
acceptAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
1326
|
+
rejectAll: import("../../../MagicCookie/src/types").CookieConsent;
|
|
1327
|
+
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
1184
1328
|
} & Omit<{
|
|
1185
1329
|
beforeSnap: {
|
|
1186
1330
|
id: string;
|
|
@@ -1347,10 +1491,10 @@ export declare function useMagicEmitter(): {
|
|
|
1347
1491
|
};
|
|
1348
1492
|
} & Omit<{
|
|
1349
1493
|
collision: {
|
|
1494
|
+
id: string;
|
|
1350
1495
|
direction: import("../../../MagicScroll/src/types").ScrollDirection;
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
data?: Record<string, unknown>;
|
|
1496
|
+
childEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
1497
|
+
parentEdge: import("../../../MagicScroll/src/types").CollisionEdge;
|
|
1354
1498
|
};
|
|
1355
1499
|
} & Omit<{
|
|
1356
1500
|
beforeEnter: string;
|
|
@@ -1359,6 +1503,6 @@ export declare function useMagicEmitter(): {
|
|
|
1359
1503
|
beforeLeave: string;
|
|
1360
1504
|
leave: string;
|
|
1361
1505
|
afterLeave: string;
|
|
1362
|
-
} & Omit<
|
|
1506
|
+
} & Omit<object, 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>, keyof import("../../../MagicAccordion/src/types").AccordionEvents>)[Key] ? Key : never): void;
|
|
1363
1507
|
};
|
|
1364
1508
|
};
|
|
@@ -9,7 +9,7 @@ import type { ToastEvents } from '../../../MagicToast/src/types/index.js';
|
|
|
9
9
|
type MergeTypes<T, U> = {
|
|
10
10
|
[K in keyof T]: K extends keyof U ? T[K] | U[K] : T[K];
|
|
11
11
|
} & Omit<U, keyof T>;
|
|
12
|
-
type Merge<T extends unknown[]> = T extends [infer First, ...infer Rest] ? MergeTypes<First, Merge<Rest>> :
|
|
12
|
+
type Merge<T extends unknown[]> = T extends [infer First, ...infer Rest] ? MergeTypes<First, Merge<Rest>> : object;
|
|
13
13
|
export type MagicEmitterEvents = Merge<[
|
|
14
14
|
AccordionEvents,
|
|
15
15
|
CookieEvents,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import { useMagicMarquee } from './src/composables/useMagicMarquee.js';
|
|
3
|
+
import type { MagicMarqueeOptions } from './src/types/index.js';
|
|
3
4
|
declare const MagicMarqueePlugin: Plugin;
|
|
4
|
-
export { MagicMarqueePlugin,
|
|
5
|
+
export { MagicMarqueePlugin, useMagicMarquee };
|
|
6
|
+
export type { MagicMarqueeOptions };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import MagicMarquee from "./src/components/MagicMarquee.vue";
|
|
2
|
+
import { useMagicMarquee } from "./src/composables/useMagicMarquee.mjs";
|
|
2
3
|
const MagicMarqueePlugin = {
|
|
3
4
|
install: (app) => {
|
|
4
5
|
app.component("MagicMarquee", MagicMarquee);
|
|
5
6
|
}
|
|
6
7
|
};
|
|
7
|
-
export { MagicMarqueePlugin,
|
|
8
|
+
export { MagicMarqueePlugin, useMagicMarquee };
|
|
@@ -1,57 +1,128 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
<script>
|
|
2
|
+
import { defineComponent as _defineComponent } from "vue";
|
|
3
|
+
import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
ref: "parent",
|
|
6
|
+
class: "magic-marquee"
|
|
7
|
+
};
|
|
8
|
+
const _hoisted_2 = { class: "magic-marquee__track" };
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
ref: "child",
|
|
11
|
+
class: "magic-marquee__content"
|
|
12
|
+
};
|
|
13
|
+
import { useTemplateRef, onMounted, onBeforeUnmount } from "vue";
|
|
14
|
+
import { useMarqueeApi } from "../composables/private/useMarqueeApi";
|
|
15
|
+
import { useMarqueeState } from "../composables/private/useMarqueeState";
|
|
16
|
+
export default /* @__PURE__ */ _defineComponent({
|
|
17
|
+
__name: "MagicMarquee",
|
|
18
|
+
props: {
|
|
19
|
+
id: { type: null, required: true },
|
|
20
|
+
options: { type: Object, required: false }
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const { deleteState, initializeState } = useMarqueeState(__props.id);
|
|
24
|
+
initializeState(__props.options);
|
|
25
|
+
const parentRef = useTemplateRef("parent");
|
|
26
|
+
const childRef = useTemplateRef("child");
|
|
27
|
+
const { duplicates, initialize } = useMarqueeApi({
|
|
28
|
+
child: childRef,
|
|
29
|
+
parent: parentRef,
|
|
30
|
+
instanceId: __props.id
|
|
31
|
+
});
|
|
32
|
+
onMounted(() => {
|
|
33
|
+
initialize();
|
|
34
|
+
});
|
|
35
|
+
onBeforeUnmount(() => {
|
|
36
|
+
deleteState();
|
|
37
|
+
});
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return _openBlock(), _createElementBlock(
|
|
40
|
+
"div",
|
|
41
|
+
_hoisted_1,
|
|
42
|
+
[
|
|
43
|
+
_createElementVNode("div", _hoisted_2, [
|
|
44
|
+
_createElementVNode(
|
|
45
|
+
"div",
|
|
46
|
+
_hoisted_3,
|
|
47
|
+
[
|
|
48
|
+
_renderSlot(_ctx.$slots, "default")
|
|
49
|
+
],
|
|
50
|
+
512
|
|
51
|
+
/* NEED_PATCH */
|
|
52
|
+
),
|
|
53
|
+
(_openBlock(true), _createElementBlock(
|
|
54
|
+
_Fragment,
|
|
55
|
+
null,
|
|
56
|
+
_renderList(_unref(duplicates), (duplicate) => {
|
|
57
|
+
return _openBlock(), _createElementBlock("div", {
|
|
58
|
+
key: duplicate,
|
|
59
|
+
class: "magic-marquee__content",
|
|
60
|
+
"aria-hidden": true
|
|
61
|
+
}, [
|
|
62
|
+
_renderSlot(_ctx.$slots, "default")
|
|
63
|
+
]);
|
|
64
|
+
}),
|
|
65
|
+
128
|
|
66
|
+
/* KEYED_FRAGMENT */
|
|
67
|
+
))
|
|
68
|
+
])
|
|
69
|
+
],
|
|
70
|
+
512
|
|
71
|
+
/* NEED_PATCH */
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
</script>
|
|
21
77
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
78
|
+
<style>
|
|
79
|
+
@keyframes mm-scroll-x {
|
|
80
|
+
0% {
|
|
81
|
+
transform: translate3d(0, 0, 0);
|
|
82
|
+
}
|
|
83
|
+
100% {
|
|
84
|
+
transform: translate3d(-100%, 0, 0);
|
|
85
|
+
}
|
|
25
86
|
}
|
|
26
87
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const { duplicates, playing, play, pause, initialize } = useMarqueeApi({
|
|
36
|
-
child: childRef,
|
|
37
|
-
parent: parentRef,
|
|
38
|
-
options: {
|
|
39
|
-
speed: computed(() => props.speed),
|
|
40
|
-
direction: computed(() => props.direction),
|
|
41
|
-
},
|
|
42
|
-
})
|
|
88
|
+
@keyframes mm-scroll-y {
|
|
89
|
+
0% {
|
|
90
|
+
transform: translate3d(0, 0, 0);
|
|
91
|
+
}
|
|
92
|
+
100% {
|
|
93
|
+
transform: translate3d(0, -100%, 0);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
43
96
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
97
|
+
.magic-marquee {
|
|
98
|
+
position: relative;
|
|
99
|
+
width: 100%;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
user-select: none;
|
|
102
|
+
}
|
|
47
103
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
104
|
+
.magic-marquee__track {
|
|
105
|
+
position: relative;
|
|
106
|
+
width: 100%;
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: var(--magic-marquee-justify-content, flex-start);
|
|
109
|
+
align-items: var(--magic-marquee-align-items, baseline);
|
|
110
|
+
}
|
|
54
111
|
|
|
55
|
-
|
|
56
|
-
|
|
112
|
+
.magic-marquee__content {
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
backface-visibility: hidden;
|
|
115
|
+
padding-right: var(--magic-marquee-gap, 1rem);
|
|
116
|
+
width: var(--magic-marquee-content-width, unset);
|
|
117
|
+
animation-name: var(--mm-animation-name, 'mm-scroll-x');
|
|
118
|
+
animation-duration: var(--mm-animation-duration);
|
|
119
|
+
animation-play-state: var(--mm-animation-play-state, running);
|
|
120
|
+
animation-direction: var(--mm-animation-direction, normal);
|
|
121
|
+
animation-timing-function: linear;
|
|
122
|
+
animation-iteration-count: infinite;
|
|
123
|
+
display: flex;
|
|
124
|
+
gap: var(--magic-marquee-gap, 1rem);
|
|
125
|
+
flex-shrink: 0;
|
|
126
|
+
flex-grow: 0;
|
|
127
|
+
}
|
|
57
128
|
</style>
|
|
@@ -1,31 +1,24 @@
|
|
|
1
|
+
import { type MaybeRef } from 'vue';
|
|
2
|
+
import type { MagicMarqueeOptions } from '../types/index.js';
|
|
1
3
|
interface MagicMarqueeProps {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
+
id: MaybeRef<string>;
|
|
5
|
+
options?: MagicMarqueeOptions;
|
|
4
6
|
}
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
declare const __VLS_component: import("vue").DefineComponent<MagicMarqueeProps, {
|
|
19
|
-
playing: import("vue").Ref<boolean, boolean>;
|
|
20
|
-
play: () => void;
|
|
21
|
-
pause: () => void;
|
|
22
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMarqueeProps> & Readonly<{}>, {
|
|
23
|
-
direction: "reverse" | "normal";
|
|
24
|
-
speed: number;
|
|
25
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
7
|
+
declare const duplicates: import("vue").ShallowRef<number, number>;
|
|
8
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
9
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
10
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_3) => any;
|
|
14
|
+
}>;
|
|
15
|
+
declare const __VLS_self: import("vue").DefineComponent<MagicMarqueeProps, {
|
|
16
|
+
duplicates: typeof duplicates;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMarqueeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicMarqueeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMarqueeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
27
20
|
export default _default;
|
|
28
|
-
type
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
22
|
new (): {
|
|
30
23
|
$slots: S;
|
|
31
24
|
};
|