@maas/vue-equipment 1.0.0-beta.4 → 1.0.0-beta.41
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 +63 -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 +114 -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 +16 -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
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: HTMLDivElement;
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
4
|
};
|
|
9
|
-
|
|
10
|
-
declare const
|
|
11
|
-
declare const _default:
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
12
8
|
export default _default;
|
|
13
|
-
type
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
10
|
new (): {
|
|
15
11
|
$slots: S;
|
|
16
12
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type MaybeRef } from 'vue';
|
|
2
|
+
import type { MagicPlayerOptions } from '../types/index.js';
|
|
3
|
+
interface MagicPlayerProps {
|
|
4
|
+
id: MaybeRef<string>;
|
|
5
|
+
options?: MagicPlayerOptions;
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<MagicPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,62 +1,72 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="player"
|
|
4
|
+
class="magic-player-provider"
|
|
5
|
+
:data-id="id"
|
|
6
|
+
:data-mode="mappedOptions.mode"
|
|
7
|
+
:data-fullscreen="fullscreen"
|
|
8
|
+
:data-touched="touched"
|
|
9
|
+
:data-playing="playing"
|
|
10
|
+
:data-paused="paused"
|
|
11
|
+
:data-started="started"
|
|
12
|
+
:data-waiting="waiting"
|
|
13
|
+
:data-loaded="loaded"
|
|
14
|
+
:data-muted="muted"
|
|
15
|
+
@mouseenter="onMouseenter"
|
|
16
|
+
@mouseleave="onMouseleave"
|
|
17
|
+
@pointerdown="onPointerdown"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script setup>
|
|
24
|
+
import {
|
|
25
|
+
toRefs,
|
|
26
|
+
provide,
|
|
27
|
+
onMounted,
|
|
28
|
+
onUnmounted,
|
|
29
|
+
useTemplateRef
|
|
30
|
+
} from "vue";
|
|
6
31
|
import defu from "defu";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
32
|
+
import { usePlayerState } from "../composables/private/usePlayerState";
|
|
33
|
+
import {
|
|
34
|
+
MagicPlayerInstanceId,
|
|
35
|
+
MagicPlayerOptionsKey,
|
|
36
|
+
MagicPlayerRef
|
|
37
|
+
} from "../symbols";
|
|
11
38
|
import { defaultOptions } from "../utils/defaultOptions";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
ref_key: "playerRef",
|
|
40
|
-
ref: playerRef,
|
|
41
|
-
class: "magic-player-provider",
|
|
42
|
-
"data-mode": _unref(mappedOptions).mode,
|
|
43
|
-
"data-fullscreen": _unref(isFullscreen),
|
|
44
|
-
"data-touched": _unref(touched),
|
|
45
|
-
"data-playing": _unref(playing),
|
|
46
|
-
"data-paused": !_unref(playing),
|
|
47
|
-
"data-waiting": _unref(waiting),
|
|
48
|
-
"data-loaded": _unref(loaded),
|
|
49
|
-
"data-muted": _unref(muted),
|
|
50
|
-
onMouseenter: _cache[0] || (_cache[0] = //@ts-ignore
|
|
51
|
-
(...args) => _unref(onMouseenter) && _unref(onMouseenter)(...args)),
|
|
52
|
-
onMouseleave: _cache[1] || (_cache[1] = //@ts-ignore
|
|
53
|
-
(...args) => _unref(onMouseleave) && _unref(onMouseleave)(...args))
|
|
54
|
-
}, [
|
|
55
|
-
_renderSlot(_ctx.$slots, "default")
|
|
56
|
-
], 40, _hoisted_1);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
39
|
+
import { usePlayerEmitter } from "../composables/private/usePlayerEmitter";
|
|
40
|
+
import { usePlayerProvider } from "../composables/private/usePlayerProvider";
|
|
41
|
+
const { id, options } = defineProps({
|
|
42
|
+
id: { type: null, required: true },
|
|
43
|
+
options: { type: Object, required: false }
|
|
44
|
+
});
|
|
45
|
+
const mappedOptions = defu(options, defaultOptions);
|
|
46
|
+
const { initializeState, deleteState } = usePlayerState(id);
|
|
47
|
+
const state = initializeState();
|
|
48
|
+
const {
|
|
49
|
+
playing,
|
|
50
|
+
paused,
|
|
51
|
+
started,
|
|
52
|
+
waiting,
|
|
53
|
+
muted,
|
|
54
|
+
loaded,
|
|
55
|
+
fullscreen,
|
|
56
|
+
touched
|
|
57
|
+
} = toRefs(state);
|
|
58
|
+
const { onMouseenter, onMouseleave, onPointerdown } = usePlayerProvider(id);
|
|
59
|
+
const playerRef = useTemplateRef("player");
|
|
60
|
+
const { initializeEmitter } = usePlayerEmitter({ id });
|
|
61
|
+
onMounted(() => {
|
|
62
|
+
initializeEmitter();
|
|
63
|
+
});
|
|
64
|
+
onUnmounted(() => {
|
|
65
|
+
deleteState();
|
|
59
66
|
});
|
|
67
|
+
provide(MagicPlayerInstanceId, id);
|
|
68
|
+
provide(MagicPlayerOptionsKey, mappedOptions);
|
|
69
|
+
provide(MagicPlayerRef, playerRef);
|
|
60
70
|
</script>
|
|
61
71
|
|
|
62
72
|
<style>
|
|
@@ -4,30 +4,15 @@ interface MagicPlayerProps {
|
|
|
4
4
|
id: MaybeRef<string>;
|
|
5
5
|
options?: MagicPlayerOptions;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
default?(_: {}): any;
|
|
11
|
-
};
|
|
12
|
-
refs: {
|
|
13
|
-
playerRef: HTMLDivElement;
|
|
14
|
-
};
|
|
15
|
-
rootEl: HTMLDivElement;
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
16
10
|
};
|
|
17
|
-
|
|
18
|
-
declare const
|
|
19
|
-
declare const _default:
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<MagicPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
20
14
|
export default _default;
|
|
21
|
-
type
|
|
22
|
-
type __VLS_TypePropsToOption<T> = {
|
|
23
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
-
} : {
|
|
26
|
-
type: import('vue').PropType<T[K]>;
|
|
27
|
-
required: true;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
16
|
new (): {
|
|
32
17
|
$slots: S;
|
|
33
18
|
};
|
|
@@ -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,112 +1,69 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div ref="track" class="magic-player-timeline">
|
|
3
|
+
<div
|
|
4
|
+
class="magic-player-timeline__target"
|
|
5
|
+
@pointerdown="onPointerdown"
|
|
6
|
+
@pointermove="onPointermove"
|
|
7
|
+
>
|
|
8
|
+
<div class="magic-player-timeline__track">
|
|
9
|
+
<div
|
|
10
|
+
class="magic-player-timeline__thumb"
|
|
11
|
+
:style="{ left: `${scrubbedPercentage}%` }"
|
|
12
|
+
>
|
|
13
|
+
<div class="magic-player-timeline__thumb-handle" />
|
|
14
|
+
</div>
|
|
15
|
+
<div class="magic-player-timeline__inner-track">
|
|
16
|
+
<div
|
|
17
|
+
class="magic-player-timeline__buffered"
|
|
18
|
+
:style="{ left: `${bufferedPercentage}%` }"
|
|
19
|
+
/>
|
|
20
|
+
<div
|
|
21
|
+
v-show="controlsMouseEntered"
|
|
22
|
+
class="magic-player-timeline__seeked"
|
|
23
|
+
:style="{ left: `${seekedPercentage}%` }"
|
|
24
|
+
/>
|
|
25
|
+
<div
|
|
26
|
+
class="magic-player-timeline__scrubbed"
|
|
27
|
+
:style="{ left: `${scrubbedPercentage}%` }"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script setup>
|
|
36
|
+
import { inject, toRefs } from "vue";
|
|
37
|
+
import {
|
|
38
|
+
useMagicError
|
|
39
|
+
} from "@maas/vue-equipment/plugins/MagicError";
|
|
8
40
|
import { usePlayerControlsApi } from "../composables/private/usePlayerControlsApi";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
class: "magic-player-timeline__target",
|
|
38
|
-
onMouseenter: _cache[0] || (_cache[0] = //@ts-ignore
|
|
39
|
-
(...args) => _unref(onMouseenter) && _unref(onMouseenter)(...args)),
|
|
40
|
-
onMouseleave: _cache[1] || (_cache[1] = //@ts-ignore
|
|
41
|
-
(...args) => _unref(onMouseleave) && _unref(onMouseleave)(...args)),
|
|
42
|
-
onPointerdown: _cache[2] || (_cache[2] = //@ts-ignore
|
|
43
|
-
(...args) => _unref(onPointerdown) && _unref(onPointerdown)(...args)),
|
|
44
|
-
onPointerup: _cache[3] || (_cache[3] = //@ts-ignore
|
|
45
|
-
(...args) => _unref(onPointerup) && _unref(onPointerup)(...args)),
|
|
46
|
-
onPointermove: _cache[4] || (_cache[4] = //@ts-ignore
|
|
47
|
-
(...args) => _unref(onPointermove) && _unref(onPointermove)(...args))
|
|
48
|
-
},
|
|
49
|
-
[
|
|
50
|
-
_createElementVNode("div", _hoisted_2, [
|
|
51
|
-
_createElementVNode(
|
|
52
|
-
"div",
|
|
53
|
-
{
|
|
54
|
-
class: "magic-player-timeline__thumb",
|
|
55
|
-
style: _normalizeStyle({ left: `${_unref(scrubbedPercentage)}%` })
|
|
56
|
-
},
|
|
57
|
-
_cache[5] || (_cache[5] = [
|
|
58
|
-
_createElementVNode(
|
|
59
|
-
"div",
|
|
60
|
-
{ class: "magic-player-timeline__thumb-handle" },
|
|
61
|
-
null,
|
|
62
|
-
-1
|
|
63
|
-
/* HOISTED */
|
|
64
|
-
)
|
|
65
|
-
]),
|
|
66
|
-
4
|
|
67
|
-
/* STYLE */
|
|
68
|
-
),
|
|
69
|
-
_createElementVNode("div", _hoisted_3, [
|
|
70
|
-
_createElementVNode(
|
|
71
|
-
"div",
|
|
72
|
-
{
|
|
73
|
-
class: "magic-player-timeline__buffered",
|
|
74
|
-
style: _normalizeStyle({ left: `${_unref(bufferedPercentage)}%` })
|
|
75
|
-
},
|
|
76
|
-
null,
|
|
77
|
-
4
|
|
78
|
-
/* STYLE */
|
|
79
|
-
),
|
|
80
|
-
_withDirectives(_createElementVNode(
|
|
81
|
-
"div",
|
|
82
|
-
{
|
|
83
|
-
class: "magic-player-timeline__seeked",
|
|
84
|
-
style: _normalizeStyle({ left: `${_unref(seekedPercentage)}%` })
|
|
85
|
-
},
|
|
86
|
-
null,
|
|
87
|
-
4
|
|
88
|
-
/* STYLE */
|
|
89
|
-
), [
|
|
90
|
-
[_vShow, _unref(mouseEntered)]
|
|
91
|
-
]),
|
|
92
|
-
_createElementVNode(
|
|
93
|
-
"div",
|
|
94
|
-
{
|
|
95
|
-
class: "magic-player-timeline__scrubbed",
|
|
96
|
-
style: _normalizeStyle({ left: `${_unref(scrubbedPercentage)}%` })
|
|
97
|
-
},
|
|
98
|
-
null,
|
|
99
|
-
4
|
|
100
|
-
/* STYLE */
|
|
101
|
-
)
|
|
102
|
-
])
|
|
103
|
-
])
|
|
104
|
-
],
|
|
105
|
-
32
|
|
106
|
-
/* NEED_HYDRATION */
|
|
107
|
-
)
|
|
108
|
-
]);
|
|
109
|
-
};
|
|
110
|
-
}
|
|
41
|
+
import { usePlayerState } from "../composables/private/usePlayerState";
|
|
42
|
+
import {
|
|
43
|
+
MagicPlayerInstanceId,
|
|
44
|
+
MagicPlayerTrackRef,
|
|
45
|
+
MagicPlayerPopoverRef,
|
|
46
|
+
MagicPlayerBarRef
|
|
47
|
+
} from "../symbols";
|
|
48
|
+
const magicError = useMagicError({
|
|
49
|
+
prefix: "MagicPlayer",
|
|
50
|
+
source: "MagicPlayerTimeline"
|
|
51
|
+
});
|
|
52
|
+
const instanceId = inject(MagicPlayerInstanceId, void 0);
|
|
53
|
+
magicError.assert(instanceId, {
|
|
54
|
+
message: "MagicPlayerTimeline must be nested inside MagicPlayerVideoControls or MagicPlayerAudioControls",
|
|
55
|
+
errorCode: "missing_instance_id"
|
|
56
|
+
});
|
|
57
|
+
const { initializeState } = usePlayerState(instanceId);
|
|
58
|
+
const state = initializeState();
|
|
59
|
+
const { controlsMouseEntered, seekedPercentage, scrubbedPercentage } = toRefs(state);
|
|
60
|
+
const barRef = inject(MagicPlayerBarRef);
|
|
61
|
+
const trackRef = inject(MagicPlayerTrackRef);
|
|
62
|
+
const popoverRef = inject(MagicPlayerPopoverRef, void 0);
|
|
63
|
+
const { bufferedPercentage, onPointerdown, onPointermove } = usePlayerControlsApi({
|
|
64
|
+
id: instanceId,
|
|
65
|
+
barRef,
|
|
66
|
+
trackRef,
|
|
67
|
+
popoverRef
|
|
111
68
|
});
|
|
112
69
|
</script>
|
|
@@ -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,86 +1,146 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<video
|
|
3
|
+
ref="el"
|
|
4
|
+
class="magic-player-video"
|
|
5
|
+
playsinline
|
|
6
|
+
disablePictureInPicture
|
|
7
|
+
:preload="injectedOptions.preload"
|
|
8
|
+
:loop="injectedOptions.loop"
|
|
9
|
+
:muted="muted"
|
|
10
|
+
/>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script setup>
|
|
14
|
+
import {
|
|
15
|
+
toRefs,
|
|
16
|
+
useTemplateRef,
|
|
17
|
+
watch,
|
|
18
|
+
onMounted,
|
|
19
|
+
inject,
|
|
20
|
+
onBeforeUnmount,
|
|
21
|
+
shallowRef,
|
|
22
|
+
computed
|
|
23
|
+
} from "vue";
|
|
6
24
|
import {
|
|
7
25
|
useElementVisibility,
|
|
8
26
|
useEventListener,
|
|
9
27
|
defaultWindow
|
|
10
28
|
} from "@vueuse/core";
|
|
29
|
+
import {
|
|
30
|
+
useMagicError
|
|
31
|
+
} from "@maas/vue-equipment/plugins/MagicError";
|
|
11
32
|
import { usePlayerVideoApi } from "../composables/private/usePlayerVideoApi";
|
|
12
33
|
import { usePlayerMediaApi } from "../composables/private/usePlayerMediaApi";
|
|
13
34
|
import { usePlayerRuntime } from "../composables/private/usePlayerRuntime";
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
35
|
+
import { usePlayerState } from "../composables/private/usePlayerState";
|
|
36
|
+
import { videoModePlaybackDefaults } from "../utils/playbackDefaults";
|
|
37
|
+
import {
|
|
38
|
+
MagicPlayerInstanceId,
|
|
39
|
+
MagicPlayerOptionsKey,
|
|
40
|
+
MagicPlayerRef
|
|
41
|
+
} from "../symbols";
|
|
42
|
+
const magicError = useMagicError({
|
|
43
|
+
prefix: "MagicPlayer",
|
|
44
|
+
source: "MagicPlayerVideo"
|
|
45
|
+
});
|
|
46
|
+
const injectedInstanceId = inject(MagicPlayerInstanceId, void 0);
|
|
47
|
+
const injectedOptions = inject(MagicPlayerOptionsKey, void 0);
|
|
48
|
+
const injectedPlayerRef = inject(MagicPlayerRef, void 0);
|
|
49
|
+
magicError.assert(injectedInstanceId, {
|
|
50
|
+
message: "MagicPlayerVideo must be used within a MagicPlayerProvider",
|
|
51
|
+
errorCode: "missing_instance_id"
|
|
52
|
+
});
|
|
53
|
+
magicError.assert(injectedOptions, {
|
|
54
|
+
message: "MagicPlayerVideo must be used within a MagicPlayerProvider",
|
|
55
|
+
errorCode: "missing_options"
|
|
56
|
+
});
|
|
57
|
+
const elRef = useTemplateRef("el");
|
|
58
|
+
const { initialize, destroy } = usePlayerRuntime({
|
|
59
|
+
id: injectedInstanceId,
|
|
60
|
+
mediaRef: elRef,
|
|
61
|
+
src: injectedOptions.src,
|
|
62
|
+
srcType: injectedOptions.srcType,
|
|
63
|
+
debug: injectedOptions.debug
|
|
64
|
+
});
|
|
65
|
+
const { initializeState } = usePlayerState(injectedInstanceId);
|
|
66
|
+
const state = initializeState();
|
|
67
|
+
const { muted, playing, started, loaded } = toRefs(state);
|
|
68
|
+
usePlayerMediaApi({
|
|
69
|
+
id: injectedInstanceId,
|
|
70
|
+
mediaRef: elRef
|
|
71
|
+
});
|
|
72
|
+
const { play, pause, mute, initializeFullscreen } = usePlayerVideoApi({
|
|
73
|
+
id: injectedInstanceId,
|
|
74
|
+
videoRef: elRef,
|
|
75
|
+
playerRef: injectedPlayerRef
|
|
76
|
+
});
|
|
77
|
+
const wasPlaying = shallowRef(false);
|
|
78
|
+
const isVisible = useElementVisibility(elRef);
|
|
79
|
+
const manageWindow = computed(() => {
|
|
80
|
+
const playbackOptions = injectedOptions.playback || videoModePlaybackDefaults;
|
|
81
|
+
return playbackOptions !== false && playbackOptions?.includes("window");
|
|
82
|
+
});
|
|
83
|
+
const manageViewport = computed(() => {
|
|
84
|
+
const playbackOptions = injectedOptions.playback || videoModePlaybackDefaults;
|
|
85
|
+
return playbackOptions !== false && playbackOptions?.includes("viewport");
|
|
86
|
+
});
|
|
87
|
+
function onWindowFocus() {
|
|
88
|
+
if (isVisible.value && wasPlaying.value) {
|
|
89
|
+
play();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function onWindowBlur() {
|
|
93
|
+
wasPlaying.value = playing.value;
|
|
94
|
+
pause();
|
|
95
|
+
}
|
|
96
|
+
if (manageWindow.value) {
|
|
97
|
+
useEventListener(defaultWindow, "focus", onWindowFocus);
|
|
98
|
+
useEventListener(defaultWindow, "blur", onWindowBlur);
|
|
99
|
+
}
|
|
100
|
+
if (manageViewport.value) {
|
|
101
|
+
watch(isVisible, (value) => {
|
|
102
|
+
if (!value) {
|
|
103
|
+
wasPlaying.value = playing.value;
|
|
104
|
+
pause();
|
|
22
105
|
}
|
|
23
|
-
if (
|
|
24
|
-
|
|
106
|
+
if (value && wasPlaying.value) {
|
|
107
|
+
play();
|
|
25
108
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { initialize, destroy } = usePlayerRuntime({
|
|
29
|
-
id: injectedId,
|
|
30
|
-
mediaRef: elRef,
|
|
31
|
-
src: injectedOptions.src,
|
|
32
|
-
srcType: injectedOptions.srcType
|
|
33
|
-
});
|
|
34
|
-
const { muted, playing } = usePlayerMediaApi({
|
|
35
|
-
id: injectedId,
|
|
36
|
-
mediaRef: elRef
|
|
37
|
-
});
|
|
38
|
-
const { play, pause } = usePlayerVideoApi({
|
|
39
|
-
id: injectedId,
|
|
40
|
-
videoRef: elRef
|
|
41
|
-
});
|
|
42
|
-
function onWindowFocus() {
|
|
43
|
-
if (isVisible.value && !playing.value && injectedOptions?.autoplay) {
|
|
44
|
-
play();
|
|
45
|
-
}
|
|
109
|
+
if (value && injectedOptions.autoplay && !started.value) {
|
|
110
|
+
play();
|
|
46
111
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} else if (!value && playing.value) {
|
|
54
|
-
pause();
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
immediate: true
|
|
112
|
+
});
|
|
113
|
+
watch(
|
|
114
|
+
loaded,
|
|
115
|
+
(value) => {
|
|
116
|
+
if (value && !started.value && isVisible.value && injectedOptions.autoplay) {
|
|
117
|
+
play();
|
|
59
118
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
119
|
+
},
|
|
120
|
+
{ once: true }
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
if (!manageViewport.value) {
|
|
124
|
+
watch(
|
|
125
|
+
loaded,
|
|
126
|
+
(value) => {
|
|
127
|
+
if (value && !started.value && injectedOptions.autoplay) {
|
|
128
|
+
play();
|
|
65
129
|
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
playsinline: "",
|
|
76
|
-
disablePictureInPicture: "",
|
|
77
|
-
preload: _unref(injectedOptions).preload,
|
|
78
|
-
loop: _unref(injectedOptions).loop,
|
|
79
|
-
muted: _unref(muted)
|
|
80
|
-
}, null, 8, _hoisted_1);
|
|
81
|
-
};
|
|
130
|
+
},
|
|
131
|
+
{ once: true }
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
onMounted(async () => {
|
|
135
|
+
initialize(injectedOptions.autoplay);
|
|
136
|
+
initializeFullscreen();
|
|
137
|
+
if (injectedOptions.autoplay) {
|
|
138
|
+
mute();
|
|
82
139
|
}
|
|
83
140
|
});
|
|
141
|
+
onBeforeUnmount(() => {
|
|
142
|
+
destroy();
|
|
143
|
+
});
|
|
84
144
|
</script>
|
|
85
145
|
|
|
86
146
|
<style>
|
|
@@ -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;
|