@foldkit/ui 0.135.0 → 0.137.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/anchor.d.ts +7 -1
  2. package/dist/anchor.d.ts.map +1 -1
  3. package/dist/anchor.js +77 -26
  4. package/dist/animation/index.d.ts +5 -5
  5. package/dist/animation/index.d.ts.map +1 -1
  6. package/dist/animation/index.js +4 -4
  7. package/dist/animation/public.d.ts +1 -1
  8. package/dist/animation/public.d.ts.map +1 -1
  9. package/dist/animation/public.js +1 -1
  10. package/dist/animation/schema.d.ts +2 -2
  11. package/dist/animation/schema.d.ts.map +1 -1
  12. package/dist/animation/schema.js +2 -2
  13. package/dist/animation/update.d.ts +3 -3
  14. package/dist/animation/update.d.ts.map +1 -1
  15. package/dist/animation/update.js +17 -10
  16. package/dist/calendar/index.d.ts.map +1 -1
  17. package/dist/calendar/index.js +41 -37
  18. package/dist/combobox/multi.d.ts +1 -1
  19. package/dist/combobox/shared.d.ts +4 -3
  20. package/dist/combobox/shared.d.ts.map +1 -1
  21. package/dist/combobox/shared.js +85 -55
  22. package/dist/combobox/single.d.ts +1 -1
  23. package/dist/datePicker/index.d.ts +2 -2
  24. package/dist/dialog/index.d.ts +2 -2
  25. package/dist/dialog/index.d.ts.map +1 -1
  26. package/dist/dialog/index.js +23 -11
  27. package/dist/dragAndDrop/index.d.ts +7 -7
  28. package/dist/dragAndDrop/index.d.ts.map +1 -1
  29. package/dist/dragAndDrop/index.js +73 -64
  30. package/dist/dragAndDrop/public.d.ts +1 -1
  31. package/dist/dragAndDrop/public.d.ts.map +1 -1
  32. package/dist/dragAndDrop/public.js +1 -1
  33. package/dist/internal/selectors.d.ts +10 -0
  34. package/dist/internal/selectors.d.ts.map +1 -1
  35. package/dist/internal/selectors.js +10 -0
  36. package/dist/listbox/multi.d.ts +2 -2
  37. package/dist/listbox/public.d.ts +1 -1
  38. package/dist/listbox/public.d.ts.map +1 -1
  39. package/dist/listbox/public.js +1 -1
  40. package/dist/listbox/shared.d.ts +9 -8
  41. package/dist/listbox/shared.d.ts.map +1 -1
  42. package/dist/listbox/shared.js +91 -51
  43. package/dist/listbox/single.d.ts +2 -2
  44. package/dist/menu/index.d.ts +7 -6
  45. package/dist/menu/index.d.ts.map +1 -1
  46. package/dist/menu/index.js +86 -46
  47. package/dist/menu/public.d.ts +1 -1
  48. package/dist/menu/public.d.ts.map +1 -1
  49. package/dist/menu/public.js +1 -1
  50. package/dist/popover/index.d.ts +4 -3
  51. package/dist/popover/index.d.ts.map +1 -1
  52. package/dist/popover/index.js +48 -22
  53. package/dist/slider/index.d.ts.map +1 -1
  54. package/dist/slider/index.js +2 -1
  55. package/dist/tabs/index.d.ts.map +1 -1
  56. package/dist/tabs/index.js +16 -12
  57. package/dist/test/apps/disabledButton.d.ts +2 -2
  58. package/dist/toast/index.d.ts +19 -18
  59. package/dist/toast/index.d.ts.map +1 -1
  60. package/dist/toast/index.js +5 -4
  61. package/dist/toast/public.d.ts +1 -1
  62. package/dist/toast/public.d.ts.map +1 -1
  63. package/dist/toast/public.js +1 -1
  64. package/dist/toast/schema.d.ts +5 -5
  65. package/dist/toast/schema.d.ts.map +1 -1
  66. package/dist/toast/schema.js +2 -2
  67. package/dist/toast/test.d.ts +6 -5
  68. package/dist/toast/test.d.ts.map +1 -1
  69. package/dist/toast/test.js +8 -7
  70. package/dist/toast/update.d.ts +14 -14
  71. package/dist/toast/update.d.ts.map +1 -1
  72. package/dist/toast/update.js +26 -22
  73. package/dist/tooltip/index.d.ts +2 -177
  74. package/dist/tooltip/index.d.ts.map +1 -1
  75. package/dist/tooltip/index.js +2 -256
  76. package/dist/tooltip/message.d.ts +53 -0
  77. package/dist/tooltip/message.d.ts.map +1 -0
  78. package/dist/tooltip/message.js +45 -0
  79. package/dist/tooltip/public.d.ts +1 -1
  80. package/dist/tooltip/public.d.ts.map +1 -1
  81. package/dist/tooltip/public.js +1 -1
  82. package/dist/tooltip/tooltip.d.ts +130 -0
  83. package/dist/tooltip/tooltip.d.ts.map +1 -0
  84. package/dist/tooltip/tooltip.js +226 -0
  85. package/dist/virtualList/index.d.ts.map +1 -1
  86. package/dist/virtualList/index.js +22 -18
  87. package/package.json +2 -2
@@ -7,6 +7,7 @@ import { m } from 'foldkit/message';
7
7
  import { ts } from 'foldkit/schema';
8
8
  import { evo } from 'foldkit/struct';
9
9
  import * as Subscription from 'foldkit/subscription';
10
+ import { attributeSelector } from '../internal/selectors.js';
10
11
  // MODEL
11
12
  const Orientation = S.Literals(['Horizontal', 'Vertical']);
