@maas/vue-equipment 0.16.5 → 0.16.7
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/MagicDrawer/src/composables/private/useDrawerSnap.mjs +2 -2
- package/dist/utils/css/transitions/clip.css +7 -0
- package/dist/utils/css/transitions/fade-up.css +8 -0
- package/dist/utils/css/transitions/fade.css +8 -0
- package/dist/utils/css/transitions/slide-btt.css +8 -0
- package/dist/utils/css/transitions/slide-ltr.css +7 -0
- package/dist/utils/css/transitions/slide-rtl.css +8 -0
- package/dist/utils/css/transitions/slide-ttb.css +9 -0
- package/dist/utils/css/transitions/zoom.css +7 -0
- package/dist/utils/css/transitions.css +8 -79
- package/dist/utils/index.d.mts +11 -1
- package/dist/utils/index.d.ts +11 -1
- package/package.json +1 -1
package/dist/nuxt/module.json
CHANGED
|
@@ -151,7 +151,7 @@ export function useDrawerSnap(args) {
|
|
|
151
151
|
case "top":
|
|
152
152
|
case "bottom":
|
|
153
153
|
const mappedSnapPointY = mapSnapPoint(toValue(snapPoint));
|
|
154
|
-
if (!mappedSnapPointY)
|
|
154
|
+
if (!mappedSnapPointY && mappedSnapPointY !== 0)
|
|
155
155
|
return;
|
|
156
156
|
const closestY = await findClosestSnapPoint({
|
|
157
157
|
draggedX,
|
|
@@ -168,7 +168,7 @@ export function useDrawerSnap(args) {
|
|
|
168
168
|
case "left":
|
|
169
169
|
case "right":
|
|
170
170
|
const mappedSnapPointX = mapSnapPoint(toValue(snapPoint));
|
|
171
|
-
if (!mappedSnapPointX)
|
|
171
|
+
if (!mappedSnapPointX && mappedSnapPointX !== 0)
|
|
172
172
|
return;
|
|
173
173
|
const closestX = await findClosestSnapPoint({
|
|
174
174
|
draggedX: mappedSnapPointX,
|
|
@@ -1,79 +1,8 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
.fade-up-enter-active {
|
|
10
|
-
animation: fade-up-in 300ms ease;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.fade-up-leave-active {
|
|
14
|
-
animation: fade-up-out 300ms ease;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.slide-btt-enter-active {
|
|
18
|
-
animation: slide-btt-in 300ms ease;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.slide-btt-leave-active {
|
|
22
|
-
animation: slide-btt-out 300ms ease;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.slide-ttb-enter-active {
|
|
26
|
-
animation: slide-ttb-in 300ms ease;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.slide-ttb-leave-active {
|
|
30
|
-
animation: slide-ttb-out 300ms ease;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.slide-rtl-enter-active {
|
|
34
|
-
animation: slide-rtl-in 300ms ease;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.slide-rtl-leave-active {
|
|
38
|
-
animation: slide-rtl-out 300ms ease;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.slide-ltr-enter-active {
|
|
42
|
-
animation: slide-ltr-in 300ms ease;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.slide-ltr-leave-active {
|
|
46
|
-
animation: slide-ltr-out 300ms ease;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.scroll-up-enter-active {
|
|
50
|
-
animation: scroll-up-in 300ms ease;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.scroll-up-leave-active {
|
|
54
|
-
animation: scroll-up-out 300ms ease;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.scroll-down-enter-active {
|
|
58
|
-
animation: scroll-down-in 300ms ease;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.scroll-down-leave-active {
|
|
62
|
-
animation: scroll-down-out 300ms ease;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.zoom-enter-active {
|
|
66
|
-
animation: zoom-in 300ms ease;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.zoom-leave-active {
|
|
70
|
-
animation: zoom-out 300ms ease;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.clip-enter-active {
|
|
74
|
-
animation: clip-in 0.6s cubic-bezier(0.83, 0, 0.17, 1) forwards;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.clip-leave-active {
|
|
78
|
-
animation: clip-out 0.6s cubic-bezier(0.83, 0, 0.17, 1) forwards;
|
|
79
|
-
}
|
|
1
|
+
@import './transitions/clip.css';
|
|
2
|
+
@import './transitions/fade-up.css';
|
|
3
|
+
@import './transitions/fade.css';
|
|
4
|
+
@import './transitions/slide-btt.css';
|
|
5
|
+
@import './transitions/slide-ltr.css';
|
|
6
|
+
@import './transitions/slide-rtl.css';
|
|
7
|
+
@import './transitions/slide-ttb.css';
|
|
8
|
+
@import './transitions/zoom.css';
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
declare function clampValue(value: number, min: number, max: number): number;
|
|
2
2
|
|
|
3
|
+
type InterpolateArgs = {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
duration: number;
|
|
7
|
+
interval?: number;
|
|
8
|
+
easing?: (t: number) => number;
|
|
9
|
+
callback: (result: number) => void;
|
|
10
|
+
};
|
|
11
|
+
declare function interpolate(args: InterpolateArgs): void;
|
|
12
|
+
|
|
3
13
|
declare function isIOS(): boolean;
|
|
4
14
|
|
|
5
15
|
declare function mapValue(value: number, inMin: number, inMax: number, outMin: number, outMax: number): number;
|
|
@@ -29,4 +39,4 @@ type RequireAllNested<T> = {
|
|
|
29
39
|
[P in keyof T]-?: RequireAllNested<T[P]>;
|
|
30
40
|
};
|
|
31
41
|
|
|
32
|
-
export { type PickPartial, type RequireAll, type RequireAllNested, type SlugifyOptions, clampValue, isIOS, mapValue, slugify, uniq, uuid };
|
|
42
|
+
export { type InterpolateArgs, type PickPartial, type RequireAll, type RequireAllNested, type SlugifyOptions, clampValue, interpolate, isIOS, mapValue, slugify, uniq, uuid };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
declare function clampValue(value: number, min: number, max: number): number;
|
|
2
2
|
|
|
3
|
+
type InterpolateArgs = {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
duration: number;
|
|
7
|
+
interval?: number;
|
|
8
|
+
easing?: (t: number) => number;
|
|
9
|
+
callback: (result: number) => void;
|
|
10
|
+
};
|
|
11
|
+
declare function interpolate(args: InterpolateArgs): void;
|
|
12
|
+
|
|
3
13
|
declare function isIOS(): boolean;
|
|
4
14
|
|
|
5
15
|
declare function mapValue(value: number, inMin: number, inMax: number, outMin: number, outMax: number): number;
|
|
@@ -29,4 +39,4 @@ type RequireAllNested<T> = {
|
|
|
29
39
|
[P in keyof T]-?: RequireAllNested<T[P]>;
|
|
30
40
|
};
|
|
31
41
|
|
|
32
|
-
export { type PickPartial, type RequireAll, type RequireAllNested, type SlugifyOptions, clampValue, isIOS, mapValue, slugify, uniq, uuid };
|
|
42
|
+
export { type InterpolateArgs, type PickPartial, type RequireAll, type RequireAllNested, type SlugifyOptions, clampValue, interpolate, isIOS, mapValue, slugify, uniq, uuid };
|
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.16.
|
|
4
|
+
"version": "0.16.7",
|
|
5
5
|
"author": "Robin Scholz <https://github.com/robinscholz>, Christoph Jeworutzki <https://github.com/ChristophJeworutzki>",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@antfu/ni": "^0.21.12",
|