@maas/vue-equipment 0.28.4 → 0.29.1
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/nuxt/module.mjs +1 -1
- package/dist/plugins/MagicDraggable/index.d.ts +2 -2
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +2 -2
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +28 -2
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +5 -4
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.mjs +11 -1
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.d.ts +1 -103
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableState.mjs +2 -3
- package/dist/plugins/MagicDraggable/src/types/index.d.ts +38 -3
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.mjs +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.d.ts +4 -4
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.mjs +2 -2
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.mjs +2 -2
- package/dist/plugins/MagicDrawer/src/composables/useMagicDrawer.d.ts +2 -2
- package/dist/plugins/MagicDrawer/src/composables/useMagicDrawer.mjs +2 -2
- package/dist/plugins/MagicDrawer/src/types/index.d.ts +6 -6
- package/dist/plugins/MagicEmitter/src/composables/useMagicEmitter.d.ts +394 -58
- package/dist/plugins/MagicEmitter/src/types/index.d.ts +5 -3
- package/package.json +1 -1
|
@@ -1,24 +1,80 @@
|
|
|
1
1
|
export declare function useMagicEmitter(): {
|
|
2
2
|
on: {
|
|
3
|
-
<Key extends "progress" | "
|
|
3
|
+
<Key extends "progress" | "collision" | keyof import("../../..").DraggableEvents | keyof import("../../..").CookieEvents | keyof import("../../..").CommandEvents>(type: Key, handler: import("mitt").Handler<({
|
|
4
4
|
collision: {
|
|
5
5
|
dir: "up" | "down";
|
|
6
6
|
pos: "top" | "bottom";
|
|
7
7
|
el: HTMLElement;
|
|
8
8
|
data?: Record<string, unknown> | undefined;
|
|
9
9
|
};
|
|
10
|
-
} & {
|
|
10
|
+
} & Omit<{
|
|
11
11
|
beforeEnter: string;
|
|
12
12
|
enter: string;
|
|
13
13
|
afterEnter: string;
|
|
14
14
|
beforeLeave: string;
|
|
15
15
|
leave: string;
|
|
16
16
|
afterLeave: string;
|
|
17
|
-
} & {
|
|
17
|
+
} & Omit<{
|
|
18
18
|
accept: import("../../../MagicCookie/src/types").CookieConsent;
|
|
19
19
|
reject: import("../../../MagicCookie/src/types").CookieConsent;
|
|
20
20
|
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
21
|
-
} & {
|
|
21
|
+
} & Omit<{
|
|
22
|
+
beforeSnap: {
|
|
23
|
+
id: string;
|
|
24
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
25
|
+
} | {
|
|
26
|
+
id: string;
|
|
27
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
28
|
+
};
|
|
29
|
+
snapTo: {
|
|
30
|
+
id: string;
|
|
31
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
32
|
+
duration?: number | undefined;
|
|
33
|
+
} | {
|
|
34
|
+
id: string;
|
|
35
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
36
|
+
duration?: number | undefined;
|
|
37
|
+
};
|
|
38
|
+
afterSnap: {
|
|
39
|
+
id: string;
|
|
40
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
41
|
+
} | {
|
|
42
|
+
id: string;
|
|
43
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
44
|
+
};
|
|
45
|
+
beforeDrag: {
|
|
46
|
+
id: string;
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
} | {
|
|
50
|
+
id: string;
|
|
51
|
+
x: number;
|
|
52
|
+
y: number;
|
|
53
|
+
};
|
|
54
|
+
drag: {
|
|
55
|
+
id: string;
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
} | {
|
|
59
|
+
id: string;
|
|
60
|
+
x: number;
|
|
61
|
+
y: number;
|
|
62
|
+
};
|
|
63
|
+
afterDrag: {
|
|
64
|
+
id: string;
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
} | {
|
|
68
|
+
id: string;
|
|
69
|
+
x: number;
|
|
70
|
+
y: number;
|
|
71
|
+
};
|
|
72
|
+
dragCanceled: {
|
|
73
|
+
id: string;
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
};
|
|
77
|
+
} & Omit<{
|
|
22
78
|
beforeEnter: string;
|
|
23
79
|
enter: string;
|
|
24
80
|
afterEnter: string;
|
|
@@ -27,16 +83,16 @@ export declare function useMagicEmitter(): {
|
|
|
27
83
|
afterLeave: string;
|
|
28
84
|
beforeSnap: {
|
|
29
85
|
id: string;
|
|
30
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
86
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
31
87
|
};
|
|
32
88
|
snapTo: {
|
|
33
89
|
id: string;
|
|
34
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
90
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
35
91
|
duration?: number | undefined;
|
|
36
92
|
};
|
|
37
93
|
afterSnap: {
|
|
38
94
|
id: string;
|
|
39
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
95
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
40
96
|
};
|
|
41
97
|
beforeDrag: {
|
|
42
98
|
id: string;
|
|
@@ -58,21 +114,21 @@ export declare function useMagicEmitter(): {
|
|
|
58
114
|
x: number;
|
|
59
115
|
y: number;
|
|
60
116
|
};
|
|
61
|
-
} & {
|
|
117
|
+
} & Omit<{
|
|
62
118
|
beforeEnter: string;
|
|
63
119
|
enter: string;
|
|
64
120
|
afterEnter: string;
|
|
65
121
|
beforeLeave: string;
|
|
66
122
|
leave: string;
|
|
67
123
|
afterLeave: string;
|
|
68
|
-
} & {
|
|
124
|
+
} & Omit<{
|
|
69
125
|
beforeEnter: string;
|
|
70
126
|
enter: string;
|
|
71
127
|
afterEnter: string;
|
|
72
128
|
beforeLeave: string;
|
|
73
129
|
leave: string;
|
|
74
130
|
afterLeave: string;
|
|
75
|
-
})[Key]>): void;
|
|
131
|
+
} & Omit<{}, keyof import("../../..").ToastEvents>, keyof import("../../..").ModalEvents>, keyof import("../../..").DrawerEvents>, keyof import("../../..").DraggableEvents>, keyof import("../../..").CookieEvents>, keyof import("../../..").CommandEvents>, "collision">)[Key]>): void;
|
|
76
132
|
(type: "*", handler: import("mitt").WildcardHandler<{
|
|
77
133
|
collision: {
|
|
78
134
|
dir: "up" | "down";
|
|
@@ -80,18 +136,74 @@ export declare function useMagicEmitter(): {
|
|
|
80
136
|
el: HTMLElement;
|
|
81
137
|
data?: Record<string, unknown> | undefined;
|
|
82
138
|
};
|
|
83
|
-
} & {
|
|
139
|
+
} & Omit<{
|
|
84
140
|
beforeEnter: string;
|
|
85
141
|
enter: string;
|
|
86
142
|
afterEnter: string;
|
|
87
143
|
beforeLeave: string;
|
|
88
144
|
leave: string;
|
|
89
145
|
afterLeave: string;
|
|
90
|
-
} & {
|
|
146
|
+
} & Omit<{
|
|
91
147
|
accept: import("../../../MagicCookie/src/types").CookieConsent;
|
|
92
148
|
reject: import("../../../MagicCookie/src/types").CookieConsent;
|
|
93
149
|
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
94
|
-
} & {
|
|
150
|
+
} & Omit<{
|
|
151
|
+
beforeSnap: {
|
|
152
|
+
id: string;
|
|
153
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
154
|
+
} | {
|
|
155
|
+
id: string;
|
|
156
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
157
|
+
};
|
|
158
|
+
snapTo: {
|
|
159
|
+
id: string;
|
|
160
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
161
|
+
duration?: number | undefined;
|
|
162
|
+
} | {
|
|
163
|
+
id: string;
|
|
164
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
165
|
+
duration?: number | undefined;
|
|
166
|
+
};
|
|
167
|
+
afterSnap: {
|
|
168
|
+
id: string;
|
|
169
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
170
|
+
} | {
|
|
171
|
+
id: string;
|
|
172
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
173
|
+
};
|
|
174
|
+
beforeDrag: {
|
|
175
|
+
id: string;
|
|
176
|
+
x: number;
|
|
177
|
+
y: number;
|
|
178
|
+
} | {
|
|
179
|
+
id: string;
|
|
180
|
+
x: number;
|
|
181
|
+
y: number;
|
|
182
|
+
};
|
|
183
|
+
drag: {
|
|
184
|
+
id: string;
|
|
185
|
+
x: number;
|
|
186
|
+
y: number;
|
|
187
|
+
} | {
|
|
188
|
+
id: string;
|
|
189
|
+
x: number;
|
|
190
|
+
y: number;
|
|
191
|
+
};
|
|
192
|
+
afterDrag: {
|
|
193
|
+
id: string;
|
|
194
|
+
x: number;
|
|
195
|
+
y: number;
|
|
196
|
+
} | {
|
|
197
|
+
id: string;
|
|
198
|
+
x: number;
|
|
199
|
+
y: number;
|
|
200
|
+
};
|
|
201
|
+
dragCanceled: {
|
|
202
|
+
id: string;
|
|
203
|
+
x: number;
|
|
204
|
+
y: number;
|
|
205
|
+
};
|
|
206
|
+
} & Omit<{
|
|
95
207
|
beforeEnter: string;
|
|
96
208
|
enter: string;
|
|
97
209
|
afterEnter: string;
|
|
@@ -100,16 +212,16 @@ export declare function useMagicEmitter(): {
|
|
|
100
212
|
afterLeave: string;
|
|
101
213
|
beforeSnap: {
|
|
102
214
|
id: string;
|
|
103
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
215
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
104
216
|
};
|
|
105
217
|
snapTo: {
|
|
106
218
|
id: string;
|
|
107
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
219
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
108
220
|
duration?: number | undefined;
|
|
109
221
|
};
|
|
110
222
|
afterSnap: {
|
|
111
223
|
id: string;
|
|
112
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
224
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
113
225
|
};
|
|
114
226
|
beforeDrag: {
|
|
115
227
|
id: string;
|
|
@@ -131,42 +243,98 @@ export declare function useMagicEmitter(): {
|
|
|
131
243
|
x: number;
|
|
132
244
|
y: number;
|
|
133
245
|
};
|
|
134
|
-
} & {
|
|
246
|
+
} & Omit<{
|
|
135
247
|
beforeEnter: string;
|
|
136
248
|
enter: string;
|
|
137
249
|
afterEnter: string;
|
|
138
250
|
beforeLeave: string;
|
|
139
251
|
leave: string;
|
|
140
252
|
afterLeave: string;
|
|
141
|
-
} & {
|
|
253
|
+
} & Omit<{
|
|
142
254
|
beforeEnter: string;
|
|
143
255
|
enter: string;
|
|
144
256
|
afterEnter: string;
|
|
145
257
|
beforeLeave: string;
|
|
146
258
|
leave: string;
|
|
147
259
|
afterLeave: string;
|
|
148
|
-
}
|
|
260
|
+
} & Omit<{}, keyof import("../../..").ToastEvents>, keyof import("../../..").ModalEvents>, keyof import("../../..").DrawerEvents>, keyof import("../../..").DraggableEvents>, keyof import("../../..").CookieEvents>, keyof import("../../..").CommandEvents>, "collision">>): void;
|
|
149
261
|
};
|
|
150
262
|
off: {
|
|
151
|
-
<Key_1 extends "progress" | "
|
|
263
|
+
<Key_1 extends "progress" | "collision" | keyof import("../../..").DraggableEvents | keyof import("../../..").CookieEvents | keyof import("../../..").CommandEvents>(type: Key_1, handler?: import("mitt").Handler<({
|
|
152
264
|
collision: {
|
|
153
265
|
dir: "up" | "down";
|
|
154
266
|
pos: "top" | "bottom";
|
|
155
267
|
el: HTMLElement;
|
|
156
268
|
data?: Record<string, unknown> | undefined;
|
|
157
269
|
};
|
|
158
|
-
} & {
|
|
270
|
+
} & Omit<{
|
|
159
271
|
beforeEnter: string;
|
|
160
272
|
enter: string;
|
|
161
273
|
afterEnter: string;
|
|
162
274
|
beforeLeave: string;
|
|
163
275
|
leave: string;
|
|
164
276
|
afterLeave: string;
|
|
165
|
-
} & {
|
|
277
|
+
} & Omit<{
|
|
166
278
|
accept: import("../../../MagicCookie/src/types").CookieConsent;
|
|
167
279
|
reject: import("../../../MagicCookie/src/types").CookieConsent;
|
|
168
280
|
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
169
|
-
} & {
|
|
281
|
+
} & Omit<{
|
|
282
|
+
beforeSnap: {
|
|
283
|
+
id: string;
|
|
284
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
285
|
+
} | {
|
|
286
|
+
id: string;
|
|
287
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
288
|
+
};
|
|
289
|
+
snapTo: {
|
|
290
|
+
id: string;
|
|
291
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
292
|
+
duration?: number | undefined;
|
|
293
|
+
} | {
|
|
294
|
+
id: string;
|
|
295
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
296
|
+
duration?: number | undefined;
|
|
297
|
+
};
|
|
298
|
+
afterSnap: {
|
|
299
|
+
id: string;
|
|
300
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
301
|
+
} | {
|
|
302
|
+
id: string;
|
|
303
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
304
|
+
};
|
|
305
|
+
beforeDrag: {
|
|
306
|
+
id: string;
|
|
307
|
+
x: number;
|
|
308
|
+
y: number;
|
|
309
|
+
} | {
|
|
310
|
+
id: string;
|
|
311
|
+
x: number;
|
|
312
|
+
y: number;
|
|
313
|
+
};
|
|
314
|
+
drag: {
|
|
315
|
+
id: string;
|
|
316
|
+
x: number;
|
|
317
|
+
y: number;
|
|
318
|
+
} | {
|
|
319
|
+
id: string;
|
|
320
|
+
x: number;
|
|
321
|
+
y: number;
|
|
322
|
+
};
|
|
323
|
+
afterDrag: {
|
|
324
|
+
id: string;
|
|
325
|
+
x: number;
|
|
326
|
+
y: number;
|
|
327
|
+
} | {
|
|
328
|
+
id: string;
|
|
329
|
+
x: number;
|
|
330
|
+
y: number;
|
|
331
|
+
};
|
|
332
|
+
dragCanceled: {
|
|
333
|
+
id: string;
|
|
334
|
+
x: number;
|
|
335
|
+
y: number;
|
|
336
|
+
};
|
|
337
|
+
} & Omit<{
|
|
170
338
|
beforeEnter: string;
|
|
171
339
|
enter: string;
|
|
172
340
|
afterEnter: string;
|
|
@@ -175,16 +343,16 @@ export declare function useMagicEmitter(): {
|
|
|
175
343
|
afterLeave: string;
|
|
176
344
|
beforeSnap: {
|
|
177
345
|
id: string;
|
|
178
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
346
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
179
347
|
};
|
|
180
348
|
snapTo: {
|
|
181
349
|
id: string;
|
|
182
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
350
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
183
351
|
duration?: number | undefined;
|
|
184
352
|
};
|
|
185
353
|
afterSnap: {
|
|
186
354
|
id: string;
|
|
187
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
355
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
188
356
|
};
|
|
189
357
|
beforeDrag: {
|
|
190
358
|
id: string;
|
|
@@ -206,21 +374,21 @@ export declare function useMagicEmitter(): {
|
|
|
206
374
|
x: number;
|
|
207
375
|
y: number;
|
|
208
376
|
};
|
|
209
|
-
} & {
|
|
377
|
+
} & Omit<{
|
|
210
378
|
beforeEnter: string;
|
|
211
379
|
enter: string;
|
|
212
380
|
afterEnter: string;
|
|
213
381
|
beforeLeave: string;
|
|
214
382
|
leave: string;
|
|
215
383
|
afterLeave: string;
|
|
216
|
-
} & {
|
|
384
|
+
} & Omit<{
|
|
217
385
|
beforeEnter: string;
|
|
218
386
|
enter: string;
|
|
219
387
|
afterEnter: string;
|
|
220
388
|
beforeLeave: string;
|
|
221
389
|
leave: string;
|
|
222
390
|
afterLeave: string;
|
|
223
|
-
})[Key_1]> | undefined): void;
|
|
391
|
+
} & Omit<{}, keyof import("../../..").ToastEvents>, keyof import("../../..").ModalEvents>, keyof import("../../..").DrawerEvents>, keyof import("../../..").DraggableEvents>, keyof import("../../..").CookieEvents>, keyof import("../../..").CommandEvents>, "collision">)[Key_1]> | undefined): void;
|
|
224
392
|
(type: "*", handler: import("mitt").WildcardHandler<{
|
|
225
393
|
collision: {
|
|
226
394
|
dir: "up" | "down";
|
|
@@ -228,18 +396,74 @@ export declare function useMagicEmitter(): {
|
|
|
228
396
|
el: HTMLElement;
|
|
229
397
|
data?: Record<string, unknown> | undefined;
|
|
230
398
|
};
|
|
231
|
-
} & {
|
|
399
|
+
} & Omit<{
|
|
232
400
|
beforeEnter: string;
|
|
233
401
|
enter: string;
|
|
234
402
|
afterEnter: string;
|
|
235
403
|
beforeLeave: string;
|
|
236
404
|
leave: string;
|
|
237
405
|
afterLeave: string;
|
|
238
|
-
} & {
|
|
406
|
+
} & Omit<{
|
|
239
407
|
accept: import("../../../MagicCookie/src/types").CookieConsent;
|
|
240
408
|
reject: import("../../../MagicCookie/src/types").CookieConsent;
|
|
241
409
|
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
242
|
-
} & {
|
|
410
|
+
} & Omit<{
|
|
411
|
+
beforeSnap: {
|
|
412
|
+
id: string;
|
|
413
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
414
|
+
} | {
|
|
415
|
+
id: string;
|
|
416
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
417
|
+
};
|
|
418
|
+
snapTo: {
|
|
419
|
+
id: string;
|
|
420
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
421
|
+
duration?: number | undefined;
|
|
422
|
+
} | {
|
|
423
|
+
id: string;
|
|
424
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
425
|
+
duration?: number | undefined;
|
|
426
|
+
};
|
|
427
|
+
afterSnap: {
|
|
428
|
+
id: string;
|
|
429
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
430
|
+
} | {
|
|
431
|
+
id: string;
|
|
432
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
433
|
+
};
|
|
434
|
+
beforeDrag: {
|
|
435
|
+
id: string;
|
|
436
|
+
x: number;
|
|
437
|
+
y: number;
|
|
438
|
+
} | {
|
|
439
|
+
id: string;
|
|
440
|
+
x: number;
|
|
441
|
+
y: number;
|
|
442
|
+
};
|
|
443
|
+
drag: {
|
|
444
|
+
id: string;
|
|
445
|
+
x: number;
|
|
446
|
+
y: number;
|
|
447
|
+
} | {
|
|
448
|
+
id: string;
|
|
449
|
+
x: number;
|
|
450
|
+
y: number;
|
|
451
|
+
};
|
|
452
|
+
afterDrag: {
|
|
453
|
+
id: string;
|
|
454
|
+
x: number;
|
|
455
|
+
y: number;
|
|
456
|
+
} | {
|
|
457
|
+
id: string;
|
|
458
|
+
x: number;
|
|
459
|
+
y: number;
|
|
460
|
+
};
|
|
461
|
+
dragCanceled: {
|
|
462
|
+
id: string;
|
|
463
|
+
x: number;
|
|
464
|
+
y: number;
|
|
465
|
+
};
|
|
466
|
+
} & Omit<{
|
|
243
467
|
beforeEnter: string;
|
|
244
468
|
enter: string;
|
|
245
469
|
afterEnter: string;
|
|
@@ -248,16 +472,16 @@ export declare function useMagicEmitter(): {
|
|
|
248
472
|
afterLeave: string;
|
|
249
473
|
beforeSnap: {
|
|
250
474
|
id: string;
|
|
251
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
475
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
252
476
|
};
|
|
253
477
|
snapTo: {
|
|
254
478
|
id: string;
|
|
255
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
479
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
256
480
|
duration?: number | undefined;
|
|
257
481
|
};
|
|
258
482
|
afterSnap: {
|
|
259
483
|
id: string;
|
|
260
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
484
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
261
485
|
};
|
|
262
486
|
beforeDrag: {
|
|
263
487
|
id: string;
|
|
@@ -279,42 +503,98 @@ export declare function useMagicEmitter(): {
|
|
|
279
503
|
x: number;
|
|
280
504
|
y: number;
|
|
281
505
|
};
|
|
282
|
-
} & {
|
|
506
|
+
} & Omit<{
|
|
283
507
|
beforeEnter: string;
|
|
284
508
|
enter: string;
|
|
285
509
|
afterEnter: string;
|
|
286
510
|
beforeLeave: string;
|
|
287
511
|
leave: string;
|
|
288
512
|
afterLeave: string;
|
|
289
|
-
} & {
|
|
513
|
+
} & Omit<{
|
|
290
514
|
beforeEnter: string;
|
|
291
515
|
enter: string;
|
|
292
516
|
afterEnter: string;
|
|
293
517
|
beforeLeave: string;
|
|
294
518
|
leave: string;
|
|
295
519
|
afterLeave: string;
|
|
296
|
-
}
|
|
520
|
+
} & Omit<{}, keyof import("../../..").ToastEvents>, keyof import("../../..").ModalEvents>, keyof import("../../..").DrawerEvents>, keyof import("../../..").DraggableEvents>, keyof import("../../..").CookieEvents>, keyof import("../../..").CommandEvents>, "collision">>): void;
|
|
297
521
|
};
|
|
298
522
|
emit: {
|
|
299
|
-
<Key_2 extends "progress" | "
|
|
523
|
+
<Key_2 extends "progress" | "collision" | keyof import("../../..").DraggableEvents | keyof import("../../..").CookieEvents | keyof import("../../..").CommandEvents>(type: Key_2, event: ({
|
|
300
524
|
collision: {
|
|
301
525
|
dir: "up" | "down";
|
|
302
526
|
pos: "top" | "bottom";
|
|
303
527
|
el: HTMLElement;
|
|
304
528
|
data?: Record<string, unknown> | undefined;
|
|
305
529
|
};
|
|
306
|
-
} & {
|
|
530
|
+
} & Omit<{
|
|
307
531
|
beforeEnter: string;
|
|
308
532
|
enter: string;
|
|
309
533
|
afterEnter: string;
|
|
310
534
|
beforeLeave: string;
|
|
311
535
|
leave: string;
|
|
312
536
|
afterLeave: string;
|
|
313
|
-
} & {
|
|
537
|
+
} & Omit<{
|
|
314
538
|
accept: import("../../../MagicCookie/src/types").CookieConsent;
|
|
315
539
|
reject: import("../../../MagicCookie/src/types").CookieConsent;
|
|
316
540
|
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
317
|
-
} & {
|
|
541
|
+
} & Omit<{
|
|
542
|
+
beforeSnap: {
|
|
543
|
+
id: string;
|
|
544
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
545
|
+
} | {
|
|
546
|
+
id: string;
|
|
547
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
548
|
+
};
|
|
549
|
+
snapTo: {
|
|
550
|
+
id: string;
|
|
551
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
552
|
+
duration?: number | undefined;
|
|
553
|
+
} | {
|
|
554
|
+
id: string;
|
|
555
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
556
|
+
duration?: number | undefined;
|
|
557
|
+
};
|
|
558
|
+
afterSnap: {
|
|
559
|
+
id: string;
|
|
560
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
561
|
+
} | {
|
|
562
|
+
id: string;
|
|
563
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
564
|
+
};
|
|
565
|
+
beforeDrag: {
|
|
566
|
+
id: string;
|
|
567
|
+
x: number;
|
|
568
|
+
y: number;
|
|
569
|
+
} | {
|
|
570
|
+
id: string;
|
|
571
|
+
x: number;
|
|
572
|
+
y: number;
|
|
573
|
+
};
|
|
574
|
+
drag: {
|
|
575
|
+
id: string;
|
|
576
|
+
x: number;
|
|
577
|
+
y: number;
|
|
578
|
+
} | {
|
|
579
|
+
id: string;
|
|
580
|
+
x: number;
|
|
581
|
+
y: number;
|
|
582
|
+
};
|
|
583
|
+
afterDrag: {
|
|
584
|
+
id: string;
|
|
585
|
+
x: number;
|
|
586
|
+
y: number;
|
|
587
|
+
} | {
|
|
588
|
+
id: string;
|
|
589
|
+
x: number;
|
|
590
|
+
y: number;
|
|
591
|
+
};
|
|
592
|
+
dragCanceled: {
|
|
593
|
+
id: string;
|
|
594
|
+
x: number;
|
|
595
|
+
y: number;
|
|
596
|
+
};
|
|
597
|
+
} & Omit<{
|
|
318
598
|
beforeEnter: string;
|
|
319
599
|
enter: string;
|
|
320
600
|
afterEnter: string;
|
|
@@ -323,16 +603,16 @@ export declare function useMagicEmitter(): {
|
|
|
323
603
|
afterLeave: string;
|
|
324
604
|
beforeSnap: {
|
|
325
605
|
id: string;
|
|
326
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
606
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
327
607
|
};
|
|
328
608
|
snapTo: {
|
|
329
609
|
id: string;
|
|
330
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
610
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
331
611
|
duration?: number | undefined;
|
|
332
612
|
};
|
|
333
613
|
afterSnap: {
|
|
334
614
|
id: string;
|
|
335
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
615
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
336
616
|
};
|
|
337
617
|
beforeDrag: {
|
|
338
618
|
id: string;
|
|
@@ -354,40 +634,96 @@ export declare function useMagicEmitter(): {
|
|
|
354
634
|
x: number;
|
|
355
635
|
y: number;
|
|
356
636
|
};
|
|
357
|
-
} & {
|
|
637
|
+
} & Omit<{
|
|
358
638
|
beforeEnter: string;
|
|
359
639
|
enter: string;
|
|
360
640
|
afterEnter: string;
|
|
361
641
|
beforeLeave: string;
|
|
362
642
|
leave: string;
|
|
363
643
|
afterLeave: string;
|
|
364
|
-
} & {
|
|
644
|
+
} & Omit<{
|
|
365
645
|
beforeEnter: string;
|
|
366
646
|
enter: string;
|
|
367
647
|
afterEnter: string;
|
|
368
648
|
beforeLeave: string;
|
|
369
649
|
leave: string;
|
|
370
650
|
afterLeave: string;
|
|
371
|
-
})[Key_2]): void;
|
|
372
|
-
<Key_3 extends "progress" | "
|
|
651
|
+
} & Omit<{}, keyof import("../../..").ToastEvents>, keyof import("../../..").ModalEvents>, keyof import("../../..").DrawerEvents>, keyof import("../../..").DraggableEvents>, keyof import("../../..").CookieEvents>, keyof import("../../..").CommandEvents>, "collision">)[Key_2]): void;
|
|
652
|
+
<Key_3 extends "progress" | "collision" | keyof import("../../..").DraggableEvents | keyof import("../../..").CookieEvents | keyof import("../../..").CommandEvents>(type: undefined extends ({
|
|
373
653
|
collision: {
|
|
374
654
|
dir: "up" | "down";
|
|
375
655
|
pos: "top" | "bottom";
|
|
376
656
|
el: HTMLElement;
|
|
377
657
|
data?: Record<string, unknown> | undefined;
|
|
378
658
|
};
|
|
379
|
-
} & {
|
|
659
|
+
} & Omit<{
|
|
380
660
|
beforeEnter: string;
|
|
381
661
|
enter: string;
|
|
382
662
|
afterEnter: string;
|
|
383
663
|
beforeLeave: string;
|
|
384
664
|
leave: string;
|
|
385
665
|
afterLeave: string;
|
|
386
|
-
} & {
|
|
666
|
+
} & Omit<{
|
|
387
667
|
accept: import("../../../MagicCookie/src/types").CookieConsent;
|
|
388
668
|
reject: import("../../../MagicCookie/src/types").CookieConsent;
|
|
389
669
|
acceptSelected: import("../../../MagicCookie/src/types").CookieConsent;
|
|
390
|
-
} & {
|
|
670
|
+
} & Omit<{
|
|
671
|
+
beforeSnap: {
|
|
672
|
+
id: string;
|
|
673
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
674
|
+
} | {
|
|
675
|
+
id: string;
|
|
676
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
677
|
+
};
|
|
678
|
+
snapTo: {
|
|
679
|
+
id: string;
|
|
680
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
681
|
+
duration?: number | undefined;
|
|
682
|
+
} | {
|
|
683
|
+
id: string;
|
|
684
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
685
|
+
duration?: number | undefined;
|
|
686
|
+
};
|
|
687
|
+
afterSnap: {
|
|
688
|
+
id: string;
|
|
689
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
690
|
+
} | {
|
|
691
|
+
id: string;
|
|
692
|
+
snapPoint: import("../../../MagicDraggable/src/types").DraggableSnapPoint;
|
|
693
|
+
};
|
|
694
|
+
beforeDrag: {
|
|
695
|
+
id: string;
|
|
696
|
+
x: number;
|
|
697
|
+
y: number;
|
|
698
|
+
} | {
|
|
699
|
+
id: string;
|
|
700
|
+
x: number;
|
|
701
|
+
y: number;
|
|
702
|
+
};
|
|
703
|
+
drag: {
|
|
704
|
+
id: string;
|
|
705
|
+
x: number;
|
|
706
|
+
y: number;
|
|
707
|
+
} | {
|
|
708
|
+
id: string;
|
|
709
|
+
x: number;
|
|
710
|
+
y: number;
|
|
711
|
+
};
|
|
712
|
+
afterDrag: {
|
|
713
|
+
id: string;
|
|
714
|
+
x: number;
|
|
715
|
+
y: number;
|
|
716
|
+
} | {
|
|
717
|
+
id: string;
|
|
718
|
+
x: number;
|
|
719
|
+
y: number;
|
|
720
|
+
};
|
|
721
|
+
dragCanceled: {
|
|
722
|
+
id: string;
|
|
723
|
+
x: number;
|
|
724
|
+
y: number;
|
|
725
|
+
};
|
|
726
|
+
} & Omit<{
|
|
391
727
|
beforeEnter: string;
|
|
392
728
|
enter: string;
|
|
393
729
|
afterEnter: string;
|
|
@@ -396,16 +732,16 @@ export declare function useMagicEmitter(): {
|
|
|
396
732
|
afterLeave: string;
|
|
397
733
|
beforeSnap: {
|
|
398
734
|
id: string;
|
|
399
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
735
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
400
736
|
};
|
|
401
737
|
snapTo: {
|
|
402
738
|
id: string;
|
|
403
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
739
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
404
740
|
duration?: number | undefined;
|
|
405
741
|
};
|
|
406
742
|
afterSnap: {
|
|
407
743
|
id: string;
|
|
408
|
-
snapPoint: import("../../../MagicDrawer/src/types").
|
|
744
|
+
snapPoint: import("../../../MagicDrawer/src/types").DrawerSnapPoint;
|
|
409
745
|
};
|
|
410
746
|
beforeDrag: {
|
|
411
747
|
id: string;
|
|
@@ -427,20 +763,20 @@ export declare function useMagicEmitter(): {
|
|
|
427
763
|
x: number;
|
|
428
764
|
y: number;
|
|
429
765
|
};
|
|
430
|
-
} & {
|
|
766
|
+
} & Omit<{
|
|
431
767
|
beforeEnter: string;
|
|
432
768
|
enter: string;
|
|
433
769
|
afterEnter: string;
|
|
434
770
|
beforeLeave: string;
|
|
435
771
|
leave: string;
|
|
436
772
|
afterLeave: string;
|
|
437
|
-
} & {
|
|
773
|
+
} & Omit<{
|
|
438
774
|
beforeEnter: string;
|
|
439
775
|
enter: string;
|
|
440
776
|
afterEnter: string;
|
|
441
777
|
beforeLeave: string;
|
|
442
778
|
leave: string;
|
|
443
779
|
afterLeave: string;
|
|
444
|
-
})[Key_3] ? Key_3 : never): void;
|
|
780
|
+
} & Omit<{}, keyof import("../../..").ToastEvents>, keyof import("../../..").ModalEvents>, keyof import("../../..").DrawerEvents>, keyof import("../../..").DraggableEvents>, keyof import("../../..").CookieEvents>, keyof import("../../..").CommandEvents>, "collision">)[Key_3] ? Key_3 : never): void;
|
|
445
781
|
};
|
|
446
782
|
};
|