12
13
  const ScreenPoint = S.Struct({
@@ -79,7 +80,7 @@ export const ActivatedKeyboardDrag = m('ActivatedKeyboardDrag', {
79
80
  index: S.Number,
80
81
  });
81
82
  /** The ResolveKeyboardMove Command resolved the next keyboard drag position. */
82
- export const ResolvedKeyboardMove = m('ResolvedKeyboardMove', {
83
+ export const CompletedResolveKeyboardMove = m('CompletedResolveKeyboardMove', {
83
84
  targetContainerId: S.String,
84
85
  targetIndex: S.Number,
85
86
  });
@@ -107,7 +108,7 @@ export const Message = S.Union([
107
108
  ReleasedPointer,
108
109
  CancelledDrag,
109
110
  ActivatedKeyboardDrag,
110
- ResolvedKeyboardMove,
111
+ CompletedResolveKeyboardMove,
111
112
  ConfirmedKeyboardDrop,
112
113
  PressedArrowKey,
113
114
  AdvancedAutoScrollFrame,
@@ -137,33 +138,37 @@ export const init = (config) => (__foldkitBrandViewResult(({
137
138
  dragState: Idle(),
138
139
  }), "@foldkit/ui/dragAndDrop/index.js#init"));
139
140
  /** Focuses a draggable item by ID after keyboard drop or cancel. */
140
- export const FocusItem = Command.define('FocusItem', { itemId: S.String }, CompletedFocusItem)(({ itemId }) => __foldkitBrandViewResult((Dom.focus(`[data-draggable-id="${itemId}"]`).pipe(Effect.ignore, Effect.as(CompletedFocusItem()))), "@foldkit/ui/dragAndDrop/index.js#anonymous"));
141
+ export const FocusItem = Command.define('FocusItem', {
142
+ args: { itemId: S.String },
143
+ messages: [CompletedFocusItem],
144
+ execute: ({ itemId }) => __foldkitBrandViewResult((Dom.focus(attributeSelector('data-draggable-id', itemId)).pipe(Effect.ignore, Effect.as(CompletedFocusItem()))), "@foldkit/ui/dragAndDrop/index.js#execute"),
145
+ });
141
146
  const resolveWithinContainer = (config) => {
142
- const container = document.querySelector(`[data-droppable-id="${config.containerId}"]`);
147
+ const container = document.querySelector(attributeSelector('data-droppable-id', config.containerId));
143
148
  if (!container) {
144
- return __foldkitBrandViewResult((ResolvedKeyboardMove({
149
+ return __foldkitBrandViewResult((CompletedResolveKeyboardMove({
145
150
  targetContainerId: config.containerId,
146
151
  targetIndex: config.currentIndex,
147
152
  })), "@foldkit/ui/dragAndDrop/index.js#resolveWithinContainer");
148
153
  }
149
- const itemCount = pipe(container.querySelectorAll('[data-sortable-id]'), Array.fromIterable, Array.filter(({ dataset }) => __foldkitBrandViewResult((dataset['sortableId'] !== config.itemId), "@foldkit/ui/dragAndDrop/index.js#anonymous~2")), Array.length);
154
+ const itemCount = pipe(container.querySelectorAll('[data-sortable-id]'), Array.fromIterable, Array.filter(({ dataset }) => __foldkitBrandViewResult((dataset['sortableId'] !== config.itemId), "@foldkit/ui/dragAndDrop/index.js#anonymous")), Array.length);
150
155
  const nextIndex = config.isForward
151
156
  ? Math.min(config.currentIndex + 1, itemCount)
152
157
  : Math.max(config.currentIndex - 1, 0);
153
- return __foldkitBrandViewResult((ResolvedKeyboardMove({
158
+ return __foldkitBrandViewResult((CompletedResolveKeyboardMove({
154
159
  targetContainerId: config.containerId,
155
160
  targetIndex: nextIndex,
156
161
  })), "@foldkit/ui/dragAndDrop/index.js#resolveWithinContainer");
157
162
  };
158
163
  const resolveBetweenContainers = (config) => {
159
164
  const allContainers = Array.fromIterable(document.querySelectorAll('[data-droppable-id]'));
160
- const currentContainerIndex = pipe(allContainers, Array.findFirstIndex(({ dataset }) => __foldkitBrandViewResult((dataset['droppableId'] === config.currentContainerId), "@foldkit/ui/dragAndDrop/index.js#anonymous~3")), Option.getOrElse(() => __foldkitBrandViewResult((0), "@foldkit/ui/dragAndDrop/index.js#anonymous~4")));
165
+ const currentContainerIndex = pipe(allContainers, Array.findFirstIndex(({ dataset }) => __foldkitBrandViewResult((dataset['droppableId'] === config.currentContainerId), "@foldkit/ui/dragAndDrop/index.js#anonymous~2")), Option.getOrElse(() => __foldkitBrandViewResult((0), "@foldkit/ui/dragAndDrop/index.js#anonymous~3")));
161
166
  const nextContainerIndex = config.isForward
162
167
  ? Math.min(currentContainerIndex + 1, allContainers.length - 1)
163
168
  : Math.max(currentContainerIndex - 1, 0);
164
169
  const nextContainerId = allContainers[nextContainerIndex]?.dataset['droppableId'] ??
165
170
  config.currentContainerId;
166
- return __foldkitBrandViewResult((ResolvedKeyboardMove({
171
+ return __foldkitBrandViewResult((CompletedResolveKeyboardMove({
167
172
  targetContainerId: nextContainerId,
168
173
  targetIndex: 0,
169
174
  })), "@foldkit/ui/dragAndDrop/index.js#resolveBetweenContainers");
@@ -173,32 +178,36 @@ const resolveKeyboardMoveTarget = (config) => __foldkitBrandViewResult((Effect.s
173
178
  containerId: config.currentContainerId,
174
179
  currentIndex: config.currentIndex,
175
180
  isForward: true,
176
- })), "@foldkit/ui/dragAndDrop/index.js#anonymous~6")), M.whenOr('Up', 'Left', () => __foldkitBrandViewResult((resolveWithinContainer({
181
+ })), "@foldkit/ui/dragAndDrop/index.js#anonymous~5")), M.whenOr('Up', 'Left', () => __foldkitBrandViewResult((resolveWithinContainer({
177
182
  itemId: config.itemId,
178
183
  containerId: config.currentContainerId,
179
184
  currentIndex: config.currentIndex,
180
185
  isForward: false,
181
- })), "@foldkit/ui/dragAndDrop/index.js#anonymous~7")), M.when('NextContainer', () => __foldkitBrandViewResult((resolveBetweenContainers({
186
+ })), "@foldkit/ui/dragAndDrop/index.js#anonymous~6")), M.when('NextContainer', () => __foldkitBrandViewResult((resolveBetweenContainers({
182
187
  currentContainerId: config.currentContainerId,
183
188
  isForward: true,
184
- })), "@foldkit/ui/dragAndDrop/index.js#anonymous~8")), M.when('PreviousContainer', () => __foldkitBrandViewResult((resolveBetweenContainers({
189
+ })), "@foldkit/ui/dragAndDrop/index.js#anonymous~7")), M.when('PreviousContainer', () => __foldkitBrandViewResult((resolveBetweenContainers({
185
190
  currentContainerId: config.currentContainerId,
186
191
  isForward: false,
187
- })), "@foldkit/ui/dragAndDrop/index.js#anonymous~9")), M.exhaustive)), "@foldkit/ui/dragAndDrop/index.js#anonymous~5"))), "@foldkit/ui/dragAndDrop/index.js#resolveKeyboardMoveTarget");
192
+ })), "@foldkit/ui/dragAndDrop/index.js#anonymous~8")), M.exhaustive)), "@foldkit/ui/dragAndDrop/index.js#anonymous~4"))), "@foldkit/ui/dragAndDrop/index.js#resolveKeyboardMoveTarget");
188
193
  /** Resolves the next keyboard drag position by querying the DOM for adjacent sortable items and containers. */
189
194
  export const ResolveKeyboardMove = Command.define('ResolveKeyboardMove', {
190
- itemId: S.String,
191
- currentContainerId: S.String,
192
- currentIndex: S.Number,
193
- direction: S.Literals([
194
- 'Up',
195
- 'Down',
196
- 'Left',
197
- 'Right',
198
- 'NextContainer',
199
- 'PreviousContainer',
200
- ]),
201
- }, ResolvedKeyboardMove)(resolveKeyboardMoveTarget);
195
+ args: {
196
+ itemId: S.String,
197
+ currentContainerId: S.String,
198
+ currentIndex: S.Number,
199
+ direction: S.Literals([
200
+ 'Up',
201
+ 'Down',
202
+ 'Left',
203
+ 'Right',
204
+ 'NextContainer',
205
+ 'PreviousContainer',
206
+ ]),
207
+ },
208
+ messages: [CompletedResolveKeyboardMove],
209
+ execute: resolveKeyboardMoveTarget,
210
+ });
202
211
  const withUpdateReturn = M.withReturnType();
203
212
  /** Processes a drag-and-drop message and returns the next model, commands, and an optional out-message for the parent. */
