@maas/vue-equipment 0.14.1 → 0.14.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/MagicDrawer/src/composables/private/useDrawerDrag.d.ts +3 -3
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +2 -1
- package/dist/plugins/MagicDrawer/src/utils/defaultOptions.d.ts +4 -3
- package/dist/utils/index.d.mts +5 -1
- package/dist/utils/index.d.ts +5 -1
- package/dist/utils/types/RequireAllNested.ts +3 -0
- package/dist/utils/types/index.ts +1 -0
- package/package.json +1 -1
package/dist/nuxt/module.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type MaybeRef } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { type DefaultOptions } from '../../utils/defaultOptions.js';
|
|
3
3
|
type UseDrawerDragArgs = {
|
|
4
4
|
elRef: MaybeRef<HTMLDivElement | undefined>;
|
|
5
|
-
position: MaybeRef<
|
|
6
|
-
threshold: MaybeRef<
|
|
5
|
+
position: MaybeRef<DefaultOptions['position']>;
|
|
6
|
+
threshold: MaybeRef<DefaultOptions['threshold']>;
|
|
7
7
|
overshoot: MaybeRef<number>;
|
|
8
8
|
close: () => void;
|
|
9
9
|
};
|
|
@@ -114,6 +114,7 @@ export function useDrawerDrag(args) {
|
|
|
114
114
|
}
|
|
115
115
|
function resetStateAndListeners() {
|
|
116
116
|
dragging.value = false;
|
|
117
|
+
shouldClose.value = false;
|
|
117
118
|
cancelPointermove?.();
|
|
118
119
|
}
|
|
119
120
|
function resetDragged() {
|
|
@@ -126,7 +127,6 @@ export function useDrawerDrag(args) {
|
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
129
|
function onPointerup(e) {
|
|
129
|
-
resetStateAndListeners();
|
|
130
130
|
if (shouldClose.value) {
|
|
131
131
|
close();
|
|
132
132
|
} else {
|
|
@@ -155,6 +155,7 @@ export function useDrawerDrag(args) {
|
|
|
155
155
|
break;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
+
resetStateAndListeners();
|
|
158
159
|
e.preventDefault();
|
|
159
160
|
}
|
|
160
161
|
function onPointermove(e) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DrawerOptions } from '../types.js';
|
|
2
|
-
import type {
|
|
3
|
-
declare const defaultOptions:
|
|
4
|
-
|
|
2
|
+
import type { RequireAllNested } from '@maas/vue-equipment/utils';
|
|
3
|
+
declare const defaultOptions: RequireAllNested<DrawerOptions>;
|
|
4
|
+
type DefaultOptions = typeof defaultOptions;
|
|
5
|
+
export { defaultOptions, type DefaultOptions };
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -25,4 +25,8 @@ type RequireAll<T> = {
|
|
|
25
25
|
[P in keyof T]-?: T[P];
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
type RequireAllNested<T> = {
|
|
29
|
+
[P in keyof T]-?: RequireAllNested<T[P]>;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { type PickPartial, type RequireAll, type RequireAllNested, type SlugifyOptions, clampValue, isIOS, mapValue, slugify, uniq, uuid };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -25,4 +25,8 @@ type RequireAll<T> = {
|
|
|
25
25
|
[P in keyof T]-?: T[P];
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
type RequireAllNested<T> = {
|
|
29
|
+
[P in keyof T]-?: RequireAllNested<T[P]>;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { type PickPartial, type RequireAll, type RequireAllNested, type SlugifyOptions, clampValue, 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.14.
|
|
4
|
+
"version": "0.14.2",
|
|
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",
|