@maas/vue-equipment 0.27.1 → 0.27.3

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.27.0"
4
+ "version": "0.27.2"
5
5
  }
@@ -276,6 +276,7 @@ export function useDraggableDrag(args) {
276
276
  }
277
277
  await nextTick();
278
278
  if (toValue(initial).snapPoint) {
279
+ activeSnapPoint.value = toValue(initial).snapPoint;
279
280
  const mappedSnapPoint = mapSnapPoint(toValue(initial).snapPoint);
280
281
  if (mappedSnapPoint) {
281
282
  draggedX.value = mappedSnapPoint.x;
@@ -26,7 +26,7 @@ export interface DraggableOptions {
26
26
  initial?: {
27
27
  snapPoint?: SnapPoint;
28
28
  };
29
- snapPoints: SnapPoint[];
29
+ snapPoints?: SnapPoint[];
30
30
  disabled?: boolean;
31
31
  }
32
32
  export interface DraggableState {
@@ -8,7 +8,7 @@ export interface DrawerOptions {
8
8
  scrollLock?: boolean | {
9
9
  padding: boolean;
10
10
  };
11
- snapPoints: SnapPoint[];
11
+ snapPoints?: SnapPoint[];
12
12
  teleport?: {
13
13
  target?: string;
14
14
  disabled?: boolean;
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.27.1",
4
+ "version": "0.27.3",
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",