@maas/vue-equipment 1.0.0-beta.19 → 1.0.0-beta.20

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment/nuxt",
3
3
  "configKey": "vueEquipment",
4
- "version": "1.0.0-beta.18",
4
+ "version": "1.0.0-beta.19",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "unknown"
@@ -2,6 +2,7 @@
2
2
  <div
3
3
  class="magic-accordion-content"
4
4
  :data-active="view?.active"
5
+ :data-id="`${viewId}-content`"
5
6
  :style="{ '--ma-duration': `${state.options.animation?.duration}ms` }"
6
7
  >
7
8
  <auto-size
@@ -11,6 +11,7 @@ interface MagicAccordionContentProps {
11
11
  easing: (t: number) => number;
12
12
  };
13
13
  }
14
+ declare const viewId: string | undefined;
14
15
  declare const state: import("../types/index.js").AccordionState;
15
16
  declare const view: import("../types/index.js").AccordionView | undefined;
16
17
  declare const mappedTransition: import("vue").ComputedRef<string | undefined>;
@@ -29,6 +30,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
29
30
  declare const __VLS_self: import("vue").DefineComponent<MagicAccordionContentProps, {
30
31
  AutoSize: typeof AutoSize;
31
32
  Primitive: typeof Primitive;
33
+ viewId: typeof viewId;
32
34
  state: typeof state;
33
35
  view: typeof view;
34
36
  mappedTransition: typeof mappedTransition;
@@ -22,7 +22,6 @@ export function useCookieItem(args) {
22
22
  timestamp,
23
23
  maxAge
24
24
  };
25
- console.log(item);
26
25
  return reactive(item);
27
26
  }
28
27
  function addItem(args2) {
@@ -294,7 +294,6 @@ export function useDraggableDrag(args) {
294
294
  const { x, y } = mappedActiveSnapPoint.value ?? {};
295
295
  if (x !== void 0 && y !== void 0) {
296
296
  interpolateTo.value = { x, y };
297
- console.log("G", interpolateTo.value);
298
297
  }
299
298
  return;
300
299
  }
@@ -76,9 +76,7 @@ declare const mappedOptions: Omit<MagicDrawerOptions, keyof MagicDrawerOptions>
76
76
  easing?: (t: number) => number;
77
77
  };
78
78
  });
79
- backdrop: boolean;
80
79
  tag: "div" | "dialog";
