@maas/vue-equipment 0.36.1 → 0.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nuxt/module.json +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +2 -46
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +1 -1
- package/dist/plugins/MagicAutoSize/src/components/MagicAutoSize.vue.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +1 -1
- package/dist/plugins/MagicCookie/src/components/MagicCookie.vue.d.ts +2 -2
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +2 -1
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +3 -3
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.d.ts +1 -0
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +24 -5
- package/dist/plugins/MagicDraggable/src/types/index.d.ts +3 -0
- package/dist/plugins/MagicDraggable/src/utils/defaultOptions.mjs +2 -1
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +3 -3
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +3 -3
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +2 -2
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +3 -47
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayer.vue.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayerControls.vue.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue.d.ts +3 -3
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +1 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +1 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +1 -18
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +3 -3
- package/dist/plugins/MagicToast/src/components/MagicToastComponent.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/nuxt/module.json
CHANGED
|
@@ -8,55 +8,11 @@ interface MagicAccordionTriggerProps {
|
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
9
|
slots: {
|
|
10
10
|
default?(_: {
|
|
11
|
-
isActive:
|
|
11
|
+
isActive: any;
|
|
12
12
|
}): any;
|
|
13
13
|
};
|
|
14
14
|
refs: {
|
|
15
|
-
elRef:
|
|
16
|
-
asChild: {
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
as: {
|
|
21
|
-
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
-
asChild: {
|
|
28
|
-
type: BooleanConstructor;
|
|
29
|
-
default: boolean;
|
|
30
|
-
};
|
|
31
|
-
as: {
|
|
32
|
-
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
|
-
}>>, {
|
|
36
|
-
asChild: boolean;
|
|
37
|
-
as: import("@maas/vue-primitive").ElementOrComponent;
|
|
38
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
39
|
-
P: {};
|
|
40
|
-
B: {};
|
|
41
|
-
D: {};
|
|
42
|
-
C: {};
|
|
43
|
-
M: {};
|
|
44
|
-
Defaults: {};
|
|
45
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
-
asChild: {
|
|
47
|
-
type: BooleanConstructor;
|
|
48
|
-
default: boolean;
|
|
49
|
-
};
|
|
50
|
-
as: {
|
|
51
|
-
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}>, {}, {}, {}, {
|
|
57
|
-
asChild: boolean;
|
|
58
|
-
as: import("@maas/vue-primitive").ElementOrComponent;
|
|
59
|
-
}> | null;
|
|
15
|
+
elRef: any;
|
|
60
16
|
};
|
|
61
17
|
attrs: Partial<{}>;
|
|
62
18
|
};
|
|
@@ -9,15 +9,15 @@ declare function __VLS_template(): {
|
|
|
9
9
|
default?(_: {}): any;
|
|
10
10
|
};
|
|
11
11
|
refs: {
|
|
12
|
-
elRef:
|
|
12
|
+
elRef: any;
|
|
13
13
|
};
|
|
14
14
|
attrs: Partial<{}>;
|
|
15
15
|
};
|
|
16
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
17
|
declare const __VLS_component: import("vue").DefineComponent<MagicAutoSizeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicAutoSizeProps> & Readonly<{}>, {
|
|
18
|
-
immediate: boolean;
|
|
19
18
|
width: boolean;
|
|
20
19
|
height: boolean;
|
|
20
|
+
immediate: boolean;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
23
|
export default _default;
|
|
@@ -4,8 +4,8 @@ type MagicCookieProps = {
|
|
|
4
4
|
maxAge?: number;
|
|
5
5
|
};
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
-
slots: Partial<Record<
|
|
8
|
-
cookie:
|
|
7
|
+
slots: Partial<Record<any, (_: {
|
|
8
|
+
cookie: any;
|
|
9
9
|
}) => any>> & {
|
|
10
10
|
default?(_: {}): any;
|
|
11
11
|
actions?(_: {}): any;
|
|
@@ -76,7 +76,7 @@ const disabled = computed(() => {
|
|
|
76
76
|
}
|
|
77
77
|
})
|
|
78
78
|
|
|
79
|
-
const { snapPoints, animation, initial, threshold } = mappedOptions
|
|
79
|
+
const { snapPoints, animation, initial, threshold, scrollLock } = mappedOptions
|
|
80
80
|
|
|
81
81
|
const { onPointerdown, onClick, style, hasDragged } = useDraggableDrag({
|
|
82
82
|
id: props.id,
|
|
@@ -86,6 +86,7 @@ const { onPointerdown, onClick, style, hasDragged } = useDraggableDrag({
|
|
|
86
86
|
snapPoints,
|
|
87
87
|
animation,
|
|
88
88
|
initial,
|
|
89
|
+
scrollLock,
|
|
89
90
|
})
|
|
90
91
|
|
|
91
92
|
// Public functions
|
|
@@ -8,6 +8,7 @@ type UseDraggableDragArgs = {
|
|
|
8
8
|
snapPoints: MaybeRef<DefaultOptions['snapPoints']>;
|
|
9
9
|
animation: MaybeRef<DefaultOptions['animation']>;
|
|
10
10
|
initial: MaybeRef<DefaultOptions['initial']>;
|
|
11
|
+
scrollLock: MaybeRef<DefaultOptions['scrollLock']>;
|
|
11
12
|
};
|
|
12
13
|
export declare function useDraggableDrag(args: UseDraggableDragArgs): {
|
|
13
14
|
initialize: () => Promise<void>;
|
|
@@ -27,7 +27,16 @@ import { useDraggableSnap } from "./useDraggableSnap.mjs";
|
|
|
27
27
|
import { useDraggableState } from "./useDraggableState.mjs";
|
|
28
28
|
import { useDraggableScrollLock } from "./useDraggableScrollLock.mjs";
|
|
29
29
|
export function useDraggableDrag(args) {
|
|
30
|
-
const {
|
|
30
|
+
const {
|
|
31
|
+
id,
|
|
32
|
+
elRef,
|
|
33
|
+
wrapperRef,
|
|
34
|
+
threshold,
|
|
35
|
+
snapPoints,
|
|
36
|
+
initial,
|
|
37
|
+
animation,
|
|
38
|
+
scrollLock
|
|
39
|
+
} = args;
|
|
31
40
|
const { initializeState } = useDraggableState(toValue(id));
|
|
32
41
|
const {
|
|
33
42
|
dragStart,
|
|
@@ -271,8 +280,13 @@ export function useDraggableDrag(args) {
|
|
|
271
280
|
});
|
|
272
281
|
}
|
|
273
282
|
resetStateAndListeners();
|
|
274
|
-
|
|
275
|
-
|
|
283
|
+
const scrollLockValue = toValue(scrollLock);
|
|
284
|
+
if (scrollLockValue) {
|
|
285
|
+
unlockScroll();
|
|
286
|
+
if (typeof scrollLockValue === "object" && scrollLockValue.padding) {
|
|
287
|
+
removeScrollLockPadding();
|
|
288
|
+
}
|
|
289
|
+
}
|
|
276
290
|
guardedReleasePointerCapture({ event: e, element: elRef.value });
|
|
277
291
|
}
|
|
278
292
|
function onPointermove(e) {
|
|
@@ -311,8 +325,13 @@ export function useDraggableDrag(args) {
|
|
|
311
325
|
}
|
|
312
326
|
}
|
|
313
327
|
function onPointerdown(e) {
|
|
314
|
-
|
|
315
|
-
|
|
328
|
+
const scrollLockValue = toValue(scrollLock);
|
|
329
|
+
if (scrollLockValue) {
|
|
330
|
+
lockScroll();
|
|
331
|
+
if (typeof scrollLockValue === "object" && scrollLockValue.padding) {
|
|
332
|
+
addScrollLockPadding();
|
|
333
|
+
}
|
|
334
|
+
}
|
|
316
335
|
if (dragging.value) {
|
|
317
336
|
return;
|
|
318
337
|
} else {
|
|
@@ -5,12 +5,12 @@ interface MagicMenuItemProps {
|
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
slots: {
|
|
7
7
|
default?(_: {
|
|
8
|
-
isActive:
|
|
9
|
-
isDisabled:
|
|
8
|
+
isActive: any;
|
|
9
|
+
isDisabled: any;
|
|
10
10
|
}): any;
|
|
11
11
|
};
|
|
12
12
|
refs: {
|
|
13
|
-
elRef:
|
|
13
|
+
elRef: any;
|
|
14
14
|
};
|
|
15
15
|
attrs: Partial<{}>;
|
|
16
16
|
};
|
|
@@ -7,56 +7,12 @@ interface MagicMenuTriggerProps {
|
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
8
|
slots: {
|
|
9
9
|
default?(_: {
|
|
10
|
-
viewActive:
|
|
11
|
-
triggerDisabled:
|
|
10
|
+
viewActive: any;
|
|
11
|
+
triggerDisabled: any;
|
|
12
12
|
}): any;
|
|
13
13
|
};
|
|
14
14
|
refs: {
|
|
15
|
-
elRef:
|
|
16
|
-
asChild: {
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
as: {
|
|
21
|
-
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
-
asChild: {
|
|
28
|
-
type: BooleanConstructor;
|
|
29
|
-
default: boolean;
|
|
30
|
-
};
|
|
31
|
-
as: {
|
|
32
|
-
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
|
-
}>>, {
|
|
36
|
-
asChild: boolean;
|
|
37
|
-
as: import("@maas/vue-primitive").ElementOrComponent;
|
|
38
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
39
|
-
P: {};
|
|
40
|
-
B: {};
|
|
41
|
-
D: {};
|
|
42
|
-
C: {};
|
|
43
|
-
M: {};
|
|
44
|
-
Defaults: {};
|
|
45
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
-
asChild: {
|
|
47
|
-
type: BooleanConstructor;
|
|
48
|
-
default: boolean;
|
|
49
|
-
};
|
|
50
|
-
as: {
|
|
51
|
-
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}>, {}, {}, {}, {
|
|
57
|
-
asChild: boolean;
|
|
58
|
-
as: import("@maas/vue-primitive").ElementOrComponent;
|
|
59
|
-
}> | null;
|
|
15
|
+
elRef: any;
|
|
60
16
|
};
|
|
61
17
|
attrs: Partial<{}>;
|
|
62
18
|
};
|
|
@@ -18,9 +18,9 @@ declare function __VLS_template(): {
|
|
|
18
18
|
fullscreenEnterIcon?(_: {}): any;
|
|
19
19
|
};
|
|
20
20
|
refs: {
|
|
21
|
-
popoverRef:
|
|
22
|
-
barRef:
|
|
23
|
-
trackRef:
|
|
21
|
+
popoverRef: any;
|
|
22
|
+
barRef: any;
|
|
23
|
+
trackRef: any;
|
|
24
24
|
};
|
|
25
25
|
attrs: Partial<{}>;
|
|
26
26
|
};
|
|
@@ -6,24 +6,7 @@ interface MagicScrollProviderProps {
|
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
7
|
slots: {
|
|
8
8
|
default?(_: {
|
|
9
|
-
scrollReturn:
|
|
10
|
-
x: import("vue").WritableComputedRef<number>;
|
|
11
|
-
y: import("vue").WritableComputedRef<number>;
|
|
12
|
-
isScrolling: import("vue").Ref<boolean>;
|
|
13
|
-
arrivedState: {
|
|
14
|
-
left: boolean;
|
|
15
|
-
right: boolean;
|
|
16
|
-
top: boolean;
|
|
17
|
-
bottom: boolean;
|
|
18
|
-
};
|
|
19
|
-
directions: {
|
|
20
|
-
left: boolean;
|
|
21
|
-
right: boolean;
|
|
22
|
-
top: boolean;
|
|
23
|
-
bottom: boolean;
|
|
24
|
-
};
|
|
25
|
-
measure(): void;
|
|
26
|
-
};
|
|
9
|
+
scrollReturn: any;
|
|
27
10
|
}): any;
|
|
28
11
|
};
|
|
29
12
|
refs: {};
|
|
@@ -6,18 +6,18 @@ interface MagicScrollSceneProps {
|
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
7
|
slots: {
|
|
8
8
|
default?(_: {
|
|
9
|
-
progress:
|
|
9
|
+
progress: any;
|
|
10
10
|
}): any;
|
|
11
11
|
};
|
|
12
12
|
refs: {
|
|
13
|
-
elRef:
|
|
13
|
+
elRef: any;
|
|
14
14
|
};
|
|
15
15
|
attrs: Partial<{}>;
|
|
16
16
|
};
|
|
17
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
18
|
declare const __VLS_component: import("vue").DefineComponent<MagicScrollSceneProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicScrollSceneProps> & Readonly<{}>, {
|
|
19
|
-
to: FromTo;
|
|
20
19
|
from: FromTo;
|
|
20
|
+
to: FromTo;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
23
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maas/vue-equipment",
|
|
3
3
|
"description": "A magic collection of Vue composables, plugins, components and directives",
|
|
4
|
-
"version": "0.36.
|
|
4
|
+
"version": "0.36.2",
|
|
5
5
|
"author": "Robin Scholz <https://github.com/robinscholz>, Christoph Jeworutzki <https://github.com/ChristophJeworutzki>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"devDependencies": {
|