204
213
  export const update = (model, message) => __foldkitBrandViewResult((M.value(message).pipe(withUpdateReturn, M.tagsExhaustive({
@@ -219,7 +228,7 @@ export const update = (model, message) => __foldkitBrandViewResult((M.value(mess
219
228
  const deltaY = screenY - pending.origin.screenY;
220
229
  const distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);
221
230
  if (distance < model.activationThreshold) {
222
- return __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~10");
231
+ return __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~9");
223
232
  }
224
233
  return __foldkitBrandViewResult(([
225
234
  evo(model, {
@@ -234,7 +243,7 @@ export const update = (model, message) => __foldkitBrandViewResult((M.value(mess
234
243
  }),
235
244
  [],
236
245
  Option.none(),
237
- ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~10");
246
+ ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~9");
238
247
  }), M.tag('Dragging', dragging => __foldkitBrandViewResult(([
239
248
  evo(model, {
240
249
  dragState: () => __foldkitBrandViewResult((Dragging({
@@ -245,12 +254,12 @@ export const update = (model, message) => __foldkitBrandViewResult((M.value(mess
245
254
  }),
246
255
  [],
247
256
  Option.none(),
248
- ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~11")), M.orElse(() => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~12")))), "@foldkit/ui/dragAndDrop/index.js#MovedPointer"),
257
+ ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~10")), M.orElse(() => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~11")))), "@foldkit/ui/dragAndDrop/index.js#MovedPointer"),
249
258
  ReleasedPointer: () => __foldkitBrandViewResult((M.value(model.dragState).pipe(withUpdateReturn, M.tag('Pending', () => __foldkitBrandViewResult(([
250
259
  evo(model, { dragState: () => __foldkitBrandViewResult((Idle()), "@foldkit/ui/dragAndDrop/index.js#dragState~4") }),
251
260
  [],
252
261
  Option.none(),
253
- ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~13")), M.tag('Dragging', dragging => __foldkitBrandViewResult((Option.match(dragging.maybeDropTarget, {
262
+ ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~12")), M.tag('Dragging', dragging => __foldkitBrandViewResult((Option.match(dragging.maybeDropTarget, {
254
263
  onNone: () => __foldkitBrandViewResult(([
255
264
  evo(model, { dragState: () => __foldkitBrandViewResult((Idle()), "@foldkit/ui/dragAndDrop/index.js#dragState~5") }),
256
265
  [],
@@ -267,10 +276,10 @@ export const update = (model, message) => __foldkitBrandViewResult((M.value(mess
267
276
  toIndex: dropTarget.index,
268
277
  })),
269
278
  ]), "@foldkit/ui/dragAndDrop/index.js#onSome"),
270
- })), "@foldkit/ui/dragAndDrop/index.js#anonymous~14")), M.orElse(() => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~15")))), "@foldkit/ui/dragAndDrop/index.js#ReleasedPointer"),
279
+ })), "@foldkit/ui/dragAndDrop/index.js#anonymous~13")), M.orElse(() => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~14")))), "@foldkit/ui/dragAndDrop/index.js#ReleasedPointer"),
271
280
  CancelledDrag: () => {
272
- const maybeFocusCommand = Option.liftPredicate(model.dragState, dragState => __foldkitBrandViewResult((dragState._tag === 'KeyboardDragging'), "@foldkit/ui/dragAndDrop/index.js#anonymous~16")).pipe(Option.map(({ itemId }) => __foldkitBrandViewResult((FocusItem({ itemId })), "@foldkit/ui/dragAndDrop/index.js#anonymous~17")));
273
- const maybeOutMessage = Option.liftPredicate(model.dragState._tag, _tag => __foldkitBrandViewResult((_tag === 'Dragging' || _tag === 'KeyboardDragging'), "@foldkit/ui/dragAndDrop/index.js#anonymous~18")).pipe(Option.map(() => __foldkitBrandViewResult((Cancelled()), "@foldkit/ui/dragAndDrop/index.js#anonymous~19")));
281
+ const maybeFocusCommand = Option.liftPredicate(model.dragState, dragState => __foldkitBrandViewResult((dragState._tag === 'KeyboardDragging'), "@foldkit/ui/dragAndDrop/index.js#anonymous~15")).pipe(Option.map(({ itemId }) => __foldkitBrandViewResult((FocusItem({ itemId })), "@foldkit/ui/dragAndDrop/index.js#anonymous~16")));
282
+ const maybeOutMessage = Option.liftPredicate(model.dragState._tag, _tag => __foldkitBrandViewResult((_tag === 'Dragging' || _tag === 'KeyboardDragging'), "@foldkit/ui/dragAndDrop/index.js#anonymous~17")).pipe(Option.map(() => __foldkitBrandViewResult((Cancelled()), "@foldkit/ui/dragAndDrop/index.js#anonymous~18")));
274
283
  return __foldkitBrandViewResult(([
275
284
  evo(model, { dragState: () => __foldkitBrandViewResult((Idle()), "@foldkit/ui/dragAndDrop/index.js#dragState~7") }),
276
285
  Option.toArray(maybeFocusCommand),
@@ -290,7 +299,7 @@ export const update = (model, message) => __foldkitBrandViewResult((M.value(mess
290
299
  [],
291
300
  Option.none(),
292
301
  ]), "@foldkit/ui/dragAndDrop/index.js#ActivatedKeyboardDrag"),
293
- ResolvedKeyboardMove: ({ targetContainerId, targetIndex }) => __foldkitBrandViewResult((M.value(model.dragState).pipe(withUpdateReturn, M.tag('KeyboardDragging', keyboardDragging => __foldkitBrandViewResult(([
302
+ CompletedResolveKeyboardMove: ({ targetContainerId, targetIndex }) => __foldkitBrandViewResult((M.value(model.dragState).pipe(withUpdateReturn, M.tag('KeyboardDragging', keyboardDragging => __foldkitBrandViewResult(([
294
303
  evo(model, {
295
304
  dragState: () => __foldkitBrandViewResult((KeyboardDragging({
296
305
  ...keyboardDragging,
@@ -300,7 +309,7 @@ export const update = (model, message) => __foldkitBrandViewResult((M.value(mess
300
309
  }),
301
310
  [],
302
311
  Option.none(),
303
- ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~20")), M.orElse(() => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~21")))), "@foldkit/ui/dragAndDrop/index.js#ResolvedKeyboardMove"),
312
+ ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~19")), M.orElse(() => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~20")))), "@foldkit/ui/dragAndDrop/index.js#CompletedResolveKeyboardMove"),
304
313
  ConfirmedKeyboardDrop: () => __foldkitBrandViewResult((M.value(model.dragState).pipe(withUpdateReturn, M.tag('KeyboardDragging', keyboardDragging => __foldkitBrandViewResult(([
305
314
  evo(model, { dragState: () => __foldkitBrandViewResult((Idle()), "@foldkit/ui/dragAndDrop/index.js#dragState~10") }),
306
315
  [FocusItem({ itemId: keyboardDragging.itemId })],
@@ -311,7 +320,7 @@ export const update = (model, message) => __foldkitBrandViewResult((M.value(mess
311
320
  toContainerId: keyboardDragging.targetContainerId,
312
321
  toIndex: keyboardDragging.targetIndex,
313
322
  })),
314
- ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~22")), M.orElse(() => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~23")))), "@foldkit/ui/dragAndDrop/index.js#ConfirmedKeyboardDrop"),
323
+ ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~21")), M.orElse(() => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~22")))), "@foldkit/ui/dragAndDrop/index.js#ConfirmedKeyboardDrop"),
315
324
  PressedArrowKey: ({ direction }) => __foldkitBrandViewResult((M.value(model.dragState).pipe(withUpdateReturn, M.tag('KeyboardDragging', keyboardDragging => __foldkitBrandViewResult(([
316
325
  model,
317
326
  [
@@ -323,7 +332,7 @@ export const update = (model, message) => __foldkitBrandViewResult((M.value(mess
323
332
  }),
324
333
  ],
325
334
  Option.none(),
326
- ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~24")), M.orElse(() => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~25")))), "@foldkit/ui/dragAndDrop/index.js#PressedArrowKey"),
335
+ ]), "@foldkit/ui/dragAndDrop/index.js#anonymous~23")), M.orElse(() => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#anonymous~24")))), "@foldkit/ui/dragAndDrop/index.js#PressedArrowKey"),
327
336
  AdvancedAutoScrollFrame: () => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#AdvancedAutoScrollFrame"),
328
337
  CompletedFocusItem: () => __foldkitBrandViewResult(([model, [], Option.none()]), "@foldkit/ui/dragAndDrop/index.js#CompletedFocusItem"),
329
338
  }))), "@foldkit/ui/dragAndDrop/index.js#update");
@@ -332,18 +341,18 @@ const DragActivity = S.Literals(['Idle', 'Active']);
332
341
  const PointerDragActivity = S.Literals(['Idle', 'Active']);
333
342
  const KeyboardDragActivity = S.Literals(['Idle', 'Active']);
334
343
  const resolveDropTarget = (clientX, clientY, orientation) => {
335
- const maybeContainer = pipe(document.elementsFromPoint(clientX, clientY), Array.fromIterable, Array.findFirst(element => __foldkitBrandViewResult((element.hasAttribute('data-droppable-id')), "@foldkit/ui/dragAndDrop/index.js#anonymous~26")));
344
+ const maybeContainer = pipe(document.elementsFromPoint(clientX, clientY), Array.fromIterable, Array.findFirst(element => __foldkitBrandViewResult((element.hasAttribute('data-droppable-id')), "@foldkit/ui/dragAndDrop/index.js#anonymous~25")));
336
345
  return __foldkitBrandViewResult((Option.flatMap(maybeContainer, container => {
337
346
  const containerId = container.getAttribute('data-droppable-id');
338
347
  if (!containerId) {
339
- return __foldkitBrandViewResult((Option.none()), "@foldkit/ui/dragAndDrop/index.js#anonymous~27");
348
+ return __foldkitBrandViewResult((Option.none()), "@foldkit/ui/dragAndDrop/index.js#anonymous~26");
340
349
  }
341
350
  const sortableItems = Array.fromIterable(container.querySelectorAll('[data-sortable-id]'));
342
351
  const insertionIndex = pipe(sortableItems, Array.findFirstIndex(item => {
343
352
  const rect = item.getBoundingClientRect();
344
- return __foldkitBrandViewResult((M.value(orientation).pipe(M.when('Vertical', () => __foldkitBrandViewResult((clientY < rect.top + rect.height / 2), "@foldkit/ui/dragAndDrop/index.js#anonymous~29")), M.when('Horizontal', () => __foldkitBrandViewResult((clientX < rect.left + rect.width / 2), "@foldkit/ui/dragAndDrop/index.js#anonymous~30")), M.exhaustive)), "@foldkit/ui/dragAndDrop/index.js#anonymous~28");
345
- }), Option.getOrElse(() => __foldkitBrandViewResult((sortableItems.length), "@foldkit/ui/dragAndDrop/index.js#anonymous~31")));
346
- return __foldkitBrandViewResult((Option.some({ containerId, index: insertionIndex })), "@foldkit/ui/dragAndDrop/index.js#anonymous~27");
353
+ return __foldkitBrandViewResult((M.value(orientation).pipe(M.when('Vertical', () => __foldkitBrandViewResult((clientY < rect.top + rect.height / 2), "@foldkit/ui/dragAndDrop/index.js#anonymous~28")), M.when('Horizontal', () => __foldkitBrandViewResult((clientX < rect.left + rect.width / 2), "@foldkit/ui/dragAndDrop/index.js#anonymous~29")), M.exhaustive)), "@foldkit/ui/dragAndDrop/index.js#anonymous~27");
354
+ }), Option.getOrElse(() => __foldkitBrandViewResult((sortableItems.length), "@foldkit/ui/dragAndDrop/index.js#anonymous~30")));
355
+ return __foldkitBrandViewResult((Option.some({ containerId, index: insertionIndex })), "@foldkit/ui/dragAndDrop/index.js#anonymous~26");
347
356
  })), "@foldkit/ui/dragAndDrop/index.js#resolveDropTarget");
348
357
  };
349
358
  const DEFAULT_AUTO_SCROLL_EDGE_PIXELS = 40;
@@ -363,9 +372,9 @@ const autoScroll = (clientY) => {
363
372
  window.scrollBy(0, speed);
364
373
  }
365
374
  };
366
- const pointerDragActivityFromModel = (model) => __foldkitBrandViewResult((M.value(model.dragState).pipe(M.withReturnType(), M.tag('Pending', 'Dragging', () => __foldkitBrandViewResult(('Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~32")), M.orElse(() => __foldkitBrandViewResult(('Idle'), "@foldkit/ui/dragAndDrop/index.js#anonymous~33")))), "@foldkit/ui/dragAndDrop/index.js#pointerDragActivityFromModel");
367
- const dragActivityFromModel = (model) => __foldkitBrandViewResult((M.value(model.dragState).pipe(M.withReturnType(), M.tag('Idle', () => __foldkitBrandViewResult(('Idle'), "@foldkit/ui/dragAndDrop/index.js#anonymous~34")), M.orElse(() => __foldkitBrandViewResult(('Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~35")))), "@foldkit/ui/dragAndDrop/index.js#dragActivityFromModel");
368
- const keyboardDragActivityFromModel = (model) => __foldkitBrandViewResult((M.value(model.dragState).pipe(M.withReturnType(), M.tag('KeyboardDragging', () => __foldkitBrandViewResult(('Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~36")), M.orElse(() => __foldkitBrandViewResult(('Idle'), "@foldkit/ui/dragAndDrop/index.js#anonymous~37")))), "@foldkit/ui/dragAndDrop/index.js#keyboardDragActivityFromModel");
375
+ const pointerDragActivityFromModel = (model) => __foldkitBrandViewResult((M.value(model.dragState).pipe(M.withReturnType(), M.tag('Pending', 'Dragging', () => __foldkitBrandViewResult(('Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~31")), M.orElse(() => __foldkitBrandViewResult(('Idle'), "@foldkit/ui/dragAndDrop/index.js#anonymous~32")))), "@foldkit/ui/dragAndDrop/index.js#pointerDragActivityFromModel");
376
+ const dragActivityFromModel = (model) => __foldkitBrandViewResult((M.value(model.dragState).pipe(M.withReturnType(), M.tag('Idle', () => __foldkitBrandViewResult(('Idle'), "@foldkit/ui/dragAndDrop/index.js#anonymous~33")), M.orElse(() => __foldkitBrandViewResult(('Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~34")))), "@foldkit/ui/dragAndDrop/index.js#dragActivityFromModel");
377
+ const keyboardDragActivityFromModel = (model) => __foldkitBrandViewResult((M.value(model.dragState).pipe(M.withReturnType(), M.tag('KeyboardDragging', () => __foldkitBrandViewResult(('Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~35")), M.orElse(() => __foldkitBrandViewResult(('Idle'), "@foldkit/ui/dragAndDrop/index.js#anonymous~36")))), "@foldkit/ui/dragAndDrop/index.js#keyboardDragActivityFromModel");
369
378
  /** Document-level subscriptions for pointer and keyboard events during drag operations. */
370
379
  export const subscriptions = Subscription.make()(entry => (__foldkitBrandViewResult(({
371
380
  documentPointer: entry({
@@ -383,7 +392,7 @@ export const subscriptions = Subscription.make()(entry => (__foldkitBrandViewRes
383
392
  clientX: event.clientX,
384
393
  clientY: event.clientY,
385
394
  maybeDropTarget: resolveDropTarget(event.clientX, event.clientY, orientation),
386
- })), "@foldkit/ui/dragAndDrop/index.js#anonymous~40"))), "@foldkit/ui/dragAndDrop/index.js#anonymous~39"))), Stream.fromEventListener(document, 'pointerup').pipe(Stream.map(() => __foldkitBrandViewResult((ReleasedPointer()), "@foldkit/ui/dragAndDrop/index.js#anonymous~41"))));
395
+ })), "@foldkit/ui/dragAndDrop/index.js#anonymous~39"))), "@foldkit/ui/dragAndDrop/index.js#anonymous~38"))), Stream.fromEventListener(document, 'pointerup').pipe(Stream.map(() => __foldkitBrandViewResult((ReleasedPointer()), "@foldkit/ui/dragAndDrop/index.js#anonymous~40"))));
387
396
  // NOTE: prevents text selection and locks cursor to grabbing during
388
397
  // pointer drag. Uses a <style> element for cursor because inline styles
389
398
  // on <html> don't override descendant elements' cursor values.
@@ -393,20 +402,20 @@ export const subscriptions = Subscription.make()(entry => (__foldkitBrandViewRes
393
402
  const cursorStyle = document.createElement('style');
394
403
  cursorStyle.textContent = '* { cursor: grabbing !important; }';
395
404
  document.head.appendChild(cursorStyle);
396
- return __foldkitBrandViewResult((cursorStyle), "@foldkit/ui/dragAndDrop/index.js#anonymous~43");
405
+ return __foldkitBrandViewResult((cursorStyle), "@foldkit/ui/dragAndDrop/index.js#anonymous~42");
397
406
  }), cursorStyle => __foldkitBrandViewResult((Effect.sync(() => {
398
407
  document.documentElement.style.removeProperty('user-select');
399
408
  document.documentElement.style.removeProperty('-webkit-user-select');
400
409
  cursorStyle.remove();
401
- })), "@foldkit/ui/dragAndDrop/index.js#anonymous~44")).pipe(Effect.flatMap(() => __foldkitBrandViewResult((Effect.never), "@foldkit/ui/dragAndDrop/index.js#anonymous~46")))), "@foldkit/ui/dragAndDrop/index.js#anonymous~42"));
402
- return __foldkitBrandViewResult((Stream.when(Stream.merge(pointerEvents, documentDragStyles), Effect.sync(() => __foldkitBrandViewResult((dragActivity === 'Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~47")))), "@foldkit/ui/dragAndDrop/index.js#dependenciesToStream");
410
+ })), "@foldkit/ui/dragAndDrop/index.js#anonymous~43")).pipe(Effect.flatMap(() => __foldkitBrandViewResult((Effect.never), "@foldkit/ui/dragAndDrop/index.js#anonymous~45")))), "@foldkit/ui/dragAndDrop/index.js#anonymous~41"));
411
+ return __foldkitBrandViewResult((Stream.when(Stream.merge(pointerEvents, documentDragStyles), Effect.sync(() => __foldkitBrandViewResult((dragActivity === 'Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~46")))), "@foldkit/ui/dragAndDrop/index.js#dependenciesToStream");
403
412
  },
404
413
  }),
405
414
  documentEscape: entry({ dragActivity: DragActivity }, {
406
415
  modelToDependencies: model => (__foldkitBrandViewResult(({
407
416
  dragActivity: dragActivityFromModel(model),
408
417
  }), "@foldkit/ui/dragAndDrop/index.js#modelToDependencies~2")),
409
- dependenciesToStream: ({ dragActivity }) => __foldkitBrandViewResult((Stream.when(Stream.fromEventListener(document, 'keydown').pipe(Stream.filter(({ key }) => __foldkitBrandViewResult((key === 'Escape'), "@foldkit/ui/dragAndDrop/index.js#anonymous~48")), Stream.map(() => __foldkitBrandViewResult((CancelledDrag()), "@foldkit/ui/dragAndDrop/index.js#anonymous~49"))), Effect.sync(() => __foldkitBrandViewResult((dragActivity === 'Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~50")))), "@foldkit/ui/dragAndDrop/index.js#dependenciesToStream~2"),
418
+ dependenciesToStream: ({ dragActivity }) => __foldkitBrandViewResult((Stream.when(Stream.fromEventListener(document, 'keydown').pipe(Stream.filter(({ key }) => __foldkitBrandViewResult((key === 'Escape'), "@foldkit/ui/dragAndDrop/index.js#anonymous~47")), Stream.map(() => __foldkitBrandViewResult((CancelledDrag()), "@foldkit/ui/dragAndDrop/index.js#anonymous~48"))), Effect.sync(() => __foldkitBrandViewResult((dragActivity === 'Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~49")))), "@foldkit/ui/dragAndDrop/index.js#dependenciesToStream~2"),
410
419
  }),
411
420
  documentKeyboard: entry({ dragActivity: KeyboardDragActivity }, {
412
421
  modelToDependencies: model => (__foldkitBrandViewResult(({
@@ -417,7 +426,7 @@ export const subscriptions = Subscription.make()(entry => (__foldkitBrandViewRes
417
426
  // the Space that activates keyboard drag. Skip it here so the same
418
427
  // keypress doesn't also confirm the drop in the same tick.
419
428
  if (event.defaultPrevented) {
420
- return __foldkitBrandViewResult((Option.none()), "@foldkit/ui/dragAndDrop/index.js#anonymous~52");
429
+ return __foldkitBrandViewResult((Option.none()), "@foldkit/ui/dragAndDrop/index.js#anonymous~51");
421
430
  }
422
431
  if (event.key === 'Tab') {
423
432
  event.preventDefault();
@@ -425,17 +434,17 @@ export const subscriptions = Subscription.make()(entry => (__foldkitBrandViewRes
425
434
  direction: event.shiftKey
426
435
  ? 'PreviousContainer'
427
436
  : 'NextContainer',
428
- }))), "@foldkit/ui/dragAndDrop/index.js#anonymous~52");
437
+ }))), "@foldkit/ui/dragAndDrop/index.js#anonymous~51");
429
438
  }
430
439
  if (event.key === ' ' || event.key === 'Enter') {
431
440
  event.preventDefault();
432
- return __foldkitBrandViewResult((Option.some(ConfirmedKeyboardDrop())), "@foldkit/ui/dragAndDrop/index.js#anonymous~52");
441
+ return __foldkitBrandViewResult((Option.some(ConfirmedKeyboardDrop())), "@foldkit/ui/dragAndDrop/index.js#anonymous~51");
433
442
  }
434
443
  return __foldkitBrandViewResult((Option.map(arrowKeyToDirection(event.key), direction => {
435
444
  event.preventDefault();
436
- return __foldkitBrandViewResult((PressedArrowKey({ direction })), "@foldkit/ui/dragAndDrop/index.js#anonymous~53");
437
- })), "@foldkit/ui/dragAndDrop/index.js#anonymous~52");
438
- })), "@foldkit/ui/dragAndDrop/index.js#anonymous~51")), Stream.filter(Option.isSome), Stream.map(option => __foldkitBrandViewResult((option.value), "@foldkit/ui/dragAndDrop/index.js#anonymous~54"))), Effect.sync(() => __foldkitBrandViewResult((dragActivity === 'Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~55")))), "@foldkit/ui/dragAndDrop/index.js#dependenciesToStream~3"),
445
+ return __foldkitBrandViewResult((PressedArrowKey({ direction })), "@foldkit/ui/dragAndDrop/index.js#anonymous~52");
446
+ })), "@foldkit/ui/dragAndDrop/index.js#anonymous~51");
447
+ })), "@foldkit/ui/dragAndDrop/index.js#anonymous~50")), Stream.filter(Option.isSome), Stream.map(option => __foldkitBrandViewResult((option.value), "@foldkit/ui/dragAndDrop/index.js#anonymous~53"))), Effect.sync(() => __foldkitBrandViewResult((dragActivity === 'Active'), "@foldkit/ui/dragAndDrop/index.js#anonymous~54")))), "@foldkit/ui/dragAndDrop/index.js#dependenciesToStream~3"),
439
448
  }),
440
449
  autoScroll: entry({
441
450
  isDragging: S.Boolean,
@@ -458,13 +467,13 @@ export const subscriptions = Subscription.make()(entry => (__foldkitBrandViewRes
458
467
  ref.id = requestAnimationFrame(step);
459
468
  };
460
469
  ref.id = requestAnimationFrame(step);
461
- return __foldkitBrandViewResult((ref), "@foldkit/ui/dragAndDrop/index.js#anonymous~57");
462
- }), ref => __foldkitBrandViewResult((Effect.sync(() => __foldkitBrandViewResult((cancelAnimationFrame(ref.id)), "@foldkit/ui/dragAndDrop/index.js#anonymous~59"))), "@foldkit/ui/dragAndDrop/index.js#anonymous~58")).pipe(Effect.flatMap(() => __foldkitBrandViewResult((Effect.never), "@foldkit/ui/dragAndDrop/index.js#anonymous~60")))), "@foldkit/ui/dragAndDrop/index.js#anonymous~56")), Effect.sync(() => __foldkitBrandViewResult((isDragging), "@foldkit/ui/dragAndDrop/index.js#anonymous~61")))), "@foldkit/ui/dragAndDrop/index.js#dependenciesToStream~4"),
470
+ return __foldkitBrandViewResult((ref), "@foldkit/ui/dragAndDrop/index.js#anonymous~56");
471
+ }), ref => __foldkitBrandViewResult((Effect.sync(() => __foldkitBrandViewResult((cancelAnimationFrame(ref.id)), "@foldkit/ui/dragAndDrop/index.js#anonymous~58"))), "@foldkit/ui/dragAndDrop/index.js#anonymous~57")).pipe(Effect.flatMap(() => __foldkitBrandViewResult((Effect.never), "@foldkit/ui/dragAndDrop/index.js#anonymous~59")))), "@foldkit/ui/dragAndDrop/index.js#anonymous~55")), Effect.sync(() => __foldkitBrandViewResult((isDragging), "@foldkit/ui/dragAndDrop/index.js#anonymous~60")))), "@foldkit/ui/dragAndDrop/index.js#dependenciesToStream~4"),
463
472
  }),
464
- }), "@foldkit/ui/dragAndDrop/index.js#anonymous~38")));
473
+ }), "@foldkit/ui/dragAndDrop/index.js#anonymous~37")));
465
474
  // VIEW
466
475
  const LEFT_MOUSE_BUTTON = 0;
467
- const arrowKeyToDirection = (key) => __foldkitBrandViewResult((M.value(key).pipe(M.withReturnType(), M.when('ArrowUp', () => __foldkitBrandViewResult(('Up'), "@foldkit/ui/dragAndDrop/index.js#anonymous~62")), M.when('ArrowDown', () => __foldkitBrandViewResult(('Down'), "@foldkit/ui/dragAndDrop/index.js#anonymous~63")), M.when('ArrowLeft', () => __foldkitBrandViewResult(('Left'), "@foldkit/ui/dragAndDrop/index.js#anonymous~64")), M.when('ArrowRight', () => __foldkitBrandViewResult(('Right'), "@foldkit/ui/dragAndDrop/index.js#anonymous~65")), M.option)), "@foldkit/ui/dragAndDrop/index.js#arrowKeyToDirection");
476
+ const arrowKeyToDirection = (key) => __foldkitBrandViewResult((M.value(key).pipe(M.withReturnType(), M.when('ArrowUp', () => __foldkitBrandViewResult(('Up'), "@foldkit/ui/dragAndDrop/index.js#anonymous~61")), M.when('ArrowDown', () => __foldkitBrandViewResult(('Down'), "@foldkit/ui/dragAndDrop/index.js#anonymous~62")), M.when('ArrowLeft', () => __foldkitBrandViewResult(('Left'), "@foldkit/ui/dragAndDrop/index.js#anonymous~63")), M.when('ArrowRight', () => __foldkitBrandViewResult(('Right'), "@foldkit/ui/dragAndDrop/index.js#anonymous~64")), M.option)), "@foldkit/ui/dragAndDrop/index.js#arrowKeyToDirection");
468
477
  /** Returns attributes the parent attaches to a draggable element. Handles pointer-down, keyboard activation, and ARIA. */
469
478
  export const draggable = (config, h) => {
470
479
  const isKeyboardDragActivationKey = (key) => __foldkitBrandViewResult((key === ' ' || key === 'Enter'), "@foldkit/ui/dragAndDrop/index.js#isKeyboardDragActivationKey");
@@ -491,7 +500,7 @@ export const draggable = (config, h) => {
491
500
  index: config.index,
492
501
  screenX,
493
502
  screenY,
494
- }))), "@foldkit/ui/dragAndDrop/index.js#anonymous~67")))), "@foldkit/ui/dragAndDrop/index.js#anonymous~66")),
503
+ }))), "@foldkit/ui/dragAndDrop/index.js#anonymous~66")))), "@foldkit/ui/dragAndDrop/index.js#anonymous~65")),
495
504
  h.OnKeyDownPreventDefault(handleKeyDown),