81
- focusTrap: boolean | import("focus-trap").Options;
82
80
  scrollLock: {
83
81
  padding: boolean;
84
82
  } | ((boolean | {
@@ -110,10 +108,13 @@ declare const mappedOptions: Omit<MagicDrawerOptions, keyof MagicDrawerOptions>
110
108
  } & true, "padding"> & {
111
109
  padding: boolean;
112
110
  });
113
- teleport: {
114
- target?: string;
115
- disabled?: boolean;
111
+ snapPoints: import("../types/index.js").DrawerSnapPoint[];
112
+ initial: {
113
+ open?: boolean;
114
+ transition?: boolean;
115
+ snapPoint?: import("../types/index.js").DrawerSnapPoint;
116
116
  };
117
+ position: "top" | "left" | "right" | "bottom";
117
118
  keyListener: ({
118
119
  close?: string[] | false;
119
120
  } & import("../../../../utils/index.js").RequireAll<{
@@ -127,12 +128,11 @@ declare const mappedOptions: Omit<MagicDrawerOptions, keyof MagicDrawerOptions>
127
128
  }>, "close"> & {
128
129
  close: (false | string[] | undefined) & (false | string[]);
129
130
  });
130
- position: "right" | "left" | "top" | "bottom";
131
- snapPoints: import("../types/index.js").DrawerSnapPoint[];
132
- initial: {
133
- open?: boolean;
134
- transition?: boolean;
135
- snapPoint?: import("../types/index.js").DrawerSnapPoint;
131
+ backdrop: boolean;
132
+ focusTrap: boolean | import("focus-trap").Options;
133
+ teleport: {
134
+ target?: string;
135
+ disabled?: boolean;
136
136
  };
137
137
  enableMousewheel: boolean;
138
138
  preventZoom: boolean;
@@ -74,26 +74,26 @@ export declare function useMagicEmitter(): {
74
74
  } & Omit<{
75
75
  beforeSnap: {
76
76
  id: string;
77
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
77
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
78
78
  } | {
79
79
  id: string;
80
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
80
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
81
81
  };
82
82
  snapTo: {
83
83
  id: string;
84
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
84
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
85
85
  duration?: number;
86
86
  } | {
87
87
  id: string;
88
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
88
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
89
89
  duration?: number;
90
90
  };
91
91
  afterSnap: {
92
92
  id: string;
93
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
93
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
94
94
  } | {
95
95
  id: string;
96
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
96
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
97
97
  };
98
98
  beforeDrag: {
99
99
  id: string;
@@ -324,26 +324,26 @@ export declare function useMagicEmitter(): {
324
324
  } & Omit<{
325
325
  beforeSnap: {
326
326
  id: string;
327
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
327
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
328
328
  } | {
329
329
  id: string;
330
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
330
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
331
331
  };
332
332
  snapTo: {
333
333
  id: string;
334
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
334
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
335
335
  duration?: number;
336
336
  } | {
337
337
  id: string;
338
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
338
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
339
339
  duration?: number;
340
340
  };
341
341
  afterSnap: {
342
342
  id: string;
343
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
343
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
344
344
  } | {
345
345
  id: string;
346
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
346
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
347
347
  };
348
348
  beforeDrag: {
349
349
  id: string;
@@ -576,26 +576,26 @@ export declare function useMagicEmitter(): {
576
576
  } & Omit<{
577
577
  beforeSnap: {
578
578
  id: string;
579
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
579
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
580
580
  } | {
581
581
  id: string;
582
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
582
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
583
583
  };
584
584
  snapTo: {
585
585
  id: string;
586
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
586
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
587
587
  duration?: number;
588
588
  } | {
589
589
  id: string;
590
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
590
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
591
591
  duration?: number;
592
592
  };
593
593
  afterSnap: {
594
594
  id: string;
595
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
595
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
596
596
  } | {
597
597
  id: string;
598
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
598
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
599
599
  };
600
600
  beforeDrag: {
601
601
  id: string;
@@ -826,26 +826,26 @@ export declare function useMagicEmitter(): {
826
826
  } & Omit<{
827
827
  beforeSnap: {
828
828
  id: string;
829
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
829
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
830
830
  } | {
831
831
  id: string;
832
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
832
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
833
833
  };
834
834
  snapTo: {
835
835
  id: string;
836
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
836
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
837
837
  duration?: number;
838
838
  } | {
839
839
  id: string;
840
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
840
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
841
841
  duration?: number;
842
842
  };
843
843
  afterSnap: {
844
844
  id: string;
845
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
845
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
846
846
  } | {
847
847
  id: string;
848
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
848
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
849
849
  };
850
850
  beforeDrag: {
851
851
  id: string;
@@ -1078,26 +1078,26 @@ export declare function useMagicEmitter(): {
1078
1078
  } & Omit<{
1079
1079
  beforeSnap: {
1080
1080
  id: string;
1081
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1081
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1082
1082
  } | {
1083
1083
  id: string;
1084
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1084
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1085
1085
  };
1086
1086
  snapTo: {
1087
1087
  id: string;
1088
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1088
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1089
1089
  duration?: number;
1090
1090
  } | {
1091
1091
  id: string;
1092
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1092
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1093
1093
  duration?: number;
1094
1094
  };
1095
1095
  afterSnap: {
1096
1096
  id: string;
1097
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1097
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1098
1098
  } | {
1099
1099
  id: string;
1100
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1100
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1101
1101
  };
1102
1102
  beforeDrag: {
1103
1103
  id: string;
@@ -1328,26 +1328,26 @@ export declare function useMagicEmitter(): {
1328
1328
  } & Omit<{
1329
1329
  beforeSnap: {
1330
1330
  id: string;
1331
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1331
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1332
1332
  } | {
1333
1333
  id: string;
1334
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1334
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1335
1335
  };
1336
1336
  snapTo: {
1337
1337
  id: string;
1338
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1338
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1339
1339
  duration?: number;
1340
1340
  } | {
1341
1341
  id: string;
1342
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1342
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1343
1343
  duration?: number;
1344
1344
  };
1345
1345
  afterSnap: {
1346
1346
  id: string;
1347
- snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1347
+ snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1348
1348
  } | {
1349
1349
  id: string;
1350
- snapPoint: import("../../../MagicDraggable/src/types/index.js").DraggableSnapPoint;
1350
+ snapPoint: import("../../../MagicDrawer/src/types/index.js").DrawerSnapPoint;
1351
1351
  };
1352
1352
  beforeDrag: {
1353
1353
  id: string;
@@ -12,19 +12,19 @@ declare const mappedOptions: Omit<MagicModalOptions, keyof MagicModalOptions> &
12
12
  content?: string;
13
13
  backdrop?: string;
14
14
  };
15
- backdrop: boolean;
16
15
  tag: "div" | "dialog";
17
- focusTrap: boolean | import("focus-trap").Options;
18
16
  scrollLock: boolean | {
19
17
  padding: boolean;
20
18
  };
19
+ keyListener: {
20
+ close?: string[] | false;
21
+ };
22
+ backdrop: boolean;
23
+ focusTrap: boolean | import("focus-trap").Options;
21
24
  teleport: {
22
25
  target?: string;
23
26
  disabled?: boolean;
24
27
  };
25
- keyListener: {
26
- close?: string[] | false;
27
- };
28
28
  };
29
29
  declare const mappedId: string;
30
30
  declare const close: () => void;
@@ -28,7 +28,6 @@ export declare function useMagicPlayer(id: MaybeRef<string>): {
28
28
  mute: () => void;
29
29
  unmute: () => void;
30
30
  };
31
- mediaApi: void;
32
31
  videoApi: {
33
32
  play: () => void;
34
33
  pause: () => void;
@@ -7,7 +7,6 @@ import { usePlayerControlsApi } from "./private/usePlayerControlsApi.mjs";
7
7
  import { usePlayerState } from "./private/usePlayerState.mjs";
8
8
  export function useMagicPlayer(id) {
9
9
  const audioApi = usePlayerAudioApi({ id });
10
- const mediaApi = usePlayerMediaApi({ id });
11
10
  const videoApi = usePlayerVideoApi({ id });
12
11
  const controlsApi = usePlayerControlsApi({ id });
13
12
  const playerRuntime = usePlayerRuntime({ id });
@@ -57,7 +56,6 @@ export function useMagicPlayer(id) {
57
56
  thumbPercentage,
58
57
  popoverOffsetX,
59
58
  audioApi,
60
- mediaApi,
61
59
  videoApi,
62
60
  controlsApi,
63
61
  playerRuntime
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment",
3
3
  "description": "Our Frontend Toolkit, Free and Open Source",
4
- "version": "1.0.0-beta.19",
4
+ "version": "1.0.0-beta.20",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Robin Scholz",