@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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment/nuxt",
3
3
  "configKey": "vueEquipment",
4
- "version": "0.14.0"
4
+ "version": "0.14.1"
5
5
  }
@@ -1,9 +1,9 @@
1
1
  import { type MaybeRef } from 'vue';
2
- import { defaultOptions } from '../../utils/defaultOptions.js';
2
+ import { type DefaultOptions } from '../../utils/defaultOptions.js';
3
3
  type UseDrawerDragArgs = {
4
4
  elRef: MaybeRef<HTMLDivElement | undefined>;
5
- position: MaybeRef<typeof defaultOptions.position>;
6
- threshold: MaybeRef<typeof defaultOptions.threshold>;
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 { RequireAll } from '@maas/vue-equipment/utils';
3
- declare const defaultOptions: RequireAll<DrawerOptions>;
4
- export { defaultOptions };
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 };
@@ -25,4 +25,8 @@ type RequireAll<T> = {
25
25
  [P in keyof T]-?: T[P];
26
26
  };
27
27
 
28
- export { type PickPartial, type RequireAll, type SlugifyOptions, clampValue, isIOS, mapValue, slugify, uniq, uuid };
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 };
@@ -25,4 +25,8 @@ type RequireAll<T> = {
25
25
  [P in keyof T]-?: T[P];
26
26
  };
27
27
 
28
- export { type PickPartial, type RequireAll, type SlugifyOptions, clampValue, isIOS, mapValue, slugify, uniq, uuid };
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 };
@@ -0,0 +1,3 @@
1
+ export type RequireAllNested<T> = {
2
+ [P in keyof T]-?: RequireAllNested<T[P]>
3
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './PickPartial'
2
2
  export * from './RequireAll'
3
+ export * from './RequireAllNested'
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.1",
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",