@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.
Files changed (91) hide show
  1. package/README.md +1 -1
  2. package/dist/anchor/anchor.d.ts.map +1 -1
  3. package/dist/animation/index.d.ts +5 -5
  4. package/dist/animation/schema.d.ts.map +1 -1
  5. package/dist/animation/update.d.ts.map +1 -1
  6. package/dist/button/index.d.ts.map +1 -1
  7. package/dist/calendar/index.d.ts +44 -44
  8. package/dist/calendar/index.d.ts.map +1 -1
  9. package/dist/checkbox/index.d.ts.map +1 -1
  10. package/dist/combobox/multi.d.ts +47 -47
  11. package/dist/combobox/multi.d.ts.map +1 -1
  12. package/dist/combobox/shared.d.ts +44 -44
  13. package/dist/combobox/shared.d.ts.map +1 -1
  14. package/dist/combobox/shared.js +91 -78
  15. package/dist/combobox/single.d.ts +50 -50
  16. package/dist/combobox/single.d.ts.map +1 -1
  17. package/dist/datePicker/index.d.ts +102 -102
  18. package/dist/datePicker/index.d.ts.map +1 -1
  19. package/dist/dialog/index.d.ts +38 -18
  20. package/dist/dialog/index.d.ts.map +1 -1
  21. package/dist/dialog/index.js +66 -39
  22. package/dist/dialog/public.d.ts +1 -1
  23. package/dist/dialog/public.d.ts.map +1 -1
  24. package/dist/disclosure/index.d.ts.map +1 -1
  25. package/dist/dragAndDrop/index.d.ts +191 -191
  26. package/dist/dragAndDrop/index.d.ts.map +1 -1
  27. package/dist/fieldset/index.d.ts.map +1 -1
  28. package/dist/fileDrop/index.d.ts +10 -10
  29. package/dist/fileDrop/index.d.ts.map +1 -1
  30. package/dist/group.d.ts.map +1 -1
  31. package/dist/hoverIntent/hoverIntent.d.ts +103 -0
  32. package/dist/hoverIntent/hoverIntent.d.ts.map +1 -0
  33. package/dist/hoverIntent/hoverIntent.js +210 -0
  34. package/dist/hoverIntent/index.d.ts +4 -0
  35. package/dist/hoverIntent/index.d.ts.map +1 -0
  36. package/dist/hoverIntent/index.js +2 -0
  37. package/dist/hoverIntent/message.d.ts +42 -0
  38. package/dist/hoverIntent/message.d.ts.map +1 -0
  39. package/dist/hoverIntent/message.js +23 -0
  40. package/dist/hoverIntent/public.d.ts +3 -0
  41. package/dist/hoverIntent/public.d.ts.map +1 -0
  42. package/dist/hoverIntent/public.js +1 -0
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +1 -0
  46. package/dist/input/index.d.ts.map +1 -1
  47. package/dist/internal/optionExtensions.d.ts.map +1 -1
  48. package/dist/internal/selectors.d.ts.map +1 -1
  49. package/dist/keyboard.d.ts.map +1 -1
  50. package/dist/listbox/multi.d.ts +43 -43
  51. package/dist/listbox/multi.d.ts.map +1 -1
  52. package/dist/listbox/shared.d.ts +38 -38
  53. package/dist/listbox/shared.d.ts.map +1 -1
  54. package/dist/listbox/shared.js +46 -39
  55. package/dist/listbox/single.d.ts +45 -45
  56. package/dist/listbox/single.d.ts.map +1 -1
  57. package/dist/menu/index.d.ts +70 -70
  58. package/dist/menu/index.d.ts.map +1 -1
  59. package/dist/menu/index.js +39 -32
  60. package/dist/nav/index.d.ts.map +1 -1
  61. package/dist/popover/index.d.ts +33 -33
  62. package/dist/popover/index.d.ts.map +1 -1
  63. package/dist/popover/index.js +36 -29
  64. package/dist/radioGroup/index.d.ts +6 -6
  65. package/dist/radioGroup/index.d.ts.map +1 -1
  66. package/dist/select/index.d.ts.map +1 -1
  67. package/dist/slider/index.d.ts +72 -72
  68. package/dist/slider/index.d.ts.map +1 -1
  69. package/dist/switch/index.d.ts.map +1 -1
  70. package/dist/tabs/index.d.ts +6 -6
  71. package/dist/tabs/index.d.ts.map +1 -1
  72. package/dist/test/apps/disabledButton.d.ts +18 -15
  73. package/dist/test/apps/disabledButton.d.ts.map +1 -1
  74. package/dist/textarea/index.d.ts.map +1 -1
  75. package/dist/toast/index.d.ts +224 -224
  76. package/dist/toast/index.d.ts.map +1 -1
  77. package/dist/toast/schema.d.ts +16 -16
  78. package/dist/toast/schema.d.ts.map +1 -1
  79. package/dist/toast/test.d.ts.map +1 -1
  80. package/dist/toast/update.d.ts +151 -151
  81. package/dist/toast/update.d.ts.map +1 -1
  82. package/dist/tooltip/message.d.ts +2 -2
  83. package/dist/tooltip/message.d.ts.map +1 -1
  84. package/dist/tooltip/tooltip.d.ts +7 -7
  85. package/dist/tooltip/tooltip.d.ts.map +1 -1
  86. package/dist/tooltip/tooltip.js +15 -11
  87. package/dist/typeahead.d.ts.map +1 -1
  88. package/dist/virtualList/index.d.ts +10 -10
  89. package/dist/virtualList/index.d.ts.map +1 -1
  90. package/dist/virtualList/index.js +5 -5
  91. package/package.json +12 -10
