@maas/vue-equipment 1.0.0-beta.6 → 1.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composables/index.d.ts +5 -5
- package/dist/composables/index.js +14 -8
- package/dist/composables/index.js.map +1 -1
- package/dist/nuxt/module.json +1 -1
- package/dist/nuxt/module.mjs +2 -2
- package/dist/plugins/.turbo/turbo-lint.log +2 -2
- package/dist/plugins/MagicAccordion/demo/data/footer.json +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +3 -3
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +2 -2
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue +15 -13
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +6 -157
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue +2 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +4 -2
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/symbols/index.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue +11 -4
- package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue.d.ts +32 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +0 -4
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +3 -8
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue +5 -7
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +3 -87
- package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue +7 -7
- package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue.d.ts +1 -4
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue +6 -5
- package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +3 -157
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +3 -3
- 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 +1 -1
- package/dist/plugins/MagicCommand/src/symbols/index.d.ts +4 -4
- package/dist/plugins/MagicCommand/src/types/index.d.ts +1 -1
- package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +3 -3
- package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +3 -3
- package/dist/plugins/MagicCookie/src/symbols/index.d.ts +2 -2
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +10 -12
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +4 -25
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.d.ts +2 -2
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +4 -4
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableScrollLock.mjs +34 -14
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +3 -3
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.mjs +12 -15
- package/dist/plugins/MagicDraggable/src/types/index.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +20 -21
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +188 -0
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDOM.mjs +34 -14
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +3 -3
- 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/useDrawerSnap.d.ts +3 -3
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.mjs +16 -14
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.d.ts +1 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +15 -15
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +25 -0
- 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/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +27 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +3 -6
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +56 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue +5 -7
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +53 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +1 -12
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +3 -8
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +6 -6
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +1 -85
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +3 -4
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +3 -157
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +3 -3
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.mjs +1 -1
- 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 +35 -15
- package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/symbols/index.d.ts +4 -4
- package/dist/plugins/MagicModal/src/components/MagicModal.vue +6 -6
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +60 -0
- package/dist/plugins/MagicModal/src/composables/private/useModalDOM.mjs +34 -14
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue +13 -13
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +1 -5
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.d.ts +3 -3
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.mjs +2 -2
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue +14 -8
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue.d.ts +1 -4
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +29 -29
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +34 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue +19 -8
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +1 -4
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +35 -0
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +5 -5
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue +3 -4
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue.d.ts +6 -11
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue +3 -4
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue.d.ts +1 -4
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +23 -24
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue.d.ts +73 -0
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenEnter.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenExit.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Pause.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Play.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOff.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOn.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Waiting.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.mjs +3 -3
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.d.ts +10 -10
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.mjs +15 -9
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.d.ts +13 -13
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.mjs +18 -11
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.d.ts +3 -3
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.mjs +3 -3
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.d.ts +6 -6
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.mjs +4 -4
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.d.ts +20 -20
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue +17 -8
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +4 -10
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue +7 -7
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +4 -10
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +3 -3
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +17 -9
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +4 -9
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.d.ts +2 -2
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.mjs +3 -3
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.mjs +8 -3
- package/dist/plugins/MagicScroll/src/symbols/index.d.ts +1 -1
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +9 -10
- package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue.d.ts +1 -59
- package/dist/plugins/MagicToast/src/components/MagicToastView.vue +5 -8
- package/dist/plugins/MagicToast/src/components/MagicToastView.vue.d.ts +3 -8
- package/dist/plugins/MagicToast/src/composables/private/useToastDrag.mjs +22 -22
- package/dist/plugins/MagicToast/src/composables/private/useToastScrollLock.mjs +33 -15
- package/dist/plugins/MagicToast/src/types/index.d.ts +1 -1
- package/dist/plugins/MagicToast/src/utils/defaultOptions.mjs +1 -1
- package/dist/utils/index.d.ts +7 -3
- package/dist/utils/index.js +25 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { defineComponent as _defineComponent } from "vue";
|
|
3
3
|
import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
4
|
-
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
ref: "el",
|
|
6
|
+
class: "magic-scroll-collision"
|
|
7
|
+
};
|
|
8
|
+
import {
|
|
9
|
+
shallowRef,
|
|
10
|
+
inject,
|
|
11
|
+
computed,
|
|
12
|
+
toValue,
|
|
13
|
+
watch,
|
|
14
|
+
useId,
|
|
15
|
+
onMounted,
|
|
16
|
+
useTemplateRef
|
|
17
|
+
} from "vue";
|
|
5
18
|
import { useCollisionDetection } from "../composables/private/useCollisionDetection";
|
|
6
19
|
import { MagicScrollReturn, MagicScrollTarget } from "../symbols";
|
|
7
20
|
import { useIntersectionObserver } from "@vueuse/core";
|
|
@@ -19,8 +32,8 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
19
32
|
"MagicScrollCollision must be used within a MagicScrollProvider"
|
|
20
33
|
);
|
|
21
34
|
}
|
|
22
|
-
const intersecting =
|
|
23
|
-
const elRef =
|
|
35
|
+
const intersecting = shallowRef(false);
|
|
36
|
+
const elRef = useTemplateRef("el");
|
|
24
37
|
const scrollY = computed(() => toValue(scrollReturn?.y) || 0);
|
|
25
38
|
const mappedId = computed(() => __props.id ?? `magic-scroll-collision-${useId()}`);
|
|
26
39
|
const { observe } = useCollisionDetection({
|
|
@@ -51,11 +64,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
51
64
|
return (_ctx, _cache) => {
|
|
52
65
|
return _openBlock(), _createElementBlock(
|
|
53
66
|
"div",
|
|
54
|
-
|
|
55
|
-
ref_key: "elRef",
|
|
56
|
-
ref: elRef,
|
|
57
|
-
class: "magic-scroll-collision"
|
|
58
|
-
},
|
|
67
|
+
_hoisted_1,
|
|
59
68
|
[
|
|
60
69
|
_renderSlot(_ctx.$slots, "default")
|
|
61
70
|
],
|
|
@@ -3,19 +3,13 @@ interface MagicScrollCollisionProps {
|
|
|
3
3
|
id?: string;
|
|
4
4
|
offset?: CollisionOffset;
|
|
5
5
|
}
|
|
6
|
-
declare const elRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
7
6
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
|
-
declare var
|
|
7
|
+
declare var __VLS_1: {};
|
|
9
8
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
10
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
10
|
}>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
declare const __VLS_self: import("vue").DefineComponent<MagicScrollCollisionProps, {
|
|
16
|
-
elRef: typeof elRef;
|
|
17
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollCollisionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const __VLS_component: import("vue").DefineComponent<MagicScrollCollisionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollCollisionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, HTMLDivElement>;
|
|
11
|
+
declare const __VLS_self: import("vue").DefineComponent<MagicScrollCollisionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollCollisionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicScrollCollisionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollCollisionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
13
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
14
|
export default _default;
|
|
21
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { defineComponent as _defineComponent } from "vue";
|
|
3
3
|
import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
4
|
-
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
ref: "el",
|
|
6
|
+
class: "magic-scroll-motion"
|
|
7
|
+
};
|
|
8
|
+
import { ref, inject, computed, onMounted, watch, useTemplateRef } from "vue";
|
|
5
9
|
import { unrefElement } from "@vueuse/core";
|
|
6
10
|
import defu from "defu";
|
|
7
11
|
import {
|
|
@@ -17,7 +21,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
17
21
|
},
|
|
18
22
|
setup(__props) {
|
|
19
23
|
const animation = ref(void 0);
|
|
20
|
-
const elRef =
|
|
24
|
+
const elRef = useTemplateRef("el");
|
|
21
25
|
const injectedProgress = inject(
|
|
22
26
|
MagicScrollProgress,
|
|
23
27
|
computed(() => 0)
|
|
@@ -64,11 +68,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
64
68
|
return (_ctx, _cache) => {
|
|
65
69
|
return _openBlock(), _createElementBlock(
|
|
66
70
|
"div",
|
|
67
|
-
|
|
68
|
-
ref_key: "elRef",
|
|
69
|
-
ref: elRef,
|
|
70
|
-
class: "magic-scroll-motion"
|
|
71
|
-
},
|
|
71
|
+
_hoisted_1,
|
|
72
72
|
[
|
|
73
73
|
_renderSlot(_ctx.$slots, "default")
|
|
74
74
|
],
|
|
@@ -5,19 +5,13 @@ interface MagicScrollMotionProps {
|
|
|
5
5
|
sequenceOptions?: SequenceOptions;
|
|
6
6
|
progress?: number;
|
|
7
7
|
}
|
|
8
|
-
declare const elRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
9
8
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
10
|
-
declare var
|
|
9
|
+
declare var __VLS_1: {};
|
|
11
10
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
12
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
12
|
}>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
declare const __VLS_self: import("vue").DefineComponent<MagicScrollMotionProps, {
|
|
18
|
-
elRef: typeof elRef;
|
|
19
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollMotionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
-
declare const __VLS_component: import("vue").DefineComponent<MagicScrollMotionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollMotionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, HTMLDivElement>;
|
|
13
|
+
declare const __VLS_self: import("vue").DefineComponent<MagicScrollMotionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollMotionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicScrollMotionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollMotionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
15
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
16
|
export default _default;
|
|
23
17
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -21,7 +21,7 @@ declare const scrollReturn: {
|
|
|
21
21
|
measure(): void;
|
|
22
22
|
};
|
|
23
23
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
24
|
-
declare var
|
|
24
|
+
declare var __VLS_1: {
|
|
25
25
|
scrollReturn: {
|
|
26
26
|
x: import("vue").WritableComputedRef<number, number>;
|
|
27
27
|
y: import("vue").WritableComputedRef<number, number>;
|
|
@@ -42,12 +42,12 @@ declare var __VLS_0: {
|
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
45
|
-
default?: (props: typeof
|
|
45
|
+
default?: (props: typeof __VLS_1) => any;
|
|
46
46
|
}>;
|
|
47
47
|
declare const __VLS_self: import("vue").DefineComponent<MagicScrollProviderProps, {
|
|
48
48
|
scrollReturn: typeof scrollReturn;
|
|
49
49
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
|
-
declare const __VLS_component: import("vue").DefineComponent<MagicScrollProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
50
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicScrollProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
52
52
|
export default _default;
|
|
53
53
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { defineComponent as _defineComponent } from "vue";
|
|
3
3
|
import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
4
|
-
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
ref: "el",
|
|
6
|
+
class: "magic-scroll-scene"
|
|
7
|
+
};
|
|
8
|
+
import {
|
|
9
|
+
shallowRef,
|
|
10
|
+
provide,
|
|
11
|
+
inject,
|
|
12
|
+
watch,
|
|
13
|
+
nextTick,
|
|
14
|
+
readonly,
|
|
15
|
+
useTemplateRef
|
|
16
|
+
} from "vue";
|
|
5
17
|
import { useIntersectionObserver } from "@vueuse/core";
|
|
6
18
|
import { useScrollApi } from "../composables/private/useScrollApi";
|
|
7
19
|
import {
|
|
@@ -21,9 +33,9 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
21
33
|
if (!scrollTarget) {
|
|
22
34
|
console.error("MagicScrollScene must be used within a MagicScrollProvider");
|
|
23
35
|
}
|
|
24
|
-
const progress =
|
|
25
|
-
const intersecting =
|
|
26
|
-
const elRef =
|
|
36
|
+
const progress = shallowRef(0);
|
|
37
|
+
const intersecting = shallowRef(false);
|
|
38
|
+
const elRef = useTemplateRef("el");
|
|
27
39
|
const { getCalculations, getProgress } = useScrollApi({
|
|
28
40
|
child: elRef,
|
|
29
41
|
parent: scrollTarget,
|
|
@@ -64,11 +76,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
64
76
|
return (_ctx, _cache) => {
|
|
65
77
|
return _openBlock(), _createElementBlock(
|
|
66
78
|
"div",
|
|
67
|
-
|
|
68
|
-
ref_key: "elRef",
|
|
69
|
-
ref: elRef,
|
|
70
|
-
class: "magic-scroll-scene"
|
|
71
|
-
},
|
|
79
|
+
_hoisted_1,
|
|
72
80
|
[
|
|
73
81
|
_renderSlot(_ctx.$slots, "default", { progress: progress.value })
|
|
74
82
|
],
|
|
@@ -3,23 +3,18 @@ interface MagicScrollSceneProps {
|
|
|
3
3
|
from?: ScrollIntersection;
|
|
4
4
|
to?: ScrollIntersection;
|
|
5
5
|
}
|
|
6
|
-
declare const progress: import("vue").
|
|
7
|
-
declare const elRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
6
|
+
declare const progress: import("vue").ShallowRef<number, number>;
|
|
8
7
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
9
|
-
declare var
|
|
8
|
+
declare var __VLS_1: {
|
|
10
9
|
progress: number;
|
|
11
10
|
};
|
|
12
11
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
13
|
-
default?: (props: typeof
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
14
13
|
}>;
|
|
15
|
-
type __VLS_TemplateRefs = {
|
|
16
|
-
elRef: typeof __VLS_nativeElements['div'];
|
|
17
|
-
};
|
|
18
14
|
declare const __VLS_self: import("vue").DefineComponent<MagicScrollSceneProps, {
|
|
19
15
|
progress: typeof progress;
|
|
20
|
-
elRef: typeof elRef;
|
|
21
16
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollSceneProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const __VLS_component: import("vue").DefineComponent<MagicScrollSceneProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollSceneProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false,
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicScrollSceneProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollSceneProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
18
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
24
19
|
export default _default;
|
|
25
20
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -2,8 +2,8 @@ import { type MaybeRef } from 'vue';
|
|
|
2
2
|
import type { CollisionOffset } from '../../types/index.js';
|
|
3
3
|
type UseCollisionDetectionArgs = {
|
|
4
4
|
id: string;
|
|
5
|
-
child: MaybeRef<HTMLElement |
|
|
6
|
-
parent: MaybeRef<HTMLElement | undefined>;
|
|
5
|
+
child: MaybeRef<HTMLElement | null>;
|
|
6
|
+
parent: MaybeRef<HTMLElement | null | undefined>;
|
|
7
7
|
scrollY: MaybeRef<number>;
|
|
8
8
|
offset?: CollisionOffset;
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { shallowRef, reactive, computed, toValue } from "vue";
|
|
2
2
|
import { useElementBounding } from "@vueuse/core";
|
|
3
3
|
import { useMagicEmitter } from "@maas/vue-equipment/plugins";
|
|
4
4
|
export function useCollisionDetection(args) {
|
|
@@ -28,8 +28,8 @@ export function useCollisionDetection(args) {
|
|
|
28
28
|
const childBoundingRect = useElementBounding(child);
|
|
29
29
|
const parentBoundingRect = useElementBounding(parent);
|
|
30
30
|
const mappedOffset = { top: 0, bottom: 0, ...offset };
|
|
31
|
-
const lastScrollY =
|
|
32
|
-
const scrollDirection =
|
|
31
|
+
const lastScrollY = shallowRef(0);
|
|
32
|
+
const scrollDirection = shallowRef();
|
|
33
33
|
const oppositeScrollDirection = computed(
|
|
34
34
|
() => scrollDirection.value === "up" ? "down" : "up"
|
|
35
35
|
);
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ref,
|
|
3
|
+
shallowRef,
|
|
4
|
+
inject,
|
|
5
|
+
toValue
|
|
6
|
+
} from "vue";
|
|
2
7
|
import { useWindowSize } from "@vueuse/core";
|
|
3
8
|
import { MagicScrollReturn } from "../../symbols/index.mjs";
|
|
4
9
|
import { clampValue } from "@maas/vue-equipment/utils";
|
|
@@ -7,8 +12,8 @@ export function useScrollApi(params) {
|
|
|
7
12
|
const scrollReturn = inject(MagicScrollReturn, void 0);
|
|
8
13
|
const childRect = ref(void 0);
|
|
9
14
|
const parentRect = ref(void 0);
|
|
10
|
-
const start =
|
|
11
|
-
const end =
|
|
15
|
+
const start = shallowRef(0);
|
|
16
|
+
const end = shallowRef(0);
|
|
12
17
|
const { width: windowWidth, height: windowHeight } = useWindowSize();
|
|
13
18
|
function splitLocation(location) {
|
|
14
19
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InjectionKey, Ref, MaybeRef } from 'vue';
|
|
2
2
|
import type { UseScrollReturn } from '@vueuse/core';
|
|
3
|
-
declare const MagicScrollTarget: InjectionKey<MaybeRef<HTMLElement | undefined>>;
|
|
3
|
+
declare const MagicScrollTarget: InjectionKey<MaybeRef<HTMLElement | null | undefined>>;
|
|
4
4
|
declare const MagicScrollProgress: InjectionKey<Ref<number>>;
|
|
5
5
|
declare const MagicScrollReturn: InjectionKey<UseScrollReturn | undefined>;
|
|
6
6
|
export { MagicScrollTarget, MagicScrollProgress, MagicScrollReturn };
|
|
@@ -4,7 +4,7 @@ import { unref as _unref, renderList as _renderList, Fragment as _Fragment, open
|
|
|
4
4
|
const _hoisted_1 = ["data-id", "data-position", "data-expanded"];
|
|
5
5
|
import {
|
|
6
6
|
toValue,
|
|
7
|
-
|
|
7
|
+
useTemplateRef,
|
|
8
8
|
provide,
|
|
9
9
|
watch,
|
|
10
10
|
onBeforeUnmount
|
|
@@ -35,7 +35,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
35
35
|
const { deleteView } = useToastView(__props.id);
|
|
36
36
|
const { deleteState, initializeState } = useToastState(__props.id);
|
|
37
37
|
const state = initializeState(__props.options);
|
|
38
|
-
const listRef =
|
|
38
|
+
const listRef = useTemplateRef("list");
|
|
39
39
|
const {
|
|
40
40
|
onBeforeEnter,
|
|
41
41
|
onEnter,
|
|
@@ -71,8 +71,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
71
71
|
class: "magic-toast-provider"
|
|
72
72
|
}, _ctx.$attrs), [
|
|
73
73
|
_createVNode(_TransitionGroup, {
|
|
74
|
-
|
|
75
|
-
ref: listRef,
|
|
74
|
+
ref: "list",
|
|
76
75
|
tag: "ol",
|
|
77
76
|
class: "magic-toast-provider__list",
|
|
78
77
|
name: _unref(state).options.transition,
|
|
@@ -208,7 +207,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
208
207
|
}
|
|
209
208
|
|
|
210
209
|
.magic-toast-provider[data-position='top-left'],
|
|
211
|
-
.magic-toast-provider[data-position='top
|
|
210
|
+
.magic-toast-provider[data-position='top'],
|
|
212
211
|
.magic-toast-provider[data-position='top-right'] {
|
|
213
212
|
--mt-enter-animation: mt-slide-ttb-in var(--magic-toast-animation-duration)
|
|
214
213
|
var(--ease-in-out);
|
|
@@ -220,7 +219,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
220
219
|
}
|
|
221
220
|
|
|
222
221
|
.magic-toast-provider[data-position='bottom-left'],
|
|
223
|
-
.magic-toast-provider[data-position='bottom
|
|
222
|
+
.magic-toast-provider[data-position='bottom'],
|
|
224
223
|
.magic-toast-provider[data-position='bottom-right'] {
|
|
225
224
|
--mt-enter-animation: mt-slide-btt-in var(--magic-toast-animation-duration)
|
|
226
225
|
var(--ease-in-out);
|
|
@@ -240,7 +239,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
240
239
|
--mt-align-items: flex-end;
|
|
241
240
|
}
|
|
242
241
|
|
|
243
|
-
.magic-toast-provider[data-position='
|
|
242
|
+
.magic-toast-provider[data-position='left'] {
|
|
244
243
|
--mt-justify-content: center;
|
|
245
244
|
--mt-align-items: flex-start;
|
|
246
245
|
--mt-enter-animation: slide-ltr-in var(--magic-toast-animation-duration)
|
|
@@ -249,7 +248,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
249
248
|
var(--ease-in-out);
|
|
250
249
|
}
|
|
251
250
|
|
|
252
|
-
.magic-toast-provider[data-position='
|
|
251
|
+
.magic-toast-provider[data-position='right'] {
|
|
253
252
|
--mt-justify-content: center;
|
|
254
253
|
--mt-align-items: flex-end;
|
|
255
254
|
--mt-enter-animation: slide-rtl-in var(--magic-toast-animation-duration)
|
|
@@ -263,13 +262,13 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
263
262
|
position: absolute;
|
|
264
263
|
|
|
265
264
|
&[data-position='bottom-left'],
|
|
266
|
-
&[data-position='bottom
|
|
265
|
+
&[data-position='bottom'],
|
|
267
266
|
&[data-position='bottom-right'] {
|
|
268
267
|
bottom: calc(var(--mt-height) * var(--mt-index) * 1px);
|
|
269
268
|
}
|
|
270
269
|
|
|
271
270
|
&[data-position='top-left'],
|
|
272
|
-
&[data-position='top
|
|
271
|
+
&[data-position='top'],
|
|
273
272
|
&[data-position='top-right'] {
|
|
274
273
|
top: calc(var(--mt-height) * var(--mt-index) * 1px);
|
|
275
274
|
}
|
|
@@ -10,63 +10,5 @@ interface MagicToastProps {
|
|
|
10
10
|
id: MaybeRef<string>;
|
|
11
11
|
options?: MagicToastOptions;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
14
|
-
declare const __VLS_8: import("vue/jsx-runtime").JSX.Element & {
|
|
15
|
-
__ctx?: ({
|
|
16
|
-
attrs?: any;
|
|
17
|
-
slots?: Readonly<{
|
|
18
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
19
|
-
}> | undefined;
|
|
20
|
-
emit?: ((event: string, ...args: any[]) => void) | undefined;
|
|
21
|
-
} & {
|
|
22
|
-
props?: (Partial<{}> & Omit<{
|
|
23
|
-
readonly duration?: (number | {
|
|
24
|
-
enter: number;
|
|
25
|
-
leave: number;
|
|
26
|
-
}) | undefined;
|
|
27
|
-
readonly onBeforeEnter?: (((el: Element) => void) | ((el: Element) => void)[]) | undefined;
|
|
28
|
-
readonly onEnter?: (((el: Element, done: () => void) => void) | ((el: Element, done: () => void) => void)[]) | undefined;
|
|
29
|
-
readonly onAfterEnter?: (((el: Element) => void) | ((el: Element) => void)[]) | undefined;
|
|
30
|
-
readonly onBeforeLeave?: (((el: Element) => void) | ((el: Element) => void)[]) | undefined;
|
|
31
|
-
readonly onLeave?: (((el: Element, done: () => void) => void) | ((el: Element, done: () => void) => void)[]) | undefined;
|
|
32
|
-
readonly onAfterLeave?: (((el: Element) => void) | ((el: Element) => void)[]) | undefined;
|
|
33
|
-
readonly name?: string | undefined;
|
|
34
|
-
readonly persisted?: boolean | undefined;
|
|
35
|
-
readonly type?: ("transition" | "animation") | undefined;
|
|
36
|
-
readonly css?: boolean | undefined;
|
|
37
|
-
readonly enterFromClass?: string | undefined;
|
|
38
|
-
readonly enterActiveClass?: string | undefined;
|
|
39
|
-
readonly enterToClass?: string | undefined;
|
|
40
|
-
readonly appearFromClass?: string | undefined;
|
|
41
|
-
readonly appearActiveClass?: string | undefined;
|
|
42
|
-
readonly appearToClass?: string | undefined;
|
|
43
|
-
readonly leaveFromClass?: string | undefined;
|
|
44
|
-
readonly leaveActiveClass?: string | undefined;
|
|
45
|
-
readonly leaveToClass?: string | undefined;
|
|
46
|
-
readonly appear?: boolean | undefined;
|
|
47
|
-
readonly onEnterCancelled?: (((el: Element) => void) | ((el: Element) => void)[]) | undefined;
|
|
48
|
-
readonly onLeaveCancelled?: (((el: Element) => void) | ((el: Element) => void)[]) | undefined;
|
|
49
|
-
readonly onBeforeAppear?: (((el: Element) => void) | ((el: Element) => void)[]) | undefined;
|
|
50
|
-
readonly onAppear?: (((el: Element, done: () => void) => void) | ((el: Element, done: () => void) => void)[]) | undefined;
|
|
51
|
-
readonly onAfterAppear?: (((el: Element) => void) | ((el: Element) => void)[]) | undefined;
|
|
52
|
-
readonly onAppearCancelled?: (((el: Element) => void) | ((el: Element) => void)[]) | undefined;
|
|
53
|
-
readonly tag?: string | undefined;
|
|
54
|
-
readonly moveClass?: string | undefined;
|
|
55
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, undefined> & Record<string, unknown>) | undefined;
|
|
56
|
-
expose?(exposed: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").TransitionGroupProps>, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
57
|
-
P: {};
|
|
58
|
-
B: {};
|
|
59
|
-
D: {};
|
|
60
|
-
C: {};
|
|
61
|
-
M: {};
|
|
62
|
-
Defaults: {};
|
|
63
|
-
}, Readonly<import("vue").TransitionGroupProps>, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, {}>): void;
|
|
64
|
-
}) | undefined;
|
|
65
|
-
};
|
|
66
|
-
declare var __VLS_12: (Parameters<NonNullable<(typeof __VLS_11)["expose"]>>[0] | null);
|
|
67
|
-
declare var __VLS_11: __VLS_PickFunctionalComponentCtx<typeof __VLS_6, typeof __VLS_8>;
|
|
68
|
-
type __VLS_TemplateRefs = {
|
|
69
|
-
listRef: typeof __VLS_12;
|
|
70
|
-
};
|
|
71
|
-
declare const _default: import("vue").DefineComponent<MagicToastProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicToastProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, any>;
|
|
13
|
+
declare const _default: import("vue").DefineComponent<MagicToastProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicToastProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
72
14
|
export default _default;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { defineComponent as _defineComponent } from "vue";
|
|
3
3
|
import { unref as _unref, renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
4
4
|
const _hoisted_1 = ["data-id", "data-expanded", "data-dragging", "data-position", "data-debug"];
|
|
5
|
-
import {
|
|
5
|
+
import { computed, inject } from "vue";
|
|
6
6
|
import { MagicToastInstanceId } from "../../symbols";
|
|
7
7
|
import { useToastState } from "../composables/private/useToastState";
|
|
8
8
|
import { useToastDrag } from "../composables/private/useToastDrag";
|
|
@@ -18,7 +18,6 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
18
18
|
if (!instanceId) {
|
|
19
19
|
throw new Error("MagicToastView must be used within a MagicToastProvider");
|
|
20
20
|
}
|
|
21
|
-
const elRef = ref(void 0);
|
|
22
21
|
const { initializeState } = useToastState(instanceId);
|
|
23
22
|
const state = initializeState();
|
|
24
23
|
const count = computed(() => state.views.length);
|
|
@@ -35,8 +34,6 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
35
34
|
});
|
|
36
35
|
return (_ctx, _cache) => {
|
|
37
36
|
return _openBlock(), _createElementBlock("li", {
|
|
38
|
-
ref_key: "elRef",
|
|
39
|
-
ref: elRef,
|
|
40
37
|
class: "magic-toast-view",
|
|
41
38
|
"data-id": _ctx.id,
|
|
42
39
|
"data-expanded": _unref(state).expanded,
|
|
@@ -94,13 +91,13 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
94
91
|
user-select: none;
|
|
95
92
|
|
|
96
93
|
&[data-position='bottom-left'],
|
|
97
|
-
&[data-position='bottom
|
|
94
|
+
&[data-position='bottom'],
|
|
98
95
|
&[data-position='bottom-right'] {
|
|
99
96
|
padding-top: var(--magic-toast-gap);
|
|
100
97
|
}
|
|
101
98
|
|
|
102
99
|
&[data-position='top-left'],
|
|
103
|
-
&[data-position='top
|
|
100
|
+
&[data-position='top'],
|
|
104
101
|
&[data-position='top-right'] {
|
|
105
102
|
padding-bottom: var(--magic-toast-gap);
|
|
106
103
|
}
|
|
@@ -138,11 +135,11 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
138
135
|
cursor: var(--magic-toast-view-cursor-dragging, grabbing);
|
|
139
136
|
}
|
|
140
137
|
|
|
141
|
-
.magic-toast-view[data-position='
|
|
138
|
+
.magic-toast-view[data-position='left'] {
|
|
142
139
|
position: absolute;
|
|
143
140
|
}
|
|
144
141
|
|
|
145
|
-
.magic-toast-view[data-position='
|
|
142
|
+
.magic-toast-view[data-position='right'] {
|
|
146
143
|
position: absolute;
|
|
147
144
|
}
|
|
148
145
|
|
|
@@ -3,7 +3,6 @@ interface MagicToastViewProps {
|
|
|
3
3
|
id: string;
|
|
4
4
|
index: number;
|
|
5
5
|
}
|
|
6
|
-
declare const elRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
7
6
|
declare const state: import("../types").ToastState;
|
|
8
7
|
declare const view: import("vue").ComputedRef<import("../types").ToastView>;
|
|
9
8
|
declare const reversedIndex: import("vue").ComputedRef<number>;
|
|
@@ -11,15 +10,11 @@ declare const height: import("vue").ComputedRef<string>;
|
|
|
11
10
|
declare const offset: import("vue").ComputedRef<string>;
|
|
12
11
|
declare const style: import("vue").ComputedRef<string>, onPointerdown: (e: PointerEvent) => void, onClick: (e: MouseEvent) => Promise<void>;
|
|
13
12
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
14
|
-
declare var
|
|
13
|
+
declare var __VLS_1: {};
|
|
15
14
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
16
|
-
default?: (props: typeof
|
|
15
|
+
default?: (props: typeof __VLS_1) => any;
|
|
17
16
|
}>;
|
|
18
|
-
type __VLS_TemplateRefs = {
|
|
19
|
-
elRef: typeof __VLS_nativeElements['li'];
|
|
20
|
-
};
|
|
21
17
|
declare const __VLS_self: import("vue").DefineComponent<MagicToastViewProps, {
|
|
22
|
-
elRef: typeof elRef;
|
|
23
18
|
state: typeof state;
|
|
24
19
|
view: typeof view;
|
|
25
20
|
reversedIndex: typeof reversedIndex;
|
|
@@ -29,7 +24,7 @@ declare const __VLS_self: import("vue").DefineComponent<MagicToastViewProps, {
|
|
|
29
24
|
onPointerdown: typeof onPointerdown;
|
|
30
25
|
onClick: typeof onClick;
|
|
31
26
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicToastViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
-
declare const __VLS_component: import("vue").DefineComponent<MagicToastViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicToastViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false,
|
|
27
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicToastViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicToastViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
28
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
34
29
|
export default _default;
|
|
35
30
|
type __VLS_WithSlots<T, S> = T & {
|