@maas/vue-equipment 1.0.0-beta.4 → 1.0.0-beta.40
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 +2 -2
- package/dist/composables/useCountdown/index.d.ts +23 -0
- package/dist/composables/useCountdown/index.js +133 -0
- package/dist/composables/useCountdown/index.js.map +1 -0
- package/dist/composables/useEasings/index.d.ts +21 -0
- package/dist/composables/useEasings/index.js +40 -0
- package/dist/composables/useEasings/index.js.map +1 -0
- package/dist/composables/useMetaViewport/index.d.ts +9 -0
- package/dist/composables/useMetaViewport/index.js +29 -0
- package/dist/composables/useMetaViewport/index.js.map +1 -0
- package/dist/composables/useScrollTo/index.d.ts +49 -0
- package/dist/composables/useScrollTo/index.js +152 -0
- package/dist/composables/useScrollTo/index.js.map +1 -0
- package/dist/nuxt/module.d.mts +4 -3
- package/dist/nuxt/module.json +2 -2
- package/dist/nuxt/module.mjs +55 -35
- package/dist/nuxt/types.d.mts +3 -1
- package/dist/plugins/MagicAccordion/nuxt.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.d.vue.ts +26 -0
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue +70 -84
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +11 -24
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.d.vue.ts +20 -0
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue +18 -32
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +7 -20
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.d.vue.ts +23 -0
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue +62 -62
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +10 -59
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.d.vue.ts +20 -0
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue +40 -45
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +9 -22
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionCallback.mjs +1 -1
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.d.ts +4 -4
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.mjs +9 -8
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionView.mjs +1 -0
- package/dist/plugins/MagicAccordion/src/composables/useMagicAccordion.d.ts +1 -5
- package/dist/plugins/MagicAccordion/src/composables/useMagicAccordion.mjs +3 -3
- package/dist/plugins/MagicAccordion/src/symbols/index.d.ts +2 -2
- package/dist/plugins/MagicAccordion/src/types/index.d.ts +2 -2
- package/dist/plugins/MagicCommand/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/components/MagicCommandContent.d.vue.ts +15 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue +164 -152
- package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue.d.ts +9 -15
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.d.vue.ts +17 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue +50 -54
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +7 -20
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.d.vue.ts +27 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +89 -87
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +15 -28
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.d.vue.ts +17 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue +39 -49
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +7 -20
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.d.vue.ts +20 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue +75 -76
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +7 -57
- package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.d.vue.ts +3 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue +30 -40
- package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue.d.ts +2 -1
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.d.vue.ts +24 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue +88 -85
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +10 -61
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.d.vue.ts +19 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +44 -48
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +9 -22
- package/dist/plugins/MagicCommand/src/composables/private/useCommandCallback.mjs +1 -1
- package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.mjs +11 -13
- package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/composables/private/useCommandState.mjs +1 -1
- package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.mjs +3 -2
- package/dist/plugins/MagicCommand/src/composables/private/useCommandView.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/composables/private/useCommandView.mjs +63 -44
- package/dist/plugins/MagicCommand/src/composables/useMagicCommand.mjs +21 -4
- package/dist/plugins/MagicCommand/src/symbols/index.d.ts +4 -4
- package/dist/plugins/MagicCommand/src/types/index.d.ts +3 -3
- package/dist/plugins/MagicCookie/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCookie/src/components/MagicCookieItem.d.vue.ts +20 -0
- package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue +43 -41
- package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +9 -22
- package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.d.vue.ts +19 -0
- package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue +19 -36
- package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue.d.ts +7 -20
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.d.vue.ts +17 -0
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue +47 -73
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +11 -15
- package/dist/plugins/MagicCookie/src/composables/private/useCookieCallback.mjs +1 -1
- package/dist/plugins/MagicCookie/src/composables/private/useCookieItem.mjs +12 -4
- package/dist/plugins/MagicCookie/src/composables/useMagicCookie.d.ts +2 -1
- package/dist/plugins/MagicCookie/src/composables/useMagicCookie.mjs +10 -6
- package/dist/plugins/MagicCookie/src/symbols/index.d.ts +2 -2
- package/dist/plugins/MagicCookie/src/types/index.d.ts +3 -2
- package/dist/plugins/MagicDraggable/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.d.vue.ts +19 -0
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +92 -101
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +7 -24
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.d.ts +2 -2
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +51 -66
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableScrollLock.mjs +37 -15
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +2 -15
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.mjs +111 -56
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.mjs +6 -5
- package/dist/plugins/MagicDraggable/src/composables/useMagicDraggable.mjs +1 -1
- package/dist/plugins/MagicDraggable/src/types/index.d.ts +4 -3
- package/dist/plugins/MagicDraggable/src/utils/defaultOptions.mjs +1 -1
- package/dist/plugins/MagicDrawer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.d.vue.ts +31 -0
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +290 -324
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +19 -35
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerCallback.mjs +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDOM.mjs +37 -15
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +10 -5
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.mjs +28 -10
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.mjs +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.d.ts +3 -3
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.mjs +55 -19
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.mjs +3 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerUtils.mjs +21 -8
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.mjs +7 -2
- package/dist/plugins/MagicDrawer/src/composables/useMagicDrawer.mjs +1 -1
- package/dist/plugins/MagicDrawer/src/types/index.mjs +1 -0
- package/dist/plugins/MagicDrawer/src/utils/defaultOptions.mjs +2 -2
- package/dist/plugins/MagicEmitter/nuxt.d.ts +1 -1
- package/dist/plugins/MagicEmitter/src/composables/useMagicEmitter.d.ts +202 -100
- package/dist/plugins/MagicEmitter/src/types/index.d.ts +2 -0
- package/dist/plugins/MagicError/index.d.ts +5 -0
- package/dist/plugins/MagicError/index.mjs +3 -0
- package/dist/plugins/MagicError/nuxt.d.ts +2 -0
- package/dist/plugins/MagicError/nuxt.mjs +12 -0
- package/dist/plugins/MagicError/package.json +40 -0
- package/dist/plugins/MagicError/src/MagicError.mjs +0 -0
- package/dist/plugins/MagicError/src/class/MagicError.d.ts +6 -0
- package/dist/plugins/MagicError/src/class/MagicError.mjs +15 -0
- package/dist/plugins/MagicError/src/composables/useMagicError.d.ts +18 -0
- package/dist/plugins/MagicError/src/composables/useMagicError.mjs +31 -0
- package/dist/plugins/MagicMarquee/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.d.vue.ts +21 -0
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +38 -72
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +9 -24
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.d.ts +1 -1
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.mjs +8 -2
- package/dist/plugins/MagicMarquee/src/composables/useMagicMarquee.d.ts +1 -1
- package/dist/plugins/MagicMenu/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.d.vue.ts +17 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue +60 -60
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +7 -20
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.d.vue.ts +25 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +189 -216
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +11 -25
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.d.vue.ts +24 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue +171 -198
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +12 -26
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.d.vue.ts +26 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +103 -112
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +15 -28
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.d.vue.ts +20 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +82 -81
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +7 -57
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.d.vue.ts +25 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue +69 -86
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +10 -23
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.d.vue.ts +24 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +99 -97
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +12 -60
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.d.vue.ts +20 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue +57 -61
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +11 -24
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.mjs +2 -2
- package/dist/plugins/MagicMenu/src/composables/private/useMenuChannel.mjs +15 -5
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.d.ts +3 -3
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.mjs +4 -4
- package/dist/plugins/MagicMenu/src/composables/private/useMenuDOM.mjs +38 -16
- package/dist/plugins/MagicMenu/src/composables/private/useMenuItem.mjs +12 -2
- package/dist/plugins/MagicMenu/src/composables/private/useMenuKeyListener.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/composables/private/useMenuKeyListener.mjs +45 -18
- package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.mjs +4 -2
- package/dist/plugins/MagicMenu/src/composables/private/useMenuView.mjs +31 -10
- package/dist/plugins/MagicMenu/src/composables/useMagicMenu.mjs +1 -0
- package/dist/plugins/MagicMenu/src/symbols/index.d.ts +4 -4
- package/dist/plugins/MagicMenu/src/types/index.d.ts +4 -4
- package/dist/plugins/MagicModal/nuxt.d.ts +1 -1
- package/dist/plugins/MagicModal/src/components/MagicModal.d.vue.ts +24 -0
- package/dist/plugins/MagicModal/src/components/MagicModal.vue +134 -171
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +11 -25
- package/dist/plugins/MagicModal/src/composables/private/useModalCallback.mjs +1 -1
- package/dist/plugins/MagicModal/src/composables/private/useModalDOM.mjs +37 -15
- package/dist/plugins/MagicModal/src/types/index.d.ts +2 -2
- package/dist/plugins/MagicModal/src/types/index.mjs +1 -0
- package/dist/plugins/MagicNoise/nuxt.d.ts +1 -1
- package/dist/plugins/MagicNoise/src/components/MagicNoise.d.vue.ts +8 -0
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue +50 -81
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +2 -10
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.d.ts +3 -3
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.mjs +17 -9
- package/dist/plugins/MagicNoise/src/types/index.d.ts +2 -0
- package/dist/plugins/MagicNoise/src/utils/defaultOptions.mjs +3 -1
- package/dist/plugins/MagicPie/index.d.ts +7 -0
- package/dist/plugins/MagicPie/index.mjs +8 -0
- package/dist/plugins/MagicPie/nuxt.d.ts +2 -0
- package/dist/plugins/MagicPie/nuxt.mjs +23 -0
- package/dist/plugins/MagicPie/src/components/MagicPie.d.vue.ts +8 -0
- package/dist/plugins/MagicPie/src/components/MagicPie.vue +181 -0
- package/dist/plugins/MagicPie/src/components/MagicPie.vue.d.ts +8 -0
- package/dist/plugins/MagicPie/src/composables/private/usePieState.d.ts +6 -0
- package/dist/plugins/MagicPie/src/composables/private/usePieState.mjs +35 -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/nuxt.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.d.vue.ts +3 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue +103 -65
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue.d.ts +2 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.d.vue.ts +18 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +129 -127
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +10 -25
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.d.vue.ts +6 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue +38 -42
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +2 -10
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.d.vue.ts +6 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue +131 -102
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +2 -10
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.d.vue.ts +25 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue +140 -82
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +18 -13
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.d.vue.ts +13 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue +26 -36
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +7 -11
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.d.vue.ts +19 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue +66 -56
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue.d.ts +7 -22
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.d.vue.ts +3 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue +66 -109
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue.d.ts +2 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.d.vue.ts +3 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue +128 -68
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue.d.ts +2 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.d.vue.ts +36 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +185 -210
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue.d.ts +25 -34
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenEnter.d.vue.ts +3 -0
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenEnter.vue.d.ts +2 -1
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenExit.d.vue.ts +3 -0
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenExit.vue.d.ts +2 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Pause.d.vue.ts +3 -0
- package/dist/plugins/MagicPlayer/src/components/icons/Pause.vue.d.ts +2 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Play.d.vue.ts +3 -0
- package/dist/plugins/MagicPlayer/src/components/icons/Play.vue.d.ts +2 -1
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOff.d.vue.ts +3 -0
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOff.vue.d.ts +2 -1
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOn.d.vue.ts +3 -0
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOn.vue.d.ts +2 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Waiting.d.vue.ts +3 -0
- package/dist/plugins/MagicPlayer/src/components/icons/Waiting.vue.d.ts +2 -1
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.d.ts +0 -4
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.mjs +9 -52
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.d.ts +8 -34
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.mjs +170 -234
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerEmitter.d.ts +8 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerEmitter.mjs +103 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.d.ts +3 -17
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.mjs +113 -176
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerProvider.d.ts +6 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerProvider.mjs +34 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.d.ts +4 -4
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.mjs +113 -49
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerState.d.ts +7 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerState.mjs +62 -0
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.d.ts +4 -8
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.mjs +50 -93
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.d.ts +37 -52
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.mjs +53 -3
- package/dist/plugins/MagicPlayer/src/css/magic-player-audio-controls.css +0 -1
- package/dist/plugins/MagicPlayer/src/css/magic-player-overlay.css +0 -0
- package/dist/plugins/MagicPlayer/src/css/magic-player-timeline.css +5 -0
- package/dist/plugins/MagicPlayer/src/symbols/index.d.ts +6 -2
- package/dist/plugins/MagicPlayer/src/symbols/index.mjs +12 -1
- package/dist/plugins/MagicPlayer/src/types/index.d.ts +77 -10
- package/dist/plugins/MagicPlayer/src/utils/defaultOptions.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/utils/defaultOptions.mjs +7 -1
- package/dist/plugins/MagicPlayer/src/utils/playbackDefaults.d.ts +3 -0
- package/dist/plugins/MagicPlayer/src/utils/playbackDefaults.mjs +7 -0
- package/dist/plugins/MagicScroll/nuxt.d.ts +1 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.d.vue.ts +18 -0
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue +60 -61
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +7 -22
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.d.vue.ts +20 -0
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue +56 -71
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +7 -22
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.d.vue.ts +36 -0
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue +26 -33
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +25 -38
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.d.vue.ts +20 -0
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +71 -71
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +9 -24
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.d.ts +2 -2
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.mjs +17 -7
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.d.ts +2 -2
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.mjs +41 -26
- package/dist/plugins/MagicScroll/src/symbols/index.d.ts +1 -1
- package/dist/plugins/MagicToast/nuxt.d.ts +1 -1
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.d.vue.ts +15 -0
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +91 -110
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue.d.ts +8 -16
- package/dist/plugins/MagicToast/src/components/MagicToastView.d.vue.ts +17 -0
- package/dist/plugins/MagicToast/src/components/MagicToastView.vue +66 -82
- package/dist/plugins/MagicToast/src/components/MagicToastView.vue.d.ts +7 -23
- package/dist/plugins/MagicToast/src/composables/private/useToastCallback.mjs +9 -7
- package/dist/plugins/MagicToast/src/composables/private/useToastDrag.mjs +23 -23
- package/dist/plugins/MagicToast/src/composables/private/useToastListener.mjs +1 -0
- package/dist/plugins/MagicToast/src/composables/private/useToastScrollLock.mjs +36 -16
- package/dist/plugins/MagicToast/src/composables/private/useToastView.mjs +1 -0
- package/dist/plugins/MagicToast/src/types/index.d.ts +11 -11
- package/dist/plugins/MagicToast/src/utils/defaultOptions.mjs +1 -1
- package/dist/utils/css/animations/fade-down.css +9 -0
- package/dist/utils/css/animations.css +9 -22
- package/dist/utils/css/easings.css +9 -1
- package/dist/utils/css/keyframes.css +22 -0
- package/dist/utils/index.d.ts +9 -4
- package/dist/utils/index.js +42 -4
- package/dist/utils/index.js.map +1 -1
- package/package.json +25 -21
- package/dist/composables/index.d.ts +0 -97
- package/dist/composables/index.js +0 -338
- package/dist/composables/index.js.map +0 -1
- package/dist/nuxt/module.cjs +0 -5
- package/dist/nuxt/module.d.ts +0 -9
- package/dist/nuxt/types.d.ts +0 -1
- package/dist/plugins/.turbo/turbo-lint.log +0 -13
- package/dist/plugins/.turbo/turbo-release.log +0 -7
- package/dist/plugins/MagicAccordion/demo/data/footer.json +0 -117
- package/dist/plugins/MagicCommand/demo/data/about.json +0 -3
- package/dist/plugins/MagicCommand/demo/data/search.json +0 -594
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStateEmitter.d.ts +0 -15
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStateEmitter.mjs +0 -9
- package/dist/plugins/index.d.ts +0 -13
- package/dist/plugins/index.mjs +0 -13
- package/dist/utils/css/transitions.css +0 -8
- /package/dist/plugins/{.turbo/turbo-build.log → MagicError/src/MagicError.d.ts} +0 -0
- /package/dist/plugins/MagicToast/{symbols → src/symbols}/index.d.ts +0 -0
- /package/dist/plugins/MagicToast/{symbols → src/symbols}/index.mjs +0 -0
- /package/dist/utils/css/{transitions → animations}/clip.css +0 -0
- /package/dist/utils/css/{transitions → animations}/fade-up.css +0 -0
- /package/dist/utils/css/{transitions → animations}/fade.css +0 -0
- /package/dist/utils/css/{transitions → animations}/slide-btt.css +0 -0
- /package/dist/utils/css/{transitions → animations}/slide-ltr.css +0 -0
- /package/dist/utils/css/{transitions → animations}/slide-rtl.css +0 -0
- /package/dist/utils/css/{transitions → animations}/slide-ttb.css +0 -0
- /package/dist/utils/css/{transitions → animations}/zoom.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/auto-size-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/clip-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/clip-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-down-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-down-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-up-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/fade-up-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/flip-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/flip-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-btt-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-btt-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-ltr-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-ltr-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-rtl-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-rtl-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-ttb-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/slide-ttb-out.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/squash-y.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/zoom-in.css +0 -0
- /package/dist/utils/css/{animations → keyframes}/zoom-out.css +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import '@maas/vue-equipment/utils/css/keyframes/fade-up-in.css';
|
|
2
|
+
import '@maas/vue-equipment/utils/css/keyframes/fade-up-out.css';
|
|
3
|
+
interface MagicPlayerControlsProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
standalone?: boolean;
|
|
6
|
+
transition?: string;
|
|
7
|
+
}
|
|
8
|
+
declare var __VLS_6: {}, __VLS_8: {}, __VLS_14: {}, __VLS_20: {}, __VLS_27: {}, __VLS_29: {}, __VLS_35: {}, __VLS_41: {}, __VLS_47: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
popover?: (props: typeof __VLS_6) => any;
|
|
11
|
+
} & {
|
|
12
|
+
playIcon?: (props: typeof __VLS_8) => any;
|
|
13
|
+
} & {
|
|
14
|
+
pauseIcon?: (props: typeof __VLS_14) => any;
|
|
15
|
+
} & {
|
|
16
|
+
timelineBefore?: (props: typeof __VLS_20) => any;
|
|
17
|
+
} & {
|
|
18
|
+
timelineAfter?: (props: typeof __VLS_27) => any;
|
|
19
|
+
} & {
|
|
20
|
+
volumeOffIcon?: (props: typeof __VLS_29) => any;
|
|
21
|
+
} & {
|
|
22
|
+
volumeOnIcon?: (props: typeof __VLS_35) => any;
|
|
23
|
+
} & {
|
|
24
|
+
fullscreenExitIcon?: (props: typeof __VLS_41) => any;
|
|
25
|
+
} & {
|
|
26
|
+
fullscreenEnterIcon?: (props: typeof __VLS_47) => any;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_base: import("vue").DefineComponent<MagicPlayerControlsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerControlsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -1,222 +1,197 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="magic-player-video-controls"
|
|
4
|
+
:data-fullscreen="fullscreen"
|
|
5
|
+
:data-touched="touched"
|
|
6
|
+
:data-dragging="dragging"
|
|
7
|
+
:data-started="started"
|
|
8
|
+
:data-playing="playing"
|
|
9
|
+
:data-paused="paused"
|
|
10
|
+
:data-waiting="waiting"
|
|
11
|
+
:data-muted="muted"
|
|
12
|
+
:data-idle="idle"
|
|
13
|
+
:data-hover="controlsMouseEntered"
|
|
14
|
+
:data-standalone="standalone"
|
|
15
|
+
@mouseenter="onMouseenter"
|
|
16
|
+
@mouseleave="onMouseleave"
|
|
17
|
+
>
|
|
18
|
+
<transition :name="mappedTransition">
|
|
19
|
+
<div v-show="visible" class="magic-player-video-controls__bar">
|
|
20
|
+
<div
|
|
21
|
+
v-if="$slots.popover && seekedTime !== null && seekedTime >= 0"
|
|
22
|
+
ref="popover"
|
|
23
|
+
class="magic-player-video-controls__popover"
|
|
24
|
+
:style="{
|
|
25
|
+
marginLeft: `${popoverOffsetX}%`
|
|
26
|
+
}"
|
|
27
|
+
>
|
|
28
|
+
<div v-show="popoverOffsetX !== null">
|
|
29
|
+
<slot name="popover" />
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div ref="bar" class="magic-player-video-controls__bar--inner">
|
|
33
|
+
<div class="magic-player-video-controls__item -shrink-0">
|
|
34
|
+
<button v-if="paused || !started" @click="play">
|
|
35
|
+
<slot name="playIcon">
|
|
36
|
+
<icon-play />
|
|
37
|
+
</slot>
|
|
38
|
+
</button>
|
|
39
|
+
<button v-else @click="pause">
|
|
40
|
+
<slot name="pauseIcon">
|
|
41
|
+
<icon-pause />
|
|
42
|
+
</slot>
|
|
43
|
+
</button>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="magic-player-video-controls__item -grow">
|
|
46
|
+
<slot name="timelineBefore" />
|
|
47
|
+
<div
|
|
48
|
+
ref="track"
|
|
49
|
+
class="magic-player-video-controls__timeline"
|
|
50
|
+
@mouseleave="onMouseleaveTimeline"
|
|
51
|
+
>
|
|
52
|
+
<magic-player-timeline />
|
|
53
|
+
</div>
|
|
54
|
+
<slot name="timelineAfter" />
|
|
55
|
+
</div>
|
|
56
|
+
<div class="magic-player-video-controls__item -shrink-0">
|
|
57
|
+
<button v-if="muted" @click="unmute">
|
|
58
|
+
<slot name="volumeOffIcon">
|
|
59
|
+
<icon-volume-off />
|
|
60
|
+
</slot>
|
|
61
|
+
</button>
|
|
62
|
+
<button v-else @click="mute">
|
|
63
|
+
<slot name="volumeOnIcon">
|
|
64
|
+
<icon-volume-on />
|
|
65
|
+
</slot>
|
|
66
|
+
</button>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="magic-player-video-controls__item -shrink-0">
|
|
69
|
+
<button v-if="fullscreen" @click="exitFullscreen">
|
|
70
|
+
<slot name="fullscreenExitIcon">
|
|
71
|
+
<icon-fullscreen-exit />
|
|
72
|
+
</slot>
|
|
73
|
+
</button>
|
|
74
|
+
<button v-else @click="enterFullscreen">
|
|
75
|
+
<slot name="fullscreenEnterIcon">
|
|
76
|
+
<icon-fullscreen-enter />
|
|
77
|
+
</slot>
|
|
78
|
+
</button>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</transition>
|
|
83
|
+
</div>
|
|
84
|
+
</template>
|
|
85
|
+
|
|
86
|
+
<script setup>
|
|
87
|
+
import {
|
|
88
|
+
toRefs,
|
|
89
|
+
computed,
|
|
90
|
+
inject,
|
|
91
|
+
provide,
|
|
92
|
+
useTemplateRef,
|
|
93
|
+
onBeforeUnmount
|
|
94
|
+
} from "vue";
|
|
11
95
|
import { useIdle } from "@vueuse/core";
|
|
96
|
+
import {
|
|
97
|
+
useMagicError
|
|
98
|
+
} from "@maas/vue-equipment/plugins/MagicError";
|
|
12
99
|
import IconPlay from "./icons/Play.vue";
|
|
13
100
|
import IconPause from "./icons/Pause.vue";
|
|
14
101
|
import IconVolumeOn from "./icons/VolumeOn.vue";
|
|
15
102
|
import IconVolumeOff from "./icons/VolumeOff.vue";
|
|
16
103
|
import IconFullscreenEnter from "./icons/FullscreenEnter.vue";
|
|
17
104
|
import IconFullscreenExit from "./icons/FullscreenExit.vue";
|
|
18
|
-
import {
|
|
105
|
+
import { usePlayerState } from "../composables/private/usePlayerState";
|
|
19
106
|
import { usePlayerVideoApi } from "../composables/private/usePlayerVideoApi";
|
|
20
107
|
import { usePlayerControlsApi } from "../composables/private/usePlayerControlsApi";
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
default: _withCtx(() => [
|
|
101
|
-
_withDirectives(_createElementVNode(
|
|
102
|
-
"div",
|
|
103
|
-
_hoisted_2,
|
|
104
|
-
[
|
|
105
|
-
_ctx.$slots.popover ? _withDirectives((_openBlock(), _createElementBlock(
|
|
106
|
-
"div",
|
|
107
|
-
{
|
|
108
|
-
key: 0,
|
|
109
|
-
ref_key: "popoverRef",
|
|
110
|
-
ref: popoverRef,
|
|
111
|
-
class: "magic-player-video-controls__popover",
|
|
112
|
-
style: _normalizeStyle({ marginLeft: `${_unref(popoverOffsetX)}%` })
|
|
113
|
-
},
|
|
114
|
-
[
|
|
115
|
-
_renderSlot(_ctx.$slots, "popover")
|
|
116
|
-
],
|
|
117
|
-
4
|
|
118
|
-
/* STYLE */
|
|
119
|
-
)), [
|
|
120
|
-
[_vShow, !!_unref(seekedTime) && _unref(touched)]
|
|
121
|
-
]) : _createCommentVNode("v-if", true),
|
|
122
|
-
_createElementVNode(
|
|
123
|
-
"div",
|
|
124
|
-
{
|
|
125
|
-
ref_key: "barRef",
|
|
126
|
-
ref: barRef,
|
|
127
|
-
class: "magic-player-video-controls__bar--inner"
|
|
128
|
-
},
|
|
129
|
-
[
|
|
130
|
-
_createElementVNode("div", _hoisted_3, [
|
|
131
|
-
!_unref(playing) ? (_openBlock(), _createElementBlock("button", {
|
|
132
|
-
key: 0,
|
|
133
|
-
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
134
|
-
(...args) => _unref(play) && _unref(play)(...args))
|
|
135
|
-
}, [
|
|
136
|
-
_renderSlot(_ctx.$slots, "playIcon", {}, () => [
|
|
137
|
-
_createVNode(IconPlay)
|
|
138
|
-
])
|
|
139
|
-
])) : (_openBlock(), _createElementBlock("button", {
|
|
140
|
-
key: 1,
|
|
141
|
-
onClick: _cache[1] || (_cache[1] = //@ts-ignore
|
|
142
|
-
(...args) => _unref(pause) && _unref(pause)(...args))
|
|
143
|
-
}, [
|
|
144
|
-
_renderSlot(_ctx.$slots, "pauseIcon", {}, () => [
|
|
145
|
-
_createVNode(IconPause)
|
|
146
|
-
])
|
|
147
|
-
]))
|
|
148
|
-
]),
|
|
149
|
-
_createElementVNode("div", _hoisted_4, [
|
|
150
|
-
_renderSlot(_ctx.$slots, "timelineBefore"),
|
|
151
|
-
_createElementVNode(
|
|
152
|
-
"div",
|
|
153
|
-
{
|
|
154
|
-
ref_key: "trackRef",
|
|
155
|
-
ref: trackRef,
|
|
156
|
-
class: "magic-player-video-controls__timeline"
|
|
157
|
-
},
|
|
158
|
-
[
|
|
159
|
-
_createVNode(_component_magic_player_timeline, { id: _ctx.id }, null, 8, ["id"])
|
|
160
|
-
],
|
|
161
|
-
512
|
|
162
|
-
/* NEED_PATCH */
|
|
163
|
-
),
|
|
164
|
-
_renderSlot(_ctx.$slots, "timelineAfter")
|
|
165
|
-
]),
|
|
166
|
-
_createElementVNode("div", _hoisted_5, [
|
|
167
|
-
_unref(muted) ? (_openBlock(), _createElementBlock("button", {
|
|
168
|
-
key: 0,
|
|
169
|
-
onClick: _cache[2] || (_cache[2] = //@ts-ignore
|
|
170
|
-
(...args) => _unref(unmute) && _unref(unmute)(...args))
|
|
171
|
-
}, [
|
|
172
|
-
_renderSlot(_ctx.$slots, "volumeOffIcon", {}, () => [
|
|
173
|
-
_createVNode(IconVolumeOff)
|
|
174
|
-
])
|
|
175
|
-
])) : (_openBlock(), _createElementBlock("button", {
|
|
176
|
-
key: 1,
|
|
177
|
-
onClick: _cache[3] || (_cache[3] = //@ts-ignore
|
|
178
|
-
(...args) => _unref(mute) && _unref(mute)(...args))
|
|
179
|
-
}, [
|
|
180
|
-
_renderSlot(_ctx.$slots, "volumeOnIcon", {}, () => [
|
|
181
|
-
_createVNode(IconVolumeOn)
|
|
182
|
-
])
|
|
183
|
-
]))
|
|
184
|
-
]),
|
|
185
|
-
_createElementVNode("div", _hoisted_6, [
|
|
186
|
-
_unref(isFullscreen) ? (_openBlock(), _createElementBlock("button", {
|
|
187
|
-
key: 0,
|
|
188
|
-
onClick: _cache[4] || (_cache[4] = //@ts-ignore
|
|
189
|
-
(...args) => _unref(exitFullscreen) && _unref(exitFullscreen)(...args))
|
|
190
|
-
}, [
|
|
191
|
-
_renderSlot(_ctx.$slots, "fullscreenExitIcon", {}, () => [
|
|
192
|
-
_createVNode(IconFullscreenExit)
|
|
193
|
-
])
|
|
194
|
-
])) : (_openBlock(), _createElementBlock("button", {
|
|
195
|
-
key: 1,
|
|
196
|
-
onClick: _cache[5] || (_cache[5] = //@ts-ignore
|
|
197
|
-
(...args) => _unref(enterFullscreen) && _unref(enterFullscreen)(...args))
|
|
198
|
-
}, [
|
|
199
|
-
_renderSlot(_ctx.$slots, "fullscreenEnterIcon", {}, () => [
|
|
200
|
-
_createVNode(IconFullscreenEnter)
|
|
201
|
-
])
|
|
202
|
-
]))
|
|
203
|
-
])
|
|
204
|
-
],
|
|
205
|
-
512
|
|
206
|
-
/* NEED_PATCH */
|
|
207
|
-
)
|
|
208
|
-
],
|
|
209
|
-
512
|
|
210
|
-
/* NEED_PATCH */
|
|
211
|
-
), [
|
|
212
|
-
[_vShow, !hidden.value]
|
|
213
|
-
])
|
|
214
|
-
]),
|
|
215
|
-
_: 3
|
|
216
|
-
/* FORWARDED */
|
|
217
|
-
}, 8, ["name"])
|
|
218
|
-
], 8, _hoisted_1);
|
|
219
|
-
};
|
|
108
|
+
import {
|
|
109
|
+
MagicPlayerInstanceId,
|
|
110
|
+
MagicPlayerOptionsKey,
|
|
111
|
+
MagicPlayerTrackRef,
|
|
112
|
+
MagicPlayerPopoverRef,
|
|
113
|
+
MagicPlayerBarRef
|
|
114
|
+
} from "../symbols";
|
|
115
|
+
import "@maas/vue-equipment/utils/css/keyframes/fade-up-in.css";
|
|
116
|
+
import "@maas/vue-equipment/utils/css/keyframes/fade-up-out.css";
|
|
117
|
+
const {
|
|
118
|
+
id,
|
|
119
|
+
standalone = false,
|
|
120
|
+
transition
|
|
121
|
+
} = defineProps({
|
|
122
|
+
id: { type: String, required: false },
|
|
123
|
+
standalone: { type: Boolean, required: false },
|
|
124
|
+
transition: { type: String, required: false }
|
|
125
|
+
});
|
|
126
|
+
const magicError = useMagicError({
|
|
127
|
+
prefix: "MagicPlayer",
|
|
128
|
+
source: "MagicPlayerVideoControls"
|
|
129
|
+
});
|
|
130
|
+
const injectedInstanceId = inject(MagicPlayerInstanceId, void 0);
|
|
131
|
+
const injectedOptions = inject(MagicPlayerOptionsKey, void 0);
|
|
132
|
+
const mappedInstanceId = computed(() => id ?? injectedInstanceId);
|
|
133
|
+
magicError.assert(mappedInstanceId.value, {
|
|
134
|
+
message: "MagicPlayerVideoControls must be nested inside MagicPlayerProvider or be passed an id as a prop",
|
|
135
|
+
errorCode: "missing_instance_id"
|
|
136
|
+
});
|
|
137
|
+
const mappedTransition = computed(
|
|
138
|
+
() => transition ?? injectedOptions?.transition?.videoControls
|
|
139
|
+
);
|
|
140
|
+
const barRef = useTemplateRef("bar");
|
|
141
|
+
const trackRef = useTemplateRef("track");
|
|
142
|
+
const popoverRef = useTemplateRef("popover");
|
|
143
|
+
const { initializeState } = usePlayerState(mappedInstanceId.value);
|
|
144
|
+
const state = initializeState();
|
|
145
|
+
const {
|
|
146
|
+
playing,
|
|
147
|
+
started,
|
|
148
|
+
paused,
|
|
149
|
+
waiting,
|
|
150
|
+
muted,
|
|
151
|
+
touched,
|
|
152
|
+
mouseEntered,
|
|
153
|
+
controlsMouseEntered,
|
|
154
|
+
fullscreen,
|
|
155
|
+
popoverOffsetX,
|
|
156
|
+
hasOverlay,
|
|
157
|
+
seekedTime,
|
|
158
|
+
dragging
|
|
159
|
+
} = toRefs(state);
|
|
160
|
+
const { play, pause, mute, unmute, enterFullscreen, exitFullscreen } = usePlayerVideoApi({ id: mappedInstanceId.value });
|
|
161
|
+
const {
|
|
162
|
+
initialize,
|
|
163
|
+
destroy,
|
|
164
|
+
onMouseenter,
|
|
165
|
+
onMouseleave,
|
|
166
|
+
onMouseleaveTimeline
|
|
167
|
+
} = usePlayerControlsApi({
|
|
168
|
+
id: mappedInstanceId.value,
|
|
169
|
+
barRef,
|
|
170
|
+
trackRef,
|
|
171
|
+
popoverRef
|
|
172
|
+
});
|
|
173
|
+
const { idle } = useIdle(injectedOptions?.threshold?.idle);
|
|
174
|
+
const visible = computed(() => {
|
|
175
|
+
switch (true) {
|
|
176
|
+
case standalone:
|
|
177
|
+
return true;
|
|
178
|
+
case (hasOverlay.value && !started.value):
|
|
179
|
+
case (playing.value && idle.value):
|
|
180
|
+
case (playing.value && !mouseEntered.value && !controlsMouseEntered.value):
|
|
181
|
+
case (injectedOptions?.autoplay && !started.value):
|
|
182
|
+
case (injectedOptions?.autoplay && !mouseEntered.value):
|
|
183
|
+
case (injectedOptions?.autoplay && !mouseEntered.value && !touched.value):
|
|
184
|
+
return false;
|
|
185
|
+
default:
|
|
186
|
+
return true;
|
|
220
187
|
}
|
|
221
188
|
});
|
|
189
|
+
initialize();
|
|
190
|
+
onBeforeUnmount(() => {
|
|
191
|
+
destroy();
|
|
192
|
+
});
|
|
193
|
+
provide(MagicPlayerInstanceId, mappedInstanceId.value);
|
|
194
|
+
provide(MagicPlayerTrackRef, trackRef);
|
|
195
|
+
provide(MagicPlayerPopoverRef, popoverRef);
|
|
196
|
+
provide(MagicPlayerBarRef, barRef);
|
|
222
197
|
</script>
|
|
@@ -1,44 +1,35 @@
|
|
|
1
|
-
import '@maas/vue-equipment/utils/css/
|
|
2
|
-
import '@maas/vue-equipment/utils/css/
|
|
1
|
+
import '@maas/vue-equipment/utils/css/keyframes/fade-up-in.css';
|
|
2
|
+
import '@maas/vue-equipment/utils/css/keyframes/fade-up-out.css';
|
|
3
3
|
interface MagicPlayerControlsProps {
|
|
4
4
|
id?: string;
|
|
5
5
|
standalone?: boolean;
|
|
6
6
|
transition?: string;
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
declare var __VLS_6: {}, __VLS_8: {}, __VLS_14: {}, __VLS_20: {}, __VLS_27: {}, __VLS_29: {}, __VLS_35: {}, __VLS_41: {}, __VLS_47: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
popover?: (props: typeof __VLS_6) => any;
|
|
11
|
+
} & {
|
|
12
|
+
playIcon?: (props: typeof __VLS_8) => any;
|
|
13
|
+
} & {
|
|
14
|
+
pauseIcon?: (props: typeof __VLS_14) => any;
|
|
15
|
+
} & {
|
|
16
|
+
timelineBefore?: (props: typeof __VLS_20) => any;
|
|
17
|
+
} & {
|
|
18
|
+
timelineAfter?: (props: typeof __VLS_27) => any;
|
|
19
|
+
} & {
|
|
20
|
+
volumeOffIcon?: (props: typeof __VLS_29) => any;
|
|
21
|
+
} & {
|
|
22
|
+
volumeOnIcon?: (props: typeof __VLS_35) => any;
|
|
23
|
+
} & {
|
|
24
|
+
fullscreenExitIcon?: (props: typeof __VLS_41) => any;
|
|
25
|
+
} & {
|
|
26
|
+
fullscreenEnterIcon?: (props: typeof __VLS_47) => any;
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
declare const
|
|
30
|
-
declare const _default:
|
|
28
|
+
declare const __VLS_base: import("vue").DefineComponent<MagicPlayerControlsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerControlsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
32
|
-
type
|
|
33
|
-
type __VLS_TypePropsToOption<T> = {
|
|
34
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
-
} : {
|
|
37
|
-
type: import('vue').PropType<T[K]>;
|
|
38
|
-
required: true;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
33
|
new (): {
|
|
43
34
|
$slots: S;
|
|
44
35
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -3,15 +3,11 @@ export type UsePlayerAudioApiArgs = {
|
|
|
3
3
|
id: MaybeRef<string>;
|
|
4
4
|
};
|
|
5
5
|
export declare function usePlayerAudioApi(args: UsePlayerAudioApiArgs): {
|
|
6
|
-
mouseEntered: import("vue").Ref<boolean, boolean>;
|
|
7
|
-
touched: import("vue").Ref<boolean, boolean>;
|
|
8
6
|
play: () => void;
|
|
9
7
|
pause: () => void;
|
|
10
8
|
togglePlay: () => void;
|
|
11
9
|
seek: (time: number) => void;
|
|
12
10
|
mute: () => void;
|
|
13
11
|
unmute: () => void;
|
|
14
|
-
onMouseenter: () => void;
|
|
15
|
-
onMouseleave: () => void;
|
|
16
12
|
};
|
|
17
13
|
export type UsePlayerAudioApiReturn = ReturnType<typeof usePlayerAudioApi>;
|