@foldkit/ui 0.162.0 → 0.163.0-canary.5401108272c3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/anchor/anchor.d.ts.map +1 -1
- package/dist/anchor/anchor.js +10 -1
- package/dist/animation/update.d.ts.map +1 -1
- package/dist/animation/update.js +11 -7
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/calendar/index.js +27 -19
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/combobox/multi.js +2 -2
- package/dist/combobox/shared.js +15 -15
- package/dist/combobox/single.js +4 -4
- package/dist/datePicker/index.d.ts.map +1 -1
- package/dist/datePicker/index.js +10 -10
- package/dist/dialog/index.js +9 -9
- package/dist/disclosure/index.d.ts +2 -2
- package/dist/disclosure/index.js +1 -1
- package/dist/dragAndDrop/index.js +14 -14
- package/dist/fileDrop/index.d.ts.map +1 -1
- package/dist/fileDrop/index.js +7 -5
- package/dist/hoverIntent/hoverIntent.d.ts.map +1 -1
- package/dist/hoverIntent/hoverIntent.js +16 -16
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/shared.js +20 -18
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +23 -17
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +12 -10
- package/dist/radioGroup/index.d.ts.map +1 -1
- package/dist/radioGroup/index.js +5 -3
- package/dist/slider/index.d.ts +60 -25
- package/dist/slider/index.d.ts.map +1 -1
- package/dist/slider/index.js +155 -62
- package/dist/slider/public.d.ts +1 -1
- package/dist/slider/public.d.ts.map +1 -1
- package/dist/slider/public.js +1 -1
- package/dist/switch/index.d.ts +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/tabs/index.js +5 -3
- package/dist/test/apps/disabledButton.d.ts +4 -4
- package/dist/test/apps/disabledButton.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.js +3 -3
- package/dist/toast/index.d.ts +822 -43
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/index.js +77 -17
- package/dist/toast/public.d.ts +2 -2
- package/dist/toast/public.d.ts.map +1 -1
- package/dist/toast/public.js +1 -1
- package/dist/toast/schema.d.ts +145 -2
- package/dist/toast/schema.d.ts.map +1 -1
- package/dist/toast/schema.js +69 -2
- package/dist/toast/swipeTarget.d.ts +5 -0
- package/dist/toast/swipeTarget.d.ts.map +1 -0
- package/dist/toast/swipeTarget.js +18 -0
- package/dist/toast/test.d.ts +1 -1
- package/dist/toast/test.js +1 -1
- package/dist/toast/update.d.ts +726 -5
- package/dist/toast/update.d.ts.map +1 -1
- package/dist/toast/update.js +283 -68
- package/dist/tooltip/tooltip.d.ts +2 -2
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +14 -12
- package/dist/virtualList/index.d.ts.map +1 -1
- package/dist/virtualList/index.js +8 -6
- package/package.json +7 -7
package/dist/menu/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as Command from 'foldkit/command';
|
|
|
4
4
|
import * as Dom from 'foldkit/dom';
|
|
5
5
|
import { defineMessageUnion } from 'foldkit/message';
|
|
6
6
|
import * as Mount from 'foldkit/mount';
|
|
7
|
-
import {
|
|
7
|
+
import { modifyFields } from 'foldkit/struct';
|
|
8
8
|
import { defineView } from 'foldkit/submodel';
|
|
9
9
|
import * as Update from 'foldkit/update';
|
|
10
10
|
import { AnchorConfig, anchorSetup, portalToContainingRoot, } from '../anchor/index.js';
|
|
@@ -114,7 +114,7 @@ export const init = (config) => (__foldkitBrandViewResult(({
|
|
|
114
114
|
maybePointerOrigin: Option.none(),
|
|
115
115
|
}), "@foldkit/ui/menu/index.js#init"));
|
|
116
116
|
// UPDATE
|
|
117
|
-
const closedModel = (model) => __foldkitBrandViewResult((
|
|
117
|
+
const closedModel = (model) => __foldkitBrandViewResult((modifyFields(model, {
|
|
118
118
|
isOpen: () => __foldkitBrandViewResult((false), "@foldkit/ui/menu/index.js#isOpen"),
|
|
119
119
|
maybeActiveItemIndex: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/menu/index.js#maybeActiveItemIndex"),
|
|
120
120
|
searchQuery: () => __foldkitBrandViewResult((''), "@foldkit/ui/menu/index.js#searchQuery"),
|
|
@@ -203,20 +203,20 @@ const foldAnimationOutMessage = Animation.OutMessage.match({
|
|
|
203
203
|
const foldAnimation = Update.foldChild({
|
|
204
204
|
update: animationUpdate,
|
|
205
205
|
read: (model) => __foldkitBrandViewResult((Option.some(model.animation)), "@foldkit/ui/menu/index.js#read"),
|
|
206
|
-
write: (model, nextAnimation) => __foldkitBrandViewResult((
|
|
206
|
+
write: (model, nextAnimation) => __foldkitBrandViewResult((modifyFields(model, { animation: () => __foldkitBrandViewResult((nextAnimation), "@foldkit/ui/menu/index.js#animation") })), "@foldkit/ui/menu/index.js#write"),
|
|
207
207
|
toParentMessage: message => __foldkitBrandViewResult((Message.GotAnimationMessage({ message })), "@foldkit/ui/menu/index.js#toParentMessage"),
|
|
208
208
|
foldOutMessage: foldAnimationOutMessage,
|
|
209
209
|
});
|
|
210
210
|
const foldAnimationShow = Update.foldChildStep({
|
|
211
211
|
update: animationShow,
|
|
212
212
|
read: (model) => __foldkitBrandViewResult((Option.some(model.animation)), "@foldkit/ui/menu/index.js#read~2"),
|
|
213
|
-
write: (model, nextAnimation) => __foldkitBrandViewResult((
|
|
213
|
+
write: (model, nextAnimation) => __foldkitBrandViewResult((modifyFields(model, { animation: () => __foldkitBrandViewResult((nextAnimation), "@foldkit/ui/menu/index.js#animation~2") })), "@foldkit/ui/menu/index.js#write~2"),
|
|
214
214
|
toParentMessage: message => __foldkitBrandViewResult((Message.GotAnimationMessage({ message })), "@foldkit/ui/menu/index.js#toParentMessage~2"),
|
|
215
215
|
});
|
|
216
216
|
const foldAnimationHide = Update.foldChildStep({
|
|
217
217
|
update: animationHide,
|
|
218
218
|
read: (model) => __foldkitBrandViewResult((Option.some(model.animation)), "@foldkit/ui/menu/index.js#read~3"),
|
|
219
|
-
write: (model, nextAnimation) => __foldkitBrandViewResult((
|
|
219
|
+
write: (model, nextAnimation) => __foldkitBrandViewResult((modifyFields(model, { animation: () => __foldkitBrandViewResult((nextAnimation), "@foldkit/ui/menu/index.js#animation~3") })), "@foldkit/ui/menu/index.js#write~3"),
|
|
220
220
|
toParentMessage: message => __foldkitBrandViewResult((Message.GotAnimationMessage({ message })), "@foldkit/ui/menu/index.js#toParentMessage~3"),
|
|
221
221
|
});
|
|
222
222
|
/** Processes a Menu Message and returns the next Model, optional Commands, and
|
|
@@ -241,12 +241,12 @@ export const update = (model, message) => {
|
|
|
241
241
|
stepModel => (__foldkitBrandViewResult(({ model: stepModel, commands: openCommands }), "@foldkit/ui/menu/index.js#anonymous~3")),
|
|
242
242
|
foldAnimationShow,
|
|
243
243
|
stepModel => (__foldkitBrandViewResult(({
|
|
244
|
-
model:
|
|
244
|
+
model: modifyFields(stepModel, { isOpen: () => __foldkitBrandViewResult((true), "@foldkit/ui/menu/index.js#isOpen~2") }),
|
|
245
245
|
}), "@foldkit/ui/menu/index.js#anonymous~4")),
|
|
246
246
|
])), "@foldkit/ui/menu/index.js#openMenu");
|
|
247
247
|
}
|
|
248
248
|
return __foldkitBrandViewResult(({
|
|
249
|
-
model:
|
|
249
|
+
model: modifyFields(baseModel, { isOpen: () => __foldkitBrandViewResult((true), "@foldkit/ui/menu/index.js#isOpen~3") }),
|
|
250
250
|
commands: openCommands,
|
|
251
251
|
}), "@foldkit/ui/menu/index.js#openMenu");
|
|
252
252
|
};
|
|
@@ -275,7 +275,7 @@ export const update = (model, message) => {
|
|
|
275
275
|
SuppressedSpaceScroll: () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/menu/index.js#SuppressedSpaceScroll")),
|
|
276
276
|
CompletedAnchorMenu: () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/menu/index.js#CompletedAnchorMenu")),
|
|
277
277
|
CompletedPortalMenuBackdrop: () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/menu/index.js#CompletedPortalMenuBackdrop")),
|
|
278
|
-
Opened: ({ maybeActiveItemIndex }) => __foldkitBrandViewResult((openMenu(
|
|
278
|
+
Opened: ({ maybeActiveItemIndex }) => __foldkitBrandViewResult((openMenu(modifyFields(model, {
|
|
279
279
|
maybeActiveItemIndex: () => __foldkitBrandViewResult((maybeActiveItemIndex), "@foldkit/ui/menu/index.js#maybeActiveItemIndex~2"),
|
|
280
280
|
activationTrigger: () => __foldkitBrandViewResult((Option.match(maybeActiveItemIndex, {
|
|
281
281
|
onNone: () => __foldkitBrandViewResult(('Pointer'), "@foldkit/ui/menu/index.js#onNone"),
|
|
@@ -293,7 +293,7 @@ export const update = (model, message) => {
|
|
|
293
293
|
return __foldkitBrandViewResult((closeMenu(model, closeWithoutFocusCommands)), "@foldkit/ui/menu/index.js#BlurredItems");
|
|
294
294
|
},
|
|
295
295
|
ActivatedItem: ({ index, activationTrigger }) => (__foldkitBrandViewResult(({
|
|
296
|
-
model:
|
|
296
|
+
model: modifyFields(model, {
|
|
297
297
|
maybeActiveItemIndex: () => __foldkitBrandViewResult((Option.some(index)), "@foldkit/ui/menu/index.js#maybeActiveItemIndex~3"),
|
|
298
298
|
activationTrigger: () => __foldkitBrandViewResult((activationTrigger), "@foldkit/ui/menu/index.js#activationTrigger~2"),
|
|
299
299
|
}),
|
|
@@ -307,7 +307,7 @@ export const update = (model, message) => {
|
|
|
307
307
|
return __foldkitBrandViewResult(({ model }), "@foldkit/ui/menu/index.js#MovedPointerOverItem");
|
|
308
308
|
}
|
|
309
309
|
return __foldkitBrandViewResult(({
|
|
310
|
-
model:
|
|
310
|
+
model: modifyFields(model, {
|
|
311
311
|
maybeActiveItemIndex: () => __foldkitBrandViewResult((Option.some(index)), "@foldkit/ui/menu/index.js#maybeActiveItemIndex~4"),
|
|
312
312
|
activationTrigger: () => __foldkitBrandViewResult(('Pointer'), "@foldkit/ui/menu/index.js#activationTrigger~3"),
|
|
313
313
|
maybeLastPointerPosition: () => __foldkitBrandViewResult((Option.some({ screenX, screenY })), "@foldkit/ui/menu/index.js#maybeLastPointerPosition~3"),
|
|
@@ -315,7 +315,11 @@ export const update = (model, message) => {
|
|
|
315
315
|
}), "@foldkit/ui/menu/index.js#MovedPointerOverItem");
|
|
316
316
|
},
|
|
317
317
|
DeactivatedItem: () => __foldkitBrandViewResult((model.activationTrigger === 'Pointer'
|
|
318
|
-
? {
|
|
318
|
+
? {
|
|
319
|
+
model: modifyFields(model, {
|
|
320
|
+
maybeActiveItemIndex: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/menu/index.js#maybeActiveItemIndex~5"),
|
|
321
|
+
}),
|
|
322
|
+
}
|
|
319
323
|
: { model }), "@foldkit/ui/menu/index.js#DeactivatedItem"),
|
|
320
324
|
SelectedItem: ({ index, item }) => __foldkitBrandViewResult((pipe(closeMenu(model, closeWithFocusCommands), Update.withOutMessage(OutMessage.Selected({ value: item, index })))), "@foldkit/ui/menu/index.js#SelectedItem"),
|
|
321
325
|
RequestedItemClick: ({ index }) => (__foldkitBrandViewResult(({
|
|
@@ -326,7 +330,7 @@ export const update = (model, message) => {
|
|
|
326
330
|
const nextSearchQuery = model.searchQuery + key;
|
|
327
331
|
const nextSearchVersion = model.searchVersion + 1;
|
|
328
332
|
return __foldkitBrandViewResult(({
|
|
329
|
-
model:
|
|
333
|
+
model: modifyFields(model, {
|
|
330
334
|
searchQuery: () => __foldkitBrandViewResult((nextSearchQuery), "@foldkit/ui/menu/index.js#searchQuery~3"),
|
|
331
335
|
searchVersion: () => __foldkitBrandViewResult((nextSearchVersion), "@foldkit/ui/menu/index.js#searchVersion~3"),
|
|
332
336
|
maybeActiveItemIndex: () => __foldkitBrandViewResult((Option.orElse(maybeTargetIndex, () => __foldkitBrandViewResult((model.maybeActiveItemIndex), "@foldkit/ui/menu/index.js#anonymous~7"))), "@foldkit/ui/menu/index.js#maybeActiveItemIndex~6"),
|
|
@@ -338,11 +342,11 @@ export const update = (model, message) => {
|
|
|
338
342
|
if (version !== model.searchVersion) {
|
|
339
343
|
return __foldkitBrandViewResult(({ model }), "@foldkit/ui/menu/index.js#CompletedDelayClearSearch");
|
|
340
344
|
}
|
|
341
|
-
return __foldkitBrandViewResult(({ model:
|
|
345
|
+
return __foldkitBrandViewResult(({ model: modifyFields(model, { searchQuery: () => __foldkitBrandViewResult((''), "@foldkit/ui/menu/index.js#searchQuery~4") }) }), "@foldkit/ui/menu/index.js#CompletedDelayClearSearch");
|
|
342
346
|
},
|
|
343
347
|
GotAnimationMessage: ({ message: animationMessage }) => __foldkitBrandViewResult((foldAnimation(model, animationMessage)), "@foldkit/ui/menu/index.js#GotAnimationMessage"),
|
|
344
348
|
PressedPointerOnButton: ({ pointerType, button, screenX, screenY, timeStamp, }) => {
|
|
345
|
-
const withPointerType =
|
|
349
|
+
const withPointerType = modifyFields(model, {
|
|
346
350
|
maybeLastButtonPointerType: () => __foldkitBrandViewResult((Option.some(pointerType)), "@foldkit/ui/menu/index.js#maybeLastButtonPointerType~2"),
|
|
347
351
|
});
|
|
348
352
|
if (pointerType !== 'mouse' || button !== LEFT_MOUSE_BUTTON) {
|
|
@@ -352,13 +356,13 @@ export const update = (model, message) => {
|
|
|
352
356
|
return __foldkitBrandViewResult((Update.combine(withPointerType, [
|
|
353
357
|
stepModel => __foldkitBrandViewResult((closeMenu(stepModel, closeWithFocusCommands)), "@foldkit/ui/menu/index.js#anonymous~8"),
|
|
354
358
|
stepModel => (__foldkitBrandViewResult(({
|
|
355
|
-
model:
|
|
359
|
+
model: modifyFields(stepModel, {
|
|
356
360
|
maybeLastButtonPointerType: () => __foldkitBrandViewResult((Option.some(pointerType)), "@foldkit/ui/menu/index.js#maybeLastButtonPointerType~3"),
|
|
357
361
|
}),
|
|
358
362
|
}), "@foldkit/ui/menu/index.js#anonymous~9")),
|
|
359
363
|
])), "@foldkit/ui/menu/index.js#PressedPointerOnButton");
|
|
360
364
|
}
|
|
361
|
-
return __foldkitBrandViewResult((openMenu(
|
|
365
|
+
return __foldkitBrandViewResult((openMenu(modifyFields(withPointerType, {
|
|
362
366
|
maybeActiveItemIndex: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/menu/index.js#maybeActiveItemIndex~7"),
|
|
363
367
|
activationTrigger: () => __foldkitBrandViewResult(('Pointer'), "@foldkit/ui/menu/index.js#activationTrigger~4"),
|
|
364
368
|
searchQuery: () => __foldkitBrandViewResult((''), "@foldkit/ui/menu/index.js#searchQuery~5"),
|
|
@@ -392,7 +396,9 @@ export const update = (model, message) => {
|
|
|
392
396
|
}), "@foldkit/ui/menu/index.js#ReleasedPointerOnItems");
|
|
393
397
|
},
|
|
394
398
|
IgnoredMouseClick: () => (__foldkitBrandViewResult(({
|
|
395
|
-
model:
|
|
399
|
+
model: modifyFields(model, {
|
|
400
|
+
maybeLastButtonPointerType: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/menu/index.js#maybeLastButtonPointerType~4"),
|
|
401
|
+
}),
|
|
396
402
|
}), "@foldkit/ui/menu/index.js#IgnoredMouseClick")),
|
|
397
403
|
})), "@foldkit/ui/menu/index.js#update");
|
|
398
404
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAGN,MAAM,EAEN,MAAM,EAEP,MAAM,QAAQ,CAAA;AACf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAE9E,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAGtC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAA;AAExC,OAAO,EACL,YAAY,EAGb,MAAM,oBAAoB,CAAA;AAe3B,qGAAqG;AACrG,eAAO,MAAM,KAAK;;;;;;;;;;;;EAQhB,CAAA;AAEF,MAAM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AAE,aAAa,CAAC,cAAc,CAAC,CAAA;IACpC,QAAQ,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IACvC,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IACpC,SAAS,EAAE,OAAO,CAAA;CACnB,CAAC,CAAA;AAEF,qFAAqF;AACrF,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;IAChC,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAA;IACpC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAC,CAAA;AAEF,6EAA6E;AAC7E,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAVP,YAAY;YACZ,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI;iBACvB,OAAO;oBACJ,MAAM;mBACP,MAAM;gBACT,MAAM;qBACD,MAAM;GA0KxB,CAAA"}
|
package/dist/popover/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as Dom from 'foldkit/dom';
|
|
|
5
5
|
import { childAttributes } from 'foldkit/html';
|
|
6
6
|
import { defineMessageUnion } from 'foldkit/message';
|
|
7
7
|
import * as Mount from 'foldkit/mount';
|
|
8
|
-
import {
|
|
8
|
+
import { modifyFields } from 'foldkit/struct';
|
|
9
9
|
import { defineView } from 'foldkit/submodel';
|
|
10
10
|
import * as Update from 'foldkit/update';
|
|
11
11
|
import { AnchorConfig, anchorSetup, portalToContainingRoot, } from '../anchor/index.js';
|
|
@@ -70,7 +70,7 @@ export const init = (config) => (__foldkitBrandViewResult(({
|
|
|
70
70
|
maybeLastButtonPointerType: Option.none(),
|
|
71
71
|
}), "@foldkit/ui/popover/index.js#init"));
|
|
72
72
|
// UPDATE
|
|
73
|
-
const closedModel = (model) => __foldkitBrandViewResult((
|
|
73
|
+
const closedModel = (model) => __foldkitBrandViewResult((modifyFields(model, {
|
|
74
74
|
isOpen: () => __foldkitBrandViewResult((false), "@foldkit/ui/popover/index.js#isOpen"),
|
|
75
75
|
maybeLastButtonPointerType: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/popover/index.js#maybeLastButtonPointerType"),
|
|
76
76
|
})), "@foldkit/ui/popover/index.js#closedModel");
|
|
@@ -140,20 +140,20 @@ const foldAnimationOutMessage = Animation.OutMessage.match({
|
|
|
140
140
|
const foldAnimation = Update.foldChild({
|
|
141
141
|
update: animationUpdate,
|
|
142
142
|
read: (model) => __foldkitBrandViewResult((Option.some(model.animation)), "@foldkit/ui/popover/index.js#read"),
|
|
143
|
-
write: (model, nextAnimation) => __foldkitBrandViewResult((
|
|
143
|
+
write: (model, nextAnimation) => __foldkitBrandViewResult((modifyFields(model, { animation: () => __foldkitBrandViewResult((nextAnimation), "@foldkit/ui/popover/index.js#animation") })), "@foldkit/ui/popover/index.js#write"),
|
|
144
144
|
toParentMessage: message => __foldkitBrandViewResult((Message.GotAnimationMessage({ message })), "@foldkit/ui/popover/index.js#toParentMessage"),
|
|
145
145
|
foldOutMessage: foldAnimationOutMessage,
|
|
146
146
|
});
|
|
147
147
|
const foldAnimationShow = Update.foldChildStep({
|
|
148
148
|
update: animationShow,
|
|
149
149
|
read: (model) => __foldkitBrandViewResult((Option.some(model.animation)), "@foldkit/ui/popover/index.js#read~2"),
|
|
150
|
-
write: (model, nextAnimation) => __foldkitBrandViewResult((
|
|
150
|
+
write: (model, nextAnimation) => __foldkitBrandViewResult((modifyFields(model, { animation: () => __foldkitBrandViewResult((nextAnimation), "@foldkit/ui/popover/index.js#animation~2") })), "@foldkit/ui/popover/index.js#write~2"),
|
|
151
151
|
toParentMessage: message => __foldkitBrandViewResult((Message.GotAnimationMessage({ message })), "@foldkit/ui/popover/index.js#toParentMessage~2"),
|
|
152
152
|
});
|
|
153
153
|
const foldAnimationHide = Update.foldChildStep({
|
|
154
154
|
update: animationHide,
|
|
155
155
|
read: (model) => __foldkitBrandViewResult((Option.some(model.animation)), "@foldkit/ui/popover/index.js#read~3"),
|
|
156
|
-
write: (model, nextAnimation) => __foldkitBrandViewResult((
|
|
156
|
+
write: (model, nextAnimation) => __foldkitBrandViewResult((modifyFields(model, { animation: () => __foldkitBrandViewResult((nextAnimation), "@foldkit/ui/popover/index.js#animation~3") })), "@foldkit/ui/popover/index.js#write~3"),
|
|
157
157
|
toParentMessage: message => __foldkitBrandViewResult((Message.GotAnimationMessage({ message })), "@foldkit/ui/popover/index.js#toParentMessage~3"),
|
|
158
158
|
});
|
|
159
159
|
/** Processes a Popover Message and returns the next Model, optional Commands,
|
|
@@ -179,13 +179,13 @@ export const update = (model, message) => {
|
|
|
179
179
|
stepModel => (__foldkitBrandViewResult(({ model: stepModel, commands: openCommands }), "@foldkit/ui/popover/index.js#anonymous~3")),
|
|
180
180
|
foldAnimationShow,
|
|
181
181
|
stepModel => (__foldkitBrandViewResult(({
|
|
182
|
-
model:
|
|
182
|
+
model: modifyFields(stepModel, { isOpen: () => __foldkitBrandViewResult((true), "@foldkit/ui/popover/index.js#isOpen~2") }),
|
|
183
183
|
}), "@foldkit/ui/popover/index.js#anonymous~4")),
|
|
184
184
|
]);
|
|
185
185
|
return __foldkitBrandViewResult((pipe(popoverOpen, Update.withOutMessage(OutMessage.Opened()))), "@foldkit/ui/popover/index.js#openPopover");
|
|
186
186
|
}
|
|
187
187
|
return __foldkitBrandViewResult(({
|
|
188
|
-
model:
|
|
188
|
+
model: modifyFields(baseModel, { isOpen: () => __foldkitBrandViewResult((true), "@foldkit/ui/popover/index.js#isOpen~3") }),
|
|
189
189
|
commands: openCommands,
|
|
190
190
|
outMessage: OutMessage.Opened(),
|
|
191
191
|
}), "@foldkit/ui/popover/index.js#openPopover");
|
|
@@ -219,7 +219,7 @@ export const update = (model, message) => {
|
|
|
219
219
|
return __foldkitBrandViewResult((closePopover(model, closeWithoutFocusCommands)), "@foldkit/ui/popover/index.js#BlurredPanel");
|
|
220
220
|
},
|
|
221
221
|
PressedPointerOnButton: ({ pointerType, button }) => {
|
|
222
|
-
const withPointerType =
|
|
222
|
+
const withPointerType = modifyFields(model, {
|
|
223
223
|
maybeLastButtonPointerType: () => __foldkitBrandViewResult((Option.some(pointerType)), "@foldkit/ui/popover/index.js#maybeLastButtonPointerType~2"),
|
|
224
224
|
});
|
|
225
225
|
if (pointerType !== 'mouse' || button !== LEFT_MOUSE_BUTTON) {
|
|
@@ -229,7 +229,7 @@ export const update = (model, message) => {
|
|
|
229
229
|
const popoverClose = Update.combine(withPointerType, [
|
|
230
230
|
stepModel => __foldkitBrandViewResult((closePopoverModel(stepModel, closeWithFocusCommands)), "@foldkit/ui/popover/index.js#anonymous~6"),
|
|
231
231
|
stepModel => (__foldkitBrandViewResult(({
|
|
232
|
-
model:
|
|
232
|
+
model: modifyFields(stepModel, {
|
|
233
233
|
maybeLastButtonPointerType: () => __foldkitBrandViewResult((Option.some(pointerType)), "@foldkit/ui/popover/index.js#maybeLastButtonPointerType~3"),
|
|
234
234
|
}),
|
|
235
235
|
}), "@foldkit/ui/popover/index.js#anonymous~7")),
|
|
@@ -246,7 +246,9 @@ export const update = (model, message) => {
|
|
|
246
246
|
CompletedInertOthers: () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/popover/index.js#CompletedInertOthers")),
|
|
247
247
|
CompletedRestoreInert: () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/popover/index.js#CompletedRestoreInert")),
|
|
248
248
|
IgnoredMouseClick: () => (__foldkitBrandViewResult(({
|
|
249
|
-
model:
|
|
249
|
+
model: modifyFields(model, {
|
|
250
|
+
maybeLastButtonPointerType: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/popover/index.js#maybeLastButtonPointerType~4"),
|
|
251
|
+
}),
|
|
250
252
|
}), "@foldkit/ui/popover/index.js#IgnoredMouseClick")),
|
|
251
253
|
SuppressedSpaceScroll: () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/popover/index.js#SuppressedSpaceScroll")),
|
|
252
254
|
CompletedAnchorPopover: () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/popover/index.js#CompletedAnchorPopover")),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAEN,MAAM,EAEN,MAAM,EAGP,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAG9E,OAAO,EAAE,KAAK,IAAI,IAAI,YAAY,EAAc,MAAM,kBAAkB,CAAA;AAOxE,+FAA+F;AAC/F,eAAO,MAAM,WAAW,sDAA8C,CAAA;AACtE,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAA;AAEjD;;;;+DAI+D;AAC/D,eAAO,MAAM,KAAK;;;EAGhB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAIrC,yDAAyD;AACzD,eAAO,MAAM,OAAO;;QAEhB,KAAK;QACL,KAAK;;;QAEU,KAAK;;;EAEtB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,OAAO,OAAO,CAAC,cAAc,CAAC,IAAI,CAAA;AAC/D,MAAM,MAAM,aAAa,GAAG,OAAO,OAAO,CAAC,aAAa,CAAC,IAAI,CAAA;AAE7D,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAIzC,MAAM,MAAM,QAAQ,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,IAAI,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E,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAA;IAC/D,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAC,CAAA;AAqOF;;;sDAGsD;AACtD,MAAM,MAAM,MAAM,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CAAC;IAC3D,IAAI,EAAE,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAA;IACrD,MAAM,EAAE,CACN,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,KACb,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAA;CACpE,CAAC,CAAA;AAEF;;;;;;;;;;;;;;;;;sDAiBsD;AACtD,eAAO,MAAM,MAAM,GAAI,KAAK,SAAS,MAAM,GAAG,MAAM,OAAK,MAAM,CAAC,KAAK,CAmBpE,CAAA"}
|
package/dist/radioGroup/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as Command from 'foldkit/command';
|
|
|
4
4
|
import * as Dom from 'foldkit/dom';
|
|
5
5
|
import { childAttributes } from 'foldkit/html';
|
|
6
6
|
import { defineMessageUnion } from 'foldkit/message';
|
|
7
|
-
import {
|
|
7
|
+
import { modifyFields } from 'foldkit/struct';
|
|
8
8
|
import { defineView } from 'foldkit/submodel';
|
|
9
9
|
import { idSelector } from '../internal/selectors.js';
|
|
10
10
|
import { keyToIndex } from '../keyboard.js';
|
|
@@ -61,12 +61,14 @@ export const FocusOption = Command.define('FocusOption', {
|
|
|
61
61
|
* it back in as `selectedValue`. */
|
|
62
62
|
export const update = (model, message) => __foldkitBrandViewResult((Message.match(message, {
|
|
63
63
|
SelectedOption: ({ index, value }) => (__foldkitBrandViewResult(({
|
|
64
|
-
model:
|
|
64
|
+
model: modifyFields(model, { maybeFocusedIndex: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/radioGroup/index.js#maybeFocusedIndex") }),
|
|
65
65
|
commands: [FocusOption({ id: model.id, index })],
|
|
66
66
|
outMessage: OutMessage.Selected({ value, index }),
|
|
67
67
|
}), "@foldkit/ui/radioGroup/index.js#SelectedOption")),
|
|
68
68
|
FocusedOption: ({ index }) => (__foldkitBrandViewResult(({
|
|
69
|
-
model:
|
|
69
|
+
model: modifyFields(model, {
|
|
70
|
+
maybeFocusedIndex: () => __foldkitBrandViewResult((Option.some(index)), "@foldkit/ui/radioGroup/index.js#maybeFocusedIndex~2"),
|
|
71
|
+
}),
|
|
70
72
|
commands: [FocusOption({ id: model.id, index })],
|
|
71
73
|
}), "@foldkit/ui/radioGroup/index.js#FocusedOption")),
|
|
72
74
|
CompletedFocusOption: () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/radioGroup/index.js#CompletedFocusOption")),
|
package/dist/slider/index.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { type Update } from 'foldkit';
|
|
|
3
3
|
import { type ChildAttribute, type Html } from 'foldkit/html';
|
|
4
4
|
import { type Reflect } from 'foldkit/submodel';
|
|
5
5
|
import * as Subscription from 'foldkit/subscription';
|
|
6
|
-
/** Schema for the
|
|
6
|
+
/** Schema for the Slider's private interaction state. The current
|
|
7
7
|
* value is owned by the parent and passed in via `ViewInputs.value`, so it is
|
|
8
|
-
* not stored here. `min
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* not stored here. `min`, `max`, and `step` configure how the drag Subscription
|
|
9
|
+
* maps pointer positions into values. `dragState` tracks the active drag phase
|
|
10
|
+
* and captures the pre-drag value so Escape can restore it. */
|
|
11
11
|
export declare const Model: Schema.Struct<{
|
|
12
12
|
readonly id: Schema.String;
|
|
13
13
|
readonly min: Schema.Number;
|
|
@@ -21,7 +21,7 @@ export declare const Model: Schema.Struct<{
|
|
|
21
21
|
}>;
|
|
22
22
|
}>;
|
|
23
23
|
export type Model = typeof Model.Type;
|
|
24
|
-
/** Union of all
|
|
24
|
+
/** Union of all Messages the Slider can produce. */
|
|
25
25
|
export declare const Message: import("foldkit/message").MessageUnion<{
|
|
26
26
|
readonly PressedThumb: {
|
|
27
27
|
originValue: Schema.Number;
|
|
@@ -47,25 +47,25 @@ export type MovedDragPointer = typeof Message.MovedDragPointer.Type;
|
|
|
47
47
|
export type ReleasedDragPointer = typeof Message.ReleasedDragPointer.Type;
|
|
48
48
|
export type CancelledDrag = typeof Message.CancelledDrag.Type;
|
|
49
49
|
export type PressedKeyboardNavigation = typeof Message.PressedKeyboardNavigation.Type;
|
|
50
|
-
/** Union of all
|
|
50
|
+
/** Union of all OutMessages the Slider can emit to its parent. */
|
|
51
51
|
export declare const OutMessage: import("foldkit/message").MessageUnion<{
|
|
52
52
|
readonly ChangedValue: {
|
|
53
53
|
value: Schema.Number;
|
|
54
54
|
};
|
|
55
55
|
}>;
|
|
56
56
|
export type OutMessage = typeof OutMessage.Type;
|
|
57
|
-
/** Configuration for creating a
|
|
57
|
+
/** Configuration for creating a Slider Model with `init`. */
|
|
58
58
|
export type InitConfig = Readonly<{
|
|
59
59
|
id: string;
|
|
60
60
|
min: number;
|
|
61
61
|
max: number;
|
|
62
62
|
step: number;
|
|
63
63
|
}>;
|
|
64
|
-
/** Creates an initial
|
|
64
|
+
/** Creates an initial Slider Model from a config. The value lives in the
|
|
65
65
|
* parent Model; initialize it there and snap it with {@link snapAndClamp}. */
|
|
66
66
|
export declare const init: (config: InitConfig) => Model;
|
|
67
67
|
/** Snaps a value to the nearest step and clamps it into `[min, max]`. Exported
|
|
68
|
-
* so a parent can conform the value it owns to the
|
|
68
|
+
* so a parent can conform the value it owns to the Slider's range, for example
|
|
69
69
|
* when seeding the initial value or reacting to an external update. */
|
|
70
70
|
export declare const snapAndClamp: (value: number, min: number, max: number, step: number) => number;
|
|
71
71
|
/** Computes the fraction (0–1) of a value between min and max. Returns 0 when
|
|
@@ -121,10 +121,13 @@ export declare const reflectRange: Reflect<Model, Readonly<{
|
|
|
121
121
|
min: number;
|
|
122
122
|
max: number;
|
|
123
123
|
}>>;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
|
|
124
|
+
/** Maps a pointer position to a Slider value. Vertical tracks place `min` at
|
|
125
|
+
* the bottom and `max` at the top. Edge-aligned tracks measure the rendered
|
|
126
|
+
* thumb and map the pointer across the same inset range it travels through. */
|
|
127
|
+
export declare const valueFromPointer: (clientX: number, clientY: number, track: Element, min: number, max: number) => number;
|
|
128
|
+
/** Builds Slider drag Subscriptions that find the track through the supplied
|
|
129
|
+
* root resolver. Use this when the Slider is rendered inside a Shadow DOM.
|
|
130
|
+
* The resolver runs at subscription time. */
|
|
128
131
|
export declare const subscriptionsForRoot: (getTrackRoot: () => Document | ShadowRoot) => {
|
|
129
132
|
readonly dragPointer: Subscription.EntryWithoutKeepAlive<{
|
|
130
133
|
readonly id: string;
|
|
@@ -198,7 +201,7 @@ export declare const subscriptionsForRoot: (getTrackRoot: () => Document | Shado
|
|
|
198
201
|
readonly __subscription: never;
|
|
199
202
|
};
|
|
200
203
|
};
|
|
201
|
-
/** Default drag
|
|
204
|
+
/** Default drag Subscriptions, with the track looked up via `document`. */
|
|
202
205
|
export declare const subscriptions: {
|
|
203
206
|
readonly dragPointer: Subscription.EntryWithoutKeepAlive<{
|
|
204
207
|
readonly id: string;
|
|
@@ -272,8 +275,8 @@ export declare const subscriptions: {
|
|
|
272
275
|
readonly __subscription: never;
|
|
273
276
|
};
|
|
274
277
|
};
|
|
275
|
-
/** Attribute groups the
|
|
276
|
-
* callback. Each
|
|
278
|
+
/** Attribute groups the Slider provides to the consumer's `toView`
|
|
279
|
+
* callback. Each group carries the boundary's captured dispatch, so the
|
|
277
280
|
* consumer can spread it directly into element attributes without manual
|
|
278
281
|
* Message wrapping. */
|
|
279
282
|
export type SliderAttributes = Readonly<{
|
|
@@ -284,12 +287,32 @@ export type SliderAttributes = Readonly<{
|
|
|
284
287
|
label: ReadonlyArray<ChildAttribute>;
|
|
285
288
|
hiddenInput: ReadonlyArray<ChildAttribute>;
|
|
286
289
|
}>;
|
|
290
|
+
/** Direction in which the Slider lays out its track and maps pointer input. */
|
|
291
|
+
export declare const Orientation: Schema.Literals<readonly ["Horizontal", "Vertical"]>;
|
|
292
|
+
export type Orientation = typeof Orientation.Type;
|
|
293
|
+
/** Whether the thumb's center or outer edge aligns with the track endpoints. */
|
|
294
|
+
export declare const ThumbAlignment: Schema.Literals<readonly ["Center", "Edge"]>;
|
|
295
|
+
export type ThumbAlignment = typeof ThumbAlignment.Type;
|
|
287
296
|
/** Per-render view inputs passed to `view` via `h.submodel`'s `viewInputs` field. */
|
|
288
297
|
export type ViewInputs = Readonly<{
|
|
289
298
|
/** The current value, read straight from the parent Model. The thumb
|
|
290
299
|
* position, `aria-valuenow`, and the filled track all derive from it. */
|
|
291
300
|
value: number;
|
|
292
301
|
toView: (attributes: SliderAttributes) => Html;
|
|
302
|
+
/** Layout axis for the track, filled track, and thumb. Vertical Sliders
|
|
303
|
+
* place `min` at the bottom and `max` at the top. */
|
|
304
|
+
orientation?: Orientation;
|
|
305
|
+
/** How the thumb aligns within the track. `Center` keeps the thumb's
|
|
306
|
+
* center on the value point and lets it overflow by half its size at the
|
|
307
|
+
* extremes, matching the Slider's previous behavior. `Edge` insets the
|
|
308
|
+
* thumb's travel by `thumbSize` so it stays fully inside the track.
|
|
309
|
+
* Defaults to `Center` so existing Sliders keep their geometry. */
|
|
310
|
+
thumbAlignment?: ThumbAlignment;
|
|
311
|
+
/** CSS length of the thumb along the track axis, used only when
|
|
312
|
+
* `thumbAlignment` is `Edge` to inset the thumb's travel and align the
|
|
313
|
+
* fill with the thumb's center. Set this to the size your `toView`
|
|
314
|
+
* callback styles the thumb with. Defaults to `0.75rem`. */
|
|
315
|
+
thumbSize?: string;
|
|
293
316
|
ariaLabel?: string;
|
|
294
317
|
ariaLabelledBy?: string;
|
|
295
318
|
formatValue?: (value: number) => string;
|
|
@@ -309,17 +332,16 @@ export type ViewInputs = Readonly<{
|
|
|
309
332
|
* way. */
|
|
310
333
|
isReadOnly?: boolean;
|
|
311
334
|
name?: string;
|
|
312
|
-
/** Resolves the root
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
* events on the track can map clientX into a value. */
|
|
335
|
+
/** Resolves the DOM root containing the Slider track. Defaults to `document`.
|
|
336
|
+
* Provide a ShadowRoot when rendering the Slider inside a shadow tree so pointer
|
|
337
|
+
* events on the track can map the pointer position into a value. */
|
|
316
338
|
getTrackRoot?: () => Document | ShadowRoot;
|
|
317
339
|
}>;
|
|
318
340
|
/** Renders an accessible slider by building ARIA attribute groups and
|
|
319
341
|
* delegating layout to the consumer's `toView` callback. Follows the
|
|
320
342
|
* WAI-ARIA slider pattern: role="slider" on the thumb, aria-valuemin /
|
|
321
343
|
* aria-valuemax / aria-valuenow, keyboard navigation by step / page / home /
|
|
322
|
-
* end. Pointer drag is handled by the
|
|
344
|
+
* end. Pointer drag is handled by the Slider's drag Subscriptions. */
|
|
323
345
|
export declare const view: import("foldkit/submodel").View<{
|
|
324
346
|
readonly id: string;
|
|
325
347
|
readonly min: number;
|
|
@@ -354,6 +376,20 @@ export declare const view: import("foldkit/submodel").View<{
|
|
|
354
376
|
* position, `aria-valuenow`, and the filled track all derive from it. */
|
|
355
377
|
value: number;
|
|
356
378
|
toView: (attributes: SliderAttributes) => Html;
|
|
379
|
+
/** Layout axis for the track, filled track, and thumb. Vertical Sliders
|
|
380
|
+
* place `min` at the bottom and `max` at the top. */
|
|
381
|
+
orientation?: Orientation;
|
|
382
|
+
/** How the thumb aligns within the track. `Center` keeps the thumb's
|
|
383
|
+
* center on the value point and lets it overflow by half its size at the
|
|
384
|
+
* extremes, matching the Slider's previous behavior. `Edge` insets the
|
|
385
|
+
* thumb's travel by `thumbSize` so it stays fully inside the track.
|
|
386
|
+
* Defaults to `Center` so existing Sliders keep their geometry. */
|
|
387
|
+
thumbAlignment?: ThumbAlignment;
|
|
388
|
+
/** CSS length of the thumb along the track axis, used only when
|
|
389
|
+
* `thumbAlignment` is `Edge` to inset the thumb's travel and align the
|
|
390
|
+
* fill with the thumb's center. Set this to the size your `toView`
|
|
391
|
+
* callback styles the thumb with. Defaults to `0.75rem`. */
|
|
392
|
+
thumbSize?: string;
|
|
357
393
|
ariaLabel?: string;
|
|
358
394
|
ariaLabelledBy?: string;
|
|
359
395
|
formatValue?: (value: number) => string;
|
|
@@ -373,10 +409,9 @@ export declare const view: import("foldkit/submodel").View<{
|
|
|
373
409
|
* way. */
|
|
374
410
|
isReadOnly?: boolean;
|
|
375
411
|
name?: string;
|
|
376
|
-
/** Resolves the root
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
* events on the track can map clientX into a value. */
|
|
412
|
+
/** Resolves the DOM root containing the Slider track. Defaults to `document`.
|
|
413
|
+
* Provide a ShadowRoot when rendering the Slider inside a shadow tree so pointer
|
|
414
|
+
* events on the track can map the pointer position into a value. */
|
|
380
415
|
getTrackRoot?: () => Document | ShadowRoot;
|
|
381
416
|
}>>;
|
|
382
417
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,MAAM,EAIP,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAI9E,OAAO,EAAE,KAAK,OAAO,EAAc,MAAM,kBAAkB,CAAA;AAC3D,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAA;AAWpD;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,MAAM,EAIP,MAAM,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