@foldkit/ui 0.156.0 → 0.157.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/anchor/anchor.d.ts +18 -18
- package/dist/anchor/anchor.d.ts.map +1 -1
- package/dist/anchor/anchor.js +16 -16
- package/dist/animation/index.d.ts +4 -4
- package/dist/animation/index.d.ts.map +1 -1
- package/dist/animation/index.js +8 -8
- package/dist/animation/public.d.ts +1 -1
- package/dist/animation/public.d.ts.map +1 -1
- package/dist/animation/public.js +1 -1
- package/dist/animation/schema.d.ts +6 -6
- package/dist/animation/schema.d.ts.map +1 -1
- package/dist/animation/schema.js +5 -5
- package/dist/animation/update.d.ts +8 -2
- package/dist/animation/update.d.ts.map +1 -1
- package/dist/animation/update.js +22 -9
- package/dist/calendar/index.d.ts +56 -56
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/calendar/index.js +49 -37
- package/dist/checkbox/index.js +2 -2
- package/dist/combobox/multi.d.ts +19 -19
- package/dist/combobox/multi.d.ts.map +1 -1
- package/dist/combobox/multi.js +2 -2
- package/dist/combobox/shared.d.ts +61 -61
- package/dist/combobox/shared.d.ts.map +1 -1
- package/dist/combobox/shared.js +74 -62
- package/dist/combobox/single.d.ts +19 -19
- package/dist/combobox/single.d.ts.map +1 -1
- package/dist/combobox/single.js +2 -2
- package/dist/datePicker/index.d.ts +72 -72
- package/dist/datePicker/index.d.ts.map +1 -1
- package/dist/datePicker/index.js +12 -12
- package/dist/dialog/index.d.ts +14 -14
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/dialog/index.js +35 -23
- package/dist/disclosure/index.js +2 -2
- package/dist/dragAndDrop/index.d.ts +61 -61
- package/dist/dragAndDrop/index.d.ts.map +1 -1
- package/dist/dragAndDrop/index.js +85 -85
- package/dist/fileDrop/index.d.ts +6 -6
- package/dist/fileDrop/index.d.ts.map +1 -1
- package/dist/fileDrop/index.js +6 -6
- package/dist/hoverIntent/hoverIntent.d.ts +15 -15
- package/dist/hoverIntent/hoverIntent.d.ts.map +1 -1
- package/dist/hoverIntent/hoverIntent.js +17 -17
- package/dist/hoverIntent/message.d.ts +4 -4
- package/dist/hoverIntent/message.d.ts.map +1 -1
- package/dist/hoverIntent/message.js +4 -4
- package/dist/keyboard.js +2 -2
- package/dist/listbox/multi.d.ts +19 -19
- package/dist/listbox/multi.d.ts.map +1 -1
- package/dist/listbox/multi.js +2 -2
- package/dist/listbox/shared.d.ts +58 -58
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/shared.js +74 -62
- package/dist/listbox/single.d.ts +19 -19
- package/dist/listbox/single.d.ts.map +1 -1
- package/dist/listbox/single.js +2 -2
- package/dist/menu/index.d.ts +67 -67
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +82 -67
- package/dist/popover/index.d.ts +34 -34
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +49 -37
- package/dist/radioGroup/index.d.ts +12 -12
- package/dist/radioGroup/index.d.ts.map +1 -1
- package/dist/radioGroup/index.js +16 -16
- package/dist/slider/index.d.ts +14 -14
- package/dist/slider/index.d.ts.map +1 -1
- package/dist/slider/index.js +31 -31
- package/dist/switch/index.js +2 -2
- package/dist/tabs/index.d.ts +14 -14
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/tabs/index.js +18 -18
- package/dist/test/apps/disabledButton.d.ts +12 -12
- package/dist/test/apps/disabledButton.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.js +5 -5
- package/dist/textarea/index.d.ts +2 -2
- package/dist/textarea/index.d.ts.map +1 -1
- package/dist/toast/index.d.ts +63 -63
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/index.js +19 -19
- package/dist/toast/schema.d.ts +55 -55
- package/dist/toast/schema.d.ts.map +1 -1
- package/dist/toast/schema.js +29 -29
- package/dist/toast/test.d.ts.map +1 -1
- package/dist/toast/test.js +3 -3
- package/dist/toast/update.d.ts +61 -61
- package/dist/toast/update.d.ts.map +1 -1
- package/dist/toast/update.js +13 -13
- package/dist/tooltip/message.d.ts +3 -3
- package/dist/tooltip/message.d.ts.map +1 -1
- package/dist/tooltip/message.js +3 -3
- package/dist/tooltip/tooltip.d.ts +24 -24
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +13 -13
- package/dist/typeahead.d.ts.map +1 -1
- package/dist/typeahead.js +3 -3
- package/dist/virtualList/index.d.ts +16 -16
- package/dist/virtualList/index.d.ts.map +1 -1
- package/dist/virtualList/index.js +13 -13
- package/package.json +3 -3
package/dist/calendar/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { brandViewResult as __foldkitBrandViewResult } from 'foldkit/brand'
|
|
2
|
-
import { Array, Effect, Function, Match
|
|
2
|
+
import { Array, Effect, Function, Match, Number, Option, Schema, pipe, } from 'effect';
|
|
3
3
|
import * as Calendar from 'foldkit/calendar';
|
|
4
4
|
import * as Command from 'foldkit/command';
|
|
5
5
|
import * as Dom from 'foldkit/dom';
|
|
@@ -14,39 +14,39 @@ import { idSelector } from '../internal/selectors.js';
|
|
|
14
14
|
/** Which grid the calendar is currently displaying. `Days` is the standard
|
|
15
15
|
* 6×7 day grid; `Months` is a 3×4 month-name grid for fast month jumps;
|
|
16
16
|
* `Years` is a 3×4 year grid paged in 12-year windows for fast year jumps. */
|
|
17
|
-
export const ViewMode =
|
|
17
|
+
export const ViewMode = Schema.Literals(['Days', 'Months', 'Years']);
|
|
18
18
|
/** Schema for the calendar component's state. Tracks the visible month/year,
|
|
19
19
|
* the keyboard-focused and user-selected dates, the active view mode, and
|
|
20
20
|
* the configuration that governs navigation (locale, min/max, disabled
|
|
21
21
|
* days). */
|
|
22
|
-
export const Model =
|
|
23
|
-
id:
|
|
22
|
+
export const Model = Schema.Struct({
|
|
23
|
+
id: Schema.String,
|
|
24
24
|
today: Calendar.CalendarDate,
|
|
25
|
-
viewYear:
|
|
26
|
-
viewMonth:
|
|
25
|
+
viewYear: Schema.Int,
|
|
26
|
+
viewMonth: Schema.Int.check(Schema.isBetween({ minimum: 1, maximum: 12 })),
|
|
27
27
|
viewMode: ViewMode,
|
|
28
|
-
maybeFocusedDate:
|
|
29
|
-
isGridFocused:
|
|
28
|
+
maybeFocusedDate: Schema.Option(Calendar.CalendarDate),
|
|
29
|
+
isGridFocused: Schema.Boolean,
|
|
30
30
|
locale: Calendar.LocaleConfig,
|
|
31
|
-
maybeMinDate:
|
|
32
|
-
maybeMaxDate:
|
|
33
|
-
disabledDaysOfWeek:
|
|
34
|
-
disabledDates:
|
|
31
|
+
maybeMinDate: Schema.Option(Calendar.CalendarDate),
|
|
32
|
+
maybeMaxDate: Schema.Option(Calendar.CalendarDate),
|
|
33
|
+
disabledDaysOfWeek: Schema.Array(Calendar.DayOfWeek),
|
|
34
|
+
disabledDates: Schema.Array(Calendar.CalendarDate),
|
|
35
35
|
});
|
|
36
36
|
// MESSAGE
|
|
37
37
|
/** Union of all messages the calendar component can produce. */
|
|
38
38
|
export const Message = defineMessageUnion({
|
|
39
39
|
ClickedDay: { date: Calendar.CalendarDate },
|
|
40
40
|
PressedKeyOnGrid: {
|
|
41
|
-
key:
|
|
42
|
-
isShift:
|
|
41
|
+
key: Schema.String,
|
|
42
|
+
isShift: Schema.Boolean,
|
|
43
43
|
},
|
|
44
44
|
ClickedPreviousMonthButton: {},
|
|
45
45
|
ClickedNextMonthButton: {},
|
|
46
46
|
ClickedHeading: {},
|
|
47
|
-
SelectedMonth: { month:
|
|
48
|
-
SelectedYear: { year:
|
|
49
|
-
PagedYears: { direction:
|
|
47
|
+
SelectedMonth: { month: Schema.Int },
|
|
48
|
+
SelectedYear: { year: Schema.Int },
|
|
49
|
+
PagedYears: { direction: Schema.Literals([1, -1]) },
|
|
50
50
|
FocusedGrid: {},
|
|
51
51
|
BlurredGrid: {},
|
|
52
52
|
RefreshedToday: { today: Calendar.CalendarDate },
|
|
@@ -56,8 +56,8 @@ export const Message = defineMessageUnion({
|
|
|
56
56
|
/** Union of the calendar's OutMessages. */
|
|
57
57
|
export const OutMessage = defineMessageUnion({
|
|
58
58
|
ChangedViewMonth: {
|
|
59
|
-
year:
|
|
60
|
-
month:
|
|
59
|
+
year: Schema.Int,
|
|
60
|
+
month: Schema.Int,
|
|
61
61
|
},
|
|
62
62
|
SelectedDate: { date: Calendar.CalendarDate },
|
|
63
63
|
});
|
|
@@ -82,13 +82,13 @@ export const init = (config) => {
|
|
|
82
82
|
disabledDates: config.disabledDates ?? [],
|
|
83
83
|
}), "@foldkit/ui/calendar/index.js#init");
|
|
84
84
|
};
|
|
85
|
-
const withUpdateReturn =
|
|
85
|
+
const withUpdateReturn = Match.withReturnType();
|
|
86
86
|
const gridId = (modelId) => __foldkitBrandViewResult((`${modelId}-grid`), "@foldkit/ui/calendar/index.js#gridId");
|
|
87
87
|
const gridSelector = (modelId) => __foldkitBrandViewResult((idSelector(gridId(modelId))), "@foldkit/ui/calendar/index.js#gridSelector");
|
|
88
88
|
/** Focuses the calendar grid container. Parent components like DatePicker
|
|
89
89
|
* dispatch this after opening to hand focus to the grid's keyboard layer. */
|
|
90
90
|
export const FocusGrid = Command.define('FocusGrid', {
|
|
91
|
-
args: { id:
|
|
91
|
+
args: { id: Schema.String },
|
|
92
92
|
messages: [Message.CompletedFocusGrid],
|
|
93
93
|
execute: ({ id }) => __foldkitBrandViewResult((Dom.focus(gridSelector(id)).pipe(Effect.ignore, Effect.as(Message.CompletedFocusGrid()))), "@foldkit/ui/calendar/index.js#execute"),
|
|
94
94
|
});
|
|
@@ -171,29 +171,41 @@ const clampToRange = (model, candidate) => {
|
|
|
171
171
|
};
|
|
172
172
|
/** Resolves a navigation key press to the next focused date candidate,
|
|
173
173
|
* along with the direction and search cap for disabled-date skipping. */
|
|
174
|
-
const resolveNavigationKey = (key, isShift, focused, firstDayOfWeek) => __foldkitBrandViewResult((
|
|
174
|
+
const resolveNavigationKey = (key, isShift, focused, firstDayOfWeek) => __foldkitBrandViewResult((Match.value(key).pipe(Match.withReturnType(), Match.when('ArrowLeft', () => __foldkitBrandViewResult(([
|
|
175
175
|
Calendar.addDays(focused, -1),
|
|
176
176
|
-1,
|
|
177
177
|
DAY_SKIP_CAP,
|
|
178
|
-
]), "@foldkit/ui/calendar/index.js#anonymous~11")),
|
|
178
|
+
]), "@foldkit/ui/calendar/index.js#anonymous~11")), Match.when('ArrowRight', () => __foldkitBrandViewResult(([
|
|
179
|
+
Calendar.addDays(focused, 1),
|
|
180
|
+
1,
|
|
181
|
+
DAY_SKIP_CAP,
|
|
182
|
+
]), "@foldkit/ui/calendar/index.js#anonymous~12")), Match.when('ArrowUp', () => __foldkitBrandViewResult(([
|
|
183
|
+
Calendar.addDays(focused, -7),
|
|
184
|
+
-1,
|
|
185
|
+
DAY_SKIP_CAP,
|
|
186
|
+
]), "@foldkit/ui/calendar/index.js#anonymous~13")), Match.when('ArrowDown', () => __foldkitBrandViewResult(([
|
|
187
|
+
Calendar.addDays(focused, 7),
|
|
188
|
+
1,
|
|
189
|
+
DAY_SKIP_CAP,
|
|
190
|
+
]), "@foldkit/ui/calendar/index.js#anonymous~14")), Match.when('Home', () => __foldkitBrandViewResult(([
|
|
179
191
|
Calendar.startOfWeek(focused, firstDayOfWeek),
|
|
180
192
|
-1,
|
|
181
193
|
DAY_SKIP_CAP,
|
|
182
|
-
]), "@foldkit/ui/calendar/index.js#anonymous~15")),
|
|
194
|
+
]), "@foldkit/ui/calendar/index.js#anonymous~15")), Match.when('End', () => __foldkitBrandViewResult(([
|
|
183
195
|
Calendar.endOfWeek(focused, firstDayOfWeek),
|
|
184
196
|
1,
|
|
185
197
|
DAY_SKIP_CAP,
|
|
186
|
-
]), "@foldkit/ui/calendar/index.js#anonymous~16")),
|
|
198
|
+
]), "@foldkit/ui/calendar/index.js#anonymous~16")), Match.when('PageUp', () => __foldkitBrandViewResult(([
|
|
187
199
|
isShift
|
|
188
200
|
? Calendar.addYears(focused, -1)
|
|
189
201
|
: Calendar.addMonths(focused, -1),
|
|
190
202
|
-1,
|
|
191
203
|
MONTH_SKIP_CAP,
|
|
192
|
-
]), "@foldkit/ui/calendar/index.js#anonymous~17")),
|
|
204
|
+
]), "@foldkit/ui/calendar/index.js#anonymous~17")), Match.when('PageDown', () => __foldkitBrandViewResult(([
|
|
193
205
|
isShift ? Calendar.addYears(focused, 1) : Calendar.addMonths(focused, 1),
|
|
194
206
|
1,
|
|
195
207
|
MONTH_SKIP_CAP,
|
|
196
|
-
]), "@foldkit/ui/calendar/index.js#anonymous~18")),
|
|
208
|
+
]), "@foldkit/ui/calendar/index.js#anonymous~18")), Match.option)), "@foldkit/ui/calendar/index.js#resolveNavigationKey");
|
|
197
209
|
const isCommitKey = (key) => __foldkitBrandViewResult((key === 'Enter' || key === ' '), "@foldkit/ui/calendar/index.js#isCommitKey");
|
|
198
210
|
const currentOrFallbackFocus = (model) => __foldkitBrandViewResult((Option.getOrElse(model.maybeFocusedDate, () => __foldkitBrandViewResult((Calendar.make(model.viewYear, model.viewMonth, 1)), "@foldkit/ui/calendar/index.js#anonymous~19"))), "@foldkit/ui/calendar/index.js#currentOrFallbackFocus");
|
|
199
211
|
/** Applies a date selection to the model: commits the selection, moves the
|
|
@@ -274,11 +286,11 @@ const jumpDirection = (model, year, month) => {
|
|
|
274
286
|
/** Maps a keyboard key to a months-grid focus shift (in months). Months
|
|
275
287
|
* mode supports horizontal (±1), vertical (±row width), and PageUp/Down
|
|
276
288
|
* (±12) navigation. */
|
|
277
|
-
const resolveMonthsKey = (key) => __foldkitBrandViewResult((
|
|
289
|
+
const resolveMonthsKey = (key) => __foldkitBrandViewResult((Match.value(key).pipe(Match.withReturnType(), Match.when('ArrowLeft', () => __foldkitBrandViewResult((-1), "@foldkit/ui/calendar/index.js#anonymous~20")), Match.when('ArrowRight', () => __foldkitBrandViewResult((1), "@foldkit/ui/calendar/index.js#anonymous~21")), Match.when('ArrowUp', () => __foldkitBrandViewResult((-MONTHS_GRID_COLUMNS), "@foldkit/ui/calendar/index.js#anonymous~22")), Match.when('ArrowDown', () => __foldkitBrandViewResult((MONTHS_GRID_COLUMNS), "@foldkit/ui/calendar/index.js#anonymous~23")), Match.when('PageUp', () => __foldkitBrandViewResult((-MONTHS_IN_YEAR), "@foldkit/ui/calendar/index.js#anonymous~24")), Match.when('PageDown', () => __foldkitBrandViewResult((MONTHS_IN_YEAR), "@foldkit/ui/calendar/index.js#anonymous~25")), Match.option)), "@foldkit/ui/calendar/index.js#resolveMonthsKey");
|
|
278
290
|
/** Maps a keyboard key to a years-grid focus shift (in years). Years mode
|
|
279
291
|
* supports horizontal (±1), vertical (±row width), and PageUp/Down (±12 =
|
|
280
292
|
* one window) navigation. */
|
|
281
|
-
const resolveYearsKey = (key) => __foldkitBrandViewResult((
|
|
293
|
+
const resolveYearsKey = (key) => __foldkitBrandViewResult((Match.value(key).pipe(Match.withReturnType(), Match.when('ArrowLeft', () => __foldkitBrandViewResult((-1), "@foldkit/ui/calendar/index.js#anonymous~26")), Match.when('ArrowRight', () => __foldkitBrandViewResult((1), "@foldkit/ui/calendar/index.js#anonymous~27")), Match.when('ArrowUp', () => __foldkitBrandViewResult((-YEARS_GRID_COLUMNS), "@foldkit/ui/calendar/index.js#anonymous~28")), Match.when('ArrowDown', () => __foldkitBrandViewResult((YEARS_GRID_COLUMNS), "@foldkit/ui/calendar/index.js#anonymous~29")), Match.when('PageUp', () => __foldkitBrandViewResult((-YEARS_PAGE_SIZE), "@foldkit/ui/calendar/index.js#anonymous~30")), Match.when('PageDown', () => __foldkitBrandViewResult((YEARS_PAGE_SIZE), "@foldkit/ui/calendar/index.js#anonymous~31")), Match.option)), "@foldkit/ui/calendar/index.js#resolveYearsKey");
|
|
282
294
|
/** Applies a months-grid focus shift, updating `maybeFocusedDate` and
|
|
283
295
|
* `viewYear` to reflect the new focused date. `viewMonth` is preserved.
|
|
284
296
|
* Months mode keyboard navigation moves the cursor without committing. */
|
|
@@ -316,7 +328,7 @@ export const update = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
316
328
|
return __foldkitBrandViewResult((commitSelection(model, date)), "@foldkit/ui/calendar/index.js#ClickedDay");
|
|
317
329
|
}
|
|
318
330
|
},
|
|
319
|
-
PressedKeyOnGrid: ({ key, isShift }) => __foldkitBrandViewResult((
|
|
331
|
+
PressedKeyOnGrid: ({ key, isShift }) => __foldkitBrandViewResult((Match.value(model.viewMode).pipe(withUpdateReturn, Match.when('Days', () => {
|
|
320
332
|
const focused = currentOrFallbackFocus(model);
|
|
321
333
|
if (isCommitKey(key)) {
|
|
322
334
|
if (isDateDisabled(model, focused)) {
|
|
@@ -332,13 +344,13 @@ export const update = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
332
344
|
onSome: ([candidate, direction, cap]) => __foldkitBrandViewResult((applyFocusMove(model, candidate, direction, cap)), "@foldkit/ui/calendar/index.js#onSome~5"),
|
|
333
345
|
})), "@foldkit/ui/calendar/index.js#anonymous~32");
|
|
334
346
|
}
|
|
335
|
-
}),
|
|
347
|
+
}), Match.when('Months', () => __foldkitBrandViewResult((Option.match(resolveMonthsKey(key), {
|
|
336
348
|
onNone: () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/calendar/index.js#onNone~6")),
|
|
337
349
|
onSome: shift => __foldkitBrandViewResult((applyMonthsFocusShift(model, shift)), "@foldkit/ui/calendar/index.js#onSome~6"),
|
|
338
|
-
})), "@foldkit/ui/calendar/index.js#anonymous~33")),
|
|
350
|
+
})), "@foldkit/ui/calendar/index.js#anonymous~33")), Match.when('Years', () => __foldkitBrandViewResult((Option.match(resolveYearsKey(key), {
|
|
339
351
|
onNone: () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/calendar/index.js#onNone~7")),
|
|
340
352
|
onSome: shift => __foldkitBrandViewResult((applyYearsFocusShift(model, shift)), "@foldkit/ui/calendar/index.js#onSome~7"),
|
|
341
|
-
})), "@foldkit/ui/calendar/index.js#anonymous~34")),
|
|
353
|
+
})), "@foldkit/ui/calendar/index.js#anonymous~34")), Match.exhaustive)), "@foldkit/ui/calendar/index.js#PressedKeyOnGrid"),
|
|
342
354
|
ClickedPreviousMonthButton: () => {
|
|
343
355
|
const next = Calendar.subtractMonths(Calendar.make(model.viewYear, model.viewMonth, 1), 1);
|
|
344
356
|
return __foldkitBrandViewResult((applyViewMonthChange(model, next.year, next.month, -1)), "@foldkit/ui/calendar/index.js#ClickedPreviousMonthButton");
|
|
@@ -347,13 +359,13 @@ export const update = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
347
359
|
const next = Calendar.addMonths(Calendar.make(model.viewYear, model.viewMonth, 1), 1);
|
|
348
360
|
return __foldkitBrandViewResult((applyViewMonthChange(model, next.year, next.month, 1)), "@foldkit/ui/calendar/index.js#ClickedNextMonthButton");
|
|
349
361
|
},
|
|
350
|
-
ClickedHeading: () => __foldkitBrandViewResult((
|
|
362
|
+
ClickedHeading: () => __foldkitBrandViewResult((Match.value(model.viewMode).pipe(withUpdateReturn, Match.when('Days', () => (__foldkitBrandViewResult(({
|
|
351
363
|
model: evo(model, { viewMode: () => __foldkitBrandViewResult(('Months'), "@foldkit/ui/calendar/index.js#viewMode~2") }),
|
|
352
364
|
commands: [FocusGrid({ id: model.id })],
|
|
353
|
-
}), "@foldkit/ui/calendar/index.js#anonymous~35"))),
|
|
365
|
+
}), "@foldkit/ui/calendar/index.js#anonymous~35"))), Match.when('Months', () => (__foldkitBrandViewResult(({
|
|
354
366
|
model: evo(model, { viewMode: () => __foldkitBrandViewResult(('Years'), "@foldkit/ui/calendar/index.js#viewMode~3") }),
|
|
355
367
|
commands: [FocusGrid({ id: model.id })],
|
|
356
|
-
}), "@foldkit/ui/calendar/index.js#anonymous~36"))),
|
|
368
|
+
}), "@foldkit/ui/calendar/index.js#anonymous~36"))), Match.when('Years', () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/calendar/index.js#anonymous~37"))), Match.exhaustive)), "@foldkit/ui/calendar/index.js#ClickedHeading"),
|
|
357
369
|
SelectedMonth: ({ month }) => {
|
|
358
370
|
if (isMonthDisabled(model, model.viewYear, month)) {
|
|
359
371
|
return __foldkitBrandViewResult(({ model }), "@foldkit/ui/calendar/index.js#SelectedMonth");
|
|
@@ -765,4 +777,4 @@ const buildYearsAttributes = (model, viewInputs, h) => {
|
|
|
765
777
|
* bundles + derived cell data, then delegates layout to the consumer's
|
|
766
778
|
* `toView` callback. The variant of `CalendarAttributes` passed to
|
|
767
779
|
* `toView` matches `model.viewMode`. */
|
|
768
|
-
export const view = defineView((model, viewInputs, h) => __foldkitBrandViewResult((viewInputs.toView(
|
|
780
|
+
export const view = defineView((model, viewInputs, h) => __foldkitBrandViewResult((viewInputs.toView(Match.value(model.viewMode).pipe(Match.withReturnType(), Match.when('Days', () => __foldkitBrandViewResult((buildDaysAttributes(model, viewInputs, h)), "@foldkit/ui/calendar/index.js#anonymous~53")), Match.when('Months', () => __foldkitBrandViewResult((buildMonthsAttributes(model, viewInputs, h)), "@foldkit/ui/calendar/index.js#anonymous~54")), Match.when('Years', () => __foldkitBrandViewResult((buildYearsAttributes(model, viewInputs, h)), "@foldkit/ui/calendar/index.js#anonymous~55")), Match.exhaustive))), "@foldkit/ui/calendar/index.js#anonymous~52"));
|
package/dist/checkbox/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { brandViewResult as __foldkitBrandViewResult } from 'foldkit/brand'
|
|
2
|
-
import { Match
|
|
2
|
+
import { Match, Option } from 'effect';
|
|
3
3
|
/** Returns the label element id, derived from the checkbox's base id. */
|
|
4
4
|
export const labelId = (id) => __foldkitBrandViewResult((`${id}-label`), "@foldkit/ui/checkbox/index.js#labelId");
|
|
5
5
|
/** Returns the description element id, derived from the checkbox's base id. */
|
|
@@ -28,7 +28,7 @@ export const descriptionId = (id) => __foldkitBrandViewResult((`${id}-descriptio
|
|
|
28
28
|
export const view = (config, h) => {
|
|
29
29
|
const { id, isChecked, onToggle, toView, isDisabled = false, isReadOnly = false, isIndeterminate = false, name, value: formValue = 'on', } = config;
|
|
30
30
|
const nextChecked = !isChecked;
|
|
31
|
-
const handleKeyUp = (key) => __foldkitBrandViewResult((
|
|
31
|
+
const handleKeyUp = (key) => __foldkitBrandViewResult((Match.value(key).pipe(Match.when(' ', () => __foldkitBrandViewResult((Option.some(onToggle(nextChecked))), "@foldkit/ui/checkbox/index.js#anonymous")), Match.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/checkbox/index.js#anonymous~2")))), "@foldkit/ui/checkbox/index.js#handleKeyUp");
|
|
32
32
|
const resolveStateAttributes = () => {
|
|
33
33
|
if (isIndeterminate) {
|
|
34
34
|
return __foldkitBrandViewResult(([h.DataAttribute('indeterminate', '')]), "@foldkit/ui/checkbox/index.js#resolveStateAttributes");
|
package/dist/combobox/multi.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Option, Schema
|
|
1
|
+
import { Option, Schema } from 'effect';
|
|
2
2
|
import { type Update } from 'foldkit';
|
|
3
3
|
import type { View as SubmodelView } from 'foldkit/submodel';
|
|
4
4
|
import { type BaseInitConfig, type BaseViewInputs, Message, OutMessage } from './shared.js';
|
|
5
5
|
/** Schema for the multi-select combobox's private interaction state (open/closed status, active item, activation trigger, typed input value). The selection is owned by the parent and passed in via `ViewInputs.selectedValues`. */
|
|
6
|
-
export declare const Model:
|
|
7
|
-
readonly id:
|
|
8
|
-
readonly isOpen:
|
|
9
|
-
readonly isAnimated:
|
|
10
|
-
readonly isModal:
|
|
11
|
-
readonly nullable:
|
|
12
|
-
readonly immediate:
|
|
13
|
-
readonly selectInputOnFocus:
|
|
14
|
-
readonly animation:
|
|
15
|
-
readonly id:
|
|
16
|
-
readonly isShowing:
|
|
17
|
-
readonly transitionState:
|
|
6
|
+
export declare const Model: Schema.Struct<{
|
|
7
|
+
readonly id: Schema.String;
|
|
8
|
+
readonly isOpen: Schema.Boolean;
|
|
9
|
+
readonly isAnimated: Schema.Boolean;
|
|
10
|
+
readonly isModal: Schema.Boolean;
|
|
11
|
+
readonly nullable: Schema.Boolean;
|
|
12
|
+
readonly immediate: Schema.Boolean;
|
|
13
|
+
readonly selectInputOnFocus: Schema.Boolean;
|
|
14
|
+
readonly animation: Schema.Struct<{
|
|
15
|
+
readonly id: Schema.String;
|
|
16
|
+
readonly isShowing: Schema.Boolean;
|
|
17
|
+
readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
|
|
18
18
|
}>;
|
|
19
|
-
readonly maybeActiveItemIndex:
|
|
20
|
-
readonly activationTrigger:
|
|
21
|
-
readonly inputValue:
|
|
22
|
-
readonly maybeLastPointerPosition:
|
|
23
|
-
readonly screenX:
|
|
24
|
-
readonly screenY:
|
|
19
|
+
readonly maybeActiveItemIndex: Schema.Option<Schema.Number>;
|
|
20
|
+
readonly activationTrigger: Schema.Literals<readonly ["Pointer", "Keyboard"]>;
|
|
21
|
+
readonly inputValue: Schema.String;
|
|
22
|
+
readonly maybeLastPointerPosition: Schema.Option<Schema.Struct<{
|
|
23
|
+
readonly screenX: Schema.Number;
|
|
24
|
+
readonly screenY: Schema.Number;
|
|
25
25
|
}>>;
|
|
26
26
|
}>;
|
|
27
27
|
export type Model = typeof Model.Type;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi.d.ts","sourceRoot":"","sources":["../../src/combobox/multi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"multi.d.ts","sourceRoot":"","sources":["../../src/combobox/multi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AAErC,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE5D,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,cAAc,EACnB,OAAO,EACP,UAAU,EAKX,MAAM,a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AO,EAAE,OAAO,KAAK,kBAAkB,CAAC,IAAI,CAAC,CAAA;IACpE,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,KAAK,kBAAkB,CAAC,IAAI,CAAC,CAAA;IAClE,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,kBAAkB,CAAC,IAAI,CAAC,CAAA;IAChD,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,kBAAkB,CAAC,IAAI,CAAC,CAAA;CAClD,CAAC,CAAA;AAEF;;wEAEwE;AACxE,eAAO,MAAM,MAAM,GAAI,IAAI,SAAS,MAAM,GAAG,MAAM,OAAK,MAAM,CAAC,IAAI,CA2BlE,CAAA"}
|
package/dist/combobox/multi.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { brandViewResult as __foldkitBrandViewResult } from 'foldkit/brand'
|
|
2
|
-
import { Option, Schema
|
|
2
|
+
import { Option, Schema } from 'effect';
|
|
3
3
|
import { evo } from 'foldkit/struct';
|
|
4
4
|
import { BaseModel, Message, OutMessage, baseInit, closedBaseModel, makeUpdate, makeView, } from './shared.js';
|
|
5
5
|
// MODEL
|
|
6
6
|
/** Schema for the multi-select combobox's private interaction state (open/closed status, active item, activation trigger, typed input value). The selection is owned by the parent and passed in via `ViewInputs.selectedValues`. */
|
|
7
|
-
export const Model =
|
|
7
|
+
export const Model = Schema.Struct({
|
|
8
8
|
...BaseModel.fields,
|
|
9
9
|
});
|
|
10
10
|
/** Creates an initial multi-select combobox model from a config. Defaults to closed with no active item and an empty input. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Effect, Option, Schema
|
|
1
|
+
import { Effect, Option, Schema } from 'effect';
|
|
2
2
|
import * as Command from 'foldkit/command';
|
|
3
3
|
import type { ChildAttribute, Html } from 'foldkit/html';
|
|
4
4
|
import * as Mount from 'foldkit/mount';
|
|
@@ -8,28 +8,28 @@ import { AnchorConfig } from '../anchor/index.js';
|
|
|
8
8
|
import { groupContiguous } from '../group.js';
|
|
9
9
|
export { groupContiguous };
|
|
10
10
|
/** Schema for the activation trigger: whether the user interacted via mouse or keyboard. */
|
|
11
|
-
export declare const ActivationTrigger:
|
|
11
|
+
export declare const ActivationTrigger: Schema.Literals<readonly ["Pointer", "Keyboard"]>;
|
|
12
12
|
export type ActivationTrigger = typeof ActivationTrigger.Type;
|
|
13
|
-
/** Schema fields shared by all combobox variants (single-select and multi-select). Spread into each variant's `
|
|
14
|
-
export declare const BaseModel:
|
|
15
|
-
readonly id:
|
|
16
|
-
readonly isOpen:
|
|
17
|
-
readonly isAnimated:
|
|
18
|
-
readonly isModal:
|
|
19
|
-
readonly nullable:
|
|
20
|
-
readonly immediate:
|
|
21
|
-
readonly selectInputOnFocus:
|
|
22
|
-
readonly animation:
|
|
23
|
-
readonly id:
|
|
24
|
-
readonly isShowing:
|
|
25
|
-
readonly transitionState:
|
|
13
|
+
/** Schema fields shared by all combobox variants (single-select and multi-select). Spread into each variant's `Schema.Struct` to avoid duplicating field definitions. */
|
|
14
|
+
export declare const BaseModel: Schema.Struct<{
|
|
15
|
+
readonly id: Schema.String;
|
|
16
|
+
readonly isOpen: Schema.Boolean;
|
|
17
|
+
readonly isAnimated: Schema.Boolean;
|
|
18
|
+
readonly isModal: Schema.Boolean;
|
|
19
|
+
readonly nullable: Schema.Boolean;
|
|
20
|
+
readonly immediate: Schema.Boolean;
|
|
21
|
+
readonly selectInputOnFocus: Schema.Boolean;
|
|
22
|
+
readonly animation: Schema.Struct<{
|
|
23
|
+
readonly id: Schema.String;
|
|
24
|
+
readonly isShowing: Schema.Boolean;
|
|
25
|
+
readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
|
|
26
26
|
}>;
|
|
27
|
-
readonly maybeActiveItemIndex:
|
|
28
|
-
readonly activationTrigger:
|
|
29
|
-
readonly inputValue:
|
|
30
|
-
readonly maybeLastPointerPosition:
|
|
31
|
-
readonly screenX:
|
|
32
|
-
readonly screenY:
|
|
27
|
+
readonly maybeActiveItemIndex: Schema.Option<Schema.Number>;
|
|
28
|
+
readonly activationTrigger: Schema.Literals<readonly ["Pointer", "Keyboard"]>;
|
|
29
|
+
readonly inputValue: Schema.String;
|
|
30
|
+
readonly maybeLastPointerPosition: Schema.Option<Schema.Struct<{
|
|
31
|
+
readonly screenX: Schema.Number;
|
|
32
|
+
readonly screenY: Schema.Number;
|
|
33
33
|
}>>;
|
|
34
34
|
}>;
|
|
35
35
|
export type BaseModel = typeof BaseModel.Type;
|
|
@@ -52,36 +52,36 @@ export declare const baseInit: (config: BaseInitConfig) => BaseModel;
|
|
|
52
52
|
/** Union of all messages the combobox component can produce. */
|
|
53
53
|
export declare const Message: import("foldkit/message").MessageUnion<{
|
|
54
54
|
readonly Opened: {
|
|
55
|
-
maybeActiveItemIndex:
|
|
55
|
+
maybeActiveItemIndex: Schema.Option<Schema.Number>;
|
|
56
56
|
};
|
|
57
57
|
readonly Closed: {
|
|
58
|
-
restingInputValue:
|
|
59
|
-
isClearable:
|
|
58
|
+
restingInputValue: Schema.String;
|
|
59
|
+
isClearable: Schema.Boolean;
|
|
60
60
|
};
|
|
61
61
|
readonly BlurredInput: {
|
|
62
|
-
restingInputValue:
|
|
63
|
-
isClearable:
|
|
62
|
+
restingInputValue: Schema.String;
|
|
63
|
+
isClearable: Schema.Boolean;
|
|
64
64
|
};
|
|
65
65
|
readonly ActivatedItem: {
|
|
66
|
-
index:
|
|
67
|
-
activationTrigger:
|
|
68
|
-
maybeImmediateSelection:
|
|
69
|
-
readonly item:
|
|
66
|
+
index: Schema.Number;
|
|
67
|
+
activationTrigger: Schema.Literals<readonly ["Pointer", "Keyboard"]>;
|
|
68
|
+
maybeImmediateSelection: Schema.Option<Schema.Struct<{
|
|
69
|
+
readonly item: Schema.String;
|
|
70
70
|
}>>;
|
|
71
71
|
};
|
|
72
72
|
readonly DeactivatedItem: {};
|
|
73
73
|
readonly SelectedItem: {
|
|
74
|
-
item:
|
|
75
|
-
displayText:
|
|
76
|
-
wasSelected:
|
|
74
|
+
item: Schema.String;
|
|
75
|
+
displayText: Schema.String;
|
|
76
|
+
wasSelected: Schema.Boolean;
|
|
77
77
|
};
|
|
78
78
|
readonly MovedPointerOverItem: {
|
|
79
|
-
index:
|
|
80
|
-
screenX:
|
|
81
|
-
screenY:
|
|
79
|
+
index: Schema.Number;
|
|
80
|
+
screenX: Schema.Number;
|
|
81
|
+
screenY: Schema.Number;
|
|
82
82
|
};
|
|
83
83
|
readonly RequestedItemClick: {
|
|
84
|
-
index:
|
|
84
|
+
index: Schema.Number;
|
|
85
85
|
};
|
|
86
86
|
readonly SuppressedItemCommit: {};
|
|
87
87
|
readonly CompletedLockScroll: {};
|
|
@@ -104,11 +104,11 @@ export declare const Message: import("foldkit/message").MessageUnion<{
|
|
|
104
104
|
}>;
|
|
105
105
|
};
|
|
106
106
|
readonly UpdatedInputValue: {
|
|
107
|
-
value:
|
|
107
|
+
value: Schema.String;
|
|
108
108
|
};
|
|
109
109
|
readonly PressedToggleButton: {
|
|
110
|
-
restingInputValue:
|
|
111
|
-
isClearable:
|
|
110
|
+
restingInputValue: Schema.String;
|
|
111
|
+
isClearable: Schema.Boolean;
|
|
112
112
|
};
|
|
113
113
|
}>;
|
|
114
114
|
export type Opened = typeof Message.Opened.Type;
|
|
@@ -138,7 +138,7 @@ export type ClearedSelection = typeof OutMessage.ClearedSelection.Type;
|
|
|
138
138
|
/** Union of out-messages the combobox component can produce. The parent folds `Selected` into the selection it owns and clears that selection on `ClearedSelection`. */
|
|
139
139
|
export declare const OutMessage: import("foldkit/message").MessageUnion<{
|
|
140
140
|
readonly Selected: {
|
|
141
|
-
value:
|
|
141
|
+
value: Schema.String;
|
|
142
142
|
};
|
|
143
143
|
readonly ClearedSelection: {};
|
|
144
144
|
}>;
|
|
@@ -177,39 +177,39 @@ export declare const UnlockScroll: Command.CommandDefinitionNoArgs<"UnlockScroll
|
|
|
177
177
|
}, never, never>>;
|
|
178
178
|
/** Marks all elements outside the combobox as inert for modal behavior. */
|
|
179
179
|
export declare const InertOthers: Command.CommandDefinitionWithArgs<"InertOthers", {
|
|
180
|
-
id:
|
|
180
|
+
id: Schema.String;
|
|
181
181
|
}, Effect.Effect<{
|
|
182
182
|
readonly _tag: "CompletedInertOthers";
|
|
183
183
|
}, never, never>>;
|
|
184
184
|
/** Removes the inert attribute from elements outside the combobox. */
|
|
185
185
|
export declare const RestoreInert: Command.CommandDefinitionWithArgs<"RestoreInert", {
|
|
186
|
-
id:
|
|
186
|
+
id: Schema.String;
|
|
187
187
|
}, Effect.Effect<{
|
|
188
188
|
readonly _tag: "CompletedRestoreInert";
|
|
189
189
|
}, never, never>>;
|
|
190
190
|
/** Moves focus to the combobox input after selection or close. */
|
|
191
191
|
export declare const FocusInput: Command.CommandDefinitionWithArgs<"FocusInput", {
|
|
192
|
-
id:
|
|
192
|
+
id: Schema.String;
|
|
193
193
|
}, Effect.Effect<{
|
|
194
194
|
readonly _tag: "CompletedFocusInput";
|
|
195
195
|
}, never, never>>;
|
|
196
196
|
/** Scrolls the active combobox item into view after keyboard navigation. */
|
|
197
197
|
export declare const ScrollIntoView: Command.CommandDefinitionWithArgs<"ScrollIntoView", {
|
|
198
|
-
id:
|
|
199
|
-
index:
|
|
198
|
+
id: Schema.String;
|
|
199
|
+
index: Schema.Number;
|
|
200
200
|
}, Effect.Effect<{
|
|
201
201
|
readonly _tag: "CompletedScrollIntoView";
|
|
202
202
|
}, never, never>>;
|
|
203
203
|
/** Programmatically clicks the active combobox item's DOM element. */
|
|
204
204
|
export declare const ClickItem: Command.CommandDefinitionWithArgs<"ClickItem", {
|
|
205
|
-
id:
|
|
206
|
-
index:
|
|
205
|
+
id: Schema.String;
|
|
206
|
+
index: Schema.Number;
|
|
207
207
|
}, Effect.Effect<{
|
|
208
208
|
readonly _tag: "CompletedClickItem";
|
|
209
209
|
}, never, never>>;
|
|
210
210
|
/** Detects whether the combobox input wrapper moved or the leave animation ended. Whichever comes first; both outcomes signal the Animation submodel that leave is complete. */
|
|
211
211
|
export declare const DetectMovementOrAnimationEnd: Command.CommandDefinitionWithArgs<"DetectMovementOrAnimationEnd", {
|
|
212
|
-
id:
|
|
212
|
+
id: Schema.String;
|
|
213
213
|
}, Effect.Effect<{
|
|
214
214
|
readonly _tag: "GotAnimationMessage";
|
|
215
215
|
readonly message: {
|
|
@@ -316,19 +316,19 @@ export declare const makeUpdate: <Model extends BaseModel>(handlers: Readonly<{
|
|
|
316
316
|
* Scene tests can call
|
|
317
317
|
* `Scene.Mount.resolve(AnchorCombobox, CompletedAnchorCombobox())`. */
|
|
318
318
|
export declare const AnchorCombobox: Mount.MountDefinitionWithArgs<"AnchorCombobox", {
|
|
319
|
-
buttonId:
|
|
320
|
-
anchor:
|
|
321
|
-
readonly placement:
|
|
322
|
-
readonly gap:
|
|
323
|
-
readonly offset:
|
|
324
|
-
readonly padding:
|
|
325
|
-
readonly top:
|
|
326
|
-
readonly right:
|
|
327
|
-
readonly bottom:
|
|
328
|
-
readonly left:
|
|
319
|
+
buttonId: Schema.String;
|
|
320
|
+
anchor: Schema.Struct<{
|
|
321
|
+
readonly placement: Schema.optional<Schema.Literals<readonly ["top", "right", "bottom", "left", "top-start", "top-end", "right-start", "right-end", "bottom-start", "bottom-end", "left-start", "left-end"]>>;
|
|
322
|
+
readonly gap: Schema.optional<Schema.Number>;
|
|
323
|
+
readonly offset: Schema.optional<Schema.Number>;
|
|
324
|
+
readonly padding: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.Struct<{
|
|
325
|
+
readonly top: Schema.optionalKey<Schema.Number>;
|
|
326
|
+
readonly right: Schema.optionalKey<Schema.Number>;
|
|
327
|
+
readonly bottom: Schema.optionalKey<Schema.Number>;
|
|
328
|
+
readonly left: Schema.optionalKey<Schema.Number>;
|
|
329
329
|
}>]>>;
|
|
330
|
-
readonly portal:
|
|
331
|
-
readonly isPlacementLocked:
|
|
330
|
+
readonly portal: Schema.optional<Schema.Boolean>;
|
|
331
|
+
readonly isPlacementLocked: Schema.optional<Schema.Boolean>;
|
|
332
332
|
}>;
|
|
333
333
|
}, {
|
|
334
334
|
readonly _tag: "CompletedAnchorCombobox";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/combobox/shared.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/combobox/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAS,MAAM,EAAa,MAAM,EAAQ,MAAM,QAAQ,CAAA;AAC9E,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAExD,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAEtC,OAAO,EAAE,KAAK,IAAI,IAAI,YAAY,EAAc,MAAM,kBAAkB,CAAA;AACxE,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAA;AAExC,OAAO,EACL,YAAY,EAGb,MAAM,oBAAoB,CAAA;AAU3B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAK7C,OAAO,EAAE,eAAe,EAAE,CAAA;AAI1B,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB,mDAA2C,CAAA;AACzE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAA;AAE7D,yKAAyK;AACzK,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;EAepB,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAA;AAE7C,4EAA4E;AAC5E,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IAC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