496
505
  h.Style({
497
506
  'touch-action': 'none',
@@ -524,13 +533,13 @@ export const ghostStyle = (model) => __foldkitBrandViewResult((M.value(model.dra
524
533
  transform: ghostTransform(dragging.current.clientX, dragging.current.clientY),
525
534
  'pointer-events': 'none',
526
535
  'z-index': '9999',
527
- }), "@foldkit/ui/dragAndDrop/index.js#anonymous~68"))), M.option)), "@foldkit/ui/dragAndDrop/index.js#ghostStyle");
536
+ }), "@foldkit/ui/dragAndDrop/index.js#anonymous~67"))), M.option)), "@foldkit/ui/dragAndDrop/index.js#ghostStyle");
528
537
  /** Returns true when the component is actively dragging (pointer or keyboard). */
529
538
  export const isDragging = ({ dragState: { _tag } }) => __foldkitBrandViewResult((_tag === 'Dragging' || _tag === 'KeyboardDragging'), "@foldkit/ui/dragAndDrop/index.js#isDragging");
530
539
  /** Returns the ID of the item currently being dragged or pending, if any. */
531
- export const maybeDraggedItemId = (model) => __foldkitBrandViewResult((M.value(model.dragState).pipe(M.tag('Pending', pending => __foldkitBrandViewResult((pending.itemId), "@foldkit/ui/dragAndDrop/index.js#anonymous~69")), M.tag('Dragging', dragging => __foldkitBrandViewResult((dragging.itemId), "@foldkit/ui/dragAndDrop/index.js#anonymous~70")), M.tag('KeyboardDragging', keyboardDragging => __foldkitBrandViewResult((keyboardDragging.itemId), "@foldkit/ui/dragAndDrop/index.js#anonymous~71")), M.option)), "@foldkit/ui/dragAndDrop/index.js#maybeDraggedItemId");
540
+ export const maybeDraggedItemId = (model) => __foldkitBrandViewResult((M.value(model.dragState).pipe(M.tag('Pending', pending => __foldkitBrandViewResult((pending.itemId), "@foldkit/ui/dragAndDrop/index.js#anonymous~68")), M.tag('Dragging', dragging => __foldkitBrandViewResult((dragging.itemId), "@foldkit/ui/dragAndDrop/index.js#anonymous~69")), M.tag('KeyboardDragging', keyboardDragging => __foldkitBrandViewResult((keyboardDragging.itemId), "@foldkit/ui/dragAndDrop/index.js#anonymous~70")), M.option)), "@foldkit/ui/dragAndDrop/index.js#maybeDraggedItemId");
532
541
  /** Returns the current drop target, if any. Populated during pointer drag (from collision detection) and keyboard drag (from resolved position). */
