@foldkit/ui 0.131.0 → 0.133.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/dist/animation/index.d.ts +13 -13
- package/dist/calendar/index.d.ts +76 -76
- package/dist/combobox/multi.d.ts +110 -102
- package/dist/combobox/multi.d.ts.map +1 -1
- package/dist/combobox/shared.d.ts +92 -84
- package/dist/combobox/shared.d.ts.map +1 -1
- package/dist/combobox/single.d.ts +110 -102
- package/dist/combobox/single.d.ts.map +1 -1
- package/dist/datePicker/index.d.ts +152 -98
- package/dist/datePicker/index.d.ts.map +1 -1
- package/dist/dialog/index.d.ts +34 -26
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/dragAndDrop/index.d.ts +346 -326
- package/dist/dragAndDrop/index.d.ts.map +1 -1
- package/dist/fileDrop/index.d.ts +13 -13
- package/dist/listbox/multi.d.ts +110 -102
- package/dist/listbox/multi.d.ts.map +1 -1
- package/dist/listbox/shared.d.ts +86 -78
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/single.d.ts +110 -102
- package/dist/listbox/single.d.ts.map +1 -1
- package/dist/menu/index.d.ts +15 -15
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/popover/index.d.ts +69 -61
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/slider/index.d.ts +164 -149
- package/dist/slider/index.d.ts.map +1 -1
- package/dist/toast/index.d.ts +462 -414
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/update.d.ts +388 -348
- package/dist/toast/update.d.ts.map +1 -1
- package/dist/tooltip/index.d.ts +31 -31
- package/dist/tooltip/index.d.ts.map +1 -1
- package/dist/virtualList/index.d.ts +30 -24
- package/dist/virtualList/index.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -140,11 +140,11 @@ export declare const ResolveKeyboardMove: Command.CommandDefinitionWithArgs<"Res
|
|
|
140
140
|
currentContainerId: S.String;
|
|
141
141
|
currentIndex: S.Number;
|
|
142
142
|
direction: S.Literals<readonly ["Up", "Down", "Left", "Right", "NextContainer", "PreviousContainer"]>;
|
|
143
|
-
}, Effect.Effect<
|
|
144
|
-
readonly _tag:
|
|
145
|
-
targetContainerId:
|
|
146
|
-
targetIndex:
|
|
147
|
-
},
|
|
143
|
+
}, Effect.Effect<{
|
|
144
|
+
readonly _tag: "ResolvedKeyboardMove";
|
|
145
|
+
readonly targetContainerId: string;
|
|
146
|
+
readonly targetIndex: number;
|
|
147
|
+
}, never, never>>;
|
|
148
148
|
type UpdateReturn = readonly [
|
|
149
149
|
Model,
|
|
150
150
|
ReadonlyArray<Command.Command<Message>>,
|
|
@@ -154,340 +154,360 @@ type UpdateReturn = readonly [
|
|
|
154
154
|
export declare const update: (model: Model, message: Message) => UpdateReturn;
|
|
155
155
|
/** Document-level subscriptions for pointer and keyboard events during drag operations. */
|
|
156
156
|
export declare const subscriptions: {
|
|
157
|
-
readonly documentPointer: Subscription.EntryWithoutKeepAlive<
|
|
158
|
-
readonly id:
|
|
159
|
-
readonly orientation:
|
|
160
|
-
readonly activationThreshold:
|
|
161
|
-
readonly dragState:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
157
|
+
readonly documentPointer: Subscription.EntryWithoutKeepAlive<{
|
|
158
|
+
readonly id: string;
|
|
159
|
+
readonly orientation: "Horizontal" | "Vertical";
|
|
160
|
+
readonly activationThreshold: number;
|
|
161
|
+
readonly dragState: {
|
|
162
|
+
readonly _tag: "Idle";
|
|
163
|
+
} | {
|
|
164
|
+
readonly _tag: "Pending";
|
|
165
|
+
readonly itemId: string;
|
|
166
|
+
readonly containerId: string;
|
|
167
|
+
readonly index: number;
|
|
168
|
+
readonly origin: {
|
|
169
|
+
readonly screenX: number;
|
|
170
|
+
readonly screenY: number;
|
|
171
|
+
};
|
|
172
|
+
} | {
|
|
173
|
+
readonly _tag: "Dragging";
|
|
174
|
+
readonly itemId: string;
|
|
175
|
+
readonly sourceContainerId: string;
|
|
176
|
+
readonly sourceIndex: number;
|
|
177
|
+
readonly origin: {
|
|
178
|
+
readonly screenX: number;
|
|
179
|
+
readonly screenY: number;
|
|
180
|
+
};
|
|
181
|
+
readonly current: {
|
|
182
|
+
readonly clientX: number;
|
|
183
|
+
readonly clientY: number;
|
|
184
|
+
};
|
|
185
|
+
readonly maybeDropTarget: Option.Option<{
|
|
186
|
+
readonly containerId: string;
|
|
187
|
+
readonly index: number;
|
|
168
188
|
}>;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
readonly
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
readonly _tag:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
targetContainerId: S.String;
|
|
221
|
-
targetIndex: S.Number;
|
|
222
|
-
}, "Type"> | S.Struct.ReadonlySide<{
|
|
223
|
-
readonly _tag: S.tag<"ConfirmedKeyboardDrop">;
|
|
224
|
-
}, "Type"> | S.Struct.ReadonlySide<{
|
|
225
|
-
readonly _tag: S.tag<"PressedArrowKey">;
|
|
226
|
-
direction: S.Literals<readonly ["Up", "Down", "Left", "Right", "NextContainer", "PreviousContainer"]>;
|
|
227
|
-
}, "Type"> | S.Struct.ReadonlySide<{
|
|
228
|
-
readonly _tag: S.tag<"AdvancedAutoScrollFrame">;
|
|
229
|
-
}, "Type"> | S.Struct.ReadonlySide<{
|
|
230
|
-
readonly _tag: S.tag<"CompletedFocusItem">;
|
|
231
|
-
}, "Type">, S.Struct.ReadonlySide<{
|
|
232
|
-
readonly dragActivity: S.Literals<readonly ["Idle", "Active"]>;
|
|
233
|
-
readonly orientation: S.Literals<readonly ["Horizontal", "Vertical"]>;
|
|
234
|
-
}, "Type">, never> & {
|
|
189
|
+
} | {
|
|
190
|
+
readonly _tag: "KeyboardDragging";
|
|
191
|
+
readonly itemId: string;
|
|
192
|
+
readonly sourceContainerId: string;
|
|
193
|
+
readonly sourceIndex: number;
|
|
194
|
+
readonly targetContainerId: string;
|
|
195
|
+
readonly targetIndex: number;
|
|
196
|
+
};
|
|
197
|
+
}, {
|
|
198
|
+
readonly _tag: "PressedDraggable";
|
|
199
|
+
readonly itemId: string;
|
|
200
|
+
readonly containerId: string;
|
|
201
|
+
readonly index: number;
|
|
202
|
+
readonly screenX: number;
|
|
203
|
+
readonly screenY: number;
|
|
204
|
+
} | {
|
|
205
|
+
readonly _tag: "MovedPointer";
|
|
206
|
+
readonly screenX: number;
|
|
207
|
+
readonly screenY: number;
|
|
208
|
+
readonly clientX: number;
|
|
209
|
+
readonly clientY: number;
|
|
210
|
+
readonly maybeDropTarget: Option.Option<{
|
|
211
|
+
readonly containerId: string;
|
|
212
|
+
readonly index: number;
|
|
213
|
+
}>;
|
|
214
|
+
} | {
|
|
215
|
+
readonly _tag: "ReleasedPointer";
|
|
216
|
+
} | {
|
|
217
|
+
readonly _tag: "CancelledDrag";
|
|
218
|
+
} | {
|
|
219
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
220
|
+
readonly itemId: string;
|
|
221
|
+
readonly containerId: string;
|
|
222
|
+
readonly index: number;
|
|
223
|
+
} | {
|
|
224
|
+
readonly _tag: "ResolvedKeyboardMove";
|
|
225
|
+
readonly targetContainerId: string;
|
|
226
|
+
readonly targetIndex: number;
|
|
227
|
+
} | {
|
|
228
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
229
|
+
} | {
|
|
230
|
+
readonly _tag: "PressedArrowKey";
|
|
231
|
+
readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
|
|
232
|
+
} | {
|
|
233
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
234
|
+
} | {
|
|
235
|
+
readonly _tag: "CompletedFocusItem";
|
|
236
|
+
}, {
|
|
237
|
+
readonly dragActivity: "Idle" | "Active";
|
|
238
|
+
readonly orientation: "Horizontal" | "Vertical";
|
|
239
|
+
}, never> & {
|
|
235
240
|
readonly __subscription: never;
|
|
236
241
|
};
|
|
237
|
-
readonly documentEscape: Subscription.EntryWithoutKeepAlive<
|
|
238
|
-
readonly id:
|
|
239
|
-
readonly orientation:
|
|
240
|
-
readonly activationThreshold:
|
|
241
|
-
readonly dragState:
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
242
|
+
readonly documentEscape: Subscription.EntryWithoutKeepAlive<{
|
|
243
|
+
readonly id: string;
|
|
244
|
+
readonly orientation: "Horizontal" | "Vertical";
|
|
245
|
+
readonly activationThreshold: number;
|
|
246
|
+
readonly dragState: {
|
|
247
|
+
readonly _tag: "Idle";
|
|
248
|
+
} | {
|
|
249
|
+
readonly _tag: "Pending";
|
|
250
|
+
readonly itemId: string;
|
|
251
|
+
readonly containerId: string;
|
|
252
|
+
readonly index: number;
|
|
253
|
+
readonly origin: {
|
|
254
|
+
readonly screenX: number;
|
|
255
|
+
readonly screenY: number;
|
|
256
|
+
};
|
|
257
|
+
} | {
|
|
258
|
+
readonly _tag: "Dragging";
|
|
259
|
+
readonly itemId: string;
|
|
260
|
+
readonly sourceContainerId: string;
|
|
261
|
+
readonly sourceIndex: number;
|
|
262
|
+
readonly origin: {
|
|
263
|
+
readonly screenX: number;
|
|
264
|
+
readonly screenY: number;
|
|
265
|
+
};
|
|
266
|
+
readonly current: {
|
|
267
|
+
readonly clientX: number;
|
|
268
|
+
readonly clientY: number;
|
|
269
|
+
};
|
|
270
|
+
readonly maybeDropTarget: Option.Option<{
|
|
271
|
+
readonly containerId: string;
|
|
272
|
+
readonly index: number;
|
|
248
273
|
}>;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
readonly
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
readonly _tag:
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
},
|
|
299
|
-
readonly _tag: S.tag<"ResolvedKeyboardMove">;
|
|
300
|
-
targetContainerId: S.String;
|
|
301
|
-
targetIndex: S.Number;
|
|
302
|
-
}, "Type"> | S.Struct.ReadonlySide<{
|
|
303
|
-
readonly _tag: S.tag<"ConfirmedKeyboardDrop">;
|
|
304
|
-
}, "Type"> | S.Struct.ReadonlySide<{
|
|
305
|
-
readonly _tag: S.tag<"PressedArrowKey">;
|
|
306
|
-
direction: S.Literals<readonly ["Up", "Down", "Left", "Right", "NextContainer", "PreviousContainer"]>;
|
|
307
|
-
}, "Type"> | S.Struct.ReadonlySide<{
|
|
308
|
-
readonly _tag: S.tag<"AdvancedAutoScrollFrame">;
|
|
309
|
-
}, "Type"> | S.Struct.ReadonlySide<{
|
|
310
|
-
readonly _tag: S.tag<"CompletedFocusItem">;
|
|
311
|
-
}, "Type">, S.Struct.ReadonlySide<{
|
|
312
|
-
readonly dragActivity: S.Literals<readonly ["Idle", "Active"]>;
|
|
313
|
-
}, "Type">, never> & {
|
|
274
|
+
} | {
|
|
275
|
+
readonly _tag: "KeyboardDragging";
|
|
276
|
+
readonly itemId: string;
|
|
277
|
+
readonly sourceContainerId: string;
|
|
278
|
+
readonly sourceIndex: number;
|
|
279
|
+
readonly targetContainerId: string;
|
|
280
|
+
readonly targetIndex: number;
|
|
281
|
+
};
|
|
282
|
+
}, {
|
|
283
|
+
readonly _tag: "PressedDraggable";
|
|
284
|
+
readonly itemId: string;
|
|
285
|
+
readonly containerId: string;
|
|
286
|
+
readonly index: number;
|
|
287
|
+
readonly screenX: number;
|
|
288
|
+
readonly screenY: number;
|
|
289
|
+
} | {
|
|
290
|
+
readonly _tag: "MovedPointer";
|
|
291
|
+
readonly screenX: number;
|
|
292
|
+
readonly screenY: number;
|
|
293
|
+
readonly clientX: number;
|
|
294
|
+
readonly clientY: number;
|
|
295
|
+
readonly maybeDropTarget: Option.Option<{
|
|
296
|
+
readonly containerId: string;
|
|
297
|
+
readonly index: number;
|
|
298
|
+
}>;
|
|
299
|
+
} | {
|
|
300
|
+
readonly _tag: "ReleasedPointer";
|
|
301
|
+
} | {
|
|
302
|
+
readonly _tag: "CancelledDrag";
|
|
303
|
+
} | {
|
|
304
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
305
|
+
readonly itemId: string;
|
|
306
|
+
readonly containerId: string;
|
|
307
|
+
readonly index: number;
|
|
308
|
+
} | {
|
|
309
|
+
readonly _tag: "ResolvedKeyboardMove";
|
|
310
|
+
readonly targetContainerId: string;
|
|
311
|
+
readonly targetIndex: number;
|
|
312
|
+
} | {
|
|
313
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
314
|
+
} | {
|
|
315
|
+
readonly _tag: "PressedArrowKey";
|
|
316
|
+
readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
|
|
317
|
+
} | {
|
|
318
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
319
|
+
} | {
|
|
320
|
+
readonly _tag: "CompletedFocusItem";
|
|
321
|
+
}, {
|
|
322
|
+
readonly dragActivity: "Idle" | "Active";
|
|
323
|
+
}, never> & {
|
|
314
324
|
readonly __subscription: never;
|
|
315
325
|
};
|
|
316
|
-
readonly documentKeyboard: Subscription.EntryWithoutKeepAlive<
|
|
317
|
-
readonly id:
|
|
318
|
-
readonly orientation:
|
|
319
|
-
readonly activationThreshold:
|
|
320
|
-
readonly dragState:
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
326
|
+
readonly documentKeyboard: Subscription.EntryWithoutKeepAlive<{
|
|
327
|
+
readonly id: string;
|
|
328
|
+
readonly orientation: "Horizontal" | "Vertical";
|
|
329
|
+
readonly activationThreshold: number;
|
|
330
|
+
readonly dragState: {
|
|
331
|
+
readonly _tag: "Idle";
|
|
332
|
+
} | {
|
|
333
|
+
readonly _tag: "Pending";
|
|
334
|
+
readonly itemId: string;
|
|
335
|
+
readonly containerId: string;
|
|
336
|
+
readonly index: number;
|
|
337
|
+
readonly origin: {
|
|
338
|
+
readonly screenX: number;
|
|
339
|
+
readonly screenY: number;
|
|
340
|
+
};
|
|
341
|
+
} | {
|
|
342
|
+
readonly _tag: "Dragging";
|
|
343
|
+
readonly itemId: string;
|
|
344
|
+
readonly sourceContainerId: string;
|
|
345
|
+
readonly sourceIndex: number;
|
|
346
|
+
readonly origin: {
|
|
347
|
+
readonly screenX: number;
|
|
348
|
+
readonly screenY: number;
|
|
349
|
+
};
|
|
350
|
+
readonly current: {
|
|
351
|
+
readonly clientX: number;
|
|
352
|
+
readonly clientY: number;
|
|
353
|
+
};
|
|
354
|
+
readonly maybeDropTarget: Option.Option<{
|
|
355
|
+
readonly containerId: string;
|
|
356
|
+
readonly index: number;
|
|
335
357
|
}>;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}
|
|
352
|
-
readonly _tag:
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
readonly
|
|
370
|
-
}
|
|
371
|
-
readonly _tag:
|
|
372
|
-
|
|
373
|
-
readonly
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
readonly
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
382
|
-
readonly _tag:
|
|
383
|
-
},
|
|
384
|
-
readonly
|
|
385
|
-
|
|
386
|
-
}, "Type"> | S.Struct.ReadonlySide<{
|
|
387
|
-
readonly _tag: S.tag<"AdvancedAutoScrollFrame">;
|
|
388
|
-
}, "Type"> | S.Struct.ReadonlySide<{
|
|
389
|
-
readonly _tag: S.tag<"CompletedFocusItem">;
|
|
390
|
-
}, "Type">, S.Struct.ReadonlySide<{
|
|
391
|
-
readonly dragActivity: S.Literals<readonly ["Idle", "Active"]>;
|
|
392
|
-
}, "Type">, never> & {
|
|
358
|
+
} | {
|
|
359
|
+
readonly _tag: "KeyboardDragging";
|
|
360
|
+
readonly itemId: string;
|
|
361
|
+
readonly sourceContainerId: string;
|
|
362
|
+
readonly sourceIndex: number;
|
|
363
|
+
readonly targetContainerId: string;
|
|
364
|
+
readonly targetIndex: number;
|
|
365
|
+
};
|
|
366
|
+
}, {
|
|
367
|
+
readonly _tag: "PressedDraggable";
|
|
368
|
+
readonly itemId: string;
|
|
369
|
+
readonly containerId: string;
|
|
370
|
+
readonly index: number;
|
|
371
|
+
readonly screenX: number;
|
|
372
|
+
readonly screenY: number;
|
|
373
|
+
} | {
|
|
374
|
+
readonly _tag: "MovedPointer";
|
|
375
|
+
readonly screenX: number;
|
|
376
|
+
readonly screenY: number;
|
|
377
|
+
readonly clientX: number;
|
|
378
|
+
readonly clientY: number;
|
|
379
|
+
readonly maybeDropTarget: Option.Option<{
|
|
380
|
+
readonly containerId: string;
|
|
381
|
+
readonly index: number;
|
|
382
|
+
}>;
|
|
383
|
+
} | {
|
|
384
|
+
readonly _tag: "ReleasedPointer";
|
|
385
|
+
} | {
|
|
386
|
+
readonly _tag: "CancelledDrag";
|
|
387
|
+
} | {
|
|
388
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
389
|
+
readonly itemId: string;
|
|
390
|
+
readonly containerId: string;
|
|
391
|
+
readonly index: number;
|
|
392
|
+
} | {
|
|
393
|
+
readonly _tag: "ResolvedKeyboardMove";
|
|
394
|
+
readonly targetContainerId: string;
|
|
395
|
+
readonly targetIndex: number;
|
|
396
|
+
} | {
|
|
397
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
398
|
+
} | {
|
|
399
|
+
readonly _tag: "PressedArrowKey";
|
|
400
|
+
readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
|
|
401
|
+
} | {
|
|
402
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
403
|
+
} | {
|
|
404
|
+
readonly _tag: "CompletedFocusItem";
|
|
405
|
+
}, {
|
|
406
|
+
readonly dragActivity: "Idle" | "Active";
|
|
407
|
+
}, never> & {
|
|
393
408
|
readonly __subscription: never;
|
|
394
409
|
};
|
|
395
410
|
readonly autoScroll: {
|
|
396
|
-
readonly dependenciesSchema: S.Schema<
|
|
397
|
-
readonly isDragging:
|
|
398
|
-
readonly clientY:
|
|
399
|
-
}
|
|
411
|
+
readonly dependenciesSchema: S.Schema<{
|
|
412
|
+
readonly isDragging: boolean;
|
|
413
|
+
readonly clientY: number;
|
|
414
|
+
}> & {
|
|
400
415
|
readonly fields: S.Struct.Fields;
|
|
401
416
|
};
|
|
402
|
-
readonly modelToDependencies: (model:
|
|
403
|
-
readonly id:
|
|
404
|
-
readonly orientation:
|
|
405
|
-
readonly activationThreshold:
|
|
406
|
-
readonly dragState:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
readonly
|
|
424
|
-
readonly
|
|
417
|
+
readonly modelToDependencies: (model: {
|
|
418
|
+
readonly id: string;
|
|
419
|
+
readonly orientation: "Horizontal" | "Vertical";
|
|
420
|
+
readonly activationThreshold: number;
|
|
421
|
+
readonly dragState: {
|
|
422
|
+
readonly _tag: "Idle";
|
|
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
|
+
} | {
|
|
433
|
+
readonly _tag: "Dragging";
|
|
434
|
+
readonly itemId: string;
|
|
435
|
+
readonly sourceContainerId: string;
|
|
436
|
+
readonly sourceIndex: number;
|
|
437
|
+
readonly origin: {
|
|
438
|
+
readonly screenX: number;
|
|
439
|
+
readonly screenY: number;
|
|
440
|
+
};
|
|
441
|
+
readonly current: {
|
|
442
|
+
readonly clientX: number;
|
|
443
|
+
readonly clientY: number;
|
|
444
|
+
};
|
|
445
|
+
readonly maybeDropTarget: Option.Option<{
|
|
446
|
+
readonly containerId: string;
|
|
447
|
+
readonly index: number;
|
|
425
448
|
}>;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
readonly
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
readonly
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
readonly isDragging:
|
|
447
|
-
readonly clientY:
|
|
448
|
-
}
|
|
449
|
-
readonly
|
|
450
|
-
readonly
|
|
451
|
-
|
|
452
|
-
readonly
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
readonly
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
readonly
|
|
472
|
-
|
|
473
|
-
readonly
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
readonly
|
|
483
|
-
}
|
|
484
|
-
readonly _tag:
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
}, "Type"> | S.Struct.ReadonlySide<{
|
|
489
|
-
readonly _tag: S.tag<"CompletedFocusItem">;
|
|
490
|
-
}, "Type">, never, never>;
|
|
449
|
+
} | {
|
|
450
|
+
readonly _tag: "KeyboardDragging";
|
|
451
|
+
readonly itemId: string;
|
|
452
|
+
readonly sourceContainerId: string;
|
|
453
|
+
readonly sourceIndex: number;
|
|
454
|
+
readonly targetContainerId: string;
|
|
455
|
+
readonly targetIndex: number;
|
|
456
|
+
};
|
|
457
|
+
}) => {
|
|
458
|
+
readonly isDragging: boolean;
|
|
459
|
+
readonly clientY: number;
|
|
460
|
+
};
|
|
461
|
+
readonly keepAliveEquivalence: Equivalence.Equivalence<{
|
|
462
|
+
readonly isDragging: boolean;
|
|
463
|
+
readonly clientY: number;
|
|
464
|
+
}>;
|
|
465
|
+
readonly dependenciesToStream: (dependencies: {
|
|
466
|
+
readonly isDragging: boolean;
|
|
467
|
+
readonly clientY: number;
|
|
468
|
+
}, readDependencies: () => {
|
|
469
|
+
readonly isDragging: boolean;
|
|
470
|
+
readonly clientY: number;
|
|
471
|
+
}) => Stream.Stream<{
|
|
472
|
+
readonly _tag: "PressedDraggable";
|
|
473
|
+
readonly itemId: string;
|
|
474
|
+
readonly containerId: string;
|
|
475
|
+
readonly index: number;
|
|
476
|
+
readonly screenX: number;
|
|
477
|
+
readonly screenY: number;
|
|
478
|
+
} | {
|
|
479
|
+
readonly _tag: "MovedPointer";
|
|
480
|
+
readonly screenX: number;
|
|
481
|
+
readonly screenY: number;
|
|
482
|
+
readonly clientX: number;
|
|
483
|
+
readonly clientY: number;
|
|
484
|
+
readonly maybeDropTarget: Option.Option<{
|
|
485
|
+
readonly containerId: string;
|
|
486
|
+
readonly index: number;
|
|
487
|
+
}>;
|
|
488
|
+
} | {
|
|
489
|
+
readonly _tag: "ReleasedPointer";
|
|
490
|
+
} | {
|
|
491
|
+
readonly _tag: "CancelledDrag";
|
|
492
|
+
} | {
|
|
493
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
494
|
+
readonly itemId: string;
|
|
495
|
+
readonly containerId: string;
|
|
496
|
+
readonly index: number;
|
|
497
|
+
} | {
|
|
498
|
+
readonly _tag: "ResolvedKeyboardMove";
|
|
499
|
+
readonly targetContainerId: string;
|
|
500
|
+
readonly targetIndex: number;
|
|
501
|
+
} | {
|
|
502
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
503
|
+
} | {
|
|
504
|
+
readonly _tag: "PressedArrowKey";
|
|
505
|
+
readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
|
|
506
|
+
} | {
|
|
507
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
508
|
+
} | {
|
|
509
|
+
readonly _tag: "CompletedFocusItem";
|
|
510
|
+
}, never, never>;
|
|
491
511
|
} & {
|
|
492
512
|
readonly __subscription: never;
|
|
493
513
|
};
|