@foldkit/ui 0.134.0 → 0.136.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation/update.d.ts.map +1 -1
- package/dist/animation/update.js +13 -6
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/calendar/index.js +41 -37
- package/dist/combobox/shared.d.ts.map +1 -1
- package/dist/combobox/shared.js +85 -55
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/dialog/index.js +23 -11
- package/dist/dragAndDrop/index.d.ts.map +1 -1
- package/dist/dragAndDrop/index.js +67 -58
- package/dist/internal/selectors.d.ts +10 -0
- package/dist/internal/selectors.d.ts.map +1 -1
- package/dist/internal/selectors.js +10 -0
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/shared.js +84 -46
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +79 -41
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +48 -22
- package/dist/slider/index.d.ts.map +1 -1
- package/dist/slider/index.js +2 -1
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/tabs/index.js +16 -12
- package/dist/toast/test.d.ts +1 -1
- package/dist/toast/test.js +1 -1
- package/dist/toast/update.d.ts.map +1 -1
- package/dist/toast/update.js +21 -17
- package/dist/tooltip/index.d.ts.map +1 -1
- package/dist/tooltip/index.js +11 -7
- package/dist/virtualList/index.d.ts.map +1 -1
- package/dist/virtualList/index.js +22 -18
- package/package.json +3 -3
package/dist/listbox/shared.js
CHANGED
|
@@ -180,30 +180,68 @@ export const closedModel = (model) => __foldkitBrandViewResult((constrainedEvo(m
|
|
|
180
180
|
maybeLastButtonPointerType: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/listbox/shared.js#maybeLastButtonPointerType"),
|
|
181
181
|
})), "@foldkit/ui/listbox/shared.js#closedModel");
|
|
182
182
|
/** Prevents page scrolling while the listbox is open in modal mode. */
|
|
183
|
-
export const LockScroll = Command.define('LockScroll',
|
|
183
|
+
export const LockScroll = Command.define('LockScroll', {
|
|
184
|
+
messages: [CompletedLockScroll],
|
|
185
|
+
execute: Dom.lockScroll.pipe(Effect.as(CompletedLockScroll())),
|
|
186
|
+
});
|
|
184
187
|
/** Re-enables page scrolling after the listbox closes. */
|
|
185
|
-
export const UnlockScroll = Command.define('UnlockScroll',
|
|
188
|
+
export const UnlockScroll = Command.define('UnlockScroll', {
|
|
189
|
+
messages: [CompletedUnlockScroll],
|
|
190
|
+
execute: Dom.unlockScroll.pipe(Effect.as(CompletedUnlockScroll())),
|
|
191
|
+
});
|
|
186
192
|
/** Marks all elements outside the listbox as inert for modal behavior. */
|
|
187
|
-
export const InertOthers = Command.define('InertOthers', {
|
|
193
|
+
export const InertOthers = Command.define('InertOthers', {
|
|
194
|
+
args: { id: S.String },
|
|
195
|
+
messages: [CompletedInertOthers],
|
|
196
|
+
execute: ({ id }) => __foldkitBrandViewResult((Dom.inertOthers(id, [buttonSelector(id), itemsSelector(id)]).pipe(Effect.as(CompletedInertOthers()))), "@foldkit/ui/listbox/shared.js#execute"),
|
|
197
|
+
});
|
|
188
198
|
/** Removes the inert attribute from elements outside the listbox. */
|
|
189
|
-
export const RestoreInert = Command.define('RestoreInert', {
|
|
199
|
+
export const RestoreInert = Command.define('RestoreInert', {
|
|
200
|
+
args: { id: S.String },
|
|
201
|
+
messages: [CompletedRestoreInert],
|
|
202
|
+
execute: ({ id }) => __foldkitBrandViewResult((Dom.restoreInert(id).pipe(Effect.as(CompletedRestoreInert()))), "@foldkit/ui/listbox/shared.js#execute~2"),
|
|
203
|
+
});
|
|
190
204
|
/** Moves focus back to the listbox button after closing. */
|
|
191
|
-
export const FocusButton = Command.define('FocusButton', {
|
|
205
|
+
export const FocusButton = Command.define('FocusButton', {
|
|
206
|
+
args: { id: S.String },
|
|
207
|
+
messages: [CompletedFocusButton],
|
|
208
|
+
execute: ({ id }) => __foldkitBrandViewResult((Dom.focus(buttonSelector(id)).pipe(Effect.ignore, Effect.as(CompletedFocusButton()))), "@foldkit/ui/listbox/shared.js#execute~3"),
|
|
209
|
+
});
|
|
192
210
|
/** Moves focus to the listbox items container after opening. */
|
|
193
|
-
export const FocusItems = Command.define('FocusItems', {
|
|
211
|
+
export const FocusItems = Command.define('FocusItems', {
|
|
212
|
+
args: { id: S.String },
|
|
213
|
+
messages: [CompletedFocusItems],
|
|
214
|
+
execute: ({ id }) => __foldkitBrandViewResult((Dom.focus(itemsSelector(id)).pipe(Effect.ignore, Effect.as(CompletedFocusItems()))), "@foldkit/ui/listbox/shared.js#execute~4"),
|
|
215
|
+
});
|
|
194
216
|
/** Scrolls the active listbox item into view after keyboard navigation. */
|
|
195
|
-
export const ScrollIntoView = Command.define('ScrollIntoView', {
|
|
217
|
+
export const ScrollIntoView = Command.define('ScrollIntoView', {
|
|
218
|
+
args: { id: S.String, index: S.Number },
|
|
219
|
+
messages: [CompletedScrollIntoView],
|
|
220
|
+
execute: ({ id, index }) => __foldkitBrandViewResult((Dom.scrollIntoView(itemSelector(id, index)).pipe(Effect.ignore, Effect.as(CompletedScrollIntoView()))), "@foldkit/ui/listbox/shared.js#execute~5"),
|
|
221
|
+
});
|
|
196
222
|
/** Programmatically clicks the active listbox item's DOM element. */
|
|
197
|
-
export const ClickItem = Command.define('ClickItem', {
|
|
223
|
+
export const ClickItem = Command.define('ClickItem', {
|
|
224
|
+
args: { id: S.String, index: S.Number },
|
|
225
|
+
messages: [CompletedClickItem],
|
|
226
|
+
execute: ({ id, index }) => __foldkitBrandViewResult((Dom.clickElement(itemSelector(id, index)).pipe(Effect.ignore, Effect.as(CompletedClickItem()))), "@foldkit/ui/listbox/shared.js#execute~6"),
|
|
227
|
+
});
|
|
198
228
|
/** Waits for the typeahead search debounce period before clearing the query. */
|
|
199
|
-
export const DelayClearSearch = Command.define('DelayClearSearch', {
|
|
229
|
+
export const DelayClearSearch = Command.define('DelayClearSearch', {
|
|
230
|
+
args: { version: S.Number },
|
|
231
|
+
messages: [ClearedSearch],
|
|
232
|
+
execute: ({ version }) => __foldkitBrandViewResult((Effect.sleep(SEARCH_DEBOUNCE_MILLISECONDS).pipe(Effect.as(ClearedSearch({ version })))), "@foldkit/ui/listbox/shared.js#execute~7"),
|
|
233
|
+
});
|
|
200
234
|
/** Detects whether the listbox button moved or the leave animation ended. Whichever comes first; both outcomes signal the Animation submodel that leave is complete. */
|
|
201
|
-
export const DetectMovementOrAnimationEnd = Command.define('DetectMovementOrAnimationEnd', {
|
|
235
|
+
export const DetectMovementOrAnimationEnd = Command.define('DetectMovementOrAnimationEnd', {
|
|
236
|
+
args: { id: S.String },
|
|
237
|
+
messages: [GotAnimationMessage],
|
|
238
|
+
execute: ({ id }) => __foldkitBrandViewResult((Effect.raceFirst(Dom.detectElementMovement(buttonSelector(id)).pipe(Effect.as(GotAnimationMessage({ message: AnimationEndedAnimation() }))), Dom.waitForAnimationSettled(itemsSelector(id)).pipe(Effect.as(GotAnimationMessage({ message: AnimationEndedAnimation() }))))), "@foldkit/ui/listbox/shared.js#execute~8"),
|
|
239
|
+
});
|
|
202
240
|
export const makeUpdate = (handleSelectedItem) => {
|
|
203
241
|
const withUpdateReturn = M.withReturnType();
|
|
204
242
|
const delegateToAnimation = (model, animationMessage) => {
|
|
205
243
|
const [nextAnimation, animationCommands, maybeOutMessage] = animationUpdate(model.animation, animationMessage);
|
|
206
|
-
const mappedCommands = Command.mapMessages(animationCommands, message => __foldkitBrandViewResult((GotAnimationMessage({ message })), "@foldkit/ui/listbox/shared.js#anonymous
|
|
244
|
+
const mappedCommands = Command.mapMessages(animationCommands, message => __foldkitBrandViewResult((GotAnimationMessage({ message })), "@foldkit/ui/listbox/shared.js#anonymous"));
|
|
207
245
|
const additionalCommands = Option.match(maybeOutMessage, {
|
|
208
246
|
onNone: () => __foldkitBrandViewResult(([]), "@foldkit/ui/listbox/shared.js#onNone"),
|
|
209
247
|
onSome: M.type().pipe(M.tagsExhaustive({
|
|
@@ -261,7 +299,7 @@ export const makeUpdate = (handleSelectedItem) => {
|
|
|
261
299
|
maybeUnlockScroll,
|
|
262
300
|
maybeRestoreInert,
|
|
263
301
|
]);
|
|
264
|
-
return __foldkitBrandViewResult((M.value(message).pipe(withUpdateReturn, M.tag('CompletedLockScroll', 'CompletedUnlockScroll', 'CompletedInertOthers', 'CompletedRestoreInert', 'CompletedFocusButton', 'CompletedFocusItems', 'CompletedScrollIntoView', 'CompletedClickItem', 'SuppressedSpaceScroll', 'CompletedAnchorListbox', 'CompletedPortalListboxBackdrop', () => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
302
|
+
return __foldkitBrandViewResult((M.value(message).pipe(withUpdateReturn, M.tag('CompletedLockScroll', 'CompletedUnlockScroll', 'CompletedInertOthers', 'CompletedRestoreInert', 'CompletedFocusButton', 'CompletedFocusItems', 'CompletedScrollIntoView', 'CompletedClickItem', 'SuppressedSpaceScroll', 'CompletedAnchorListbox', 'CompletedPortalListboxBackdrop', () => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/listbox/shared.js#anonymous~2")), M.tagsExhaustive({
|
|
265
303
|
Opened: ({ maybeActiveItemIndex }) => __foldkitBrandViewResult((openListbox(constrainedEvo(model, {
|
|
266
304
|
maybeActiveItemIndex: () => __foldkitBrandViewResult((maybeActiveItemIndex), "@foldkit/ui/listbox/shared.js#maybeActiveItemIndex~2"),
|
|
267
305
|
activationTrigger: () => __foldkitBrandViewResult((Option.match(maybeActiveItemIndex, {
|
|
@@ -290,7 +328,7 @@ export const makeUpdate = (handleSelectedItem) => {
|
|
|
290
328
|
Option.none(),
|
|
291
329
|
]), "@foldkit/ui/listbox/shared.js#ActivatedItem"),
|
|
292
330
|
MovedPointerOverItem: ({ index, screenX, screenY }) => {
|
|
293
|
-
const isSamePosition = Option.exists(model.maybeLastPointerPosition, position => __foldkitBrandViewResult((position.screenX === screenX && position.screenY === screenY), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
331
|
+
const isSamePosition = Option.exists(model.maybeLastPointerPosition, position => __foldkitBrandViewResult((position.screenX === screenX && position.screenY === screenY), "@foldkit/ui/listbox/shared.js#anonymous~3"));
|
|
294
332
|
if (isSamePosition) {
|
|
295
333
|
return __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/listbox/shared.js#MovedPointerOverItem");
|
|
296
334
|
}
|
|
@@ -329,7 +367,7 @@ export const makeUpdate = (handleSelectedItem) => {
|
|
|
329
367
|
constrainedEvo(model, {
|
|
330
368
|
searchQuery: () => __foldkitBrandViewResult((nextSearchQuery), "@foldkit/ui/listbox/shared.js#searchQuery~3"),
|
|
331
369
|
searchVersion: () => __foldkitBrandViewResult((nextSearchVersion), "@foldkit/ui/listbox/shared.js#searchVersion~3"),
|
|
332
|
-
maybeActiveItemIndex: () => __foldkitBrandViewResult((Option.orElse(maybeTargetIndex, () => __foldkitBrandViewResult((model.maybeActiveItemIndex), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
370
|
+
maybeActiveItemIndex: () => __foldkitBrandViewResult((Option.orElse(maybeTargetIndex, () => __foldkitBrandViewResult((model.maybeActiveItemIndex), "@foldkit/ui/listbox/shared.js#anonymous~4"))), "@foldkit/ui/listbox/shared.js#maybeActiveItemIndex~6"),
|
|
333
371
|
}),
|
|
334
372
|
[DelayClearSearch({ version: nextSearchVersion })],
|
|
335
373
|
Option.none(),
|
|
@@ -389,42 +427,42 @@ export const makeUpdate = (handleSelectedItem) => {
|
|
|
389
427
|
* so Scene tests can call
|
|
390
428
|
* `Scene.Mount.resolve(AnchorListbox, CompletedAnchorListbox())`. */
|
|
391
429
|
export const AnchorListbox = Mount.define('AnchorListbox', { buttonId: S.String, anchor: AnchorConfig }, CompletedAnchorListbox)(({ buttonId, anchor }) => __foldkitBrandViewResult((element => __foldkitBrandViewResult((Effect.gen(function* () {
|
|
392
|
-
yield* Effect.acquireRelease(Effect.sync(() => __foldkitBrandViewResult((anchorSetup({ buttonId, anchor })(element)), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
393
|
-
return __foldkitBrandViewResult((CompletedAnchorListbox()), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
394
|
-
})), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
430
|
+
yield* Effect.acquireRelease(Effect.sync(() => __foldkitBrandViewResult((anchorSetup({ buttonId, anchor })(element)), "@foldkit/ui/listbox/shared.js#anonymous~8")), cleanup => __foldkitBrandViewResult((Effect.sync(cleanup)), "@foldkit/ui/listbox/shared.js#anonymous~9"));
|
|
431
|
+
return __foldkitBrandViewResult((CompletedAnchorListbox()), "@foldkit/ui/listbox/shared.js#anonymous~7");
|
|
432
|
+
})), "@foldkit/ui/listbox/shared.js#anonymous~6")), "@foldkit/ui/listbox/shared.js#anonymous~5"));
|
|
395
433
|
/** The backdrop-portaling Mount this Listbox renders. Exposed so Scene tests can
|
|
396
434
|
* call `Scene.Mount.resolve(PortalListboxBackdrop, CompletedPortalListboxBackdrop())` to
|
|
397
435
|
* acknowledge the mount produced by the rendered backdrop. */
|
|
398
436
|
export const PortalListboxBackdrop = Mount.define('PortalListboxBackdrop', CompletedPortalListboxBackdrop)(element => __foldkitBrandViewResult((Effect.gen(function* () {
|
|
399
|
-
yield* Effect.acquireRelease(Effect.sync(() => __foldkitBrandViewResult((portalToContainingRoot(element)), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
400
|
-
return __foldkitBrandViewResult((CompletedPortalListboxBackdrop()), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
401
|
-
})), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
437
|
+
yield* Effect.acquireRelease(Effect.sync(() => __foldkitBrandViewResult((portalToContainingRoot(element)), "@foldkit/ui/listbox/shared.js#anonymous~12")), cleanup => __foldkitBrandViewResult((Effect.sync(cleanup)), "@foldkit/ui/listbox/shared.js#anonymous~13"));
|
|
438
|
+
return __foldkitBrandViewResult((CompletedPortalListboxBackdrop()), "@foldkit/ui/listbox/shared.js#anonymous~11");
|
|
439
|
+
})), "@foldkit/ui/listbox/shared.js#anonymous~10"));
|
|
402
440
|
export const makeView = (behavior) => {
|
|
403
441
|
const impl = defineView((model, viewInputs, h) => {
|
|
404
442
|
const { id, isOpen, orientation, animation: { transitionState }, maybeActiveItemIndex, searchQuery, maybeLastButtonPointerType, } = model;
|
|
405
443
|
const { items, itemToConfig, isItemDisabled, isButtonDisabled, buttonContent, buttonClassName, buttonAttributes = [], itemsClassName, itemsAttributes = [], itemsScrollClassName, itemsScrollAttributes = [], backdropClassName, backdropAttributes = [], className, attributes = [], itemGroupKey, groupToHeading, groupClassName, groupAttributes = [], separatorClassName, separatorAttributes = [], anchor = {}, name, form, isDisabled, isInvalid, ariaLabel, ariaLabelledBy, selectedValues, } = viewInputs;
|
|
406
|
-
const itemToValue = viewInputs.itemToValue ?? ((item) => __foldkitBrandViewResult((String(item)), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
444
|
+
const itemToValue = viewInputs.itemToValue ?? ((item) => __foldkitBrandViewResult((String(item)), "@foldkit/ui/listbox/shared.js#anonymous~15"));
|
|
407
445
|
const isValueSelected = (itemValue) => __foldkitBrandViewResult((Array.contains(selectedValues, itemValue)), "@foldkit/ui/listbox/shared.js#isValueSelected");
|
|
408
|
-
const itemToSearchText = viewInputs.itemToSearchText ?? ((item) => __foldkitBrandViewResult((itemToValue(item)), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
446
|
+
const itemToSearchText = viewInputs.itemToSearchText ?? ((item) => __foldkitBrandViewResult((itemToValue(item)), "@foldkit/ui/listbox/shared.js#anonymous~16"));
|
|
409
447
|
const isLeaving = transitionState === 'LeaveStart' || transitionState === 'LeaveAnimating';
|
|
410
448
|
const isVisible = isOpen || isLeaving;
|
|
411
449
|
const animationAttributes = M.value(transitionState).pipe(M.when('EnterStart', () => __foldkitBrandViewResult(([
|
|
412
450
|
h.DataAttribute('closed', ''),
|
|
413
451
|
h.DataAttribute('enter', ''),
|
|
414
452
|
h.DataAttribute('transition', ''),
|
|
415
|
-
]), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
453
|
+
]), "@foldkit/ui/listbox/shared.js#anonymous~17")), M.when('EnterAnimating', () => __foldkitBrandViewResult(([
|
|
416
454
|
h.DataAttribute('enter', ''),
|
|
417
455
|
h.DataAttribute('transition', ''),
|
|
418
|
-
]), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
456
|
+
]), "@foldkit/ui/listbox/shared.js#anonymous~18")), M.when('LeaveStart', () => __foldkitBrandViewResult(([
|
|
419
457
|
h.DataAttribute('leave', ''),
|
|
420
458
|
h.DataAttribute('transition', ''),
|
|
421
|
-
]), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
459
|
+
]), "@foldkit/ui/listbox/shared.js#anonymous~19")), M.when('LeaveAnimating', () => __foldkitBrandViewResult(([
|
|
422
460
|
h.DataAttribute('closed', ''),
|
|
423
461
|
h.DataAttribute('leave', ''),
|
|
424
462
|
h.DataAttribute('transition', ''),
|
|
425
|
-
]), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
463
|
+
]), "@foldkit/ui/listbox/shared.js#anonymous~20")), M.orElse(() => __foldkitBrandViewResult(([]), "@foldkit/ui/listbox/shared.js#anonymous~21")));
|
|
426
464
|
const isItemDisabledByIndex = (index) => __foldkitBrandViewResult((Predicate.isNotUndefined(isItemDisabled) &&
|
|
427
|
-
pipe(items, Array.get(index), Option.exists(item => __foldkitBrandViewResult((isItemDisabled(item, index)), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
465
|
+
pipe(items, Array.get(index), Option.exists(item => __foldkitBrandViewResult((isItemDisabled(item, index)), "@foldkit/ui/listbox/shared.js#anonymous~22")))), "@foldkit/ui/listbox/shared.js#isItemDisabledByIndex");
|
|
428
466
|
const isButtonEffectivelyDisabled = isDisabled || isButtonDisabled;
|
|
429
467
|
const nextKey = orientation === 'Horizontal' ? 'ArrowRight' : 'ArrowDown';
|
|
430
468
|
const previousKey = orientation === 'Horizontal' ? 'ArrowLeft' : 'ArrowUp';
|
|
@@ -439,20 +477,20 @@ export const makeView = (behavior) => {
|
|
|
439
477
|
const isNavigationKey = (key) => __foldkitBrandViewResult((Array.contains(navigationKeys, key)), "@foldkit/ui/listbox/shared.js#isNavigationKey");
|
|
440
478
|
const firstEnabledIndex = findFirstEnabledIndex(items.length, 0, isItemDisabledByIndex)(0, 1);
|
|
441
479
|
const lastEnabledIndex = findFirstEnabledIndex(items.length, 0, isItemDisabledByIndex)(items.length - 1, -1);
|
|
442
|
-
const selectedItemIndex = pipe(selectedValues, Array.head, Option.flatMap(selectedValue => __foldkitBrandViewResult((Array.findFirstIndex(items, item => __foldkitBrandViewResult((itemToValue(item) === selectedValue), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
480
|
+
const selectedItemIndex = pipe(selectedValues, Array.head, Option.flatMap(selectedValue => __foldkitBrandViewResult((Array.findFirstIndex(items, item => __foldkitBrandViewResult((itemToValue(item) === selectedValue), "@foldkit/ui/listbox/shared.js#anonymous~24"))), "@foldkit/ui/listbox/shared.js#anonymous~23")));
|
|
443
481
|
const handleButtonKeyDown = (key) => {
|
|
444
482
|
if (isOpen) {
|
|
445
483
|
return __foldkitBrandViewResult((handleItemsKeyDown(key)), "@foldkit/ui/listbox/shared.js#handleButtonKeyDown");
|
|
446
484
|
}
|
|
447
485
|
return __foldkitBrandViewResult((M.value(key).pipe(M.whenOr('Enter', ' ', 'ArrowDown', () => __foldkitBrandViewResult((Option.some(Opened({
|
|
448
|
-
maybeActiveItemIndex: Option.orElse(selectedItemIndex, () => __foldkitBrandViewResult((Option.some(firstEnabledIndex)), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
449
|
-
}))), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
450
|
-
maybeActiveItemIndex: Option.orElse(selectedItemIndex, () => __foldkitBrandViewResult((Option.some(lastEnabledIndex)), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
451
|
-
}))), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
486
|
+
maybeActiveItemIndex: Option.orElse(selectedItemIndex, () => __foldkitBrandViewResult((Option.some(firstEnabledIndex)), "@foldkit/ui/listbox/shared.js#anonymous~26")),
|
|
487
|
+
}))), "@foldkit/ui/listbox/shared.js#anonymous~25")), M.when('ArrowUp', () => __foldkitBrandViewResult((Option.some(Opened({
|
|
488
|
+
maybeActiveItemIndex: Option.orElse(selectedItemIndex, () => __foldkitBrandViewResult((Option.some(lastEnabledIndex)), "@foldkit/ui/listbox/shared.js#anonymous~28")),
|
|
489
|
+
}))), "@foldkit/ui/listbox/shared.js#anonymous~27")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/listbox/shared.js#anonymous~29")))), "@foldkit/ui/listbox/shared.js#handleButtonKeyDown");
|
|
452
490
|
};
|
|
453
491
|
const handleButtonPointerDown = (pointerType, button) => __foldkitBrandViewResult((Option.some(PressedPointerOnButton({ pointerType, button }))), "@foldkit/ui/listbox/shared.js#handleButtonPointerDown");
|
|
454
492
|
const handleButtonClick = () => {
|
|
455
|
-
const isMouse = Option.exists(maybeLastButtonPointerType, type => __foldkitBrandViewResult((type === 'mouse'), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
493
|
+
const isMouse = Option.exists(maybeLastButtonPointerType, type => __foldkitBrandViewResult((type === 'mouse'), "@foldkit/ui/listbox/shared.js#anonymous~30"));
|
|
456
494
|
if (isMouse) {
|
|
457
495
|
return __foldkitBrandViewResult((IgnoredMouseClick()), "@foldkit/ui/listbox/shared.js#handleButtonClick");
|
|
458
496
|
}
|
|
@@ -465,7 +503,7 @@ export const makeView = (behavior) => {
|
|
|
465
503
|
};
|
|
466
504
|
const handleSpaceKeyUp = (key) => __foldkitBrandViewResult((OptionExt.when(key === ' ', SuppressedSpaceScroll())), "@foldkit/ui/listbox/shared.js#handleSpaceKeyUp");
|
|
467
505
|
const resolveActiveIndex = (key) => __foldkitBrandViewResult((Option.match(maybeActiveItemIndex, {
|
|
468
|
-
onNone: () => __foldkitBrandViewResult((M.value(key).pipe(M.whenOr(previousKey, 'End', 'PageDown', () => __foldkitBrandViewResult((lastEnabledIndex), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
506
|
+
onNone: () => __foldkitBrandViewResult((M.value(key).pipe(M.whenOr(previousKey, 'End', 'PageDown', () => __foldkitBrandViewResult((lastEnabledIndex), "@foldkit/ui/listbox/shared.js#anonymous~31")), M.orElse(() => __foldkitBrandViewResult((firstEnabledIndex), "@foldkit/ui/listbox/shared.js#anonymous~32")))), "@foldkit/ui/listbox/shared.js#onNone~3"),
|
|
469
507
|
onSome: activeIndex => __foldkitBrandViewResult((keyToIndex(nextKey, previousKey, items.length, activeIndex, isItemDisabledByIndex)(key)), "@foldkit/ui/listbox/shared.js#onSome~2"),
|
|
470
508
|
})), "@foldkit/ui/listbox/shared.js#resolveActiveIndex");
|
|
471
509
|
const searchForKey = (key) => {
|
|
@@ -473,12 +511,12 @@ export const makeView = (behavior) => {
|
|
|
473
511
|
const maybeTargetIndex = resolveTypeaheadMatch(items, nextQuery, maybeActiveItemIndex, isItemDisabledByIndex, itemToSearchText, Str.isNonEmpty(searchQuery));
|
|
474
512
|
return __foldkitBrandViewResult((Option.some(Searched({ key, maybeTargetIndex }))), "@foldkit/ui/listbox/shared.js#searchForKey");
|
|
475
513
|
};
|
|
476
|
-
const handleItemsKeyDown = (key) => __foldkitBrandViewResult((M.value(key).pipe(M.when('Escape', () => __foldkitBrandViewResult((Option.some(Closed())), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
514
|
+
const handleItemsKeyDown = (key) => __foldkitBrandViewResult((M.value(key).pipe(M.when('Escape', () => __foldkitBrandViewResult((Option.some(Closed())), "@foldkit/ui/listbox/shared.js#anonymous~33")), M.when('Enter', () => __foldkitBrandViewResult((Option.map(maybeActiveItemIndex, index => __foldkitBrandViewResult((RequestedItemClick({ index })), "@foldkit/ui/listbox/shared.js#anonymous~35"))), "@foldkit/ui/listbox/shared.js#anonymous~34")), M.when(' ', () => __foldkitBrandViewResult((Str.isNonEmpty(searchQuery)
|
|
477
515
|
? searchForKey(' ')
|
|
478
|
-
: Option.map(maybeActiveItemIndex, index => __foldkitBrandViewResult((RequestedItemClick({ index })), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
516
|
+
: Option.map(maybeActiveItemIndex, index => __foldkitBrandViewResult((RequestedItemClick({ index })), "@foldkit/ui/listbox/shared.js#anonymous~37"))), "@foldkit/ui/listbox/shared.js#anonymous~36")), M.when(isNavigationKey, () => __foldkitBrandViewResult((Option.some(ActivatedItem({
|
|
479
517
|
index: resolveActiveIndex(key),
|
|
480
518
|
activationTrigger: 'Keyboard',
|
|
481
|
-
}))), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
519
|
+
}))), "@foldkit/ui/listbox/shared.js#anonymous~38")), M.when(isPrintableKey, () => __foldkitBrandViewResult((searchForKey(key)), "@foldkit/ui/listbox/shared.js#anonymous~39")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/listbox/shared.js#anonymous~40")))), "@foldkit/ui/listbox/shared.js#handleItemsKeyDown");
|
|
482
520
|
const resolveButtonLabel = () => {
|
|
483
521
|
if (Predicate.isNotUndefined(ariaLabel)) {
|
|
484
522
|
return __foldkitBrandViewResult(([h.AriaLabel(ariaLabel)]), "@foldkit/ui/listbox/shared.js#resolveButtonLabel");
|
|
@@ -549,7 +587,7 @@ export const makeView = (behavior) => {
|
|
|
549
587
|
...itemsAttributes,
|
|
550
588
|
];
|
|
551
589
|
const listboxItems = Array.map(items, (item, index) => {
|
|
552
|
-
const isActiveItem = Option.exists(maybeActiveItemIndex, activeIndex => __foldkitBrandViewResult((activeIndex === index), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
590
|
+
const isActiveItem = Option.exists(maybeActiveItemIndex, activeIndex => __foldkitBrandViewResult((activeIndex === index), "@foldkit/ui/listbox/shared.js#anonymous~42"));
|
|
553
591
|
const isDisabledItem = isItemDisabledByIndex(index);
|
|
554
592
|
const isSelectedItem = isValueSelected(itemToValue(item));
|
|
555
593
|
const itemConfig = itemToConfig(item, {
|
|
@@ -577,13 +615,13 @@ export const makeView = (behavior) => {
|
|
|
577
615
|
index,
|
|
578
616
|
screenX,
|
|
579
617
|
screenY,
|
|
580
|
-
}))), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
618
|
+
}))), "@foldkit/ui/listbox/shared.js#anonymous~43")),
|
|
581
619
|
]),
|
|
582
|
-
h.OnPointerLeave(pointerType => __foldkitBrandViewResult((OptionExt.when(pointerType !== 'touch', DeactivatedItem())), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
620
|
+
h.OnPointerLeave(pointerType => __foldkitBrandViewResult((OptionExt.when(pointerType !== 'touch', DeactivatedItem())), "@foldkit/ui/listbox/shared.js#anonymous~44")),
|
|
583
621
|
]
|
|
584
622
|
: []),
|
|
585
623
|
...(itemConfig.className ? [h.Class(itemConfig.className)] : []),
|
|
586
|
-
], [itemConfig.content])), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
624
|
+
], [itemConfig.content])), "@foldkit/ui/listbox/shared.js#anonymous~41");
|
|
587
625
|
});
|
|
588
626
|
const renderGroupedItems = () => {
|
|
589
627
|
if (!itemGroupKey) {
|
|
@@ -592,7 +630,7 @@ export const makeView = (behavior) => {
|
|
|
592
630
|
const segments = groupContiguous(listboxItems, (_, index) => __foldkitBrandViewResult((Array.get(items, index).pipe(Option.match({
|
|
593
631
|
onNone: () => __foldkitBrandViewResult((''), "@foldkit/ui/listbox/shared.js#onNone~5"),
|
|
594
632
|
onSome: item => __foldkitBrandViewResult((itemGroupKey(item, index)), "@foldkit/ui/listbox/shared.js#onSome~4"),
|
|
595
|
-
}))), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
633
|
+
}))), "@foldkit/ui/listbox/shared.js#anonymous~45"));
|
|
596
634
|
return __foldkitBrandViewResult((Array.flatMap(segments, (segment, segmentIndex) => {
|
|
597
635
|
const maybeHeading = Option.fromNullishOr(groupToHeading?.(segment.key));
|
|
598
636
|
const headingId = `${id}-heading-${segment.key}`;
|
|
@@ -628,7 +666,7 @@ export const makeView = (behavior) => {
|
|
|
628
666
|
], []),
|
|
629
667
|
]
|
|
630
668
|
: [];
|
|
631
|
-
return __foldkitBrandViewResult(([...separator, groupElement]), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
669
|
+
return __foldkitBrandViewResult(([...separator, groupElement]), "@foldkit/ui/listbox/shared.js#anonymous~46");
|
|
632
670
|
})), "@foldkit/ui/listbox/shared.js#renderGroupedItems");
|
|
633
671
|
};
|
|
634
672
|
const backdrop = h.keyed('div')(`${id}-backdrop`, [
|
|
@@ -664,7 +702,7 @@ export const makeView = (behavior) => {
|
|
|
664
702
|
h.Name(name),
|
|
665
703
|
h.Value(selectedValue),
|
|
666
704
|
...formAttribute,
|
|
667
|
-
])), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
705
|
+
])), "@foldkit/ui/listbox/shared.js#anonymous~47")),
|
|
668
706
|
})
|
|
669
707
|
: [];
|
|
670
708
|
const wrapperAttributes = [
|
|
@@ -680,9 +718,9 @@ export const makeView = (behavior) => {
|
|
|
680
718
|
]),
|
|
681
719
|
...hiddenInputs,
|
|
682
720
|
...(isVisible ? visibleContent : []),
|
|
683
|
-
])), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
721
|
+
])), "@foldkit/ui/listbox/shared.js#anonymous~14");
|
|
684
722
|
});
|
|
685
723
|
return __foldkitBrandViewResult((() =>
|
|
686
724
|
/* eslint-disable-next-line @typescript-eslint/consistent-type-assertions */
|
|
687
|
-
__foldkitBrandViewResult((impl), "@foldkit/ui/listbox/shared.js#anonymous~
|
|
725
|
+
__foldkitBrandViewResult((impl), "@foldkit/ui/listbox/shared.js#anonymous~48")), "@foldkit/ui/listbox/shared.js#makeView");
|
|
688
726
|
};
|
package/dist/menu/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,E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