533
- export const maybeDropTarget = (model) => __foldkitBrandViewResult((M.value(model.dragState).pipe(M.tag('Dragging', dragging => __foldkitBrandViewResult((dragging.maybeDropTarget), "@foldkit/ui/dragAndDrop/index.js#anonymous~72")), M.tag('KeyboardDragging', keyboardDragging => __foldkitBrandViewResult((Option.some({
542
+ export const maybeDropTarget = (model) => __foldkitBrandViewResult((M.value(model.dragState).pipe(M.tag('Dragging', dragging => __foldkitBrandViewResult((dragging.maybeDropTarget), "@foldkit/ui/dragAndDrop/index.js#anonymous~71")), M.tag('KeyboardDragging', keyboardDragging => __foldkitBrandViewResult((Option.some({
534
543
  containerId: keyboardDragging.targetContainerId,
535
544
  index: keyboardDragging.targetIndex,
536
- })), "@foldkit/ui/dragAndDrop/index.js#anonymous~73")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/dragAndDrop/index.js#anonymous~74")))), "@foldkit/ui/dragAndDrop/index.js#maybeDropTarget");
545
+ })), "@foldkit/ui/dragAndDrop/index.js#anonymous~72")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/dragAndDrop/index.js#anonymous~73")))), "@foldkit/ui/dragAndDrop/index.js#maybeDropTarget");
@@ -1,3 +1,3 @@
1
- export { init, update, draggable, droppable, sortable, ghostStyle, isDragging, maybeDraggedItemId, maybeDropTarget, subscriptions, Model, Message, OutMessage, PressedDraggable, MovedPointer, ReleasedPointer, CancelledDrag, ActivatedKeyboardDrag, ResolvedKeyboardMove, ConfirmedKeyboardDrop, PressedArrowKey, AdvancedAutoScrollFrame, CompletedFocusItem, FocusItem, ResolveKeyboardMove, Reordered, Cancelled, } from './index.js';
1
+ export { init, update, draggable, droppable, sortable, ghostStyle, isDragging, maybeDraggedItemId, maybeDropTarget, subscriptions, Model, Message, OutMessage, PressedDraggable, MovedPointer, ReleasedPointer, CancelledDrag, ActivatedKeyboardDrag, CompletedResolveKeyboardMove, ConfirmedKeyboardDrop, PressedArrowKey, AdvancedAutoScrollFrame, CompletedFocusItem, FocusItem, ResolveKeyboardMove, Reordered, Cancelled, } from './index.js';
2
2
  export type { InitConfig, DraggableConfig, DraggableMessage } from './index.js';
3
3
  //# sourceMappingURL=public.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/dragAndDrop/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,MAAM,EACN,SAAS,EACT,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,KAAK,EACL,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,kBAAkB,EAClB,SAAS,EACT,mBAAmB,EACnB,SAAS,EACT,SAAS,GACV,MAAM,YAAY,CAAA;AAEnB,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/dragAndDrop/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,MAAM,EACN,SAAS,EACT,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,KAAK,EACL,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,kBAAkB,EAClB,SAAS,EACT,mBAAmB,EACnB,SAAS,EACT,SAAS,GACV,MAAM,YAAY,CAAA;AAEnB,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA"}
@@ -1 +1 @@
1
- export { init, update, draggable, droppable, sortable, ghostStyle, isDragging, maybeDraggedItemId, maybeDropTarget, subscriptions, Model, Message, OutMessage, PressedDraggable, MovedPointer, ReleasedPointer, CancelledDrag, ActivatedKeyboardDrag, ResolvedKeyboardMove, ConfirmedKeyboardDrop, PressedArrowKey, AdvancedAutoScrollFrame, CompletedFocusItem, FocusItem, ResolveKeyboardMove, Reordered, Cancelled, } from './index.js';
1
+ export { init, update, draggable, droppable, sortable, ghostStyle, isDragging, maybeDraggedItemId, maybeDropTarget, subscriptions, Model, Message, OutMessage, PressedDraggable, MovedPointer, ReleasedPointer, CancelledDrag, ActivatedKeyboardDrag, CompletedResolveKeyboardMove, ConfirmedKeyboardDrop, PressedArrowKey, AdvancedAutoScrollFrame, CompletedFocusItem, FocusItem, ResolveKeyboardMove, Reordered, Cancelled, } from './index.js';
@@ -6,4 +6,14 @@
6
6
  * produced by UUID-prefixed ids) still yield a usable selector.
7
7
  */
8
8
  export declare const idSelector: (id: string) => string;
9
+ /**
10
+ * Builds a CSS attribute selector matching `attribute` against `value`.
11
+ *
12
+ * The value is quoted and escaped with `CSS.escape`, so values carrying
13
+ * brackets, backslashes, spaces, or a leading digit still yield a usable
14
+ * selector. The quotes are load bearing: an escaped value is a valid CSS
15
+ * identifier but not a valid unquoted attribute value, so dropping them makes
16
+ * selectors for digit-leading ids fail to parse.
17
+ */
18
+ export declare const attributeSelector: (attribute: string, value: string) => string;
9
19
  //# sourceMappingURL=selectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/internal/selectors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,IAAI,MAAM,KAAG,MAA8B,CAAA"}
1
+ {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/internal/selectors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,IAAI,MAAM,KAAG,MAA8B,CAAA;AAEtE;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,EAAE,OAAO,MAAM,KAAG,MAC5B,CAAA"}
@@ -7,3 +7,13 @@ import { brandViewResult as __foldkitBrandViewResult } from 'foldkit/brand'
7
7
  * produced by UUID-prefixed ids) still yield a usable selector.
8
8
  */
9
9
  export const idSelector = (id) => __foldkitBrandViewResult((`#${CSS.escape(id)}`), "@foldkit/ui/internal/selectors.js#idSelector");
10
+ /**
11
+ * Builds a CSS attribute selector matching `attribute` against `value`.
12
+ *
13
+ * The value is quoted and escaped with `CSS.escape`, so values carrying
14
+ * brackets, backslashes, spaces, or a leading digit still yield a usable
15
+ * selector. The quotes are load bearing: an escaped value is a valid CSS
16
+ * identifier but not a valid unquoted attribute value, so dropping them makes
17
+ * selectors for digit-leading ids fail to parse.
18
+ */
19
+ export const attributeSelector = (attribute, value) => __foldkitBrandViewResult((`[${attribute}="${CSS.escape(value)}"]`), "@foldkit/ui/internal/selectors.js#attributeSelector");
@@ -121,7 +121,7 @@ export declare const update: (model: {
121
121
  readonly key: string;
122
122
  readonly maybeTargetIndex: Option.Option<number>;
123
123
  } | {
124
- readonly _tag: "ClearedSearch";
124
+ readonly _tag: "CompletedDelayClearSearch";
125
125
  readonly version: number;
126
126
  } | {
127
127
  readonly _tag: "PressedPointerOnButton";
@@ -140,7 +140,7 @@ export declare const update: (model: {
140
140
  } | {
141
141
  readonly _tag: "Hid";
142
142
  } | {
143
- readonly _tag: "AdvancedAnimationFrame";
143
+ readonly _tag: "CompletedWaitForPaint";
144
144
  } | {
145
145
  readonly _tag: "EndedAnimation";
146
146
  };
@@ -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, ClearedSearch, GotAnimationMessage, LockScroll, UnlockScroll, InertOthers, RestoreInert, FocusButton, FocusItems, ScrollIntoView, ClickItem, DelayClearSearch, DetectMovementOrAnimationEnd, } 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, } from './shared.js';
4
4
  export type { ActivationTrigger, Opened, Closed, BlurredItems, ActivatedItem, DeactivatedItem, MovedPointerOverItem, RequestedItemClick, Searched, PressedPointerOnButton, IgnoredMouseClick, SuppressedSpaceScroll, ItemConfig, GroupHeading, BaseViewInputsCommon, ItemToValueInput, } from './shared.js';
5
5
  export type { 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,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,WAAW,EACX,UAAU,EACV,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,4BAA4B,GAC7B,MAAM,aAAa,CAAA;AAEpB,YAAY,EACV,iBAAiB,EACjB,MAAM,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,QAAQ,EACR,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,aAAa,CAAA;AAEpB,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAEzD,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA"}
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,GAC7B,MAAM,aAAa,CAAA;AAEpB,YAAY,EACV,iBAAiB,EACjB,MAAM,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,QAAQ,EACR,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,aAAa,CAAA;AAEpB,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAEzD,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA"}
@@ -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, ClearedSearch, GotAnimationMessage, LockScroll, UnlockScroll, InertOthers, RestoreInert, FocusButton, FocusItems, ScrollIntoView, ClickItem, DelayClearSearch, DetectMovementOrAnimationEnd, } 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, } from './shared.js';
4
4
  export * as Multi from './multiPublic.js';
@@ -73,7 +73,7 @@ export declare const Searched: import("foldkit/schema").CallableTaggedStruct<"Se
73
73
  maybeTargetIndex: S.Option<S.Number>;
74
74
  }>;
75
75
  /** Sent after the search debounce period to clear the accumulated query. */
76
- export declare const ClearedSearch: import("foldkit/schema").CallableTaggedStruct<"ClearedSearch", {
76
+ export declare const CompletedDelayClearSearch: import("foldkit/schema").CallableTaggedStruct<"CompletedDelayClearSearch", {
77
77
  version: S.Number;
78
78
  }>;
79
79
  /** Sent when the pointer moves over a listbox item, carrying screen coordinates for tracked-pointer comparison. */
@@ -108,7 +108,7 @@ export declare const CompletedAnchorListbox: import("foldkit/schema").CallableTa
108
108
  export declare const CompletedPortalListboxBackdrop: import("foldkit/schema").CallableTaggedStruct<"CompletedPortalListboxBackdrop", {}>;
109
109
  /** Wraps an Animation submodel message for delegation. */
110
110
  export declare const GotAnimationMessage: import("foldkit/schema").CallableTaggedStruct<"GotAnimationMessage", {
111
- message: S.Union<[import("foldkit/schema").CallableTaggedStruct<"Showed", {}>, import("foldkit/schema").CallableTaggedStruct<"Hid", {}>, import("foldkit/schema").CallableTaggedStruct<"AdvancedAnimationFrame", {}>, import("foldkit/schema").CallableTaggedStruct<"EndedAnimation", {}>]>;
111
+ message: S.Union<[import("foldkit/schema").CallableTaggedStruct<"Showed", {}>, import("foldkit/schema").CallableTaggedStruct<"Hid", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedWaitForPaint", {}>, import("foldkit/schema").CallableTaggedStruct<"EndedAnimation", {}>]>;
112
112
  }>;
113
113
  /** Sent when the user presses a pointer device on the listbox button. Records pointer type for click handling. */
114
114
  export declare const PressedPointerOnButton: import("foldkit/schema").CallableTaggedStruct<"PressedPointerOnButton", {
@@ -126,7 +126,7 @@ export declare const Message: S.Union<[
126
126
  typeof MovedPointerOverItem,
127
127
  typeof RequestedItemClick,
128
128
  typeof Searched,
129
- typeof ClearedSearch,
129
+ typeof CompletedDelayClearSearch,
130
130
  typeof CompletedLockScroll,
131
131
  typeof CompletedUnlockScroll,
132
132
  typeof CompletedInertOthers,
@@ -151,7 +151,7 @@ export type SelectedItem = typeof SelectedItem.Type;
151
151
  export type MovedPointerOverItem = typeof MovedPointerOverItem.Type;
152
152
  export type RequestedItemClick = typeof RequestedItemClick.Type;
153
153
  export type Searched = typeof Searched.Type;
154
- export type ClearedSearch = typeof ClearedSearch.Type;
154
+ export type CompletedDelayClearSearch = typeof CompletedDelayClearSearch.Type;
155
155
  export type IgnoredMouseClick = typeof IgnoredMouseClick.Type;
156
156
  export type SuppressedSpaceScroll = typeof SuppressedSpaceScroll.Type;
157
157
  export type PressedPointerOnButton = typeof PressedPointerOnButton.Type;
@@ -248,7 +248,7 @@ export declare const ClickItem: Command.CommandDefinitionWithArgs<"ClickItem", {
248
248
  export declare const DelayClearSearch: Command.CommandDefinitionWithArgs<"DelayClearSearch", {
249
249
  version: S.Number;
250
250
  }, Effect.Effect<{
251
- readonly _tag: "ClearedSearch";
251
+ readonly _tag: "CompletedDelayClearSearch";
252
252
  readonly version: number;
253
253
  }, never, never>>;
254
254
  /** Detects whether the listbox button moved or the leave animation ended. Whichever comes first; both outcomes signal the Animation submodel that leave is complete. */
@@ -261,7 +261,7 @@ export declare const DetectMovementOrAnimationEnd: Command.CommandDefinitionWith
261
261
  } | {
262
262
  readonly _tag: "Hid";
263
263
  } | {
264
- readonly _tag: "AdvancedAnimationFrame";
264
+ readonly _tag: "CompletedWaitForPaint";
265
265
  } | {
266
266
  readonly _tag: "EndedAnimation";
267
267
  };
@@ -317,7 +317,7 @@ export declare const makeUpdate: <Model extends BaseModel>(handleSelectedItem: (
317
317
  readonly key: string;
318
318
  readonly maybeTargetIndex: Option.Option<number>;
319
319
  } | {
320
- readonly _tag: "ClearedSearch";
320
+ readonly _tag: "CompletedDelayClearSearch";
321
321
  readonly version: number;
322
322
  } | {
323
323
  readonly _tag: "PressedPointerOnButton";
@@ -336,7 +336,7 @@ export declare const makeUpdate: <Model extends BaseModel>(handleSelectedItem: (
336
336
  } | {
337
337
  readonly _tag: "Hid";
338
338
  } | {
339
- readonly _tag: "AdvancedAnimationFrame";
339
+ readonly _tag: "CompletedWaitForPaint";
340
340
  } | {
341
341
  readonly _tag: "EndedAnimation";
342
342
  };
@@ -359,6 +359,7 @@ export declare const AnchorListbox: Mount.MountDefinitionWithArgs<"AnchorListbox
359
359
  readonly offset: S.optional<S.Number>;
360
360
  readonly padding: S.optional<S.Number>;
361
361
  readonly portal: S.optional<S.Boolean>;
362
+ readonly isPlacementLocked: S.optional<S.Boolean>;
362
363
  }>;
363
364
  }, {
364
365
  readonly _tag: "CompletedAnchorListbox";
@@ -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,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;AA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