@@ -71,34 +71,34 @@ export type Model = typeof Model.Type;
71
71
  /** Union of all messages the date picker component can produce. */
72
72
  export declare const Message: import("foldkit/message").MessageUnion<{
73
73
  readonly GotCalendarMessage: {
74
- readonly message: import("foldkit/message").MessageUnion<{
74
+ message: import("foldkit/message").MessageUnion<{
75
75
  readonly ClickedDay: {
76
- readonly date: S.Struct<{
76
+ date: S.Struct<{
77
77
  readonly year: S.Int;
78
78
  readonly month: S.Int;
79
79
  readonly day: S.Int;
80
80
  }>;
81
81
  };
82
82
  readonly PressedKeyOnGrid: {
83
- readonly key: S.String;
84
- readonly isShift: S.Boolean;
83
+ key: S.String;
84
+ isShift: S.Boolean;
85
85
  };
86
86
  readonly ClickedPreviousMonthButton: {};
87
87
  readonly ClickedNextMonthButton: {};
88
88
  readonly ClickedHeading: {};
89
89
  readonly SelectedMonth: {
90
- readonly month: S.Int;
90
+ month: S.Int;
91
91
  };
92
92
  readonly SelectedYear: {
93
- readonly year: S.Int;
93
+ year: S.Int;
94
94
  };
95
95
  readonly PagedYears: {
96
- readonly direction: S.Literals<readonly [1, -1]>;
96
+ direction: S.Literals<readonly [1, -1]>;
97
97
  };
98
98
  readonly FocusedGrid: {};
99
99
  readonly BlurredGrid: {};
100
100
  readonly RefreshedToday: {
101
- readonly today: S.Struct<{
101
+ today: S.Struct<{
102
102
  readonly year: S.Int;
103
103
  readonly month: S.Int;
104
104
  readonly day: S.Int;
@@ -108,13 +108,13 @@ export declare const Message: import("foldkit/message").MessageUnion<{
108
108
  }>;
109
109
  };
110
110
  readonly GotPopoverMessage: {
111
- readonly message: import("foldkit/message").MessageUnion<{
111
+ message: import("foldkit/message").MessageUnion<{
112
112
  readonly RequestedOpen: {};
113
113
  readonly RequestedClose: {};
114
114
  readonly BlurredPanel: {};
115
115
  readonly PressedPointerOnButton: {
116
- readonly pointerType: S.String;
117
- readonly button: S.Number;
116
+ pointerType: S.String;
117
+ button: S.Number;
118
118
  };
119
119
  readonly CompletedFocusPanel: {};
120
120
  readonly CompletedFocusButton: {};
@@ -127,7 +127,7 @@ export declare const Message: import("foldkit/message").MessageUnion<{
127
127
  readonly CompletedAnchorPopover: {};
128
128
  readonly CompletedPortalPopoverBackdrop: {};
129
129
  readonly GotAnimationMessage: {
130
- readonly message: import("foldkit/message").MessageUnion<{
130
+ message: import("foldkit/message").MessageUnion<{
131
131
  readonly Showed: {};
132
132
  readonly Hid: {};
133
133
  readonly CompletedWaitForPaint: {};
@@ -137,7 +137,7 @@ export declare const Message: import("foldkit/message").MessageUnion<{
137
137
  }>;
138
138
  };
139
139
  readonly RequestedSelectDate: {
140
- readonly date: S.Struct<{
140
+ date: S.Struct<{
141
141
  readonly year: S.Int;
142
142
  readonly month: S.Int;
143
143
  readonly day: S.Int;
@@ -151,11 +151,11 @@ export type Message = typeof Message.Type;
151
151
  /** Union of out-messages the date picker can produce. */
152
152
  export declare const OutMessage: import("foldkit/message").MessageUnion<{
153
153
  readonly ChangedViewMonth: {
154
- readonly year: S.Int;
155
- readonly month: S.Int;
154
+ year: S.Int;
155
+ month: S.Int;
156
156
  };
157
157
  readonly SelectedDate: {
158
- readonly date: S.Struct<{
158
+ date: S.Struct<{
159
159
  readonly year: S.Int;
160
160
  readonly month: S.Int;
161
161
  readonly day: S.Int;
@@ -209,7 +209,7 @@ export declare const update: (model: Model, message: Message) => Readonly<{
209
209
  }>;
210
210
  readonly isGridFocused: boolean;
211
211
  readonly locale: {
212
- readonly firstDayOfWeek: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday";
212
+ readonly firstDayOfWeek: "Friday" | "Monday" | "Saturday" | "Sunday" | "Thursday" | "Tuesday" | "Wednesday";
213
213
  readonly monthNames: readonly [string, string, string, string, string, string, string, string, string, string, string, string];
214
214
  readonly shortMonthNames: readonly [string, string, string, string, string, string, string, string, string, string, string, string];
215
215
  readonly dayNames: readonly [string, string, string, string, string, string, string];
@@ -225,7 +225,7 @@ export declare const update: (model: Model, message: Message) => Readonly<{
225
225
  readonly month: number;
226
226
  readonly day: number;
227
227
  }>;
228
- readonly disabledDaysOfWeek: readonly ("Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday")[];
228
+ readonly disabledDaysOfWeek: readonly ("Friday" | "Monday" | "Saturday" | "Sunday" | "Thursday" | "Tuesday" | "Wednesday")[];
229
229
  readonly disabledDates: readonly {
230
230
  readonly year: number;
231
231
  readonly month: number;
@@ -241,18 +241,20 @@ export declare const update: (model: Model, message: Message) => Readonly<{
241
241
  readonly animation: {
242
242
  readonly id: string;
243
243
  readonly isShowing: boolean;
244
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
244
+ readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
245
245
  };
246
246
  readonly maybeLastButtonPointerType: Option.Option<string>;
247
247
  };
248
248
  };
249
249
  commands?: Update.Commands<{
250
- readonly _tag: "Opened";
250
+ readonly _tag: "Cleared";
251
251
  } | {
252
252
  readonly _tag: "Closed";
253
253
  } | {
254
254
  readonly _tag: "GotCalendarMessage";
255
255
  readonly message: {
256
+ readonly _tag: "BlurredGrid";
257
+ } | {
256
258
  readonly _tag: "ClickedDay";
257
259
  readonly date: {
258
260
  readonly year: number;
@@ -260,28 +262,22 @@ export declare const update: (model: Model, message: Message) => Readonly<{
260
262
  readonly day: number;
261
263
  };
262
264
  } | {
263
- readonly _tag: "PressedKeyOnGrid";
264
- readonly key: string;
265
- readonly isShift: boolean;
266
- } | {
267
- readonly _tag: "ClickedPreviousMonthButton";
265
+ readonly _tag: "ClickedHeading";
268
266
  } | {
269
267
  readonly _tag: "ClickedNextMonthButton";
270
268
  } | {
271
- readonly _tag: "ClickedHeading";
269
+ readonly _tag: "ClickedPreviousMonthButton";
272
270
  } | {
273
- readonly _tag: "SelectedMonth";
274
- readonly month: number;
271
+ readonly _tag: "CompletedFocusGrid";
275
272
  } | {
276
- readonly _tag: "SelectedYear";
277
- readonly year: number;
273
+ readonly _tag: "FocusedGrid";
278
274
  } | {
279
275
  readonly _tag: "PagedYears";
280
- readonly direction: 1 | -1;
281
- } | {
282
- readonly _tag: "FocusedGrid";
276
+ readonly direction: -1 | 1;
283
277
  } | {
284
- readonly _tag: "BlurredGrid";
278
+ readonly _tag: "PressedKeyOnGrid";
279
+ readonly key: string;
280
+ readonly isShift: boolean;
285
281
  } | {
286
282
  readonly _tag: "RefreshedToday";
287
283
  readonly today: {
@@ -290,52 +286,58 @@ export declare const update: (model: Model, message: Message) => Readonly<{
290
286
  readonly day: number;
291
287
  };
292
288
  } | {
293
- readonly _tag: "CompletedFocusGrid";
289
+ readonly _tag: "SelectedMonth";
290
+ readonly month: number;
291
+ } | {
292
+ readonly _tag: "SelectedYear";
293
+ readonly year: number;
294
294
  };
295
295
  } | {
296
296
  readonly _tag: "GotPopoverMessage";
297
297
  readonly message: {
298
- readonly _tag: "RequestedOpen";
299
- } | {
300
- readonly _tag: "RequestedClose";
301
- } | {
302
298
  readonly _tag: "BlurredPanel";
303
299
  } | {
304
- readonly _tag: "PressedPointerOnButton";
305
- readonly pointerType: string;
306
- readonly button: number;
307
- } | {
308
- readonly _tag: "IgnoredMouseClick";
300
+ readonly _tag: "CompletedAnchorPopover";
309
301
  } | {
310
- readonly _tag: "SuppressedSpaceScroll";
302
+ readonly _tag: "CompletedFocusButton";
311
303
  } | {
312
304
  readonly _tag: "CompletedFocusPanel";
313
305
  } | {
314
- readonly _tag: "CompletedFocusButton";
306
+ readonly _tag: "CompletedInertOthers";
315
307
  } | {
316
308
  readonly _tag: "CompletedLockScroll";
317
309
  } | {
318
- readonly _tag: "CompletedUnlockScroll";
319
- } | {
320
- readonly _tag: "CompletedInertOthers";
310
+ readonly _tag: "CompletedPortalPopoverBackdrop";
321
311
  } | {
322
312
  readonly _tag: "CompletedRestoreInert";
323
313
  } | {
324
- readonly _tag: "CompletedAnchorPopover";
325
- } | {
326
- readonly _tag: "CompletedPortalPopoverBackdrop";
314
+ readonly _tag: "CompletedUnlockScroll";
327
315
  } | {
328
316
  readonly _tag: "GotAnimationMessage";
329
317
  readonly message: {
330
- readonly _tag: "Showed";
331
- } | {
332
- readonly _tag: "Hid";
333
- } | {
334
318
  readonly _tag: "CompletedWaitForPaint";
335
319
  } | {
336
320
  readonly _tag: "EndedAnimation";
321
+ } | {
322
+ readonly _tag: "Hid";
323
+ } | {
324
+ readonly _tag: "Showed";
337
325
  };
326
+ } | {
327
+ readonly _tag: "IgnoredMouseClick";
328
+ } | {
329
+ readonly _tag: "PressedPointerOnButton";
330
+ readonly pointerType: string;
331
+ readonly button: number;
332
+ } | {
333
+ readonly _tag: "RequestedClose";
334
+ } | {
335
+ readonly _tag: "RequestedOpen";
336
+ } | {
337
+ readonly _tag: "SuppressedSpaceScroll";
338
338
  };
339
+ } | {
340
+ readonly _tag: "Opened";
339
341
  } | {
340
342
  readonly _tag: "RequestedSelectDate";
341
343
  readonly date: {
@@ -343,13 +345,13 @@ export declare const update: (model: Model, message: Message) => Readonly<{
343
345
  readonly month: number;
344
346
  readonly day: number;
345
347
  };
346
- } | {
347
- readonly _tag: "Cleared";
348
348
  }, never>;
349
349
  outMessage?: {
350
350
  readonly _tag: "ChangedViewMonth";
351
351
  readonly year: number;
352
352
  readonly month: number;
353
+ } | {
354
+ readonly _tag: "ClearedDate";
353
355
  } | {
354
356
  readonly _tag: "SelectedDate";
355
357
  readonly date: {
@@ -357,8 +359,6 @@ export declare const update: (model: Model, message: Message) => Readonly<{
357
359
  readonly month: number;
358
360
  readonly day: number;
359
361
  };
360
- } | {
361
- readonly _tag: "ClearedDate";
362
362
  };
363
363
  }>;
364
364
  /** Programmatically opens the DatePicker, updating the Model and returning
@@ -462,7 +462,7 @@ export declare const view: import("foldkit/submodel").View<{
462
462
  }>;
463
463
  readonly isGridFocused: boolean;
464
464
  readonly locale: {
465
- readonly firstDayOfWeek: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday";
465
+ readonly firstDayOfWeek: "Friday" | "Monday" | "Saturday" | "Sunday" | "Thursday" | "Tuesday" | "Wednesday";
466
466
  readonly monthNames: readonly [string, string, string, string, string, string, string, string, string, string, string, string];
467
467
  readonly shortMonthNames: readonly [string, string, string, string, string, string, string, string, string, string, string, string];
468
468
  readonly dayNames: readonly [string, string, string, string, string, string, string];
@@ -478,7 +478,7 @@ export declare const view: import("foldkit/submodel").View<{
478
478
  readonly month: number;
479
479
  readonly day: number;
480
480
  }>;
481
- readonly disabledDaysOfWeek: readonly ("Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday")[];
481
+ readonly disabledDaysOfWeek: readonly ("Friday" | "Monday" | "Saturday" | "Sunday" | "Thursday" | "Tuesday" | "Wednesday")[];
482
482
  readonly disabledDates: readonly {
483
483
  readonly year: number;
484
484
  readonly month: number;
@@ -494,17 +494,19 @@ export declare const view: import("foldkit/submodel").View<{
494
494
  readonly animation: {
495
495
  readonly id: string;
496
496
  readonly isShowing: boolean;
497
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
497
+ readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
498
498
  };
499
499
  readonly maybeLastButtonPointerType: Option.Option<string>;
500
500
  };
501
501
  }, {
502
- readonly _tag: "Opened";
502
+ readonly _tag: "Cleared";
503
503
  } | {
504
504
  readonly _tag: "Closed";
505
505
  } | {
506
506
  readonly _tag: "GotCalendarMessage";
507
507
  readonly message: {
508
+ readonly _tag: "BlurredGrid";
509
+ } | {
508
510
  readonly _tag: "ClickedDay";
509
511
  readonly date: {
510
512
  readonly year: number;
@@ -512,28 +514,22 @@ export declare const view: import("foldkit/submodel").View<{
512
514
  readonly day: number;
513
515
  };
514
516
  } | {
515
- readonly _tag: "PressedKeyOnGrid";
516
- readonly key: string;
517
- readonly isShift: boolean;
518
- } | {
519
- readonly _tag: "ClickedPreviousMonthButton";
517
+ readonly _tag: "ClickedHeading";
520
518
  } | {
521
519
  readonly _tag: "ClickedNextMonthButton";
522
520
  } | {
523
- readonly _tag: "ClickedHeading";
521
+ readonly _tag: "ClickedPreviousMonthButton";
524
522
  } | {
525
- readonly _tag: "SelectedMonth";
526
- readonly month: number;
523
+ readonly _tag: "CompletedFocusGrid";
527
524
  } | {
528
- readonly _tag: "SelectedYear";
529
- readonly year: number;
525
+ readonly _tag: "FocusedGrid";
530
526
  } | {
531
527
  readonly _tag: "PagedYears";
532
- readonly direction: 1 | -1;
528
+ readonly direction: -1 | 1;
533
529
  } | {
534
- readonly _tag: "FocusedGrid";
535
- } | {
536
- readonly _tag: "BlurredGrid";
530
+ readonly _tag: "PressedKeyOnGrid";
531
+ readonly key: string;
532
+ readonly isShift: boolean;
537
533
  } | {
538
534
  readonly _tag: "RefreshedToday";
539
535
  readonly today: {
@@ -542,52 +538,58 @@ export declare const view: import("foldkit/submodel").View<{
542
538
  readonly day: number;
543
539
  };
544
540
  } | {
545
- readonly _tag: "CompletedFocusGrid";
541
+ readonly _tag: "SelectedMonth";
542
+ readonly month: number;
543
+ } | {
544
+ readonly _tag: "SelectedYear";
545
+ readonly year: number;
546
546
  };
547
547
  } | {
548
548
  readonly _tag: "GotPopoverMessage";
549
549
  readonly message: {
550
- readonly _tag: "RequestedOpen";
551
- } | {
552
- readonly _tag: "RequestedClose";
553
- } | {
554
550
  readonly _tag: "BlurredPanel";
555
551
  } | {
556
- readonly _tag: "PressedPointerOnButton";
557
- readonly pointerType: string;
558
- readonly button: number;
559
- } | {
560
- readonly _tag: "IgnoredMouseClick";
552
+ readonly _tag: "CompletedAnchorPopover";
561
553
  } | {
562
- readonly _tag: "SuppressedSpaceScroll";
554
+ readonly _tag: "CompletedFocusButton";
563
555
  } | {
564
556
  readonly _tag: "CompletedFocusPanel";
565
557
  } | {
566
- readonly _tag: "CompletedFocusButton";
558
+ readonly _tag: "CompletedInertOthers";
567
559
  } | {
568
560
  readonly _tag: "CompletedLockScroll";
569
561
  } | {
570
- readonly _tag: "CompletedUnlockScroll";
571
- } | {
572
- readonly _tag: "CompletedInertOthers";
562
+ readonly _tag: "CompletedPortalPopoverBackdrop";
573
563
  } | {
574
564
  readonly _tag: "CompletedRestoreInert";
575
565
  } | {
576
- readonly _tag: "CompletedAnchorPopover";
577
- } | {
578
- readonly _tag: "CompletedPortalPopoverBackdrop";
566
+ readonly _tag: "CompletedUnlockScroll";
579
567
  } | {
580
568
  readonly _tag: "GotAnimationMessage";
581
569
  readonly message: {
582
- readonly _tag: "Showed";
583
- } | {
584
- readonly _tag: "Hid";
585
- } | {
586
570
  readonly _tag: "CompletedWaitForPaint";
587
571
  } | {
588
572
  readonly _tag: "EndedAnimation";
573
+ } | {
574
+ readonly _tag: "Hid";
575
+ } | {
576
+ readonly _tag: "Showed";
589
577
  };
578
+ } | {
579
+ readonly _tag: "IgnoredMouseClick";
580
+ } | {
581
+ readonly _tag: "PressedPointerOnButton";
582
+ readonly pointerType: string;
583
+ readonly button: number;
584
+ } | {
585
+ readonly _tag: "RequestedClose";
586
+ } | {
587
+ readonly _tag: "RequestedOpen";
588
+ } | {
589
+ readonly _tag: "SuppressedSpaceScroll";
590
590
  };
591
+ } | {
592
+ readonly _tag: "Opened";
591
593
  } | {
592
594
  readonly _tag: "RequestedSelectDate";
593
595
  readonly date: {
@@ -595,8 +597,6 @@ export declare const view: import("foldkit/submodel").View<{
595
597
  readonly month: number;
596
598
  readonly day: number;
597
599
  };
598
- } | {
599
- readonly _tag: "Cleared";
600
600
  }, Readonly<{
601
601
  anchor: AnchorConfig;
602
602
  /** The selected date, read straight from the parent Model. The trigger
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/datePicker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,MAAM,EAAa,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC7E,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAGxD,OAAO,EAAE,KAAK,OAAO,EAAc,MAAM,kBAAkB,CAAA;AAC3D,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAA;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAA;AAMlD;;;;wBAIwB;AACxB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhB,CAAA;AACF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAIrC,mEAAmE;AACnE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOlB,CAAA;AACF,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAIzC,yDAAyD;AACzD,eAAO,MAAM,UAAU;;;;;;;;;;;;;EAOrB,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,OAA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{
20
20
  readonly RequestedOpen: {};
21
21
  readonly RequestedClose: {};
22
- readonly CompletedShowDialog: {};
22
+ readonly SucceededShowDialog: {};
23
+ readonly FailedShowDialog: {};
23
24
  readonly CompletedCloseDialog: {};
24
25
  readonly Unmounted: {};
25
26
  readonly CompletedReleaseDialogResources: {};
26
27
  readonly GotAnimationMessage: {
27
- readonly message: import("foldkit/message").MessageUnion<{
28
+ message: import("foldkit/message").MessageUnion<{
28
29
  readonly Showed: {};
29
30
  readonly Hid: {};
30
31
  readonly CompletedWaitForPaint: {};
@@ -34,7 +35,8 @@ export declare const Message: import("foldkit/message").MessageUnion<{
34
35
  }>;
35
36
  export type RequestedOpen = typeof Message.RequestedOpen.Type;
36
37
  export type RequestedClose = typeof Message.RequestedClose.Type;
37
- export type CompletedShowDialog = typeof Message.CompletedShowDialog.Type;
38
+ export type SucceededShowDialog = typeof Message.SucceededShowDialog.Type;
39
+ export type FailedShowDialog = typeof Message.FailedShowDialog.Type;
38
40
  export type CompletedCloseDialog = typeof Message.CompletedCloseDialog.Type;
39
41
  export type Unmounted = typeof Message.Unmounted.Type;
40
42
  export type CompletedReleaseDialogResources = typeof Message.CompletedReleaseDialogResources.Type;
@@ -80,14 +82,28 @@ type UpdateReturn = Update.ReturnWithOutMessage<Model, Message, OutMessage>;
80
82
  * `Dom.showDialog`, which calls `show()` (not native `showModal()`) so other
81
83
  * high-z-index overlays stay interactive. It layers the dialog with a high
82
84
  * z-index, traps focus, and dispatches a `cancel` event on Esc. The Dialog
83
- * component supplies its own backdrop. */
85
+ * component supplies its own backdrop. If the dialog element is gone by the
86
+ * time the show runs, the lock is released and the Command reports
87
+ * `FailedShowDialog`. A closed dialog has no `OnUnmount`, so nothing else
88
+ * would release the lock. The update function then closes the Model. Without
89
+ * this close, the dialog would render open with no lock and no focus trap.
90
+ * The lock is also released if the Command is interrupted while it waits. */
84
91
  export declare const ShowDialog: Command.CommandDefinitionWithArgs<"ShowDialog", {
85
92
  id: S.String;
86
93
  focusSelector: S.String;
87
94
  }, Effect.Effect<{
88
- readonly _tag: "CompletedShowDialog";
95
+ readonly _tag: "SucceededShowDialog";
96
+ } | {
97
+ readonly _tag: "FailedShowDialog";
89
98
  }, never, never>>;
90
- /** Calls `close()` on the native dialog element and unlocks page scroll. */
99
+ /** Calls `close()` on the native dialog element and unlocks page scroll when
100
+ * the close released the resources `ShowDialog` installed. A close that runs
101
+ * before the show has installed them leaves the lock alone. When the show
102
+ * then fails, it releases the lock itself. When the show succeeds, update
103
+ * closes the dialog again. If the dialog element is gone by the time the
104
+ * close runs, the Command calls `Dom.releaseDialogResources` instead. That
105
+ * releases the scroll lock, focus trap, return focus, and stack entry if the
106
+ * dialog still holds them. */
91
107
  export declare const CloseDialog: Command.CommandDefinitionWithArgs<"CloseDialog", {
92
108
  id: S.String;
93
109
  }, Effect.Effect<{
@@ -111,7 +127,7 @@ export declare const update: (model: Model, message: Message) => Readonly<{
111
127
  readonly animation: {
112
128
  readonly id: string;
113
129
  readonly isShowing: boolean;
114
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
130
+ readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
115
131
  };
116
132
  readonly maybeFocusSelector: Option.Option<string>;
117
133
  };
@@ -120,7 +136,9 @@ export declare const update: (model: Model, message: Message) => Readonly<{
120
136
  } | {
121
137
  readonly _tag: "RequestedClose";
122
138
  } | {
123
- readonly _tag: "CompletedShowDialog";
139
+ readonly _tag: "SucceededShowDialog";
140
+ } | {
141
+ readonly _tag: "FailedShowDialog";
124
142
  } | {
125
143
  readonly _tag: "CompletedCloseDialog";
126
144
  } | {
@@ -130,13 +148,13 @@ export declare const update: (model: Model, message: Message) => Readonly<{
130
148
  } | {
131
149
  readonly _tag: "GotAnimationMessage";
132
150
  readonly message: {
133
- readonly _tag: "Showed";
134
- } | {
135
- readonly _tag: "Hid";
136
- } | {
137
151
  readonly _tag: "CompletedWaitForPaint";
138
152
  } | {
139
153
  readonly _tag: "EndedAnimation";
154
+ } | {
155
+ readonly _tag: "Hid";
156
+ } | {
157
+ readonly _tag: "Showed";
140
158
  };
141
159
  }, never>;
142
160
  outMessage?: {
@@ -229,7 +247,7 @@ export declare const view: import("foldkit/submodel").View<{
229
247
  readonly animation: {
230
248
  readonly id: string;
231
249
  readonly isShowing: boolean;
232
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
250
+ readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
233
251
  };
234
252
  readonly maybeFocusSelector: Option.Option<string>;
235
253
  }, {
@@ -237,7 +255,9 @@ export declare const view: import("foldkit/submodel").View<{
237
255
  } | {
238
256
  readonly _tag: "RequestedClose";
239
257
  } | {
240
- readonly _tag: "CompletedShowDialog";
258
+ readonly _tag: "SucceededShowDialog";
259
+ } | {
260
+ readonly _tag: "FailedShowDialog";
241
261
  } | {
242
262
  readonly _tag: "CompletedCloseDialog";
243
263
  } | {
@@ -247,13 +267,13 @@ export declare const view: import("foldkit/submodel").View<{
247
267
  } | {
248
268
  readonly _tag: "GotAnimationMessage";
249
269
  readonly message: {
250
- readonly _tag: "Showed";
251
- } | {
252
- readonly _tag: "Hid";
253
- } | {
254
270
  readonly _tag: "CompletedWaitForPaint";
255
271
  } | {
256
272
  readonly _tag: "EndedAnimation";
273
+ } | {
274
+ readonly _tag: "Hid";
275
+ } | {
276
+ readonly _tag: "Showed";
257
277
  };
258
278
  }, Readonly<{
259
279
  toView: (render: RenderInfo) => Html;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,EAAE,MAAM,IAAI,CAAC,EAAQ,MAAM,QAAQ,CAAA;AACtE,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KAA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