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