@foldkit/ui 0.141.2 → 0.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/checkbox/index.d.ts +4 -0
- package/dist/checkbox/index.d.ts.map +1 -1
- package/dist/combobox/shared.d.ts.map +1 -1
- package/dist/combobox/shared.js +71 -73
- package/dist/datePicker/index.d.ts.map +1 -1
- package/dist/datePicker/index.js +76 -89
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/dialog/index.js +27 -29
- package/dist/listbox/multi.d.ts +2 -0
- package/dist/listbox/multi.d.ts.map +1 -1
- package/dist/listbox/public.d.ts +1 -1
- package/dist/listbox/public.d.ts.map +1 -1
- package/dist/listbox/public.js +1 -1
- package/dist/listbox/shared.d.ts +20 -0
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/shared.js +83 -64
- package/dist/listbox/single.d.ts +2 -0
- package/dist/listbox/single.d.ts.map +1 -1
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +53 -55
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +33 -35
- package/dist/radioGroup/index.d.ts +137 -51
- package/dist/radioGroup/index.d.ts.map +1 -1
- package/dist/radioGroup/index.js +149 -60
- package/dist/radioGroup/public.d.ts +2 -2
- package/dist/radioGroup/public.d.ts.map +1 -1
- package/dist/radioGroup/public.js +1 -1
- package/dist/slider/index.d.ts +28 -0
- package/dist/slider/index.d.ts.map +1 -1
- package/dist/slider/index.js +11 -8
- package/dist/switch/index.d.ts +4 -0
- package/dist/switch/index.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.js +16 -10
- package/dist/toast/update.d.ts.map +1 -1
- package/dist/toast/update.js +44 -50
- package/package.json +2 -2
package/dist/datePicker/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import * as Command from 'foldkit/command';
|
|
|
5
5
|
import { m } from 'foldkit/message';
|
|
6
6
|
import { evo } from 'foldkit/struct';
|
|
7
7
|
import { defineView } from 'foldkit/submodel';
|
|
8
|
+
import * as Update from 'foldkit/update';
|
|
8
9
|
import * as UiCalendar from '../calendar/index.js';
|
|
9
10
|
import { idSelector } from '../internal/selectors.js';
|
|
10
11
|
import * as Popover from '../popover/index.js';
|
|
@@ -101,89 +102,75 @@ export const init = (config) => (__foldkitBrandViewResult(({
|
|
|
101
102
|
const withUpdateReturn = M.withReturnType();
|
|
102
103
|
const mapCalendarCommands = (commands) => __foldkitBrandViewResult((Command.mapMessages(commands, message => __foldkitBrandViewResult((GotCalendarMessage({ message })), "@foldkit/ui/datePicker/index.js#anonymous"))), "@foldkit/ui/datePicker/index.js#mapCalendarCommands");
|
|
103
104
|
const mapPopoverCommands = (commands) => __foldkitBrandViewResult((Command.mapMessages(commands, message => __foldkitBrandViewResult((GotPopoverMessage({ message })), "@foldkit/ui/datePicker/index.js#anonymous~2"))), "@foldkit/ui/datePicker/index.js#mapPopoverCommands");
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
};
|
|
105
|
+
const dropCalendarToDays = model => __foldkitBrandViewResult(([
|
|
106
|
+
evo(model, { calendar: () => __foldkitBrandViewResult((UiCalendar.dropToDays(model.calendar)), "@foldkit/ui/datePicker/index.js#calendar") }),
|
|
107
|
+
[],
|
|
108
|
+
]), "@foldkit/ui/datePicker/index.js#dropCalendarToDays");
|
|
109
|
+
const readPopover = (model) => __foldkitBrandViewResult((Option.some(model.popover)), "@foldkit/ui/datePicker/index.js#readPopover");
|
|
110
|
+
const writePopover = (model, nextPopover) => __foldkitBrandViewResult((evo(model, { popover: () => __foldkitBrandViewResult((nextPopover), "@foldkit/ui/datePicker/index.js#popover") })), "@foldkit/ui/datePicker/index.js#writePopover");
|
|
111
|
+
const toGotPopoverMessage = (message) => __foldkitBrandViewResult((GotPopoverMessage({ message })), "@foldkit/ui/datePicker/index.js#toGotPopoverMessage");
|
|
112
|
+
const foldPopoverOutMessage = M.type().pipe(M.withReturnType(), M.tagsExhaustive({
|
|
113
|
+
Opened: () => __foldkitBrandViewResult((dropCalendarToDays), "@foldkit/ui/datePicker/index.js#Opened"),
|
|
114
|
+
Closed: () => __foldkitBrandViewResult((dropCalendarToDays), "@foldkit/ui/datePicker/index.js#Closed"),
|
|
115
|
+
}));
|
|
116
|
+
const foldPopover = Update.foldChild({
|
|
117
|
+
update: Popover.update,
|
|
118
|
+
read: readPopover,
|
|
119
|
+
write: writePopover,
|
|
120
|
+
toParentMessage: toGotPopoverMessage,
|
|
121
|
+
toParentOutMessage: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/datePicker/index.js#toParentOutMessage"),
|
|
122
|
+
foldOutMessage: foldPopoverOutMessage,
|
|
123
|
+
});
|
|
124
|
+
const foldPopoverOpen = Update.foldChildStep({
|
|
125
|
+
update: Popover.open,
|
|
126
|
+
read: readPopover,
|
|
127
|
+
write: writePopover,
|
|
128
|
+
toParentMessage: toGotPopoverMessage,
|
|
129
|
+
foldOutMessage: foldPopoverOutMessage,
|
|
130
|
+
});
|
|
131
|
+
const foldPopoverClose = Update.foldChildStep({
|
|
132
|
+
update: Popover.close,
|
|
133
|
+
read: readPopover,
|
|
134
|
+
write: writePopover,
|
|
135
|
+
toParentMessage: toGotPopoverMessage,
|
|
136
|
+
foldOutMessage: foldPopoverOutMessage,
|
|
137
|
+
});
|
|
138
|
+
const foldCalendarOutMessage = M.type().pipe(M.withReturnType(), M.tagsExhaustive({
|
|
139
|
+
ChangedViewMonth: () => __foldkitBrandViewResult((model => __foldkitBrandViewResult(([model, []]), "@foldkit/ui/datePicker/index.js#anonymous~3")), "@foldkit/ui/datePicker/index.js#ChangedViewMonth"),
|
|
140
|
+
SelectedDate: () => __foldkitBrandViewResult((foldPopoverClose), "@foldkit/ui/datePicker/index.js#SelectedDate"),
|
|
141
|
+
}));
|
|
142
|
+
const toDatePickerOutMessage = M.type().pipe(M.withReturnType(), M.tagsExhaustive({
|
|
143
|
+
ChangedViewMonth: ({ year, month }) => __foldkitBrandViewResult((Option.some(ChangedViewMonth({ year, month }))), "@foldkit/ui/datePicker/index.js#ChangedViewMonth~2"),
|
|
144
|
+
SelectedDate: ({ date }) => __foldkitBrandViewResult((Option.some(SelectedDate({ date }))), "@foldkit/ui/datePicker/index.js#SelectedDate~2"),
|
|
145
|
+
}));
|
|
146
|
+
const foldCalendar = Update.foldChild({
|
|
147
|
+
update: UiCalendar.update,
|
|
148
|
+
read: (model) => __foldkitBrandViewResult((Option.some(model.calendar)), "@foldkit/ui/datePicker/index.js#read"),
|
|
149
|
+
write: (model, nextCalendar) => __foldkitBrandViewResult((evo(model, { calendar: () => __foldkitBrandViewResult((nextCalendar), "@foldkit/ui/datePicker/index.js#calendar~2") })), "@foldkit/ui/datePicker/index.js#write"),
|
|
150
|
+
toParentMessage: message => __foldkitBrandViewResult((GotCalendarMessage({ message })), "@foldkit/ui/datePicker/index.js#toParentMessage"),
|
|
151
|
+
toParentOutMessage: toDatePickerOutMessage,
|
|
152
|
+
foldOutMessage: foldCalendarOutMessage,
|
|
153
|
+
});
|
|
153
154
|
/** Processes a date picker message and returns the next model, commands, and
|
|
154
155
|
* optional OutMessage. */
|
|
155
156
|
export const update = (model, message) => __foldkitBrandViewResult((M.value(message).pipe(withUpdateReturn, M.tagsExhaustive({
|
|
156
|
-
GotCalendarMessage: ({ message: calendarMessage }) => __foldkitBrandViewResult((
|
|
157
|
-
GotPopoverMessage: ({ message: popoverMessage }) => __foldkitBrandViewResult((
|
|
158
|
-
Opened: () =>
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
Option.none(),
|
|
167
|
-
]), "@foldkit/ui/datePicker/index.js#Opened");
|
|
168
|
-
},
|
|
169
|
-
Closed: () => {
|
|
170
|
-
const [nextPopover, popoverCommands] = Popover.close(model.popover);
|
|
171
|
-
return __foldkitBrandViewResult(([
|
|
172
|
-
evo(model, {
|
|
173
|
-
popover: () => __foldkitBrandViewResult((nextPopover), "@foldkit/ui/datePicker/index.js#popover~4"),
|
|
174
|
-
calendar: () => __foldkitBrandViewResult((UiCalendar.dropToDays(model.calendar)), "@foldkit/ui/datePicker/index.js#calendar~4"),
|
|
175
|
-
}),
|
|
176
|
-
mapPopoverCommands(popoverCommands),
|
|
177
|
-
Option.none(),
|
|
178
|
-
]), "@foldkit/ui/datePicker/index.js#Closed");
|
|
179
|
-
},
|
|
157
|
+
GotCalendarMessage: ({ message: calendarMessage }) => __foldkitBrandViewResult((foldCalendar(model, calendarMessage)), "@foldkit/ui/datePicker/index.js#GotCalendarMessage"),
|
|
158
|
+
GotPopoverMessage: ({ message: popoverMessage }) => __foldkitBrandViewResult((foldPopover(model, popoverMessage)), "@foldkit/ui/datePicker/index.js#GotPopoverMessage"),
|
|
159
|
+
Opened: () => __foldkitBrandViewResult(([
|
|
160
|
+
...Update.combine(model, [foldPopoverOpen, dropCalendarToDays]),
|
|
161
|
+
Option.none(),
|
|
162
|
+
]), "@foldkit/ui/datePicker/index.js#Opened~2"),
|
|
163
|
+
Closed: () => __foldkitBrandViewResult(([
|
|
164
|
+
...Update.combine(model, [foldPopoverClose, dropCalendarToDays]),
|
|
165
|
+
Option.none(),
|
|
166
|
+
]), "@foldkit/ui/datePicker/index.js#Closed~2"),
|
|
180
167
|
RequestedSelectDate: ({ date }) => {
|
|
181
168
|
const [nextCalendar, calendarCommands] = UiCalendar.selectDate(model.calendar, date);
|
|
182
169
|
const [nextPopover, popoverCommands] = Popover.close(model.popover);
|
|
183
170
|
return __foldkitBrandViewResult(([
|
|
184
171
|
evo(model, {
|
|
185
|
-
calendar: () => __foldkitBrandViewResult((nextCalendar), "@foldkit/ui/datePicker/index.js#calendar~
|
|
186
|
-
popover: () => __foldkitBrandViewResult((nextPopover), "@foldkit/ui/datePicker/index.js#popover~
|
|
172
|
+
calendar: () => __foldkitBrandViewResult((nextCalendar), "@foldkit/ui/datePicker/index.js#calendar~3"),
|
|
173
|
+
popover: () => __foldkitBrandViewResult((nextPopover), "@foldkit/ui/datePicker/index.js#popover~2"),
|
|
187
174
|
}),
|
|
188
175
|
[
|
|
189
176
|
...mapCalendarCommands(calendarCommands),
|
|
@@ -209,8 +196,8 @@ export const clear = (model) => __foldkitBrandViewResult((update(model, Cleared(
|
|
|
209
196
|
* parameter, a saved draft) so opening the picker shows that month. Returns
|
|
210
197
|
* the model directly because it produces no commands and no OutMessage. */
|
|
211
198
|
export const focusDate = Function.dual(2, (model, date) => __foldkitBrandViewResult((evo(model, {
|
|
212
|
-
calendar: () => __foldkitBrandViewResult((UiCalendar.focusDate(model.calendar, date)), "@foldkit/ui/datePicker/index.js#calendar~
|
|
213
|
-
})), "@foldkit/ui/datePicker/index.js#anonymous~
|
|
199
|
+
calendar: () => __foldkitBrandViewResult((UiCalendar.focusDate(model.calendar, date)), "@foldkit/ui/datePicker/index.js#calendar~4"),
|
|
200
|
+
})), "@foldkit/ui/datePicker/index.js#anonymous~4"));
|
|
214
201
|
/** Reflects the minimum selectable date onto the embedded calendar. Pass
|
|
215
202
|
* `Option.none()` to remove the minimum. Use this when the minimum derives
|
|
216
203
|
* from other Model state (e.g. a start date field whose current selection
|
|
@@ -220,26 +207,26 @@ export const focusDate = Function.dual(2, (model, date) => __foldkitBrandViewRes
|
|
|
220
207
|
* is now below the new minimum, it remains selected. Callers should `clear`
|
|
221
208
|
* or reassign the selection explicitly if their domain requires it. */
|
|
222
209
|
export const reflectMinDate = Function.dual(2, (model, maybeMinDate) => __foldkitBrandViewResult((evo(model, {
|
|
223
|
-
calendar: () => __foldkitBrandViewResult((UiCalendar.reflectMinDate(model.calendar, maybeMinDate)), "@foldkit/ui/datePicker/index.js#calendar~
|
|
224
|
-
})), "@foldkit/ui/datePicker/index.js#anonymous~
|
|
210
|
+
calendar: () => __foldkitBrandViewResult((UiCalendar.reflectMinDate(model.calendar, maybeMinDate)), "@foldkit/ui/datePicker/index.js#calendar~5"),
|
|
211
|
+
})), "@foldkit/ui/datePicker/index.js#anonymous~5"));
|
|
225
212
|
/** Reflects the maximum selectable date onto the embedded calendar. Pass
|
|
226
213
|
* `Option.none()` to remove the maximum. Does NOT reconcile the current
|
|
227
214
|
* selection. */
|
|
228
215
|
export const reflectMaxDate = Function.dual(2, (model, maybeMaxDate) => __foldkitBrandViewResult((evo(model, {
|
|
229
|
-
calendar: () => __foldkitBrandViewResult((UiCalendar.reflectMaxDate(model.calendar, maybeMaxDate)), "@foldkit/ui/datePicker/index.js#calendar~
|
|
230
|
-
})), "@foldkit/ui/datePicker/index.js#anonymous~
|
|
216
|
+
calendar: () => __foldkitBrandViewResult((UiCalendar.reflectMaxDate(model.calendar, maybeMaxDate)), "@foldkit/ui/datePicker/index.js#calendar~6"),
|
|
217
|
+
})), "@foldkit/ui/datePicker/index.js#anonymous~6"));
|
|
231
218
|
/** Reflects the list of individually-disabled dates onto the embedded
|
|
232
219
|
* calendar. Pass an empty array to clear. Does NOT reconcile the current
|
|
233
220
|
* selection. */
|
|
234
221
|
export const reflectDisabledDates = Function.dual(2, (model, disabledDates) => __foldkitBrandViewResult((evo(model, {
|
|
235
|
-
calendar: () => __foldkitBrandViewResult((UiCalendar.reflectDisabledDates(model.calendar, disabledDates)), "@foldkit/ui/datePicker/index.js#calendar~
|
|
236
|
-
})), "@foldkit/ui/datePicker/index.js#anonymous~
|
|
222
|
+
calendar: () => __foldkitBrandViewResult((UiCalendar.reflectDisabledDates(model.calendar, disabledDates)), "@foldkit/ui/datePicker/index.js#calendar~7"),
|
|
223
|
+
})), "@foldkit/ui/datePicker/index.js#anonymous~7"));
|
|
237
224
|
/** Reflects the days of the week that are disabled onto the embedded calendar
|
|
238
225
|
* (e.g. weekends). Pass an empty array to clear. Does NOT reconcile the
|
|
239
226
|
* current selection. */
|
|
240
227
|
export const reflectDisabledDaysOfWeek = Function.dual(2, (model, disabledDaysOfWeek) => __foldkitBrandViewResult((evo(model, {
|
|
241
|
-
calendar: () => __foldkitBrandViewResult((UiCalendar.reflectDisabledDaysOfWeek(model.calendar, disabledDaysOfWeek)), "@foldkit/ui/datePicker/index.js#calendar~
|
|
242
|
-
})), "@foldkit/ui/datePicker/index.js#anonymous~
|
|
228
|
+
calendar: () => __foldkitBrandViewResult((UiCalendar.reflectDisabledDaysOfWeek(model.calendar, disabledDaysOfWeek)), "@foldkit/ui/datePicker/index.js#calendar~8"),
|
|
229
|
+
})), "@foldkit/ui/datePicker/index.js#anonymous~8"));
|
|
243
230
|
// SELECTORS
|
|
244
231
|
/** Returns the bare DOM id of the date picker trigger button, derived from
|
|
245
232
|
* the date picker's base id. The trigger is the embedded Popover's button,
|
|
@@ -273,7 +260,7 @@ export const view = defineView((model, viewInputs, h) => {
|
|
|
273
260
|
model: model.calendar,
|
|
274
261
|
view: UiCalendar.view,
|
|
275
262
|
viewInputs: { maybeSelectedDate, toView: toCalendarView },
|
|
276
|
-
toParentMessage: message => __foldkitBrandViewResult((GotCalendarMessage({ message })), "@foldkit/ui/datePicker/index.js#toParentMessage"),
|
|
263
|
+
toParentMessage: message => __foldkitBrandViewResult((GotCalendarMessage({ message })), "@foldkit/ui/datePicker/index.js#toParentMessage~2"),
|
|
277
264
|
});
|
|
278
265
|
const popoverVNode = h.submodel({
|
|
279
266
|
slotId: model.popover.id,
|
|
@@ -312,10 +299,10 @@ export const view = defineView((model, viewInputs, h) => {
|
|
|
312
299
|
: []),
|
|
313
300
|
])), "@foldkit/ui/datePicker/index.js#toView"),
|
|
314
301
|
},
|
|
315
|
-
toParentMessage: message => __foldkitBrandViewResult((GotPopoverMessage({ message })), "@foldkit/ui/datePicker/index.js#toParentMessage~
|
|
302
|
+
toParentMessage: message => __foldkitBrandViewResult((GotPopoverMessage({ message })), "@foldkit/ui/datePicker/index.js#toParentMessage~3"),
|
|
316
303
|
});
|
|
317
304
|
const hiddenInputValue = Option.match(maybeSelectedDate, {
|
|
318
|
-
onNone: () => __foldkitBrandViewResult((''), "@foldkit/ui/datePicker/index.js#onNone
|
|
305
|
+
onNone: () => __foldkitBrandViewResult((''), "@foldkit/ui/datePicker/index.js#onNone"),
|
|
319
306
|
onSome: encodeIsoDate,
|
|
320
307
|
});
|
|
321
308
|
const maybeHiddenInput = name !== undefined
|
|
@@ -325,5 +312,5 @@ export const view = defineView((model, viewInputs, h) => {
|
|
|
325
312
|
...(className !== undefined ? [h.Class(className)] : []),
|
|
326
313
|
...attributes,
|
|
327
314
|
];
|
|
328
|
-
return __foldkitBrandViewResult((h.div(wrapperAttributes, [popoverVNode, ...maybeHiddenInput])), "@foldkit/ui/datePicker/index.js#anonymous~
|
|
315
|
+
return __foldkitBrandViewResult((h.div(wrapperAttributes, [popoverVNode, ...maybeHiddenInput])), "@foldkit/ui/datePicker/index.js#anonymous~9");
|
|
329
316
|
});
|
|
@@ -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,EAAE,MAAM,QAAQ,CAAA;AAChE,OAAO,K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,KAAK,IAAI,CAAA;CACrC,CAAC,CAAA;AAEF;;;2EAG2E;AAC3E,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAPP,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI;GA+FrC,CAAA"}
|
package/dist/dialog/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { childAttributes } from 'foldkit/html';
|
|
|
6
6
|
import { m } from 'foldkit/message';
|
|
7
7
|
import { evo } from 'foldkit/struct';
|
|
8
8
|
import { defineView } from 'foldkit/submodel';
|
|
9
|
+
import * as Update from 'foldkit/update';
|
|
9
10
|
// NOTE: Animation imports are split across schema + update to avoid a circular
|
|
10
11
|
// dependency: animation → html → runtime → devtools → dialog → animation.
|
|
11
12
|
// The barrel (../animation) imports from html, which starts the cycle.
|
|
@@ -112,37 +113,34 @@ export const ReleaseDialogResources = Command.define('ReleaseDialogResources', {
|
|
|
112
113
|
execute: ({ id }) => __foldkitBrandViewResult((Dom.releaseDialogResources(id).pipe(Effect.ignore, Effect.as(CompletedReleaseDialogResources()))), "@foldkit/ui/dialog/index.js#execute~3"),
|
|
113
114
|
});
|
|
114
115
|
const wrapAnimationMessage = (message) => __foldkitBrandViewResult((GotAnimationMessage({ message })), "@foldkit/ui/dialog/index.js#wrapAnimationMessage");
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
Option.none(),
|
|
131
|
-
]), "@foldkit/ui/dialog/index.js#delegateToAnimation");
|
|
132
|
-
};
|
|
116
|
+
const foldAnimationOutMessage = (outMessage, { liftCommand }) => __foldkitBrandViewResult((M.value(outMessage).pipe(M.withReturnType(), M.tagsExhaustive({
|
|
117
|
+
StartedLeaveAnimating: () => __foldkitBrandViewResult((model => __foldkitBrandViewResult(([
|
|
118
|
+
model,
|
|
119
|
+
[liftCommand(animationDefaultLeaveCommand(model.animation))],
|
|
120
|
+
]), "@foldkit/ui/dialog/index.js#anonymous~3")), "@foldkit/ui/dialog/index.js#StartedLeaveAnimating"),
|
|
121
|
+
TransitionedOut: () => __foldkitBrandViewResult((model => __foldkitBrandViewResult(([model, [CloseDialog({ id: model.id })]]), "@foldkit/ui/dialog/index.js#anonymous~4")), "@foldkit/ui/dialog/index.js#TransitionedOut"),
|
|
122
|
+
}))), "@foldkit/ui/dialog/index.js#foldAnimationOutMessage");
|
|
123
|
+
const foldAnimation = Update.foldChild({
|
|
124
|
+
update: animationUpdate,
|
|
125
|
+
read: (model) => __foldkitBrandViewResult((Option.some(model.animation)), "@foldkit/ui/dialog/index.js#read"),
|
|
126
|
+
write: (model, nextAnimation) => __foldkitBrandViewResult((evo(model, { animation: () => __foldkitBrandViewResult((nextAnimation), "@foldkit/ui/dialog/index.js#animation") })), "@foldkit/ui/dialog/index.js#write"),
|
|
127
|
+
toParentMessage: wrapAnimationMessage,
|
|
128
|
+
toParentOutMessage: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/dialog/index.js#toParentOutMessage"),
|
|
129
|
+
foldOutMessage: foldAnimationOutMessage,
|
|
130
|
+
});
|
|
133
131
|
/** Processes a dialog message and returns the next model and commands. */
|
|
134
132
|
export const update = (model, message) => __foldkitBrandViewResult((M.value(message).pipe(withUpdateReturn, M.tagsExhaustive({
|
|
135
133
|
RequestedOpen: () => {
|
|
136
134
|
const wasClosed = !model.isOpen;
|
|
137
135
|
const maybeShow = Option.liftPredicate(ShowDialog({
|
|
138
136
|
id: model.id,
|
|
139
|
-
focusSelector: Option.getOrElse(model.maybeFocusSelector, () => __foldkitBrandViewResult((initialFocusMarkerSelector), "@foldkit/ui/dialog/index.js#anonymous~
|
|
140
|
-
}), () => __foldkitBrandViewResult((wasClosed), "@foldkit/ui/dialog/index.js#anonymous~
|
|
137
|
+
focusSelector: Option.getOrElse(model.maybeFocusSelector, () => __foldkitBrandViewResult((initialFocusMarkerSelector), "@foldkit/ui/dialog/index.js#anonymous~5")),
|
|
138
|
+
}), () => __foldkitBrandViewResult((wasClosed), "@foldkit/ui/dialog/index.js#anonymous~6"));
|
|
141
139
|
const maybeOutMessage = wasClosed
|
|
142
140
|
? Option.some(Opened())
|
|
143
141
|
: Option.none();
|
|
144
142
|
if (model.isAnimated) {
|
|
145
|
-
const [nextModel, animationCommands] =
|
|
143
|
+
const [nextModel, animationCommands] = foldAnimation(model, AnimationShowed());
|
|
146
144
|
return __foldkitBrandViewResult(([
|
|
147
145
|
evo(nextModel, { isOpen: () => __foldkitBrandViewResult((true), "@foldkit/ui/dialog/index.js#isOpen") }),
|
|
148
146
|
[...Option.toArray(maybeShow), ...animationCommands],
|
|
@@ -165,17 +163,17 @@ export const update = (model, message) => __foldkitBrandViewResult((M.value(mess
|
|
|
165
163
|
const wasOpen = model.isOpen;
|
|
166
164
|
const maybeOutMessage = wasOpen ? Option.some(Closed()) : Option.none();
|
|
167
165
|
if (model.isAnimated) {
|
|
168
|
-
const [nextModel, animationCommands] =
|
|
166
|
+
const [nextModel, animationCommands] = foldAnimation(evo(model, { isOpen: () => __foldkitBrandViewResult((false), "@foldkit/ui/dialog/index.js#isOpen~3") }), AnimationHid());
|
|
169
167
|
return __foldkitBrandViewResult(([nextModel, animationCommands, maybeOutMessage]), "@foldkit/ui/dialog/index.js#RequestedClose");
|
|
170
168
|
}
|
|
171
|
-
const maybeClose = Option.liftPredicate(CloseDialog({ id: model.id }), () => __foldkitBrandViewResult((wasOpen), "@foldkit/ui/dialog/index.js#anonymous~
|
|
169
|
+
const maybeClose = Option.liftPredicate(CloseDialog({ id: model.id }), () => __foldkitBrandViewResult((wasOpen), "@foldkit/ui/dialog/index.js#anonymous~7"));
|
|
172
170
|
return __foldkitBrandViewResult(([
|
|
173
171
|
evo(model, { isOpen: () => __foldkitBrandViewResult((false), "@foldkit/ui/dialog/index.js#isOpen~4") }),
|
|
174
172
|
Option.toArray(maybeClose),
|
|
175
173
|
maybeOutMessage,
|
|
176
174
|
]), "@foldkit/ui/dialog/index.js#RequestedClose");
|
|
177
175
|
},
|
|
178
|
-
GotAnimationMessage: ({ message: animationMessage }) => __foldkitBrandViewResult((
|
|
176
|
+
GotAnimationMessage: ({ message: animationMessage }) => __foldkitBrandViewResult((foldAnimation(model, animationMessage)), "@foldkit/ui/dialog/index.js#GotAnimationMessage"),
|
|
179
177
|
Unmounted: () => {
|
|
180
178
|
const isHoldingResources = model.isOpen || model.animation.transitionState !== 'Idle';
|
|
181
179
|
if (isHoldingResources) {
|
|
@@ -233,17 +231,17 @@ export const view = defineView((model, viewInputs, h) => {
|
|
|
233
231
|
h.DataAttribute('closed', ''),
|
|
234
232
|
h.DataAttribute('enter', ''),
|
|
235
233
|
h.DataAttribute('transition', ''),
|
|
236
|
-
]), "@foldkit/ui/dialog/index.js#anonymous~
|
|
234
|
+
]), "@foldkit/ui/dialog/index.js#anonymous~9")), M.when('EnterAnimating', () => __foldkitBrandViewResult(([
|
|
237
235
|
h.DataAttribute('enter', ''),
|
|
238
236
|
h.DataAttribute('transition', ''),
|
|
239
|
-
]), "@foldkit/ui/dialog/index.js#anonymous~
|
|
237
|
+
]), "@foldkit/ui/dialog/index.js#anonymous~10")), M.when('LeaveStart', () => __foldkitBrandViewResult(([
|
|
240
238
|
h.DataAttribute('leave', ''),
|
|
241
239
|
h.DataAttribute('transition', ''),
|
|
242
|
-
]), "@foldkit/ui/dialog/index.js#anonymous~
|
|
240
|
+
]), "@foldkit/ui/dialog/index.js#anonymous~11")), M.when('LeaveAnimating', () => __foldkitBrandViewResult(([
|
|
243
241
|
h.DataAttribute('closed', ''),
|
|
244
242
|
h.DataAttribute('leave', ''),
|
|
245
243
|
h.DataAttribute('transition', ''),
|
|
246
|
-
]), "@foldkit/ui/dialog/index.js#anonymous~
|
|
244
|
+
]), "@foldkit/ui/dialog/index.js#anonymous~12")), M.orElse(() => __foldkitBrandViewResult(([]), "@foldkit/ui/dialog/index.js#anonymous~13")));
|
|
247
245
|
const dialogAttributes = [
|
|
248
246
|
h.Id(id),
|
|
249
247
|
h.AriaLabelledBy(titleId(model)),
|
|
@@ -290,5 +288,5 @@ export const view = defineView((model, viewInputs, h) => {
|
|
|
290
288
|
initialFocus: childAttributes(initialFocusAttributes),
|
|
291
289
|
closeButton: childAttributes(closeButtonAttributes),
|
|
292
290
|
isVisible,
|
|
293
|
-
})), "@foldkit/ui/dialog/index.js#anonymous~
|
|
291
|
+
})), "@foldkit/ui/dialog/index.js#anonymous~8");
|
|
294
292
|
});
|
package/dist/listbox/multi.d.ts
CHANGED
|
@@ -123,6 +123,8 @@ export declare const update: (model: {
|
|
|
123
123
|
} | {
|
|
124
124
|
readonly _tag: "CompletedDelayClearSearch";
|
|
125
125
|
readonly version: number;
|
|
126
|
+
} | {
|
|
127
|
+
readonly _tag: "SuppressedItemCommit";
|
|
126
128
|
} | {
|
|
127
129
|
readonly _tag: "PressedPointerOnButton";
|
|
128
130
|
readonly pointerType: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi.d.ts","sourceRoot":"","sources":["../../src/listbox/multi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,KAAK,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE5D,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,cAAc,EAEnB,KAAK,OAAO,EAEZ,KAAK,UAAU,EAMhB,MAAM,aAAa,CAAA;AAIpB,mOAAmO;AACnO,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;EAEhB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAIrC,kOAAkO;AAClO,MAAM,MAAM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,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;KACjC,CAAA;CACF,CAAC,CAAA;AAEF;;;;qBAIqB;AACrB,eAAO,MAAM,MAAM,GACjB,IAAI,GAAG,MAAM,EACb,KAAK,SAAS,MAAM,GAAG,IAAI,SAAS,MAAM,GAAG,IAAI,GAAG,MAAM,OACvD,MAAM,CAAC,IAAI,EAAE,KAAK,CAgBtB,CAAA"}
|
package/dist/listbox/public.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { init, create, Model } from './single.js';
|
|
2
2
|
export { buttonId } from './shared.js';
|
|
3
|
-
export { Message, OutMessage, Selected, Orientation, SelectedItem, CompletedLockScroll, CompletedUnlockScroll, CompletedInertOthers, CompletedRestoreInert, CompletedFocusButton, CompletedFocusItems, CompletedScrollIntoView, CompletedClickItem, CompletedAnchorListbox, CompletedPortalListboxBackdrop, AnchorListbox, PortalListboxBackdrop, CompletedDelayClearSearch, GotAnimationMessage, LockScroll, UnlockScroll, InertOthers, RestoreInert, FocusButton, FocusItems, ScrollIntoView, ClickItem, DelayClearSearch, DetectMovementOrAnimationEnd, Opened, Closed, BlurredItems, ActivatedItem, DeactivatedItem, MovedPointerOverItem, RequestedItemClick, Searched, PressedPointerOnButton, IgnoredMouseClick, SuppressedSpaceScroll, } from './shared.js';
|
|
3
|
+
export { Message, OutMessage, Selected, Orientation, SelectedItem, CompletedLockScroll, CompletedUnlockScroll, CompletedInertOthers, CompletedRestoreInert, CompletedFocusButton, CompletedFocusItems, CompletedScrollIntoView, CompletedClickItem, CompletedAnchorListbox, CompletedPortalListboxBackdrop, AnchorListbox, PortalListboxBackdrop, CompletedDelayClearSearch, GotAnimationMessage, LockScroll, UnlockScroll, InertOthers, RestoreInert, FocusButton, FocusItems, ScrollIntoView, ClickItem, DelayClearSearch, DetectMovementOrAnimationEnd, Opened, Closed, BlurredItems, ActivatedItem, DeactivatedItem, MovedPointerOverItem, RequestedItemClick, Searched, PressedPointerOnButton, IgnoredMouseClick, SuppressedSpaceScroll, SuppressedItemCommit, } from './shared.js';
|
|
4
4
|
export type { ActivationTrigger, ItemConfig, GroupHeading, BaseViewInputsCommon, ItemToValueInput, } from './shared.js';
|
|
5
5
|
export type { Bundle, InitConfig, ViewInputs } from './single.js';
|
|
6
6
|
export type { AnchorConfig } from '../anchor.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/listbox/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,8BAA8B,EAC9B,aAAa,EACb,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,WAAW,EACX,UAAU,EACV,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,4BAA4B,EAC5B,MAAM,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,QAAQ,EACR,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/listbox/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,8BAA8B,EAC9B,aAAa,EACb,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,WAAW,EACX,UAAU,EACV,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,4BAA4B,EAC5B,MAAM,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,QAAQ,EACR,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,aAAa,CAAA;AAEpB,YAAY,EACV,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,aAAa,CAAA;AAEpB,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAEjE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA"}
|
package/dist/listbox/public.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { init, create, Model } from './single.js';
|
|
2
2
|
export { buttonId } from './shared.js';
|
|
3
|
-
export { Message, OutMessage, Selected, Orientation, SelectedItem, CompletedLockScroll, CompletedUnlockScroll, CompletedInertOthers, CompletedRestoreInert, CompletedFocusButton, CompletedFocusItems, CompletedScrollIntoView, CompletedClickItem, CompletedAnchorListbox, CompletedPortalListboxBackdrop, AnchorListbox, PortalListboxBackdrop, CompletedDelayClearSearch, GotAnimationMessage, LockScroll, UnlockScroll, InertOthers, RestoreInert, FocusButton, FocusItems, ScrollIntoView, ClickItem, DelayClearSearch, DetectMovementOrAnimationEnd, Opened, Closed, BlurredItems, ActivatedItem, DeactivatedItem, MovedPointerOverItem, RequestedItemClick, Searched, PressedPointerOnButton, IgnoredMouseClick, SuppressedSpaceScroll, } from './shared.js';
|
|
3
|
+
export { Message, OutMessage, Selected, Orientation, SelectedItem, CompletedLockScroll, CompletedUnlockScroll, CompletedInertOthers, CompletedRestoreInert, CompletedFocusButton, CompletedFocusItems, CompletedScrollIntoView, CompletedClickItem, CompletedAnchorListbox, CompletedPortalListboxBackdrop, AnchorListbox, PortalListboxBackdrop, CompletedDelayClearSearch, GotAnimationMessage, LockScroll, UnlockScroll, InertOthers, RestoreInert, FocusButton, FocusItems, ScrollIntoView, ClickItem, DelayClearSearch, DetectMovementOrAnimationEnd, Opened, Closed, BlurredItems, ActivatedItem, DeactivatedItem, MovedPointerOverItem, RequestedItemClick, Searched, PressedPointerOnButton, IgnoredMouseClick, SuppressedSpaceScroll, SuppressedItemCommit, } from './shared.js';
|
|
4
4
|
export * as Multi from './multiPublic.js';
|
package/dist/listbox/shared.d.ts
CHANGED
|
@@ -102,6 +102,8 @@ export declare const CompletedClickItem: import("foldkit/schema").CallableTagged
|
|
|
102
102
|
export declare const IgnoredMouseClick: import("foldkit/schema").CallableTaggedStruct<"IgnoredMouseClick", {}>;
|
|
103
103
|
/** Sent when a Space key-up is captured to prevent page scrolling. */
|
|
104
104
|
export declare const SuppressedSpaceScroll: import("foldkit/schema").CallableTaggedStruct<"SuppressedSpaceScroll", {}>;
|
|
105
|
+
/** Sent when Enter or Space would commit the active item but the listbox is read-only. Update no-ops; the Message keeps the keypress visible and lets the view prevent the browser's default Space scroll. */
|
|
106
|
+
export declare const SuppressedItemCommit: import("foldkit/schema").CallableTaggedStruct<"SuppressedItemCommit", {}>;
|
|
105
107
|
/** Sent when the listbox items panel mounts and Floating UI has positioned it. Update no-ops; surfaces the positioning side effect for DevTools. */
|
|
106
108
|
export declare const CompletedAnchorListbox: import("foldkit/schema").CallableTaggedStruct<"CompletedAnchorListbox", {}>;
|
|
107
109
|
/** Sent when the listbox backdrop mounts and is portaled to the document body. Update no-ops; surfaces the portal side effect for DevTools. */
|
|
@@ -137,6 +139,7 @@ export declare const Message: S.Union<[
|
|
|
137
139
|
typeof CompletedClickItem,
|
|
138
140
|
typeof IgnoredMouseClick,
|
|
139
141
|
typeof SuppressedSpaceScroll,
|
|
142
|
+
typeof SuppressedItemCommit,
|
|
140
143
|
typeof CompletedAnchorListbox,
|
|
141
144
|
typeof CompletedPortalListboxBackdrop,
|
|
142
145
|
typeof GotAnimationMessage,
|
|
@@ -154,6 +157,7 @@ export type Searched = typeof Searched.Type;
|
|
|
154
157
|
export type CompletedDelayClearSearch = typeof CompletedDelayClearSearch.Type;
|
|
155
158
|
export type IgnoredMouseClick = typeof IgnoredMouseClick.Type;
|
|
156
159
|
export type SuppressedSpaceScroll = typeof SuppressedSpaceScroll.Type;
|
|
160
|
+
export type SuppressedItemCommit = typeof SuppressedItemCommit.Type;
|
|
157
161
|
export type PressedPointerOnButton = typeof PressedPointerOnButton.Type;
|
|
158
162
|
export type Message = typeof Message.Type;
|
|
159
163
|
/** Sent when the user activates an item (single-select commit or multi-select toggle). Carries the neutral fact that the item was activated; the parent owns the selection and decides what it means (single-select sets it, multi-select toggles membership). Generic over `Value extends string`: the runtime schema stores `value: string`, but the type-level OutMessage exposes `value: Value` so consumers who supply `items: ReadonlyArray<MyUnion>` receive `value: MyUnion` from `update<MyUnion>` without casting. The cast is fenced inside this module's `update` return, sound because the value was extracted from the items array the consumer supplied. */
|
|
@@ -319,6 +323,8 @@ export declare const makeUpdate: <Model extends BaseModel>(handleSelectedItem: (
|
|
|
319
323
|
} | {
|
|
320
324
|
readonly _tag: "CompletedDelayClearSearch";
|
|
321
325
|
readonly version: number;
|
|
326
|
+
} | {
|
|
327
|
+
readonly _tag: "SuppressedItemCommit";
|
|
322
328
|
} | {
|
|
323
329
|
readonly _tag: "PressedPointerOnButton";
|
|
324
330
|
readonly pointerType: string;
|
|
@@ -398,6 +404,9 @@ export type BaseViewInputsCommon<Item> = Readonly<{
|
|
|
398
404
|
itemToConfig: (item: Item, context: Readonly<{
|
|
399
405
|
isActive: boolean;
|
|
400
406
|
isDisabled: boolean;
|
|
407
|
+
/** Mirrors the view input of the same name, so `itemToConfig` can
|
|
408
|
+
* style items for read-only state without closing over `viewInputs`. */
|
|
409
|
+
isReadOnly: boolean;
|
|
401
410
|
isSelected: boolean;
|
|
402
411
|
}>) => ItemConfig;
|
|
403
412
|
isItemDisabled?: (item: Item, index: number) => boolean;
|
|
@@ -423,7 +432,18 @@ export type BaseViewInputsCommon<Item> = Readonly<{
|
|
|
423
432
|
anchor?: AnchorConfig;
|
|
424
433
|
name?: string;
|
|
425
434
|
form?: string;
|
|
435
|
+
/** Marks the Listbox unavailable with `aria-disabled="true"` on the button
|
|
436
|
+
* and `data-disabled` on the button and the wrapper, and removes the
|
|
437
|
+
* button's handlers so the dropdown cannot be opened. */
|
|
426
438
|
isDisabled?: boolean;
|
|
439
|
+
/** Prevents committing a selection while exposing read-only semantics
|
|
440
|
+
* with `aria-readonly="true"` and `data-readonly` on the items panel, and
|
|
441
|
+
* `data-readonly` on the wrapper, button, and every item. The Listbox
|
|
442
|
+
* still opens, navigates, and searches. Independent of `isDisabled`:
|
|
443
|
+
* setting both emits both attribute sets, and `isDisabled` still wins for
|
|
444
|
+
* interaction, since its button drops every handler, so a Listbox that is
|
|
445
|
+
* both read-only and disabled cannot be opened at all. */
|
|
446
|
+
isReadOnly?: boolean;
|
|
427
447
|
isInvalid?: boolean;
|
|
428
448
|
ariaLabel?: string;
|
|
429
449
|
ariaLabelledBy?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/listbox/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAGN,MAAM,EAEN,MAAM,IAAI,CAAC,EAGZ,MAAM,QAAQ,CAAA;AACf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C,OAAO,KA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