@foldkit/ui 0.154.0 → 0.155.0
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/README.md +1 -1
- package/dist/anchor/anchor.d.ts.map +1 -1
- package/dist/animation/index.d.ts +5 -5
- package/dist/animation/schema.d.ts.map +1 -1
- package/dist/animation/update.d.ts.map +1 -1
- package/dist/button/index.d.ts.map +1 -1
- package/dist/calendar/index.d.ts +44 -44
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/checkbox/index.d.ts.map +1 -1
- package/dist/combobox/multi.d.ts +47 -47
- package/dist/combobox/multi.d.ts.map +1 -1
- package/dist/combobox/shared.d.ts +44 -44
- package/dist/combobox/shared.d.ts.map +1 -1
- package/dist/combobox/shared.js +91 -78
- package/dist/combobox/single.d.ts +50 -50
- package/dist/combobox/single.d.ts.map +1 -1
- package/dist/datePicker/index.d.ts +102 -102
- package/dist/datePicker/index.d.ts.map +1 -1
- package/dist/dialog/index.d.ts +38 -18
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/dialog/index.js +66 -39
- package/dist/dialog/public.d.ts +1 -1
- package/dist/dialog/public.d.ts.map +1 -1
- package/dist/disclosure/index.d.ts.map +1 -1
- package/dist/dragAndDrop/index.d.ts +191 -191
- package/dist/dragAndDrop/index.d.ts.map +1 -1
- package/dist/fieldset/index.d.ts.map +1 -1
- package/dist/fileDrop/index.d.ts +10 -10
- package/dist/fileDrop/index.d.ts.map +1 -1
- package/dist/group.d.ts.map +1 -1
- package/dist/hoverIntent/hoverIntent.d.ts +103 -0
- package/dist/hoverIntent/hoverIntent.d.ts.map +1 -0
- package/dist/hoverIntent/hoverIntent.js +210 -0
- package/dist/hoverIntent/index.d.ts +4 -0
- package/dist/hoverIntent/index.d.ts.map +1 -0
- package/dist/hoverIntent/index.js +2 -0
- package/dist/hoverIntent/message.d.ts +42 -0
- package/dist/hoverIntent/message.d.ts.map +1 -0
- package/dist/hoverIntent/message.js +23 -0
- package/dist/hoverIntent/public.d.ts +3 -0
- package/dist/hoverIntent/public.d.ts.map +1 -0
- package/dist/hoverIntent/public.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/input/index.d.ts.map +1 -1
- package/dist/internal/optionExtensions.d.ts.map +1 -1
- package/dist/internal/selectors.d.ts.map +1 -1
- package/dist/keyboard.d.ts.map +1 -1
- package/dist/listbox/multi.d.ts +43 -43
- package/dist/listbox/multi.d.ts.map +1 -1
- package/dist/listbox/shared.d.ts +38 -38
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/shared.js +46 -39
- package/dist/listbox/single.d.ts +45 -45
- package/dist/listbox/single.d.ts.map +1 -1
- package/dist/menu/index.d.ts +70 -70
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +39 -32
- package/dist/nav/index.d.ts.map +1 -1
- package/dist/popover/index.d.ts +33 -33
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +36 -29
- package/dist/radioGroup/index.d.ts +6 -6
- package/dist/radioGroup/index.d.ts.map +1 -1
- package/dist/select/index.d.ts.map +1 -1
- package/dist/slider/index.d.ts +72 -72
- package/dist/slider/index.d.ts.map +1 -1
- package/dist/switch/index.d.ts.map +1 -1
- package/dist/tabs/index.d.ts +6 -6
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.d.ts +18 -15
- package/dist/test/apps/disabledButton.d.ts.map +1 -1
- package/dist/textarea/index.d.ts.map +1 -1
- package/dist/toast/index.d.ts +224 -224
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/schema.d.ts +16 -16
- package/dist/toast/schema.d.ts.map +1 -1
- package/dist/toast/test.d.ts.map +1 -1
- package/dist/toast/update.d.ts +151 -151
- package/dist/toast/update.d.ts.map +1 -1
- package/dist/tooltip/message.d.ts +2 -2
- package/dist/tooltip/message.d.ts.map +1 -1
- package/dist/tooltip/tooltip.d.ts +7 -7
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +15 -11
- package/dist/typeahead.d.ts.map +1 -1
- package/dist/virtualList/index.d.ts +10 -10
- package/dist/virtualList/index.d.ts.map +1 -1
- package/dist/virtualList/index.js +5 -5
- package/package.json +12 -10
|
@@ -15,37 +15,37 @@ export declare const Model: S.Struct<{
|
|
|
15
15
|
readonly dragState: import("foldkit/schema").TaggedUnion<{
|
|
16
16
|
readonly Idle: {};
|
|
17
17
|
readonly Pending: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
itemId: S.String;
|
|
19
|
+
containerId: S.String;
|
|
20
|
+
index: S.Number;
|
|
21
|
+
origin: S.Struct<{
|
|
22
22
|
readonly screenX: S.Number;
|
|
23
23
|
readonly screenY: S.Number;
|
|
24
24
|
}>;
|
|
25
25
|
};
|
|
26
26
|
readonly Dragging: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
itemId: S.String;
|
|
28
|
+
sourceContainerId: S.String;
|
|
29
|
+
sourceIndex: S.Number;
|
|
30
|
+
origin: S.Struct<{
|
|
31
31
|
readonly screenX: S.Number;
|
|
32
32
|
readonly screenY: S.Number;
|
|
33
33
|
}>;
|
|
34
|
-
|
|
34
|
+
current: S.Struct<{
|
|
35
35
|
readonly clientX: S.Number;
|
|
36
36
|
readonly clientY: S.Number;
|
|
37
37
|
}>;
|
|
38
|
-
|
|
38
|
+
maybeDropTarget: S.Option<S.Struct<{
|
|
39
39
|
readonly containerId: S.String;
|
|
40
40
|
readonly index: S.Number;
|
|
41
41
|
}>>;
|
|
42
42
|
};
|
|
43
43
|
readonly KeyboardDragging: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
itemId: S.String;
|
|
45
|
+
sourceContainerId: S.String;
|
|
46
|
+
sourceIndex: S.Number;
|
|
47
|
+
targetContainerId: S.String;
|
|
48
|
+
targetIndex: S.Number;
|
|
49
49
|
};
|
|
50
50
|
}>;
|
|
51
51
|
}>;
|
|
@@ -53,18 +53,18 @@ export type Model = typeof Model.Type;
|
|
|
53
53
|
/** Union of all messages the drag-and-drop component can produce. */
|
|
54
54
|
export declare const Message: import("foldkit/message").MessageUnion<{
|
|
55
55
|
readonly PressedDraggable: {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
itemId: S.String;
|
|
57
|
+
containerId: S.String;
|
|
58
|
+
index: S.Number;
|
|
59
|
+
screenX: S.Number;
|
|
60
|
+
screenY: S.Number;
|
|
61
61
|
};
|
|
62
62
|
readonly MovedPointer: {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
screenX: S.Number;
|
|
64
|
+
screenY: S.Number;
|
|
65
|
+
clientX: S.Number;
|
|
66
|
+
clientY: S.Number;
|
|
67
|
+
maybeDropTarget: S.Option<S.Struct<{
|
|
68
68
|
readonly containerId: S.String;
|
|
69
69
|
readonly index: S.Number;
|
|
70
70
|
}>>;
|
|
@@ -72,17 +72,17 @@ export declare const Message: import("foldkit/message").MessageUnion<{
|
|
|
72
72
|
readonly ReleasedPointer: {};
|
|
73
73
|
readonly CancelledDrag: {};
|
|
74
74
|
readonly ActivatedKeyboardDrag: {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
itemId: S.String;
|
|
76
|
+
containerId: S.String;
|
|
77
|
+
index: S.Number;
|
|
78
78
|
};
|
|
79
79
|
readonly CompletedResolveKeyboardMove: {
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
targetContainerId: S.String;
|
|
81
|
+
targetIndex: S.Number;
|
|
82
82
|
};
|
|
83
83
|
readonly ConfirmedKeyboardDrop: {};
|
|
84
84
|
readonly PressedArrowKey: {
|
|
85
|
-
|
|
85
|
+
direction: S.Literals<readonly ["Up", "Down", "Left", "Right", "NextContainer", "PreviousContainer"]>;
|
|
86
86
|
};
|
|
87
87
|
readonly AdvancedAutoScrollFrame: {};
|
|
88
88
|
readonly CompletedFocusItem: {};
|
|
@@ -91,11 +91,11 @@ export type Message = typeof Message.Type;
|
|
|
91
91
|
/** Union of all out-messages the drag-and-drop component can emit to its parent. */
|
|
92
92
|
export declare const OutMessage: import("foldkit/message").MessageUnion<{
|
|
93
93
|
readonly Reordered: {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
itemId: S.String;
|
|
95
|
+
fromContainerId: S.String;
|
|
96
|
+
fromIndex: S.Number;
|
|
97
|
+
toContainerId: S.String;
|
|
98
|
+
toIndex: S.Number;
|
|
99
99
|
};
|
|
100
100
|
readonly Cancelled: {};
|
|
101
101
|
}>;
|
|
@@ -132,17 +132,6 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
132
132
|
readonly orientation: "Horizontal" | "Vertical";
|
|
133
133
|
readonly activationThreshold: number;
|
|
134
134
|
readonly dragState: {
|
|
135
|
-
readonly _tag: "Idle";
|
|
136
|
-
} | {
|
|
137
|
-
readonly _tag: "Pending";
|
|
138
|
-
readonly itemId: string;
|
|
139
|
-
readonly containerId: string;
|
|
140
|
-
readonly index: number;
|
|
141
|
-
readonly origin: {
|
|
142
|
-
readonly screenX: number;
|
|
143
|
-
readonly screenY: number;
|
|
144
|
-
};
|
|
145
|
-
} | {
|
|
146
135
|
readonly _tag: "Dragging";
|
|
147
136
|
readonly itemId: string;
|
|
148
137
|
readonly sourceContainerId: string;
|
|
@@ -159,6 +148,8 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
159
148
|
readonly containerId: string;
|
|
160
149
|
readonly index: number;
|
|
161
150
|
}>;
|
|
151
|
+
} | {
|
|
152
|
+
readonly _tag: "Idle";
|
|
162
153
|
} | {
|
|
163
154
|
readonly _tag: "KeyboardDragging";
|
|
164
155
|
readonly itemId: string;
|
|
@@ -166,15 +157,34 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
166
157
|
readonly sourceIndex: number;
|
|
167
158
|
readonly targetContainerId: string;
|
|
168
159
|
readonly targetIndex: number;
|
|
160
|
+
} | {
|
|
161
|
+
readonly _tag: "Pending";
|
|
162
|
+
readonly itemId: string;
|
|
163
|
+
readonly containerId: string;
|
|
164
|
+
readonly index: number;
|
|
165
|
+
readonly origin: {
|
|
166
|
+
readonly screenX: number;
|
|
167
|
+
readonly screenY: number;
|
|
168
|
+
};
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
171
|
commands?: Update.Commands<{
|
|
172
|
-
readonly _tag: "
|
|
172
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
173
173
|
readonly itemId: string;
|
|
174
174
|
readonly containerId: string;
|
|
175
175
|
readonly index: number;
|
|
176
|
-
|
|
177
|
-
readonly
|
|
176
|
+
} | {
|
|
177
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
178
|
+
} | {
|
|
179
|
+
readonly _tag: "CancelledDrag";
|
|
180
|
+
} | {
|
|
181
|
+
readonly _tag: "CompletedFocusItem";
|
|
182
|
+
} | {
|
|
183
|
+
readonly _tag: "CompletedResolveKeyboardMove";
|
|
184
|
+
readonly targetContainerId: string;
|
|
185
|
+
readonly targetIndex: number;
|
|
186
|
+
} | {
|
|
187
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
178
188
|
} | {
|
|
179
189
|
readonly _tag: "MovedPointer";
|
|
180
190
|
readonly screenX: number;
|
|
@@ -186,37 +196,27 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
186
196
|
readonly index: number;
|
|
187
197
|
}>;
|
|
188
198
|
} | {
|
|
189
|
-
readonly _tag: "
|
|
190
|
-
|
|
191
|
-
readonly _tag: "CancelledDrag";
|
|
199
|
+
readonly _tag: "PressedArrowKey";
|
|
200
|
+
readonly direction: "Down" | "Left" | "NextContainer" | "PreviousContainer" | "Right" | "Up";
|
|
192
201
|
} | {
|
|
193
|
-
readonly _tag: "
|
|
202
|
+
readonly _tag: "PressedDraggable";
|
|
194
203
|
readonly itemId: string;
|
|
195
204
|
readonly containerId: string;
|
|
196
205
|
readonly index: number;
|
|
206
|
+
readonly screenX: number;
|
|
207
|
+
readonly screenY: number;
|
|
197
208
|
} | {
|
|
198
|
-
readonly _tag: "
|
|
199
|
-
readonly targetContainerId: string;
|
|
200
|
-
readonly targetIndex: number;
|
|
201
|
-
} | {
|
|
202
|
-
readonly _tag: "ConfirmedKeyboardDrop";
|
|
203
|
-
} | {
|
|
204
|
-
readonly _tag: "PressedArrowKey";
|
|
205
|
-
readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
|
|
206
|
-
} | {
|
|
207
|
-
readonly _tag: "AdvancedAutoScrollFrame";
|
|
208
|
-
} | {
|
|
209
|
-
readonly _tag: "CompletedFocusItem";
|
|
209
|
+
readonly _tag: "ReleasedPointer";
|
|
210
210
|
}, never>;
|
|
211
211
|
outMessage?: {
|
|
212
|
+
readonly _tag: "Cancelled";
|
|
213
|
+
} | {
|
|
212
214
|
readonly _tag: "Reordered";
|
|
213
215
|
readonly itemId: string;
|
|
214
216
|
readonly fromContainerId: string;
|
|
215
217
|
readonly fromIndex: number;
|
|
216
218
|
readonly toContainerId: string;
|
|
217
219
|
readonly toIndex: number;
|
|
218
|
-
} | {
|
|
219
|
-
readonly _tag: "Cancelled";
|
|
220
220
|
};
|
|
221
221
|
}>;
|
|
222
222
|
/** Document-level subscriptions for pointer and keyboard events during drag operations. */
|
|
@@ -226,17 +226,6 @@ export declare const subscriptions: {
|
|
|
226
226
|
readonly orientation: "Horizontal" | "Vertical";
|
|
227
227
|
readonly activationThreshold: number;
|
|
228
228
|
readonly dragState: {
|
|
229
|
-
readonly _tag: "Idle";
|
|
230
|
-
} | {
|
|
231
|
-
readonly _tag: "Pending";
|
|
232
|
-
readonly itemId: string;
|
|
233
|
-
readonly containerId: string;
|
|
234
|
-
readonly index: number;
|
|
235
|
-
readonly origin: {
|
|
236
|
-
readonly screenX: number;
|
|
237
|
-
readonly screenY: number;
|
|
238
|
-
};
|
|
239
|
-
} | {
|
|
240
229
|
readonly _tag: "Dragging";
|
|
241
230
|
readonly itemId: string;
|
|
242
231
|
readonly sourceContainerId: string;
|
|
@@ -253,6 +242,8 @@ export declare const subscriptions: {
|
|
|
253
242
|
readonly containerId: string;
|
|
254
243
|
readonly index: number;
|
|
255
244
|
}>;
|
|
245
|
+
} | {
|
|
246
|
+
readonly _tag: "Idle";
|
|
256
247
|
} | {
|
|
257
248
|
readonly _tag: "KeyboardDragging";
|
|
258
249
|
readonly itemId: string;
|
|
@@ -260,14 +251,33 @@ export declare const subscriptions: {
|
|
|
260
251
|
readonly sourceIndex: number;
|
|
261
252
|
readonly targetContainerId: string;
|
|
262
253
|
readonly targetIndex: number;
|
|
254
|
+
} | {
|
|
255
|
+
readonly _tag: "Pending";
|
|
256
|
+
readonly itemId: string;
|
|
257
|
+
readonly containerId: string;
|
|
258
|
+
readonly index: number;
|
|
259
|
+
readonly origin: {
|
|
260
|
+
readonly screenX: number;
|
|
261
|
+
readonly screenY: number;
|
|
262
|
+
};
|
|
263
263
|
};
|
|
264
264
|
}, {
|
|
265
|
-
readonly _tag: "
|
|
265
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
266
266
|
readonly itemId: string;
|
|
267
267
|
readonly containerId: string;
|
|
268
268
|
readonly index: number;
|
|
269
|
-
|
|
270
|
-
readonly
|
|
269
|
+
} | {
|
|
270
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
271
|
+
} | {
|
|
272
|
+
readonly _tag: "CancelledDrag";
|
|
273
|
+
} | {
|
|
274
|
+
readonly _tag: "CompletedFocusItem";
|
|
275
|
+
} | {
|
|
276
|
+
readonly _tag: "CompletedResolveKeyboardMove";
|
|
277
|
+
readonly targetContainerId: string;
|
|
278
|
+
readonly targetIndex: number;
|
|
279
|
+
} | {
|
|
280
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
271
281
|
} | {
|
|
272
282
|
readonly _tag: "MovedPointer";
|
|
273
283
|
readonly screenX: number;
|
|
@@ -279,29 +289,19 @@ export declare const subscriptions: {
|
|
|
279
289
|
readonly index: number;
|
|
280
290
|
}>;
|
|
281
291
|
} | {
|
|
282
|
-
readonly _tag: "
|
|
283
|
-
|
|
284
|
-
readonly _tag: "CancelledDrag";
|
|
292
|
+
readonly _tag: "PressedArrowKey";
|
|
293
|
+
readonly direction: "Down" | "Left" | "NextContainer" | "PreviousContainer" | "Right" | "Up";
|
|
285
294
|
} | {
|
|
286
|
-
readonly _tag: "
|
|
295
|
+
readonly _tag: "PressedDraggable";
|
|
287
296
|
readonly itemId: string;
|
|
288
297
|
readonly containerId: string;
|
|
289
298
|
readonly index: number;
|
|
299
|
+
readonly screenX: number;
|
|
300
|
+
readonly screenY: number;
|
|
290
301
|
} | {
|
|
291
|
-
readonly _tag: "
|
|
292
|
-
readonly targetContainerId: string;
|
|
293
|
-
readonly targetIndex: number;
|
|
294
|
-
} | {
|
|
295
|
-
readonly _tag: "ConfirmedKeyboardDrop";
|
|
296
|
-
} | {
|
|
297
|
-
readonly _tag: "PressedArrowKey";
|
|
298
|
-
readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
|
|
299
|
-
} | {
|
|
300
|
-
readonly _tag: "AdvancedAutoScrollFrame";
|
|
301
|
-
} | {
|
|
302
|
-
readonly _tag: "CompletedFocusItem";
|
|
302
|
+
readonly _tag: "ReleasedPointer";
|
|
303
303
|
}, {
|
|
304
|
-
readonly dragActivity: "
|
|
304
|
+
readonly dragActivity: "Active" | "Idle";
|
|
305
305
|
readonly orientation: "Horizontal" | "Vertical";
|
|
306
306
|
}, never> & {
|
|
307
307
|
readonly __subscription: never;
|
|
@@ -311,17 +311,6 @@ export declare const subscriptions: {
|
|
|
311
311
|
readonly orientation: "Horizontal" | "Vertical";
|
|
312
312
|
readonly activationThreshold: number;
|
|
313
313
|
readonly dragState: {
|
|
314
|
-
readonly _tag: "Idle";
|
|
315
|
-
} | {
|
|
316
|
-
readonly _tag: "Pending";
|
|
317
|
-
readonly itemId: string;
|
|
318
|
-
readonly containerId: string;
|
|
319
|
-
readonly index: number;
|
|
320
|
-
readonly origin: {
|
|
321
|
-
readonly screenX: number;
|
|
322
|
-
readonly screenY: number;
|
|
323
|
-
};
|
|
324
|
-
} | {
|
|
325
314
|
readonly _tag: "Dragging";
|
|
326
315
|
readonly itemId: string;
|
|
327
316
|
readonly sourceContainerId: string;
|
|
@@ -338,6 +327,8 @@ export declare const subscriptions: {
|
|
|
338
327
|
readonly containerId: string;
|
|
339
328
|
readonly index: number;
|
|
340
329
|
}>;
|
|
330
|
+
} | {
|
|
331
|
+
readonly _tag: "Idle";
|
|
341
332
|
} | {
|
|
342
333
|
readonly _tag: "KeyboardDragging";
|
|
343
334
|
readonly itemId: string;
|
|
@@ -345,14 +336,33 @@ export declare const subscriptions: {
|
|
|
345
336
|
readonly sourceIndex: number;
|
|
346
337
|
readonly targetContainerId: string;
|
|
347
338
|
readonly targetIndex: number;
|
|
339
|
+
} | {
|
|
340
|
+
readonly _tag: "Pending";
|
|
341
|
+
readonly itemId: string;
|
|
342
|
+
readonly containerId: string;
|
|
343
|
+
readonly index: number;
|
|
344
|
+
readonly origin: {
|
|
345
|
+
readonly screenX: number;
|
|
346
|
+
readonly screenY: number;
|
|
347
|
+
};
|
|
348
348
|
};
|
|
349
349
|
}, {
|
|
350
|
-
readonly _tag: "
|
|
350
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
351
351
|
readonly itemId: string;
|
|
352
352
|
readonly containerId: string;
|
|
353
353
|
readonly index: number;
|
|
354
|
-
|
|
355
|
-
readonly
|
|
354
|
+
} | {
|
|
355
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
356
|
+
} | {
|
|
357
|
+
readonly _tag: "CancelledDrag";
|
|
358
|
+
} | {
|
|
359
|
+
readonly _tag: "CompletedFocusItem";
|
|
360
|
+
} | {
|
|
361
|
+
readonly _tag: "CompletedResolveKeyboardMove";
|
|
362
|
+
readonly targetContainerId: string;
|
|
363
|
+
readonly targetIndex: number;
|
|
364
|
+
} | {
|
|
365
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
356
366
|
} | {
|
|
357
367
|
readonly _tag: "MovedPointer";
|
|
358
368
|
readonly screenX: number;
|
|
@@ -364,29 +374,19 @@ export declare const subscriptions: {
|
|
|
364
374
|
readonly index: number;
|
|
365
375
|
}>;
|
|
366
376
|
} | {
|
|
367
|
-
readonly _tag: "
|
|
368
|
-
|
|
369
|
-
readonly _tag: "CancelledDrag";
|
|
377
|
+
readonly _tag: "PressedArrowKey";
|
|
378
|
+
readonly direction: "Down" | "Left" | "NextContainer" | "PreviousContainer" | "Right" | "Up";
|
|
370
379
|
} | {
|
|
371
|
-
readonly _tag: "
|
|
380
|
+
readonly _tag: "PressedDraggable";
|
|
372
381
|
readonly itemId: string;
|
|
373
382
|
readonly containerId: string;
|
|
374
383
|
readonly index: number;
|
|
384
|
+
readonly screenX: number;
|
|
385
|
+
readonly screenY: number;
|
|
375
386
|
} | {
|
|
376
|
-
readonly _tag: "
|
|
377
|
-
readonly targetContainerId: string;
|
|
378
|
-
readonly targetIndex: number;
|
|
379
|
-
} | {
|
|
380
|
-
readonly _tag: "ConfirmedKeyboardDrop";
|
|
381
|
-
} | {
|
|
382
|
-
readonly _tag: "PressedArrowKey";
|
|
383
|
-
readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
|
|
384
|
-
} | {
|
|
385
|
-
readonly _tag: "AdvancedAutoScrollFrame";
|
|
386
|
-
} | {
|
|
387
|
-
readonly _tag: "CompletedFocusItem";
|
|
387
|
+
readonly _tag: "ReleasedPointer";
|
|
388
388
|
}, {
|
|
389
|
-
readonly dragActivity: "
|
|
389
|
+
readonly dragActivity: "Active" | "Idle";
|
|
390
390
|
}, never> & {
|
|
391
391
|
readonly __subscription: never;
|
|
392
392
|
};
|
|
@@ -395,17 +395,6 @@ export declare const subscriptions: {
|
|
|
395
395
|
readonly orientation: "Horizontal" | "Vertical";
|
|
396
396
|
readonly activationThreshold: number;
|
|
397
397
|
readonly dragState: {
|
|
398
|
-
readonly _tag: "Idle";
|
|
399
|
-
} | {
|
|
400
|
-
readonly _tag: "Pending";
|
|
401
|
-
readonly itemId: string;
|
|
402
|
-
readonly containerId: string;
|
|
403
|
-
readonly index: number;
|
|
404
|
-
readonly origin: {
|
|
405
|
-
readonly screenX: number;
|
|
406
|
-
readonly screenY: number;
|
|
407
|
-
};
|
|
408
|
-
} | {
|
|
409
398
|
readonly _tag: "Dragging";
|
|
410
399
|
readonly itemId: string;
|
|
411
400
|
readonly sourceContainerId: string;
|
|
@@ -422,6 +411,8 @@ export declare const subscriptions: {
|
|
|
422
411
|
readonly containerId: string;
|
|
423
412
|
readonly index: number;
|
|
424
413
|
}>;
|
|
414
|
+
} | {
|
|
415
|
+
readonly _tag: "Idle";
|
|
425
416
|
} | {
|
|
426
417
|
readonly _tag: "KeyboardDragging";
|
|
427
418
|
readonly itemId: string;
|
|
@@ -429,14 +420,33 @@ export declare const subscriptions: {
|
|
|
429
420
|
readonly sourceIndex: number;
|
|
430
421
|
readonly targetContainerId: string;
|
|
431
422
|
readonly targetIndex: number;
|
|
423
|
+
} | {
|
|
424
|
+
readonly _tag: "Pending";
|
|
425
|
+
readonly itemId: string;
|
|
426
|
+
readonly containerId: string;
|
|
427
|
+
readonly index: number;
|
|
428
|
+
readonly origin: {
|
|
429
|
+
readonly screenX: number;
|
|
430
|
+
readonly screenY: number;
|
|
431
|
+
};
|
|
432
432
|
};
|
|
433
433
|
}, {
|
|
434
|
-
readonly _tag: "
|
|
434
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
435
435
|
readonly itemId: string;
|
|
436
436
|
readonly containerId: string;
|
|
437
437
|
readonly index: number;
|
|
438
|
-
|
|
439
|
-
readonly
|
|
438
|
+
} | {
|
|
439
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
440
|
+
} | {
|
|
441
|
+
readonly _tag: "CancelledDrag";
|
|
442
|
+
} | {
|
|
443
|
+
readonly _tag: "CompletedFocusItem";
|
|
444
|
+
} | {
|
|
445
|
+
readonly _tag: "CompletedResolveKeyboardMove";
|
|
446
|
+
readonly targetContainerId: string;
|
|
447
|
+
readonly targetIndex: number;
|
|
448
|
+
} | {
|
|
449
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
440
450
|
} | {
|
|
441
451
|
readonly _tag: "MovedPointer";
|
|
442
452
|
readonly screenX: number;
|
|
@@ -448,29 +458,19 @@ export declare const subscriptions: {
|
|
|
448
458
|
readonly index: number;
|
|
449
459
|
}>;
|
|
450
460
|
} | {
|
|
451
|
-
readonly _tag: "
|
|
452
|
-
|
|
453
|
-
readonly _tag: "CancelledDrag";
|
|
461
|
+
readonly _tag: "PressedArrowKey";
|
|
462
|
+
readonly direction: "Down" | "Left" | "NextContainer" | "PreviousContainer" | "Right" | "Up";
|
|
454
463
|
} | {
|
|
455
|
-
readonly _tag: "
|
|
464
|
+
readonly _tag: "PressedDraggable";
|
|
456
465
|
readonly itemId: string;
|
|
457
466
|
readonly containerId: string;
|
|
458
467
|
readonly index: number;
|
|
468
|
+
readonly screenX: number;
|
|
469
|
+
readonly screenY: number;
|
|
459
470
|
} | {
|
|
460
|
-
readonly _tag: "
|
|
461
|
-
readonly targetContainerId: string;
|
|
462
|
-
readonly targetIndex: number;
|
|
463
|
-
} | {
|
|
464
|
-
readonly _tag: "ConfirmedKeyboardDrop";
|
|
465
|
-
} | {
|
|
466
|
-
readonly _tag: "PressedArrowKey";
|
|
467
|
-
readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
|
|
468
|
-
} | {
|
|
469
|
-
readonly _tag: "AdvancedAutoScrollFrame";
|
|
470
|
-
} | {
|
|
471
|
-
readonly _tag: "CompletedFocusItem";
|
|
471
|
+
readonly _tag: "ReleasedPointer";
|
|
472
472
|
}, {
|
|
473
|
-
readonly dragActivity: "
|
|
473
|
+
readonly dragActivity: "Active" | "Idle";
|
|
474
474
|
}, never> & {
|
|
475
475
|
readonly __subscription: never;
|
|
476
476
|
};
|
|
@@ -486,17 +486,6 @@ export declare const subscriptions: {
|
|
|
486
486
|
readonly orientation: "Horizontal" | "Vertical";
|
|
487
487
|
readonly activationThreshold: number;
|
|
488
488
|
readonly dragState: {
|
|
489
|
-
readonly _tag: "Idle";
|
|
490
|
-
} | {
|
|
491
|
-
readonly _tag: "Pending";
|
|
492
|
-
readonly itemId: string;
|
|
493
|
-
readonly containerId: string;
|
|
494
|
-
readonly index: number;
|
|
495
|
-
readonly origin: {
|
|
496
|
-
readonly screenX: number;
|
|
497
|
-
readonly screenY: number;
|
|
498
|
-
};
|
|
499
|
-
} | {
|
|
500
489
|
readonly _tag: "Dragging";
|
|
501
490
|
readonly itemId: string;
|
|
502
491
|
readonly sourceContainerId: string;
|
|
@@ -513,6 +502,8 @@ export declare const subscriptions: {
|
|
|
513
502
|
readonly containerId: string;
|
|
514
503
|
readonly index: number;
|
|
515
504
|
}>;
|
|
505
|
+
} | {
|
|
506
|
+
readonly _tag: "Idle";
|
|
516
507
|
} | {
|
|
517
508
|
readonly _tag: "KeyboardDragging";
|
|
518
509
|
readonly itemId: string;
|
|
@@ -520,6 +511,15 @@ export declare const subscriptions: {
|
|
|
520
511
|
readonly sourceIndex: number;
|
|
521
512
|
readonly targetContainerId: string;
|
|
522
513
|
readonly targetIndex: number;
|
|
514
|
+
} | {
|
|
515
|
+
readonly _tag: "Pending";
|
|
516
|
+
readonly itemId: string;
|
|
517
|
+
readonly containerId: string;
|
|
518
|
+
readonly index: number;
|
|
519
|
+
readonly origin: {
|
|
520
|
+
readonly screenX: number;
|
|
521
|
+
readonly screenY: number;
|
|
522
|
+
};
|
|
523
523
|
};
|
|
524
524
|
}) => {
|
|
525
525
|
readonly isDragging: boolean;
|
|
@@ -536,12 +536,22 @@ export declare const subscriptions: {
|
|
|
536
536
|
readonly isDragging: boolean;
|
|
537
537
|
readonly clientY: number;
|
|
538
538
|
}) => Stream.Stream<{
|
|
539
|
-
readonly _tag: "
|
|
539
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
540
540
|
readonly itemId: string;
|
|
541
541
|
readonly containerId: string;
|
|
542
542
|
readonly index: number;
|
|
543
|
-
|
|
544
|
-
readonly
|
|
543
|
+
} | {
|
|
544
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
545
|
+
} | {
|
|
546
|
+
readonly _tag: "CancelledDrag";
|
|
547
|
+
} | {
|
|
548
|
+
readonly _tag: "CompletedFocusItem";
|
|
549
|
+
} | {
|
|
550
|
+
readonly _tag: "CompletedResolveKeyboardMove";
|
|
551
|
+
readonly targetContainerId: string;
|
|
552
|
+
readonly targetIndex: number;
|
|
553
|
+
} | {
|
|
554
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
545
555
|
} | {
|
|
546
556
|
readonly _tag: "MovedPointer";
|
|
547
557
|
readonly screenX: number;
|
|
@@ -553,27 +563,17 @@ export declare const subscriptions: {
|
|
|
553
563
|
readonly index: number;
|
|
554
564
|
}>;
|
|
555
565
|
} | {
|
|
556
|
-
readonly _tag: "
|
|
557
|
-
|
|
558
|
-
readonly _tag: "CancelledDrag";
|
|
566
|
+
readonly _tag: "PressedArrowKey";
|
|
567
|
+
readonly direction: "Down" | "Left" | "NextContainer" | "PreviousContainer" | "Right" | "Up";
|
|
559
568
|
} | {
|
|
560
|
-
readonly _tag: "
|
|
569
|
+
readonly _tag: "PressedDraggable";
|
|
561
570
|
readonly itemId: string;
|
|
562
571
|
readonly containerId: string;
|
|
563
572
|
readonly index: number;
|
|
573
|
+
readonly screenX: number;
|
|
574
|
+
readonly screenY: number;
|
|
564
575
|
} | {
|
|
565
|
-
readonly _tag: "
|
|
566
|
-
readonly targetContainerId: string;
|
|
567
|
-
readonly targetIndex: number;
|
|
568
|
-
} | {
|
|
569
|
-
readonly _tag: "ConfirmedKeyboardDrop";
|
|
570
|
-
} | {
|
|
571
|
-
readonly _tag: "PressedArrowKey";
|
|
572
|
-
readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
|
|
573
|
-
} | {
|
|
574
|
-
readonly _tag: "AdvancedAutoScrollFrame";
|
|
575
|
-
} | {
|
|
576
|
-
readonly _tag: "CompletedFocusItem";
|
|
576
|
+
readonly _tag: "ReleasedPointer";
|
|
577
577
|
}, never, never>;
|
|
578
578
|
} & {
|
|
579
579
|
readonly __subscription: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dragAndDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAEN,WAAW,EAEX,MAAM,EAEN,MAAM,IAAI,CAAC,EACX,MAAM,EAEP,MAAM,QAAQ,CAAA;AACf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAmB,MAAM,cAAc,CAAA;AAIhF,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAA;AAkBxC,QAAA,MAAM,UAAU;;;EAGd,CAAA;AA2BF,mHAAmH;AACnH,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dragAndDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAEN,WAAW,EAEX,MAAM,EAEN,MAAM,IAAI,CAAC,EACX,MAAM,EAEP,MAAM,QAAQ,CAAA;AACf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAmB,MAAM,cAAc,CAAA;AAIhF,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,MAAM,MAA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