@thalassic/ui 22.25.0 → 22.27.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/types/thalassic-ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, ElementRef, ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TrackByFunction,
|
|
2
|
+
import { TemplateRef, ElementRef, ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, OutputEmitterRef, InjectionToken, TrackByFunction, Type, EnvironmentProviders, Provider, OnDestroy, Renderer2, Injector, OnInit, ComponentRef } from '@angular/core';
|
|
3
3
|
import { FormUiControl, WithOptionalFieldTree, ValidationError, FormValueControl, FormCheckboxControl, ReadonlyFieldTree } from '@angular/forms/signals';
|
|
4
4
|
import { FlexibleConnectedPositionStrategyOrigin, ConnectedPosition } from '@angular/cdk/overlay';
|
|
5
5
|
import { Day, Locale } from 'date-fns';
|
|
@@ -163,6 +163,7 @@ declare class OverlayManager {
|
|
|
163
163
|
|
|
164
164
|
declare abstract class FormControl<TValue = unknown> implements FormUiControl<TValue> {
|
|
165
165
|
private readonly _formControlConfig;
|
|
166
|
+
private readonly _formSubmissions;
|
|
166
167
|
/**
|
|
167
168
|
* The control's host element. Public because a container that arranges controls — a
|
|
168
169
|
* form control group placing an addon beside one — has to locate a control in its own
|
|
@@ -212,6 +213,11 @@ declare abstract class FormControl<TValue = unknown> implements FormUiControl<TV
|
|
|
212
213
|
readonly formItemInputId: WritableSignal<string | null>;
|
|
213
214
|
/** Whether this control has a single native labelable element that a `<label for>` can target. */
|
|
214
215
|
readonly supportsLabelFor: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Whether every state of the control is itself an answer — on or off, chosen or not — so it can
|
|
218
|
+
* never be left unanswered, and an enclosing form item marks it neither optional nor otherwise.
|
|
219
|
+
*/
|
|
220
|
+
readonly alwaysAnswered: boolean;
|
|
215
221
|
/** Combined `aria-describedby` value (consumer description + form-item hint and error), or null when empty. */
|
|
216
222
|
protected readonly describedBy: Signal<string | null>;
|
|
217
223
|
/** Combined `aria-labelledby` value (consumer label id + form-item label), or null when empty. */
|
|
@@ -226,12 +232,28 @@ declare abstract class FormControl<TValue = unknown> implements FormUiControl<TV
|
|
|
226
232
|
readonly dirty: InputSignalWithTransform<boolean, unknown>;
|
|
227
233
|
readonly errors: InputSignal<readonly WithOptionalFieldTree<ValidationError>[]>;
|
|
228
234
|
readonly required: InputSignalWithTransform<boolean, unknown>;
|
|
235
|
+
/**
|
|
236
|
+
* Emitted as the user leaves the control. The signal forms `Field` directive listens for it to
|
|
237
|
+
* mark the bound field touched; the control's own `touched` alone never reaches the field.
|
|
238
|
+
*/
|
|
239
|
+
readonly touch: OutputEmitterRef<void>;
|
|
229
240
|
/**
|
|
230
241
|
* Whether the control's invalid state should be surfaced (red styling and form-item error message).
|
|
231
242
|
* Always requires the field to be invalid and touched; the `touched-dirty` trigger additionally
|
|
232
|
-
* requires it to be dirty
|
|
243
|
+
* requires it to be dirty or its form to have been submitted since the field was last reset,
|
|
244
|
+
* keeping an untouched, empty field silent until the user has engaged or asked for it to be judged.
|
|
233
245
|
*/
|
|
234
246
|
readonly showError: Signal<boolean>;
|
|
247
|
+
/** Submissions of the form around the control; see {@link FormSubmissions}. */
|
|
248
|
+
private readonly _formSubmitCount;
|
|
249
|
+
/**
|
|
250
|
+
* The form's submission count when the field was last untouched — at creation, or at a reset
|
|
251
|
+
* that cleared it. A submission counts against the field only once it is past this mark, so a
|
|
252
|
+
* field reset after a successful save stays silent until its form is submitted again. A control
|
|
253
|
+
* created for a field that is already touched — rebuilt by a tab or a branch after its form was
|
|
254
|
+
* submitted — cannot know which touch came first, so every submission of its form counts.
|
|
255
|
+
*/
|
|
256
|
+
private readonly _submitCountAtReset;
|
|
235
257
|
protected CLASS_NAME: string;
|
|
236
258
|
protected notInteractive: Signal<boolean>;
|
|
237
259
|
protected controlClasses: Signal<string[]>;
|
|
@@ -248,6 +270,12 @@ declare abstract class FormControl<TValue = unknown> implements FormUiControl<TV
|
|
|
248
270
|
* such a control looking untouched and the user still a click away from the value.
|
|
249
271
|
*/
|
|
250
272
|
activate(): void;
|
|
273
|
+
/**
|
|
274
|
+
* Records that the user has left the control: marks it touched and tells the bound field, so
|
|
275
|
+
* the field's touched state, its blur-timed rules, and a later reset all see the same thing
|
|
276
|
+
* the control shows.
|
|
277
|
+
*/
|
|
278
|
+
protected markTouched(): void;
|
|
251
279
|
/**
|
|
252
280
|
* The element focus lands on. Defaults to the first focusable element the control
|
|
253
281
|
* renders, which is the right one for a control built around a single native element;
|
|
@@ -271,16 +299,17 @@ declare abstract class FormControl<TValue = unknown> implements FormUiControl<TV
|
|
|
271
299
|
protected restoreFocusAfterPanel(cause: overlayCloseCause): void;
|
|
272
300
|
protected baseControlClasses(): string[];
|
|
273
301
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormControl<any>, never>;
|
|
274
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControl<any>, never, never, { "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "touched": "touchedChange"; }, never, never, true, never>;
|
|
302
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControl<any>, never, never, { "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "touched": "touchedChange"; "touch": "touch"; }, never, never, true, never>;
|
|
275
303
|
}
|
|
276
304
|
|
|
277
305
|
declare const FORM_CONTROL: InjectionToken<FormControl<unknown>>;
|
|
278
306
|
|
|
279
307
|
/**
|
|
280
308
|
* When a control's invalid state becomes visible (red styling and form-item error message).
|
|
281
|
-
* `touched` surfaces it once the field has been blurred
|
|
282
|
-
* value to have changed,
|
|
283
|
-
*
|
|
309
|
+
* `touched` surfaces it once the field has been blurred. `touched-dirty` additionally requires the
|
|
310
|
+
* value to have changed, or the form around the field to have been submitted since the field was
|
|
311
|
+
* last reset — the rule of the platform's `:user-invalid` — so leaving an untouched, empty field
|
|
312
|
+
* stays silent until the user has engaged with it or asked for the form to be judged.
|
|
284
313
|
*/
|
|
285
314
|
type errorTrigger = 'touched' | 'touched-dirty';
|
|
286
315
|
interface FormControlConfig {
|
|
@@ -298,6 +327,8 @@ declare abstract class ValueFormControl<T> extends FormControl<T> implements For
|
|
|
298
327
|
|
|
299
328
|
declare abstract class CheckboxFormControl extends FormControl<boolean> implements FormCheckboxControl {
|
|
300
329
|
abstract readonly checked: ModelSignal<boolean>;
|
|
330
|
+
/** Unchecked is as much an answer as checked, so the control is never left unanswered. */
|
|
331
|
+
readonly alwaysAnswered = true;
|
|
301
332
|
protected controlClasses: i0.Signal<string[]>;
|
|
302
333
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxFormControl, never>;
|
|
303
334
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxFormControl, never, never, {}, {}, never, never, true, never>;
|
|
@@ -1048,8 +1079,9 @@ declare abstract class ButtonBase {
|
|
|
1048
1079
|
readonly size: InputSignal<controlSize>;
|
|
1049
1080
|
/**
|
|
1050
1081
|
* Rounds the button's ends fully: a pill for a labelled button, a circle for an icon-only
|
|
1051
|
-
* one. Left unset,
|
|
1052
|
-
*
|
|
1082
|
+
* one. Left unset, the button takes the configured `rounded`, and an icon-only one the
|
|
1083
|
+
* configured `iconRounded` as well; an explicit `[rounded]="false"` keeps the corners
|
|
1084
|
+
* whatever the configuration says.
|
|
1053
1085
|
*/
|
|
1054
1086
|
readonly rounded: InputSignalWithTransform<boolean | undefined, unknown>;
|
|
1055
1087
|
/** Whether the button stretches to fill its container's width. */
|
|
@@ -1077,6 +1109,11 @@ declare class Button extends ButtonBase {
|
|
|
1077
1109
|
private _routerLink;
|
|
1078
1110
|
private _router;
|
|
1079
1111
|
private _locationStrategy;
|
|
1112
|
+
/**
|
|
1113
|
+
* The popup a trigger directive on this button opens. The host is a wrapper, so the trigger's
|
|
1114
|
+
* announcement is placed on the inner control, the element that takes focus.
|
|
1115
|
+
*/
|
|
1116
|
+
protected readonly popup: PopupAnnouncement;
|
|
1080
1117
|
/**
|
|
1081
1118
|
* The interactive control is the inner `button`/`a`; the host is a wrapper.
|
|
1082
1119
|
*/
|
|
@@ -1143,9 +1180,16 @@ interface ButtonConfig {
|
|
|
1143
1180
|
size: controlSize;
|
|
1144
1181
|
type: buttonType;
|
|
1145
1182
|
fluid: boolean;
|
|
1183
|
+
/**
|
|
1184
|
+
* Rounds the ends of every button whose own `rounded` input is left unset: a pill for a
|
|
1185
|
+
* labelled button, a circle for an icon-only one. One product-wide shape decision, so a
|
|
1186
|
+
* single button departs from it with an explicit `[rounded]="false"`.
|
|
1187
|
+
*/
|
|
1188
|
+
rounded: boolean;
|
|
1146
1189
|
/**
|
|
1147
1190
|
* Draws an icon-only button as a circle wherever its own `rounded` input is left unset,
|
|
1148
|
-
* the shape platform icon buttons take. A labelled button
|
|
1191
|
+
* the shape platform icon buttons take. A labelled button follows `rounded` alone, so this
|
|
1192
|
+
* adds nothing once `rounded` is on.
|
|
1149
1193
|
*/
|
|
1150
1194
|
iconRounded: boolean;
|
|
1151
1195
|
}
|
|
@@ -1159,6 +1203,16 @@ type calendarView = 'month' | 'week' | 'day' | 'agenda';
|
|
|
1159
1203
|
* a calendar in a narrow column is dense even on a wide screen; a boolean pins it either way.
|
|
1160
1204
|
*/
|
|
1161
1205
|
type calendarCompact = boolean | 'auto';
|
|
1206
|
+
/**
|
|
1207
|
+
* Week rows a month grid shows beyond the month's own, counted for each edge of the grid on
|
|
1208
|
+
* its own.
|
|
1209
|
+
*/
|
|
1210
|
+
interface CalendarPeekWeeks {
|
|
1211
|
+
/** Rows above the week that holds the 1st. */
|
|
1212
|
+
before: number;
|
|
1213
|
+
/** Rows below the last of the month's own rows. */
|
|
1214
|
+
after: number;
|
|
1215
|
+
}
|
|
1162
1216
|
/** A single entry rendered on the calendar. `end` defaults to `start` when omitted. */
|
|
1163
1217
|
interface CalendarEvent {
|
|
1164
1218
|
id: string;
|
|
@@ -1166,7 +1220,7 @@ interface CalendarEvent {
|
|
|
1166
1220
|
start: Date;
|
|
1167
1221
|
end?: Date;
|
|
1168
1222
|
allDay?: boolean;
|
|
1169
|
-
/** Tints the default event chip with a semantic color token
|
|
1223
|
+
/** Tints the default event chip with a wash of a semantic color token, inked in the same hue. */
|
|
1170
1224
|
color?: color;
|
|
1171
1225
|
/** Consumer payload, surfaced in the template context and selection outputs. */
|
|
1172
1226
|
data?: unknown;
|
|
@@ -1282,11 +1336,14 @@ declare class Calendar {
|
|
|
1282
1336
|
*/
|
|
1283
1337
|
readonly swipeNavigation: InputSignal<boolean>;
|
|
1284
1338
|
/**
|
|
1285
|
-
* Week rows the month grid shows beyond the month's own six,
|
|
1286
|
-
*
|
|
1287
|
-
*
|
|
1339
|
+
* Week rows the month grid shows beyond the month's own six, fading out toward the grid's
|
|
1340
|
+
* edge so the month reads as a stretch of a continuous run of weeks. A number widens the
|
|
1341
|
+
* grid by that many rows above and below alike; a `{ before, after }` pair counts each edge
|
|
1342
|
+
* on its own, for a grid that wants only one of them — the month's six rows often close on
|
|
1343
|
+
* a week or two of the month that follows, where a further row adds little. They are days
|
|
1344
|
+
* like any other: selectable, and covered by the range `rangeChange` reports.
|
|
1288
1345
|
*/
|
|
1289
|
-
readonly peekWeeks: InputSignalWithTransform<
|
|
1346
|
+
readonly peekWeeks: InputSignalWithTransform<CalendarPeekWeeks, number | CalendarPeekWeeks>;
|
|
1290
1347
|
/** Accessible name forwarded to the active view's grid. */
|
|
1291
1348
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
1292
1349
|
readonly eventSelect: OutputEmitterRef<CalendarEvent>;
|
|
@@ -1441,10 +1498,10 @@ declare class CalendarMonthView {
|
|
|
1441
1498
|
/** Whether day cells are held to a 1:1 ratio instead of sizing to the events they hold. */
|
|
1442
1499
|
readonly squareCells: InputSignal<boolean>;
|
|
1443
1500
|
/**
|
|
1444
|
-
* Week rows rendered beyond the month's own window,
|
|
1445
|
-
* toward
|
|
1501
|
+
* Week rows rendered beyond the month's own window, counted for each edge of the grid,
|
|
1502
|
+
* fading out toward that edge.
|
|
1446
1503
|
*/
|
|
1447
|
-
readonly peekWeeks: InputSignal<
|
|
1504
|
+
readonly peekWeeks: InputSignal<CalendarPeekWeeks>;
|
|
1448
1505
|
readonly eventTemplate: InputSignal<TemplateRef<CalendarEventContext> | undefined>;
|
|
1449
1506
|
/** Replaces what a day cell renders, leaving the cell's own semantics and chrome in place. */
|
|
1450
1507
|
readonly dayTemplate: InputSignal<TemplateRef<CalendarDayContext> | undefined>;
|
|
@@ -1767,141 +1824,6 @@ type chipTemplateContext = {
|
|
|
1767
1824
|
$implicit: ChipContext;
|
|
1768
1825
|
};
|
|
1769
1826
|
|
|
1770
|
-
/**
|
|
1771
|
-
* Spreads ink from the point of contact when the host is touched, and stands its
|
|
1772
|
-
* press down for that one interaction so a single tap produces a single effect.
|
|
1773
|
-
*
|
|
1774
|
-
* A touch and a pen ink by default, a mouse does not. Ink answers the fingertip
|
|
1775
|
-
* covering the control it is spreading from — a cursor occludes nothing, and a
|
|
1776
|
-
* mouse press is over in a fraction of the ink's duration, leaving most of it
|
|
1777
|
-
* playing after the button has already been released. Which pointers ink is set
|
|
1778
|
-
* app-wide through `RIPPLE_CONFIG` and per host through `ripplePointerTypes`.
|
|
1779
|
-
*
|
|
1780
|
-
* A touch inks a moment after it lands rather than at once, so a flick that
|
|
1781
|
-
* merely begins on the host scrolls without flashing it; a tap lifted sooner inks
|
|
1782
|
-
* on release. The ink spreads and holds while the contact lasts, so a held press
|
|
1783
|
-
* keeps showing, and fades when it ends.
|
|
1784
|
-
*
|
|
1785
|
-
* The ink is expressive and outlives the contact that spawned it, so it is
|
|
1786
|
-
* confined to the `full` motion level; below that the press it suppresses is
|
|
1787
|
-
* restored and acknowledges the touch instead. Removing this directive therefore
|
|
1788
|
-
* takes nothing away — the press underneath is pure CSS and is what a host shows
|
|
1789
|
-
* without it.
|
|
1790
|
-
*
|
|
1791
|
-
* Requires the theme's `ripple` mixin on the element the ink is drawn on — the
|
|
1792
|
-
* host, or the `rippleSurface` it names — which draws the ink from the values
|
|
1793
|
-
* written there.
|
|
1794
|
-
*
|
|
1795
|
-
* @example
|
|
1796
|
-
* ```html
|
|
1797
|
-
* <button class="tls-button" tlsRipple>Save</button>
|
|
1798
|
-
* ```
|
|
1799
|
-
*/
|
|
1800
|
-
declare class RippleDirective {
|
|
1801
|
-
private readonly _elementRef;
|
|
1802
|
-
private readonly _document;
|
|
1803
|
-
private readonly _config;
|
|
1804
|
-
private readonly _renderer;
|
|
1805
|
-
/**
|
|
1806
|
-
* Turns the ink off.
|
|
1807
|
-
*
|
|
1808
|
-
* Deliberately not named `disabled`: an input shadows the DOM property of the
|
|
1809
|
-
* same name on the element it sits on, so a directive claiming `disabled` would
|
|
1810
|
-
* capture a host's `[disabled]` binding and leave the control enabled.
|
|
1811
|
-
*/
|
|
1812
|
-
readonly rippleDisabled: InputSignalWithTransform<boolean, unknown>;
|
|
1813
|
-
/**
|
|
1814
|
-
* Pointer types whose presses ink here, overriding the app-wide default for
|
|
1815
|
-
* this one host. Unset defers to `RIPPLE_CONFIG`.
|
|
1816
|
-
*/
|
|
1817
|
-
readonly ripplePointerTypes: InputSignal<pointerType[] | undefined>;
|
|
1818
|
-
/**
|
|
1819
|
-
* The element the ink is drawn on, when it is not the host itself: a part of the control
|
|
1820
|
-
* that carries its shape, such as a navigation item's indicator pill around its icon. The
|
|
1821
|
-
* whole host still answers the press, and still stands its own press down. Unset draws on
|
|
1822
|
-
* the host.
|
|
1823
|
-
*/
|
|
1824
|
-
readonly rippleSurface: InputSignal<HTMLElement | undefined>;
|
|
1825
|
-
private readonly _pointerTypes;
|
|
1826
|
-
/** Where the press landed, to measure a scroll against. */
|
|
1827
|
-
private _origin;
|
|
1828
|
-
/**
|
|
1829
|
-
* Teardown of the listeners that follow a press — its moves and its end — bound
|
|
1830
|
-
* only while one is live. Host listeners would schedule change detection for
|
|
1831
|
-
* every hover movement across every host, although only a press needs them.
|
|
1832
|
-
*/
|
|
1833
|
-
private _stopTrackingContact;
|
|
1834
|
-
/** The ink a touch is waiting to strike, until the wait passes or the contact ends. */
|
|
1835
|
-
private _pendingInk;
|
|
1836
|
-
constructor();
|
|
1837
|
-
protected onPointerDown(event: PointerEvent): void;
|
|
1838
|
-
/** A tap lifted before its ink was struck inks now, and every ink lets go with the contact. */
|
|
1839
|
-
private _onPointerRelease;
|
|
1840
|
-
/**
|
|
1841
|
-
* The browser took the contact over, most often for a scroll: an ink still waiting is
|
|
1842
|
-
* dropped, and one already spreading fades as on release.
|
|
1843
|
-
*/
|
|
1844
|
-
private _onPointerCancel;
|
|
1845
|
-
private _onPointerMove;
|
|
1846
|
-
/**
|
|
1847
|
-
* Follows one press until it ends. Its end is heard on the document rather than the host:
|
|
1848
|
-
* only a touch is captured by the element it lands on, so a pen — or a mouse, where one
|
|
1849
|
-
* inks — lifted after sliding off the host would otherwise never release the ink it holds.
|
|
1850
|
-
* The capture phase hears the end even where a component stops it from bubbling.
|
|
1851
|
-
*/
|
|
1852
|
-
private _trackContact;
|
|
1853
|
-
private _stopTracking;
|
|
1854
|
-
/**
|
|
1855
|
-
* Whether a press from this kind of pointer inks. `pointerType` is read off the
|
|
1856
|
-
* event rather than from a media query so a device carrying both a touchscreen
|
|
1857
|
-
* and a mouse is answered by the one in use, not by the one it reports as
|
|
1858
|
-
* primary.
|
|
1859
|
-
*/
|
|
1860
|
-
private _inksFor;
|
|
1861
|
-
/**
|
|
1862
|
-
* Whether the document is at the motion level the ink belongs to.
|
|
1863
|
-
*
|
|
1864
|
-
* Read from the attribute the stylesheet gates on rather than from
|
|
1865
|
-
* `MotionService`, for two reasons: the two can never disagree about a level
|
|
1866
|
-
* they read from one place, and a host is not made to depend on a provider it
|
|
1867
|
-
* would otherwise never need — an app that never configures motion has no
|
|
1868
|
-
* attribute, and the ink is off exactly as the stylesheet has it.
|
|
1869
|
-
*/
|
|
1870
|
-
private _isFullMotion;
|
|
1871
|
-
/** The element the ink is drawn on. */
|
|
1872
|
-
private _surface;
|
|
1873
|
-
/**
|
|
1874
|
-
* The box the ink layer occupies, which the contact point and the ink's reach are measured
|
|
1875
|
-
* against. The layer is laid out against the surface, unless the surface is not positioned:
|
|
1876
|
-
* it is then laid out against the nearest positioned ancestor instead — a stretched link
|
|
1877
|
-
* inks the whole row its hit area covers, not just its own text. Its insets are read back
|
|
1878
|
-
* rather than assumed to be zero, so a layer that bleeds past that box is measured as drawn.
|
|
1879
|
-
*/
|
|
1880
|
-
private _inkLayerBounds;
|
|
1881
|
-
/**
|
|
1882
|
-
* Distance from the contact point to the farthest corner. The ink is struck
|
|
1883
|
-
* where the finger landed, so a press near an edge has farther to travel than
|
|
1884
|
-
* one in the middle; covering the control means reaching that corner.
|
|
1885
|
-
*/
|
|
1886
|
-
private _radiusToCover;
|
|
1887
|
-
/**
|
|
1888
|
-
* Retriggers the animation. A class already present does not restart a running
|
|
1889
|
-
* animation, so a second tap arriving before the first has faded would
|
|
1890
|
-
* otherwise be swallowed; reading back a layout property between the removal
|
|
1891
|
-
* and the addition forces the two to land as separate states.
|
|
1892
|
-
*/
|
|
1893
|
-
private _restartInk;
|
|
1894
|
-
/**
|
|
1895
|
-
* Lets the ink go. Its held strength is read back first: the fade is a transition from
|
|
1896
|
-
* that strength, and an ink struck and released in one go — a quick tap — would otherwise
|
|
1897
|
-
* have no style at full strength to fade from, and vanish without being seen.
|
|
1898
|
-
*/
|
|
1899
|
-
private _release;
|
|
1900
|
-
private _clearPendingInk;
|
|
1901
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RippleDirective, never>;
|
|
1902
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RippleDirective, "[tlsRipple]", never, { "rippleDisabled": { "alias": "rippleDisabled"; "required": false; "isSignal": true; }; "ripplePointerTypes": { "alias": "ripplePointerTypes"; "required": false; "isSignal": true; }; "rippleSurface": { "alias": "rippleSurface"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1903
|
-
}
|
|
1904
|
-
|
|
1905
1827
|
declare class Chip {
|
|
1906
1828
|
private _config;
|
|
1907
1829
|
readonly label: InputSignal<string | undefined>;
|
|
@@ -1916,7 +1838,7 @@ declare class Chip {
|
|
|
1916
1838
|
protected readonly endIconTemplate: i0.Signal<TemplateRef<chipTemplateContext> | undefined>;
|
|
1917
1839
|
protected classes: i0.Signal<string[]>;
|
|
1918
1840
|
static ɵfac: i0.ɵɵFactoryDeclaration<Chip, never>;
|
|
1919
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Chip, "tls-chip", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, ["startIconTemplate", "endIconTemplate"], ["*"], true,
|
|
1841
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Chip, "tls-chip", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, ["startIconTemplate", "endIconTemplate"], ["*"], true, never>;
|
|
1920
1842
|
}
|
|
1921
1843
|
|
|
1922
1844
|
declare class ChipControl extends CheckboxFormControl {
|
|
@@ -2469,6 +2391,11 @@ declare class Drawer extends CdkDialogContainer {
|
|
|
2469
2391
|
* pinned edge and the settle after release. The scrim thins as the panel leaves.
|
|
2470
2392
|
*/
|
|
2471
2393
|
private readonly _motion;
|
|
2394
|
+
/**
|
|
2395
|
+
* How far toward the pinned edge the panel was drawn when the drag began: 0
|
|
2396
|
+
* from rest, the settle's position when caught mid-flight.
|
|
2397
|
+
*/
|
|
2398
|
+
private _dragLead;
|
|
2472
2399
|
protected readonly hostClasses: i0.Signal<string[]>;
|
|
2473
2400
|
constructor();
|
|
2474
2401
|
protected get config(): DrawerPanelConfig;
|
|
@@ -2536,28 +2463,34 @@ declare class Drawer extends CdkDialogContainer {
|
|
|
2536
2463
|
private _onPanEnd;
|
|
2537
2464
|
private _onPanCancel;
|
|
2538
2465
|
/**
|
|
2539
|
-
* Travel toward the panel's pinned edge in px
|
|
2466
|
+
* Travel toward the panel's pinned edge in px: where the drag picked the
|
|
2467
|
+
* panel up, plus the finger's travel since. Negative while the finger moves
|
|
2540
2468
|
* the other way, which the caller clamps away — the panel does not overshoot open.
|
|
2541
2469
|
*/
|
|
2542
2470
|
private _dismissTravel;
|
|
2543
2471
|
/**
|
|
2544
|
-
*
|
|
2545
|
-
*
|
|
2472
|
+
* The component toward the pinned edge of a physical vector — a travel, a
|
|
2473
|
+
* velocity, a translation. A velocity is read apart from the travel, so a
|
|
2474
|
+
* drag that reverses into a flick reads as the flick.
|
|
2546
2475
|
*/
|
|
2547
|
-
private
|
|
2476
|
+
private _towardEdge;
|
|
2548
2477
|
/**
|
|
2549
2478
|
* Horizontal quantities arrive physical; the inline sides are logical, so the
|
|
2550
2479
|
* sign flips in RTL.
|
|
2551
2480
|
*/
|
|
2552
2481
|
private _toLogical;
|
|
2553
2482
|
private _isInlineSide;
|
|
2554
|
-
/**
|
|
2483
|
+
/**
|
|
2484
|
+
* Returns the panel to rest after a drag that did not commit, launched at
|
|
2485
|
+
* the finger's `velocity` toward the pinned edge.
|
|
2486
|
+
*/
|
|
2555
2487
|
private _settleBack;
|
|
2556
2488
|
/**
|
|
2557
|
-
* Continues the drag out to the pinned edge
|
|
2558
|
-
*
|
|
2559
|
-
*
|
|
2560
|
-
*
|
|
2489
|
+
* Continues the drag out to `target` px — the pinned edge, or past it where
|
|
2490
|
+
* the finger already went — at the finger's `velocity`, and disposes on
|
|
2491
|
+
* arrival. A dismissal that began as a drag cannot route through
|
|
2492
|
+
* `animatedClose`: the slide-out keyframe starts from `transform: none`, so
|
|
2493
|
+
* the panel would snap back to fully open for a frame before leaving.
|
|
2561
2494
|
*/
|
|
2562
2495
|
private _dragClose;
|
|
2563
2496
|
private _sizeClass;
|
|
@@ -2917,6 +2850,19 @@ declare const DEFAULT_FORM_CONTROL_GROUP_CONFIG: FormControlGroupConfig;
|
|
|
2917
2850
|
|
|
2918
2851
|
declare const FORM_CONTROL_GROUP_CONFIG: InjectionToken<FormControlGroupConfig>;
|
|
2919
2852
|
|
|
2853
|
+
/**
|
|
2854
|
+
* Marks content a form item draws at the far end of its label's row — an action that concerns
|
|
2855
|
+
* the field, such as a "Forgot password?" link beside a password's label. It sits beside the
|
|
2856
|
+
* `<label>` element rather than inside it, so it takes no part in the control's accessible name,
|
|
2857
|
+
* and a press on it never reaches the control. It follows the control in the document, so focus
|
|
2858
|
+
* reaches the field before the action beside its label. Meant for a label placed above its
|
|
2859
|
+
* control.
|
|
2860
|
+
*/
|
|
2861
|
+
declare class FormItemLabelAction {
|
|
2862
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormItemLabelAction, never>;
|
|
2863
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormItemLabelAction, "[tlsFormItemLabelAction]", never, {}, {}, never, never, true, never>;
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2920
2866
|
type ErrorMessageFn = (fieldTree?: ReadonlyFieldTree<unknown>) => string;
|
|
2921
2867
|
type ErrorMessageMap = Record<string, ErrorMessageFn>;
|
|
2922
2868
|
|
|
@@ -2926,8 +2872,12 @@ interface FormItemConfig {
|
|
|
2926
2872
|
displayErrors: boolean;
|
|
2927
2873
|
/** Whether required fields are marked with a `*`. */
|
|
2928
2874
|
showRequiredMarker: boolean;
|
|
2929
|
-
/**
|
|
2930
|
-
|
|
2875
|
+
/**
|
|
2876
|
+
* Text beside the label of a question that may be skipped (e.g. `(optional)`): a control bound to
|
|
2877
|
+
* a form field that is not required and is not a toggle. Not shown when omitted or `undefined`,
|
|
2878
|
+
* which a scoped override sets to drop the marker from part of the app.
|
|
2879
|
+
*/
|
|
2880
|
+
optionalText?: string | undefined;
|
|
2931
2881
|
errorMessages: ErrorMessageMap;
|
|
2932
2882
|
/** Fallback for an error kind absent from `errorMessages` that carries no `message` of its own. */
|
|
2933
2883
|
unknownErrorMessage: ErrorMessageFn;
|
|
@@ -2948,14 +2898,24 @@ interface FormItemLabelContext {
|
|
|
2948
2898
|
}
|
|
2949
2899
|
|
|
2950
2900
|
declare class FormItem {
|
|
2901
|
+
/** Whether a `tlsFormSkeleton` above the item says its form is still being read. */
|
|
2902
|
+
private readonly _isFormSkeleton;
|
|
2951
2903
|
private static _counter;
|
|
2952
2904
|
private _config;
|
|
2953
2905
|
protected control: Signal<FormControl | undefined>;
|
|
2906
|
+
/**
|
|
2907
|
+
* The signal-forms bindings among the projected content. A group can seat bound and unbound
|
|
2908
|
+
* controls side by side, so these are matched to the control by element rather than taken as
|
|
2909
|
+
* the control's own.
|
|
2910
|
+
*/
|
|
2911
|
+
private readonly _formFields;
|
|
2954
2912
|
/**
|
|
2955
2913
|
* Content of the label, rendered inside the item's own `<label>` element so the `for` /
|
|
2956
2914
|
* `aria-labelledby` wiring is kept. Replaces the label text and the required / optional markers.
|
|
2957
2915
|
*/
|
|
2958
2916
|
protected readonly labelTemplate: Signal<TemplateRef<FormItemLabelContext> | undefined>;
|
|
2917
|
+
/** Content drawn at the far end of the label's row; see {@link FormItemLabelAction}. */
|
|
2918
|
+
protected readonly labelAction: Signal<FormItemLabelAction | undefined>;
|
|
2959
2919
|
/** Stable id for the label element, linked to the control via `aria-labelledby`. */
|
|
2960
2920
|
protected readonly labelId: string;
|
|
2961
2921
|
/** Stable id assigned to the native control element, linked from the label via `for`. */
|
|
@@ -2975,10 +2935,25 @@ declare class FormItem {
|
|
|
2975
2935
|
* item to full width. Only applies to inline (`start` / `end`) label positions.
|
|
2976
2936
|
*/
|
|
2977
2937
|
spread: i0.InputSignalWithTransform<boolean, unknown>;
|
|
2938
|
+
/**
|
|
2939
|
+
* Draws the control as a skeleton, for a value that is still being read. The control's slot
|
|
2940
|
+
* becomes a placeholder exactly the size of the control, which stays in place unseen, so the
|
|
2941
|
+
* item stands as it will once the value arrives; the label and the hint are shown as they are.
|
|
2942
|
+
* An item beneath a `tlsFormSkeleton` is drawn so whenever that says to, with nothing set here.
|
|
2943
|
+
*/
|
|
2944
|
+
skeleton: i0.InputSignalWithTransform<boolean, unknown>;
|
|
2945
|
+
/**
|
|
2946
|
+
* Keeps the footer's line open beneath a control that can display a validation error, so an
|
|
2947
|
+
* error appearing — often as focus leaves the field for a press on something below it — moves
|
|
2948
|
+
* nothing beneath the item, and the press lands where it began. An item whose control can
|
|
2949
|
+
* never display one (a setting bound to a plain value, a toggle that is not required) reserves
|
|
2950
|
+
* nothing, since it holds no line any error would need.
|
|
2951
|
+
*/
|
|
2978
2952
|
reserveErrorSpace: i0.InputSignal<boolean>;
|
|
2979
2953
|
reserveLabelSpace: i0.InputSignal<boolean>;
|
|
2980
2954
|
displayErrors: i0.InputSignal<boolean>;
|
|
2981
2955
|
showRequiredMarker: i0.InputSignal<boolean>;
|
|
2956
|
+
/** Text beside the label of a question that may be skipped; see `FormItemConfig.optionalText`. */
|
|
2982
2957
|
optionalText: i0.InputSignal<string | undefined>;
|
|
2983
2958
|
/**
|
|
2984
2959
|
* Character budget of the control's value. When set, a `current/max` counter is rendered on the
|
|
@@ -2996,9 +2971,17 @@ declare class FormItem {
|
|
|
2996
2971
|
/** Whether the footer renders the hint, which yields to a displayed error. */
|
|
2997
2972
|
protected showHint: Signal<boolean>;
|
|
2998
2973
|
protected showRequired: Signal<boolean>;
|
|
2974
|
+
/**
|
|
2975
|
+
* Whether the label carries the optional marker: only for a control that edits a form's field,
|
|
2976
|
+
* can be left unanswered, and is not required — a setting or a toggle has nothing to skip.
|
|
2977
|
+
*/
|
|
2999
2978
|
protected showOptional: Signal<boolean>;
|
|
2979
|
+
/** Whether the footer holds its line open for an error that has not appeared. */
|
|
2980
|
+
protected reservesErrorLine: Signal<boolean>;
|
|
3000
2981
|
/** Whether a label is rendered, from either the `label` input or a custom label template. */
|
|
3001
2982
|
protected hasLabel: Signal<boolean>;
|
|
2983
|
+
/** Whether a label above the control shares its row with an action. */
|
|
2984
|
+
protected hasLabelActionRow: Signal<boolean>;
|
|
3002
2985
|
protected labelContext: Signal<FormItemLabelContext>;
|
|
3003
2986
|
protected labelFor: Signal<string | null>;
|
|
3004
2987
|
protected hostClasses: Signal<string[]>;
|
|
@@ -3012,13 +2995,55 @@ declare class FormItem {
|
|
|
3012
2995
|
protected errorMessages: Signal<string[]>;
|
|
3013
2996
|
protected firstErrorMessage: Signal<string | null>;
|
|
3014
2997
|
constructor();
|
|
2998
|
+
/**
|
|
2999
|
+
* Whether the control edits a form's field. One bound to a plain value is a setting rather than
|
|
3000
|
+
* a question to answer: it is never left unanswered and carries no validation of its own.
|
|
3001
|
+
*/
|
|
3002
|
+
private _isFormField;
|
|
3015
3003
|
private _getErrorMessages;
|
|
3016
3004
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormItem, never>;
|
|
3017
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormItem, "tls-form-item", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "spread": { "alias": "spread"; "required": false; "isSignal": true; }; "reserveErrorSpace": { "alias": "reserveErrorSpace"; "required": false; "isSignal": true; }; "reserveLabelSpace": { "alias": "reserveLabelSpace"; "required": false; "isSignal": true; }; "displayErrors": { "alias": "displayErrors"; "required": false; "isSignal": true; }; "showRequiredMarker": { "alias": "showRequiredMarker"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; }, {}, ["control", "labelTemplate"], ["*"], true, never>;
|
|
3005
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormItem, "tls-form-item", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "spread": { "alias": "spread"; "required": false; "isSignal": true; }; "skeleton": { "alias": "skeleton"; "required": false; "isSignal": true; }; "reserveErrorSpace": { "alias": "reserveErrorSpace"; "required": false; "isSignal": true; }; "reserveLabelSpace": { "alias": "reserveLabelSpace"; "required": false; "isSignal": true; }; "displayErrors": { "alias": "displayErrors"; "required": false; "isSignal": true; }; "showRequiredMarker": { "alias": "showRequiredMarker"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; }, {}, ["control", "_formFields", "labelTemplate", "labelAction"], ["*", "[tlsFormItemLabelAction]"], true, never>;
|
|
3018
3006
|
}
|
|
3019
3007
|
|
|
3008
|
+
/**
|
|
3009
|
+
* Overrides the form item config for one part of the view tree: listed in a component's or a
|
|
3010
|
+
* directive's `providers`, it applies to every `tls-form-item` beneath it, on top of whatever
|
|
3011
|
+
* the surrounding scope configures — the app-wide `provideThalassicUIConfig`, or an enclosing
|
|
3012
|
+
* override. Keys set to `undefined` are cleared, so `{ optionalText: undefined }` drops the
|
|
3013
|
+
* optional marker from a form whose every field may be skipped.
|
|
3014
|
+
*
|
|
3015
|
+
* @example
|
|
3016
|
+
* // App-wide: formItem: { optionalText: '(optional)', reserveErrorSpace: false }
|
|
3017
|
+
* @Component({ providers: [provideFormItemConfig({ optionalText: undefined })] })
|
|
3018
|
+
* // Inside: no optional marker, and still no reserved error space.
|
|
3019
|
+
*/
|
|
3020
|
+
declare const provideFormItemConfig: (config: Partial<FormItemConfig>) => Provider;
|
|
3021
|
+
|
|
3020
3022
|
declare const FORM_ITEM_CONFIG: InjectionToken<FormItemConfig>;
|
|
3021
3023
|
|
|
3024
|
+
/**
|
|
3025
|
+
* Draws every form item beneath it as a skeleton, and makes everything beneath
|
|
3026
|
+
* it inert, for a form whose values are still being read. One binding on the
|
|
3027
|
+
* form, or on any element around its fields, reaches the items however deep
|
|
3028
|
+
* they sit, those inside other components included, so a form is rendered once
|
|
3029
|
+
* from its blank model rather than written out a second time as a placeholder.
|
|
3030
|
+
*/
|
|
3031
|
+
declare class FormSkeleton {
|
|
3032
|
+
/** Whether the values are still being read. */
|
|
3033
|
+
readonly active: i0.InputSignalWithTransform<boolean, unknown>;
|
|
3034
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSkeleton, never>;
|
|
3035
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormSkeleton, "[tlsFormSkeleton]", never, { "active": { "alias": "tlsFormSkeleton"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
/**
|
|
3039
|
+
* Whether the form around the caller is drawn as a skeleton: what the nearest
|
|
3040
|
+
* `tlsFormSkeleton` above it says, and never where there is none. For a part
|
|
3041
|
+
* of a form that is not a form item, a list or an upload, say, to stand in
|
|
3042
|
+
* for itself at the same moment the items around it do. Called in an injection
|
|
3043
|
+
* context.
|
|
3044
|
+
*/
|
|
3045
|
+
declare function injectFormSkeleton(): Signal<boolean>;
|
|
3046
|
+
|
|
3022
3047
|
/**
|
|
3023
3048
|
* How the typed query narrows the option list.
|
|
3024
3049
|
*
|
|
@@ -3426,6 +3451,8 @@ declare class ColorRange extends ValueFormControl<number> {
|
|
|
3426
3451
|
private readonly _config;
|
|
3427
3452
|
protected readonly CLASS_NAME = "tls-color-range";
|
|
3428
3453
|
readonly supportsLabelFor = true;
|
|
3454
|
+
/** A colour range always rests on some value along its scale, so the control is never left unanswered. */
|
|
3455
|
+
readonly alwaysAnswered = true;
|
|
3429
3456
|
readonly value: ModelSignal<number>;
|
|
3430
3457
|
readonly channel: InputSignal<colorRangeChannel>;
|
|
3431
3458
|
/** Reference color the alpha track fades up to; ignored by the hue channel. */
|
|
@@ -3751,6 +3778,13 @@ interface FileInputFileContext {
|
|
|
3751
3778
|
index: number;
|
|
3752
3779
|
remove: (index: number) => void;
|
|
3753
3780
|
}
|
|
3781
|
+
/** What a projected trigger is handed in place of the built-in button. */
|
|
3782
|
+
interface FileInputTriggerContext {
|
|
3783
|
+
/** Opens the file picker; does nothing while the control is not interactive. */
|
|
3784
|
+
$implicit: () => void;
|
|
3785
|
+
/** Whether the control is disabled or read-only, for the trigger to show it. */
|
|
3786
|
+
disabled: boolean;
|
|
3787
|
+
}
|
|
3754
3788
|
|
|
3755
3789
|
declare class FileInput extends ValueFormControl<File[]> {
|
|
3756
3790
|
private readonly _config;
|
|
@@ -3765,11 +3799,18 @@ declare class FileInput extends ValueFormControl<File[]> {
|
|
|
3765
3799
|
protected readonly nativeInput: Signal<ElementRef<HTMLInputElement>>;
|
|
3766
3800
|
protected readonly dropZoneTemplate: Signal<TemplateRef<FileInputDropZoneContext> | undefined>;
|
|
3767
3801
|
protected readonly fileTemplate: Signal<TemplateRef<FileInputFileContext> | undefined>;
|
|
3802
|
+
/**
|
|
3803
|
+
* A consumer's own control for opening the picker, drawn in place of the built-in button and
|
|
3804
|
+
* its accept hint in the `button` variant. It names and describes itself: the control's
|
|
3805
|
+
* `ariaLabel` and described-by wiring belong to the built-in button only.
|
|
3806
|
+
*/
|
|
3807
|
+
protected readonly triggerTemplate: Signal<TemplateRef<FileInputTriggerContext> | undefined>;
|
|
3768
3808
|
protected readonly classes: Signal<string[]>;
|
|
3769
3809
|
protected readonly triggerLabel: Signal<string>;
|
|
3770
3810
|
/** Accessible name for the drop zone: the consumer's, or the configured fallback. */
|
|
3771
3811
|
protected readonly dropZoneLabel: Signal<string>;
|
|
3772
3812
|
protected readonly acceptHint: Signal<string>;
|
|
3813
|
+
protected readonly triggerContext: Signal<FileInputTriggerContext>;
|
|
3773
3814
|
protected openFilePicker(): void;
|
|
3774
3815
|
protected onFilesSelected(event: Event): void;
|
|
3775
3816
|
protected onDropZoneKeydown(event: KeyboardEvent): void;
|
|
@@ -3783,7 +3824,7 @@ declare class FileInput extends ValueFormControl<File[]> {
|
|
|
3783
3824
|
protected addFiles(incoming: File[]): void;
|
|
3784
3825
|
private _formatAcceptRule;
|
|
3785
3826
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileInput, never>;
|
|
3786
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileInput, "tls-file-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "hideFileList": { "alias": "hideFileList"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["dropZoneTemplate", "fileTemplate"], never, true, never>;
|
|
3827
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileInput, "tls-file-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "hideFileList": { "alias": "hideFileList"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["dropZoneTemplate", "fileTemplate", "triggerTemplate"], never, true, never>;
|
|
3787
3828
|
}
|
|
3788
3829
|
|
|
3789
3830
|
interface FileInputConfig {
|
|
@@ -4094,6 +4135,8 @@ declare const PASSWORD_CONFIG: InjectionToken<PasswordConfig>;
|
|
|
4094
4135
|
* shell serves the choosers a select cannot express.
|
|
4095
4136
|
*/
|
|
4096
4137
|
declare class PickerField {
|
|
4138
|
+
/** The popup a trigger directive on the field opens, announced on its inner trigger. */
|
|
4139
|
+
protected readonly popup: PopupAnnouncement;
|
|
4097
4140
|
/** Whether the consumer's panel is open; turns the chevron and keeps the frame active. */
|
|
4098
4141
|
readonly open: i0.InputSignalWithTransform<boolean, unknown>;
|
|
4099
4142
|
readonly size: InputSignal<controlSize>;
|
|
@@ -4158,6 +4201,11 @@ declare class RadioButton extends ValueFormControl<unknown> {
|
|
|
4158
4201
|
private _config;
|
|
4159
4202
|
protected CLASS_NAME: string;
|
|
4160
4203
|
readonly supportsLabelFor = true;
|
|
4204
|
+
/**
|
|
4205
|
+
* A radio button is one option of a question rather than the question, so its own label never
|
|
4206
|
+
* says whether the question may be skipped; that belongs to the label of the group.
|
|
4207
|
+
*/
|
|
4208
|
+
readonly alwaysAnswered = true;
|
|
4161
4209
|
readonly radioValue: InputSignal<unknown>;
|
|
4162
4210
|
readonly value: ModelSignal<unknown>;
|
|
4163
4211
|
readonly tabindex: InputSignal<string | number>;
|
|
@@ -4396,6 +4444,8 @@ declare class Slider extends ValueFormControl<number> {
|
|
|
4396
4444
|
private readonly _config;
|
|
4397
4445
|
protected CLASS_NAME: string;
|
|
4398
4446
|
readonly supportsLabelFor = true;
|
|
4447
|
+
/** A slider always rests on some value within its range, so the control is never left unanswered. */
|
|
4448
|
+
readonly alwaysAnswered = true;
|
|
4399
4449
|
readonly value: ModelSignal<number>;
|
|
4400
4450
|
readonly min: InputSignalWithTransform<number, unknown>;
|
|
4401
4451
|
readonly max: InputSignalWithTransform<number, unknown>;
|
|
@@ -4566,7 +4616,7 @@ declare class ToggleButton extends CheckboxFormControl {
|
|
|
4566
4616
|
protected toggle(): void;
|
|
4567
4617
|
protected onKeyboardToggle(event: Event): void;
|
|
4568
4618
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleButton, never>;
|
|
4569
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleButton, "tls-toggle-button", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "checkedLabel": { "alias": "checkedLabel"; "required": false; "isSignal": true; }; "staticWidth": { "alias": "staticWidth"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "checkedColor": { "alias": "checkedColor"; "required": false; "isSignal": true; }; "checkedVariant": { "alias": "checkedVariant"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true,
|
|
4619
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleButton, "tls-toggle-button", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "checkedLabel": { "alias": "checkedLabel"; "required": false; "isSignal": true; }; "staticWidth": { "alias": "staticWidth"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "checkedColor": { "alias": "checkedColor"; "required": false; "isSignal": true; }; "checkedVariant": { "alias": "checkedVariant"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
|
|
4570
4620
|
}
|
|
4571
4621
|
|
|
4572
4622
|
interface ToggleButtonConfig {
|
|
@@ -4583,7 +4633,13 @@ declare const DEFAULT_TOGGLE_BUTTON_CONFIG: ToggleButtonConfig;
|
|
|
4583
4633
|
|
|
4584
4634
|
declare const TOGGLE_BUTTON_CONFIG: InjectionToken<ToggleButtonConfig>;
|
|
4585
4635
|
|
|
4586
|
-
|
|
4636
|
+
/**
|
|
4637
|
+
* How a toggle group draws its options. `filled` and `tonal` join them into one
|
|
4638
|
+
* strip and fill the chosen ones with the group's color, solid or as a wash.
|
|
4639
|
+
* `segmented` sets them apart on a track and lifts the chosen one off it as a
|
|
4640
|
+
* pill, the look of a segmented tab strip; it reads none of the group's color.
|
|
4641
|
+
*/
|
|
4642
|
+
type toggleGroupVariant = 'filled' | 'tonal' | 'segmented';
|
|
4587
4643
|
|
|
4588
4644
|
declare class ToggleGroup<T, V = unknown> extends SelectionGroup<T, V> {
|
|
4589
4645
|
private readonly _config;
|
|
@@ -4592,12 +4648,25 @@ declare class ToggleGroup<T, V = unknown> extends SelectionGroup<T, V> {
|
|
|
4592
4648
|
readonly unselectable: InputSignalWithTransform<boolean, unknown>;
|
|
4593
4649
|
readonly size: InputSignal<controlSize>;
|
|
4594
4650
|
readonly color: InputSignal<color>;
|
|
4651
|
+
/**
|
|
4652
|
+
* How the options are drawn: joined into one strip and filled with `color`
|
|
4653
|
+
* where chosen (`filled`, `tonal`), or set apart on a track with the chosen
|
|
4654
|
+
* one lifted off it as a pill (`segmented`), which ignores `color`.
|
|
4655
|
+
*/
|
|
4595
4656
|
readonly variant: InputSignal<toggleGroupVariant>;
|
|
4596
4657
|
readonly orientation: InputSignal<orientation>;
|
|
4597
4658
|
/** Whether the group stretches to fill its container's width with equal-width options. */
|
|
4598
4659
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
4599
4660
|
protected readonly optionTemplate: Signal<TemplateRef<selectionGroupTemplateContext<T, V>> | undefined>;
|
|
4661
|
+
private readonly _optionButtons;
|
|
4662
|
+
/**
|
|
4663
|
+
* The option a single travelling pill marks: the one chosen, in a segmented
|
|
4664
|
+
* group that takes one choice. Nothing in a joined treatment, in a group of
|
|
4665
|
+
* several choices — each keeps a pill of its own — or with nothing chosen.
|
|
4666
|
+
*/
|
|
4667
|
+
private readonly _markedOption;
|
|
4600
4668
|
protected readonly classes: Signal<string[]>;
|
|
4669
|
+
constructor();
|
|
4601
4670
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleGroup<any, any>, never>;
|
|
4602
4671
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleGroup<any, any>, "tls-toggle-group", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "unselectable": { "alias": "unselectable"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, ["optionTemplate"], never, true, never>;
|
|
4603
4672
|
}
|
|
@@ -5393,18 +5462,38 @@ declare class SheetMotion {
|
|
|
5393
5462
|
* called: a settle that ends in a dispose keeps its class on until the
|
|
5394
5463
|
* overlay is gone, so the keyframe the class stands down cannot replay.
|
|
5395
5464
|
*
|
|
5465
|
+
* `velocity` is the surface's speed at the start, in px/ms along the offset
|
|
5466
|
+
* (positive as the offset grows) — a released finger's. The settle's timing
|
|
5467
|
+
* goes onto the surface and its scrim as `--tls-settle-duration` and
|
|
5468
|
+
* `--tls-settle-easing` (see `settleCurve`), for a settle transition to
|
|
5469
|
+
* read, so the stylesheet keeps the motion's gating while the curve carries
|
|
5470
|
+
* the hand's momentum on.
|
|
5471
|
+
*
|
|
5396
5472
|
* A `begin` or `rest` that arrives before the settle finishes supersedes it:
|
|
5397
5473
|
* a superseded settle neither moves the surface nor reports `done`.
|
|
5398
5474
|
*/
|
|
5399
|
-
settle(target: number, done: () => void): void;
|
|
5475
|
+
settle(target: number, done: () => void, velocity?: number): void;
|
|
5400
5476
|
/**
|
|
5401
5477
|
* A settle from rest with no drag: takes hold of `surface` and settles it to
|
|
5402
5478
|
* `target` in one step, for a change asked by a click, a key or code rather
|
|
5403
5479
|
* than a finger. Supersedes a running settle the way a `begin` does.
|
|
5404
5480
|
*/
|
|
5405
5481
|
moveTo(surface: SheetMotionSurface, target: number, done: () => void): void;
|
|
5406
|
-
/**
|
|
5482
|
+
/**
|
|
5483
|
+
* Lets go of the surface; the transform is the stylesheet's again. The
|
|
5484
|
+
* settle's timing comes off with it, so a transition that outlives the
|
|
5485
|
+
* gesture — a scrim's fade on close — keeps the stylesheet's own pace rather
|
|
5486
|
+
* than the curve of the last settle.
|
|
5487
|
+
*/
|
|
5407
5488
|
rest(): void;
|
|
5489
|
+
/**
|
|
5490
|
+
* Writes the timing of a settle to `target` onto the surface and its scrim.
|
|
5491
|
+
* The travel starts from the offset last written inline, which is where a
|
|
5492
|
+
* released drag left the surface; a settle that supersedes another starts
|
|
5493
|
+
* from the other's target, and the browser's own retargeting of the running
|
|
5494
|
+
* transition covers the difference.
|
|
5495
|
+
*/
|
|
5496
|
+
private _writeCurve;
|
|
5408
5497
|
/**
|
|
5409
5498
|
* Only the backdrop's progress is clamped to the extent; the offset itself
|
|
5410
5499
|
* is written unclamped.
|
|
@@ -5500,8 +5589,13 @@ declare class Menu {
|
|
|
5500
5589
|
*/
|
|
5501
5590
|
private readonly _viewportService;
|
|
5502
5591
|
private readonly _injector;
|
|
5592
|
+
private readonly _document;
|
|
5503
5593
|
private readonly _renderer;
|
|
5504
5594
|
private readonly _panelRef;
|
|
5595
|
+
/** The rendered items, in the order the panel draws them. */
|
|
5596
|
+
private readonly _items;
|
|
5597
|
+
/** Where focus was when the menu opened — its trigger — and where it goes back on close. */
|
|
5598
|
+
private _returnFocusTo;
|
|
5505
5599
|
protected readonly _customItems: i0.Signal<readonly MenuItemComponent[]>;
|
|
5506
5600
|
protected readonly customTemplates: i0.Signal<Map<string, TemplateRef<unknown>>>;
|
|
5507
5601
|
/** Content of every action item, rendered inside the menu-managed interactive wrapper. */
|
|
@@ -5551,12 +5645,28 @@ declare class Menu {
|
|
|
5551
5645
|
*/
|
|
5552
5646
|
protected readonly sheetMotion: SheetMotion;
|
|
5553
5647
|
private _sheetClosing;
|
|
5648
|
+
/**
|
|
5649
|
+
* How far below its rest the pane was drawn when the drag began: 0 from
|
|
5650
|
+
* rest, the settle's position when caught mid-flight.
|
|
5651
|
+
*/
|
|
5652
|
+
private _sheetDragLead;
|
|
5554
5653
|
constructor();
|
|
5555
5654
|
open(trigger: MouseEvent | HTMLElement): void;
|
|
5556
5655
|
openAtPoint(x: number, y: number): void;
|
|
5557
5656
|
close(): void;
|
|
5558
5657
|
toggle(trigger: MouseEvent | HTMLElement): void;
|
|
5658
|
+
/**
|
|
5659
|
+
* Runs the chosen item's action. A menu that closes on the choice closes first, handing focus
|
|
5660
|
+
* back to its trigger, so whatever the action opens — a dialog — finds focus on the trigger and
|
|
5661
|
+
* returns it there, rather than to an item that leaves with the menu.
|
|
5662
|
+
*/
|
|
5559
5663
|
protected onItemClick(item: MenuActionItem): void;
|
|
5664
|
+
/**
|
|
5665
|
+
* Closes the menu as Tab leaves it. Focus goes back to the trigger while the key is still being
|
|
5666
|
+
* handled, so the browser's own move carries on from the trigger to the control beside it,
|
|
5667
|
+
* instead of walking off the end of the document from the panel.
|
|
5668
|
+
*/
|
|
5669
|
+
protected onTabOut(): void;
|
|
5560
5670
|
/** Whether the item carries a checked state (`menuitemradio` / `menuitemcheckbox`). */
|
|
5561
5671
|
protected isCheckable(item: MenuActionItem): boolean;
|
|
5562
5672
|
/** Id of the item's label element, referenced by `aria-labelledby`. */
|
|
@@ -5565,7 +5675,7 @@ declare class Menu {
|
|
|
5565
5675
|
protected itemDescriptionId(index: number): string;
|
|
5566
5676
|
/** Content template for the item: its keyed slot first, the shared `#itemTemplate` otherwise. */
|
|
5567
5677
|
protected itemContentTemplate(item: MenuActionItem): TemplateRef<unknown> | undefined;
|
|
5568
|
-
protected onSheetPanStart(pane: HTMLElement): void;
|
|
5678
|
+
protected onSheetPanStart(pane: HTMLElement, event: PanEvent): void;
|
|
5569
5679
|
/**
|
|
5570
5680
|
* Fired outside the Angular zone (see `PanDirective.panMove`), so it writes
|
|
5571
5681
|
* to the DOM directly and never touches a signal. The sheet does not
|
|
@@ -5581,13 +5691,33 @@ declare class Menu {
|
|
|
5581
5691
|
* from the template on every open, so only the component-held state carries
|
|
5582
5692
|
* over.
|
|
5583
5693
|
*/
|
|
5694
|
+
/**
|
|
5695
|
+
* Moves focus into the menu once its panel is drawn, as the menu-button pattern has it: to the
|
|
5696
|
+
* checked item of a choice, so the current answer is where the person starts, otherwise to the
|
|
5697
|
+
* first item that can be chosen. Focus inside, the arrow keys, Home and End, and type-ahead
|
|
5698
|
+
* reach the items; focus left on the trigger would leave a keyboard with no way in.
|
|
5699
|
+
*/
|
|
5700
|
+
private _focusEntryItemOnceShown;
|
|
5701
|
+
/**
|
|
5702
|
+
* Hands focus back to where it was when the menu opened, as closing a menu does: after Escape,
|
|
5703
|
+
* a choice, or the owner closing it. Not after a press outside, where focus already belongs to
|
|
5704
|
+
* whatever was pressed; nor once focus has left the menu for somewhere else — a dialog an item
|
|
5705
|
+
* opened — which keeps it.
|
|
5706
|
+
*/
|
|
5707
|
+
private _returnFocus;
|
|
5584
5708
|
private _prepareOpen;
|
|
5585
5709
|
/**
|
|
5586
|
-
*
|
|
5587
|
-
*
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5710
|
+
* Travel toward the bottom edge in px: where the drag picked the pane up,
|
|
5711
|
+
* plus the finger's travel since.
|
|
5712
|
+
*/
|
|
5713
|
+
private _sheetTravel;
|
|
5714
|
+
/**
|
|
5715
|
+
* Continues the drag out to `target` px — past the bottom edge, or further
|
|
5716
|
+
* where the finger already went — at the finger's `velocity`, and closes on
|
|
5717
|
+
* arrival. A dismissal that began as a drag must not route through the
|
|
5718
|
+
* leave keyframe: that starts from the fully open position, so the pane
|
|
5719
|
+
* would snap back for a frame before leaving — the stylesheet stands the
|
|
5720
|
+
* keyframe down while the drag state classes are on.
|
|
5591
5721
|
*/
|
|
5592
5722
|
private _sheetDragClose;
|
|
5593
5723
|
static ɵfac: i0.ɵɵFactoryDeclaration<Menu, never>;
|
|
@@ -5610,10 +5740,45 @@ declare const DEFAULT_MENU_CONFIG: MenuConfig;
|
|
|
5610
5740
|
|
|
5611
5741
|
declare const MENU_CONFIG: InjectionToken<MenuConfig>;
|
|
5612
5742
|
|
|
5613
|
-
|
|
5743
|
+
/** A trigger directive's popup, as a host places it on the inner control that takes focus. */
|
|
5744
|
+
interface PopupAnnouncement {
|
|
5745
|
+
/** `aria-haspopup`: the kind of popup, while a trigger sits on the host. */
|
|
5746
|
+
readonly kind: string | null;
|
|
5747
|
+
/** `aria-expanded`: whether the popup is open, while a trigger sits on the host. */
|
|
5748
|
+
readonly expanded: Signal<boolean | null>;
|
|
5749
|
+
/** `aria-controls`: the open popup's id. */
|
|
5750
|
+
readonly id: Signal<string | null>;
|
|
5751
|
+
}
|
|
5752
|
+
|
|
5753
|
+
/** The kind of popup a trigger opens, as `aria-haspopup` names it. */
|
|
5754
|
+
type popupKind = 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
5755
|
+
/**
|
|
5756
|
+
* What a trigger directive announces about the popup it opens. Read by a host whose focusable
|
|
5757
|
+
* element is not the host itself — a button rendering its own `<button>` — so the announcement
|
|
5758
|
+
* lands on the element that takes focus, where a screen reader looks for it.
|
|
5759
|
+
*/
|
|
5760
|
+
interface PopupTrigger {
|
|
5761
|
+
/** The kind of popup, for `aria-haspopup`. */
|
|
5762
|
+
readonly popupKind: popupKind;
|
|
5763
|
+
/** Whether the popup is open, for `aria-expanded`. */
|
|
5764
|
+
readonly popupExpanded: Signal<boolean>;
|
|
5765
|
+
/** The open popup's element id, for `aria-controls`; none while it is closed. */
|
|
5766
|
+
readonly popupId: Signal<string | null>;
|
|
5767
|
+
}
|
|
5768
|
+
|
|
5769
|
+
/**
|
|
5770
|
+
* Makes its host the control that opens a menu, and announces the menu it controls and whether
|
|
5771
|
+
* it is open. On a host that renders its own focusable control — a `tls-button` — that control
|
|
5772
|
+
* carries the announcement; on any other host, the host itself does.
|
|
5773
|
+
*/
|
|
5774
|
+
declare class MenuTriggerDirective implements PopupTrigger {
|
|
5775
|
+
/** Whether the host is the focusable control itself, rather than a button wrapping one. */
|
|
5776
|
+
protected readonly announcesOnHost: boolean;
|
|
5614
5777
|
readonly menu: i0.InputSignal<Menu>;
|
|
5615
|
-
|
|
5616
|
-
|
|
5778
|
+
readonly popupKind = "menu";
|
|
5779
|
+
readonly popupExpanded: i0.Signal<boolean>;
|
|
5780
|
+
/** The menu while it is open; a closed menu has no element to point at. */
|
|
5781
|
+
readonly popupId: i0.Signal<string | null>;
|
|
5617
5782
|
protected onClick(event: MouseEvent): void;
|
|
5618
5783
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuTriggerDirective, never>;
|
|
5619
5784
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MenuTriggerDirective, "[tlsMenuTrigger]", never, { "menu": { "alias": "tlsMenuTrigger"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -6035,6 +6200,15 @@ declare const RIPPLE_RELEASED_CLASS = "tls-ripple-released";
|
|
|
6035
6200
|
* and MUI's touch-ripple delay, short enough not to read as lag.
|
|
6036
6201
|
*/
|
|
6037
6202
|
declare const RIPPLE_TOUCH_DELAY_MS = 80;
|
|
6203
|
+
/**
|
|
6204
|
+
* How long struck ink shows at full strength before a release may fade it. A tap is over
|
|
6205
|
+
* in a fraction of the spread, and ink that began fading the moment it appeared would be
|
|
6206
|
+
* gone before it had grown past the fingertip that covers it; holding it this long lets
|
|
6207
|
+
* the spread all but finish first. The value is Material Web's minimum press, and like
|
|
6208
|
+
* Angular Material's ripple — which fades only ink that has finished entering — it defers
|
|
6209
|
+
* the release rather than cutting the spread short.
|
|
6210
|
+
*/
|
|
6211
|
+
declare const RIPPLE_MINIMUM_HOLD_MS = 225;
|
|
6038
6212
|
/** Contact point of the press, relative to the host's own box. */
|
|
6039
6213
|
declare const RIPPLE_X_PROPERTY = "--tls-ripple-x";
|
|
6040
6214
|
declare const RIPPLE_Y_PROPERTY = "--tls-ripple-y";
|
|
@@ -6043,10 +6217,10 @@ declare const RIPPLE_DIAMETER_PROPERTY = "--tls-ripple-diameter";
|
|
|
6043
6217
|
/** Suppression hook the press mixin reads: 1 leaves the control at rest. */
|
|
6044
6218
|
declare const PRESS_SCALE_PROPERTY = "--tls-press-scale";
|
|
6045
6219
|
/**
|
|
6046
|
-
* How far a
|
|
6047
|
-
*
|
|
6048
|
-
* on
|
|
6049
|
-
* with the
|
|
6220
|
+
* How far a touch may travel, while it waits to ink, before it is read as the start of a
|
|
6221
|
+
* scroll and never inks. Ink already struck is not cancelled by travel: a finger shifting
|
|
6222
|
+
* on a control is still pressing it, and a contact the browser takes over for a scroll
|
|
6223
|
+
* ends with `pointercancel`, which fades the ink as a release does.
|
|
6050
6224
|
*/
|
|
6051
6225
|
declare const RIPPLE_MOVE_SLOP_PX = 8;
|
|
6052
6226
|
/**
|
|
@@ -6055,12 +6229,290 @@ declare const RIPPLE_MOVE_SLOP_PX = 8;
|
|
|
6055
6229
|
*/
|
|
6056
6230
|
declare const POSITIONED_VALUES: ReadonlySet<string>;
|
|
6057
6231
|
|
|
6232
|
+
/**
|
|
6233
|
+
* Spreads ink from the point of contact when the host is touched, and stands its
|
|
6234
|
+
* press down for that one interaction so a single tap produces a single effect.
|
|
6235
|
+
*
|
|
6236
|
+
* Ink belongs on a control whose press leaves nothing else on screen to show for
|
|
6237
|
+
* it — an action, a row that navigates. A control whose press selects — a tab, a
|
|
6238
|
+
* segment, a toggle, a chip, an option, a menu item, a date — answers with the
|
|
6239
|
+
* selection itself, so ink there would play a second effect over the first and
|
|
6240
|
+
* trail it, since a touch inks only after a moment; such a control takes a
|
|
6241
|
+
* pressed state of its own instead.
|
|
6242
|
+
*
|
|
6243
|
+
* A touch and a pen ink by default, a mouse does not. Ink answers the fingertip
|
|
6244
|
+
* covering the control it is spreading from — a cursor occludes nothing, and a
|
|
6245
|
+
* mouse press is over in a fraction of the ink's duration, leaving most of it
|
|
6246
|
+
* playing after the button has already been released. Which pointers ink is set
|
|
6247
|
+
* app-wide through `RIPPLE_CONFIG` and per host through `ripplePointerTypes`.
|
|
6248
|
+
*
|
|
6249
|
+
* A touch inks a moment after it lands rather than at once, so a flick that
|
|
6250
|
+
* merely begins on the host scrolls without flashing it; a tap lifted sooner inks
|
|
6251
|
+
* on release. The ink spreads and holds while the contact lasts, so a held press
|
|
6252
|
+
* keeps showing, and fades when it ends — whether the finger lifts or the browser
|
|
6253
|
+
* takes the contact over for a scroll — but never before it has shown for a
|
|
6254
|
+
* moment, so a quick tap is seen. A finger shifting on the control once its ink
|
|
6255
|
+
* is struck is still pressing it and leaves the ink in place.
|
|
6256
|
+
*
|
|
6257
|
+
* The ink is expressive and outlives the contact that spawned it, so it is
|
|
6258
|
+
* confined to the `full` motion level; below that the press it suppresses is
|
|
6259
|
+
* restored and acknowledges the touch instead. Removing this directive therefore
|
|
6260
|
+
* takes nothing away — the press underneath is pure CSS and is what a host shows
|
|
6261
|
+
* without it.
|
|
6262
|
+
*
|
|
6263
|
+
* Requires the theme's `ripple` mixin on the element the ink is drawn on — the
|
|
6264
|
+
* host, or the `rippleSurface` it names — which draws the ink from the values
|
|
6265
|
+
* written there.
|
|
6266
|
+
*
|
|
6267
|
+
* @example
|
|
6268
|
+
* ```html
|
|
6269
|
+
* <button class="tls-button" tlsRipple>Save</button>
|
|
6270
|
+
* ```
|
|
6271
|
+
*/
|
|
6272
|
+
declare class RippleDirective {
|
|
6273
|
+
private readonly _elementRef;
|
|
6274
|
+
private readonly _document;
|
|
6275
|
+
private readonly _config;
|
|
6276
|
+
private readonly _renderer;
|
|
6277
|
+
/**
|
|
6278
|
+
* Turns the ink off.
|
|
6279
|
+
*
|
|
6280
|
+
* Deliberately not named `disabled`: an input shadows the DOM property of the
|
|
6281
|
+
* same name on the element it sits on, so a directive claiming `disabled` would
|
|
6282
|
+
* capture a host's `[disabled]` binding and leave the control enabled.
|
|
6283
|
+
*/
|
|
6284
|
+
readonly rippleDisabled: InputSignalWithTransform<boolean, unknown>;
|
|
6285
|
+
/**
|
|
6286
|
+
* Pointer types whose presses ink here, overriding the app-wide default for
|
|
6287
|
+
* this one host. Unset defers to `RIPPLE_CONFIG`.
|
|
6288
|
+
*/
|
|
6289
|
+
readonly ripplePointerTypes: InputSignal<pointerType[] | undefined>;
|
|
6290
|
+
/**
|
|
6291
|
+
* The element the ink is drawn on, when it is not the host itself: a part of the control
|
|
6292
|
+
* that carries its shape, such as a navigation item's indicator pill around its icon. The
|
|
6293
|
+
* whole host still answers the press, and still stands its own press down. Unset draws on
|
|
6294
|
+
* the host.
|
|
6295
|
+
*/
|
|
6296
|
+
readonly rippleSurface: InputSignal<HTMLElement | undefined>;
|
|
6297
|
+
private readonly _pointerTypes;
|
|
6298
|
+
/** Where a touch waiting to ink landed, to measure a scroll against. */
|
|
6299
|
+
private _origin;
|
|
6300
|
+
/**
|
|
6301
|
+
* Teardown of the listeners that hear a press end, bound only while one is live.
|
|
6302
|
+
* Host listeners would schedule change detection for every hover movement across
|
|
6303
|
+
* every host, although only a press needs them.
|
|
6304
|
+
*/
|
|
6305
|
+
private _stopTrackingContact;
|
|
6306
|
+
/** Teardown of the listener that watches a touch's travel while it waits to ink. */
|
|
6307
|
+
private _stopWatchingForScroll;
|
|
6308
|
+
/** The ink a touch is waiting to strike, until the wait passes or the contact ends. */
|
|
6309
|
+
private _pendingInk;
|
|
6310
|
+
/** Runs from the moment ink is struck until it has shown for its minimum hold. */
|
|
6311
|
+
private _minimumHold;
|
|
6312
|
+
/** Whether the contact ended while the minimum hold was still running, so the ink fades once it does. */
|
|
6313
|
+
private _releaseAwaitingHold;
|
|
6314
|
+
constructor();
|
|
6315
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
6316
|
+
/** A tap lifted before its ink was struck inks now, and every ink lets go with the contact. */
|
|
6317
|
+
private _onPointerRelease;
|
|
6318
|
+
/**
|
|
6319
|
+
* The browser took the contact over, most often for a scroll: an ink still waiting is
|
|
6320
|
+
* dropped, and one already spreading fades as on release.
|
|
6321
|
+
*/
|
|
6322
|
+
private _onPointerCancel;
|
|
6323
|
+
/**
|
|
6324
|
+
* A touch that travels past the slop while it waits has turned out to be a scroll, so it
|
|
6325
|
+
* never inks. The press stays suppressed until the contact ends: restoring it here would
|
|
6326
|
+
* depress the control mid-scroll, which is what the ink was withheld for.
|
|
6327
|
+
*/
|
|
6328
|
+
private _onPointerMove;
|
|
6329
|
+
/**
|
|
6330
|
+
* Holds a touch's ink back for the wait, watching how far the touch travels meanwhile. Its
|
|
6331
|
+
* moves are heard on the host, which captures a touch for as long as it lasts.
|
|
6332
|
+
*/
|
|
6333
|
+
private _awaitScroll;
|
|
6334
|
+
/**
|
|
6335
|
+
* Follows one press until it ends. Its end is heard on the document rather than the host:
|
|
6336
|
+
* only a touch is captured by the element it lands on, so a pen — or a mouse, where one
|
|
6337
|
+
* inks — lifted after sliding off the host would otherwise never release the ink it holds.
|
|
6338
|
+
* The capture phase hears the end even where a component stops it from bubbling.
|
|
6339
|
+
*/
|
|
6340
|
+
private _trackContact;
|
|
6341
|
+
/** Stops following the live contact, dropping any ink it is still waiting to strike. */
|
|
6342
|
+
private _stopTracking;
|
|
6343
|
+
/**
|
|
6344
|
+
* Whether a press from this kind of pointer inks. `pointerType` is read off the
|
|
6345
|
+
* event rather than from a media query so a device carrying both a touchscreen
|
|
6346
|
+
* and a mouse is answered by the one in use, not by the one it reports as
|
|
6347
|
+
* primary.
|
|
6348
|
+
*/
|
|
6349
|
+
private _inksFor;
|
|
6350
|
+
/**
|
|
6351
|
+
* Whether the document is at the motion level the ink belongs to.
|
|
6352
|
+
*
|
|
6353
|
+
* Read from the attribute the stylesheet gates on rather than from
|
|
6354
|
+
* `MotionService`, for two reasons: the two can never disagree about a level
|
|
6355
|
+
* they read from one place, and a host is not made to depend on a provider it
|
|
6356
|
+
* would otherwise never need — an app that never configures motion has no
|
|
6357
|
+
* attribute, and the ink is off exactly as the stylesheet has it.
|
|
6358
|
+
*/
|
|
6359
|
+
private _isFullMotion;
|
|
6360
|
+
/** The element the ink is drawn on. */
|
|
6361
|
+
private _surface;
|
|
6362
|
+
/**
|
|
6363
|
+
* The box the ink layer occupies, which the contact point and the ink's reach are measured
|
|
6364
|
+
* against. The layer is laid out against the surface, unless the surface is not positioned:
|
|
6365
|
+
* it is then laid out against the nearest positioned ancestor instead — a stretched link
|
|
6366
|
+
* inks the whole row its hit area covers, not just its own text. Its insets are read back
|
|
6367
|
+
* rather than assumed to be zero, so a layer that bleeds past that box is measured as drawn.
|
|
6368
|
+
*/
|
|
6369
|
+
private _inkLayerBounds;
|
|
6370
|
+
/**
|
|
6371
|
+
* Distance from the contact point to the farthest corner. The ink is struck
|
|
6372
|
+
* where the finger landed, so a press near an edge has farther to travel than
|
|
6373
|
+
* one in the middle; covering the control means reaching that corner.
|
|
6374
|
+
*/
|
|
6375
|
+
private _radiusToCover;
|
|
6376
|
+
/**
|
|
6377
|
+
* Strikes fresh ink and starts its minimum hold. A class already present does not
|
|
6378
|
+
* restart a running animation, so a second tap arriving before the first has
|
|
6379
|
+
* faded would otherwise be swallowed; reading back a layout property between the
|
|
6380
|
+
* removal and the addition forces the two to land as separate states.
|
|
6381
|
+
*/
|
|
6382
|
+
private _strike;
|
|
6383
|
+
/**
|
|
6384
|
+
* Answers the end of the contact: the ink fades now if it has shown for its minimum hold,
|
|
6385
|
+
* and once it has otherwise.
|
|
6386
|
+
*
|
|
6387
|
+
* @example
|
|
6388
|
+
* // A tap lifted 40ms after the ink was struck, with a 225ms hold:
|
|
6389
|
+
* // 0ms struck
|
|
6390
|
+
* // 40ms release → awaits the hold
|
|
6391
|
+
* // 225ms hold ends → fades
|
|
6392
|
+
* // A press held for 600ms:
|
|
6393
|
+
* // 600ms release → fades at once
|
|
6394
|
+
*/
|
|
6395
|
+
private _release;
|
|
6396
|
+
/** Fades whatever ink the surface holds, ending any hold still running. */
|
|
6397
|
+
private _letGo;
|
|
6398
|
+
/** Ends a touch's wait to ink, along with the watch on its travel. */
|
|
6399
|
+
private _clearPendingInk;
|
|
6400
|
+
/** Ends the minimum hold, along with any release that was waiting on it. */
|
|
6401
|
+
private _clearHold;
|
|
6402
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RippleDirective, never>;
|
|
6403
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RippleDirective, "[tlsRipple]", never, { "rippleDisabled": { "alias": "rippleDisabled"; "required": false; "isSignal": true; }; "ripplePointerTypes": { "alias": "ripplePointerTypes"; "required": false; "isSignal": true; }; "rippleSurface": { "alias": "rippleSurface"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6404
|
+
}
|
|
6405
|
+
|
|
6058
6406
|
declare const RIPPLE_CONFIG: InjectionToken<RippleConfig>;
|
|
6059
6407
|
|
|
6408
|
+
/**
|
|
6409
|
+
* What an indicator is kept on. Each is read where signals are tracked, so the
|
|
6410
|
+
* indicator follows whatever state the answers are derived from.
|
|
6411
|
+
*/
|
|
6412
|
+
interface SlidingIndicatorOptions {
|
|
6413
|
+
/**
|
|
6414
|
+
* The element the items are laid out in and the indicator is drawn on. It
|
|
6415
|
+
* must be positioned, which the theme's `sliding-indicator` mixin sees to.
|
|
6416
|
+
*/
|
|
6417
|
+
container: () => HTMLElement | null | undefined;
|
|
6418
|
+
/**
|
|
6419
|
+
* The chosen item, or nothing wherever no single indicator applies — nothing
|
|
6420
|
+
* chosen, several chosen, a treatment that marks its items another way.
|
|
6421
|
+
*/
|
|
6422
|
+
target: () => HTMLElement | null | undefined;
|
|
6423
|
+
/** The axis the items run along, which decides whether the indicator is used at all. */
|
|
6424
|
+
orientation: () => orientation;
|
|
6425
|
+
}
|
|
6426
|
+
/** An item's box within its container: its offset from the padding edge, and its size. */
|
|
6427
|
+
interface SlidingIndicatorBox {
|
|
6428
|
+
x: number;
|
|
6429
|
+
y: number;
|
|
6430
|
+
width: number;
|
|
6431
|
+
height: number;
|
|
6432
|
+
}
|
|
6433
|
+
/** A chosen item as it was found laid out, and the container it was found in. */
|
|
6434
|
+
interface SlidingIndicatorMeasurement {
|
|
6435
|
+
container: HTMLElement;
|
|
6436
|
+
target: HTMLElement;
|
|
6437
|
+
box: SlidingIndicatorBox;
|
|
6438
|
+
}
|
|
6439
|
+
|
|
6440
|
+
/**
|
|
6441
|
+
* Keeps one indicator on the chosen item of a set — the pill of a segmented
|
|
6442
|
+
* control, the fill of a list's selected row — so that choosing another sends
|
|
6443
|
+
* it travelling there instead of vanishing from one item and appearing on the
|
|
6444
|
+
* next. The indicator itself is drawn by the theme's `sliding-indicator` mixin
|
|
6445
|
+
* on the container; this writes where it goes.
|
|
6446
|
+
*
|
|
6447
|
+
* A position cannot be read from the selection: it is wherever the layout put
|
|
6448
|
+
* the chosen item. So the item is measured after each render that could have
|
|
6449
|
+
* moved it, and again whenever the container or one of its children changes
|
|
6450
|
+
* size — a container resized, a font that loaded late, a label that changed
|
|
6451
|
+
* length. The measure is taken in offsets from the container rather than in
|
|
6452
|
+
* viewport coordinates, which any transform on an ancestor scales and shifts —
|
|
6453
|
+
* a panel animating open, say — with nothing to report when it ends.
|
|
6454
|
+
*
|
|
6455
|
+
* Only the move to an item newly chosen is animated. An indicator following
|
|
6456
|
+
* its item as the layout around it changes is moved at once, where an
|
|
6457
|
+
* animated one would trail behind it.
|
|
6458
|
+
*
|
|
6459
|
+
* Along an axis the configuration leaves still, nothing is measured or
|
|
6460
|
+
* written, and each item goes on marking itself.
|
|
6461
|
+
*
|
|
6462
|
+
* Call it where injection is available — a constructor or a field initializer.
|
|
6463
|
+
*
|
|
6464
|
+
* @example
|
|
6465
|
+
* // Day | Week | Month, "Week" chosen: the indicator is placed on it.
|
|
6466
|
+
* // container: data-sliding-indicator="placed", --tls-sliding-indicator-x: 60px …
|
|
6467
|
+
* // "Month" is chosen:
|
|
6468
|
+
* // container: data-sliding-indicator="travelling", …-x: 115px // animated
|
|
6469
|
+
* // the container is then resized, moving "Month":
|
|
6470
|
+
* // container: data-sliding-indicator="placed", …-x: 140px // at once
|
|
6471
|
+
* // every option is deselected:
|
|
6472
|
+
* // container: attribute and properties removed // items mark themselves
|
|
6473
|
+
*/
|
|
6474
|
+
declare function slidingIndicator(options: SlidingIndicatorOptions): void;
|
|
6475
|
+
|
|
6476
|
+
/**
|
|
6477
|
+
* Along which axes the mark of a chosen item travels to the item chosen next,
|
|
6478
|
+
* rather than leaving one and appearing on the other.
|
|
6479
|
+
*
|
|
6480
|
+
* Along a row the move is short and the eye follows it. Down a column it is a
|
|
6481
|
+
* bar the width of the list sweeping across every row between the two, more
|
|
6482
|
+
* motion than a change of selection calls for — and the lists a platform draws
|
|
6483
|
+
* mark a new row in place — so a column stays still unless asked otherwise.
|
|
6484
|
+
* Turning an axis on does not widen when the move plays: it is expressive
|
|
6485
|
+
* motion and is left out below the `full` motion level whatever is set here.
|
|
6486
|
+
*/
|
|
6487
|
+
type SlidingIndicatorConfig = Record<orientation, boolean>;
|
|
6488
|
+
declare const DEFAULT_SLIDING_INDICATOR_CONFIG: SlidingIndicatorConfig;
|
|
6489
|
+
|
|
6490
|
+
/**
|
|
6491
|
+
* Marks a container whose indicator has been placed on the chosen item; the
|
|
6492
|
+
* theme's `sliding-indicator` mixin draws the indicator on it, and the item
|
|
6493
|
+
* gives up the mark it would otherwise draw itself.
|
|
6494
|
+
*/
|
|
6495
|
+
declare const SLIDING_INDICATOR_ATTRIBUTE = "data-sliding-indicator";
|
|
6496
|
+
/** The indicator sits on its item, and follows it at once wherever the layout moves it. */
|
|
6497
|
+
declare const SLIDING_INDICATOR_PLACED = "placed";
|
|
6498
|
+
/** The indicator is on its way to an item newly chosen, which is the one move it animates. */
|
|
6499
|
+
declare const SLIDING_INDICATOR_TRAVELLING = "travelling";
|
|
6500
|
+
/** The chosen item's offset from the container's padding edge. */
|
|
6501
|
+
declare const SLIDING_INDICATOR_X_PROPERTY = "--tls-sliding-indicator-x";
|
|
6502
|
+
declare const SLIDING_INDICATOR_Y_PROPERTY = "--tls-sliding-indicator-y";
|
|
6503
|
+
/** The chosen item's size. */
|
|
6504
|
+
declare const SLIDING_INDICATOR_WIDTH_PROPERTY = "--tls-sliding-indicator-width";
|
|
6505
|
+
declare const SLIDING_INDICATOR_HEIGHT_PROPERTY = "--tls-sliding-indicator-height";
|
|
6506
|
+
/** Each side of the chosen item's box, with the property it is written to. */
|
|
6507
|
+
declare const SLIDING_INDICATOR_BOX_PROPERTIES: readonly [keyof SlidingIndicatorBox, string][];
|
|
6508
|
+
|
|
6509
|
+
declare const SLIDING_INDICATOR_CONFIG: InjectionToken<SlidingIndicatorConfig>;
|
|
6510
|
+
|
|
6060
6511
|
/**
|
|
6061
6512
|
* How tall a detent is: the header slot's height (`'header'`), the header plus
|
|
6062
|
-
* the body's natural height
|
|
6063
|
-
*
|
|
6513
|
+
* the body's natural height (`'content'`), a share of the viewport (`'50%'`),
|
|
6514
|
+
* or any CSS length (`'20rem'`). Every size but the header's is capped at the
|
|
6515
|
+
* tallest the sheet may grow, which keeps the theme's top clearance free.
|
|
6064
6516
|
*/
|
|
6065
6517
|
type sheetDetentSize = 'header' | 'content' | `${number}%` | string;
|
|
6066
6518
|
/** One resting height of a sheet. Listed smallest to largest by the author. */
|
|
@@ -6074,8 +6526,10 @@ interface SheetMeasures {
|
|
|
6074
6526
|
header: number;
|
|
6075
6527
|
/** Header plus the body's natural (unclipped) height. */
|
|
6076
6528
|
content: number;
|
|
6077
|
-
/** Height of the
|
|
6529
|
+
/** Height of the viewport, the base a percentage resolves against. */
|
|
6078
6530
|
viewport: number;
|
|
6531
|
+
/** The tallest the sheet may grow: the viewport less the top clearance. */
|
|
6532
|
+
maximum: number;
|
|
6079
6533
|
/** Resolves a CSS length against the sheet's own font and viewport. */
|
|
6080
6534
|
length: (css: string) => number;
|
|
6081
6535
|
}
|
|
@@ -6186,6 +6640,12 @@ declare class Sheet implements OnDestroy {
|
|
|
6186
6640
|
private readonly _targetIndex;
|
|
6187
6641
|
/** The detent a drag began at, for the release decision. */
|
|
6188
6642
|
private _dragStartIndex;
|
|
6643
|
+
/**
|
|
6644
|
+
* How far in px above that detent the panel was drawn when the drag began:
|
|
6645
|
+
* 0 from rest, the settle's remaining travel when caught mid-flight, so the
|
|
6646
|
+
* panel is picked up where it is seen rather than where it was heading.
|
|
6647
|
+
*/
|
|
6648
|
+
private _dragStartLead;
|
|
6189
6649
|
/**
|
|
6190
6650
|
* A pan the body's own scrolling owns; its moves and end are not the sheet's.
|
|
6191
6651
|
*/
|
|
@@ -6234,8 +6694,7 @@ declare class Sheet implements OnDestroy {
|
|
|
6234
6694
|
protected onPanStart(event: PanEvent): void;
|
|
6235
6695
|
/**
|
|
6236
6696
|
* Fired outside the Angular zone (see `PanDirective.panMove`), so it writes
|
|
6237
|
-
* to the DOM through the engine and writes no signal.
|
|
6238
|
-
* read live, so a remeasure mid-drag applies at once.
|
|
6697
|
+
* to the DOM through the engine and writes no signal.
|
|
6239
6698
|
*/
|
|
6240
6699
|
protected onPanMove(event: PanEvent): void;
|
|
6241
6700
|
protected onPanEnd(event: PanEvent): void;
|
|
@@ -6280,13 +6739,35 @@ declare class Sheet implements OnDestroy {
|
|
|
6280
6739
|
*/
|
|
6281
6740
|
private _claims;
|
|
6282
6741
|
/**
|
|
6283
|
-
*
|
|
6284
|
-
*
|
|
6285
|
-
*
|
|
6286
|
-
|
|
6742
|
+
* Height the finger asks for: the height the drag picked the panel up at,
|
|
6743
|
+
* grown by the upward travel since. Read against the live heights, so a
|
|
6744
|
+
* remeasure mid-drag applies at once.
|
|
6745
|
+
*/
|
|
6746
|
+
private _dragHeight;
|
|
6747
|
+
/**
|
|
6748
|
+
* Height of the panel as drawn this frame. Mid-settle the running
|
|
6749
|
+
* transition, not the offset property, says where that is, so it is read
|
|
6750
|
+
* from layout: the panel hangs from the bottom of the root, which covers the
|
|
6751
|
+
* viewport.
|
|
6752
|
+
*/
|
|
6753
|
+
private _drawnHeight;
|
|
6754
|
+
/**
|
|
6755
|
+
* The height a finger asks for that draws the panel at `drawn` — the inverse
|
|
6756
|
+
* of `_offsetFor`. Past either end of the travel the drawn height is already
|
|
6757
|
+
* rubber-banded, and taking it as asked would band it a second time.
|
|
6758
|
+
*/
|
|
6759
|
+
private _askedHeightFor;
|
|
6760
|
+
/**
|
|
6761
|
+
* Offset for a height the finger asks for. Past either end of the travel
|
|
6762
|
+
* the panel follows a rubber band, so the end reads as a stretch rather than
|
|
6763
|
+
* a wall; above the largest detent it lifts off the bottom edge, which the
|
|
6764
|
+
* theme's skirt below the panel keeps covered.
|
|
6287
6765
|
*/
|
|
6288
6766
|
private _offsetFor;
|
|
6289
|
-
/**
|
|
6767
|
+
/**
|
|
6768
|
+
* Ends a drag at `index`: the settle continues from the finger's offset at
|
|
6769
|
+
* the finger's `velocity`, in px/ms along the offset.
|
|
6770
|
+
*/
|
|
6290
6771
|
private _settleFromDrag;
|
|
6291
6772
|
/**
|
|
6292
6773
|
* A settle that finishes after destroy writes nothing to a destroyed model.
|
|
@@ -6328,6 +6809,12 @@ declare class Sheet implements OnDestroy {
|
|
|
6328
6809
|
static ɵcmp: i0.ɵɵComponentDeclaration<Sheet, "tls-sheet", ["tlsSheet"], { "detents": { "alias": "detents"; "required": true; "isSignal": true; }; "detent": { "alias": "detent"; "required": false; "isSignal": true; }; "modalFrom": { "alias": "modalFrom"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "detentLabels": { "alias": "detentLabels"; "required": false; "isSignal": true; }; "grabber": { "alias": "grabber"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; }, { "detent": "detentChange"; }, ["headerTemplate"], ["*"], true, never>;
|
|
6329
6810
|
}
|
|
6330
6811
|
|
|
6812
|
+
/**
|
|
6813
|
+
* A placeholder drawn where content is still on its way. By default it is a
|
|
6814
|
+
* box of the given size; as `text` it is one line of the text it stands in
|
|
6815
|
+
* for; wrapped around content it is exactly the size of that content, which
|
|
6816
|
+
* keeps its place unseen until `loading` is turned off.
|
|
6817
|
+
*/
|
|
6331
6818
|
declare class Skeleton {
|
|
6332
6819
|
private readonly _config;
|
|
6333
6820
|
readonly size: InputSignal<number | string | null>;
|
|
@@ -6337,8 +6824,30 @@ declare class Skeleton {
|
|
|
6337
6824
|
readonly duration: InputSignal<number>;
|
|
6338
6825
|
readonly rounded: InputSignalWithTransform<boolean, unknown>;
|
|
6339
6826
|
readonly animate: InputSignalWithTransform<boolean, unknown>;
|
|
6827
|
+
/**
|
|
6828
|
+
* Whether there is still something to wait for. Turned off, the skeleton
|
|
6829
|
+
* draws nothing and takes no part in layout, so content wrapped in it stands
|
|
6830
|
+
* exactly as it would alone: the wrapper can stay in the template and be
|
|
6831
|
+
* switched, rather than the content being written out a second time.
|
|
6832
|
+
*/
|
|
6833
|
+
readonly loading: InputSignalWithTransform<boolean, unknown>;
|
|
6834
|
+
/**
|
|
6835
|
+
* Stands in for one line of text: the skeleton takes the line height of the
|
|
6836
|
+
* font it inherits and draws a bar the height of that font's glyphs, so the
|
|
6837
|
+
* text replacing it lands in the same line box. Placed inside the element
|
|
6838
|
+
* that will hold the text, or given that element's class, it follows the
|
|
6839
|
+
* typography with no size of its own to keep in step. `width` sets the
|
|
6840
|
+
* line's length, in any unit (`12ch`, `60%`); `height`, `size`, `radius` and
|
|
6841
|
+
* `rounded` do not apply, since the bar is proportioned from the font.
|
|
6842
|
+
*/
|
|
6843
|
+
readonly text: InputSignalWithTransform<boolean, unknown>;
|
|
6340
6844
|
protected readonly hostClasses: i0.Signal<string[]>;
|
|
6341
6845
|
protected readonly hostStyles: i0.Signal<{
|
|
6846
|
+
'--tls-skeleton-width': string;
|
|
6847
|
+
'--tls-skeleton-duration': string;
|
|
6848
|
+
'--tls-skeleton-height'?: never;
|
|
6849
|
+
'--tls-skeleton-radius'?: never;
|
|
6850
|
+
} | {
|
|
6342
6851
|
'--tls-skeleton-width': string;
|
|
6343
6852
|
'--tls-skeleton-height': string;
|
|
6344
6853
|
'--tls-skeleton-radius': string;
|
|
@@ -6347,7 +6856,7 @@ declare class Skeleton {
|
|
|
6347
6856
|
private _resolveDimension;
|
|
6348
6857
|
private _resolveRadius;
|
|
6349
6858
|
static ɵfac: i0.ɵɵFactoryDeclaration<Skeleton, never>;
|
|
6350
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Skeleton, "tls-skeleton", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "animate": { "alias": "animate"; "required": false; "isSignal": true; }; }, {}, never,
|
|
6859
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Skeleton, "tls-skeleton", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
6351
6860
|
}
|
|
6352
6861
|
|
|
6353
6862
|
interface SkeletonConfig {
|
|
@@ -6679,7 +7188,7 @@ declare const SWIPE_ACTIONS_CONFIG: InjectionToken<SwipeActionsConfig>;
|
|
|
6679
7188
|
* Visual treatment of the tab strip. `flat` and `outlined` mark the active tab
|
|
6680
7189
|
* with an edge line; `segmented` sets inset pills in a padded track; `grouped`
|
|
6681
7190
|
* is an inset-grouped list — one rounded surface of full-bleed rows whose fill,
|
|
6682
|
-
* hover and
|
|
7191
|
+
* hover and press reach the surface's edges, the outer rows taking its corners.
|
|
6683
7192
|
*/
|
|
6684
7193
|
type tabsVariant = 'flat' | 'outlined' | 'segmented' | 'grouped';
|
|
6685
7194
|
type tabsOrientation = orientation;
|
|
@@ -6732,6 +7241,10 @@ declare class Tabs {
|
|
|
6732
7241
|
protected tabs: Signal<readonly Tab[]>;
|
|
6733
7242
|
/** Each tab's header control, in the order of the projected tabs. */
|
|
6734
7243
|
private readonly _tabControls;
|
|
7244
|
+
/** The strip the header items are laid out in. */
|
|
7245
|
+
private readonly _tabList;
|
|
7246
|
+
/** Each tab's header item, in the order of the projected tabs. */
|
|
7247
|
+
private readonly _tabItems;
|
|
6735
7248
|
protected hostClasses: Signal<string[]>;
|
|
6736
7249
|
/**
|
|
6737
7250
|
* The header strip uses the shared tab-header block (also rendered by
|
|
@@ -6739,6 +7252,11 @@ declare class Tabs {
|
|
|
6739
7252
|
* strip element itself rather than on the tabs container.
|
|
6740
7253
|
*/
|
|
6741
7254
|
protected headerClasses: Signal<string[]>;
|
|
7255
|
+
/**
|
|
7256
|
+
* The header item a travelling mark sits on: the selected tab's, in a
|
|
7257
|
+
* treatment that marks the selection with a fill of its own shape.
|
|
7258
|
+
*/
|
|
7259
|
+
private readonly _markedItem;
|
|
6742
7260
|
constructor();
|
|
6743
7261
|
/**
|
|
6744
7262
|
* Resolves arbitrary text (e.g. a URL query param) to the value of the tab it
|
|
@@ -6770,6 +7288,14 @@ interface TabsConfig {
|
|
|
6770
7288
|
}
|
|
6771
7289
|
declare const DEFAULT_TABS_CONFIG: TabsConfig;
|
|
6772
7290
|
|
|
7291
|
+
/**
|
|
7292
|
+
* The treatments whose selection is marked by a fill with a shape of its own —
|
|
7293
|
+
* a pill on a track, a row of a list — which can travel from the tab it leaves
|
|
7294
|
+
* to the one selected next. The others mark a tab by its edges, which belong
|
|
7295
|
+
* to the tab and stay with it.
|
|
7296
|
+
*/
|
|
7297
|
+
declare const SLIDING_TABS_VARIANTS: ReadonlySet<tabsVariant>;
|
|
7298
|
+
|
|
6773
7299
|
declare const TABS_CONFIG: InjectionToken<TabsConfig>;
|
|
6774
7300
|
|
|
6775
7301
|
interface TabsQuerySyncConfig {
|
|
@@ -6826,13 +7352,22 @@ declare class TabsQuerySyncDirective extends QuerySyncDirective {
|
|
|
6826
7352
|
*/
|
|
6827
7353
|
declare class TabNavDirective {
|
|
6828
7354
|
private readonly _config;
|
|
7355
|
+
private readonly _elementRef;
|
|
6829
7356
|
readonly variant: InputSignal<tabsVariant>;
|
|
6830
7357
|
readonly orientation: InputSignal<tabsOrientation>;
|
|
6831
7358
|
readonly itemsAlign: InputSignal<tabsItemsAlign>;
|
|
6832
7359
|
readonly divider: InputSignalWithTransform<boolean, unknown>;
|
|
7360
|
+
/** The strip's links, wherever in it they sit. */
|
|
7361
|
+
private readonly _links;
|
|
7362
|
+
/**
|
|
7363
|
+
* The link a travelling mark sits on: the active one, in a treatment that
|
|
7364
|
+
* marks it with a fill of its own shape.
|
|
7365
|
+
*/
|
|
7366
|
+
private readonly _markedLink;
|
|
6833
7367
|
protected hostClasses: Signal<string[]>;
|
|
7368
|
+
constructor();
|
|
6834
7369
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabNavDirective, never>;
|
|
6835
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TabNavDirective, "nav[tlsTabNav]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "itemsAlign": { "alias": "itemsAlign"; "required": false; "isSignal": true; }; "divider": { "alias": "divider"; "required": false; "isSignal": true; }; }, {},
|
|
7370
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabNavDirective, "nav[tlsTabNav]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "itemsAlign": { "alias": "itemsAlign"; "required": false; "isSignal": true; }; "divider": { "alias": "divider"; "required": false; "isSignal": true; }; }, {}, ["_links"], never, true, never>;
|
|
6836
7371
|
}
|
|
6837
7372
|
|
|
6838
7373
|
interface TabNavConfig {
|
|
@@ -6855,14 +7390,17 @@ declare const TAB_NAV_CONFIG: InjectionToken<TabNavConfig>;
|
|
|
6855
7390
|
* link is exposed to assistive technology via `aria-current="page"`.
|
|
6856
7391
|
*/
|
|
6857
7392
|
declare class TabLinkDirective {
|
|
7393
|
+
/** The anchor itself, which the strip measures to place the mark of the active link. */
|
|
7394
|
+
readonly elementRef: ElementRef<HTMLAnchorElement>;
|
|
6858
7395
|
private readonly _routerLinkActive;
|
|
6859
7396
|
readonly active: InputSignalWithTransform<boolean, unknown>;
|
|
6860
7397
|
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
6861
7398
|
private readonly _routerLinkIsActive;
|
|
6862
|
-
|
|
7399
|
+
/** Whether this is the link to where the user is — by its route, or because it was told so. */
|
|
7400
|
+
readonly isActive: Signal<boolean>;
|
|
6863
7401
|
protected handleClick(event: MouseEvent): void;
|
|
6864
7402
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabLinkDirective, never>;
|
|
6865
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TabLinkDirective, "a[tlsTabLink]", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true,
|
|
7403
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabLinkDirective, "a[tlsTabLink]", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6866
7404
|
}
|
|
6867
7405
|
|
|
6868
7406
|
type tableColumnAlignment = 'start' | 'center' | 'end';
|
|
@@ -7632,6 +8170,8 @@ interface tlsUiConfigProvider {
|
|
|
7632
8170
|
locale?: Partial<LocaleConfig>;
|
|
7633
8171
|
/** Cross-cutting press-ink policy applied wherever a ripple is applied (not tied to a single component). */
|
|
7634
8172
|
ripple?: Partial<RippleConfig>;
|
|
8173
|
+
/** Cross-cutting choice of the axes along which a chosen item's mark travels to the next (not tied to a single component). */
|
|
8174
|
+
slidingIndicator?: Partial<SlidingIndicatorConfig>;
|
|
7635
8175
|
/** Cross-cutting defaults inherited by every form control (not tied to a single component). */
|
|
7636
8176
|
formControl?: Partial<FormControlConfig>;
|
|
7637
8177
|
components?: {
|
|
@@ -7883,5 +8423,5 @@ declare abstract class QuerySyncDirective {
|
|
|
7883
8423
|
|
|
7884
8424
|
declare const provideThalassicUIConfig: (config?: tlsUiConfigProvider) => EnvironmentProviders;
|
|
7885
8425
|
|
|
7886
|
-
export { ACCORDION_CONFIG, ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, ALPHA_MAX, AUTOCOMPLETE_CONFIG, Accordion, AccordionItem, ActivityHeatmap, Alert, AlertIcon, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CAROUSEL_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, COLOR_INPUT_CONFIG, COLOR_PICKER_CONFIG, COLOR_PICKER_DEFAULT_VALUE, COLOR_RANGE_CONFIG, COLOR_SWATCH_PICKER_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Carousel, CarouselSlide, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, ColorInput, ColorPicker, ColorRange, ColorSwatch, ColorSwatchPicker, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ACCORDION_CONFIG, DEFAULT_ACTIVITY_HEATMAP_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CAROUSEL_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_COLOR_INPUT_CONFIG, DEFAULT_COLOR_PICKER_CONFIG, DEFAULT_COLOR_RANGE_CONFIG, DEFAULT_COLOR_SWATCH_PICKER_CONFIG, DEFAULT_CONFIRM_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_DRAWER_CONFIG, DEFAULT_FILE_INPUT_CONFIG, DEFAULT_FORM_CONTROL_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_HIGHLIGHT_CONFIG, DEFAULT_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_IMAGE_PREVIEW_CONFIG, DEFAULT_INFINITE_SCROLL_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MARK_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_ODOMETER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PAGINATION_QUERY_SYNC_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_PROGRESS_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_RATING_CONFIG, DEFAULT_RIPPLE_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SLIDER_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEPPER_LABELS, DEFAULT_STEP_CONFIG, DEFAULT_SWIPE_ACTIONS_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TAB_NAV_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE, DEFAULT_VIRTUAL_SCROLL_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DRAWER_OPENING, DRAWER_PANEL_CONFIG, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogRef, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, DrawerSharedDirective, DrawerTriggerDirective, FILE_INPUT_CONFIG, FORMAT_CYCLE, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FabMenu, FileDropTargetDirective, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, HUE_MAX, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, IMAGE_PREVIEW_CONFIG, INFINITE_SCROLL_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, ImagePreview, ImagePreviewDirective, ImagePreviewGroupDirective, ImagePreviewRef, ImagePreviewService, InfiniteScroll, Input, InputDirective, InputNumber, KBD_CONFIG, Kbd, LOADER_CONFIG, Loader, MARK_CONFIG, MASK_TOKENS, MENU_CONFIG, MULTI_SELECT_CONFIG, Mark, MaskDirective, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, ODOMETER_CONFIG, Odometer, PAGINATION_CONFIG, PAGINATION_QUERY_SYNC_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, POSITIONED_VALUES, PRESS_SCALE_PROPERTY, PROGRESS_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PickerField, PinInput, Popover, Progress, RADIO_BUTTON_CONFIG, RATING_CONFIG, RIPPLE_ACTIVE_CLASS, RIPPLE_CONFIG, RIPPLE_DIAMETER_PROPERTY, RIPPLE_MOVE_SLOP_PX, RIPPLE_RELEASED_CLASS, RIPPLE_TOUCH_DELAY_MS, RIPPLE_X_PROPERTY, RIPPLE_Y_PROPERTY, RadioButton, Rating, RippleDirective, SELECT_CONFIG, SKELETON_CONFIG, SLIDER_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SV_KEYBOARD_STEP, SV_KEYBOARD_STEP_LARGE, SWIPE_ACTIONS_CONFIG, SWITCH_CONFIG, Select, Sheet, SheetHeaderDirective, Skeleton, Slider, Splitter, SplitterPanel, Step, Stepper, SwipeActions, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, TOUCH_HANDOVER_WINDOW_MS, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, VIRTUAL_SCROLL_CONFIG, ValueFormControl, VirtualScroll, acceptsFile, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, canonicalHex, contrastForeground, formatHsl, formatRgb, hslToHsv, hsvToHsl, hsvToRgb, isTypeRejected, normalizeAccept, parseColor, provideThalassicIcons, provideThalassicUIConfig, relativeLuminance, resolveActivityLevel, rgbToHsv, rgbaToHex, toImagePreviewImage };
|
|
7887
|
-
export type { AccordionConfig, ActivityHeatmapConfig, ActivityHeatmapDay, ActivityHeatmapEntry, ActivityHeatmapLabels, ActivityHeatmapMonth, ActivityHeatmapRow, ActivityHeatmapTotal, AlertConfig, AutocompleteConfig, BadgeConfig, BreadcrumbItem, BreadcrumbItemContext, BreadcrumbsConfig, ButtonConfig, CalendarConfig, CalendarDayContext, CalendarEvent, CalendarEventContext, CalendarLabels, CalendarRange, CarouselConfig, CarouselLabels, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ColorInputConfig, ColorInputLabels, ColorPickerConfig, ColorPickerLabels, ColorRangeConfig, ColorRangeLabels, ColorSwatchPickerConfig, ColorSwatchPickerLabels, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOffset, DrawerOpenConfig, DrawerOpening, DrawerPanelConfig, DrawerSharedPair, DrawerSlideTiming, EyeDropperConstructor, FabMenuItemDefinition, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, FormItemLabelContext, HighlightConfig, HighlightSegment, Hsla, Hsva, IconConfig, ImageCompareConfig, ImagePreviewConfig, ImagePreviewData, ImagePreviewGroupItem, ImagePreviewImage, ImagePreviewLabels, ImagePreviewOpenConfig, ImagePreviewSource, InfiniteScrollConfig, InfiniteScrollLabels, InputConfig, InputNumberConfig, KbdConfig, LoaderConfig, MarkConfig, MaskResult, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MenuRenderBlock, MenuRenderEntry, MenuRenderGroup, MenuRenderSingle, MultiSelectConfig, OdometerConfig, OdometerSlot, OdometerToken, OverlayArrowPosition, PaginationConfig, PaginationLabels, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, ProgressConfig, RadioButtonConfig, RatingConfig, RatingLabels, RatingStarContext, Rgba, RippleConfig, SelectConfig, SheetDetent, SheetHeaderTemplate, SheetMeasures, SkeletonConfig, SliderConfig, SplitterConfig, StepConfig, StepperConfig, StepperLabels, StepperSelectEvent, SwipeActionsConfig, SwitchConfig, TabNavConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToastConfig, ToastOptions, ToastRef, ToastState, ToggleButtonConfig, ToggleGroupConfig, TooltipConfig, TooltipOwner, TooltipRequest, TrackBy, VirtualScrollConfig, VirtualScrollContext, acceptInput, accordionHeadingLevel, accordionVariant, alertColor, autocompleteFilterMode, badgeColor, badgePosition, badgeVariant, breadcrumbsSize, buttonColor, buttonType, buttonVariant, calendarCompact, calendarView, chipColor, chipSize, chipTemplateContext, chipVariant, color, colorFormat, colorRangeChannel, colorRangeSize, confirmActionsAlign, confirmButton, confirmSize, controlSize, dateTimePickerMode, dialogFooterAlign, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerGrabber, drawerOpenPhase, drawerSide, drawerSize, errorTrigger, fileDragState, fileInputVariant, hexCase, iconRegistry, iconRenderer, imageCompareOrientation, infiniteScrollState, inputVariant, labelPosition, loaderSize, menuItemRole, menuItemType, menuPosition, numberInputMode, odometerDirection, orientation, overlayArrowAlignment, overlayArrowSide, overlayPosition, paginationItem, pinInputType, pointerType, progressActiveSegment, progressColor, radius, radiusValue, ratingColor, resolvedConfirmButton, sheetDetentSize, sheetFocusRestoreTarget, size, sliderColor, splitterOrientation, stepperColor, stepperLabelPosition, stepperOrientation, stepperValue, switchColor, systemIcon, tabValue, tableColumnAlignment, tableColumnCollapse, tabsHeaderAlign, tabsHeaderPosition, tabsItemsAlign, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, toastAction, toastColor, toastPosition, toastSeverity, toastStacking, toggleButtonColor, toggleButtonVariant, toggleGroupVariant, tooltipColor, tooltipOrigin, tooltipPosition, tooltipSource };
|
|
8426
|
+
export { ACCORDION_CONFIG, ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, ALPHA_MAX, AUTOCOMPLETE_CONFIG, Accordion, AccordionItem, ActivityHeatmap, Alert, AlertIcon, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CAROUSEL_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, COLOR_INPUT_CONFIG, COLOR_PICKER_CONFIG, COLOR_PICKER_DEFAULT_VALUE, COLOR_RANGE_CONFIG, COLOR_SWATCH_PICKER_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Carousel, CarouselSlide, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, ColorInput, ColorPicker, ColorRange, ColorSwatch, ColorSwatchPicker, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ACCORDION_CONFIG, DEFAULT_ACTIVITY_HEATMAP_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CAROUSEL_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_COLOR_INPUT_CONFIG, DEFAULT_COLOR_PICKER_CONFIG, DEFAULT_COLOR_RANGE_CONFIG, DEFAULT_COLOR_SWATCH_PICKER_CONFIG, DEFAULT_CONFIRM_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_DRAWER_CONFIG, DEFAULT_FILE_INPUT_CONFIG, DEFAULT_FORM_CONTROL_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_HIGHLIGHT_CONFIG, DEFAULT_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_IMAGE_PREVIEW_CONFIG, DEFAULT_INFINITE_SCROLL_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MARK_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_ODOMETER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PAGINATION_QUERY_SYNC_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_PROGRESS_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_RATING_CONFIG, DEFAULT_RIPPLE_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SLIDER_CONFIG, DEFAULT_SLIDING_INDICATOR_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEPPER_LABELS, DEFAULT_STEP_CONFIG, DEFAULT_SWIPE_ACTIONS_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TAB_NAV_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE, DEFAULT_VIRTUAL_SCROLL_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DRAWER_OPENING, DRAWER_PANEL_CONFIG, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogRef, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, DrawerSharedDirective, DrawerTriggerDirective, FILE_INPUT_CONFIG, FORMAT_CYCLE, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FabMenu, FileDropTargetDirective, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, FormItemLabelAction, FormSkeleton, HIGHLIGHT_CONFIG, HUE_MAX, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, IMAGE_PREVIEW_CONFIG, INFINITE_SCROLL_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, ImagePreview, ImagePreviewDirective, ImagePreviewGroupDirective, ImagePreviewRef, ImagePreviewService, InfiniteScroll, Input, InputDirective, InputNumber, KBD_CONFIG, Kbd, LOADER_CONFIG, Loader, MARK_CONFIG, MASK_TOKENS, MENU_CONFIG, MULTI_SELECT_CONFIG, Mark, MaskDirective, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, ODOMETER_CONFIG, Odometer, PAGINATION_CONFIG, PAGINATION_QUERY_SYNC_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, POSITIONED_VALUES, PRESS_SCALE_PROPERTY, PROGRESS_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PickerField, PinInput, Popover, Progress, RADIO_BUTTON_CONFIG, RATING_CONFIG, RIPPLE_ACTIVE_CLASS, RIPPLE_CONFIG, RIPPLE_DIAMETER_PROPERTY, RIPPLE_MINIMUM_HOLD_MS, RIPPLE_MOVE_SLOP_PX, RIPPLE_RELEASED_CLASS, RIPPLE_TOUCH_DELAY_MS, RIPPLE_X_PROPERTY, RIPPLE_Y_PROPERTY, RadioButton, Rating, RippleDirective, SELECT_CONFIG, SKELETON_CONFIG, SLIDER_CONFIG, SLIDING_INDICATOR_ATTRIBUTE, SLIDING_INDICATOR_BOX_PROPERTIES, SLIDING_INDICATOR_CONFIG, SLIDING_INDICATOR_HEIGHT_PROPERTY, SLIDING_INDICATOR_PLACED, SLIDING_INDICATOR_TRAVELLING, SLIDING_INDICATOR_WIDTH_PROPERTY, SLIDING_INDICATOR_X_PROPERTY, SLIDING_INDICATOR_Y_PROPERTY, SLIDING_TABS_VARIANTS, SPLITTER_CONFIG, STEPPER_CONFIG, SV_KEYBOARD_STEP, SV_KEYBOARD_STEP_LARGE, SWIPE_ACTIONS_CONFIG, SWITCH_CONFIG, Select, Sheet, SheetHeaderDirective, Skeleton, Slider, Splitter, SplitterPanel, Step, Stepper, SwipeActions, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, TOUCH_HANDOVER_WINDOW_MS, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, VIRTUAL_SCROLL_CONFIG, ValueFormControl, VirtualScroll, acceptsFile, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, canonicalHex, contrastForeground, formatHsl, formatRgb, hslToHsv, hsvToHsl, hsvToRgb, injectFormSkeleton, isTypeRejected, normalizeAccept, parseColor, provideFormItemConfig, provideThalassicIcons, provideThalassicUIConfig, relativeLuminance, resolveActivityLevel, rgbToHsv, rgbaToHex, slidingIndicator, toImagePreviewImage };
|
|
8427
|
+
export type { AccordionConfig, ActivityHeatmapConfig, ActivityHeatmapDay, ActivityHeatmapEntry, ActivityHeatmapLabels, ActivityHeatmapMonth, ActivityHeatmapRow, ActivityHeatmapTotal, AlertConfig, AutocompleteConfig, BadgeConfig, BreadcrumbItem, BreadcrumbItemContext, BreadcrumbsConfig, ButtonConfig, CalendarConfig, CalendarDayContext, CalendarEvent, CalendarEventContext, CalendarLabels, CalendarPeekWeeks, CalendarRange, CarouselConfig, CarouselLabels, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ColorInputConfig, ColorInputLabels, ColorPickerConfig, ColorPickerLabels, ColorRangeConfig, ColorRangeLabels, ColorSwatchPickerConfig, ColorSwatchPickerLabels, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOffset, DrawerOpenConfig, DrawerOpening, DrawerPanelConfig, DrawerSharedPair, DrawerSlideTiming, EyeDropperConstructor, FabMenuItemDefinition, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FileInputTriggerContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, FormItemLabelContext, HighlightConfig, HighlightSegment, Hsla, Hsva, IconConfig, ImageCompareConfig, ImagePreviewConfig, ImagePreviewData, ImagePreviewGroupItem, ImagePreviewImage, ImagePreviewLabels, ImagePreviewOpenConfig, ImagePreviewSource, InfiniteScrollConfig, InfiniteScrollLabels, InputConfig, InputNumberConfig, KbdConfig, LoaderConfig, MarkConfig, MaskResult, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MenuRenderBlock, MenuRenderEntry, MenuRenderGroup, MenuRenderSingle, MultiSelectConfig, OdometerConfig, OdometerSlot, OdometerToken, OverlayArrowPosition, PaginationConfig, PaginationLabels, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, ProgressConfig, RadioButtonConfig, RatingConfig, RatingLabels, RatingStarContext, Rgba, RippleConfig, SelectConfig, SheetDetent, SheetHeaderTemplate, SheetMeasures, SkeletonConfig, SliderConfig, SlidingIndicatorBox, SlidingIndicatorConfig, SlidingIndicatorMeasurement, SlidingIndicatorOptions, SplitterConfig, StepConfig, StepperConfig, StepperLabels, StepperSelectEvent, SwipeActionsConfig, SwitchConfig, TabNavConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToastConfig, ToastOptions, ToastRef, ToastState, ToggleButtonConfig, ToggleGroupConfig, TooltipConfig, TooltipOwner, TooltipRequest, TrackBy, VirtualScrollConfig, VirtualScrollContext, acceptInput, accordionHeadingLevel, accordionVariant, alertColor, autocompleteFilterMode, badgeColor, badgePosition, badgeVariant, breadcrumbsSize, buttonColor, buttonType, buttonVariant, calendarCompact, calendarView, chipColor, chipSize, chipTemplateContext, chipVariant, color, colorFormat, colorRangeChannel, colorRangeSize, confirmActionsAlign, confirmButton, confirmSize, controlSize, dateTimePickerMode, dialogFooterAlign, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerGrabber, drawerOpenPhase, drawerSide, drawerSize, errorTrigger, fileDragState, fileInputVariant, hexCase, iconRegistry, iconRenderer, imageCompareOrientation, infiniteScrollState, inputVariant, labelPosition, loaderSize, menuItemRole, menuItemType, menuPosition, numberInputMode, odometerDirection, orientation, overlayArrowAlignment, overlayArrowSide, overlayPosition, paginationItem, pinInputType, pointerType, progressActiveSegment, progressColor, radius, radiusValue, ratingColor, resolvedConfirmButton, sheetDetentSize, sheetFocusRestoreTarget, size, sliderColor, splitterOrientation, stepperColor, stepperLabelPosition, stepperOrientation, stepperValue, switchColor, systemIcon, tabValue, tableColumnAlignment, tableColumnCollapse, tabsHeaderAlign, tabsHeaderPosition, tabsItemsAlign, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, toastAction, toastColor, toastPosition, toastSeverity, toastStacking, toggleButtonColor, toggleButtonVariant, toggleGroupVariant, tooltipColor, tooltipOrigin, tooltipPosition, tooltipSource };
|