@fragiola/primitives 0.0.0-stage → 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/dist/async-list-Bv6ff5Oj.js +81 -0
- package/dist/async-list-Bv6ff5Oj.js.map +1 -0
- package/dist/async-list.d.ts +2 -0
- package/dist/async-list.js +1 -0
- package/dist/calendar-keys-DGYpjLwv.d.ts +12 -0
- package/dist/calendar-system-B5U5HcPQ.d.ts +415 -0
- package/dist/calendar-systems-Daa6Q_ca.js +659 -0
- package/dist/calendar-systems-Daa6Q_ca.js.map +1 -0
- package/dist/calendar-systems.d.ts +3 -0
- package/dist/calendar-systems.js +1 -0
- package/dist/carousel-LRbWqbAx.js +375 -0
- package/dist/carousel-LRbWqbAx.js.map +1 -0
- package/dist/carousel.d.ts +2 -0
- package/dist/carousel.js +1 -0
- package/dist/cascade-B155Xvvv.js +64 -0
- package/dist/cascade-B155Xvvv.js.map +1 -0
- package/dist/cascade.d.ts +2 -0
- package/dist/cascade.js +1 -0
- package/dist/clipboard-Cy2cbGEW.js +33 -0
- package/dist/clipboard-Cy2cbGEW.js.map +1 -0
- package/dist/clipboard.d.ts +2 -0
- package/dist/clipboard.js +1 -0
- package/dist/collection-Dbk-PB5S.js +609 -0
- package/dist/collection-Dbk-PB5S.js.map +1 -0
- package/dist/collection.d.ts +2 -0
- package/dist/collection.js +3 -0
- package/dist/color-sURV5Irg.js +699 -0
- package/dist/color-sURV5Irg.js.map +1 -0
- package/dist/color.d.ts +2 -0
- package/dist/color.js +1 -0
- package/dist/command-DueCXi65.js +104 -0
- package/dist/command-DueCXi65.js.map +1 -0
- package/dist/command.d.ts +2 -0
- package/dist/command.js +1 -0
- package/dist/date-CrbFSJKQ.js +215 -0
- package/dist/date-CrbFSJKQ.js.map +1 -0
- package/dist/date.d.ts +4 -0
- package/dist/date.js +1 -0
- package/dist/direction-CTnVLpmd.d.ts +8 -0
- package/dist/direction-DJDPvnxJ.js +13 -0
- package/dist/direction-DJDPvnxJ.js.map +1 -0
- package/dist/direction.d.ts +2 -0
- package/dist/direction.js +1 -0
- package/dist/drag-session-CSr06B5v.js +41 -0
- package/dist/drag-session-CSr06B5v.js.map +1 -0
- package/dist/file-DSLtfzbi.js +263 -0
- package/dist/file-DSLtfzbi.js.map +1 -0
- package/dist/file.d.ts +2 -0
- package/dist/file.js +1 -0
- package/dist/focus-BI-VvM0f.js +75 -0
- package/dist/focus-BI-VvM0f.js.map +1 -0
- package/dist/focus.d.ts +2 -0
- package/dist/focus.js +3 -0
- package/dist/form-DovwKtqz.js +501 -0
- package/dist/form-DovwKtqz.js.map +1 -0
- package/dist/form.d.ts +2 -0
- package/dist/form.js +1 -0
- package/dist/hover-BakyPYnC.js +62 -0
- package/dist/hover-BakyPYnC.js.map +1 -0
- package/dist/hover.d.ts +2 -0
- package/dist/hover.js +1 -0
- package/dist/id-B0Y8iZrc.js +13 -0
- package/dist/id-B0Y8iZrc.js.map +1 -0
- package/dist/id.d.ts +2 -0
- package/dist/id.js +1 -0
- package/dist/image-D4X_yRYw.js +44 -0
- package/dist/image-D4X_yRYw.js.map +1 -0
- package/dist/image.d.ts +2 -0
- package/dist/image.js +1 -0
- package/dist/index-B0rwIZw9.d.ts +51 -0
- package/dist/index-B4wF1isn.d.ts +128 -0
- package/dist/index-BHiBRE01.d.ts +20 -0
- package/dist/index-BNlMm-0u.d.ts +17 -0
- package/dist/index-BapNrjY9.d.ts +48 -0
- package/dist/index-Bd-tVb7C.d.ts +6 -0
- package/dist/index-BjE8nDiX.d.ts +125 -0
- package/dist/index-BpbT-FsX.d.ts +117 -0
- package/dist/index-CBgGcTeX.d.ts +37 -0
- package/dist/index-CGThV_Md.d.ts +100 -0
- package/dist/index-CMig3TXL.d.ts +28 -0
- package/dist/index-CWFRduRd.d.ts +212 -0
- package/dist/index-CkrHWyU_.d.ts +33 -0
- package/dist/index-Cwu6f7y1.d.ts +18 -0
- package/dist/index-D10LDdR6.d.ts +139 -0
- package/dist/index-D146vm21.d.ts +104 -0
- package/dist/index-DGKhEvNr.d.ts +107 -0
- package/dist/index-DbAu4s16.d.ts +48 -0
- package/dist/index-DdaCj6IO.d.ts +54 -0
- package/dist/index-DeHcNdjC.d.ts +68 -0
- package/dist/index-DeR4ncrW.d.ts +93 -0
- package/dist/index-HIksgK0e.d.ts +70 -0
- package/dist/index-IZB0mlZl.d.ts +71 -0
- package/dist/index-IfDZj87U.d.ts +28 -0
- package/dist/index-SrTuVBms.d.ts +75 -0
- package/dist/index-T9UcYvkf.d.ts +339 -0
- package/dist/index-fRTojAoR.d.ts +31 -0
- package/dist/index-fuLUke9n.d.ts +6 -0
- package/dist/index-l63esAck.d.ts +104 -0
- package/dist/index-raSUg9U7.d.ts +38 -0
- package/dist/index-twgzPKvZ.d.ts +278 -0
- package/dist/index-wBpjRykh.d.ts +125 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +42 -0
- package/dist/inert-DlGToy3q.js +80 -0
- package/dist/inert-DlGToy3q.js.map +1 -0
- package/dist/inert.d.ts +2 -0
- package/dist/inert.js +1 -0
- package/dist/layer-stack-BEtzaFC1.js +118 -0
- package/dist/layer-stack-BEtzaFC1.js.map +1 -0
- package/dist/layers-C-N4rrZX.js +24 -0
- package/dist/layers-C-N4rrZX.js.map +1 -0
- package/dist/layers.d.ts +2 -0
- package/dist/layers.js +3 -0
- package/dist/list-navigation-CbWv4DK5.js +40 -0
- package/dist/list-navigation-CbWv4DK5.js.map +1 -0
- package/dist/month-year-BG5imFUq.js +108 -0
- package/dist/month-year-BG5imFUq.js.map +1 -0
- package/dist/month-year.d.ts +3 -0
- package/dist/month-year.js +1 -0
- package/dist/number-BFUio97d.js +316 -0
- package/dist/number-BFUio97d.js.map +1 -0
- package/dist/number.d.ts +2 -0
- package/dist/number.js +1 -0
- package/dist/overlay-BwPyiM3T.js +78 -0
- package/dist/overlay-BwPyiM3T.js.map +1 -0
- package/dist/overlay.d.ts +2 -0
- package/dist/overlay.js +1 -0
- package/dist/pagination-BkVzaIGP.js +51 -0
- package/dist/pagination-BkVzaIGP.js.map +1 -0
- package/dist/pagination.d.ts +2 -0
- package/dist/pagination.js +1 -0
- package/dist/plain-date-idQH1P6X.d.ts +29 -0
- package/dist/plain-date-time-B8PGahhe.d.ts +99 -0
- package/dist/pointer-CuDtD9XA.js +189 -0
- package/dist/pointer-CuDtD9XA.js.map +1 -0
- package/dist/pointer.d.ts +2 -0
- package/dist/pointer.js +3 -0
- package/dist/positioning-DDUQ75mB.js +148 -0
- package/dist/positioning-DDUQ75mB.js.map +1 -0
- package/dist/positioning.d.ts +2 -0
- package/dist/positioning.js +1 -0
- package/dist/presence-BhKDOmII.js +86 -0
- package/dist/presence-BhKDOmII.js.map +1 -0
- package/dist/presence.d.ts +2 -0
- package/dist/presence.js +1 -0
- package/dist/range-o0_GBhyY.js +158 -0
- package/dist/range-o0_GBhyY.js.map +1 -0
- package/dist/range.d.ts +2 -0
- package/dist/range.js +1 -0
- package/dist/scroll-area-BYNhv36t.js +447 -0
- package/dist/scroll-area-BYNhv36t.js.map +1 -0
- package/dist/scroll-area.d.ts +2 -0
- package/dist/scroll-area.js +1 -0
- package/dist/scroll-lock-JzRNOA1O.js +42 -0
- package/dist/scroll-lock-JzRNOA1O.js.map +1 -0
- package/dist/scroll-lock.d.ts +2 -0
- package/dist/scroll-lock.js +1 -0
- package/dist/segments-eRu5G_Bd.js +587 -0
- package/dist/segments-eRu5G_Bd.js.map +1 -0
- package/dist/segments.d.ts +3 -0
- package/dist/segments.js +1 -0
- package/dist/selection-Cor67w_V.js +287 -0
- package/dist/selection-Cor67w_V.js.map +1 -0
- package/dist/selection.d.ts +2 -0
- package/dist/selection.js +1 -0
- package/dist/swipe.d.ts +2 -0
- package/dist/swipe.js +1 -0
- package/dist/tabbable-BPiLssIv.js +35 -0
- package/dist/tabbable-BPiLssIv.js.map +1 -0
- package/dist/time-Ct6oq9kt.js +208 -0
- package/dist/time-Ct6oq9kt.js.map +1 -0
- package/dist/time-zone-DegkzwST.js +305 -0
- package/dist/time-zone-DegkzwST.js.map +1 -0
- package/dist/time-zone.d.ts +2 -0
- package/dist/time-zone.js +1 -0
- package/dist/time.d.ts +2 -0
- package/dist/time.js +1 -0
- package/dist/toast-BjRpJalM.js +400 -0
- package/dist/toast-BjRpJalM.js.map +1 -0
- package/dist/toast.d.ts +2 -0
- package/dist/toast.js +1 -0
- package/dist/unit-grid-DJy8lb5D.d.ts +21 -0
- package/dist/virtual-BlX1RuHD.js +306 -0
- package/dist/virtual-BlX1RuHD.js.map +1 -0
- package/dist/virtual.d.ts +2 -0
- package/dist/virtual.js +1 -0
- package/dist/watch-swipe-BIucfr9O.js +301 -0
- package/dist/watch-swipe-BIucfr9O.js.map +1 -0
- package/package.json +234 -3
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/** A direction a swipe moves in: the edge it dismisses towards (spec/drawer.md, "Swipe"). */
|
|
2
|
+
type SwipeDirection = "up" | "down" | "left" | "right";
|
|
3
|
+
/** Where a swipe is, from where it went down, in px. */
|
|
4
|
+
interface SwipeMovement {
|
|
5
|
+
deltaX: number;
|
|
6
|
+
deltaY: number;
|
|
7
|
+
}
|
|
8
|
+
/** How a swipe ended: its movement and its velocity over the last moves, in px per ms. */
|
|
9
|
+
interface SwipeEnd extends SwipeMovement {
|
|
10
|
+
velocityX: number;
|
|
11
|
+
velocityY: number;
|
|
12
|
+
}
|
|
13
|
+
interface SwipeOptions {
|
|
14
|
+
/**
|
|
15
|
+
* The directions a swipe may move in: their axis is the one a swipe locks on (a drawer's
|
|
16
|
+
* dismissal direction; both directions of that axis move it).
|
|
17
|
+
*/
|
|
18
|
+
directions: readonly SwipeDirection[];
|
|
19
|
+
/**
|
|
20
|
+
* Whether a press on `target` may start a swipe, after the built-in rules (no swipe from a
|
|
21
|
+
* text control, a range input, an editable element or an element marked
|
|
22
|
+
* `data-swipe-ignore`; a mouse swipes from the primary button and never from an interactive
|
|
23
|
+
* element). A drawer's Content lets the mouse select its text.
|
|
24
|
+
*/
|
|
25
|
+
canStart?: (target: Element, event: PointerEvent) => boolean;
|
|
26
|
+
/** The pointer moved past the lock distance along the swipe's axis. */
|
|
27
|
+
onStart: (event: PointerEvent) => void;
|
|
28
|
+
/** Every move of a started swipe. */
|
|
29
|
+
onMove: (movement: SwipeMovement, event: PointerEvent) => void;
|
|
30
|
+
/** The swipe ended: released (`end`), or canceled (`null`: a lost pointer, the cleanup). */
|
|
31
|
+
onEnd: (end: SwipeEnd | null, event: PointerEvent | null) => void;
|
|
32
|
+
}
|
|
33
|
+
/** The distance a pointer moves before a swipe locks on an axis (or lets it go), in px. */
|
|
34
|
+
declare const SWIPE_LOCK_DISTANCE = 6;
|
|
35
|
+
/**
|
|
36
|
+
* Watches `element` for swipes (spec/drawer.md, "Swipe"): a primary pointer goes down on it, and
|
|
37
|
+
* once it moved `SWIPE_LOCK_DISTANCE` px, the gesture locks on the swipe's axis (it becomes a
|
|
38
|
+
* swipe, with pointer capture) or is let go (the other axis, or a scroller under the pointer that
|
|
39
|
+
* takes the move: scroll containment). A touch's moves are kept from scrolling the page while they
|
|
40
|
+
* may be a swipe (a non-passive `touchmove`), so the browser does not cancel the pointer. It holds
|
|
41
|
+
* no state of the component: it reports the movement and the release velocity, and the framework
|
|
42
|
+
* decides what they mean (`swipeRelease`). Text selection is cleared and kept off while a swipe
|
|
43
|
+
* runs. Returns the cleanup, which cancels a running swipe.
|
|
44
|
+
*/
|
|
45
|
+
declare function watchSwipe(element: HTMLElement, options: SwipeOptions): () => void;
|
|
46
|
+
/**
|
|
47
|
+
* A snap point (spec/drawer.md, "Snap points"): a fraction of the viewport's height (`0` to `1`),
|
|
48
|
+
* a height in px (a number above `1`), or a string in `px` or `rem`.
|
|
49
|
+
*/
|
|
50
|
+
type SnapPoint = number | string;
|
|
51
|
+
/** A snap point measured: its height, and the offset that shows that height of the popup. */
|
|
52
|
+
interface ResolvedSnapPoint {
|
|
53
|
+
value: SnapPoint;
|
|
54
|
+
/** The height of the popup it shows, in px (at most the popup's and the viewport's). */
|
|
55
|
+
height: number;
|
|
56
|
+
/** How far the popup is moved towards its edge to show that height, in px (`0`: all of it). */
|
|
57
|
+
offset: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Measures `points` for a popup of `popupHeight` in a viewport of `viewportHeight` (spec/drawer.md,
|
|
61
|
+
* "Snap points"): each one's height (clamped to the popup and the viewport) and offset. Invalid
|
|
62
|
+
* points are left out; two points within 1 px of each other count once (the earlier one).
|
|
63
|
+
*/
|
|
64
|
+
declare function resolveSnapPoints(points: readonly SnapPoint[], sizes: {
|
|
65
|
+
popupHeight: number;
|
|
66
|
+
viewportHeight: number;
|
|
67
|
+
rootFontSize?: number;
|
|
68
|
+
}): ResolvedSnapPoint[];
|
|
69
|
+
/** The movement of a swipe along `direction`: positive towards the edge it dismisses to. */
|
|
70
|
+
declare function swipeDisplacement(direction: SwipeDirection, movement: SwipeMovement): number;
|
|
71
|
+
/**
|
|
72
|
+
* The movement to show while a swipe runs (spec/drawer.md, "Swipe"): along `direction` only, as
|
|
73
|
+
* far as the pointer went towards the edge, and damped (the square root) past the fully open
|
|
74
|
+
* position, where `baseOffset` (a snap point's offset) is `0`. Returns the x and y movement in px.
|
|
75
|
+
*/
|
|
76
|
+
declare function swipeMovement(direction: SwipeDirection, movement: SwipeMovement, baseOffset?: number): {
|
|
77
|
+
x: number;
|
|
78
|
+
y: number;
|
|
79
|
+
};
|
|
80
|
+
/** What a swipe's release does: dismiss, or settle (on a snap point's index, with snap points). */
|
|
81
|
+
type SwipeOutcome = {
|
|
82
|
+
dismiss: true;
|
|
83
|
+
} | {
|
|
84
|
+
dismiss: false;
|
|
85
|
+
snapPoint: number | null;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* What a released swipe does (spec/drawer.md, "Swipe" and "Snap points"). Without snap points, it
|
|
89
|
+
* dismisses when it moved more than half the popup's `size` along `direction`, or at least 10 px
|
|
90
|
+
* at a flick's velocity (0.5 px per ms) towards the edge; otherwise it settles back. With snap
|
|
91
|
+
* points (the popup's `currentOffset` the active one's), the release's target is where it was let
|
|
92
|
+
* go plus, at a flick's velocity or faster, a projection of that velocity (velocity × 300 px, the
|
|
93
|
+
* velocity capped at 4); the closest of the snap points and the closed position (`size`) wins.
|
|
94
|
+
*/
|
|
95
|
+
declare function swipeRelease(direction: SwipeDirection, end: SwipeEnd, size: number, snap?: {
|
|
96
|
+
points: readonly ResolvedSnapPoint[];
|
|
97
|
+
currentOffset: number;
|
|
98
|
+
}): SwipeOutcome;
|
|
99
|
+
/**
|
|
100
|
+
* How far a running swipe has moved the popup towards its closed position, from `0` (where it
|
|
101
|
+
* was, or fully open) to `1` (closed), for a recipe's `--drawer-swipe-progress` (spec/drawer.md).
|
|
102
|
+
*/
|
|
103
|
+
declare function swipeProgress(direction: SwipeDirection, movement: SwipeMovement, size: number, baseOffset?: number): number;
|
|
104
|
+
export { swipeDisplacement as a, swipeRelease as c, SwipeEnd as d, SwipeMovement as f, resolveSnapPoints as i, SWIPE_LOCK_DISTANCE as l, watchSwipe as m, SnapPoint as n, swipeMovement as o, SwipeOptions as p, SwipeOutcome as r, swipeProgress as s, ResolvedSnapPoint as t, SwipeDirection as u };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** One item of a pagination's range (spec/pagination.md, "The range"). */
|
|
2
|
+
type PaginationItem = {
|
|
3
|
+
type: "page";
|
|
4
|
+
value: number;
|
|
5
|
+
} | {
|
|
6
|
+
type: "ellipsis";
|
|
7
|
+
position: "start" | "end";
|
|
8
|
+
};
|
|
9
|
+
interface PaginationRangeOptions {
|
|
10
|
+
/** The current page, from 1 (clamped to `[1, count]`). */
|
|
11
|
+
page: number;
|
|
12
|
+
/** The number of pages (at least 1). */
|
|
13
|
+
count: number;
|
|
14
|
+
/** The pages shown on each side of the current one (default `1`). */
|
|
15
|
+
siblingCount?: number | undefined;
|
|
16
|
+
/** The pages always shown at each end (default `1`). */
|
|
17
|
+
boundaryCount?: number | undefined;
|
|
18
|
+
}
|
|
19
|
+
interface PageCountOptions {
|
|
20
|
+
/** The number of pages, when known. */
|
|
21
|
+
count?: number | undefined;
|
|
22
|
+
/** Else the number of rows... */
|
|
23
|
+
total?: number | undefined;
|
|
24
|
+
/** ...and the rows per page (default `10`). */
|
|
25
|
+
pageSize?: number | undefined;
|
|
26
|
+
}
|
|
27
|
+
/** The number of pages: `count`, or `ceil(total / pageSize)`; never less than 1. */
|
|
28
|
+
declare function pageCount({ count, total, pageSize }: PageCountOptions): number;
|
|
29
|
+
/** A page clamped to `[1, count]` (a value that is no finite number is 1). */
|
|
30
|
+
declare function clampPage(page: number, count: number): number;
|
|
31
|
+
/**
|
|
32
|
+
* The items of a pagination: every page when they fit in `2 × boundary + 2 × siblings + 3`
|
|
33
|
+
* items, else the boundary pages, a slot, the window around the current page (kept whole near
|
|
34
|
+
* the ends), a slot and the boundary pages; a slot is an ellipsis, or the single page it would
|
|
35
|
+
* hide.
|
|
36
|
+
*/
|
|
37
|
+
declare function paginationRange({ page, count, siblingCount, boundaryCount }: PaginationRangeOptions): PaginationItem[];
|
|
38
|
+
export { pageCount as a, clampPage as i, PaginationItem as n, paginationRange as o, PaginationRangeOptions as r, PageCountOptions as t };
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
/** The `ValidityState` keys a field reads (spec/field.md, "Validation"), `valid` aside. */
|
|
2
|
+
declare const VALIDITY_KEYS: readonly ["badInput", "customError", "patternMismatch", "rangeOverflow", "rangeUnderflow", "stepMismatch", "tooLong", "tooShort", "typeMismatch", "valueMissing"];
|
|
3
|
+
type ValidityKey = (typeof VALIDITY_KEYS)[number];
|
|
4
|
+
/** A field's validity: the native flags, plus `valid` (`null` before the first validation). */
|
|
5
|
+
type FieldValidity = Readonly<Record<ValidityKey, boolean>> & {
|
|
6
|
+
readonly valid: boolean | null;
|
|
7
|
+
};
|
|
8
|
+
/** What a field shows: its validity and its messages (empty while valid). */
|
|
9
|
+
interface FieldValidation {
|
|
10
|
+
readonly validity: FieldValidity;
|
|
11
|
+
readonly errors: readonly string[];
|
|
12
|
+
}
|
|
13
|
+
/** What a field's `validate` answers: a message, a list of messages, or none. */
|
|
14
|
+
type FieldValidateResult = string | readonly string[] | null | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* A field's `validate`: a message, a list of messages, or none; or a promise of one of these
|
|
17
|
+
* (spec/field.md, "Async validation").
|
|
18
|
+
*/
|
|
19
|
+
type FieldValidate = (value: unknown) => FieldValidateResult | PromiseLike<FieldValidateResult>;
|
|
20
|
+
/** Before the first validation: neither valid nor invalid. */
|
|
21
|
+
declare const UNVALIDATED: FieldValidation;
|
|
22
|
+
/** Valid, with no message: what a change that clears a shown error leaves. */
|
|
23
|
+
declare const CLEARED: FieldValidation;
|
|
24
|
+
interface ValidateFieldOptions {
|
|
25
|
+
/** The control's value, given to `validate`. */
|
|
26
|
+
value: unknown;
|
|
27
|
+
validate?: FieldValidate | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the value has changed once or a submission was attempted. Until then, a
|
|
30
|
+
* `valueMissing` alone counts as valid (the required rule).
|
|
31
|
+
*/
|
|
32
|
+
valueChanged: boolean;
|
|
33
|
+
/** Runs `validate` even when the native validity has an error (the field validates on change). */
|
|
34
|
+
always: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Validates a field (spec/field.md, "Validation"): reads the native validity of the element the
|
|
38
|
+
* form validates, applies the required rule, runs `validate`, and sets its messages as the
|
|
39
|
+
* element's custom validity, so a native submission is blocked by them. `element` is `null` (or
|
|
40
|
+
* barred from validation, as a `type="hidden"` input) for a control the browser cannot validate:
|
|
41
|
+
* `validate` alone decides. Returns what the field would show. A `validate` that returns a promise
|
|
42
|
+
* is not awaited here (its messages count as none): a field with an async `validate` uses
|
|
43
|
+
* {@link createFieldValidator}.
|
|
44
|
+
*/
|
|
45
|
+
declare function validateField(element: HTMLInputElement | null, options: ValidateFieldOptions): FieldValidation;
|
|
46
|
+
/** A field's validation runs, with the async rules (spec/field.md, "Async validation"). */
|
|
47
|
+
interface FieldValidator {
|
|
48
|
+
/**
|
|
49
|
+
* Validates the field. Returns the result at once, or `null` while an async `validate` is
|
|
50
|
+
* pending: `settle` then receives the result when it resolves, unless a newer run started
|
|
51
|
+
* first (latest wins). A value the last resolved run validated is not validated again: its
|
|
52
|
+
* messages are reused at once.
|
|
53
|
+
*/
|
|
54
|
+
run(element: HTMLInputElement | null, options: ValidateFieldOptions, settle: (validation: FieldValidation) => void): FieldValidation | null;
|
|
55
|
+
/** Drops the pending run, if any (the field unmounted). */
|
|
56
|
+
cancel(): void;
|
|
57
|
+
}
|
|
58
|
+
/** A field's validator: one per field, for as long as it lives. */
|
|
59
|
+
declare function createFieldValidator(): FieldValidator;
|
|
60
|
+
/** A field's `validationMode` (spec/field.md). */
|
|
61
|
+
type FieldValidationMode = "onSubmit" | "onBlur" | "onChange";
|
|
62
|
+
/**
|
|
63
|
+
* Whether a field validates and shows the result on every change: in `onChange` mode, and in
|
|
64
|
+
* `onSubmit` mode once a submission was attempted (spec/field.md, "When the result is shown").
|
|
65
|
+
*/
|
|
66
|
+
declare function validatesOnChange(mode: FieldValidationMode, submitted: boolean): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* What a field shows after a change, from what it showed and the change's fresh validation (`null`
|
|
69
|
+
* while its async `validate` is pending). A field that validates on change shows the fresh result,
|
|
70
|
+
* or keeps what it showed while the run is pending. Otherwise a shown error is cleared at once,
|
|
71
|
+
* pending run or not (Epic #49), unless the value is now missing (the required error shows at
|
|
72
|
+
* once); anything else stays as it was.
|
|
73
|
+
*/
|
|
74
|
+
declare function shownAfterChange(shown: FieldValidation, next: FieldValidation | null, onChange: boolean): FieldValidation;
|
|
75
|
+
/**
|
|
76
|
+
* A control's `aria-describedby` from the field's description and shown errors: their ids in
|
|
77
|
+
* document order, or `undefined` when there is none (spec/field.md).
|
|
78
|
+
*/
|
|
79
|
+
declare function fieldDescribedBy(elements: Iterable<HTMLElement>): string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* `Field.Error`'s `match`: a `ValidityState` key, a function of the field's validity, or `true`
|
|
82
|
+
* for always (spec/field.md).
|
|
83
|
+
*/
|
|
84
|
+
type FieldErrorMatch = ValidityKey | ((validity: FieldValidity) => boolean) | true;
|
|
85
|
+
/**
|
|
86
|
+
* Whether a `Field.Error` is shown: always with `match={true}`; never in a disabled field;
|
|
87
|
+
* with a key, while that key is set; with a function, while it returns `true`; without, while the
|
|
88
|
+
* field is invalid (its validity is `false`, the app set `invalid`, or its Form has errors for it).
|
|
89
|
+
*/
|
|
90
|
+
declare function fieldErrorShown(match: FieldErrorMatch | undefined, shown: FieldValidation, field: {
|
|
91
|
+
invalid: boolean;
|
|
92
|
+
disabled: boolean;
|
|
93
|
+
}): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* The messages a `Field.Error` with no children shows: the Form's errors for the field when it has
|
|
96
|
+
* some (only for an Error with no key or function `match`), else the field's own messages.
|
|
97
|
+
*/
|
|
98
|
+
declare function fieldErrorMessages(match: FieldErrorMatch | undefined, shown: FieldValidation, formErrors: readonly string[]): readonly string[];
|
|
99
|
+
/** A field's state, which every part carries (spec/field.md, "State attributes and ARIA"). */
|
|
100
|
+
interface FieldState {
|
|
101
|
+
/** `false` while it shows an error, `true` once validated and valid, `null` before or disabled. */
|
|
102
|
+
valid: boolean | null;
|
|
103
|
+
dirty: boolean;
|
|
104
|
+
touched: boolean;
|
|
105
|
+
filled: boolean;
|
|
106
|
+
focused: boolean;
|
|
107
|
+
disabled: boolean;
|
|
108
|
+
}
|
|
109
|
+
/** The field's state attributes, as booleans keyed by their `data-*` name (without `data-`). */
|
|
110
|
+
declare function fieldStateAttributes(state: FieldState): Record<"invalid" | "valid" | "dirty" | "touched" | "filled" | "focused" | "disabled", boolean>;
|
|
111
|
+
interface FormBridgeOptions {
|
|
112
|
+
/**
|
|
113
|
+
* The input's form was reset. Called once the browser has reset its controls, so the
|
|
114
|
+
* framework can return the component to its default and write it back onto the input.
|
|
115
|
+
*/
|
|
116
|
+
reset?: () => void;
|
|
117
|
+
/** The browser's validation found the input invalid: where focus goes instead (the primitive). */
|
|
118
|
+
invalid?: () => HTMLElement | null;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Bridges a primitive's hidden input and its form (spec/README.md, "Forms"): a form reset, and a
|
|
122
|
+
* failed validation (the browser would focus the hidden input; focus goes to the primitive, when
|
|
123
|
+
* its input is the form's first invalid control, and the browser's bubble is not shown on an
|
|
124
|
+
* invisible element, nor does the browser then move the focus on to a later invalid control).
|
|
125
|
+
* Returns the cleanup.
|
|
126
|
+
*/
|
|
127
|
+
declare function bridgeForm(input: HTMLInputElement, options: FormBridgeOptions): () => void;
|
|
128
|
+
/** A Form's server errors, keyed by the fields' `name` (spec/form.md). */
|
|
129
|
+
type FormErrors = Readonly<Record<string, string | readonly string[]>>;
|
|
130
|
+
/** The Form's errors for one field, as a list of messages (empty for none). */
|
|
131
|
+
declare function formErrorsFor(errors: FormErrors | null | undefined, name: string | undefined): readonly string[];
|
|
132
|
+
/** The errors without one field's key, or the same object when it has none. */
|
|
133
|
+
declare function withoutFormErrors(errors: FormErrors, name: string): FormErrors;
|
|
134
|
+
/**
|
|
135
|
+
* Runs a Form's validation on each submission of `form` (spec/form.md, "A submission"): a capture
|
|
136
|
+
* listener on the form, so it runs before any listener of the consumer's on the form or above it.
|
|
137
|
+
* When `attempt` returns `false`, the submission is blocked: `preventDefault`, and
|
|
138
|
+
* `stopImmediatePropagation`, so no other listener sees it. Returns the cleanup.
|
|
139
|
+
*/
|
|
140
|
+
declare function guardFormSubmit(form: HTMLFormElement, attempt: (event: SubmitEvent) => boolean): () => void;
|
|
141
|
+
/** The first of these elements in document order (`null` for none). */
|
|
142
|
+
declare function firstInDocumentOrder(elements: Iterable<HTMLElement | null | undefined>): HTMLElement | null;
|
|
143
|
+
/** Focuses a field's control for the Form: a text input's text is selected, as Base UI does. */
|
|
144
|
+
declare function focusFieldControl(element: HTMLElement): void;
|
|
145
|
+
/**
|
|
146
|
+
* A press on a Label (spec/label.md, "Pointer"): a double press selects none of its text (its
|
|
147
|
+
* `mousedown` default is prevented, Radix and Base UI), unless it lands on a control inside the
|
|
148
|
+
* label, whose own text editing stays.
|
|
149
|
+
*/
|
|
150
|
+
declare function preventLabelSelection(event: MouseEvent): void;
|
|
151
|
+
/**
|
|
152
|
+
* The element a Label's press focuses when `for` names no labelable element (spec/label.md,
|
|
153
|
+
* "Pointer"): a Slider's thumb, a group. The named element itself when it can take the focus,
|
|
154
|
+
* else its first focusable descendant; `null` when `for` names a labelable element (the browser
|
|
155
|
+
* activates it) or nothing.
|
|
156
|
+
*/
|
|
157
|
+
declare function labelFocusTarget(label: HTMLLabelElement): HTMLElement | null;
|
|
158
|
+
/**
|
|
159
|
+
* The characters an OTP field accepts (spec/otp-field.md, "API"): digits, letters, both, any
|
|
160
|
+
* character but whitespace, or a pattern each character must match.
|
|
161
|
+
*/
|
|
162
|
+
type OtpValidationType = "numeric" | "alpha" | "alphanumeric" | "none" | RegExp;
|
|
163
|
+
/** Whether one character is accepted by `type` (a pattern is tested on the character alone). */
|
|
164
|
+
declare function otpAccepts(character: string, type: OtpValidationType): boolean;
|
|
165
|
+
/**
|
|
166
|
+
* `text` as an OTP value (spec/otp-field.md, "Typing"): whitespace dropped, every character
|
|
167
|
+
* `type` refuses dropped, at most `length` characters (by code point). `rejected` says whether a
|
|
168
|
+
* character other than whitespace was dropped (the field's `onValueInvalid`).
|
|
169
|
+
*/
|
|
170
|
+
declare function normalizeOtp(text: string, length: number, type: OtpValidationType): {
|
|
171
|
+
value: string;
|
|
172
|
+
rejected: boolean;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* The value once `text` was typed or pasted into slot `index`: its characters replace the slot's
|
|
176
|
+
* and the next ones, the value stays contiguous and at most `length` long (Base UI).
|
|
177
|
+
*/
|
|
178
|
+
declare function replaceOtp(value: string, index: number, text: string, length: number, type: OtpValidationType): string;
|
|
179
|
+
/** The value without the character of slot `index`; the later ones move back (Base UI). */
|
|
180
|
+
declare function removeOtpCharacter(value: string, index: number): string;
|
|
181
|
+
/** The virtual keyboard a slot asks for: `numeric` for digits, else `text`. */
|
|
182
|
+
declare function otpInputMode(type: OtpValidationType): "numeric" | "text";
|
|
183
|
+
/**
|
|
184
|
+
* The hidden input's `pattern`: a complete value, `length` accepted characters, so a native form
|
|
185
|
+
* refuses an incomplete code (spec/otp-field.md, "Forms"). A `RegExp` type gives `.{length}`:
|
|
186
|
+
* the value is normalized already, and its flags (`i`) or a source the `v` flag a `pattern` is
|
|
187
|
+
* compiled with refuses would make the browser refuse valid codes, or ignore the pattern.
|
|
188
|
+
*/
|
|
189
|
+
declare function otpPattern(type: OtpValidationType, length: number): string;
|
|
190
|
+
/**
|
|
191
|
+
* Calls `attempt` on each submission attempt of `form` (spec/field.md, "When the result is
|
|
192
|
+
* shown"): the browser's validation found a control invalid (its `invalid` event, which does not
|
|
193
|
+
* bubble, caught in the capture phase), or the form submits. Returns the cleanup.
|
|
194
|
+
*/
|
|
195
|
+
declare function onSubmitAttempt(form: HTMLFormElement, attempt: () => void): () => void;
|
|
196
|
+
/** Why a text was refused as a tag (spec/tags-input.md, "Adding tags"). */
|
|
197
|
+
type TagRefusal = "duplicate" | "max" | "invalid";
|
|
198
|
+
/** The rules a TagsInput's tags follow (spec/tags-input.md, "API"). */
|
|
199
|
+
interface TagRules {
|
|
200
|
+
/** Ends a tag while typing and splits a paste; `null` for none. */
|
|
201
|
+
delimiter: string | null;
|
|
202
|
+
/** The most tags (`Infinity` for no limit). */
|
|
203
|
+
max: number;
|
|
204
|
+
/** A text equal to a tag is accepted. */
|
|
205
|
+
allowDuplicates: boolean;
|
|
206
|
+
/** `false` refuses a trimmed text; `value` is the tags it would join. */
|
|
207
|
+
validate?: ((tag: string, value: readonly string[]) => boolean) | undefined;
|
|
208
|
+
}
|
|
209
|
+
/** A refused text: trimmed, and why. */
|
|
210
|
+
interface RefusedTag {
|
|
211
|
+
text: string;
|
|
212
|
+
cause: TagRefusal;
|
|
213
|
+
}
|
|
214
|
+
/** What offering a text as tags gives (`takeTags`). */
|
|
215
|
+
interface TakenTags {
|
|
216
|
+
/** The tags after it (the same array when nothing was added). */
|
|
217
|
+
value: readonly string[];
|
|
218
|
+
/** The tags it added, in order. */
|
|
219
|
+
added: string[];
|
|
220
|
+
refused: RefusedTag[];
|
|
221
|
+
/** What the Input holds after it: the refused texts and the text still typed. */
|
|
222
|
+
text: string;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Offers `text` as tags (spec/tags-input.md, "Adding tags"): split by the delimiter, each part
|
|
226
|
+
* trimmed (an empty part dropped), each added at the end unless it is a duplicate (unless
|
|
227
|
+
* `allowDuplicates`), past `max`, or refused by `validate`, checked against the tags so far.
|
|
228
|
+
* `whole`: every part is offered (Enter, a paste, a blur); otherwise the part after the last
|
|
229
|
+
* delimiter is still being typed: it is not offered and stays, untrimmed, after the refused texts
|
|
230
|
+
* in the Input's text, which joins them with the delimiter.
|
|
231
|
+
*/
|
|
232
|
+
declare function takeTags(value: readonly string[], text: string, rules: TagRules, whole: boolean): TakenTags;
|
|
233
|
+
/**
|
|
234
|
+
* Whether an input that changed the Input's text from `previous` to `next` typed the delimiter
|
|
235
|
+
* (spec/tags-input.md, "Adding tags"): `next` holds it and either the inserted text (an
|
|
236
|
+
* `InputEvent`'s `data`) holds it or `next` holds it more times than `previous`. Any other input
|
|
237
|
+
* (a character, a deletion) only changes the text: the refused texts left in the Input are not
|
|
238
|
+
* offered again on every keystroke.
|
|
239
|
+
*/
|
|
240
|
+
declare function typesDelimiter(previous: string, next: string, delimiter: string | null, inserted?: string | null): boolean;
|
|
241
|
+
/** What ending a tag's edit gives (`editTag`). */
|
|
242
|
+
type EditedTag = {
|
|
243
|
+
type: "unchanged";
|
|
244
|
+
} | {
|
|
245
|
+
type: "replaced";
|
|
246
|
+
value: readonly string[];
|
|
247
|
+
} | {
|
|
248
|
+
type: "removed";
|
|
249
|
+
value: readonly string[];
|
|
250
|
+
} | {
|
|
251
|
+
type: "refused";
|
|
252
|
+
text: string;
|
|
253
|
+
cause: Exclude<TagRefusal, "max">;
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* Ends the edit of the tag at `index` with `text` (spec/tags-input.md, "Editing a tag"): trimmed,
|
|
257
|
+
* an empty text removes the tag, the same text changes nothing, a duplicate of another tag (unless
|
|
258
|
+
* `allowDuplicates`) or a text `validate` refuses (with the other tags) is refused, any other text
|
|
259
|
+
* replaces it.
|
|
260
|
+
*/
|
|
261
|
+
declare function editTag(value: readonly string[], index: number, text: string, rules: TagRules): EditedTag;
|
|
262
|
+
/**
|
|
263
|
+
* The structural style of a hidden form input (spec/README.md, "Forms"): out of the layout and
|
|
264
|
+
* invisible, but still a form control the browser submits and validates (unlike `display: none`).
|
|
265
|
+
*/
|
|
266
|
+
declare const VISUALLY_HIDDEN_INPUT_STYLE: {
|
|
267
|
+
readonly position: "absolute";
|
|
268
|
+
readonly width: "1px";
|
|
269
|
+
readonly height: "1px";
|
|
270
|
+
readonly margin: "-1px";
|
|
271
|
+
readonly padding: "0";
|
|
272
|
+
readonly border: "0";
|
|
273
|
+
readonly overflow: "hidden";
|
|
274
|
+
readonly clipPath: "inset(50%)";
|
|
275
|
+
readonly whiteSpace: "nowrap";
|
|
276
|
+
readonly pointerEvents: "none";
|
|
277
|
+
};
|
|
278
|
+
export { FieldErrorMatch as A, FieldValidation as B, FormErrors as C, bridgeForm as D, FormBridgeOptions as E, shownAfterChange as F, ValidateFieldOptions as G, FieldValidity as H, validatesOnChange as I, validateField as J, ValidityKey as K, CLEARED as L, fieldErrorShown as M, fieldDescribedBy as N, FieldState as O, FieldValidationMode as P, FieldValidate as R, guardFormSubmit as S, withoutFormErrors as T, UNVALIDATED as U, FieldValidator as V, VALIDITY_KEYS as W, replaceOtp as _, TagRules as a, firstInDocumentOrder as b, takeTags as c, OtpValidationType as d, normalizeOtp as f, removeOtpCharacter as g, otpPattern as h, TagRefusal as i, fieldErrorMessages as j, fieldStateAttributes as k, typesDelimiter as l, otpInputMode as m, EditedTag as n, TakenTags as o, otpAccepts as p, createFieldValidator as q, RefusedTag as r, editTag as s, VISUALLY_HIDDEN_INPUT_STYLE as t, onSubmitAttempt as u, labelFocusTarget as v, formErrorsFor as w, focusFieldControl as x, preventLabelSelection as y, FieldValidateResult as z };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/** A Progress's status (spec/progress.md): exactly one of these. */
|
|
2
|
+
type ProgressStatus = "indeterminate" | "progressing" | "complete";
|
|
3
|
+
interface ProgressOptions {
|
|
4
|
+
/** The lowest value (default `0`). */
|
|
5
|
+
min?: number;
|
|
6
|
+
/** The highest value (default `100`). */
|
|
7
|
+
max?: number;
|
|
8
|
+
/**
|
|
9
|
+
* How the value is written. Without it, the value is written as a percentage of the range
|
|
10
|
+
* (`{ style: "percent" }` of its fraction).
|
|
11
|
+
*/
|
|
12
|
+
format?: Intl.NumberFormatOptions;
|
|
13
|
+
/** The locale of the format (BCP 47; default: the runtime's). */
|
|
14
|
+
locale?: string;
|
|
15
|
+
}
|
|
16
|
+
interface ProgressValue {
|
|
17
|
+
/** The value clamped to `[min, max]`, or `null` when indeterminate. */
|
|
18
|
+
value: number | null;
|
|
19
|
+
/** Where the value sits in the range, from 0 to 100; `null` when indeterminate. */
|
|
20
|
+
percent: number | null;
|
|
21
|
+
status: ProgressStatus;
|
|
22
|
+
/** The value as `format` writes it (a percentage by default); `""` when indeterminate. */
|
|
23
|
+
formattedValue: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A Progress's value, percent, status and formatted value (spec/progress.md, "API"): the value is
|
|
27
|
+
* clamped to `[min, max]`, `null` is indeterminate, the clamped `max` is complete.
|
|
28
|
+
*/
|
|
29
|
+
declare function progressValue(value: number | null, options?: ProgressOptions): ProgressValue;
|
|
30
|
+
/** The bounds and step of a range (spec/slider.md, "API"). */
|
|
31
|
+
interface RangeOptions {
|
|
32
|
+
min: number;
|
|
33
|
+
max: number;
|
|
34
|
+
step: number;
|
|
35
|
+
}
|
|
36
|
+
interface ThumbOptions extends RangeOptions {
|
|
37
|
+
/** The smallest distance between two thumbs, in steps. */
|
|
38
|
+
minStepsBetweenValues: number;
|
|
39
|
+
}
|
|
40
|
+
/** `value` snapped to `min + n × step` and clamped to `[min, max]`. */
|
|
41
|
+
declare function snapToStep(value: number, options: RangeOptions): number;
|
|
42
|
+
/** Where `value` sits between `min` and `max`, in percent (0 to 100). */
|
|
43
|
+
declare function valueToPercent(value: number, min: number, max: number): number;
|
|
44
|
+
/** The snapped value at `fraction` (0 to 1) along the range. */
|
|
45
|
+
declare function valueAtFraction(fraction: number, options: RangeOptions): number;
|
|
46
|
+
/**
|
|
47
|
+
* The fraction (0 to 1) of a point along a control's box: from the inline start (the left, the
|
|
48
|
+
* right in RTL) horizontally, from the bottom vertically (spec/slider.md, "Pointer").
|
|
49
|
+
*/
|
|
50
|
+
declare function fractionAlong(rect: {
|
|
51
|
+
left: number;
|
|
52
|
+
top: number;
|
|
53
|
+
width: number;
|
|
54
|
+
height: number;
|
|
55
|
+
}, point: {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
}, orientation: "horizontal" | "vertical", rtl: boolean): number;
|
|
59
|
+
/**
|
|
60
|
+
* The bounds thumb `index` can reach: its neighbours' values ∓ the minimum distance, else `min`
|
|
61
|
+
* and `max` (spec/slider.md, "State attributes and ARIA").
|
|
62
|
+
*/
|
|
63
|
+
declare function thumbBounds(values: readonly number[], index: number, options: ThumbOptions): {
|
|
64
|
+
min: number;
|
|
65
|
+
max: number;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* The thumb a press at `value` moves: the nearest one; among thumbs at the same distance (thumbs
|
|
69
|
+
* on the same value), the last when the press is past them, else the first.
|
|
70
|
+
*/
|
|
71
|
+
declare function nearestThumb(values: readonly number[], value: number): number;
|
|
72
|
+
/** `values` with thumb `index` moved to `next`, snapped and kept within its reachable bounds. */
|
|
73
|
+
declare function moveThumb(values: readonly number[], index: number, next: number, options: ThumbOptions): number[];
|
|
74
|
+
interface RatingKeyOptions {
|
|
75
|
+
/** The number of stars: the highest value. */
|
|
76
|
+
count: number;
|
|
77
|
+
/** Half steps (0.5) instead of whole ones. */
|
|
78
|
+
allowHalf: boolean;
|
|
79
|
+
rtl: boolean;
|
|
80
|
+
/** Wrap from `count` to the first step, and back (spec/rating.md, `loopFocus`). */
|
|
81
|
+
loop: boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The value a key moves a rating to (spec/rating.md, "Keyboard"): ArrowRight and ArrowDown one
|
|
85
|
+
* step up, ArrowLeft and ArrowUp one step down (Left and Right swapped in RTL), from `0` to the
|
|
86
|
+
* first step, wrapping between the first step and `count` with `loop`, never to `0`; Home the
|
|
87
|
+
* first step, End `count`. The step is 1, or 0.5 with `allowHalf`. `null` when the key does not
|
|
88
|
+
* change it: another key, an end without `loop`, or the value it already has.
|
|
89
|
+
*/
|
|
90
|
+
declare function ratingKeyTarget(key: string, value: number, options: RatingKeyOptions): number | null;
|
|
91
|
+
/**
|
|
92
|
+
* The value a pointer at `fraction` of star `index` chooses (spec/rating.md, "Pointer"): the
|
|
93
|
+
* fraction is along the star from its inline-start edge (the toolkit's `fractionAlong`, so the
|
|
94
|
+
* right edge in RTL). With `allowHalf`, its inline-start half chooses `index - 0.5`.
|
|
95
|
+
*/
|
|
96
|
+
declare function ratingValueAt(index: number, fraction: number, allowHalf: boolean): number;
|
|
97
|
+
/** A star's drawn state (spec/rating.md, "API"). */
|
|
98
|
+
interface RatingItemState {
|
|
99
|
+
/** The star holds `value`: `index` is `value` rounded up. */
|
|
100
|
+
checked: boolean;
|
|
101
|
+
/** The star is drawn filled, whole or half, for the displayed value. */
|
|
102
|
+
highlighted: boolean;
|
|
103
|
+
/** The star is drawn half filled: the displayed value is `index - 0.5`. */
|
|
104
|
+
half: boolean;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Star `index`'s state (spec/rating.md, "API"): `checked` by the value, `highlighted` and `half` by
|
|
108
|
+
* the displayed one (the pointer's preview while it runs, else the value).
|
|
109
|
+
*/
|
|
110
|
+
declare function ratingItemState(index: number, value: number, displayed?: number): RatingItemState;
|
|
111
|
+
interface SliderKeyOptions {
|
|
112
|
+
step: number;
|
|
113
|
+
largeStep: number;
|
|
114
|
+
/** The bounds the thumb can reach (`thumbBounds`). */
|
|
115
|
+
min: number;
|
|
116
|
+
max: number;
|
|
117
|
+
orientation: "horizontal" | "vertical";
|
|
118
|
+
rtl: boolean;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* The value a key moves a slider thumb to (spec/slider.md, "Keyboard"), before snapping and
|
|
122
|
+
* clamping; `null` when the key does not move it. Shift with an arrow moves by `largeStep`.
|
|
123
|
+
*/
|
|
124
|
+
declare function sliderKeyTarget(key: string, shiftKey: boolean, value: number, options: SliderKeyOptions): number | null;
|
|
125
|
+
export { ProgressOptions as _, ratingItemState as a, progressValue as b, RangeOptions as c, moveThumb as d, nearestThumb as f, valueToPercent as g, valueAtFraction as h, RatingKeyOptions as i, ThumbOptions as l, thumbBounds as m, sliderKeyTarget as n, ratingKeyTarget as o, snapToStep as p, RatingItemState as r, ratingValueAt as s, SliderKeyOptions as t, fractionAlong as u, ProgressStatus as v, ProgressValue as y };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { a as AsyncListRequest, c as createAsyncList, i as AsyncListPage, n as AsyncListLoad, o as AsyncListState, r as AsyncListOptions, s as AsyncListStatus, t as AsyncList } from "./index-DdaCj6IO.js";
|
|
2
|
+
import { a as isSameDate, c as toIsoDate, i as fromIsoDate, l as toLocalDate, n as PlainDate, o as isSameMonth, r as compareDates, s as plainDate, t as DateRange, u as today } from "./plain-date-idQH1P6X.js";
|
|
3
|
+
import { n as calendarKeyTarget, t as CalendarKeyOptions } from "./calendar-keys-DGYpjLwv.js";
|
|
4
|
+
import { a as unitRows, i as unitPageStart, n as UnitKeyOptions, r as unitKeyTarget, t as UNIT_PAGE_SIZE } from "./unit-grid-DJy8lb5D.js";
|
|
5
|
+
import { A as timeZone, B as offsetAt, C as SegmentFormatOptions, D as SegmentType, E as SegmentPart, F as cycleZoned, G as toZoned, H as toIsoOffset, I as formatTimeZoneName, K as CalendarUnit, L as fromInstant, M as ZonedDateTime, N as addZoned, O as segmentFormat, P as compareZoned, R as fromIsoZoned, S as SegmentFormat, T as SegmentKind, U as toIsoZoned, V as toInstant, W as toTimeZone, _ as setSegment, a as CalendarYearMonth, b as EditableSegmentType, c as SegmentValues, d as segmentRange, f as segmentToEdge, g as segmentsToTime, h as segmentsToDateTime, i as CalendarSystem, j as Disambiguation, k as TimeZone, l as displayHour, m as segmentsToDate, n as CalendarFieldsInput, o as SEGMENT_PAGE_STEPS, p as segmentValuesOf, q as CalendarUnits, r as CalendarId, s as SegmentRange, t as CalendarDateFields, u as isSegmentsComplete, v as shownValue, w as SegmentGranularity, x as HourCycle, y as stepSegment, z as localTimeZone } from "./calendar-system-B5U5HcPQ.js";
|
|
6
|
+
import { C as plainTime, S as isSameTime, _ as addTime, a as currentDateTime, b as cycleTime, c as plainDateTime, d as toPlainTime, f as IsoTimePrecision, g as TimeRange, h as TimeField, i as compareDateTimes, l as toIsoDateTime, m as TimeDuration, n as PlainDateTime, o as fromIsoDateTime, p as PlainTime, r as addDateTime, s as isSameDateTime, t as DateTimeDuration, u as toPlainDate, v as compareTimes, w as toIsoTime, x as fromIsoTime, y as currentTime } from "./plain-date-time-B8PGahhe.js";
|
|
7
|
+
import { a as gregory, c as islamicCivil, d as japanese, f as persian, i as ethiopic, l as islamicTbla, n as coptic, o as hebrew, p as roc, r as ethioaa, s as indian, t as buddhist, u as islamicUmalqura } from "./index-IfDZj87U.js";
|
|
8
|
+
import { a as createRotationTimer, c as nearestCarouselPage, d as carouselPages, f as clampCarouselPage, i as RotationTimer, l as slideScrollPosition, m as stepCarouselPage, n as CarouselWatchOptions, o as CarouselOrientation, p as slidesInView, r as watchCarousel, s as groupScrollPosition, t as CarouselController, u as CarouselPagesOptions } from "./index-D146vm21.js";
|
|
9
|
+
import { n as getDirection, t as Direction } from "./direction-CTnVLpmd.js";
|
|
10
|
+
import { a as CascadeKeyAction, i as hasCascadeChildren, n as cascadeLevels, o as cascadeKeyAction, r as cascadePathItems, t as CascadeItem } from "./index-fRTojAoR.js";
|
|
11
|
+
import { n as announceText, t as writeClipboard } from "./index-Cwu6f7y1.js";
|
|
12
|
+
import { $ as ChipKeyAction, A as AccordionKeyOptions, B as ItemFilter, C as rovingKeys, D as edgeIndex, E as NavigationOptions, F as radioKeyTarget, G as includesItem, H as containsFilter, I as submenuKeys, J as itemLabel, K as isItemGroup, L as tabsKeyTarget, M as TabsKeyOptions, N as accordionKeyTarget, O as stepIndex, P as menuKeyTarget, Q as toggleItem, R as FilterItemsOptions, S as rovingKeyTarget, T as textFieldKeepsKey, U as filterItems, V as ItemGroup, W as flattenItems, X as queryIsLabel, Y as itemsEqual, Z as textContains, _ as scrollIntoViewWithin, a as TagsInputInputKeyAction, b as RovingOrientation, c as tagGroupKeyTarget, d as TabsIndicatorBox, et as chipArrows, f as placeTabsIndicator, g as segmentIndicatorBox, h as placeSegmentIndicator, i as TagKeyEvent, j as RadioKeyOptions, k as stepThroughNone, l as tagsInputInputKeyTarget, m as SegmentIndicatorBox, n as TagGroupKeyAction, nt as ActivationDirection, o as TagsInputTagKeyAction, p as tabsIndicatorBox, q as itemFormValue, r as TagGroupKeyOptions, rt as activationDirection, s as removalFocusIndex, t as createTypeahead, tt as chipKeyTarget, u as tagsInputTagKeyTarget, v as RovingKeyOptions, w as rovingTabStop, x as inDocumentOrder, y as RovingKeys, z as ItemEquality } from "./index-T9UcYvkf.js";
|
|
13
|
+
import { A as colorAreaChannels, C as ColorChannel, D as HslColor, E as HsbColor, F as hasColorChannel, I as isSameColor, L as setColorChannel, M as colorChannels, N as colorSpaceFor, O as RgbColor, P as getColorChannel, S as ColorAreaChannels, T as ColorSpace, _ as ColorGradientDirection, a as formatColorChannel, b as colorWheelGradient, c as convertColor, d as isOnColorWheel, f as ColorAreaKeyOptions, g as ColorAreaBackground, h as wrapHue, i as formatColor, j as colorChannelRange, k as clampColorChannel, l as colorWheelThumbOffset, m as colorWheelKeyTarget, n as ColorFormat, o as openEyeDropper, p as colorAreaKeyTarget, r as colorChannelFormat, s as supportsEyeDropper, t as parseColor, u as hueAtPoint, v as colorAreaBackground, w as ColorChannelRange, x as Color, y as colorChannelGradient } from "./index-CWFRduRd.js";
|
|
14
|
+
import { a as commandItemScore, c as commandKeyTarget, i as bestMatch, n as CommandFilter, o as commandMatches, r as CommandMatches, s as commandScore, t as CommandEntry } from "./index-CkrHWyU_.js";
|
|
15
|
+
import { _ as isBetween, a as formatDayNumber, b as startOfMonth, c as weekdays, d as addYears, f as clampDate, g as endOfWeek, h as endOfMonth, i as firstDayOfWeek, l as addDays, m as daysInMonth, n as monthGrid, o as formatFullDate, p as dayOfWeek, r as Weekday, s as formatMonthYear, t as watchDocumentLanguage, u as addMonths, v as isWithinBounds, x as startOfWeek, y as monthsBetween } from "./index-B0rwIZw9.js";
|
|
16
|
+
import { _ as FileLike, a as FileDialogOptions, b as acceptsFile, c as fieldFiles, d as FileRejection, f as FileRejectionReason, g as FileAccept, h as assignFiles, i as watchFileDrop, l as CheckedFile, m as checkFiles, n as FileDropReason, o as openFileDialog, p as FileRules, r as dragHasFiles, s as formatFileSize, t as FileDropOptions, u as FileCheck, v as acceptAttribute, y as acceptFiles } from "./index-B4wF1isn.js";
|
|
17
|
+
import { a as FocusTrapOptions, i as isKeyboardModality, n as nextTabbableAfter, o as focusInitial, r as previousTabbableBefore, s as trapFocus, t as getTabbables } from "./index-CMig3TXL.js";
|
|
18
|
+
import { A as FieldErrorMatch, B as FieldValidation, C as FormErrors, D as bridgeForm, E as FormBridgeOptions, F as shownAfterChange, G as ValidateFieldOptions, H as FieldValidity, I as validatesOnChange, J as validateField, K as ValidityKey, L as CLEARED, M as fieldErrorShown, N as fieldDescribedBy, O as FieldState, P as FieldValidationMode, R as FieldValidate, S as guardFormSubmit, T as withoutFormErrors, U as UNVALIDATED, V as FieldValidator, W as VALIDITY_KEYS, _ as replaceOtp, a as TagRules, b as firstInDocumentOrder, c as takeTags, d as OtpValidationType, f as normalizeOtp, g as removeOtpCharacter, h as otpPattern, i as TagRefusal, j as fieldErrorMessages, k as fieldStateAttributes, l as typesDelimiter, m as otpInputMode, n as EditedTag, o as TakenTags, p as otpAccepts, q as createFieldValidator, r as RefusedTag, s as editTag, t as VISUALLY_HIDDEN_INPUT_STYLE, u as onSubmitAttempt, v as labelFocusTarget, w as formErrorsFor, x as focusFieldControl, y as preventLabelSelection, z as FieldValidateResult } from "./index-twgzPKvZ.js";
|
|
19
|
+
import { i as createDelayGroup, n as createHoverIntent, r as DelayGroup, t as HoverIntent } from "./index-CBgGcTeX.js";
|
|
20
|
+
import { t as createId } from "./index-Bd-tVb7C.js";
|
|
21
|
+
import { n as ImageSourceOptions, r as watchImageStatus, t as ImageLoadingStatus } from "./index-BHiBRE01.js";
|
|
22
|
+
import { n as blockOutsidePointer, t as inertOutside } from "./index-BNlMm-0u.js";
|
|
23
|
+
import { a as watchFocusOutside, i as interceptEscape, n as LayerOptions, r as pushLayer, t as Layer } from "./index-DeHcNdjC.js";
|
|
24
|
+
import { a as PlainYear, c as YearRange, d as monthIndex, f as toIsoYear, i as formatYearSpan, l as currentYearMonth, n as formatYear, o as PlainYearMonth, p as toIsoYearMonth, r as formatYearMonth, s as YearMonthRange, t as formatMonthName, u as fromMonthIndex } from "./index-BapNrjY9.js";
|
|
25
|
+
import { a as clampNumber, c as parseNumber, d as numberFormatOptions, f as AutoRepeatOptions, i as NumberStepOptions, l as NumberFormatOptions, n as ScrubPoint, o as stepNumber, p as watchAutoRepeat, r as watchScrub, s as isNumberText, t as ScrubOptions, u as formatNumber } from "./index-CGThV_Md.js";
|
|
26
|
+
import { a as openOverlaySession, i as OverlaySessionOptions, n as DismissReason, r as OverlaySession, t as DismissEvent } from "./index-HIksgK0e.js";
|
|
27
|
+
import { a as pageCount, i as clampPage, n as PaginationItem, o as paginationRange, r as PaginationRangeOptions, t as PageCountOptions } from "./index-raSUg9U7.js";
|
|
28
|
+
import { a as watchLongPress, c as isInSafeArea, i as LongPressOptions, l as DragSessionOptions, n as HoverBridgeCallbacks, o as isInHoverBridge, r as trackHoverBridge, s as Point, t as watchPointerExit, u as startDrag } from "./index-IZB0mlZl.js";
|
|
29
|
+
import { a as virtualAnchor, c as fromPlacement, i as VirtualAnchor, l as toPlacement, n as anchorFloating, o as Align, r as AnchorRect, s as Side, t as AnchorOptions } from "./index-SrTuVBms.js";
|
|
30
|
+
import { a as PanelSize, c as panelSizeVariables, i as BeforeMatchOptions, l as watchBeforeMatch, n as nextFrame, o as freezePanelSize, r as waitForAnimations, s as measurePanelSize, t as isAnimating } from "./index-DbAu4s16.js";
|
|
31
|
+
import { _ as ProgressOptions, a as ratingItemState, b as progressValue, c as RangeOptions, d as moveThumb, f as nearestThumb, g as valueToPercent, h as valueAtFraction, i as RatingKeyOptions, l as ThumbOptions, m as thumbBounds, n as sliderKeyTarget, o as ratingKeyTarget, p as snapToStep, r as RatingItemState, s as ratingValueAt, t as SliderKeyOptions, u as fractionAlong, v as ProgressStatus, y as ProgressValue } from "./index-wBpjRykh.js";
|
|
32
|
+
import { a as scrollFromStart, c as ScrollAreaOptions, d as ScrollAreaState, f as ScrollAreaThreshold, g as normalizeScrollAreaThreshold, h as initialScrollAreaState, i as scrollForThumbOffset, l as ScrollAreaOrientation, m as createScrollArea, n as ThumbGeometry, o as thumbGeometry, p as ScrollAreaThresholdInput, r as ThumbGeometryInput, s as ScrollAreaController, t as MIN_THUMB_SIZE, u as ScrollAreaPart } from "./index-DeR4ncrW.js";
|
|
33
|
+
import { t as lockScroll } from "./index-fuLUke9n.js";
|
|
34
|
+
import { a as segmentTarget, c as dateSegments, d as SegmentTypeResult, f as eraseSegment, i as focusOnLabelPress, l as SegmentEdit, m as typeSegment, n as segmentKeyDown, o as DateSegment, p as segmentDigit, r as SegmentMove, s as SEGMENT_PLACEHOLDER, t as SegmentKeyResult, u as SegmentEraseResult } from "./index-DGKhEvNr.js";
|
|
35
|
+
import { _ as ListNode, a as ListKeyResult, c as SelectionBehavior, d as SelectionOptions, f as SelectionState, g as ListModel, h as sameSelection, i as ListKeyOptions, l as SelectionChange, m as inModelOrder, n as pageTarget, o as listKeyTarget, p as applySelection, r as ListKeyEvent, s as listPressSelection, t as rowTarget, u as SelectionMode, v as createListModel } from "./index-D10LDdR6.js";
|
|
36
|
+
import { a as swipeDisplacement, c as swipeRelease, d as SwipeEnd, f as SwipeMovement, i as resolveSnapPoints, l as SWIPE_LOCK_DISTANCE, m as watchSwipe, n as SnapPoint, o as swipeMovement, p as SwipeOptions, r as SwipeOutcome, s as swipeProgress, t as ResolvedSnapPoint, u as SwipeDirection } from "./index-l63esAck.js";
|
|
37
|
+
import { a as ToastManagerOptions, c as ToastPriority, d as createToastManager, f as measureToastHeight, i as ToastManager, l as ToastPromiseOptions, n as ToastViewportWatchOptions, o as ToastObject, r as watchToastViewport, s as ToastOptions, t as ToastViewportWatch, u as ToastUpdate } from "./index-BpbT-FsX.js";
|
|
38
|
+
import { a as scrollContainer, c as VirtualRow, d as rowAt, f as rowStarts, i as createVirtualizer, l as activeSticky, n as Virtualizer, o as VirtualLayoutOptions, p as virtualLayout, r as VirtualizerOptions, s as VirtualRange, t as VirtualAlign, u as pageIndex } from "./index-BjE8nDiX.js";
|
|
39
|
+
export { type AccordionKeyOptions, type ActivationDirection, type Align, type AnchorOptions, type AnchorRect, type AsyncList, type AsyncListLoad, type AsyncListOptions, type AsyncListPage, type AsyncListRequest, type AsyncListState, type AsyncListStatus, type AutoRepeatOptions, type BeforeMatchOptions, CLEARED, type CalendarDateFields, type CalendarFieldsInput, type CalendarId, type CalendarKeyOptions, type CalendarSystem, type CalendarUnit, type CalendarUnits, type CalendarYearMonth, type CarouselController, type CarouselOrientation, type CarouselPagesOptions, type CarouselWatchOptions, type CascadeItem, type CascadeKeyAction, type CheckedFile, type ChipKeyAction, type Color, type ColorAreaBackground, type ColorAreaChannels, type ColorAreaKeyOptions, type ColorChannel, type ColorChannelRange, type ColorFormat, type ColorGradientDirection, type ColorSpace, type CommandEntry, type CommandFilter, type CommandMatches, type DateRange, type DateSegment, type DateTimeDuration, type DelayGroup, type Direction, type Disambiguation, type DismissEvent, type DismissReason, type DragSessionOptions, type EditableSegmentType, type EditedTag, type FieldErrorMatch, type FieldState, type FieldValidate, type FieldValidateResult, type FieldValidation, type FieldValidationMode, type FieldValidator, type FieldValidity, type FileAccept, type FileCheck, type FileDialogOptions, type FileDropOptions, type FileDropReason, type FileLike, type FileRejection, type FileRejectionReason, type FileRules, type FilterItemsOptions, type FocusTrapOptions, type FormBridgeOptions, type FormErrors, type HourCycle, type HoverBridgeCallbacks, type HoverIntent, type HsbColor, type HslColor, type ImageLoadingStatus, type ImageSourceOptions, type IsoTimePrecision, type ItemEquality, type ItemFilter, type ItemGroup, type Layer, type LayerOptions, type ListKeyEvent, type ListKeyOptions, type ListKeyResult, type ListModel, type ListNode, type LongPressOptions, MIN_THUMB_SIZE, type NavigationOptions, type NumberFormatOptions, type NumberStepOptions, type OtpValidationType, type OverlaySession, type OverlaySessionOptions, type PageCountOptions, type PaginationItem, type PaginationRangeOptions, type PanelSize, type PlainDate, type PlainDateTime, type PlainTime, type PlainYear, type PlainYearMonth, type Point, type ProgressOptions, type ProgressStatus, type ProgressValue, type RadioKeyOptions, type RangeOptions, type RatingItemState, type RatingKeyOptions, type RefusedTag, type ResolvedSnapPoint, type RgbColor, type RotationTimer, type RovingKeyOptions, type RovingKeys, type RovingOrientation, SEGMENT_PAGE_STEPS, SEGMENT_PLACEHOLDER, SWIPE_LOCK_DISTANCE, type ScrollAreaController, type ScrollAreaOptions, type ScrollAreaOrientation, type ScrollAreaPart, type ScrollAreaState, type ScrollAreaThreshold, type ScrollAreaThresholdInput, type ScrubOptions, type ScrubPoint, type SegmentEdit, type SegmentEraseResult, type SegmentFormat, type SegmentFormatOptions, type SegmentGranularity, type SegmentIndicatorBox, type SegmentKeyResult, type SegmentKind, type SegmentMove, type SegmentPart, type SegmentRange, type SegmentType, type SegmentTypeResult, type SegmentValues, type SelectionBehavior, type SelectionChange, type SelectionMode, type SelectionOptions, type SelectionState, type Side, type SliderKeyOptions, type SnapPoint, type SwipeDirection, type SwipeEnd, type SwipeMovement, type SwipeOptions, type SwipeOutcome, type TabsIndicatorBox, type TabsKeyOptions, type TagGroupKeyAction, type TagGroupKeyOptions, type TagKeyEvent, type TagRefusal, type TagRules, type TagsInputInputKeyAction, type TagsInputTagKeyAction, type TakenTags, type ThumbGeometry, type ThumbGeometryInput, type ThumbOptions, type TimeDuration, type TimeField, type TimeRange, type TimeZone, type ToastManager, type ToastManagerOptions, type ToastObject, type ToastOptions, type ToastPriority, type ToastPromiseOptions, type ToastUpdate, type ToastViewportWatch, type ToastViewportWatchOptions, UNIT_PAGE_SIZE, UNVALIDATED, type UnitKeyOptions, VALIDITY_KEYS, VISUALLY_HIDDEN_INPUT_STYLE, type ValidateFieldOptions, type ValidityKey, type VirtualAlign, type VirtualAnchor, type VirtualLayoutOptions, type VirtualRange, type VirtualRow, type Virtualizer, type VirtualizerOptions, type Weekday, type YearMonthRange, type YearRange, type ZonedDateTime, acceptAttribute, acceptFiles, acceptsFile, accordionKeyTarget, activationDirection, activeSticky, addDateTime, addDays, addMonths, addTime, addYears, addZoned, anchorFloating, announceText, applySelection, assignFiles, bestMatch, blockOutsidePointer, bridgeForm, buddhist, calendarKeyTarget, carouselPages, cascadeKeyAction, cascadeLevels, cascadePathItems, checkFiles, chipArrows, chipKeyTarget, clampCarouselPage, clampColorChannel, clampDate, clampNumber, clampPage, colorAreaBackground, colorAreaChannels, colorAreaKeyTarget, colorChannelFormat, colorChannelGradient, colorChannelRange, colorChannels, colorSpaceFor, colorWheelGradient, colorWheelKeyTarget, colorWheelThumbOffset, commandItemScore, commandKeyTarget, commandMatches, commandScore, compareDateTimes, compareDates, compareTimes, compareZoned, containsFilter, convertColor, coptic, createAsyncList, createDelayGroup, createFieldValidator, createHoverIntent, createId, createListModel, createRotationTimer, createScrollArea, createToastManager, createTypeahead, createVirtualizer, currentDateTime, currentTime, currentYearMonth, cycleTime, cycleZoned, dateSegments, dayOfWeek, daysInMonth, displayHour, dragHasFiles, edgeIndex, editTag, endOfMonth, endOfWeek, eraseSegment, ethioaa, ethiopic, fieldDescribedBy, fieldErrorMessages, fieldErrorShown, fieldFiles, fieldStateAttributes, filterItems, firstDayOfWeek, firstInDocumentOrder, flattenItems, focusFieldControl, focusInitial, focusOnLabelPress, formErrorsFor, formatColor, formatColorChannel, formatDayNumber, formatFileSize, formatFullDate, formatMonthName, formatMonthYear, formatNumber, formatTimeZoneName, formatYear, formatYearMonth, formatYearSpan, fractionAlong, freezePanelSize, fromInstant, fromIsoDate, fromIsoDateTime, fromIsoTime, fromIsoZoned, fromMonthIndex, fromPlacement, getColorChannel, getDirection, getTabbables, gregory, groupScrollPosition, guardFormSubmit, hasCascadeChildren, hasColorChannel, hebrew, hueAtPoint, inDocumentOrder, inModelOrder, includesItem, indian, inertOutside, initialScrollAreaState, interceptEscape, isAnimating, isBetween, isInHoverBridge, isInSafeArea, isItemGroup, isKeyboardModality, isNumberText, isOnColorWheel, isSameColor, isSameDate, isSameDateTime, isSameMonth, isSameTime, isSegmentsComplete, isWithinBounds, islamicCivil, islamicTbla, islamicUmalqura, itemFormValue, itemLabel, itemsEqual, japanese, labelFocusTarget, listKeyTarget, listPressSelection, localTimeZone, lockScroll, measurePanelSize, measureToastHeight, menuKeyTarget, monthGrid, monthIndex, monthsBetween, moveThumb, nearestCarouselPage, nearestThumb, nextFrame, nextTabbableAfter, normalizeOtp, normalizeScrollAreaThreshold, numberFormatOptions, offsetAt, onSubmitAttempt, openEyeDropper, openFileDialog, openOverlaySession, otpAccepts, otpInputMode, otpPattern, pageCount, pageIndex, pageTarget, paginationRange, panelSizeVariables, parseColor, parseNumber, persian, placeSegmentIndicator, placeTabsIndicator, plainDate, plainDateTime, plainTime, preventLabelSelection, previousTabbableBefore, progressValue, pushLayer, queryIsLabel, radioKeyTarget, ratingItemState, ratingKeyTarget, ratingValueAt, removalFocusIndex, removeOtpCharacter, replaceOtp, resolveSnapPoints, roc, rovingKeyTarget, rovingKeys, rovingTabStop, rowAt, rowStarts, rowTarget, sameSelection, scrollContainer, scrollForThumbOffset, scrollFromStart, scrollIntoViewWithin, segmentDigit, segmentFormat, segmentIndicatorBox, segmentKeyDown, segmentRange, segmentTarget, segmentToEdge, segmentValuesOf, segmentsToDate, segmentsToDateTime, segmentsToTime, setColorChannel, setSegment, shownAfterChange, shownValue, slideScrollPosition, sliderKeyTarget, slidesInView, snapToStep, startDrag, startOfMonth, startOfWeek, stepCarouselPage, stepIndex, stepNumber, stepSegment, stepThroughNone, submenuKeys, supportsEyeDropper, swipeDisplacement, swipeMovement, swipeProgress, swipeRelease, tabsIndicatorBox, tabsKeyTarget, tagGroupKeyTarget, tagsInputInputKeyTarget, tagsInputTagKeyTarget, takeTags, textContains, textFieldKeepsKey, thumbBounds, thumbGeometry, timeZone, toInstant, toIsoDate, toIsoDateTime, toIsoOffset, toIsoTime, toIsoYear, toIsoYearMonth, toIsoZoned, toLocalDate, toPlacement, toPlainDate, toPlainTime, toTimeZone, toZoned, today, toggleItem, trackHoverBridge, trapFocus, typeSegment, typesDelimiter, unitKeyTarget, unitPageStart, unitRows, validateField, validatesOnChange, valueAtFraction, valueToPercent, virtualAnchor, virtualLayout, waitForAnimations, watchAutoRepeat, watchBeforeMatch, watchCarousel, watchDocumentLanguage, watchFileDrop, watchFocusOutside, watchImageStatus, watchLongPress, watchPointerExit, watchScrub, watchSwipe, watchToastViewport, weekdays, withoutFormErrors, wrapHue, writeClipboard };
|