@thalassic/ui 22.20.1 → 22.22.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/fesm2022/thalassic-ui-charts.mjs +5 -3
- package/fesm2022/thalassic-ui-charts.mjs.map +1 -1
- package/fesm2022/thalassic-ui-media.mjs +1194 -0
- package/fesm2022/thalassic-ui-media.mjs.map +1 -0
- package/fesm2022/thalassic-ui-rich-text-editor.mjs +49 -23
- package/fesm2022/thalassic-ui-rich-text-editor.mjs.map +1 -1
- package/fesm2022/thalassic-ui.mjs +12451 -6503
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +5 -1
- package/types/thalassic-ui-charts.d.ts +5 -0
- package/types/thalassic-ui-media.d.ts +300 -0
- package/types/thalassic-ui-rich-text-editor.d.ts +18 -0
- package/types/thalassic-ui.d.ts +2929 -129
package/types/thalassic-ui.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TemplateRef, TrackByFunction, OutputEmitterRef, Type, EnvironmentProviders,
|
|
2
|
+
import { ElementRef, ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TemplateRef, TrackByFunction, OutputEmitterRef, Type, EnvironmentProviders, OnDestroy, Renderer2, Injector, OnInit, ComponentRef } from '@angular/core';
|
|
3
3
|
import { FormUiControl, WithOptionalFieldTree, ValidationError, FormValueControl, FormCheckboxControl, ReadonlyFieldTree } from '@angular/forms/signals';
|
|
4
4
|
import { Day, Locale } from 'date-fns';
|
|
5
5
|
import * as i1 from '@thalassic/core';
|
|
6
|
-
import { Point, breakpoint } from '@thalassic/core';
|
|
6
|
+
import { SwipeEvent, PanEvent, Point, breakpoint } from '@thalassic/core';
|
|
7
7
|
import { FlexibleConnectedPositionStrategyOrigin, ConnectedPosition } from '@angular/cdk/overlay';
|
|
8
8
|
import * as _thalassic_ui from '@thalassic/ui';
|
|
9
9
|
import { CdkDialogContainer, DialogRef as DialogRef$1, DialogRole } from '@angular/cdk/dialog';
|
|
@@ -26,6 +26,12 @@ interface AccessibilityConfig {
|
|
|
26
26
|
|
|
27
27
|
declare abstract class FormControl<TValue = unknown> implements FormUiControl<TValue> {
|
|
28
28
|
private readonly _formControlConfig;
|
|
29
|
+
/**
|
|
30
|
+
* The control's host element. Public because a container that arranges controls — a
|
|
31
|
+
* form control group placing an addon beside one — has to locate a control in its own
|
|
32
|
+
* layout before it can hand anything to it.
|
|
33
|
+
*/
|
|
34
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
29
35
|
readonly touched: ModelSignal<boolean>;
|
|
30
36
|
readonly name: InputSignal<string>;
|
|
31
37
|
/**
|
|
@@ -49,6 +55,11 @@ declare abstract class FormControl<TValue = unknown> implements FormUiControl<TV
|
|
|
49
55
|
* consumer's description and the live error message.
|
|
50
56
|
*/
|
|
51
57
|
readonly errorMessageId: WritableSignal<string | null>;
|
|
58
|
+
/**
|
|
59
|
+
* `id` of the hint element, set by an enclosing `tls-form-item` while it renders a hint. Merged
|
|
60
|
+
* with `ariaDescribedby` so the guidance shown beneath the control is announced on focus.
|
|
61
|
+
*/
|
|
62
|
+
readonly hintMessageId: WritableSignal<string | null>;
|
|
52
63
|
/**
|
|
53
64
|
* `id` of the visible `<label>` element rendered by an enclosing `tls-form-item`. Merged with
|
|
54
65
|
* `ariaLabelledby` so the control's `aria-labelledby` points at the form-item label while still
|
|
@@ -62,7 +73,7 @@ declare abstract class FormControl<TValue = unknown> implements FormUiControl<TV
|
|
|
62
73
|
readonly formItemInputId: WritableSignal<string | null>;
|
|
63
74
|
/** Whether this control has a single native labelable element that a `<label for>` can target. */
|
|
64
75
|
readonly supportsLabelFor: boolean;
|
|
65
|
-
/** Combined `aria-describedby` value (consumer description + form-item error), or null when empty. */
|
|
76
|
+
/** Combined `aria-describedby` value (consumer description + form-item hint and error), or null when empty. */
|
|
66
77
|
protected readonly describedBy: Signal<string | null>;
|
|
67
78
|
/** Combined `aria-labelledby` value (consumer label id + form-item label), or null when empty. */
|
|
68
79
|
protected readonly labelledBy: Signal<string | null>;
|
|
@@ -85,6 +96,25 @@ declare abstract class FormControl<TValue = unknown> implements FormUiControl<TV
|
|
|
85
96
|
protected CLASS_NAME: string;
|
|
86
97
|
protected notInteractive: Signal<boolean>;
|
|
87
98
|
protected controlClasses: Signal<string[]>;
|
|
99
|
+
/**
|
|
100
|
+
* Moves focus to the control. Focus lands on the element that actually takes it — the
|
|
101
|
+
* native input a wrapper renders, or a composite's trigger — never on the host, which
|
|
102
|
+
* is only a wrapper.
|
|
103
|
+
*/
|
|
104
|
+
focus(): void;
|
|
105
|
+
/**
|
|
106
|
+
* Hands the control over as though the user had reached for it directly. Focus alone
|
|
107
|
+
* for a control whose value is edited in place; a control that keeps its value behind
|
|
108
|
+
* a panel — a select, a picker — also opens that panel, since focus on its own leaves
|
|
109
|
+
* such a control looking untouched and the user still a click away from the value.
|
|
110
|
+
*/
|
|
111
|
+
activate(): void;
|
|
112
|
+
/**
|
|
113
|
+
* The element focus lands on. Defaults to the first focusable element the control
|
|
114
|
+
* renders, which is the right one for a control built around a single native element;
|
|
115
|
+
* a control with a more elaborate view names its own.
|
|
116
|
+
*/
|
|
117
|
+
protected focusTarget(): HTMLElement | null;
|
|
88
118
|
protected baseControlClasses(): string[];
|
|
89
119
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormControl<any>, never>;
|
|
90
120
|
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>;
|
|
@@ -123,9 +153,24 @@ interface Option<V = unknown> {
|
|
|
123
153
|
value: V;
|
|
124
154
|
label: string;
|
|
125
155
|
disabled: boolean;
|
|
156
|
+
/** Label of the group the option is listed under, or `null` when it belongs to none. */
|
|
157
|
+
group: string | null;
|
|
126
158
|
source: unknown;
|
|
127
159
|
}
|
|
128
160
|
|
|
161
|
+
/** One option of an {@link OptionGroup}, with its position in the flat option list. */
|
|
162
|
+
interface IndexedOption<V = unknown> {
|
|
163
|
+
option: Option<V>;
|
|
164
|
+
/** Position in the flat option list, which keyboard navigation and option ids index into. */
|
|
165
|
+
index: number;
|
|
166
|
+
}
|
|
167
|
+
/** A run of options listed under one group heading. */
|
|
168
|
+
interface OptionGroup<V = unknown> {
|
|
169
|
+
/** The heading, or `null` for the options that belong to no group, which are listed bare. */
|
|
170
|
+
label: string | null;
|
|
171
|
+
options: IndexedOption<V>[];
|
|
172
|
+
}
|
|
173
|
+
|
|
129
174
|
type optionInput<T> = string | number | T;
|
|
130
175
|
|
|
131
176
|
interface SelectionGroupOptionContext<T = unknown, V = unknown> {
|
|
@@ -180,18 +225,39 @@ interface ConnectedOverlayConfig {
|
|
|
180
225
|
origin: FlexibleConnectedPositionStrategyOrigin;
|
|
181
226
|
/** Connected positions to try, in order of preference. */
|
|
182
227
|
positions: ConnectedPosition[];
|
|
228
|
+
/**
|
|
229
|
+
* How the pane is placed. `'connected'` (the default) anchors it beside the
|
|
230
|
+
* origin through `positions`. `'sheet'` pins it to the viewport's bottom
|
|
231
|
+
* edge at full width — the origin and positions are ignored, the page's
|
|
232
|
+
* scroll is blocked, and the backdrop defaults to the shared modal scrim so
|
|
233
|
+
* the sheet reads as the modal surface it is.
|
|
234
|
+
*/
|
|
235
|
+
presentation?: 'connected' | 'sheet';
|
|
183
236
|
/** Forwarded to the position strategy. Defaults to the CDK default (true). */
|
|
184
237
|
flexibleDimensions?: boolean;
|
|
185
238
|
/** Forwarded to the position strategy. Defaults to the CDK default (true). */
|
|
186
239
|
push?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Minimum gap in px kept between the pane and the viewport's edges, both where
|
|
242
|
+
* the pane is pushed back on screen and where it is shrunk to fit. Defaults to
|
|
243
|
+
* the CDK default (0), which lets a constrained pane touch the edge.
|
|
244
|
+
*/
|
|
245
|
+
viewportMargin?: number;
|
|
246
|
+
/**
|
|
247
|
+
* Cap the pane's height at the viewport's, less `viewportMargin` at either
|
|
248
|
+
* edge, so a pane too tall to fit beside the origin is pushed on screen whole
|
|
249
|
+
* instead of at full height running off it. Only for content that scrolls
|
|
250
|
+
* within the pane. Defaults to `false`.
|
|
251
|
+
*/
|
|
252
|
+
shrinkToFit?: boolean;
|
|
187
253
|
/** Scroll handling while open. Defaults to `'reposition'`. */
|
|
188
254
|
scrollStrategy?: 'reposition' | 'close';
|
|
189
255
|
/** Whether to render a backdrop. Defaults to `true`. */
|
|
190
256
|
hasBackdrop?: boolean;
|
|
191
257
|
/** Backdrop class when a backdrop is rendered. Defaults to the transparent backdrop. */
|
|
192
258
|
backdropClass?: string;
|
|
193
|
-
/** Extra class(es) applied to the overlay pane. */
|
|
194
|
-
panelClass?: string | string[];
|
|
259
|
+
/** Extra class(es) applied to the overlay pane; `undefined` adds none. */
|
|
260
|
+
panelClass?: string | string[] | undefined;
|
|
195
261
|
/** Close when the backdrop is clicked. Defaults to `true` when a backdrop is rendered. */
|
|
196
262
|
closeOnBackdropClick?: boolean;
|
|
197
263
|
/** Close on an outside pointer event. Defaults to `true` when no backdrop is rendered. */
|
|
@@ -233,8 +299,22 @@ declare class OverlayManager {
|
|
|
233
299
|
private _overlayRef;
|
|
234
300
|
private _config;
|
|
235
301
|
private readonly _isOpen;
|
|
302
|
+
/**
|
|
303
|
+
* Armed by `ignoreTrailingAuxClick` on open: swallow the first outside
|
|
304
|
+
* `auxclick` so the right-click gesture that opened a context menu doesn't
|
|
305
|
+
* immediately dismiss it. Consumed one-shot (not on a timer) because the user
|
|
306
|
+
* may hold the button arbitrarily long before releasing — the `auxclick`
|
|
307
|
+
* fires on release — so the guard must survive until that first `auxclick`
|
|
308
|
+
* actually arrives. Later outside pointers still dismiss.
|
|
309
|
+
*/
|
|
236
310
|
private _ignoreTrailingAuxClick;
|
|
237
311
|
readonly isOpen: i0.Signal<boolean>;
|
|
312
|
+
/** Backdrop element of the open overlay; `null` while closed or without one. */
|
|
313
|
+
get backdropElement(): HTMLElement | null;
|
|
314
|
+
/**
|
|
315
|
+
* Dispose the overlay with the host. Registered in a field initializer so no
|
|
316
|
+
* constructor is needed.
|
|
317
|
+
*/
|
|
238
318
|
private readonly _teardown;
|
|
239
319
|
open(config: ConnectedOverlayConfig): void;
|
|
240
320
|
close(): void;
|
|
@@ -282,6 +362,9 @@ interface OverlayArrowPosition {
|
|
|
282
362
|
|
|
283
363
|
type overlayPosition = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
284
364
|
|
|
365
|
+
/** Kind of pointing device that produced a press, as reported by `PointerEvent.pointerType`. */
|
|
366
|
+
type pointerType = 'mouse' | 'touch' | 'pen';
|
|
367
|
+
|
|
285
368
|
type radius = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
286
369
|
|
|
287
370
|
/**
|
|
@@ -300,6 +383,101 @@ type size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
300
383
|
*/
|
|
301
384
|
type TrackBy<T> = keyof T | TrackByFunction<T>;
|
|
302
385
|
|
|
386
|
+
type accordionVariant = 'flat' | 'outlined' | 'separated';
|
|
387
|
+
/**
|
|
388
|
+
* Rank the item headings occupy in the document outline. An accordion sits
|
|
389
|
+
* somewhere inside a page whose headings already run `h1`, `h2`, … so the level
|
|
390
|
+
* is chosen by the surrounding content rather than fixed by the component.
|
|
391
|
+
* `h1` is excluded: it names the page, never a collapsible section.
|
|
392
|
+
*/
|
|
393
|
+
type accordionHeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* One collapsible section, declared as content of a `tls-accordion`. The host
|
|
397
|
+
* element itself is never rendered: the accordion reads the captured
|
|
398
|
+
* content/header templates and renders them inside its own trigger/panel
|
|
399
|
+
* structure, which is what allows the panel content to be deferred until the
|
|
400
|
+
* section is first expanded.
|
|
401
|
+
*
|
|
402
|
+
* The default header renders `label` above an optional `description`. Two
|
|
403
|
+
* template slots override it: `#accordionItemHeader` replaces that text
|
|
404
|
+
* entirely, and `#accordionItemTrailing` renders between the header and the
|
|
405
|
+
* chevron.
|
|
406
|
+
*/
|
|
407
|
+
declare class AccordionItem {
|
|
408
|
+
/**
|
|
409
|
+
* Text of the heading. Required even alongside a header template, which
|
|
410
|
+
* renders in its place but leaves the label as the section's accessible name
|
|
411
|
+
* — a header composed only of an icon would otherwise have none.
|
|
412
|
+
*/
|
|
413
|
+
readonly label: InputSignal<string>;
|
|
414
|
+
/** Secondary line rendered under the label. */
|
|
415
|
+
readonly description: InputSignal<string | undefined>;
|
|
416
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
417
|
+
/** Overrides the heading rank the accordion assigns to its items. */
|
|
418
|
+
readonly headingLevel: InputSignal<accordionHeadingLevel | undefined>;
|
|
419
|
+
readonly expanded: ModelSignal<boolean>;
|
|
420
|
+
readonly headerTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
421
|
+
readonly trailingTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
422
|
+
readonly contentTemplateRef: Signal<TemplateRef<unknown>>;
|
|
423
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItem, never>;
|
|
424
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItem, "tls-accordion-item", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "headingLevel": { "alias": "headingLevel"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, ["headerTemplateRef", "trailingTemplateRef"], ["*"], true, never>;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* A stack of collapsible sections. The container owns the policy shared by the
|
|
429
|
+
* whole stack — how many sections may stay open, whether arrowing wraps, the
|
|
430
|
+
* heading rank the items occupy — while each `tls-accordion-item` owns its own
|
|
431
|
+
* expanded state.
|
|
432
|
+
*/
|
|
433
|
+
declare class Accordion {
|
|
434
|
+
private readonly _config;
|
|
435
|
+
readonly variant: InputSignal<accordionVariant>;
|
|
436
|
+
readonly multiExpandable: InputSignalWithTransform<boolean, unknown>;
|
|
437
|
+
readonly headingLevel: InputSignal<accordionHeadingLevel>;
|
|
438
|
+
readonly preserveContent: InputSignalWithTransform<boolean, unknown>;
|
|
439
|
+
readonly wrap: InputSignalWithTransform<boolean, unknown>;
|
|
440
|
+
readonly softDisabled: InputSignalWithTransform<boolean, unknown>;
|
|
441
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
442
|
+
/** Accessible name for the stack as a whole. */
|
|
443
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
444
|
+
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
445
|
+
protected readonly items: Signal<readonly AccordionItem[]>;
|
|
446
|
+
private readonly _group;
|
|
447
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
448
|
+
protected readonly hasAccessibleName: Signal<boolean>;
|
|
449
|
+
/** Expands every item. Takes effect only while the accordion is multi-expandable. */
|
|
450
|
+
expandAll(): void;
|
|
451
|
+
collapseAll(): void;
|
|
452
|
+
protected resolveHeadingLevel(item: AccordionItem): accordionHeadingLevel;
|
|
453
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Accordion, never>;
|
|
454
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Accordion, "tls-accordion", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "multiExpandable": { "alias": "multiExpandable"; "required": false; "isSignal": true; }; "headingLevel": { "alias": "headingLevel"; "required": false; "isSignal": true; }; "preserveContent": { "alias": "preserveContent"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "softDisabled": { "alias": "softDisabled"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, {}, ["items"], never, true, never>;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
interface AccordionConfig {
|
|
458
|
+
variant: accordionVariant;
|
|
459
|
+
/** Whether more than one item may stay expanded at a time. */
|
|
460
|
+
multiExpandable: boolean;
|
|
461
|
+
headingLevel: accordionHeadingLevel;
|
|
462
|
+
/**
|
|
463
|
+
* Whether a panel's content stays in the DOM once it has been expanded. The
|
|
464
|
+
* collapse transition needs the content to outlive the collapse, so turning
|
|
465
|
+
* this off trades the outgoing animation for a smaller DOM.
|
|
466
|
+
*/
|
|
467
|
+
preserveContent: boolean;
|
|
468
|
+
/** Whether arrowing past the last trigger returns to the first, and vice versa. */
|
|
469
|
+
wrap: boolean;
|
|
470
|
+
/**
|
|
471
|
+
* Whether a disabled trigger still receives focus. Keeping it focusable lets a
|
|
472
|
+
* screen-reader user reach the item and hear that it is unavailable, rather
|
|
473
|
+
* than the item vanishing from the keyboard order.
|
|
474
|
+
*/
|
|
475
|
+
softDisabled: boolean;
|
|
476
|
+
}
|
|
477
|
+
declare const DEFAULT_ACCORDION_CONFIG: AccordionConfig;
|
|
478
|
+
|
|
479
|
+
declare const ACCORDION_CONFIG: InjectionToken<AccordionConfig>;
|
|
480
|
+
|
|
303
481
|
/** A single activity record. Records falling on the same calendar day are summed. */
|
|
304
482
|
interface ActivityHeatmapEntry {
|
|
305
483
|
/** Day the activity happened on; the time of day is ignored. */
|
|
@@ -382,8 +560,8 @@ declare class ActivityHeatmap {
|
|
|
382
560
|
protected readonly legendLess: string;
|
|
383
561
|
protected readonly legendMore: string;
|
|
384
562
|
private readonly _dateOptions;
|
|
385
|
-
/**
|
|
386
|
-
private readonly
|
|
563
|
+
/** Today, so the today marker moves across midnight and the grid rebuilds only then. */
|
|
564
|
+
private readonly _today;
|
|
387
565
|
/** Steps actually rendered; a heatmap needs an empty step plus at least one active one. */
|
|
388
566
|
protected readonly resolvedLevels: Signal<number>;
|
|
389
567
|
protected readonly gridLabel: Signal<string | undefined>;
|
|
@@ -492,7 +670,7 @@ declare const resolveActivityLevel: (count: number, thresholds: number[]) => num
|
|
|
492
670
|
* them for their own kit via `provideThalassicIcons`, so this list is the icon
|
|
493
671
|
* contract between the library and the app.
|
|
494
672
|
*/
|
|
495
|
-
type systemIcon = 'check' | 'indeterminate' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevrons-left' | 'chevrons-right' | 'close' | 'star' | 'star-filled' | 'success' | 'warning' | 'error' | 'info' | 'bold' | 'italic' | 'strikethrough' | 'inline-code' | 'bullet-list' | 'ordered-list' | 'blockquote' | 'link' | 'code-block';
|
|
673
|
+
type systemIcon = 'check' | 'indeterminate' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevrons-left' | 'chevrons-right' | 'close' | 'plus' | 'star' | 'star-filled' | 'success' | 'warning' | 'error' | 'info' | 'bold' | 'italic' | 'strikethrough' | 'inline-code' | 'bullet-list' | 'ordered-list' | 'blockquote' | 'link' | 'code-block' | 'zoom-in' | 'zoom-out' | 'zoom-reset' | 'play' | 'pause' | 'replay' | 'volume' | 'volume-muted' | 'fullscreen' | 'fullscreen-exit' | 'picture-in-picture' | 'captions' | 'settings' | 'eyedropper';
|
|
496
674
|
|
|
497
675
|
declare class Icon {
|
|
498
676
|
private readonly _iconService;
|
|
@@ -621,6 +799,16 @@ declare class Alert {
|
|
|
621
799
|
/** Renders an arbitrary SVG or image URL as the icon instead of a registry glyph. */
|
|
622
800
|
readonly iconSrc: InputSignal<string | undefined>;
|
|
623
801
|
readonly hideIcon: InputSignalWithTransform<boolean, unknown>;
|
|
802
|
+
/**
|
|
803
|
+
* Renders a trailing close button. Dismissal is reported through `dismissed`;
|
|
804
|
+
* the consumer owns removal — including moving keyboard focus somewhere
|
|
805
|
+
* sensible, since removing the alert destroys the focused button and focus
|
|
806
|
+
* would otherwise fall back to the document body.
|
|
807
|
+
*/
|
|
808
|
+
readonly closable: InputSignalWithTransform<boolean, unknown>;
|
|
809
|
+
/** Accessible name of the close button. */
|
|
810
|
+
readonly dismissLabel: InputSignal<string>;
|
|
811
|
+
readonly dismissed: OutputEmitterRef<void>;
|
|
624
812
|
/** Consumer-provided visual rendered in place of the built-in icon. */
|
|
625
813
|
protected readonly projectedIcon: Signal<AlertIcon | undefined>;
|
|
626
814
|
protected readonly displayLabel: Signal<string>;
|
|
@@ -631,8 +819,9 @@ declare class Alert {
|
|
|
631
819
|
protected readonly displayIcon: Signal<systemIcon | undefined>;
|
|
632
820
|
protected readonly hostClasses: Signal<string[]>;
|
|
633
821
|
protected readonly hostRole: Signal<string>;
|
|
822
|
+
protected onClose(): void;
|
|
634
823
|
static ɵfac: i0.ɵɵFactoryDeclaration<Alert, never>;
|
|
635
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Alert, "tls-alert", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "hideLabel": { "alias": "hideLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconSrc": { "alias": "iconSrc"; "required": false; "isSignal": true; }; "hideIcon": { "alias": "hideIcon"; "required": false; "isSignal": true; }; }, {}, ["projectedIcon"], ["[tlsAlertIcon]", "*"], true, never>;
|
|
824
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Alert, "tls-alert", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "hideLabel": { "alias": "hideLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconSrc": { "alias": "iconSrc"; "required": false; "isSignal": true; }; "hideIcon": { "alias": "hideIcon"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "dismissLabel": { "alias": "dismissLabel"; "required": false; "isSignal": true; }; }, { "dismissed": "dismissed"; }, ["projectedIcon"], ["[tlsAlertIcon]", "*"], true, never>;
|
|
636
825
|
}
|
|
637
826
|
|
|
638
827
|
interface AlertConfig {
|
|
@@ -642,6 +831,9 @@ interface AlertConfig {
|
|
|
642
831
|
/** Leading glyph, either one icon for every color or a per-color status set. */
|
|
643
832
|
icon: Record<alertColor, systemIcon> | systemIcon;
|
|
644
833
|
hideIcon: boolean;
|
|
834
|
+
closable: boolean;
|
|
835
|
+
/** Accessible name of the close button; the global place to localize it. */
|
|
836
|
+
dismissLabel: string;
|
|
645
837
|
}
|
|
646
838
|
declare const DEFAULT_ALERT_CONFIG: AlertConfig;
|
|
647
839
|
|
|
@@ -684,12 +876,27 @@ declare const DEFAULT_BADGE_CONFIG: BadgeConfig;
|
|
|
684
876
|
|
|
685
877
|
declare const BADGE_CONFIG: InjectionToken<BadgeConfig>;
|
|
686
878
|
|
|
879
|
+
type breadcrumbsSize = 'sm' | 'md' | 'lg';
|
|
687
880
|
interface BreadcrumbItem {
|
|
688
881
|
label: string;
|
|
689
882
|
/** Router link for the item. An item without a link renders as plain text. */
|
|
690
883
|
link?: string | unknown[];
|
|
691
884
|
/** Icon source rendered before the label (see tls-icon's iconSrc). */
|
|
692
885
|
icon?: string;
|
|
886
|
+
/**
|
|
887
|
+
* Whether the crumb gives way when a `nowrap` trail runs out of room — for a
|
|
888
|
+
* crumb whose label has no bound on its length, such as a name someone typed.
|
|
889
|
+
* With no crumb marked, the trailing one gives way; once any is marked, only
|
|
890
|
+
* the marked ones do, so a short crumb after a long one keeps its label whole.
|
|
891
|
+
*/
|
|
892
|
+
truncate?: boolean;
|
|
893
|
+
/**
|
|
894
|
+
* `view-transition-name` of the separator that follows the crumb, so a
|
|
895
|
+
* transition can carry it along with the crumb it belongs to rather than
|
|
896
|
+
* leaving it to jump to its new place. Unique per trail, like any transition
|
|
897
|
+
* name; the trailing crumb has no separator, so its name goes unused.
|
|
898
|
+
*/
|
|
899
|
+
separatorTransitionName?: string;
|
|
693
900
|
}
|
|
694
901
|
/**
|
|
695
902
|
* Context exposed to a custom item template (see Breadcrumbs.itemTemplate). The
|
|
@@ -705,18 +912,41 @@ interface BreadcrumbItemContext {
|
|
|
705
912
|
|
|
706
913
|
declare class Breadcrumbs {
|
|
707
914
|
private readonly _config;
|
|
708
|
-
readonly items:
|
|
709
|
-
readonly separatorIcon:
|
|
915
|
+
readonly items: InputSignal<BreadcrumbItem[]>;
|
|
916
|
+
readonly separatorIcon: InputSignal<systemIcon>;
|
|
917
|
+
/** Overall scale of the trail: type size, link height, and glyph sizes together. */
|
|
918
|
+
readonly size: InputSignal<breadcrumbsSize>;
|
|
919
|
+
/**
|
|
920
|
+
* Keeps the trail on a single line: instead of wrapping, crumbs shrink and
|
|
921
|
+
* truncate their labels with an ellipsis. For trails in width-constrained
|
|
922
|
+
* chrome (a header bar) where a second line would break the surrounding
|
|
923
|
+
* layout.
|
|
924
|
+
*/
|
|
925
|
+
readonly nowrap: InputSignalWithTransform<boolean, unknown>;
|
|
710
926
|
/** Accessible name for the breadcrumb navigation landmark. */
|
|
711
|
-
readonly ariaLabel:
|
|
712
|
-
readonly ariaLabelledby:
|
|
927
|
+
readonly ariaLabel: InputSignal<string>;
|
|
928
|
+
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
929
|
+
/**
|
|
930
|
+
* Content
|
|
931
|
+
* Optional projected template for an item's inner content (label/icon),
|
|
932
|
+
* rendered in place of the built-in label. The list structure, links,
|
|
933
|
+
* separators, and `aria-current` stay owned by the component. Bind the item
|
|
934
|
+
* with `<ng-template let-item>`; see BreadcrumbItemContext for the full context.
|
|
935
|
+
*/
|
|
713
936
|
readonly itemTemplate: i0.Signal<TemplateRef<BreadcrumbItemContext> | undefined>;
|
|
937
|
+
/**
|
|
938
|
+
* Whether each crumb gives way in a `nowrap` trail, in trail order: the marked
|
|
939
|
+
* ones, or the trailing crumb while none is marked.
|
|
940
|
+
*/
|
|
941
|
+
protected readonly truncatingItems: i0.Signal<boolean[]>;
|
|
942
|
+
protected readonly classes: i0.Signal<string[]>;
|
|
714
943
|
static ɵfac: i0.ɵɵFactoryDeclaration<Breadcrumbs, never>;
|
|
715
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Breadcrumbs, "tls-breadcrumbs", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "separatorIcon": { "alias": "separatorIcon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, {}, ["itemTemplate"], never, true, never>;
|
|
944
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Breadcrumbs, "tls-breadcrumbs", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "separatorIcon": { "alias": "separatorIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "nowrap": { "alias": "nowrap"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, {}, ["itemTemplate"], never, true, never>;
|
|
716
945
|
}
|
|
717
946
|
|
|
718
947
|
interface BreadcrumbsConfig {
|
|
719
948
|
separatorIcon: systemIcon;
|
|
949
|
+
size: breadcrumbsSize;
|
|
720
950
|
}
|
|
721
951
|
declare const DEFAULT_BREADCRUMBS_CONFIG: BreadcrumbsConfig;
|
|
722
952
|
|
|
@@ -728,25 +958,73 @@ type buttonColor = color;
|
|
|
728
958
|
|
|
729
959
|
declare abstract class ButtonBase {
|
|
730
960
|
protected _config: _thalassic_ui.ButtonConfig;
|
|
731
|
-
|
|
961
|
+
/**
|
|
962
|
+
* Whether the host element is the interactive control itself. It is for a
|
|
963
|
+
* directive applied to a native `button`; a component that renders its own
|
|
964
|
+
* control inside places the classes and the ARIA state on that instead.
|
|
965
|
+
*/
|
|
966
|
+
protected HOST_IS_CONTROL: boolean;
|
|
732
967
|
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
968
|
+
/**
|
|
969
|
+
* Marks the button unavailable while leaving it focusable: it takes the
|
|
970
|
+
* disabled treatment and `aria-disabled`, and refuses activation, but keeps
|
|
971
|
+
* its place in the tab order.
|
|
972
|
+
*
|
|
973
|
+
* Reach for it over `disabled` wherever removing the control from the tab
|
|
974
|
+
* order would strand focus — a control that becomes unavailable through its
|
|
975
|
+
* own activation, such as a pager arrow at the end of its range, would
|
|
976
|
+
* otherwise vanish from under the keyboard user who just pressed it. Plain
|
|
977
|
+
* `disabled` remains the stronger choice everywhere else, since the platform
|
|
978
|
+
* enforces it.
|
|
979
|
+
*/
|
|
980
|
+
readonly inactive: InputSignalWithTransform<boolean, unknown>;
|
|
733
981
|
readonly icon: InputSignalWithTransform<boolean, unknown>;
|
|
982
|
+
/**
|
|
983
|
+
* Renders the button as a floating action button: a larger, elevated container for a
|
|
984
|
+
* screen's single primary action. Composes with the other inputs — `icon` for the square
|
|
985
|
+
* icon-only shape, a label for the extended form, `color`/`variant` for the treatment.
|
|
986
|
+
* Placement (typically floating above other content) is the consumer's concern; the
|
|
987
|
+
* input only changes the control's own geometry and elevation.
|
|
988
|
+
*/
|
|
989
|
+
readonly fab: InputSignalWithTransform<boolean, unknown>;
|
|
734
990
|
readonly color: InputSignal<buttonColor>;
|
|
735
991
|
readonly variant: InputSignal<buttonVariant>;
|
|
736
992
|
readonly size: InputSignal<controlSize>;
|
|
737
993
|
readonly rounded: InputSignalWithTransform<boolean, unknown>;
|
|
738
994
|
/** Whether the button stretches to fill its container's width. */
|
|
739
995
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
996
|
+
/**
|
|
997
|
+
* Whether the button stretches to fill its container's height, the block-axis
|
|
998
|
+
* counterpart to `fluid`. For a button that is a region in its own right — a slot in a
|
|
999
|
+
* grid of cards, a panel that happens to be pressable — rather than a control sitting in
|
|
1000
|
+
* a line of content. Takes effect only where the container's height is definite, and is
|
|
1001
|
+
* opt-in for that reason: a control in a fixed-height bar keeps its own size unless it
|
|
1002
|
+
* asks for the bar's.
|
|
1003
|
+
*/
|
|
1004
|
+
readonly stretch: InputSignalWithTransform<boolean, unknown>;
|
|
1005
|
+
/** Whether the button refuses activation, for either reason. */
|
|
1006
|
+
readonly unavailable: i0.Signal<boolean>;
|
|
1007
|
+
protected ariaDisabled: i0.Signal<"true" | null>;
|
|
740
1008
|
protected classes: i0.Signal<string[]>;
|
|
741
1009
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonBase, never>;
|
|
742
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonBase, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "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; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1010
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonBase, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inactive": { "alias": "inactive"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "fab": { "alias": "fab"; "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; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "stretch": { "alias": "stretch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
743
1011
|
}
|
|
744
1012
|
|
|
745
1013
|
declare class Button extends ButtonBase {
|
|
746
1014
|
private _routerLink;
|
|
747
1015
|
private _router;
|
|
748
1016
|
private _locationStrategy;
|
|
749
|
-
|
|
1017
|
+
/**
|
|
1018
|
+
* The interactive control is the inner `button`/`a`; the host is a wrapper.
|
|
1019
|
+
*/
|
|
1020
|
+
protected HOST_IS_CONTROL: boolean;
|
|
1021
|
+
/**
|
|
1022
|
+
* Marks the button as working on the action it started — a submission in flight, say. A
|
|
1023
|
+
* spinner stands in for the label, which keeps its place so the button holds its size, the
|
|
1024
|
+
* control reports `aria-busy`, and further activation is refused; unlike `disabled` it keeps
|
|
1025
|
+
* focus and its place in the tab order, so the person who pressed it is not stranded.
|
|
1026
|
+
*/
|
|
1027
|
+
readonly busy: InputSignalWithTransform<boolean, unknown>;
|
|
750
1028
|
/** The text label displayed inside the button. Takes priority over projected content. */
|
|
751
1029
|
readonly label: InputSignal<string | undefined>;
|
|
752
1030
|
/**
|
|
@@ -771,6 +1049,13 @@ declare class Button extends ButtonBase {
|
|
|
771
1049
|
* `href` wins; otherwise the URL is derived from the host `routerLink`.
|
|
772
1050
|
*/
|
|
773
1051
|
protected linkHref: Signal<string | null>;
|
|
1052
|
+
/**
|
|
1053
|
+
* Stops a click on an inactive button at the control, so it never reaches a
|
|
1054
|
+
* consumer's handler on the host. A natively disabled button dispatches no
|
|
1055
|
+
* click at all; one held focusable by `inactive` does, and the refusal has to
|
|
1056
|
+
* be made here.
|
|
1057
|
+
*/
|
|
1058
|
+
protected onControlClick(event: MouseEvent): void;
|
|
774
1059
|
/**
|
|
775
1060
|
* Keeps navigation correct when the host carries a `routerLink` while the inner anchor
|
|
776
1061
|
* exposes a real `href`:
|
|
@@ -781,7 +1066,7 @@ declare class Button extends ButtonBase {
|
|
|
781
1066
|
*/
|
|
782
1067
|
protected onLinkClick(event: MouseEvent): void;
|
|
783
1068
|
static ɵfac: i0.ɵɵFactoryDeclaration<Button, never>;
|
|
784
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Button, "tls-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1069
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Button, "tls-button", never, { "busy": { "alias": "busy"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
785
1070
|
}
|
|
786
1071
|
|
|
787
1072
|
declare class ButtonDirective extends ButtonBase {
|
|
@@ -922,6 +1207,18 @@ declare class Calendar {
|
|
|
922
1207
|
* as tall as the events it has to show; on, the grid's height follows from its width alone.
|
|
923
1208
|
*/
|
|
924
1209
|
readonly squareCells: InputSignal<boolean>;
|
|
1210
|
+
/**
|
|
1211
|
+
* Whether a vertical touch swipe over the month grid pages the calendar — up to the next
|
|
1212
|
+
* month, down to the previous. Off by default: the gesture claims vertical pans from the
|
|
1213
|
+
* browser, so it belongs only on a grid that is not itself inside something it must scroll.
|
|
1214
|
+
*/
|
|
1215
|
+
readonly swipeNavigation: InputSignal<boolean>;
|
|
1216
|
+
/**
|
|
1217
|
+
* Week rows the month grid shows beyond the month's own six, above and below alike, fading
|
|
1218
|
+
* out toward the grid's edge so the month reads as a stretch of a continuous run of weeks.
|
|
1219
|
+
* They are days like any other: selectable, and covered by the range `rangeChange` reports.
|
|
1220
|
+
*/
|
|
1221
|
+
readonly peekWeeks: InputSignalWithTransform<number, number>;
|
|
925
1222
|
/** Accessible name forwarded to the active view's grid. */
|
|
926
1223
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
927
1224
|
readonly eventSelect: OutputEmitterRef<CalendarEvent>;
|
|
@@ -932,11 +1229,12 @@ declare class Calendar {
|
|
|
932
1229
|
/** Anchor date driving the visible range; navigation shifts it by the view's unit. */
|
|
933
1230
|
readonly activeDate: ModelSignal<Date>;
|
|
934
1231
|
protected readonly labels: CalendarLabels;
|
|
1232
|
+
protected readonly swipePointerTypes: string[];
|
|
935
1233
|
protected readonly eventTemplate: Signal<TemplateRef<CalendarEventContext> | undefined>;
|
|
936
1234
|
protected readonly dayTemplate: Signal<TemplateRef<CalendarDayContext> | undefined>;
|
|
937
1235
|
private readonly _dateOptions;
|
|
938
|
-
/**
|
|
939
|
-
private readonly
|
|
1236
|
+
/** Today, so the "Today" affordance stays correct across midnight. */
|
|
1237
|
+
private readonly _today;
|
|
940
1238
|
protected readonly hostClasses: Signal<string[]>;
|
|
941
1239
|
protected readonly viewOptions: Signal<{
|
|
942
1240
|
label: string;
|
|
@@ -960,11 +1258,13 @@ declare class Calendar {
|
|
|
960
1258
|
/** Snaps the anchor date back to today. */
|
|
961
1259
|
today(): void;
|
|
962
1260
|
protected onViewChange(views: calendarView[]): void;
|
|
1261
|
+
/** The grid follows the finger's push: swiping up reveals the next month waiting below. */
|
|
1262
|
+
protected onSwipe(event: SwipeEvent): void;
|
|
963
1263
|
private _step;
|
|
964
1264
|
private _weekBounds;
|
|
965
1265
|
private _weekTitle;
|
|
966
1266
|
static ɵfac: i0.ɵɵFactoryDeclaration<Calendar, never>;
|
|
967
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Calendar, "tls-calendar", never, { "events": { "alias": "events"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "weekDays": { "alias": "weekDays"; "required": false; "isSignal": true; }; "hourStart": { "alias": "hourStart"; "required": false; "isSignal": true; }; "hourEnd": { "alias": "hourEnd"; "required": false; "isSignal": true; }; "showAllDayRow": { "alias": "showAllDayRow"; "required": false; "isSignal": true; }; "maxEventsPerDay": { "alias": "maxEventsPerDay"; "required": false; "isSignal": true; }; "views": { "alias": "views"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "showTitle": { "alias": "showTitle"; "required": false; "isSignal": true; }; "showNavigation": { "alias": "showNavigation"; "required": false; "isSignal": true; }; "showViewSwitcher": { "alias": "showViewSwitcher"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "squareCells": { "alias": "squareCells"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "activeDate": { "alias": "activeDate"; "required": false; "isSignal": true; }; }, { "eventSelect": "eventSelect"; "dateSelect": "dateSelect"; "rangeChange": "rangeChange"; "view": "viewChange"; "activeDate": "activeDateChange"; }, ["eventTemplate", "dayTemplate"], never, true, never>;
|
|
1267
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Calendar, "tls-calendar", never, { "events": { "alias": "events"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "weekDays": { "alias": "weekDays"; "required": false; "isSignal": true; }; "hourStart": { "alias": "hourStart"; "required": false; "isSignal": true; }; "hourEnd": { "alias": "hourEnd"; "required": false; "isSignal": true; }; "showAllDayRow": { "alias": "showAllDayRow"; "required": false; "isSignal": true; }; "maxEventsPerDay": { "alias": "maxEventsPerDay"; "required": false; "isSignal": true; }; "views": { "alias": "views"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "showTitle": { "alias": "showTitle"; "required": false; "isSignal": true; }; "showNavigation": { "alias": "showNavigation"; "required": false; "isSignal": true; }; "showViewSwitcher": { "alias": "showViewSwitcher"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "squareCells": { "alias": "squareCells"; "required": false; "isSignal": true; }; "swipeNavigation": { "alias": "swipeNavigation"; "required": false; "isSignal": true; }; "peekWeeks": { "alias": "peekWeeks"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "activeDate": { "alias": "activeDate"; "required": false; "isSignal": true; }; }, { "eventSelect": "eventSelect"; "dateSelect": "dateSelect"; "rangeChange": "rangeChange"; "view": "viewChange"; "activeDate": "activeDateChange"; }, ["eventTemplate", "dayTemplate"], never, true, never>;
|
|
968
1268
|
}
|
|
969
1269
|
|
|
970
1270
|
/** A day that has events, precomputed for the agenda list. */
|
|
@@ -991,8 +1291,8 @@ declare class CalendarAgendaView {
|
|
|
991
1291
|
readonly eventSelect: OutputEmitterRef<CalendarEvent>;
|
|
992
1292
|
protected readonly noEventsLabel: string;
|
|
993
1293
|
private readonly _dateOptions;
|
|
994
|
-
/**
|
|
995
|
-
private readonly
|
|
1294
|
+
/** Today, so the today marker moves across midnight and the list rebuilds only then. */
|
|
1295
|
+
private readonly _today;
|
|
996
1296
|
protected readonly days: Signal<AgendaDay[]>;
|
|
997
1297
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarAgendaView, never>;
|
|
998
1298
|
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarAgendaView, "tls-calendar-agenda-view", never, { "activeDate": { "alias": "activeDate"; "required": true; "isSignal": true; }; "events": { "alias": "events"; "required": true; "isSignal": true; }; "eventTemplate": { "alias": "eventTemplate"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "dateSelect": "dateSelect"; "eventSelect": "eventSelect"; }, never, never, true, never>;
|
|
@@ -1020,6 +1320,14 @@ declare class CalendarEventItem {
|
|
|
1020
1320
|
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarEventItem, "tls-calendar-event", never, { "event": { "alias": "event"; "required": true; "isSignal": true; }; "view": { "alias": "view"; "required": true; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; }, { "activate": "activate"; }, never, never, true, never>;
|
|
1021
1321
|
}
|
|
1022
1322
|
|
|
1323
|
+
/** The run of week rows a month grid renders. */
|
|
1324
|
+
interface MonthWindow {
|
|
1325
|
+
/** First day of the window's first week. */
|
|
1326
|
+
start: Date;
|
|
1327
|
+
/** Week rows the window spans. */
|
|
1328
|
+
weekCount: number;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1023
1331
|
/** A dot marking one of a day's events in the dense layout, tinted by that event's color. */
|
|
1024
1332
|
interface MonthDayMarker {
|
|
1025
1333
|
id: string;
|
|
@@ -1055,6 +1363,8 @@ interface MonthWeek {
|
|
|
1055
1363
|
declare class CalendarMonthView {
|
|
1056
1364
|
private readonly _locale;
|
|
1057
1365
|
private readonly _config;
|
|
1366
|
+
private readonly _changeDetectorRef;
|
|
1367
|
+
private readonly _injector;
|
|
1058
1368
|
readonly activeDate: InputSignal<Date>;
|
|
1059
1369
|
readonly events: InputSignal<CalendarEvent[]>;
|
|
1060
1370
|
readonly weekStartsOn: InputSignal<Day>;
|
|
@@ -1062,6 +1372,11 @@ declare class CalendarMonthView {
|
|
|
1062
1372
|
readonly maxEventsPerDay: InputSignal<number>;
|
|
1063
1373
|
/** Whether day cells are held to a 1:1 ratio instead of sizing to the events they hold. */
|
|
1064
1374
|
readonly squareCells: InputSignal<boolean>;
|
|
1375
|
+
/**
|
|
1376
|
+
* Week rows rendered beyond the month's own window, above and below it alike, fading out
|
|
1377
|
+
* toward the grid's edge.
|
|
1378
|
+
*/
|
|
1379
|
+
readonly peekWeeks: InputSignal<number>;
|
|
1065
1380
|
readonly eventTemplate: InputSignal<TemplateRef<CalendarEventContext> | undefined>;
|
|
1066
1381
|
/** Replaces what a day cell renders, leaving the cell's own semantics and chrome in place. */
|
|
1067
1382
|
readonly dayTemplate: InputSignal<TemplateRef<CalendarDayContext> | undefined>;
|
|
@@ -1070,19 +1385,40 @@ declare class CalendarMonthView {
|
|
|
1070
1385
|
readonly dateSelect: OutputEmitterRef<Date>;
|
|
1071
1386
|
readonly eventSelect: OutputEmitterRef<CalendarEvent>;
|
|
1072
1387
|
private readonly _dateOptions;
|
|
1073
|
-
/**
|
|
1074
|
-
private readonly
|
|
1388
|
+
/** Today, so the today highlight moves across midnight and the grid rebuilds only then. */
|
|
1389
|
+
private readonly _today;
|
|
1390
|
+
/** Widened week window a navigation scroll renders through; unset while the grid rests. */
|
|
1391
|
+
private readonly _scrollPlan;
|
|
1392
|
+
private readonly _grid;
|
|
1393
|
+
/** Settles the scroll in flight at once, so a follow-up navigation starts from rest. */
|
|
1394
|
+
private _finalizeScroll;
|
|
1395
|
+
/** Anchor the grid last rendered for, naming the window a navigation scrolls away from. */
|
|
1396
|
+
private _renderedDate;
|
|
1397
|
+
/** The week rows the grid holds at rest: the month's window plus its peek weeks. */
|
|
1398
|
+
protected readonly gridWindow: Signal<MonthWindow>;
|
|
1075
1399
|
protected readonly weekdayHeaders: Signal<string[]>;
|
|
1076
1400
|
protected readonly weeks: Signal<MonthWeek[]>;
|
|
1401
|
+
constructor();
|
|
1077
1402
|
/** Localized "+N more" label for a day cell with `count` hidden events. */
|
|
1078
1403
|
protected moreLabel(count: number): string;
|
|
1079
1404
|
/** Localized event-count summary, the only textual form the dense layout's dots have. */
|
|
1080
1405
|
protected eventCountLabel(count: number): string;
|
|
1081
1406
|
/** Space would scroll the page; consume it and select the focused day instead. */
|
|
1082
1407
|
protected onDaySpace(event: Event, date: Date): void;
|
|
1408
|
+
/**
|
|
1409
|
+
* Slides the grid from `from`'s window to `to`'s: the union of both windows renders at once,
|
|
1410
|
+
* pinned to the resting row height, and a translate transition carries it from the outgoing
|
|
1411
|
+
* offset to the incoming one. Rows the windows share keep their DOM identity, so their cells
|
|
1412
|
+
* cross-fade out of the outside dimming in place rather than being rebuilt.
|
|
1413
|
+
*
|
|
1414
|
+
* Style writes go to the element directly: the jump to the outgoing offset must paint with
|
|
1415
|
+
* the widened render, and the cleanup must paint with the collapsed one — frame boundaries a
|
|
1416
|
+
* template binding cannot express.
|
|
1417
|
+
*/
|
|
1418
|
+
private _scrollBetween;
|
|
1083
1419
|
private _markerClasses;
|
|
1084
1420
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthView, never>;
|
|
1085
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarMonthView, "tls-calendar-month-view", never, { "activeDate": { "alias": "activeDate"; "required": true; "isSignal": true; }; "events": { "alias": "events"; "required": true; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": true; "isSignal": true; }; "weekDays": { "alias": "weekDays"; "required": true; "isSignal": true; }; "maxEventsPerDay": { "alias": "maxEventsPerDay"; "required": true; "isSignal": true; }; "squareCells": { "alias": "squareCells"; "required": false; "isSignal": true; }; "eventTemplate": { "alias": "eventTemplate"; "required": false; "isSignal": true; }; "dayTemplate": { "alias": "dayTemplate"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "dateSelect": "dateSelect"; "eventSelect": "eventSelect"; }, never, never, true, never>;
|
|
1421
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarMonthView, "tls-calendar-month-view", never, { "activeDate": { "alias": "activeDate"; "required": true; "isSignal": true; }; "events": { "alias": "events"; "required": true; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": true; "isSignal": true; }; "weekDays": { "alias": "weekDays"; "required": true; "isSignal": true; }; "maxEventsPerDay": { "alias": "maxEventsPerDay"; "required": true; "isSignal": true; }; "squareCells": { "alias": "squareCells"; "required": false; "isSignal": true; }; "peekWeeks": { "alias": "peekWeeks"; "required": false; "isSignal": true; }; "eventTemplate": { "alias": "eventTemplate"; "required": false; "isSignal": true; }; "dayTemplate": { "alias": "dayTemplate"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "dateSelect": "dateSelect"; "eventSelect": "eventSelect"; }, never, never, true, never>;
|
|
1086
1422
|
}
|
|
1087
1423
|
|
|
1088
1424
|
/** A timed event with its absolute placement inside a day column. */
|
|
@@ -1124,8 +1460,10 @@ declare class CalendarTimeGrid {
|
|
|
1124
1460
|
protected readonly allDayLabel: string;
|
|
1125
1461
|
private readonly _dateOptions;
|
|
1126
1462
|
private readonly _hourLabelFormat;
|
|
1127
|
-
/** Ticking current time, so the now line
|
|
1463
|
+
/** Ticking current time, so the now line tracks the clock. */
|
|
1128
1464
|
private readonly _now;
|
|
1465
|
+
/** Today, so the columns rebuild at midnight rather than with every tick of the now line. */
|
|
1466
|
+
private readonly _today;
|
|
1129
1467
|
protected readonly hours: Signal<number[]>;
|
|
1130
1468
|
protected readonly columns: Signal<TimeGridColumn[]>;
|
|
1131
1469
|
/** Vertical offset (px) of the current-time line, or null when now is off-screen. */
|
|
@@ -1148,6 +1486,203 @@ declare class CalendarTimeGrid {
|
|
|
1148
1486
|
|
|
1149
1487
|
declare const CALENDAR_CONFIG: InjectionToken<CalendarConfig>;
|
|
1150
1488
|
|
|
1489
|
+
/**
|
|
1490
|
+
* A declarative content holder: the host element itself is never rendered. `tls-carousel`
|
|
1491
|
+
* reads the captured template and renders it inside its own slide wrapper, which carries
|
|
1492
|
+
* the slide's ARIA semantics and sizing.
|
|
1493
|
+
*/
|
|
1494
|
+
declare class CarouselSlide {
|
|
1495
|
+
/** Accessible name for the slide; falls back to a localized "n of count" position label. */
|
|
1496
|
+
readonly label: InputSignal<string | undefined>;
|
|
1497
|
+
readonly contentTemplateRef: Signal<TemplateRef<unknown>>;
|
|
1498
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselSlide, never>;
|
|
1499
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CarouselSlide, "tls-carousel-slide", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
/** Accessible names for the carousel controls, overridable for localization. */
|
|
1503
|
+
interface CarouselLabels {
|
|
1504
|
+
/** Accessible name for the previous-slide button. */
|
|
1505
|
+
previous: string;
|
|
1506
|
+
/** Accessible name for the next-slide button. */
|
|
1507
|
+
next: string;
|
|
1508
|
+
/** Accessible name for the rotation toggle while rotation is stopped. */
|
|
1509
|
+
play: string;
|
|
1510
|
+
/** Accessible name for the rotation toggle while rotation is running. */
|
|
1511
|
+
pause: string;
|
|
1512
|
+
/**
|
|
1513
|
+
* Accessible name for a slide, from its 1-based position, the slide count and
|
|
1514
|
+
* the slide's own `label` when it sets one.
|
|
1515
|
+
*/
|
|
1516
|
+
slide: (index: number, count: number, label: string | undefined) => string;
|
|
1517
|
+
/** Accessible name for an indicator dot, from its slide's 1-based position. */
|
|
1518
|
+
goToSlide: (index: number) => string;
|
|
1519
|
+
}
|
|
1520
|
+
interface CarouselConfig {
|
|
1521
|
+
/** Whether the previous/next controls (and swipes) wrap around at the ends. */
|
|
1522
|
+
loop: boolean;
|
|
1523
|
+
/**
|
|
1524
|
+
* Milliseconds between automatic slide advances; 0 disables auto-rotation.
|
|
1525
|
+
* Rotation always wraps past the last slide whatever `loop` says — rotation
|
|
1526
|
+
* that stalls at the end would leave the stop control describing motion that
|
|
1527
|
+
* is no longer happening.
|
|
1528
|
+
*/
|
|
1529
|
+
autoplayInterval: number;
|
|
1530
|
+
showArrows: boolean;
|
|
1531
|
+
showIndicators: boolean;
|
|
1532
|
+
/** Accessible names for the controls, overridable for localization. */
|
|
1533
|
+
labels: CarouselLabels;
|
|
1534
|
+
}
|
|
1535
|
+
declare const DEFAULT_CAROUSEL_CONFIG: CarouselConfig;
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* A horizontally sliding carousel implementing the WAI-ARIA carousel pattern:
|
|
1539
|
+
* each slide is a `role="group"`/`aria-roledescription="slide"` region, hidden
|
|
1540
|
+
* slides are inert, and auto-rotation — when enabled — pauses on hover and
|
|
1541
|
+
* while the page is hidden, stops when keyboard focus enters, and only runs at
|
|
1542
|
+
* the `full` motion level, with a rotation toggle placed first in the tab order.
|
|
1543
|
+
*
|
|
1544
|
+
* Slides can also be dragged or flicked sideways. The gesture waits out a slop,
|
|
1545
|
+
* claims only the horizontal axis and yields to any scrollable ancestor, so
|
|
1546
|
+
* vertical scrolling over a slide stays native (see {@link PanDirective}); it
|
|
1547
|
+
* is a shortcut rather than the only path, since the arrows and indicators
|
|
1548
|
+
* reach every slide by keyboard.
|
|
1549
|
+
*/
|
|
1550
|
+
declare class Carousel {
|
|
1551
|
+
private readonly _config;
|
|
1552
|
+
private readonly _directionality;
|
|
1553
|
+
private readonly _elementRef;
|
|
1554
|
+
private readonly _injector;
|
|
1555
|
+
private readonly _destroyRef;
|
|
1556
|
+
/**
|
|
1557
|
+
* Optional: apps without `provideMotion()` get no motion gating and rotation stays allowed.
|
|
1558
|
+
*/
|
|
1559
|
+
private readonly _motion;
|
|
1560
|
+
private readonly _isBrowser;
|
|
1561
|
+
readonly loop: InputSignalWithTransform<boolean, unknown>;
|
|
1562
|
+
readonly autoplayInterval: InputSignal<number>;
|
|
1563
|
+
readonly showArrows: InputSignalWithTransform<boolean, unknown>;
|
|
1564
|
+
readonly showIndicators: InputSignalWithTransform<boolean, unknown>;
|
|
1565
|
+
/** Zero-based index of the selected slide. Two-way bound; interaction updates it. */
|
|
1566
|
+
readonly selected: ModelSignal<number>;
|
|
1567
|
+
/** Accessible name for the carousel container. */
|
|
1568
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
1569
|
+
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
1570
|
+
protected readonly slides: Signal<readonly CarouselSlide[]>;
|
|
1571
|
+
protected readonly labels: CarouselLabels;
|
|
1572
|
+
/**
|
|
1573
|
+
* Gesture shape, bound explicitly on the viewport: `PAN_CONFIG` resolves
|
|
1574
|
+
* through the element injector, so an ancestor gesture that provides it for
|
|
1575
|
+
* itself would otherwise reconfigure this one.
|
|
1576
|
+
*/
|
|
1577
|
+
protected readonly dragSlop: number;
|
|
1578
|
+
protected readonly dragLockRatio: number;
|
|
1579
|
+
/** User intent for auto-rotation, toggled by the rotation control. */
|
|
1580
|
+
protected readonly playing: WritableSignal<boolean>;
|
|
1581
|
+
private readonly _viewport;
|
|
1582
|
+
private readonly _track;
|
|
1583
|
+
private readonly _dragging;
|
|
1584
|
+
private readonly _hovered;
|
|
1585
|
+
/**
|
|
1586
|
+
* A hidden page paints nothing, so rotation there only burns the slides the
|
|
1587
|
+
* user came back to see.
|
|
1588
|
+
*/
|
|
1589
|
+
private readonly _pageVisible;
|
|
1590
|
+
/** Suppresses the slide transition for a change that would otherwise travel the whole track. */
|
|
1591
|
+
private readonly _instant;
|
|
1592
|
+
/**
|
|
1593
|
+
* Travel already spent crossing the slop when the gesture locked. Deltas are
|
|
1594
|
+
* rebased against it so the track follows the finger from where it locked
|
|
1595
|
+
* instead of jumping by the slop on the first move.
|
|
1596
|
+
*/
|
|
1597
|
+
private _lockDelta;
|
|
1598
|
+
private _dragEndedAt;
|
|
1599
|
+
/** Whether focus currently entering the carousel was driven by a pointer. */
|
|
1600
|
+
private _pointerFocus;
|
|
1601
|
+
/**
|
|
1602
|
+
* Pre-bound so attaching and detaching always reference the same function.
|
|
1603
|
+
*/
|
|
1604
|
+
private readonly _endPointerFocus;
|
|
1605
|
+
protected readonly count: Signal<number>;
|
|
1606
|
+
protected readonly canPrevious: Signal<boolean>;
|
|
1607
|
+
protected readonly canNext: Signal<boolean>;
|
|
1608
|
+
protected readonly autoplayEnabled: Signal<boolean>;
|
|
1609
|
+
/**
|
|
1610
|
+
* The slides container is a polite live region only while it changes by user
|
|
1611
|
+
* action; announcing every automatic advance would be constant chatter.
|
|
1612
|
+
*/
|
|
1613
|
+
protected readonly liveMode: Signal<"off" | "polite">;
|
|
1614
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
1615
|
+
/**
|
|
1616
|
+
* Auto-advancing content is motion the user has not asked for, so rotation
|
|
1617
|
+
* requires the expressive (`full`) motion level, pauses while hovered or
|
|
1618
|
+
* while the page is hidden, and stays off after the user stops it.
|
|
1619
|
+
*/
|
|
1620
|
+
private readonly _rotating;
|
|
1621
|
+
constructor();
|
|
1622
|
+
protected previous(): void;
|
|
1623
|
+
protected next(): void;
|
|
1624
|
+
protected goTo(index: number): void;
|
|
1625
|
+
protected toggleRotation(): void;
|
|
1626
|
+
protected onPointerEnter(): void;
|
|
1627
|
+
protected onPointerLeave(): void;
|
|
1628
|
+
/**
|
|
1629
|
+
* Marks focus that lands during a press as pointer-driven. The press may end
|
|
1630
|
+
* anywhere — outside the carousel, or in another window — so the release is
|
|
1631
|
+
* watched on the document; a flag left standing would make the next keyboard
|
|
1632
|
+
* focus look like a click.
|
|
1633
|
+
*/
|
|
1634
|
+
protected onPointerDown(): void;
|
|
1635
|
+
/**
|
|
1636
|
+
* Keyboard focus entering the carousel stops rotation for good (it only
|
|
1637
|
+
* restarts through the rotation control), so the user can read and operate
|
|
1638
|
+
* the content without it moving away. Pointer-driven focus does not: a click
|
|
1639
|
+
* on the rotation control would otherwise stop rotation on the way in and
|
|
1640
|
+
* have its own toggle start it straight back up.
|
|
1641
|
+
*/
|
|
1642
|
+
protected onFocusIn(): void;
|
|
1643
|
+
/**
|
|
1644
|
+
* Images and links start a native content drag on a mouse press, and the
|
|
1645
|
+
* browser cancels the pointer to run it — taking the swipe with it. A track
|
|
1646
|
+
* that moves sideways under the pointer cannot also hand its content to a
|
|
1647
|
+
* drag-and-drop, so the native one gives way.
|
|
1648
|
+
*/
|
|
1649
|
+
protected onDragStart(event: DragEvent): void;
|
|
1650
|
+
protected onPanStart(event: PanEvent): void;
|
|
1651
|
+
/**
|
|
1652
|
+
* Fired at pointer rate (see {@link PanDirective}), so the offset is written
|
|
1653
|
+
* straight to the DOM rather than through a binding and no change detection
|
|
1654
|
+
* runs per move.
|
|
1655
|
+
*/
|
|
1656
|
+
protected onPanMove(event: PanEvent): void;
|
|
1657
|
+
protected onPanEnd(event: PanEvent): void;
|
|
1658
|
+
protected onPanCancel(): void;
|
|
1659
|
+
private _isRtl;
|
|
1660
|
+
private _clamp;
|
|
1661
|
+
private _advance;
|
|
1662
|
+
/** Moves to a slide with the track transition suppressed for that one change. */
|
|
1663
|
+
private _jumpTo;
|
|
1664
|
+
/**
|
|
1665
|
+
* Damps travel toward an edge with no slide behind it, so a drag at the first
|
|
1666
|
+
* or last slide resists instead of pulling empty track into view.
|
|
1667
|
+
*/
|
|
1668
|
+
private _resistedOffset;
|
|
1669
|
+
private _applyDragOffset;
|
|
1670
|
+
private _settleDrag;
|
|
1671
|
+
private _clearDragOffset;
|
|
1672
|
+
/**
|
|
1673
|
+
* Swallows the click that concludes a drag so the slide content under the
|
|
1674
|
+
* released pointer is not activated. The listener runs in the capture phase:
|
|
1675
|
+
* the click has to be stopped before it reaches that content, and a
|
|
1676
|
+
* bubble-phase listener would only see it once the content had handled it.
|
|
1677
|
+
*/
|
|
1678
|
+
private _suppressPostDragClicks;
|
|
1679
|
+
private _watchPageVisibility;
|
|
1680
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Carousel, never>;
|
|
1681
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Carousel, "tls-carousel", never, { "loop": { "alias": "loop"; "required": false; "isSignal": true; }; "autoplayInterval": { "alias": "autoplayInterval"; "required": false; "isSignal": true; }; "showArrows": { "alias": "showArrows"; "required": false; "isSignal": true; }; "showIndicators": { "alias": "showIndicators"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["slides"], never, true, never>;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
declare const CAROUSEL_CONFIG: InjectionToken<CarouselConfig>;
|
|
1685
|
+
|
|
1151
1686
|
type chipColor = color;
|
|
1152
1687
|
type chipVariant = 'filled' | 'tonal' | 'outlined' | 'text';
|
|
1153
1688
|
type chipSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -1164,6 +1699,97 @@ type chipTemplateContext = {
|
|
|
1164
1699
|
$implicit: ChipContext;
|
|
1165
1700
|
};
|
|
1166
1701
|
|
|
1702
|
+
/**
|
|
1703
|
+
* Spreads ink from the point of contact when the host is touched, and stands its
|
|
1704
|
+
* press down for that one interaction so a single tap produces a single effect.
|
|
1705
|
+
*
|
|
1706
|
+
* A touch and a pen ink by default, a mouse does not. Ink answers the fingertip
|
|
1707
|
+
* covering the control it is spreading from — a cursor occludes nothing, and a
|
|
1708
|
+
* mouse press is over in a fraction of the ink's duration, leaving most of it
|
|
1709
|
+
* playing after the button has already been released. Which pointers ink is set
|
|
1710
|
+
* app-wide through `RIPPLE_CONFIG` and per host through `ripplePointerTypes`.
|
|
1711
|
+
*
|
|
1712
|
+
* The ink is expressive and outlives the contact that spawned it, so it is
|
|
1713
|
+
* confined to the `full` motion level; below that the press it suppresses is
|
|
1714
|
+
* restored and acknowledges the touch instead. Removing this directive therefore
|
|
1715
|
+
* takes nothing away — the press underneath is pure CSS and is what a host shows
|
|
1716
|
+
* without it.
|
|
1717
|
+
*
|
|
1718
|
+
* Requires the theme's `ripple` mixin on the same element, which draws the ink
|
|
1719
|
+
* from the values written here.
|
|
1720
|
+
*
|
|
1721
|
+
* @example
|
|
1722
|
+
* ```html
|
|
1723
|
+
* <button class="tls-button" tlsRipple>Save</button>
|
|
1724
|
+
* ```
|
|
1725
|
+
*/
|
|
1726
|
+
declare class RippleDirective {
|
|
1727
|
+
private readonly _elementRef;
|
|
1728
|
+
private readonly _document;
|
|
1729
|
+
private readonly _config;
|
|
1730
|
+
private readonly _renderer;
|
|
1731
|
+
/**
|
|
1732
|
+
* Turns the ink off.
|
|
1733
|
+
*
|
|
1734
|
+
* Deliberately not named `disabled`: an input shadows the DOM property of the
|
|
1735
|
+
* same name on the element it sits on, so a directive claiming `disabled` would
|
|
1736
|
+
* capture a host's `[disabled]` binding and leave the control enabled.
|
|
1737
|
+
*/
|
|
1738
|
+
readonly rippleDisabled: InputSignalWithTransform<boolean, unknown>;
|
|
1739
|
+
/**
|
|
1740
|
+
* Pointer types whose presses ink here, overriding the app-wide default for
|
|
1741
|
+
* this one host. Unset defers to `RIPPLE_CONFIG`.
|
|
1742
|
+
*/
|
|
1743
|
+
readonly ripplePointerTypes: InputSignal<pointerType[] | undefined>;
|
|
1744
|
+
private readonly _pointerTypes;
|
|
1745
|
+
/** Where the press landed, to measure a scroll against. */
|
|
1746
|
+
private _origin;
|
|
1747
|
+
/**
|
|
1748
|
+
* Teardown of the move listener, bound only while an ink is live. A host
|
|
1749
|
+
* listener would schedule change detection for every hover movement across
|
|
1750
|
+
* every host, although only a press ever needs the moves.
|
|
1751
|
+
*/
|
|
1752
|
+
private _stopTrackingMoves;
|
|
1753
|
+
constructor();
|
|
1754
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
1755
|
+
protected onPointerRelease(): void;
|
|
1756
|
+
private _onPointerMove;
|
|
1757
|
+
private _trackMoves;
|
|
1758
|
+
private _stopTracking;
|
|
1759
|
+
/**
|
|
1760
|
+
* Whether a press from this kind of pointer inks. `pointerType` is read off the
|
|
1761
|
+
* event rather than from a media query so a device carrying both a touchscreen
|
|
1762
|
+
* and a mouse is answered by the one in use, not by the one it reports as
|
|
1763
|
+
* primary.
|
|
1764
|
+
*/
|
|
1765
|
+
private _inksFor;
|
|
1766
|
+
/**
|
|
1767
|
+
* Whether the document is at the motion level the ink belongs to.
|
|
1768
|
+
*
|
|
1769
|
+
* Read from the attribute the stylesheet gates on rather than from
|
|
1770
|
+
* `MotionService`, for two reasons: the two can never disagree about a level
|
|
1771
|
+
* they read from one place, and a host is not made to depend on a provider it
|
|
1772
|
+
* would otherwise never need — an app that never configures motion has no
|
|
1773
|
+
* attribute, and the ink is off exactly as the stylesheet has it.
|
|
1774
|
+
*/
|
|
1775
|
+
private _isFullMotion;
|
|
1776
|
+
/**
|
|
1777
|
+
* Distance from the contact point to the farthest corner. The ink is struck
|
|
1778
|
+
* where the finger landed, so a press near an edge has farther to travel than
|
|
1779
|
+
* one in the middle; covering the control means reaching that corner.
|
|
1780
|
+
*/
|
|
1781
|
+
private _radiusToCover;
|
|
1782
|
+
/**
|
|
1783
|
+
* Retriggers the animation. A class already present does not restart a running
|
|
1784
|
+
* animation, so a second tap arriving before the first has faded would
|
|
1785
|
+
* otherwise be swallowed; reading back a layout property between the removal
|
|
1786
|
+
* and the addition forces the two to land as separate states.
|
|
1787
|
+
*/
|
|
1788
|
+
private _restartInk;
|
|
1789
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RippleDirective, never>;
|
|
1790
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RippleDirective, "[tlsRipple]", never, { "rippleDisabled": { "alias": "rippleDisabled"; "required": false; "isSignal": true; }; "ripplePointerTypes": { "alias": "ripplePointerTypes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1167
1793
|
declare class Chip {
|
|
1168
1794
|
private _config;
|
|
1169
1795
|
readonly label: InputSignal<string | undefined>;
|
|
@@ -1178,7 +1804,7 @@ declare class Chip {
|
|
|
1178
1804
|
protected readonly endIconTemplate: i0.Signal<TemplateRef<chipTemplateContext> | undefined>;
|
|
1179
1805
|
protected classes: i0.Signal<string[]>;
|
|
1180
1806
|
static ɵfac: i0.ɵɵFactoryDeclaration<Chip, never>;
|
|
1181
|
-
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,
|
|
1807
|
+
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, [{ directive: typeof RippleDirective; inputs: {}; outputs: {}; }]>;
|
|
1182
1808
|
}
|
|
1183
1809
|
|
|
1184
1810
|
declare class ChipControl extends CheckboxFormControl {
|
|
@@ -1201,6 +1827,10 @@ interface ChipConfig {
|
|
|
1201
1827
|
variant: chipVariant;
|
|
1202
1828
|
size: chipSize;
|
|
1203
1829
|
}
|
|
1830
|
+
/**
|
|
1831
|
+
* Tonal at rest: a bare chip is a soft wash of its hue rather than a solid
|
|
1832
|
+
* pill, so it annotates without shouting — filled is the opt-in emphasis.
|
|
1833
|
+
*/
|
|
1204
1834
|
declare const DEFAULT_CHIP_CONFIG: ChipConfig;
|
|
1205
1835
|
|
|
1206
1836
|
declare const CHIP_CONFIG: InjectionToken<ChipConfig>;
|
|
@@ -1213,6 +1843,28 @@ declare const DEFAULT_CHIP_CONTROL_CONFIG: ChipControlConfig;
|
|
|
1213
1843
|
|
|
1214
1844
|
declare const CHIP_CONTROL_CONFIG: InjectionToken<ChipControlConfig>;
|
|
1215
1845
|
|
|
1846
|
+
/**
|
|
1847
|
+
* Presentational color chip: renders a color over a transparency checkerboard,
|
|
1848
|
+
* so translucent colors stay legible. Display-only — wrap it in a button when it
|
|
1849
|
+
* needs to be interactive.
|
|
1850
|
+
*/
|
|
1851
|
+
declare class ColorSwatch {
|
|
1852
|
+
/**
|
|
1853
|
+
* Color to display, in any notation CSS accepts — a hex string
|
|
1854
|
+
* (`#3b82f6`, `#3b82f680`), a function, or a custom property that resolves to
|
|
1855
|
+
* one (`var(--color-blue)`). The value is painted, never parsed, so a color
|
|
1856
|
+
* that only the browser can resolve renders like any other.
|
|
1857
|
+
*/
|
|
1858
|
+
readonly value: InputSignal<string>;
|
|
1859
|
+
readonly size: InputSignal<size>;
|
|
1860
|
+
/** Accessible name; the value itself is announced when unset. */
|
|
1861
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
1862
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
1863
|
+
protected readonly label: Signal<string>;
|
|
1864
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorSwatch, never>;
|
|
1865
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorSwatch, "tls-color-swatch", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1216
1868
|
/**
|
|
1217
1869
|
* Appearance of one of the confirm dialog's action buttons. Mirrors the
|
|
1218
1870
|
* `tls-button` inputs; every field but `label` is optional and falls back to
|
|
@@ -1269,7 +1921,15 @@ declare class Confirm {
|
|
|
1269
1921
|
readonly confirmed: i0.OutputEmitterRef<void>;
|
|
1270
1922
|
readonly cancelled: i0.OutputEmitterRef<void>;
|
|
1271
1923
|
readonly isOpen: i0.Signal<boolean>;
|
|
1924
|
+
/**
|
|
1925
|
+
* Tracks whether the current session ended through an explicit action, so a
|
|
1926
|
+
* backdrop / Escape dismissal is reported as a cancellation exactly once.
|
|
1927
|
+
*/
|
|
1272
1928
|
private _resolved;
|
|
1929
|
+
/**
|
|
1930
|
+
* Element focused before opening, restored on close so keyboard focus returns
|
|
1931
|
+
* to the trigger rather than being lost when the panel is removed.
|
|
1932
|
+
*/
|
|
1273
1933
|
private _previouslyFocused;
|
|
1274
1934
|
private readonly _positions;
|
|
1275
1935
|
open(trigger: MouseEvent | HTMLElement): void;
|
|
@@ -1322,7 +1982,8 @@ interface ConfirmOptions {
|
|
|
1322
1982
|
/**
|
|
1323
1983
|
* Element (or the originating event) the dialog is anchored to. Present opens
|
|
1324
1984
|
* an anchored popover next to the trigger; omitting it opens a centered,
|
|
1325
|
-
* focus-trapped modal instead.
|
|
1985
|
+
* focus-trapped modal instead. A viewport at or below the configured
|
|
1986
|
+
* `modalBelow` breakpoint opens the modal even with a trigger.
|
|
1326
1987
|
*/
|
|
1327
1988
|
trigger?: HTMLElement | MouseEvent;
|
|
1328
1989
|
message: string;
|
|
@@ -1334,23 +1995,49 @@ interface ConfirmOptions {
|
|
|
1334
1995
|
position?: overlayPosition;
|
|
1335
1996
|
offset?: Point;
|
|
1336
1997
|
ariaLabel?: string;
|
|
1998
|
+
/**
|
|
1999
|
+
* Extra class(es) placed on the overlay pane, so one confirmation can carry
|
|
2000
|
+
* its own treatment where the shared one does not fit. The pane carries them
|
|
2001
|
+
* whether it opens anchored or as the modal.
|
|
2002
|
+
*
|
|
2003
|
+
* The pane sits outside every component's template and carries no style
|
|
2004
|
+
* encapsulation attribute, so a consumer's scoped rules cannot otherwise reach
|
|
2005
|
+
* it. A class named here is the handle they get. The panel declares its own
|
|
2006
|
+
* `--tls-confirm-*` properties, which beat anything inherited from the pane, so
|
|
2007
|
+
* a rule that retunes one has to name the panel too: `.<class> .tls-confirm`.
|
|
2008
|
+
* The backdrop is the pane's sibling rather than its child, so it is not reached.
|
|
2009
|
+
*/
|
|
2010
|
+
panelClass?: string | string[];
|
|
1337
2011
|
}
|
|
1338
2012
|
/**
|
|
1339
2013
|
* Imperative confirm dialog for `await`-style flows: opens a dialog and resolves
|
|
1340
2014
|
* `true` on confirm, `false` on cancel / backdrop / Escape. Anchors to the
|
|
1341
|
-
* `trigger` when given, otherwise opens as a centered modal
|
|
1342
|
-
*
|
|
2015
|
+
* `trigger` when given, otherwise opens as a centered modal — and a viewport at
|
|
2016
|
+
* or below the configured `modalBelow` breakpoint opens the modal even with a
|
|
2017
|
+
* trigger. For a template-driven anchored equivalent, use the `tls-confirm`
|
|
2018
|
+
* component.
|
|
1343
2019
|
*/
|
|
1344
2020
|
declare class ConfirmService {
|
|
1345
2021
|
private readonly _overlay;
|
|
1346
2022
|
private readonly _focusTrapFactory;
|
|
1347
2023
|
private readonly _router;
|
|
1348
2024
|
private readonly _config;
|
|
2025
|
+
/**
|
|
2026
|
+
* Optional: only apps that call `provideViewport()` register it, and without
|
|
2027
|
+
* it the `modalBelow` behaviour simply stays off.
|
|
2028
|
+
*/
|
|
2029
|
+
private readonly _viewportService;
|
|
1349
2030
|
confirm(options: ConfirmOptions): Promise<boolean>;
|
|
2031
|
+
/** Whether the viewport sits at or below the configured modal breakpoint. */
|
|
2032
|
+
private _prefersModal;
|
|
1350
2033
|
private _createAnchoredOverlay;
|
|
1351
2034
|
private _createModalOverlay;
|
|
1352
2035
|
private _applyOptions;
|
|
1353
2036
|
private _wire;
|
|
2037
|
+
/**
|
|
2038
|
+
* Detaches the overlay so Angular's `animate.leave` plays the exit animation,
|
|
2039
|
+
* then disposes the pane once that animation finishes.
|
|
2040
|
+
*/
|
|
1354
2041
|
private _dismiss;
|
|
1355
2042
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmService, never>;
|
|
1356
2043
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmService>;
|
|
@@ -1359,6 +2046,14 @@ declare class ConfirmService {
|
|
|
1359
2046
|
interface ConfirmConfig {
|
|
1360
2047
|
position: overlayPosition;
|
|
1361
2048
|
offset: Point;
|
|
2049
|
+
/**
|
|
2050
|
+
* Breakpoint at or below which an anchored confirm opens as a centered modal
|
|
2051
|
+
* instead: a small viewport rarely fits a popover beside its trigger, and a
|
|
2052
|
+
* focus-trapped dialog is the platform-native confirm there. `null` keeps
|
|
2053
|
+
* every triggered confirm anchored. Takes effect only when the app provides
|
|
2054
|
+
* the viewport (`provideViewport()`).
|
|
2055
|
+
*/
|
|
2056
|
+
modalBelow: breakpoint | null;
|
|
1362
2057
|
confirmButton: confirmButton;
|
|
1363
2058
|
cancelButton: confirmButton;
|
|
1364
2059
|
actionsAlign: confirmActionsAlign;
|
|
@@ -1394,6 +2089,11 @@ declare class Dialog extends CdkDialogContainer {
|
|
|
1394
2089
|
private _closing;
|
|
1395
2090
|
protected readonly hostClasses: i0.Signal<string[]>;
|
|
1396
2091
|
protected get config(): DialogConfig;
|
|
2092
|
+
/**
|
|
2093
|
+
* Plays the exit animation, then disposes the overlay once it finishes. Routed
|
|
2094
|
+
* through here for every dismissal path (close button, backdrop, Escape)
|
|
2095
|
+
* because the CDK ref's `close()` disposes synchronously, which would skip the exit.
|
|
2096
|
+
*/
|
|
1397
2097
|
animatedClose(result?: unknown): void;
|
|
1398
2098
|
protected close(): void;
|
|
1399
2099
|
static ɵfac: i0.ɵɵFactoryDeclaration<Dialog, never>;
|
|
@@ -1466,6 +2166,18 @@ interface DialogOpenConfig<D = unknown> {
|
|
|
1466
2166
|
closeLabel?: string;
|
|
1467
2167
|
/** Alignment for this dialog's `tls-dialog-footer` when it sets none itself. */
|
|
1468
2168
|
footerAlign?: dialogFooterAlign;
|
|
2169
|
+
/**
|
|
2170
|
+
* Extra class(es) placed on the overlay pane, so one dialog can carry its own
|
|
2171
|
+
* treatment where the shared one does not fit.
|
|
2172
|
+
*
|
|
2173
|
+
* The pane sits outside every component's template and carries no style
|
|
2174
|
+
* encapsulation attribute, so a consumer's scoped rules cannot otherwise reach
|
|
2175
|
+
* it. A class named here is the handle they get. The dialog declares its own
|
|
2176
|
+
* `--tls-dialog-*` properties, which beat anything inherited from the pane, so
|
|
2177
|
+
* a rule that retunes one has to name the dialog too: `.<class> .tls-dialog`.
|
|
2178
|
+
* The backdrop is the pane's sibling rather than its child, so it is not reached.
|
|
2179
|
+
*/
|
|
2180
|
+
panelClass?: string | string[];
|
|
1469
2181
|
role?: DialogRole;
|
|
1470
2182
|
ariaLabel?: string | null;
|
|
1471
2183
|
ariaLabelledBy?: string | null;
|
|
@@ -1474,6 +2186,10 @@ interface DialogOpenConfig<D = unknown> {
|
|
|
1474
2186
|
declare class DialogService {
|
|
1475
2187
|
private readonly _dialog;
|
|
1476
2188
|
private readonly _config;
|
|
2189
|
+
/**
|
|
2190
|
+
* Currently-open dialogs, tracked so `closeAll` can play each exit animation and
|
|
2191
|
+
* so it closes dialogs only (the CDK `Dialog` is shared with `tls-drawer`).
|
|
2192
|
+
*/
|
|
1477
2193
|
private readonly _openDialogs;
|
|
1478
2194
|
open<R = unknown, D = unknown, C = unknown>(component: ComponentType<C>, config?: DialogOpenConfig<D>): DialogRef<R, C>;
|
|
1479
2195
|
closeAll(): void;
|
|
@@ -1512,11 +2228,44 @@ declare const DIVIDER_CONFIG: InjectionToken<DividerConfig>;
|
|
|
1512
2228
|
type drawerSide = 'start' | 'end' | 'top' | 'bottom';
|
|
1513
2229
|
type drawerSize = 'sm' | 'md' | 'lg' | 'full' | 'auto';
|
|
1514
2230
|
/**
|
|
1515
|
-
*
|
|
1516
|
-
*
|
|
1517
|
-
|
|
2231
|
+
* Whether the panel shows a grabber. `auto` shows one on a bottom sheet, where a
|
|
2232
|
+
* grabber is the expected affordance for dragging it away, and nowhere else.
|
|
2233
|
+
*/
|
|
2234
|
+
type drawerGrabber = boolean | 'auto';
|
|
2235
|
+
/**
|
|
2236
|
+
* Where a drawer opened by a drag stands: waiting to be laid out (`pending`),
|
|
2237
|
+
* under the finger (`following`), on its way after release (`settling`), or
|
|
2238
|
+
* finished opening — which a drawer opened any other way always is (`done`).
|
|
1518
2239
|
*/
|
|
1519
|
-
type
|
|
2240
|
+
type drawerOpenPhase = 'pending' | 'following' | 'settling' | 'done';
|
|
2241
|
+
/** How a drawer is being opened, fixed for its lifetime. */
|
|
2242
|
+
interface DrawerOpening {
|
|
2243
|
+
/** The element it slides out of and back into; null for the plain slide. */
|
|
2244
|
+
origin: HTMLElement | null;
|
|
2245
|
+
/** Whether it opens under a drag fed through its `DrawerRef`, rather than by itself. */
|
|
2246
|
+
byDrag: boolean;
|
|
2247
|
+
}
|
|
2248
|
+
/** A panel's displacement from its resting place, in px along each axis. */
|
|
2249
|
+
interface DrawerOffset {
|
|
2250
|
+
x: number;
|
|
2251
|
+
y: number;
|
|
2252
|
+
}
|
|
2253
|
+
/** Duration (ms) and easing of one direction of the slide, from the theme's motion tokens. */
|
|
2254
|
+
interface DrawerSlideTiming {
|
|
2255
|
+
duration: number;
|
|
2256
|
+
easing: string;
|
|
2257
|
+
}
|
|
2258
|
+
/**
|
|
2259
|
+
* An element carried between its place in a drawer and its partner's in the
|
|
2260
|
+
* drawer's origin: the translation (px) and scale that lay it over the partner
|
|
2261
|
+
* while the panel stands displaced. Scaled from its top-left corner.
|
|
2262
|
+
*/
|
|
2263
|
+
interface DrawerSharedPair {
|
|
2264
|
+
element: HTMLElement;
|
|
2265
|
+
x: number;
|
|
2266
|
+
y: number;
|
|
2267
|
+
scale: number;
|
|
2268
|
+
}
|
|
1520
2269
|
|
|
1521
2270
|
interface DrawerConfig {
|
|
1522
2271
|
side: drawerSide;
|
|
@@ -1533,43 +2282,165 @@ interface DrawerConfig {
|
|
|
1533
2282
|
* Renders a grabber pill on the edge facing the viewport and makes the panel
|
|
1534
2283
|
* draggable toward that edge to dismiss. The pill is the affordance for the
|
|
1535
2284
|
* gesture, so the two are one decision — a visible grabber is always draggable.
|
|
2285
|
+
* `auto` shows it on a bottom sheet only.
|
|
1536
2286
|
*/
|
|
1537
|
-
grabber:
|
|
2287
|
+
grabber: drawerGrabber;
|
|
1538
2288
|
/** Accessible name for the close button, overridable for localization. */
|
|
1539
2289
|
closeLabel: string;
|
|
1540
2290
|
}
|
|
2291
|
+
/**
|
|
2292
|
+
* One panel's configuration, every choice made: the defaults and the open
|
|
2293
|
+
* config merged, with `grabber` resolved for the panel's side.
|
|
2294
|
+
*/
|
|
2295
|
+
interface DrawerPanelConfig extends Omit<DrawerConfig, 'grabber'> {
|
|
2296
|
+
grabber: boolean;
|
|
2297
|
+
}
|
|
1541
2298
|
declare const DEFAULT_DRAWER_CONFIG: DrawerConfig;
|
|
1542
2299
|
|
|
1543
2300
|
declare class Drawer extends CdkDialogContainer {
|
|
1544
2301
|
private readonly _tlsConfig;
|
|
1545
2302
|
private readonly _dialogRef;
|
|
1546
2303
|
private readonly _directionality;
|
|
2304
|
+
/**
|
|
2305
|
+
* Named apart from the base container's own renderer and injector, which are
|
|
2306
|
+
* private to it. Both exist solely to serve the drag gesture.
|
|
2307
|
+
*/
|
|
1547
2308
|
private readonly _dragRenderer;
|
|
1548
2309
|
private readonly _dragInjector;
|
|
2310
|
+
private readonly _opening;
|
|
2311
|
+
private readonly _origin;
|
|
2312
|
+
/**
|
|
2313
|
+
* `open` marks an entrance that is over and must not replay: one the component
|
|
2314
|
+
* finished itself (opened by a drag), or one a dismissal drag cut short. The
|
|
2315
|
+
* stylesheet's slide-in keys off `enter` only.
|
|
2316
|
+
*/
|
|
1549
2317
|
private readonly _state;
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
2318
|
+
/**
|
|
2319
|
+
* Whether the panel slides out of its origin rather than from off-screen.
|
|
2320
|
+
* Taken for granted while an origin is given, and dropped the moment it
|
|
2321
|
+
* cannot be measured, which hands the entrance or exit back to the plain slide.
|
|
2322
|
+
*/
|
|
2323
|
+
private readonly _slidesFromOrigin;
|
|
2324
|
+
/**
|
|
2325
|
+
* Whether the panel is still opening under a drag fed from outside; drives
|
|
2326
|
+
* the scripted class. `_openPhase` is where that opening stands.
|
|
2327
|
+
*/
|
|
2328
|
+
private readonly _opensByDrag;
|
|
2329
|
+
private _openPhase;
|
|
2330
|
+
private _openGesture;
|
|
2331
|
+
/**
|
|
2332
|
+
* A drag can move, or even end, before the panel is laid out to measure;
|
|
2333
|
+
* what arrived by then is applied once the gesture exists.
|
|
2334
|
+
*/
|
|
2335
|
+
private _pendingOpenTravel;
|
|
2336
|
+
private _pendingOpenRelease;
|
|
2337
|
+
/**
|
|
2338
|
+
* A close asked for while a drag's settle open is still running, carried
|
|
2339
|
+
* out once the panel has arrived.
|
|
2340
|
+
*/
|
|
2341
|
+
private _queuedClose;
|
|
2342
|
+
/**
|
|
2343
|
+
* The running slide out of the origin, reversed if the drawer closes before
|
|
2344
|
+
* it ends: measured mid-flight, the panel would read short of where it rests.
|
|
2345
|
+
*/
|
|
2346
|
+
private _entrance;
|
|
2347
|
+
private _closing;
|
|
2348
|
+
/**
|
|
2349
|
+
* The dismissal drag: the finger's hold on the panel, its travel toward the
|
|
2350
|
+
* pinned edge and the settle after release. The scrim thins as the panel leaves.
|
|
2351
|
+
*/
|
|
2352
|
+
private readonly _motion;
|
|
1553
2353
|
protected readonly hostClasses: i0.Signal<string[]>;
|
|
1554
2354
|
constructor();
|
|
1555
|
-
protected get config():
|
|
2355
|
+
protected get config(): DrawerPanelConfig;
|
|
2356
|
+
/**
|
|
2357
|
+
* The custom CSS length applied inline when `size` is not a named token, else
|
|
2358
|
+
* `null` so the attribute is omitted and the size modifier class takes over.
|
|
2359
|
+
*/
|
|
1556
2360
|
protected get customSize(): string | null;
|
|
2361
|
+
/**
|
|
2362
|
+
* Plays the slide-out animation, then disposes the overlay once it finishes.
|
|
2363
|
+
* Routed through here for every dismissal path (close button, backdrop, Escape)
|
|
2364
|
+
* because `DialogRef.close()` disposes synchronously, which would skip the exit.
|
|
2365
|
+
*/
|
|
1557
2366
|
animatedClose(result?: unknown): void;
|
|
2367
|
+
/** See `DrawerRef.followOpenDrag`. */
|
|
2368
|
+
followOpenDrag(event: PanEvent): void;
|
|
2369
|
+
/** See `DrawerRef.releaseOpenDrag`. */
|
|
2370
|
+
releaseOpenDrag(event: PanEvent | null): void;
|
|
1558
2371
|
protected close(): void;
|
|
2372
|
+
private _slideFromOrigin;
|
|
2373
|
+
/**
|
|
2374
|
+
* Plays a slide out of the origin that is still running back to where it
|
|
2375
|
+
* began, from wherever it has got to, then closes. Held at the end, so the
|
|
2376
|
+
* panel does not flash back to rest before the overlay is disposed.
|
|
2377
|
+
*/
|
|
2378
|
+
private _reverseEntrance;
|
|
2379
|
+
/**
|
|
2380
|
+
* Ends a drag's opening, one way or the other. Settling closed is a close:
|
|
2381
|
+
* nothing else may start one meanwhile. Settling open hands the panel back
|
|
2382
|
+
* to the ordinary open state, then runs a close that arrived on the way.
|
|
2383
|
+
*/
|
|
2384
|
+
private _settleOpenGesture;
|
|
2385
|
+
/**
|
|
2386
|
+
* Starts the scrubbed entrance a drag drives: from over the origin where the
|
|
2387
|
+
* panel covers it, else from off-screen. Direct manipulation, so it runs at
|
|
2388
|
+
* every motion level; only the settle after release is motion.
|
|
2389
|
+
*/
|
|
2390
|
+
private _beginOpenGesture;
|
|
2391
|
+
/**
|
|
2392
|
+
* Either a flick decides, whichever way it points; failing one, how far the
|
|
2393
|
+
* drag got does — the same rule the drag to dismiss commits by.
|
|
2394
|
+
*/
|
|
2395
|
+
private _opensOnRelease;
|
|
2396
|
+
/**
|
|
2397
|
+
* The settle after a drag is released eases like the slide in, and jumps
|
|
2398
|
+
* where the motion level allows no motion.
|
|
2399
|
+
*/
|
|
2400
|
+
private _settleTiming;
|
|
2401
|
+
private _isMotionAllowed;
|
|
2402
|
+
/**
|
|
2403
|
+
* Where the slide from the origin starts and ends, or null where it cannot
|
|
2404
|
+
* play: no origin, one the panel does not cover, or a motion level with no
|
|
2405
|
+
* entrance at all — where the plain slide stands down too, so falling back
|
|
2406
|
+
* to it animates nothing either.
|
|
2407
|
+
*/
|
|
2408
|
+
private _measureOriginOffset;
|
|
1559
2409
|
private _onPanStart;
|
|
2410
|
+
/**
|
|
2411
|
+
* Fired outside the Angular zone (see `PanDirective.panMove`), so it writes to
|
|
2412
|
+
* the DOM directly and never touches a signal.
|
|
2413
|
+
* Move, end and cancel only follow a drag this panel started: one declined at
|
|
2414
|
+
* its start (closing, or still opening under the trigger's drag) is not its own.
|
|
2415
|
+
*/
|
|
1560
2416
|
private _onPanMove;
|
|
1561
2417
|
private _onPanEnd;
|
|
1562
2418
|
private _onPanCancel;
|
|
2419
|
+
/**
|
|
2420
|
+
* Travel toward the panel's pinned edge in px. Negative while the finger moves
|
|
2421
|
+
* the other way, which the caller clamps away — the panel does not overshoot open.
|
|
2422
|
+
*/
|
|
1563
2423
|
private _dismissTravel;
|
|
2424
|
+
/**
|
|
2425
|
+
* Release velocity toward the pinned edge in px/ms. Signed independently of
|
|
2426
|
+
* `_dismissTravel`: a drag that reverses into a flick must read as the flick.
|
|
2427
|
+
*/
|
|
1564
2428
|
private _dismissVelocity;
|
|
2429
|
+
/**
|
|
2430
|
+
* Horizontal quantities arrive physical; the inline sides are logical, so the
|
|
2431
|
+
* sign flips in RTL.
|
|
2432
|
+
*/
|
|
1565
2433
|
private _toLogical;
|
|
1566
2434
|
private _isInlineSide;
|
|
1567
|
-
|
|
1568
|
-
private _setBackdropTransition;
|
|
2435
|
+
/** Returns the panel to rest after a drag that did not commit. */
|
|
1569
2436
|
private _settleBack;
|
|
2437
|
+
/**
|
|
2438
|
+
* Continues the drag out to the pinned edge and disposes on arrival. A dismissal
|
|
2439
|
+
* that began as a drag cannot route through `animatedClose`: the slide-out
|
|
2440
|
+
* keyframe starts from `transform: none`, so the panel would snap back to fully
|
|
2441
|
+
* open for a frame before leaving.
|
|
2442
|
+
*/
|
|
1570
2443
|
private _dragClose;
|
|
1571
|
-
private _settle;
|
|
1572
|
-
private _afterSettle;
|
|
1573
2444
|
private _sizeClass;
|
|
1574
2445
|
private _isNamedSize;
|
|
1575
2446
|
static ɵfac: i0.ɵɵFactoryDeclaration<Drawer, never>;
|
|
@@ -1588,8 +2459,39 @@ declare class DrawerRef<R = unknown, C = unknown> {
|
|
|
1588
2459
|
private readonly _container;
|
|
1589
2460
|
readonly closed: Observable<R | undefined>;
|
|
1590
2461
|
constructor(_dialogRef: DialogRef$1<R, C>, _container: Drawer);
|
|
2462
|
+
/** The id of the drawer's dialog element, for a control that points at it (`aria-controls`). */
|
|
2463
|
+
get id(): string;
|
|
1591
2464
|
get componentInstance(): C | null;
|
|
1592
2465
|
close(result?: R): void;
|
|
2466
|
+
/**
|
|
2467
|
+
* Moves a drawer opened with `openByDrag` to where the drag now puts it. The
|
|
2468
|
+
* event's travel is read from where the drag began, toward the drawer's open
|
|
2469
|
+
* position along its side's axis.
|
|
2470
|
+
*/
|
|
2471
|
+
followOpenDrag(event: PanEvent): void;
|
|
2472
|
+
/**
|
|
2473
|
+
* Ends the drag a drawer opened with `openByDrag` is following: it settles
|
|
2474
|
+
* open when released far enough along or flicked open, and back closed —
|
|
2475
|
+
* then disposed — otherwise. `null` is a drag that was cancelled.
|
|
2476
|
+
*/
|
|
2477
|
+
releaseOpenDrag(event: PanEvent | null): void;
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* Pairs an element inside a drawer's origin with its counterpart inside the
|
|
2482
|
+
* drawer, by a key the two share. As the drawer slides out of its origin, the
|
|
2483
|
+
* counterpart travels from where its partner stands to its own place, and back
|
|
2484
|
+
* again as the drawer closes — a heading that reads the same in both, carried
|
|
2485
|
+
* across rather than shown twice.
|
|
2486
|
+
*
|
|
2487
|
+
* The counterpart is moved with a transform, so it needs a box: a block or
|
|
2488
|
+
* inline-block element, or any flex or grid item.
|
|
2489
|
+
*/
|
|
2490
|
+
declare class DrawerSharedDirective {
|
|
2491
|
+
/** The key pairing this element with its counterpart; unique within each side. */
|
|
2492
|
+
readonly key: i0.InputSignal<string>;
|
|
2493
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerSharedDirective, never>;
|
|
2494
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerSharedDirective, "[tlsDrawerShared]", never, { "key": { "alias": "tlsDrawerShared"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1593
2495
|
}
|
|
1594
2496
|
|
|
1595
2497
|
interface DrawerOpenConfig<D = unknown> {
|
|
@@ -1603,11 +2505,45 @@ interface DrawerOpenConfig<D = unknown> {
|
|
|
1603
2505
|
rounded?: boolean;
|
|
1604
2506
|
/**
|
|
1605
2507
|
* Renders a grabber pill on the edge facing the viewport and makes the panel
|
|
1606
|
-
* draggable toward that edge to dismiss.
|
|
2508
|
+
* draggable toward that edge to dismiss. `auto` shows it on a bottom sheet only.
|
|
1607
2509
|
*/
|
|
1608
|
-
grabber?:
|
|
2510
|
+
grabber?: drawerGrabber;
|
|
2511
|
+
/**
|
|
2512
|
+
* The element the panel slides out of and back into — typically what opened
|
|
2513
|
+
* it, such as a sheet's lip at the foot of the screen: the panel starts and
|
|
2514
|
+
* ends with only the origin's part of it showing, laid over the origin.
|
|
2515
|
+
* Takes effect only where the panel covers the element; anywhere else, and
|
|
2516
|
+
* once the element has left the page, the panel slides in from off-screen.
|
|
2517
|
+
*/
|
|
2518
|
+
origin?: HTMLElement | null;
|
|
2519
|
+
/**
|
|
2520
|
+
* Where focus goes once the drawer closes: an element, or `true` for whatever
|
|
2521
|
+
* held focus when it opened. Name the opener outright where a pointer opens
|
|
2522
|
+
* the drawer — Safari does not focus a button on click, so "whatever held
|
|
2523
|
+
* focus" would be the page itself.
|
|
2524
|
+
*/
|
|
2525
|
+
restoreFocus?: HTMLElement | boolean;
|
|
2526
|
+
/**
|
|
2527
|
+
* Opens the drawer under a drag instead of by itself: it stays where it
|
|
2528
|
+
* starts until the caller feeds the drag through `DrawerRef.followOpenDrag`
|
|
2529
|
+
* and ends it with `DrawerRef.releaseOpenDrag`, which settles it open or
|
|
2530
|
+
* closed. `DrawerTriggerDirective` does this for a drag that starts on it.
|
|
2531
|
+
*/
|
|
2532
|
+
openByDrag?: boolean;
|
|
1609
2533
|
/** Accessible name for the close button. */
|
|
1610
2534
|
closeLabel?: string;
|
|
2535
|
+
/**
|
|
2536
|
+
* Extra class(es) placed on the overlay pane, so one drawer can carry its own
|
|
2537
|
+
* treatment where the shared one does not fit.
|
|
2538
|
+
*
|
|
2539
|
+
* The pane sits outside every component's template and carries no style
|
|
2540
|
+
* encapsulation attribute, so a consumer's scoped rules cannot otherwise reach
|
|
2541
|
+
* it. A class named here is the handle they get. The drawer declares its own
|
|
2542
|
+
* `--tls-drawer-*` properties, which beat anything inherited from the pane, so
|
|
2543
|
+
* a rule that retunes one has to name the drawer too: `.<class> .tls-drawer`.
|
|
2544
|
+
* The backdrop is the pane's sibling rather than its child, so it is not reached.
|
|
2545
|
+
*/
|
|
2546
|
+
panelClass?: string | string[];
|
|
1611
2547
|
role?: DialogRole;
|
|
1612
2548
|
ariaLabel?: string | null;
|
|
1613
2549
|
ariaLabelledBy?: string | null;
|
|
@@ -1618,30 +2554,240 @@ declare class DrawerService {
|
|
|
1618
2554
|
private readonly _overlay;
|
|
1619
2555
|
private readonly _directionality;
|
|
1620
2556
|
private readonly _config;
|
|
2557
|
+
/**
|
|
2558
|
+
* Currently-open drawers, tracked so `closeAll` can play each slide-out and so it
|
|
2559
|
+
* closes drawers only (the CDK `Dialog` is shared with `tls-dialog`).
|
|
2560
|
+
*/
|
|
1621
2561
|
private readonly _openDrawers;
|
|
1622
2562
|
open<R = unknown, D = unknown, C = unknown>(component: ComponentType<C>, config?: DrawerOpenConfig<D>): DrawerRef<R, C>;
|
|
1623
2563
|
closeAll(): void;
|
|
2564
|
+
/**
|
|
2565
|
+
* The drag gesture lives on the drawer container, whose inputs cannot be bound
|
|
2566
|
+
* because the CDK instantiates it rather than a template, so its configuration
|
|
2567
|
+
* is handed down through the injector instead.
|
|
2568
|
+
*/
|
|
1624
2569
|
private _buildPanConfig;
|
|
2570
|
+
/**
|
|
2571
|
+
* A bottom sheet is dragged down to dismiss often enough that its grabber is
|
|
2572
|
+
* expected; a panel on any other side shows one only when asked.
|
|
2573
|
+
*/
|
|
2574
|
+
private _resolveGrabber;
|
|
1625
2575
|
private _buildPositionStrategy;
|
|
1626
2576
|
private _wireDismissal;
|
|
1627
2577
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerService, never>;
|
|
1628
2578
|
static ɵprov: i0.ɵɵInjectableDeclaration<DrawerService>;
|
|
1629
2579
|
}
|
|
1630
2580
|
|
|
2581
|
+
/**
|
|
2582
|
+
* Makes its host the control that opens a drawer, and the place the drawer
|
|
2583
|
+
* slides out of and back into. Announces the popup it controls and whether it
|
|
2584
|
+
* is open; focus returns to the host when the drawer closes.
|
|
2585
|
+
*
|
|
2586
|
+
* A press asks for the drawer through `openRequest`. With `dragToOpen`, so does
|
|
2587
|
+
* a drag starting on the host — and the drawer then follows the finger out of
|
|
2588
|
+
* it, settling open or back closed on release. Opening stays with the caller,
|
|
2589
|
+
* so the drawer's content and result keep their types: answer `openRequest` by
|
|
2590
|
+
* calling `open` on the directive.
|
|
2591
|
+
*
|
|
2592
|
+
* ```html
|
|
2593
|
+
* <button tlsDrawerTrigger dragToOpen #trigger="tlsDrawerTrigger"
|
|
2594
|
+
* (openRequest)="openSession(trigger)">…</button>
|
|
2595
|
+
* ```
|
|
2596
|
+
*
|
|
2597
|
+
* The drag runs along `dragAxis` (`y` by default, for a sheet at the top or
|
|
2598
|
+
* bottom), for touch and pen: a mouse opens the drawer with a click.
|
|
2599
|
+
*
|
|
2600
|
+
* Place it on a native `<button>`: the press it listens for is the button's own
|
|
2601
|
+
* click, which carries the keyboard's Enter and Space with it.
|
|
2602
|
+
*/
|
|
2603
|
+
declare class DrawerTriggerDirective {
|
|
2604
|
+
private readonly _drawerService;
|
|
2605
|
+
private readonly _elementRef;
|
|
2606
|
+
/** Asks for the drawer, by a press or a drag; answer it by calling `open`. */
|
|
2607
|
+
readonly openRequest: i0.OutputEmitterRef<void>;
|
|
2608
|
+
private readonly _openRef;
|
|
2609
|
+
/**
|
|
2610
|
+
* Raised only while `openRequest` is emitted for a drag, so the `open` that
|
|
2611
|
+
* answers it knows to open under the drag.
|
|
2612
|
+
*/
|
|
2613
|
+
private _requestedByDrag;
|
|
2614
|
+
/** The drawer following the drag in progress, if one opened for it. */
|
|
2615
|
+
private _draggedRef;
|
|
2616
|
+
readonly isOpen: i0.Signal<boolean>;
|
|
2617
|
+
/**
|
|
2618
|
+
* The drawer it opened, while that is open; nothing to point at otherwise.
|
|
2619
|
+
*/
|
|
2620
|
+
protected readonly controlsId: i0.Signal<string | null>;
|
|
2621
|
+
constructor();
|
|
2622
|
+
/**
|
|
2623
|
+
* Opens a drawer from the host, which the drawer takes as its origin — under
|
|
2624
|
+
* the drag in progress when answering one.
|
|
2625
|
+
*/
|
|
2626
|
+
open<R = unknown, D = unknown, C = unknown>(component: ComponentType<C>, config?: Omit<DrawerOpenConfig<D>, 'origin' | 'restoreFocus' | 'openByDrag'>): DrawerRef<R, C>;
|
|
2627
|
+
protected onClick(): void;
|
|
2628
|
+
private _onDragStart;
|
|
2629
|
+
private _onDragMove;
|
|
2630
|
+
private _onDragEnd;
|
|
2631
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerTriggerDirective, never>;
|
|
2632
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerTriggerDirective, "[tlsDrawerTrigger]", ["tlsDrawerTrigger"], {}, { "openRequest": "openRequest"; }, never, never, true, [{ directive: typeof i1.PanDirective; inputs: { "tlsPan": "dragToOpen"; "axis": "dragAxis"; }; outputs: {}; }]>;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
1631
2635
|
declare const DRAWER_CONFIG: InjectionToken<DrawerConfig>;
|
|
2636
|
+
/** One panel's resolved configuration. Provided per drawer by `DrawerService`. */
|
|
2637
|
+
declare const DRAWER_PANEL_CONFIG: InjectionToken<DrawerPanelConfig>;
|
|
2638
|
+
/** How a drawer is being opened. Provided per drawer by `DrawerService`. */
|
|
2639
|
+
declare const DRAWER_OPENING: InjectionToken<DrawerOpening>;
|
|
2640
|
+
|
|
2641
|
+
/** A single action in a FAB menu's fanned-out stack. */
|
|
2642
|
+
interface FabMenuItemDefinition {
|
|
2643
|
+
label: string;
|
|
2644
|
+
/**
|
|
2645
|
+
* Icon source rendered leading the label. A consumer with its own icon
|
|
2646
|
+
* system supplies a `#itemIcon` template instead, which takes precedence.
|
|
2647
|
+
*/
|
|
2648
|
+
icon?: string;
|
|
2649
|
+
disabled?: boolean;
|
|
2650
|
+
/** Consumer payload, available to the `#itemIcon` template via the item. */
|
|
2651
|
+
data?: unknown;
|
|
2652
|
+
action?: () => void;
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2655
|
+
/**
|
|
2656
|
+
* A speed-dial FAB: a floating action button whose tap fans a vertical stack
|
|
2657
|
+
* of labelled pill actions out above it, one per item. The projected content
|
|
2658
|
+
* is the trigger's glyph, which turns while the menu is open (a `+` reads as a
|
|
2659
|
+
* close cross). The consumer positions the host — the host *is* the FAB.
|
|
2660
|
+
*
|
|
2661
|
+
* Reserve it for a FAB whose action genuinely forks into a small set of
|
|
2662
|
+
* choices; a single-action FAB stays a plain `tls-button [fab]`, and a
|
|
2663
|
+
* non-floating trigger takes a `tls-menu`.
|
|
2664
|
+
*/
|
|
2665
|
+
declare class FabMenu {
|
|
2666
|
+
private static _counter;
|
|
2667
|
+
private readonly _elementRef;
|
|
2668
|
+
/**
|
|
2669
|
+
* The stack exists only while open, so the ref doubles as "is it rendered".
|
|
2670
|
+
*/
|
|
2671
|
+
private readonly _itemsList;
|
|
2672
|
+
private readonly _trigger;
|
|
2673
|
+
/**
|
|
2674
|
+
* Leading icon of every item, rendered instead of the item's `icon` source —
|
|
2675
|
+
* the slot for consumers whose icons are components rather than sources.
|
|
2676
|
+
* Receives the item as `$implicit`.
|
|
2677
|
+
*/
|
|
2678
|
+
protected readonly iconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
2679
|
+
readonly id: string;
|
|
2680
|
+
readonly items: InputSignal<FabMenuItemDefinition[]>;
|
|
2681
|
+
/** Accessible name shared by the trigger and the menu it opens. */
|
|
2682
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
2683
|
+
readonly color: InputSignal<color>;
|
|
2684
|
+
/**
|
|
2685
|
+
* Treatment of the trigger. A floating action stands for the screen's main
|
|
2686
|
+
* action, so it is filled unless asked otherwise, whatever the app-wide
|
|
2687
|
+
* button default is.
|
|
2688
|
+
*/
|
|
2689
|
+
readonly variant: InputSignal<buttonVariant>;
|
|
2690
|
+
private readonly _open;
|
|
2691
|
+
readonly isOpen: i0.Signal<boolean>;
|
|
2692
|
+
constructor();
|
|
2693
|
+
open(): void;
|
|
2694
|
+
/** Closes the stack; `refocusTrigger` hands focus back for a keyboard dismissal. */
|
|
2695
|
+
close(refocusTrigger?: boolean): void;
|
|
2696
|
+
toggle(): void;
|
|
2697
|
+
protected onItemSelected(item: FabMenuItemDefinition): void;
|
|
2698
|
+
/**
|
|
2699
|
+
* A tap outside the component dismisses the stack; one inside it is the
|
|
2700
|
+
* trigger's own toggle or an item selection, each already handled.
|
|
2701
|
+
*/
|
|
2702
|
+
protected onDocumentClick(event: MouseEvent): void;
|
|
2703
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FabMenu, never>;
|
|
2704
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FabMenu, "tls-fab-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, ["iconTemplate"], ["*"], true, never>;
|
|
2705
|
+
}
|
|
1632
2706
|
|
|
1633
2707
|
declare class FormControlAddon {
|
|
2708
|
+
private readonly _group;
|
|
2709
|
+
private readonly _elementRef;
|
|
2710
|
+
/**
|
|
2711
|
+
* Whether a rule is drawn on each edge the addon shares with a sibling, seaming it
|
|
2712
|
+
* off from the control beside it. Off by default: a field reads as one surface, and
|
|
2713
|
+
* a rule is worth its weight only when the addon is a distinct region — an action,
|
|
2714
|
+
* a unit selector — rather than a hint attached to the value.
|
|
2715
|
+
*/
|
|
2716
|
+
readonly divider: InputSignalWithTransform<boolean, unknown>;
|
|
2717
|
+
/**
|
|
2718
|
+
* Whether clicking the addon hands the field's control over, the way clicking a
|
|
2719
|
+
* `<label>` reaches the input it names — focus for a control edited in place, focus
|
|
2720
|
+
* and an open panel for one whose value lives behind a list or a calendar. On by
|
|
2721
|
+
* default: an addon sits inside the field's border, so it reads as part of the field
|
|
2722
|
+
* and a click that landed nowhere would feel broken. Turn it off for an addon whose
|
|
2723
|
+
* content is meant to be selected or copied rather than treated as a way in.
|
|
2724
|
+
*/
|
|
2725
|
+
readonly focusControl: InputSignalWithTransform<boolean, unknown>;
|
|
2726
|
+
/**
|
|
2727
|
+
* The control a click hands over to, named by template reference:
|
|
2728
|
+
*
|
|
2729
|
+
* ```html
|
|
2730
|
+
* <tls-input #amount />
|
|
2731
|
+
* <tls-form-control-addon [control]="amount">USD</tls-form-control-addon>
|
|
2732
|
+
* ```
|
|
2733
|
+
*
|
|
2734
|
+
* Unset, the addon takes the control nearest it in the row, which is what a field of
|
|
2735
|
+
* one control — or an addon sitting against the control it belongs to — already wants.
|
|
2736
|
+
* Name the control when the row leaves that ambiguous: an addon between two controls,
|
|
2737
|
+
* or one that belongs to a control further along.
|
|
2738
|
+
*/
|
|
2739
|
+
readonly control: i0.InputSignal<HTMLElement | FormControl<unknown> | undefined>;
|
|
2740
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
2741
|
+
protected onClick(event: MouseEvent): void;
|
|
1634
2742
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlAddon, never>;
|
|
1635
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormControlAddon, "tls-form-control-addon", never, {}, {}, never, ["*"], true, never>;
|
|
2743
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormControlAddon, "tls-form-control-addon", never, { "divider": { "alias": "divider"; "required": false; "isSignal": true; }; "focusControl": { "alias": "focusControl"; "required": false; "isSignal": true; }; "control": { "alias": "control"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1636
2744
|
}
|
|
1637
2745
|
|
|
1638
2746
|
declare class FormControlGroup {
|
|
1639
2747
|
private _config;
|
|
2748
|
+
private readonly _elementRef;
|
|
2749
|
+
/**
|
|
2750
|
+
* The controls projected into the field. A control that reports itself this way can be
|
|
2751
|
+
* activated rather than merely focused, which is what lets a click on an addon open a
|
|
2752
|
+
* select's list instead of leaving it shut.
|
|
2753
|
+
*/
|
|
2754
|
+
private readonly _projectedControls;
|
|
1640
2755
|
readonly size: InputSignal<controlSize>;
|
|
1641
2756
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
1642
2757
|
protected readonly hostClasses: Signal<string[]>;
|
|
2758
|
+
/**
|
|
2759
|
+
* Hands over a control the field wraps, opening its panel if it has one. A field may
|
|
2760
|
+
* hold several — a country select beside a phone number, the two ends of a range — so
|
|
2761
|
+
* `origin` names the element the request came from (an addon that was clicked) and the
|
|
2762
|
+
* control nearest it is taken. Without an origin the first control is. Does nothing
|
|
2763
|
+
* when the field wraps no enabled control.
|
|
2764
|
+
*/
|
|
2765
|
+
activateControl(origin?: Element): void;
|
|
2766
|
+
/**
|
|
2767
|
+
* Every control the field can hand over, in document order.
|
|
2768
|
+
*
|
|
2769
|
+
* A projected control is taken at its word — it knows which of its elements takes
|
|
2770
|
+
* focus and what handing it over means. Anything else focusable is included as a bare
|
|
2771
|
+
* element, so a field assembled from native markup rather than the library's controls
|
|
2772
|
+
* behaves the same; elements already covered by a projected control are left out so
|
|
2773
|
+
* neither is counted twice. Addon contents are chrome around the value rather than the
|
|
2774
|
+
* value, and a disabled control cannot take focus — `:disabled` reads the element's
|
|
2775
|
+
* actual state, so it also covers one switched off by an ancestor `<fieldset>` rather
|
|
2776
|
+
* than by an attribute of its own.
|
|
2777
|
+
*/
|
|
2778
|
+
private _controls;
|
|
2779
|
+
/** Row order, so a request without an origin lands on the field's first control. */
|
|
2780
|
+
private _inDocumentOrder;
|
|
2781
|
+
/**
|
|
2782
|
+
* The control closest to `origin`, measured in places along the row rather than in
|
|
2783
|
+
* pixels, so it holds however the children are laid out. A tie — an addon sitting
|
|
2784
|
+
* between two controls — goes to the one that follows, the way a prefix belongs to
|
|
2785
|
+
* what comes after it. Distance is counted in document order, which runs start-to-end
|
|
2786
|
+
* in both directions, so this needs no separate right-to-left case.
|
|
2787
|
+
*/
|
|
2788
|
+
private _nearestControl;
|
|
1643
2789
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlGroup, never>;
|
|
1644
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormControlGroup, "tls-form-control-group", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {},
|
|
2790
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormControlGroup, "tls-form-control-group", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, ["_projectedControls"], ["*"], true, never>;
|
|
1645
2791
|
}
|
|
1646
2792
|
|
|
1647
2793
|
interface FormControlGroupConfig {
|
|
@@ -1695,6 +2841,8 @@ declare class FormItem {
|
|
|
1695
2841
|
protected readonly labelId: string;
|
|
1696
2842
|
/** Stable id assigned to the native control element, linked from the label via `for`. */
|
|
1697
2843
|
protected readonly controlId: string;
|
|
2844
|
+
/** Stable id for the hint element, linked to the control via `aria-describedby`. */
|
|
2845
|
+
protected readonly hintId: string;
|
|
1698
2846
|
/** Stable id for the error element, linked to the control via `aria-describedby`. */
|
|
1699
2847
|
protected readonly errorId: string;
|
|
1700
2848
|
label: i0.InputSignal<string | undefined>;
|
|
@@ -1713,7 +2861,21 @@ declare class FormItem {
|
|
|
1713
2861
|
displayErrors: i0.InputSignal<boolean>;
|
|
1714
2862
|
showRequiredMarker: i0.InputSignal<boolean>;
|
|
1715
2863
|
optionalText: i0.InputSignal<string | undefined>;
|
|
2864
|
+
/**
|
|
2865
|
+
* Character budget of the control's value. When set, a `current/max` counter is rendered on the
|
|
2866
|
+
* footer's trailing edge, tracking the projected control's string value as it is typed.
|
|
2867
|
+
*/
|
|
2868
|
+
maxLength: i0.InputSignal<number | undefined>;
|
|
2869
|
+
/**
|
|
2870
|
+
* Guidance rendered in the footer beneath the control — the format or rules a value must meet.
|
|
2871
|
+
* A displayed validation error takes its place, so the footer holds one message at a time.
|
|
2872
|
+
*/
|
|
2873
|
+
hint: i0.InputSignal<string | undefined>;
|
|
1716
2874
|
protected isInvalid: Signal<boolean>;
|
|
2875
|
+
/** Whether the footer renders the control's validation error. */
|
|
2876
|
+
protected showError: Signal<boolean>;
|
|
2877
|
+
/** Whether the footer renders the hint, which yields to a displayed error. */
|
|
2878
|
+
protected showHint: Signal<boolean>;
|
|
1717
2879
|
protected showRequired: Signal<boolean>;
|
|
1718
2880
|
protected showOptional: Signal<boolean>;
|
|
1719
2881
|
/** Whether a label is rendered, from either the `label` input or a custom label template. */
|
|
@@ -1721,12 +2883,19 @@ declare class FormItem {
|
|
|
1721
2883
|
protected labelContext: Signal<FormItemLabelContext>;
|
|
1722
2884
|
protected labelFor: Signal<string | null>;
|
|
1723
2885
|
protected hostClasses: Signal<string[]>;
|
|
2886
|
+
protected hasCounter: Signal<boolean>;
|
|
2887
|
+
/**
|
|
2888
|
+
* Length of the control's current value. Only a string value has a character count; any
|
|
2889
|
+
* other control type under a counter reads as empty rather than failing.
|
|
2890
|
+
*/
|
|
2891
|
+
protected characterCount: Signal<number>;
|
|
2892
|
+
protected overLimit: Signal<boolean>;
|
|
1724
2893
|
protected errorMessages: Signal<string[]>;
|
|
1725
2894
|
protected firstErrorMessage: Signal<string | null>;
|
|
1726
2895
|
constructor();
|
|
1727
2896
|
private _getErrorMessages;
|
|
1728
2897
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormItem, never>;
|
|
1729
|
-
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; }; }, {}, ["control", "labelTemplate"], ["*"], true, never>;
|
|
2898
|
+
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>;
|
|
1730
2899
|
}
|
|
1731
2900
|
|
|
1732
2901
|
declare const FORM_ITEM_CONFIG: InjectionToken<FormItemConfig>;
|
|
@@ -1870,6 +3039,374 @@ declare class Checkbox extends CheckboxFormControl {
|
|
|
1870
3039
|
static ɵcmp: i0.ɵɵComponentDeclaration<Checkbox, "tls-checkbox", never, { "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "indeterminate": "indeterminateChange"; "checked": "checkedChange"; }, never, never, true, never>;
|
|
1871
3040
|
}
|
|
1872
3041
|
|
|
3042
|
+
/** Text notation a color can be displayed and typed in. */
|
|
3043
|
+
type colorFormat = 'hex' | 'rgb' | 'hsl';
|
|
3044
|
+
/** Letter case hex notation is displayed in; committed values stay lowercase. */
|
|
3045
|
+
type hexCase = 'lower' | 'upper';
|
|
3046
|
+
/** Color in RGB space: channels 0–255, alpha 0–1. */
|
|
3047
|
+
interface Rgba {
|
|
3048
|
+
red: number;
|
|
3049
|
+
green: number;
|
|
3050
|
+
blue: number;
|
|
3051
|
+
alpha: number;
|
|
3052
|
+
}
|
|
3053
|
+
/**
|
|
3054
|
+
* Color in HSV (hue–saturation–value) space: hue 0–360, the rest 0–1.
|
|
3055
|
+
* HSV keeps hue meaningful at zero saturation or value, which is why the
|
|
3056
|
+
* picker holds its working state in this space.
|
|
3057
|
+
*/
|
|
3058
|
+
interface Hsva {
|
|
3059
|
+
hue: number;
|
|
3060
|
+
saturation: number;
|
|
3061
|
+
value: number;
|
|
3062
|
+
alpha: number;
|
|
3063
|
+
}
|
|
3064
|
+
/**
|
|
3065
|
+
* Shape of the platform's EyeDropper API (not yet in the DOM lib typings):
|
|
3066
|
+
* `open()` resolves with the picked screen color once the user clicks.
|
|
3067
|
+
*/
|
|
3068
|
+
interface EyeDropperConstructor {
|
|
3069
|
+
new (): {
|
|
3070
|
+
open(): Promise<{
|
|
3071
|
+
sRGBHex: string;
|
|
3072
|
+
}>;
|
|
3073
|
+
};
|
|
3074
|
+
}
|
|
3075
|
+
/** Color in HSL space: hue 0–360, the rest 0–1. */
|
|
3076
|
+
interface Hsla {
|
|
3077
|
+
hue: number;
|
|
3078
|
+
saturation: number;
|
|
3079
|
+
lightness: number;
|
|
3080
|
+
alpha: number;
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3083
|
+
/**
|
|
3084
|
+
* Color form field: a text input for typing a color (hex/rgb()/hsl(), always
|
|
3085
|
+
* committed as lowercase hex) with a swatch button on the inline-start that
|
|
3086
|
+
* opens a `tls-color-picker` panel in a popover. The panel and the field stay
|
|
3087
|
+
* live-synced while the popover is open.
|
|
3088
|
+
*/
|
|
3089
|
+
declare class ColorInput extends ValueFormControl<string> {
|
|
3090
|
+
private readonly _config;
|
|
3091
|
+
private readonly _pickerConfig;
|
|
3092
|
+
readonly supportsLabelFor = true;
|
|
3093
|
+
readonly value: ModelSignal<string>;
|
|
3094
|
+
/** Enables the alpha slider in the panel; committed hex gains an alpha channel. */
|
|
3095
|
+
readonly alpha: InputSignalWithTransform<boolean, unknown>;
|
|
3096
|
+
/** Hex colors offered as one-tap swatches inside the panel. */
|
|
3097
|
+
readonly presets: InputSignal<string[]>;
|
|
3098
|
+
/** Notations the panel's readout may display; forwarded to the embedded picker. */
|
|
3099
|
+
readonly formats: InputSignal<colorFormat[]>;
|
|
3100
|
+
/** Letter case the field and panel readout display hex in; the emitted value stays lowercase. */
|
|
3101
|
+
readonly hexCase: InputSignal<hexCase>;
|
|
3102
|
+
/**
|
|
3103
|
+
* Confines the value to the panel: the field rejects typing and instead
|
|
3104
|
+
* opens the picker on click or Enter/Space/ArrowDown. Unlike `readonly`,
|
|
3105
|
+
* the control stays fully interactive — only the free-text entry goes.
|
|
3106
|
+
*/
|
|
3107
|
+
readonly pickerOnly: InputSignalWithTransform<boolean, unknown>;
|
|
3108
|
+
readonly placeholder: InputSignal<string>;
|
|
3109
|
+
readonly size: InputSignal<controlSize>;
|
|
3110
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
3111
|
+
private readonly _popoverComponent;
|
|
3112
|
+
private readonly _trigger;
|
|
3113
|
+
protected readonly labels: _thalassic_ui.ColorInputLabels;
|
|
3114
|
+
/** An empty or unparsable value renders as a fully transparent swatch. */
|
|
3115
|
+
protected readonly swatchColor: Signal<string>;
|
|
3116
|
+
/** Field text: the value, hex-cased for display; the model itself stays lowercase. */
|
|
3117
|
+
protected readonly displayValue: Signal<string>;
|
|
3118
|
+
/** The panel needs a concrete color to start from even while the field is empty. */
|
|
3119
|
+
protected readonly pickerValue: Signal<string>;
|
|
3120
|
+
activate(): void;
|
|
3121
|
+
protected onPickerValueChange(next: string): void;
|
|
3122
|
+
protected onFieldClick(): void;
|
|
3123
|
+
protected onFieldKeydown(event: KeyboardEvent): void;
|
|
3124
|
+
protected onFieldBlur(event: Event): void;
|
|
3125
|
+
/** A readonly control still opens the panel — the picker inside is readonly too. */
|
|
3126
|
+
private _openPanel;
|
|
3127
|
+
private _commitField;
|
|
3128
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorInput, never>;
|
|
3129
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorInput, "tls-color-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "alpha": { "alias": "alpha"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "formats": { "alias": "formats"; "required": false; "isSignal": true; }; "hexCase": { "alias": "hexCase"; "required": false; "isSignal": true; }; "pickerOnly": { "alias": "pickerOnly"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
/** Accessible names for the control's inner elements. */
|
|
3133
|
+
interface ColorInputLabels {
|
|
3134
|
+
openPicker: string;
|
|
3135
|
+
/** Name of the popover dialog holding the picker panel. */
|
|
3136
|
+
panel: string;
|
|
3137
|
+
}
|
|
3138
|
+
interface ColorInputConfig {
|
|
3139
|
+
size: controlSize;
|
|
3140
|
+
fluid: boolean;
|
|
3141
|
+
placeholder: string;
|
|
3142
|
+
labels: ColorInputLabels;
|
|
3143
|
+
}
|
|
3144
|
+
declare const DEFAULT_COLOR_INPUT_CONFIG: ColorInputConfig;
|
|
3145
|
+
|
|
3146
|
+
declare const COLOR_INPUT_CONFIG: InjectionToken<ColorInputConfig>;
|
|
3147
|
+
|
|
3148
|
+
/**
|
|
3149
|
+
* Standalone color panel: a 2-D saturation/brightness surface, hue and
|
|
3150
|
+
* (opt-in) alpha sliders, an editable readout that accepts hex/rgb()/hsl()
|
|
3151
|
+
* notation, preset swatches, and — where the platform offers one — an
|
|
3152
|
+
* eyedropper. Reads and writes a lowercase hex string (`#rrggbb`, or
|
|
3153
|
+
* `#rrggbbaa` when `alpha` is enabled) while holding its working state in HSV,
|
|
3154
|
+
* so the chosen hue survives passes through black, white, and gray.
|
|
3155
|
+
*/
|
|
3156
|
+
declare class ColorPicker extends ValueFormControl<string> {
|
|
3157
|
+
private readonly _config;
|
|
3158
|
+
private readonly _directionality;
|
|
3159
|
+
protected readonly CLASS_NAME = "tls-color-picker";
|
|
3160
|
+
readonly value: ModelSignal<string>;
|
|
3161
|
+
/** Enables the alpha slider; the emitted hex gains an alpha channel (`#rrggbbaa`). */
|
|
3162
|
+
readonly alpha: InputSignalWithTransform<boolean, unknown>;
|
|
3163
|
+
readonly size: InputSignal<controlSize>;
|
|
3164
|
+
/**
|
|
3165
|
+
* Notations the readout may display, in cycle order; the first entry is the
|
|
3166
|
+
* starting format. A single entry pins the readout and hides the toggle.
|
|
3167
|
+
*/
|
|
3168
|
+
readonly formats: InputSignal<colorFormat[]>;
|
|
3169
|
+
/** Hex colors offered as one-tap swatches below the readout. */
|
|
3170
|
+
readonly presets: InputSignal<string[]>;
|
|
3171
|
+
/** Letter case the hex readout displays in; the emitted value stays lowercase. */
|
|
3172
|
+
readonly hexCase: InputSignal<hexCase>;
|
|
3173
|
+
private readonly _svThumb;
|
|
3174
|
+
private readonly _svArea;
|
|
3175
|
+
private readonly _chosenFormat;
|
|
3176
|
+
protected readonly labels: _thalassic_ui.ColorPickerLabels;
|
|
3177
|
+
/** Present only while the platform implements the EyeDropper API. */
|
|
3178
|
+
protected readonly supportsEyeDropper: boolean;
|
|
3179
|
+
private readonly _hsv;
|
|
3180
|
+
private readonly _dragging;
|
|
3181
|
+
/** Guards the value→HSV sync against re-parsing a hex this picker just emitted. */
|
|
3182
|
+
private _lastEmittedHex;
|
|
3183
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
3184
|
+
protected readonly hue: Signal<number>;
|
|
3185
|
+
protected readonly alphaPercent: Signal<number>;
|
|
3186
|
+
protected readonly saturationPercent: Signal<number>;
|
|
3187
|
+
protected readonly brightnessPercent: Signal<number>;
|
|
3188
|
+
protected readonly hex: Signal<string>;
|
|
3189
|
+
/** Fully saturated, fully bright color of the current hue — the SV area's base tint. */
|
|
3190
|
+
protected readonly hueColor: Signal<string>;
|
|
3191
|
+
/** The picked color at full opacity — what the alpha slider fades up to. */
|
|
3192
|
+
protected readonly opaqueColor: Signal<string>;
|
|
3193
|
+
protected readonly svValueText: Signal<string>;
|
|
3194
|
+
/** The toggled format while it stays allowed; otherwise the first allowed one. */
|
|
3195
|
+
protected readonly activeFormat: Signal<colorFormat>;
|
|
3196
|
+
protected readonly readoutText: Signal<string>;
|
|
3197
|
+
/**
|
|
3198
|
+
* Readonly keeps the thumb focusable — the keydown handler blocks edits —
|
|
3199
|
+
* so its value stays reachable and announcable; only disabled removes it
|
|
3200
|
+
* from the tab order.
|
|
3201
|
+
*/
|
|
3202
|
+
protected readonly tabindex: Signal<number>;
|
|
3203
|
+
constructor();
|
|
3204
|
+
protected onSvPointerDown(event: PointerEvent): void;
|
|
3205
|
+
protected onSvPointerMove(event: PointerEvent): void;
|
|
3206
|
+
protected onSvPointerUp(event: PointerEvent): void;
|
|
3207
|
+
/**
|
|
3208
|
+
* Pointer capture is already released once the browser cancels the pointer, so
|
|
3209
|
+
* this only resets drag state (calling `releasePointerCapture` here can throw).
|
|
3210
|
+
*/
|
|
3211
|
+
protected onSvPointerCancel(): void;
|
|
3212
|
+
protected onSvKeydown(event: KeyboardEvent): void;
|
|
3213
|
+
protected onHueChange(hue: number): void;
|
|
3214
|
+
protected onAlphaChange(percent: number): void;
|
|
3215
|
+
protected onReadoutKeydown(event: KeyboardEvent): void;
|
|
3216
|
+
protected onReadoutBlur(event: Event): void;
|
|
3217
|
+
protected cycleFormat(): void;
|
|
3218
|
+
protected onPresetChange(preset: string | null): void;
|
|
3219
|
+
protected openEyeDropper(): Promise<void>;
|
|
3220
|
+
private _commit;
|
|
3221
|
+
private _commitReadout;
|
|
3222
|
+
private _updateFromPointer;
|
|
3223
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPicker, never>;
|
|
3224
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPicker, "tls-color-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "alpha": { "alias": "alpha"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "formats": { "alias": "formats"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "hexCase": { "alias": "hexCase"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
3225
|
+
}
|
|
3226
|
+
|
|
3227
|
+
/** Accessible names for the picker's inner controls. */
|
|
3228
|
+
interface ColorPickerLabels {
|
|
3229
|
+
saturationBrightness: string;
|
|
3230
|
+
colorValue: string;
|
|
3231
|
+
switchFormat: string;
|
|
3232
|
+
eyedropper: string;
|
|
3233
|
+
presets: string;
|
|
3234
|
+
}
|
|
3235
|
+
interface ColorPickerConfig {
|
|
3236
|
+
size: controlSize;
|
|
3237
|
+
/**
|
|
3238
|
+
* Notations the readout may display, in cycle order; the first entry is the
|
|
3239
|
+
* starting format. A single entry pins the readout and hides the toggle.
|
|
3240
|
+
*/
|
|
3241
|
+
formats: colorFormat[];
|
|
3242
|
+
/** Letter case hex notation is displayed in; committed values stay lowercase. */
|
|
3243
|
+
hexCase: hexCase;
|
|
3244
|
+
labels: ColorPickerLabels;
|
|
3245
|
+
}
|
|
3246
|
+
declare const DEFAULT_COLOR_PICKER_CONFIG: ColorPickerConfig;
|
|
3247
|
+
|
|
3248
|
+
/** Fallback color when the bound value is absent or unparsable. */
|
|
3249
|
+
declare const COLOR_PICKER_DEFAULT_VALUE = "#000000";
|
|
3250
|
+
/** Saturation/brightness change per arrow-key press, as a 0–1 ratio. */
|
|
3251
|
+
declare const SV_KEYBOARD_STEP = 0.01;
|
|
3252
|
+
/** Saturation/brightness change per shift-arrow press, as a 0–1 ratio. */
|
|
3253
|
+
declare const SV_KEYBOARD_STEP_LARGE = 0.1;
|
|
3254
|
+
/** Order the readout's format toggle cycles through. */
|
|
3255
|
+
declare const FORMAT_CYCLE: colorFormat[];
|
|
3256
|
+
|
|
3257
|
+
declare const COLOR_PICKER_CONFIG: InjectionToken<ColorPickerConfig>;
|
|
3258
|
+
|
|
3259
|
+
/**
|
|
3260
|
+
* Parses a color from hex (`#rgb`, `#rgba`, `#rrggbb`, `#rrggbbaa`, hash
|
|
3261
|
+
* optional), `rgb()`/`rgba()`, or `hsl()`/`hsla()` notation. Out-of-range
|
|
3262
|
+
* channels are clamped; unrecognized input yields null.
|
|
3263
|
+
*/
|
|
3264
|
+
declare function parseColor(text: string): Rgba | null;
|
|
3265
|
+
/** Formats a color as lowercase `#rrggbb`, or `#rrggbbaa` when `includeAlpha`. */
|
|
3266
|
+
declare function rgbaToHex(rgba: Rgba, includeAlpha?: boolean): string;
|
|
3267
|
+
/**
|
|
3268
|
+
* One color written two ways reduced to a single form, so notations can be
|
|
3269
|
+
* compared: lowercase `#rrggbb`, or `#rrggbbaa` when the color is translucent.
|
|
3270
|
+
* Null for anything that is not a readable color — a custom property that only
|
|
3271
|
+
* the browser can resolve, or a string that is not a color at all.
|
|
3272
|
+
*/
|
|
3273
|
+
declare function canonicalHex(text: string): string | null;
|
|
3274
|
+
declare function rgbToHsv(rgba: Rgba): Hsva;
|
|
3275
|
+
declare function hsvToRgb(hsva: Hsva): Rgba;
|
|
3276
|
+
declare function hsvToHsl(hsva: Hsva): Hsla;
|
|
3277
|
+
declare function hslToHsv(hsla: Hsla): Hsva;
|
|
3278
|
+
/**
|
|
3279
|
+
* Foreground — black or white — that reads best against the given color:
|
|
3280
|
+
* white on dark and mid-tone saturated colors, black on light ones.
|
|
3281
|
+
*/
|
|
3282
|
+
declare function contrastForeground(rgba: Rgba): string;
|
|
3283
|
+
/** WCAG relative luminance (0–1) of a color; alpha is ignored. */
|
|
3284
|
+
declare function relativeLuminance(rgba: Rgba): number;
|
|
3285
|
+
/** Formats as `rgb(r, g, b)`, or `rgba(r, g, b, a)` when translucent. */
|
|
3286
|
+
declare function formatRgb(rgba: Rgba): string;
|
|
3287
|
+
/** Formats as `hsl(h, s%, l%)`, or `hsla(h, s%, l%, a)` when translucent. */
|
|
3288
|
+
declare function formatHsl(hsla: Hsla): string;
|
|
3289
|
+
|
|
3290
|
+
/** Color channel a range slider drives. */
|
|
3291
|
+
type colorRangeChannel = 'hue' | 'alpha';
|
|
3292
|
+
/** Control sizes plus an extra-small variant for dense inline use. */
|
|
3293
|
+
type colorRangeSize = 'xs' | controlSize;
|
|
3294
|
+
|
|
3295
|
+
/**
|
|
3296
|
+
* Single-channel color slider: a native range input over a gradient track.
|
|
3297
|
+
* The `hue` channel spans 0–360 degrees; the `alpha` channel spans 0–100
|
|
3298
|
+
* percent and fades from transparent to the reference `color` over a
|
|
3299
|
+
* transparency checkerboard.
|
|
3300
|
+
*/
|
|
3301
|
+
declare class ColorRange extends ValueFormControl<number> {
|
|
3302
|
+
private readonly _config;
|
|
3303
|
+
protected readonly CLASS_NAME = "tls-color-range";
|
|
3304
|
+
readonly supportsLabelFor = true;
|
|
3305
|
+
readonly value: ModelSignal<number>;
|
|
3306
|
+
readonly channel: InputSignal<colorRangeChannel>;
|
|
3307
|
+
/** Reference color the alpha track fades up to; ignored by the hue channel. */
|
|
3308
|
+
readonly color: InputSignal<string>;
|
|
3309
|
+
readonly size: InputSignal<colorRangeSize>;
|
|
3310
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
3311
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
3312
|
+
protected readonly max: Signal<number>;
|
|
3313
|
+
/**
|
|
3314
|
+
* The thumb previews what it points at: the pure hue at the thumb's position,
|
|
3315
|
+
* or — on the alpha channel — the reference color.
|
|
3316
|
+
*/
|
|
3317
|
+
protected readonly thumbColor: Signal<string>;
|
|
3318
|
+
protected readonly label: Signal<string>;
|
|
3319
|
+
protected onInput(event: Event): void;
|
|
3320
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorRange, never>;
|
|
3321
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorRange, "tls-color-range", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "channel": { "alias": "channel"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
3322
|
+
}
|
|
3323
|
+
|
|
3324
|
+
/** Default accessible names, per channel. */
|
|
3325
|
+
interface ColorRangeLabels {
|
|
3326
|
+
hue: string;
|
|
3327
|
+
alpha: string;
|
|
3328
|
+
}
|
|
3329
|
+
interface ColorRangeConfig {
|
|
3330
|
+
size: colorRangeSize;
|
|
3331
|
+
labels: ColorRangeLabels;
|
|
3332
|
+
}
|
|
3333
|
+
declare const DEFAULT_COLOR_RANGE_CONFIG: ColorRangeConfig;
|
|
3334
|
+
|
|
3335
|
+
/** Hue channel scale: degrees on the color wheel. */
|
|
3336
|
+
declare const HUE_MAX = 360;
|
|
3337
|
+
/** Alpha channel scale: whole percent. */
|
|
3338
|
+
declare const ALPHA_MAX = 100;
|
|
3339
|
+
|
|
3340
|
+
declare const COLOR_RANGE_CONFIG: InjectionToken<ColorRangeConfig>;
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* Single-select list of color swatches: a WAI-ARIA listbox with roving tabindex,
|
|
3344
|
+
* where every offered color is a one-tap option and the selected one is ringed.
|
|
3345
|
+
*
|
|
3346
|
+
* Options follow the same contract the other selection controls use — a list of
|
|
3347
|
+
* plain colors, or objects read through `optionValue` / `optionLabel` /
|
|
3348
|
+
* `optionColor`. Splitting the stored value from the color drawn is what lets a
|
|
3349
|
+
* theme token be offered: a swatch can paint `var(--color-blue)` while the value
|
|
3350
|
+
* committed stays whatever identifies that choice to the consumer.
|
|
3351
|
+
*
|
|
3352
|
+
* A value matching no option simply leaves every swatch unselected. Values are
|
|
3353
|
+
* compared as they are given, except that two colors written differently
|
|
3354
|
+
* (`#FFF` and `#ffffff`) count as the same choice.
|
|
3355
|
+
*/
|
|
3356
|
+
declare class ColorSwatchPicker<T = unknown, V = string> extends ValueFormControl<V | null> {
|
|
3357
|
+
private readonly _config;
|
|
3358
|
+
protected readonly CLASS_NAME = "tls-color-swatch-picker";
|
|
3359
|
+
readonly value: ModelSignal<V | null>;
|
|
3360
|
+
/** Colors offered as swatches: plain color strings, or objects the accessors below read. */
|
|
3361
|
+
readonly options: InputSignal<optionInput<T>[]>;
|
|
3362
|
+
readonly optionLabel: InputSignal<keyof T | undefined>;
|
|
3363
|
+
readonly optionValue: InputSignal<keyof T | undefined>;
|
|
3364
|
+
readonly optionDisabled: InputSignal<keyof T | undefined>;
|
|
3365
|
+
/**
|
|
3366
|
+
* Property holding the color a swatch paints — any notation CSS accepts, a
|
|
3367
|
+
* custom property included. Defaults to the option's value, which is what a
|
|
3368
|
+
* list of plain colors wants.
|
|
3369
|
+
*/
|
|
3370
|
+
readonly optionColor: InputSignal<keyof T | undefined>;
|
|
3371
|
+
/** Size of each swatch. */
|
|
3372
|
+
readonly size: InputSignal<size>;
|
|
3373
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
3374
|
+
/** Accessible name for the swatch list; `aria-labelledby` wins over it per the ARIA spec. */
|
|
3375
|
+
protected readonly label: Signal<string>;
|
|
3376
|
+
protected readonly normalizedOptions: Signal<Option<V>[]>;
|
|
3377
|
+
/**
|
|
3378
|
+
* The listbox's selection, as the subset of the options denoting the current
|
|
3379
|
+
* value — at most one, since a swatch list commits a single color.
|
|
3380
|
+
*/
|
|
3381
|
+
protected readonly selectedValues: Signal<V[]>;
|
|
3382
|
+
protected onSelectionChange(values: V[]): void;
|
|
3383
|
+
/** The color the option's swatch paints. */
|
|
3384
|
+
protected color(option: Option<V>): string;
|
|
3385
|
+
/**
|
|
3386
|
+
* An option is the current value when it is that value, or when both are
|
|
3387
|
+
* colors that only differ in notation — a picker offering `#FFF` still shows
|
|
3388
|
+
* the choice when the value it was handed back reads `#ffffff`. Anything the
|
|
3389
|
+
* color parser cannot read (a theme token, an id, an enum member) is compared
|
|
3390
|
+
* as given, which is the only meaningful test for it.
|
|
3391
|
+
*/
|
|
3392
|
+
private _matches;
|
|
3393
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorSwatchPicker<any, any>, never>;
|
|
3394
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorSwatchPicker<any, any>, "tls-color-swatch-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; "isSignal": true; }; "optionColor": { "alias": "optionColor"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
/** Default accessible names. */
|
|
3398
|
+
interface ColorSwatchPickerLabels {
|
|
3399
|
+
/** Accessible name of the swatch list, used when the consumer supplies none. */
|
|
3400
|
+
list: string;
|
|
3401
|
+
}
|
|
3402
|
+
interface ColorSwatchPickerConfig {
|
|
3403
|
+
size: size;
|
|
3404
|
+
labels: ColorSwatchPickerLabels;
|
|
3405
|
+
}
|
|
3406
|
+
declare const DEFAULT_COLOR_SWATCH_PICKER_CONFIG: ColorSwatchPickerConfig;
|
|
3407
|
+
|
|
3408
|
+
declare const COLOR_SWATCH_PICKER_CONFIG: InjectionToken<ColorSwatchPickerConfig>;
|
|
3409
|
+
|
|
1873
3410
|
type dateTimePickerMode = 'calendar' | 'month-picker' | 'year-picker' | 'time-picker' | 'date-time';
|
|
1874
3411
|
|
|
1875
3412
|
type ActiveView = 'calendar' | 'month-picker' | 'year-picker' | 'time-picker' | 'date-time';
|
|
@@ -1888,18 +3425,44 @@ declare class DateTimePicker extends ValueFormControl<Date | null> {
|
|
|
1888
3425
|
readonly yearsPerPage: InputSignal<number>;
|
|
1889
3426
|
readonly weekStartsOn: InputSignal<Day>;
|
|
1890
3427
|
readonly weekDays: InputSignal<string[]>;
|
|
3428
|
+
/** Earliest selectable day, inclusive; the calendar disables earlier days. */
|
|
3429
|
+
readonly minDate: InputSignal<Date | null>;
|
|
3430
|
+
/** Latest selectable day, inclusive; the calendar disables later days. */
|
|
3431
|
+
readonly maxDate: InputSignal<Date | null>;
|
|
3432
|
+
/**
|
|
3433
|
+
* The period the panel shows. Browsing moves it; a new value, and every opening of
|
|
3434
|
+
* the popover, bring it back to the home date — the panel always opens on what the
|
|
3435
|
+
* field holds, never on wherever an earlier visit left it.
|
|
3436
|
+
*/
|
|
1891
3437
|
protected readonly viewDate: WritableSignal<Date>;
|
|
3438
|
+
/** The drill-down level shown; each opening starts again at the mode's own level. */
|
|
1892
3439
|
protected readonly activeView: WritableSignal<ActiveView>;
|
|
1893
3440
|
protected readonly hostClasses: Signal<string[]>;
|
|
1894
3441
|
protected readonly triggerLabel: Signal<string>;
|
|
1895
|
-
|
|
3442
|
+
/**
|
|
3443
|
+
* Focus lands on the trigger and the picker opens with it: a date is chosen in the
|
|
3444
|
+
* calendar, so handing the control over without showing the calendar would stop one
|
|
3445
|
+
* step short of what was asked for.
|
|
3446
|
+
*/
|
|
3447
|
+
activate(): void;
|
|
3448
|
+
/** Opens on the home date, or closes; browsing from an earlier visit never carries over. */
|
|
3449
|
+
protected onTriggerClick(event: MouseEvent): void;
|
|
1896
3450
|
protected onViewDateChange(date: Date): void;
|
|
1897
3451
|
protected onDaySelect(date: Date): void;
|
|
1898
3452
|
protected onMonthSelect(date: Date): void;
|
|
1899
3453
|
protected onYearSelect(date: Date): void;
|
|
1900
3454
|
protected onTimeChange(date: Date): void;
|
|
3455
|
+
/** Returns the panel to the home date at the mode's own level. */
|
|
3456
|
+
private _resetView;
|
|
3457
|
+
/**
|
|
3458
|
+
* The date the panel opens on: the selected one, or else today moved into the
|
|
3459
|
+
* selectable range, so an empty picker never opens on a page of disabled days.
|
|
3460
|
+
* Read fresh on every call rather than cached, so a page left open past midnight
|
|
3461
|
+
* still opens on the new day.
|
|
3462
|
+
*/
|
|
3463
|
+
private _homeDate;
|
|
1901
3464
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePicker, never>;
|
|
1902
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePicker, "tls-date-time-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "yearsPerPage": { "alias": "yearsPerPage"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "weekDays": { "alias": "weekDays"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
3465
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePicker, "tls-date-time-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "yearsPerPage": { "alias": "yearsPerPage"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "weekDays": { "alias": "weekDays"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
1903
3466
|
}
|
|
1904
3467
|
|
|
1905
3468
|
interface DateTimePickerConfig {
|
|
@@ -2035,6 +3598,10 @@ declare class FileDropTargetDirective {
|
|
|
2035
3598
|
private _dragDepth;
|
|
2036
3599
|
protected onDragEnter(): void;
|
|
2037
3600
|
protected onDragOver(event: DragEvent): void;
|
|
3601
|
+
/**
|
|
3602
|
+
* `dragleave` also fires when the pointer crosses onto a child of the host;
|
|
3603
|
+
* only a leave that balances every enter means the drag actually left.
|
|
3604
|
+
*/
|
|
2038
3605
|
protected onDragLeave(): void;
|
|
2039
3606
|
protected onDrop(event: DragEvent): void;
|
|
2040
3607
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileDropTargetDirective, never>;
|
|
@@ -2073,7 +3640,13 @@ declare class FileInput extends ValueFormControl<File[]> {
|
|
|
2073
3640
|
protected openFilePicker(): void;
|
|
2074
3641
|
protected onFilesSelected(event: Event): void;
|
|
2075
3642
|
protected onDropZoneKeydown(event: KeyboardEvent): void;
|
|
3643
|
+
/**
|
|
3644
|
+
* Arrow function so it keeps `this` when passed through a custom file template context.
|
|
3645
|
+
*/
|
|
2076
3646
|
protected readonly removeFile: (fileIndex: number) => void;
|
|
3647
|
+
/**
|
|
3648
|
+
* Adds what the picker or a drop hands over, keeping only what is accepted.
|
|
3649
|
+
*/
|
|
2077
3650
|
protected addFiles(incoming: File[]): void;
|
|
2078
3651
|
private _formatAcceptRule;
|
|
2079
3652
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileInput, never>;
|
|
@@ -2100,6 +3673,14 @@ declare const DEFAULT_FILE_INPUT_CONFIG: FileInputConfig;
|
|
|
2100
3673
|
|
|
2101
3674
|
declare const FILE_INPUT_CONFIG: InjectionToken<FileInputConfig>;
|
|
2102
3675
|
|
|
3676
|
+
/**
|
|
3677
|
+
* How the field presents itself at rest. `outlined` is the bordered field;
|
|
3678
|
+
* `plain` is dressed as the text around it — no border or surface until it is
|
|
3679
|
+
* hovered or focused — for a value that reads as a title or a label of its
|
|
3680
|
+
* own, edited in place.
|
|
3681
|
+
*/
|
|
3682
|
+
type inputVariant = 'outlined' | 'plain';
|
|
3683
|
+
|
|
2103
3684
|
declare class Input extends ValueFormControl<string> {
|
|
2104
3685
|
private _config;
|
|
2105
3686
|
readonly supportsLabelFor = true;
|
|
@@ -2107,28 +3688,48 @@ declare class Input extends ValueFormControl<string> {
|
|
|
2107
3688
|
readonly value: ModelSignal<string>;
|
|
2108
3689
|
readonly placeholder: InputSignal<string>;
|
|
2109
3690
|
readonly size: InputSignal<controlSize>;
|
|
3691
|
+
readonly variant: InputSignal<inputVariant>;
|
|
2110
3692
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
3693
|
+
/**
|
|
3694
|
+
* Sizes the field to the text it holds — or to its placeholder while empty —
|
|
3695
|
+
* instead of to a set width, so whatever follows the field follows the text.
|
|
3696
|
+
*/
|
|
3697
|
+
readonly autosize: InputSignalWithTransform<boolean, unknown>;
|
|
3698
|
+
/**
|
|
3699
|
+
* The most characters the field accepts, enforced by the browser: typing stops
|
|
3700
|
+
* at the limit and a paste is cut to it. Unset, the field takes any length.
|
|
3701
|
+
*/
|
|
3702
|
+
readonly maxLength: InputSignal<number | undefined>;
|
|
3703
|
+
/**
|
|
3704
|
+
* Autofill hint forwarded to the native input's `autocomplete` attribute (`email`, `username`,
|
|
3705
|
+
* `current-password`, `new-password`, …), so browsers and password managers know what the field
|
|
3706
|
+
* holds. Unset, the attribute is omitted and the browser guesses.
|
|
3707
|
+
*/
|
|
3708
|
+
readonly autocomplete: InputSignal<AutoFill | undefined>;
|
|
2111
3709
|
protected readonly classes: Signal<string[]>;
|
|
2112
3710
|
protected onInput(event: Event): void;
|
|
2113
3711
|
static ɵfac: i0.ɵɵFactoryDeclaration<Input, never>;
|
|
2114
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Input, "tls-input", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
3712
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Input, "tls-input", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "autosize": { "alias": "autosize"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
2115
3713
|
}
|
|
2116
3714
|
|
|
2117
3715
|
interface InputConfig {
|
|
2118
3716
|
size: controlSize;
|
|
3717
|
+
variant: inputVariant;
|
|
2119
3718
|
type: string;
|
|
2120
3719
|
placeholder: string;
|
|
2121
3720
|
fluid: boolean;
|
|
3721
|
+
autosize: boolean;
|
|
2122
3722
|
}
|
|
2123
3723
|
declare const DEFAULT_INPUT_CONFIG: InputConfig;
|
|
2124
3724
|
|
|
2125
3725
|
declare class InputDirective {
|
|
2126
3726
|
private _config;
|
|
2127
3727
|
readonly size: InputSignal<controlSize>;
|
|
3728
|
+
readonly variant: InputSignal<inputVariant>;
|
|
2128
3729
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
2129
3730
|
protected readonly hostClasses: Signal<string[]>;
|
|
2130
3731
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDirective, never>;
|
|
2131
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<InputDirective, "[tlsInput]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3732
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputDirective, "[tlsInput]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2132
3733
|
}
|
|
2133
3734
|
|
|
2134
3735
|
declare const INPUT_CONFIG: InjectionToken<InputConfig>;
|
|
@@ -2139,6 +3740,7 @@ declare class InputNumber extends ValueFormControl<number | null> {
|
|
|
2139
3740
|
readonly value: ModelSignal<number | null>;
|
|
2140
3741
|
readonly placeholder: InputSignal<string>;
|
|
2141
3742
|
readonly size: InputSignal<controlSize>;
|
|
3743
|
+
readonly variant: InputSignal<inputVariant>;
|
|
2142
3744
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
2143
3745
|
readonly min: InputSignal<number | undefined>;
|
|
2144
3746
|
readonly max: InputSignal<number | undefined>;
|
|
@@ -2153,11 +3755,12 @@ declare class InputNumber extends ValueFormControl<number | null> {
|
|
|
2153
3755
|
*/
|
|
2154
3756
|
protected onChange(event: Event): void;
|
|
2155
3757
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputNumber, never>;
|
|
2156
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputNumber, "tls-input-number", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "hideArrows": { "alias": "hideArrows"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
3758
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputNumber, "tls-input-number", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "hideArrows": { "alias": "hideArrows"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
2157
3759
|
}
|
|
2158
3760
|
|
|
2159
3761
|
interface InputNumberConfig {
|
|
2160
3762
|
size: controlSize;
|
|
3763
|
+
variant: inputVariant;
|
|
2161
3764
|
placeholder: string;
|
|
2162
3765
|
fluid: boolean;
|
|
2163
3766
|
step: number;
|
|
@@ -2185,6 +3788,11 @@ interface MaskResult {
|
|
|
2185
3788
|
*/
|
|
2186
3789
|
declare function applyMask(pattern: string, rawText: string, caretPosition: number): MaskResult;
|
|
2187
3790
|
|
|
3791
|
+
/**
|
|
3792
|
+
* Token characters recognised inside a mask pattern; every other character is a
|
|
3793
|
+
* literal rendered verbatim. Each token maps to the RegExp a raw character must
|
|
3794
|
+
* satisfy to fill that slot.
|
|
3795
|
+
*/
|
|
2188
3796
|
declare const MASK_TOKENS: Readonly<Record<string, RegExp>>;
|
|
2189
3797
|
|
|
2190
3798
|
/**
|
|
@@ -2237,6 +3845,12 @@ declare class Password extends ValueFormControl<string> {
|
|
|
2237
3845
|
readonly placeholder: InputSignal<string>;
|
|
2238
3846
|
readonly size: InputSignal<controlSize>;
|
|
2239
3847
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
3848
|
+
/**
|
|
3849
|
+
* Autofill hint forwarded to the native input's `autocomplete` attribute (`email`, `username`,
|
|
3850
|
+
* `current-password`, `new-password`, …), so browsers and password managers know what the field
|
|
3851
|
+
* holds. Unset, the attribute is omitted and the browser guesses.
|
|
3852
|
+
*/
|
|
3853
|
+
readonly autocomplete: InputSignal<AutoFill | undefined>;
|
|
2240
3854
|
protected readonly startIconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
2241
3855
|
protected readonly showIconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
2242
3856
|
protected readonly hideIconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
@@ -2247,7 +3861,7 @@ declare class Password extends ValueFormControl<string> {
|
|
|
2247
3861
|
protected onInput(event: Event): void;
|
|
2248
3862
|
protected toggle(): void;
|
|
2249
3863
|
static ɵfac: i0.ɵɵFactoryDeclaration<Password, never>;
|
|
2250
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Password, "tls-password", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "visible": "visibleChange"; }, ["startIconTemplate", "showIconTemplate", "hideIconTemplate"], never, true, never>;
|
|
3864
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Password, "tls-password", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "visible": "visibleChange"; }, ["startIconTemplate", "showIconTemplate", "hideIconTemplate"], never, true, never>;
|
|
2251
3865
|
}
|
|
2252
3866
|
|
|
2253
3867
|
interface PasswordConfig {
|
|
@@ -2267,6 +3881,31 @@ declare const DEFAULT_PASSWORD_CONFIG: PasswordConfig;
|
|
|
2267
3881
|
|
|
2268
3882
|
declare const PASSWORD_CONFIG: InjectionToken<PasswordConfig>;
|
|
2269
3883
|
|
|
3884
|
+
/**
|
|
3885
|
+
* The field-shaped shell shared by controls that keep their value behind a
|
|
3886
|
+
* panel: an input-like frame with the current value on the inline-start and a
|
|
3887
|
+
* chevron on the inline-end that turns while the panel is open. Purely
|
|
3888
|
+
* presentational — it renders the shell and a focusable trigger, and the
|
|
3889
|
+
* consumer attaches the panel itself (a `tlsMenuTrigger`, a popover) and
|
|
3890
|
+
* reports its state back through `open`, so any chooser reads as the field it
|
|
3891
|
+
* is rather than as a button.
|
|
3892
|
+
*
|
|
3893
|
+
* A control whose panel *is* a flat option list should be a `tls-select`; this
|
|
3894
|
+
* shell serves the choosers a select cannot express.
|
|
3895
|
+
*/
|
|
3896
|
+
declare class PickerField {
|
|
3897
|
+
/** Whether the consumer's panel is open; turns the chevron and keeps the frame active. */
|
|
3898
|
+
readonly open: i0.InputSignalWithTransform<boolean, unknown>;
|
|
3899
|
+
readonly size: InputSignal<controlSize>;
|
|
3900
|
+
readonly fluid: i0.InputSignalWithTransform<boolean, unknown>;
|
|
3901
|
+
readonly disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
3902
|
+
/** Accessible name for the trigger, for a value face that is not self-describing. */
|
|
3903
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
3904
|
+
protected readonly hostClasses: i0.Signal<string[]>;
|
|
3905
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PickerField, never>;
|
|
3906
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PickerField, "tls-picker-field", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
3907
|
+
}
|
|
3908
|
+
|
|
2270
3909
|
type pinInputType = 'numeric' | 'alphanumeric' | RegExp;
|
|
2271
3910
|
|
|
2272
3911
|
declare class PinInput extends ValueFormControl<string> {
|
|
@@ -2648,11 +4287,17 @@ declare class Textarea extends ValueFormControl<string> {
|
|
|
2648
4287
|
readonly rows: InputSignalWithTransform<number, unknown>;
|
|
2649
4288
|
readonly resize: InputSignal<textareaResize>;
|
|
2650
4289
|
readonly autosize: InputSignalWithTransform<boolean, unknown>;
|
|
4290
|
+
/** Upper bound, in rows, on the autosized height. `0` grows without a cap. */
|
|
2651
4291
|
readonly maxRows: InputSignalWithTransform<number, unknown>;
|
|
4292
|
+
/**
|
|
4293
|
+
* The most characters the field accepts, enforced by the browser: typing stops
|
|
4294
|
+
* at the limit and a paste is cut to it. Unset, the field takes any length.
|
|
4295
|
+
*/
|
|
4296
|
+
readonly maxLength: InputSignal<number | undefined>;
|
|
2652
4297
|
protected readonly classes: Signal<string[]>;
|
|
2653
4298
|
protected onInput(event: Event): void;
|
|
2654
4299
|
static ɵfac: i0.ɵɵFactoryDeclaration<Textarea, never>;
|
|
2655
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Textarea, "tls-textarea", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; "autosize": { "alias": "autosize"; "required": false; "isSignal": true; }; "maxRows": { "alias": "maxRows"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
4300
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Textarea, "tls-textarea", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; "autosize": { "alias": "autosize"; "required": false; "isSignal": true; }; "maxRows": { "alias": "maxRows"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
2656
4301
|
}
|
|
2657
4302
|
|
|
2658
4303
|
declare const TEXTAREA_CONFIG: InjectionToken<TextareaConfig>;
|
|
@@ -2713,10 +4358,15 @@ declare class ToggleButton extends CheckboxFormControl {
|
|
|
2713
4358
|
/** `aria-pressed` value; omitted entirely when `checkedLabel` makes the name carry the state. */
|
|
2714
4359
|
protected readonly ariaPressed: Signal<boolean | null>;
|
|
2715
4360
|
protected readonly hostClasses: Signal<string[]>;
|
|
4361
|
+
/**
|
|
4362
|
+
* The host is the button itself — it carries the role and the tab stop — so
|
|
4363
|
+
* focus lands there rather than on anything it renders.
|
|
4364
|
+
*/
|
|
4365
|
+
protected focusTarget(): HTMLElement;
|
|
2716
4366
|
protected toggle(): void;
|
|
2717
4367
|
protected onKeyboardToggle(event: Event): void;
|
|
2718
4368
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleButton, never>;
|
|
2719
|
-
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,
|
|
4369
|
+
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, [{ directive: typeof RippleDirective; inputs: {}; outputs: {}; }]>;
|
|
2720
4370
|
}
|
|
2721
4371
|
|
|
2722
4372
|
interface ToggleButtonConfig {
|
|
@@ -2812,10 +4462,19 @@ declare class ImageCompare {
|
|
|
2812
4462
|
protected readonly clampedPosition: Signal<number>;
|
|
2813
4463
|
protected readonly valueNow: Signal<number>;
|
|
2814
4464
|
protected readonly hostClasses: Signal<string[]>;
|
|
4465
|
+
/**
|
|
4466
|
+
* Clip the leading (before) layer to a band running from the layout-start edge
|
|
4467
|
+
* to the divider. `clip-path` is physical, so resolve the inset per axis — and
|
|
4468
|
+
* for RTL — explicitly, since logical properties cannot express it.
|
|
4469
|
+
*/
|
|
2815
4470
|
protected readonly clipPath: Signal<string>;
|
|
2816
4471
|
protected onPointerDown(event: PointerEvent): void;
|
|
2817
4472
|
protected onPointerMove(event: PointerEvent): void;
|
|
2818
4473
|
protected onPointerUp(event: PointerEvent): void;
|
|
4474
|
+
/**
|
|
4475
|
+
* Pointer capture is already released once the browser cancels the pointer, so
|
|
4476
|
+
* this only resets drag state (calling `releasePointerCapture` here can throw).
|
|
4477
|
+
*/
|
|
2819
4478
|
protected onPointerCancel(): void;
|
|
2820
4479
|
protected onHandleKeydown(event: KeyboardEvent): void;
|
|
2821
4480
|
private _isRtl;
|
|
@@ -2836,6 +4495,355 @@ declare const DEFAULT_IMAGE_COMPARE_CONFIG: ImageCompareConfig;
|
|
|
2836
4495
|
|
|
2837
4496
|
declare const IMAGE_COMPARE_CONFIG: InjectionToken<ImageCompareConfig>;
|
|
2838
4497
|
|
|
4498
|
+
interface ImagePreviewLabels {
|
|
4499
|
+
/** Accessible name of the viewer surface itself. */
|
|
4500
|
+
title: string;
|
|
4501
|
+
close: string;
|
|
4502
|
+
previous: string;
|
|
4503
|
+
next: string;
|
|
4504
|
+
zoomIn: string;
|
|
4505
|
+
zoomOut: string;
|
|
4506
|
+
resetZoom: string;
|
|
4507
|
+
/** Position within the group. `{index}` and `{total}` are substituted. */
|
|
4508
|
+
counter: string;
|
|
4509
|
+
/** Shown in place of the image when it fails to load. */
|
|
4510
|
+
error: string;
|
|
4511
|
+
}
|
|
4512
|
+
interface ImagePreviewConfig {
|
|
4513
|
+
/** Whether a close button is rendered. */
|
|
4514
|
+
closeable: boolean;
|
|
4515
|
+
/** Whether a click on the scrim around the image dismisses the viewer. */
|
|
4516
|
+
backdropClose: boolean;
|
|
4517
|
+
/**
|
|
4518
|
+
* Dismisses the viewer on Escape. Independent of {@link ImagePreviewConfig.backdropClose}:
|
|
4519
|
+
* a surface that ignores scrim clicks still owes keyboard users a way out.
|
|
4520
|
+
*/
|
|
4521
|
+
escapeClose: boolean;
|
|
4522
|
+
/** Whether the image can be zoomed and panned, and the zoom controls are rendered. */
|
|
4523
|
+
zoomable: boolean;
|
|
4524
|
+
/** Lower zoom bound. The viewer opens and resets at `1`, the fit to the viewport. */
|
|
4525
|
+
minZoom: number;
|
|
4526
|
+
maxZoom: number;
|
|
4527
|
+
/** Factor the zoom is multiplied by per control press or keyboard step. */
|
|
4528
|
+
zoomStep: number;
|
|
4529
|
+
/** Zoom level a double-click or double-tap toggles to. */
|
|
4530
|
+
doubleClickZoom: number;
|
|
4531
|
+
/** Whether navigation wraps around at both ends of a group. */
|
|
4532
|
+
loop: boolean;
|
|
4533
|
+
/** Whether the position within a group is displayed. Groups of one show nothing regardless. */
|
|
4534
|
+
showCounter: boolean;
|
|
4535
|
+
labels: ImagePreviewLabels;
|
|
4536
|
+
}
|
|
4537
|
+
declare const DEFAULT_IMAGE_PREVIEW_CONFIG: ImagePreviewConfig;
|
|
4538
|
+
|
|
4539
|
+
/** One image shown by the preview viewer. */
|
|
4540
|
+
interface ImagePreviewImage {
|
|
4541
|
+
/** URL of the full-size image the viewer renders. */
|
|
4542
|
+
src: string;
|
|
4543
|
+
/** Alternative text announced for the image. */
|
|
4544
|
+
alt?: string;
|
|
4545
|
+
/** Caption displayed beneath the image. */
|
|
4546
|
+
caption?: string;
|
|
4547
|
+
}
|
|
4548
|
+
/** An image given either as a bare URL or as a full descriptor. */
|
|
4549
|
+
type ImagePreviewSource = string | ImagePreviewImage;
|
|
4550
|
+
/** Payload the viewer surface is opened with. */
|
|
4551
|
+
interface ImagePreviewData {
|
|
4552
|
+
images: ImagePreviewImage[];
|
|
4553
|
+
/** Index of the image shown first, already clamped to the list. */
|
|
4554
|
+
startIndex: number;
|
|
4555
|
+
}
|
|
4556
|
+
/**
|
|
4557
|
+
* A member of a preview group: an element that contributes one image to the
|
|
4558
|
+
* group's list and can be located within it. Implemented by the trigger
|
|
4559
|
+
* directive so the group holds no dependency on it.
|
|
4560
|
+
*/
|
|
4561
|
+
interface ImagePreviewGroupItem {
|
|
4562
|
+
/** Host element, used to order the group's images by document position. */
|
|
4563
|
+
readonly element: HTMLElement;
|
|
4564
|
+
/** The image this member contributes; an empty `src` excludes it. */
|
|
4565
|
+
resolveImage(): ImagePreviewImage;
|
|
4566
|
+
}
|
|
4567
|
+
|
|
4568
|
+
type imagePreviewStatus = 'loading' | 'loaded' | 'error';
|
|
4569
|
+
/**
|
|
4570
|
+
* Full-screen viewer for one image or a gallery of them, with zoom, pan and
|
|
4571
|
+
* navigation. Opened through {@link ImagePreviewService} — either directly or
|
|
4572
|
+
* by the `[tlsImagePreview]` trigger — never placed in a template.
|
|
4573
|
+
*
|
|
4574
|
+
* Zoom is expressed as a multiple of the fitted size, so `1` is the whole image
|
|
4575
|
+
* inside the viewport and the pan offset is meaningful only above it.
|
|
4576
|
+
*/
|
|
4577
|
+
declare class ImagePreview {
|
|
4578
|
+
private static _nextUniqueId;
|
|
4579
|
+
private readonly _config;
|
|
4580
|
+
private readonly _data;
|
|
4581
|
+
private readonly _cdkDialogRef;
|
|
4582
|
+
private readonly _elementRef;
|
|
4583
|
+
private readonly _directionality;
|
|
4584
|
+
private readonly _stage;
|
|
4585
|
+
private readonly _image;
|
|
4586
|
+
private readonly _uniqueId;
|
|
4587
|
+
private readonly _index;
|
|
4588
|
+
private readonly _zoom;
|
|
4589
|
+
private readonly _offset;
|
|
4590
|
+
private readonly _status;
|
|
4591
|
+
private readonly _panning;
|
|
4592
|
+
private readonly _state;
|
|
4593
|
+
/** Active pointers over the stage, keyed by pointer id, for pan and pinch tracking. */
|
|
4594
|
+
private readonly _pointers;
|
|
4595
|
+
/** Sources already requested by the preloader, so each is fetched at most once. */
|
|
4596
|
+
private readonly _preloaded;
|
|
4597
|
+
private _lastPointer;
|
|
4598
|
+
private _pressOrigin;
|
|
4599
|
+
private _gestured;
|
|
4600
|
+
private _pinchStartDistance;
|
|
4601
|
+
private _pinchStartZoom;
|
|
4602
|
+
private _closing;
|
|
4603
|
+
readonly index: Signal<number>;
|
|
4604
|
+
protected readonly current: Signal<ImagePreviewImage>;
|
|
4605
|
+
protected readonly total: Signal<number>;
|
|
4606
|
+
protected readonly multiple: Signal<boolean>;
|
|
4607
|
+
protected readonly canGoPrevious: Signal<boolean>;
|
|
4608
|
+
protected readonly canGoNext: Signal<boolean>;
|
|
4609
|
+
protected readonly status: Signal<imagePreviewStatus>;
|
|
4610
|
+
/** Whether the image is enlarged past its fitted size, which is what makes it pannable. */
|
|
4611
|
+
protected readonly zoomed: Signal<boolean>;
|
|
4612
|
+
protected readonly canZoomIn: Signal<boolean>;
|
|
4613
|
+
protected readonly canZoomOut: Signal<boolean>;
|
|
4614
|
+
/**
|
|
4615
|
+
* Whether a horizontal drag pages through the gallery. A zoomed image spends
|
|
4616
|
+
* the gesture on panning instead, since it no longer fits the viewport.
|
|
4617
|
+
*/
|
|
4618
|
+
protected readonly swipeEnabled: Signal<boolean>;
|
|
4619
|
+
protected readonly transform: Signal<string>;
|
|
4620
|
+
protected readonly counterText: Signal<string>;
|
|
4621
|
+
protected readonly captionId: Signal<string | null>;
|
|
4622
|
+
/**
|
|
4623
|
+
* The chevrons point at the physical direction travelled, which mirrors along
|
|
4624
|
+
* with the layout: in RTL the previous image sits to the right of the current one.
|
|
4625
|
+
*/
|
|
4626
|
+
protected readonly previousIcon: Signal<systemIcon>;
|
|
4627
|
+
protected readonly nextIcon: Signal<systemIcon>;
|
|
4628
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
4629
|
+
protected get config(): ImagePreviewConfig;
|
|
4630
|
+
/** Plays the exit animation, then disposes the overlay once it finishes. */
|
|
4631
|
+
animatedClose(): void;
|
|
4632
|
+
/** Shows the image at `index`, wrapping around when the config allows looping. */
|
|
4633
|
+
goTo(index: number): void;
|
|
4634
|
+
previous(): void;
|
|
4635
|
+
next(): void;
|
|
4636
|
+
resetZoom(): void;
|
|
4637
|
+
protected close(): void;
|
|
4638
|
+
protected zoomIn(): void;
|
|
4639
|
+
protected zoomOut(): void;
|
|
4640
|
+
protected onImageLoad(): void;
|
|
4641
|
+
protected onImageError(): void;
|
|
4642
|
+
protected onSwipe(event: SwipeEvent): void;
|
|
4643
|
+
/**
|
|
4644
|
+
* A click that lands on the stage itself — the scrim around the image and the
|
|
4645
|
+
* controls — dismisses the viewer, the full-screen equivalent of a backdrop
|
|
4646
|
+
* click. Bound on the host rather than the stage because the scrim is not a
|
|
4647
|
+
* control: it takes no focus and offers no keyboard path of its own, Escape
|
|
4648
|
+
* being the keyboard equivalent of the gesture.
|
|
4649
|
+
*/
|
|
4650
|
+
protected onSurfaceClick(event: MouseEvent): void;
|
|
4651
|
+
protected onWheel(event: WheelEvent): void;
|
|
4652
|
+
protected onDoubleClick(event: MouseEvent): void;
|
|
4653
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
4654
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
4655
|
+
protected onPointerUp(event: PointerEvent): void;
|
|
4656
|
+
/**
|
|
4657
|
+
* The browser has already released the capture by the time a pointer is
|
|
4658
|
+
* cancelled, so this only drops the tracking state (releasing it here can throw).
|
|
4659
|
+
*/
|
|
4660
|
+
protected onPointerCancel(event: PointerEvent): void;
|
|
4661
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
4662
|
+
/**
|
|
4663
|
+
* Fetches the images on either side of the current one, so paging through a
|
|
4664
|
+
* gallery shows them at once instead of starting their download on arrival.
|
|
4665
|
+
* Runs once the current image has settled, leaving it the bandwidth first.
|
|
4666
|
+
*/
|
|
4667
|
+
private _preloadNeighbours;
|
|
4668
|
+
/**
|
|
4669
|
+
* An image that renders nothing occupies no box, so no point lies over it.
|
|
4670
|
+
*/
|
|
4671
|
+
private _isOverImage;
|
|
4672
|
+
/**
|
|
4673
|
+
* A press that travels past the slop is a gesture; the click it ends with is
|
|
4674
|
+
* then a by-product of the gesture rather than a click on what sits under it.
|
|
4675
|
+
*/
|
|
4676
|
+
private _trackGesture;
|
|
4677
|
+
/**
|
|
4678
|
+
* The fitted size is where the viewer opens and what a reset returns to, kept
|
|
4679
|
+
* inside the configured bounds so a consumer that never zooms out below the fit
|
|
4680
|
+
* (or caps zoom under it) still gets a level it allows.
|
|
4681
|
+
*/
|
|
4682
|
+
private _fitZoom;
|
|
4683
|
+
private _isRtl;
|
|
4684
|
+
/**
|
|
4685
|
+
* `deltaY` is reported in the unit named by `deltaMode`, so convert the two
|
|
4686
|
+
* non-pixel modes to pixels before they drive the zoom exponent.
|
|
4687
|
+
*/
|
|
4688
|
+
private _wheelDeltaInPixels;
|
|
4689
|
+
private _clampZoom;
|
|
4690
|
+
private _zoomToCentre;
|
|
4691
|
+
private _zoomToPoint;
|
|
4692
|
+
/**
|
|
4693
|
+
* Zooms to `zoom` while keeping the content under the given viewport point in
|
|
4694
|
+
* place, so the image grows out of the cursor rather than the centre.
|
|
4695
|
+
*/
|
|
4696
|
+
private _applyZoom;
|
|
4697
|
+
private _panBy;
|
|
4698
|
+
/**
|
|
4699
|
+
* Keeps the image covering the stage on each axis it overflows, and centred on
|
|
4700
|
+
* each axis it does not, so panning can never strand it off screen.
|
|
4701
|
+
*/
|
|
4702
|
+
private _clampOffset;
|
|
4703
|
+
private _startPinch;
|
|
4704
|
+
private _updatePinch;
|
|
4705
|
+
private _pointerDistance;
|
|
4706
|
+
private _pointerMidpoint;
|
|
4707
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreview, never>;
|
|
4708
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImagePreview, "tls-image-preview", never, {}, {}, never, never, true, never>;
|
|
4709
|
+
}
|
|
4710
|
+
|
|
4711
|
+
/**
|
|
4712
|
+
* Handle to an open image preview, returned from {@link ImagePreviewService.open}.
|
|
4713
|
+
*
|
|
4714
|
+
* `close` routes through the viewer so the exit animation plays before the
|
|
4715
|
+
* overlay is disposed, unlike the CDK `DialogRef` which disposes synchronously.
|
|
4716
|
+
*/
|
|
4717
|
+
declare class ImagePreviewRef {
|
|
4718
|
+
private readonly _cdkRef;
|
|
4719
|
+
readonly closed: Observable<void>;
|
|
4720
|
+
constructor(_cdkRef: DialogRef$1<void, ImagePreview>);
|
|
4721
|
+
/** Index of the image currently on screen; `-1` once the preview has closed. */
|
|
4722
|
+
get index(): number;
|
|
4723
|
+
close(): void;
|
|
4724
|
+
/** Shows the image at `index`, wrapping around when the preview loops. */
|
|
4725
|
+
goTo(index: number): void;
|
|
4726
|
+
}
|
|
4727
|
+
|
|
4728
|
+
/**
|
|
4729
|
+
* Opens the full-screen image preview from the element it sits on — typically a
|
|
4730
|
+
* thumbnail. The image previewed defaults to the one the host stands for — an
|
|
4731
|
+
* `<img>`'s own source, a link's target — so a bare attribute is enough; pass a
|
|
4732
|
+
* URL or a descriptor to preview a different (usually larger) source instead.
|
|
4733
|
+
*
|
|
4734
|
+
* ```html
|
|
4735
|
+
* <img tlsImagePreview src="beach.jpg" alt="Beach" />
|
|
4736
|
+
* <a tlsImagePreview href="beach-full.jpg"><img src="beach.jpg" alt="Beach" /></a>
|
|
4737
|
+
* <img [tlsImagePreview]="{ src: 'beach-full.jpg', caption: 'Low tide' }" src="beach.jpg" alt="Beach" />
|
|
4738
|
+
* ```
|
|
4739
|
+
*
|
|
4740
|
+
* On a link the preview replaces the navigation, leaving the href as the
|
|
4741
|
+
* fallback for a modified click and for a page without scripting.
|
|
4742
|
+
*
|
|
4743
|
+
* Inside a `[tlsImagePreviewGroup]` the trigger opens the whole group as a
|
|
4744
|
+
* gallery, positioned on its own image.
|
|
4745
|
+
*
|
|
4746
|
+
* A host that is not natively interactive is given button semantics and keyboard
|
|
4747
|
+
* access, so an `<img>` trigger is reachable and operable without a pointer.
|
|
4748
|
+
*/
|
|
4749
|
+
declare class ImagePreviewDirective implements ImagePreviewGroupItem, OnDestroy {
|
|
4750
|
+
private readonly _elementRef;
|
|
4751
|
+
private readonly _imagePreview;
|
|
4752
|
+
private readonly _group;
|
|
4753
|
+
/**
|
|
4754
|
+
* The image to preview. Left empty, the image the host stands for is previewed:
|
|
4755
|
+
* an `<img>`'s own source and alternative text, or a link's target.
|
|
4756
|
+
*/
|
|
4757
|
+
readonly image: InputSignal<ImagePreviewSource | ''>;
|
|
4758
|
+
/** Caption displayed beneath the image in the viewer. */
|
|
4759
|
+
readonly caption: InputSignal<string | undefined>;
|
|
4760
|
+
private readonly _nativelyInteractive;
|
|
4761
|
+
/**
|
|
4762
|
+
* A host without native button semantics is given them, so the trigger is
|
|
4763
|
+
* announced as a control and reachable by keyboard like any other.
|
|
4764
|
+
*/
|
|
4765
|
+
protected readonly buttonRole: string | null;
|
|
4766
|
+
protected readonly tabIndex: string | null;
|
|
4767
|
+
get element(): HTMLElement;
|
|
4768
|
+
constructor();
|
|
4769
|
+
/** The image this trigger contributes; an empty `src` excludes it from a group. */
|
|
4770
|
+
resolveImage(): ImagePreviewImage;
|
|
4771
|
+
/** Opens the preview, or the whole group when the trigger sits in one. */
|
|
4772
|
+
open(): ImagePreviewRef | null;
|
|
4773
|
+
protected onClick(event: MouseEvent): void;
|
|
4774
|
+
/**
|
|
4775
|
+
* A host given button semantics must also act on the keys a button acts on;
|
|
4776
|
+
* a natively interactive host already dispatches its own click.
|
|
4777
|
+
*/
|
|
4778
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
4779
|
+
/**
|
|
4780
|
+
* The image the host element itself stands for: an `<img>`'s own source —
|
|
4781
|
+
* `currentSrc` first, so a responsive source set previews the variant actually
|
|
4782
|
+
* loaded — or the full-size target of a link. Any other host stands for no
|
|
4783
|
+
* image of its own and must be given one.
|
|
4784
|
+
*/
|
|
4785
|
+
private _hostImage;
|
|
4786
|
+
ngOnDestroy(): void;
|
|
4787
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreviewDirective, never>;
|
|
4788
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ImagePreviewDirective, "[tlsImagePreview]", never, { "image": { "alias": "tlsImagePreview"; "required": false; "isSignal": true; }; "caption": { "alias": "tlsImagePreviewCaption"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4789
|
+
}
|
|
4790
|
+
|
|
4791
|
+
/**
|
|
4792
|
+
* Groups the `[tlsImagePreview]` triggers inside it into one gallery: opening
|
|
4793
|
+
* any of them previews every image in the group, starting at the one clicked,
|
|
4794
|
+
* with the others reachable through the viewer's navigation.
|
|
4795
|
+
*
|
|
4796
|
+
* ```html
|
|
4797
|
+
* <div tlsImagePreviewGroup>
|
|
4798
|
+
* <img tlsImagePreview src="beach.jpg" alt="Beach" />
|
|
4799
|
+
* <img tlsImagePreview src="cliff.jpg" alt="Cliff" />
|
|
4800
|
+
* </div>
|
|
4801
|
+
* ```
|
|
4802
|
+
*/
|
|
4803
|
+
declare class ImagePreviewGroupDirective {
|
|
4804
|
+
private readonly _items;
|
|
4805
|
+
register(item: ImagePreviewGroupItem): void;
|
|
4806
|
+
unregister(item: ImagePreviewGroupItem): void;
|
|
4807
|
+
/**
|
|
4808
|
+
* The group's members in document order, which is the order the gallery is
|
|
4809
|
+
* paged through. Registration order does not track the DOM — members can be
|
|
4810
|
+
* added, moved or removed at any time — so the order is resolved on demand.
|
|
4811
|
+
*/
|
|
4812
|
+
items(): ImagePreviewGroupItem[];
|
|
4813
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreviewGroupDirective, never>;
|
|
4814
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ImagePreviewGroupDirective, "[tlsImagePreviewGroup]", never, {}, {}, never, never, true, never>;
|
|
4815
|
+
}
|
|
4816
|
+
|
|
4817
|
+
interface ImagePreviewOpenConfig extends Partial<Omit<ImagePreviewConfig, 'labels'>> {
|
|
4818
|
+
/** One image or the gallery to page through. */
|
|
4819
|
+
images: ImagePreviewSource | ImagePreviewSource[];
|
|
4820
|
+
/** Index of the image shown first, clamped to the list. */
|
|
4821
|
+
startIndex?: number;
|
|
4822
|
+
labels?: Partial<ImagePreviewLabels>;
|
|
4823
|
+
/** Accessible name of the viewer surface, overriding the configured title. */
|
|
4824
|
+
ariaLabel?: string;
|
|
4825
|
+
}
|
|
4826
|
+
declare class ImagePreviewService {
|
|
4827
|
+
private readonly _dialog;
|
|
4828
|
+
private readonly _config;
|
|
4829
|
+
/**
|
|
4830
|
+
* Open previews, tracked so `closeAll` can play each exit animation and so it
|
|
4831
|
+
* closes previews only (the CDK `Dialog` is shared with other surfaces).
|
|
4832
|
+
*/
|
|
4833
|
+
private readonly _openPreviews;
|
|
4834
|
+
open(config: ImagePreviewOpenConfig): ImagePreviewRef;
|
|
4835
|
+
closeAll(): void;
|
|
4836
|
+
private _resolveConfig;
|
|
4837
|
+
private _resolveData;
|
|
4838
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreviewService, never>;
|
|
4839
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ImagePreviewService>;
|
|
4840
|
+
}
|
|
4841
|
+
|
|
4842
|
+
declare const IMAGE_PREVIEW_CONFIG: InjectionToken<ImagePreviewConfig>;
|
|
4843
|
+
|
|
4844
|
+
/** Normalizes an image given as a bare URL into the descriptor shape. */
|
|
4845
|
+
declare function toImagePreviewImage(source: ImagePreviewSource): ImagePreviewImage;
|
|
4846
|
+
|
|
2839
4847
|
/** Text rendered by the trigger and the end-of-collection notice, overridable for localization. */
|
|
2840
4848
|
interface InfiniteScrollLabels {
|
|
2841
4849
|
/** Announced while a page is in flight. */
|
|
@@ -2870,10 +4878,12 @@ declare const DEFAULT_INFINITE_SCROLL_CONFIG: InfiniteScrollConfig;
|
|
|
2870
4878
|
* - `loading` — a page is in flight and the watch is suspended;
|
|
2871
4879
|
* - `manual` — the automatic allowance is spent (or never granted), so the next page waits
|
|
2872
4880
|
* on the button;
|
|
2873
|
-
* - `complete` — the collection is exhausted
|
|
4881
|
+
* - `complete` — the collection is exhausted after paging, so the end notice is rendered;
|
|
4882
|
+
* - `settled` — the collection was exhausted before a page was ever requested; an end the
|
|
4883
|
+
* reader never had to find gets no notice, so nothing is rendered;
|
|
2874
4884
|
* - `disabled` — suspended altogether: nothing watched, nothing rendered, the allowance kept.
|
|
2875
4885
|
*/
|
|
2876
|
-
type infiniteScrollState = 'idle' | 'loading' | 'manual' | 'complete' | 'disabled';
|
|
4886
|
+
type infiniteScrollState = 'idle' | 'loading' | 'manual' | 'complete' | 'settled' | 'disabled';
|
|
2877
4887
|
|
|
2878
4888
|
/**
|
|
2879
4889
|
* End-of-collection trigger that asks for the next page as the reader approaches it. The
|
|
@@ -2933,7 +4943,13 @@ declare class InfiniteScroll {
|
|
|
2933
4943
|
* collection still has not reached past the scroll edge.
|
|
2934
4944
|
*/
|
|
2935
4945
|
readonly loading: InputSignalWithTransform<boolean, unknown>;
|
|
2936
|
-
/**
|
|
4946
|
+
/**
|
|
4947
|
+
* Whether the collection is exhausted. Ends the cycle, and renders the end notice — though
|
|
4948
|
+
* only for a collection this trigger has paged through: the notice resolves a question the
|
|
4949
|
+
* reader can actually have ("did it stop loading, or is this everything?"), which is only
|
|
4950
|
+
* asked once a page boundary has been crossed. A collection whose first page held
|
|
4951
|
+
* everything ends silently.
|
|
4952
|
+
*/
|
|
2937
4953
|
readonly complete: InputSignalWithTransform<boolean, unknown>;
|
|
2938
4954
|
/**
|
|
2939
4955
|
* Suspends the whole trigger without ending it: nothing is watched, nothing is rendered,
|
|
@@ -2966,6 +4982,12 @@ declare class InfiniteScroll {
|
|
|
2966
4982
|
protected readonly labels: InfiniteScrollLabels;
|
|
2967
4983
|
/** Automatic loads since the last time the button was used. */
|
|
2968
4984
|
private readonly _automaticLoads;
|
|
4985
|
+
/**
|
|
4986
|
+
* Whether this trigger has ever requested a page for the current collection. The end
|
|
4987
|
+
* notice is reserved for an end that was found by paging; until a request has gone out
|
|
4988
|
+
* there was never a loading boundary, so exhaustion renders nothing.
|
|
4989
|
+
*/
|
|
4990
|
+
private readonly _hasRequested;
|
|
2969
4991
|
/**
|
|
2970
4992
|
* Whether a request has gone out that nothing has accounted for yet. The sentinel keeps
|
|
2971
4993
|
* reporting itself visible after a page is asked for — an observer started while it is in
|
|
@@ -3003,7 +5025,9 @@ declare class InfiniteScroll {
|
|
|
3003
5025
|
* Renews the automatic allowance. A collection that is replaced rather than extended — a
|
|
3004
5026
|
* new query, a changed filter — starts its own run of automatic loads, which this
|
|
3005
5027
|
* restores. It emits nothing itself, but it does put the sentinel back under observation,
|
|
3006
|
-
* so a page is requested straight away when the shorter collection leaves it in view.
|
|
5028
|
+
* so a page is requested straight away when the shorter collection leaves it in view. The
|
|
5029
|
+
* end notice starts over with the collection: one earned by paging through the old
|
|
5030
|
+
* collection says nothing about the new one.
|
|
3007
5031
|
*/
|
|
3008
5032
|
reset(): void;
|
|
3009
5033
|
private _loadAutomatically;
|
|
@@ -3087,6 +5111,90 @@ declare const DEFAULT_MARK_CONFIG: MarkConfig;
|
|
|
3087
5111
|
|
|
3088
5112
|
declare const MARK_CONFIG: InjectionToken<MarkConfig>;
|
|
3089
5113
|
|
|
5114
|
+
/**
|
|
5115
|
+
* Where a dragged surface's transform comes from. `idle` leaves it to the
|
|
5116
|
+
* stylesheet's enter/leave keyframes; `dragging` hands it to the finger;
|
|
5117
|
+
* `settling` animates it to where the release sent it.
|
|
5118
|
+
*/
|
|
5119
|
+
type sheetMotionState = 'idle' | 'dragging' | 'settling';
|
|
5120
|
+
/** What a `SheetMotion` is fixed to for its lifetime. */
|
|
5121
|
+
interface SheetMotionOptions {
|
|
5122
|
+
/** The custom property the stylesheet turns into the surface's translate. */
|
|
5123
|
+
property: string;
|
|
5124
|
+
/**
|
|
5125
|
+
* Opacity of the scrim at a drag progress: `1 - progress` for a surface that
|
|
5126
|
+
* dims as it leaves, `progress` for one that dims as it grows.
|
|
5127
|
+
*/
|
|
5128
|
+
backdropOpacity: (progress: number) => number;
|
|
5129
|
+
renderer: Renderer2;
|
|
5130
|
+
injector: Injector;
|
|
5131
|
+
}
|
|
5132
|
+
/**
|
|
5133
|
+
* The elements one gesture moves, given per gesture: a surface stamped fresh on
|
|
5134
|
+
* every open cannot be fixed at construction.
|
|
5135
|
+
*/
|
|
5136
|
+
interface SheetMotionSurface {
|
|
5137
|
+
panel: HTMLElement;
|
|
5138
|
+
backdrop: HTMLElement | null;
|
|
5139
|
+
/** Travel in px from rest to fully committed. */
|
|
5140
|
+
extent: number;
|
|
5141
|
+
}
|
|
5142
|
+
|
|
5143
|
+
/**
|
|
5144
|
+
* Moves a dragged surface along one axis: writes its displacement to the
|
|
5145
|
+
* custom property the stylesheet turns into a translate, keeps a scrim's
|
|
5146
|
+
* opacity in step with the drag, and settles the surface to where a release
|
|
5147
|
+
* sent it through the stylesheet's transition.
|
|
5148
|
+
*
|
|
5149
|
+
* The engine knows nothing of what the offsets mean — where rest is, what
|
|
5150
|
+
* range is legal, which release commits — and no pan events; the owning
|
|
5151
|
+
* component maps its gesture onto `begin`, `follow` and `settle`.
|
|
5152
|
+
*/
|
|
5153
|
+
declare class SheetMotion {
|
|
5154
|
+
private readonly _options;
|
|
5155
|
+
private readonly _state;
|
|
5156
|
+
/** Bound to the surface's `--dragging` / `--settling` classes. */
|
|
5157
|
+
readonly state: i0.Signal<sheetMotionState>;
|
|
5158
|
+
private _surface;
|
|
5159
|
+
/**
|
|
5160
|
+
* Incremented by begin and rest; a settle belongs to the gesture that started it.
|
|
5161
|
+
*/
|
|
5162
|
+
private _gesture;
|
|
5163
|
+
constructor(_options: SheetMotionOptions);
|
|
5164
|
+
/** Travel in px of the gesture in progress, from rest to fully committed; 0 outside a gesture. */
|
|
5165
|
+
get extent(): number;
|
|
5166
|
+
/** Takes hold of the surface for one gesture. */
|
|
5167
|
+
begin(surface: SheetMotionSurface): void;
|
|
5168
|
+
/**
|
|
5169
|
+
* Moves the surface to `offset` px. The offset is written as given: what
|
|
5170
|
+
* range is legal is the caller's rule.
|
|
5171
|
+
*/
|
|
5172
|
+
follow(offset: number): void;
|
|
5173
|
+
/**
|
|
5174
|
+
* Animates the surface to `target` px through the stylesheet's settle
|
|
5175
|
+
* transition, then calls `done`. The state stays `settling` until `rest` is
|
|
5176
|
+
* called: a settle that ends in a dispose keeps its class on until the
|
|
5177
|
+
* overlay is gone, so the keyframe the class stands down cannot replay.
|
|
5178
|
+
*
|
|
5179
|
+
* A `begin` or `rest` that arrives before the settle finishes supersedes it:
|
|
5180
|
+
* a superseded settle neither moves the surface nor reports `done`.
|
|
5181
|
+
*/
|
|
5182
|
+
settle(target: number, done: () => void): void;
|
|
5183
|
+
/**
|
|
5184
|
+
* A settle from rest with no drag: takes hold of `surface` and settles it to
|
|
5185
|
+
* `target` in one step, for a change asked by a click, a key or code rather
|
|
5186
|
+
* than a finger. Supersedes a running settle the way a `begin` does.
|
|
5187
|
+
*/
|
|
5188
|
+
moveTo(surface: SheetMotionSurface, target: number, done: () => void): void;
|
|
5189
|
+
/** Lets go of the surface; the transform is the stylesheet's again. */
|
|
5190
|
+
rest(): void;
|
|
5191
|
+
/**
|
|
5192
|
+
* Only the backdrop's progress is clamped to the extent; the offset itself
|
|
5193
|
+
* is written unclamped.
|
|
5194
|
+
*/
|
|
5195
|
+
private _write;
|
|
5196
|
+
}
|
|
5197
|
+
|
|
3090
5198
|
declare class MenuItemComponent {
|
|
3091
5199
|
readonly key: i0.InputSignal<string>;
|
|
3092
5200
|
readonly templateRef: i0.Signal<TemplateRef<unknown>>;
|
|
@@ -3169,6 +5277,13 @@ declare class Menu {
|
|
|
3169
5277
|
private static _counter;
|
|
3170
5278
|
private readonly _config;
|
|
3171
5279
|
private readonly _overlay;
|
|
5280
|
+
/**
|
|
5281
|
+
* Optional: only apps that call `provideViewport()` register it, and without
|
|
5282
|
+
* it the `sheetBelow` behaviour simply stays off.
|
|
5283
|
+
*/
|
|
5284
|
+
private readonly _viewportService;
|
|
5285
|
+
private readonly _injector;
|
|
5286
|
+
private readonly _renderer;
|
|
3172
5287
|
private readonly _panelRef;
|
|
3173
5288
|
protected readonly _customItems: i0.Signal<readonly MenuItemComponent[]>;
|
|
3174
5289
|
protected readonly customTemplates: i0.Signal<Map<string, TemplateRef<unknown>>>;
|
|
@@ -3183,9 +5298,42 @@ declare class Menu {
|
|
|
3183
5298
|
readonly offset: InputSignal<Point>;
|
|
3184
5299
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
3185
5300
|
readonly inline: InputSignalWithTransform<boolean, unknown>;
|
|
5301
|
+
/**
|
|
5302
|
+
* Extra class(es) placed on the overlay pane, so one menu can carry its own
|
|
5303
|
+
* treatment where the shared one does not fit. They reach the pane however
|
|
5304
|
+
* the menu opens — anchored, at a point, or as a sheet; an inline menu has no
|
|
5305
|
+
* pane, so it has nowhere to put them.
|
|
5306
|
+
*
|
|
5307
|
+
* The pane sits outside every component's template and carries no style
|
|
5308
|
+
* encapsulation attribute, so a consumer's scoped rules cannot otherwise reach
|
|
5309
|
+
* it. A class named here is the handle they get. The panel declares its own
|
|
5310
|
+
* `--tls-menu-*` properties, which beat anything inherited from the pane, so
|
|
5311
|
+
* a rule that retunes one has to name the panel too: `.<class> .tls-menu`.
|
|
5312
|
+
*/
|
|
5313
|
+
readonly panelClass: InputSignal<string | string[] | undefined>;
|
|
3186
5314
|
private readonly _positions;
|
|
5315
|
+
/**
|
|
5316
|
+
* A `label` item opens a section that runs until the next label or divider;
|
|
5317
|
+
* its items render inside a `role="group"` container named after the label.
|
|
5318
|
+
*/
|
|
3187
5319
|
protected readonly blocks: i0.Signal<MenuRenderBlock[]>;
|
|
5320
|
+
/**
|
|
5321
|
+
* An inline menu is always "open" (rendered in place); otherwise reflect the overlay.
|
|
5322
|
+
*/
|
|
3188
5323
|
readonly isOpen: i0.Signal<boolean>;
|
|
5324
|
+
/**
|
|
5325
|
+
* Whether the current open presents as a bottom sheet. Captured per open —
|
|
5326
|
+
* not derived live — so a viewport resize mid-open cannot restyle a pane the
|
|
5327
|
+
* overlay has already placed the other way.
|
|
5328
|
+
*/
|
|
5329
|
+
protected readonly sheet: i0.WritableSignal<boolean>;
|
|
5330
|
+
/**
|
|
5331
|
+
* The sheet's dismissal drag: the finger's hold on the pane, its travel out
|
|
5332
|
+
* past the bottom edge and the settle after release. The scrim thins as the
|
|
5333
|
+
* sheet leaves.
|
|
5334
|
+
*/
|
|
5335
|
+
protected readonly sheetMotion: SheetMotion;
|
|
5336
|
+
private _sheetClosing;
|
|
3189
5337
|
constructor();
|
|
3190
5338
|
open(trigger: MouseEvent | HTMLElement): void;
|
|
3191
5339
|
openAtPoint(x: number, y: number): void;
|
|
@@ -3200,13 +5348,46 @@ declare class Menu {
|
|
|
3200
5348
|
protected itemDescriptionId(index: number): string;
|
|
3201
5349
|
/** Content template for the item: its keyed slot first, the shared `#itemTemplate` otherwise. */
|
|
3202
5350
|
protected itemContentTemplate(item: MenuActionItem): TemplateRef<unknown> | undefined;
|
|
5351
|
+
protected onSheetPanStart(pane: HTMLElement): void;
|
|
5352
|
+
/**
|
|
5353
|
+
* Fired outside the Angular zone (see `PanDirective.panMove`), so it writes
|
|
5354
|
+
* to the DOM directly and never touches a signal. The sheet does not
|
|
5355
|
+
* overshoot open, so upward travel is clamped away.
|
|
5356
|
+
*/
|
|
5357
|
+
protected onSheetPanMove(event: PanEvent): void;
|
|
5358
|
+
protected onSheetPanEnd(event: PanEvent): void;
|
|
5359
|
+
protected onSheetPanCancel(): void;
|
|
5360
|
+
/** Whether the viewport sits at or below the configured sheet breakpoint. */
|
|
5361
|
+
private _prefersSheet;
|
|
5362
|
+
/**
|
|
5363
|
+
* Resets the per-open presentation state; the pane itself is stamped fresh
|
|
5364
|
+
* from the template on every open, so only the component-held state carries
|
|
5365
|
+
* over.
|
|
5366
|
+
*/
|
|
5367
|
+
private _prepareOpen;
|
|
5368
|
+
/**
|
|
5369
|
+
* Continues the drag out past the bottom edge and closes on arrival. A
|
|
5370
|
+
* dismissal that began as a drag must not route through the leave keyframe:
|
|
5371
|
+
* that starts from the fully open position, so the pane would snap back for
|
|
5372
|
+
* a frame before leaving — the stylesheet stands the keyframe down while
|
|
5373
|
+
* the drag state classes are on.
|
|
5374
|
+
*/
|
|
5375
|
+
private _sheetDragClose;
|
|
3203
5376
|
static ɵfac: i0.ɵɵFactoryDeclaration<Menu, never>;
|
|
3204
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Menu, "tls-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; }, {}, ["_customItems", "itemTemplate", "labelTemplate", "dividerTemplate", "iconTemplate"], never, true, never>;
|
|
5377
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Menu, "tls-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; }, {}, ["_customItems", "itemTemplate", "labelTemplate", "dividerTemplate", "iconTemplate"], never, true, never>;
|
|
3205
5378
|
}
|
|
3206
5379
|
|
|
3207
5380
|
interface MenuConfig {
|
|
3208
5381
|
position: menuPosition;
|
|
3209
5382
|
offset: Point;
|
|
5383
|
+
/**
|
|
5384
|
+
* Breakpoint at or below which the menu opens as a bottom sheet instead of
|
|
5385
|
+
* an anchored panel: a small viewport rarely fits a floating panel beside
|
|
5386
|
+
* its trigger, and a thumb-reachable sheet is the platform-native list of
|
|
5387
|
+
* choices there. `null` keeps every menu anchored. Takes effect only when
|
|
5388
|
+
* the app provides the viewport (`provideViewport()`).
|
|
5389
|
+
*/
|
|
5390
|
+
sheetBelow: breakpoint | null;
|
|
3210
5391
|
}
|
|
3211
5392
|
declare const DEFAULT_MENU_CONFIG: MenuConfig;
|
|
3212
5393
|
|
|
@@ -3243,15 +5424,41 @@ interface OdometerToken {
|
|
|
3243
5424
|
/** Literal character for a static symbol, or `null` when the slot is a digit. */
|
|
3244
5425
|
symbol: string | null;
|
|
3245
5426
|
}
|
|
5427
|
+
/** A rendered slot paired with how long its roll lasts. */
|
|
5428
|
+
interface OdometerSlot {
|
|
5429
|
+
/** The slot itself. */
|
|
5430
|
+
token: OdometerToken;
|
|
5431
|
+
/** Duration of the slot's roll, in milliseconds; a symbol never rolls. */
|
|
5432
|
+
duration: number;
|
|
5433
|
+
}
|
|
5434
|
+
/**
|
|
5435
|
+
* Which way a digit column turns on its way to a new digit: `up` counts upward
|
|
5436
|
+
* through the wheel (4 → 5 → 6, 9 → 0), `down` counts downward (6 → 5 → 4,
|
|
5437
|
+
* 0 → 9), and `shortest` takes whichever arc is shorter.
|
|
5438
|
+
*/
|
|
5439
|
+
type odometerDirection = 'shortest' | 'up' | 'down';
|
|
3246
5440
|
|
|
3247
5441
|
/**
|
|
3248
5442
|
* Animated number whose digits roll to the new value, like a mechanical
|
|
3249
5443
|
* odometer. Each digit column rolls through the values between the old and the
|
|
3250
|
-
* new one by the shortest path, so counting up or down reads
|
|
5444
|
+
* new one — by the shortest path by default, so counting up or down reads
|
|
5445
|
+
* naturally, or always one way with `direction`.
|
|
5446
|
+
*
|
|
5447
|
+
* Shows either a number (`value`, formatted by the inputs below) or text
|
|
5448
|
+
* written out by the caller (`text`), whose digits roll while every other
|
|
5449
|
+
* character stays put — a clock, a date, a formatted amount. `text` wins when
|
|
5450
|
+
* both are given.
|
|
3251
5451
|
*
|
|
3252
5452
|
* The value scales with the surrounding `font-size`. The roll is a functional
|
|
3253
5453
|
* cue on the `essential` motion tier, so it is replaced by an instant swap when
|
|
3254
|
-
* the user has reduced motion.
|
|
5454
|
+
* the user has reduced motion. `animated` turns it off per change, for a value
|
|
5455
|
+
* that moves on its own and should roll only when someone moves it.
|
|
5456
|
+
*
|
|
5457
|
+
* `revolutions`, `stagger` and `rollIn` turn the roll into a spin, like a slot
|
|
5458
|
+
* machine's reels: extra full turns, columns that come to rest in turn, and a
|
|
5459
|
+
* first value that spins in rather than appearing. Extra turns and rolling in
|
|
5460
|
+
* are expressive motion, so they play only at the `full` motion level; below
|
|
5461
|
+
* it the value still rolls, or appears, as it otherwise would.
|
|
3255
5462
|
*
|
|
3256
5463
|
* @example
|
|
3257
5464
|
* <!-- a live score -->
|
|
@@ -3260,15 +5467,54 @@ interface OdometerToken {
|
|
|
3260
5467
|
* @example
|
|
3261
5468
|
* <!-- fixed-width counter with two decimals -->
|
|
3262
5469
|
* <tls-odometer [value]="balance()" [minIntegerDigits]="4" [fractionDigits]="2" />
|
|
5470
|
+
*
|
|
5471
|
+
* @example
|
|
5472
|
+
* <!-- a countdown that ticks in place and rolls only when adjusted -->
|
|
5473
|
+
* <tls-odometer [text]="clock()" [animated]="adjusted()" />
|
|
5474
|
+
*
|
|
5475
|
+
* @example
|
|
5476
|
+
* <!-- reels that spin in and stop one after another -->
|
|
5477
|
+
* <tls-odometer text="777" rollIn direction="down" [revolutions]="2" [stagger]="400" />
|
|
3263
5478
|
*/
|
|
3264
5479
|
declare class Odometer {
|
|
3265
5480
|
private readonly _config;
|
|
3266
5481
|
/** The number to display. Changes roll the affected digit columns. */
|
|
3267
|
-
readonly value: InputSignal<number>;
|
|
3268
|
-
/**
|
|
5482
|
+
readonly value: InputSignal<number | null>;
|
|
5483
|
+
/**
|
|
5484
|
+
* Text to display as written, in place of `value`. Its digits roll; every
|
|
5485
|
+
* other character is a fixed symbol. The number formatting inputs do not
|
|
5486
|
+
* apply to it.
|
|
5487
|
+
*/
|
|
5488
|
+
readonly text: InputSignal<string | null>;
|
|
5489
|
+
/**
|
|
5490
|
+
* Whether a change rolls. Read as each new value arrives, so turning it off
|
|
5491
|
+
* swaps the next values in place without cutting short a roll under way.
|
|
5492
|
+
*/
|
|
5493
|
+
readonly animated: InputSignalWithTransform<boolean, unknown>;
|
|
5494
|
+
/**
|
|
5495
|
+
* Whether a column's first digit rolls in from `0` instead of appearing in
|
|
5496
|
+
* place. Plays only at the `full` motion level.
|
|
5497
|
+
*/
|
|
5498
|
+
readonly rollIn: InputSignalWithTransform<boolean, unknown>;
|
|
5499
|
+
/**
|
|
5500
|
+
* Duration of a digit's roll, in milliseconds, whatever distance it covers —
|
|
5501
|
+
* give a roll with `revolutions` the longer time a spin needs.
|
|
5502
|
+
*/
|
|
3269
5503
|
readonly duration: InputSignal<number>;
|
|
3270
5504
|
/** Delay before a digit roll starts, in milliseconds. */
|
|
3271
5505
|
readonly delay: InputSignal<number>;
|
|
5506
|
+
/**
|
|
5507
|
+
* Milliseconds added to each successive digit column's roll, left to right,
|
|
5508
|
+
* so columns that start together come to rest in turn.
|
|
5509
|
+
*/
|
|
5510
|
+
readonly stagger: InputSignal<number>;
|
|
5511
|
+
/**
|
|
5512
|
+
* Full turns of the wheel a roll makes before it lands. Applies to every
|
|
5513
|
+
* column that rolls, and plays only at the `full` motion level.
|
|
5514
|
+
*/
|
|
5515
|
+
readonly revolutions: InputSignal<number>;
|
|
5516
|
+
/** Which way a digit column turns on its way to a new digit. */
|
|
5517
|
+
readonly direction: InputSignal<odometerDirection>;
|
|
3272
5518
|
/** Minimum number of integer digits, left-padded with zeros (`007`). */
|
|
3273
5519
|
readonly minIntegerDigits: InputSignal<number>;
|
|
3274
5520
|
/** Number of fraction digits to display. `0` hides the decimal part. */
|
|
@@ -3278,9 +5524,17 @@ declare class Odometer {
|
|
|
3278
5524
|
/** Overrides the text announced to screen readers (defaults to the formatted value). */
|
|
3279
5525
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
3280
5526
|
protected readonly tokens: Signal<OdometerToken[]>;
|
|
5527
|
+
/** The tokens with each roll's duration, lengthened by `stagger` per digit column. */
|
|
5528
|
+
protected readonly slots: Signal<OdometerSlot[]>;
|
|
3281
5529
|
protected readonly formattedValue: Signal<string>;
|
|
5530
|
+
/**
|
|
5531
|
+
* Keyed by position from the end, as a number's columns are by place value,
|
|
5532
|
+
* so `9:59` turning into `10:00` keeps its right-hand columns rolling in
|
|
5533
|
+
* place instead of every slot being rebuilt.
|
|
5534
|
+
*/
|
|
5535
|
+
private _textTokens;
|
|
3282
5536
|
static ɵfac: i0.ɵɵFactoryDeclaration<Odometer, never>;
|
|
3283
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Odometer, "tls-odometer", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "minIntegerDigits": { "alias": "minIntegerDigits"; "required": false; "isSignal": true; }; "fractionDigits": { "alias": "fractionDigits"; "required": false; "isSignal": true; }; "decimalSeparator": { "alias": "decimalSeparator"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5537
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Odometer, "tls-odometer", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "animated": { "alias": "animated"; "required": false; "isSignal": true; }; "rollIn": { "alias": "rollIn"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "stagger": { "alias": "stagger"; "required": false; "isSignal": true; }; "revolutions": { "alias": "revolutions"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "minIntegerDigits": { "alias": "minIntegerDigits"; "required": false; "isSignal": true; }; "fractionDigits": { "alias": "fractionDigits"; "required": false; "isSignal": true; }; "decimalSeparator": { "alias": "decimalSeparator"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3284
5538
|
}
|
|
3285
5539
|
|
|
3286
5540
|
interface OdometerConfig {
|
|
@@ -3294,6 +5548,12 @@ interface OdometerConfig {
|
|
|
3294
5548
|
fractionDigits: number;
|
|
3295
5549
|
/** Character rendered between the integer and fraction parts. */
|
|
3296
5550
|
decimalSeparator: string;
|
|
5551
|
+
/** Full turns of the wheel a roll makes before it lands, at the `full` motion level. */
|
|
5552
|
+
revolutions: number;
|
|
5553
|
+
/** Which way a digit column turns on its way to a new digit. */
|
|
5554
|
+
direction: odometerDirection;
|
|
5555
|
+
/** Milliseconds added to each successive digit column's roll, left to right. */
|
|
5556
|
+
stagger: number;
|
|
3297
5557
|
}
|
|
3298
5558
|
declare const DEFAULT_ODOMETER_CONFIG: OdometerConfig;
|
|
3299
5559
|
|
|
@@ -3378,6 +5638,10 @@ declare const PAGINATION_QUERY_SYNC_CONFIG: InjectionToken<PaginationQuerySyncCo
|
|
|
3378
5638
|
declare class PaginationQuerySyncDirective extends QuerySyncDirective implements OnInit {
|
|
3379
5639
|
private readonly _pagination;
|
|
3380
5640
|
private readonly _config;
|
|
5641
|
+
/**
|
|
5642
|
+
* The selector doubles as the input, so a valueless `tlsPaginationQuerySync` binds `''`.
|
|
5643
|
+
* Coerce an empty value back to the configured default param key.
|
|
5644
|
+
*/
|
|
3381
5645
|
readonly tlsPaginationQuerySync: i0.InputSignalWithTransform<string, string>;
|
|
3382
5646
|
/** Last page mirrored to the URL; `null` until the initial page settles. */
|
|
3383
5647
|
private _lastSynced;
|
|
@@ -3396,18 +5660,45 @@ declare class Popover {
|
|
|
3396
5660
|
readonly isOpen: i0.Signal<boolean>;
|
|
3397
5661
|
readonly position: i0.InputSignal<overlayPosition>;
|
|
3398
5662
|
readonly offset: i0.InputSignal<Point>;
|
|
5663
|
+
/** Minimum gap in px kept between the panel and the viewport's edges. */
|
|
5664
|
+
readonly viewportMargin: i0.InputSignal<number>;
|
|
5665
|
+
/**
|
|
5666
|
+
* Keep the panel within the viewport, inside the viewport margin, however tall
|
|
5667
|
+
* its content: it is capped at the viewport's height and shrinks to the room
|
|
5668
|
+
* beside its trigger, sliding along its side where that room runs short.
|
|
5669
|
+
* Without it a panel too tall to fit is pushed on screen at full height and
|
|
5670
|
+
* runs off the viewport. The content that may outgrow the panel has to scroll
|
|
5671
|
+
* within it.
|
|
5672
|
+
*/
|
|
5673
|
+
readonly shrinkToFit: i0.InputSignalWithTransform<boolean, unknown>;
|
|
3399
5674
|
readonly ariaLabel: i0.InputSignal<string | undefined>;
|
|
5675
|
+
/**
|
|
5676
|
+
* Extra class(es) placed on the overlay pane, so one popover can carry its own
|
|
5677
|
+
* treatment where the shared one does not fit.
|
|
5678
|
+
*
|
|
5679
|
+
* The pane sits outside every component's template and carries no style
|
|
5680
|
+
* encapsulation attribute, so a consumer's scoped rules cannot otherwise reach
|
|
5681
|
+
* it. A class named here is the handle they get. The panel declares its own
|
|
5682
|
+
* `--tls-popover-*` properties, which beat anything inherited from the pane, so
|
|
5683
|
+
* a rule that retunes one has to name the panel too: `.<class> .tls-popover`.
|
|
5684
|
+
*/
|
|
5685
|
+
readonly panelClass: i0.InputSignal<string | string[] | undefined>;
|
|
3400
5686
|
private readonly _positions;
|
|
3401
5687
|
open(trigger: MouseEvent | HTMLElement): void;
|
|
3402
5688
|
close(): void;
|
|
3403
5689
|
toggle(trigger: MouseEvent | HTMLElement): void;
|
|
3404
5690
|
static ɵfac: i0.ɵɵFactoryDeclaration<Popover, never>;
|
|
3405
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Popover, "tls-popover", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
5691
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Popover, "tls-popover", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "viewportMargin": { "alias": "viewportMargin"; "required": false; "isSignal": true; }; "shrinkToFit": { "alias": "shrinkToFit"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
3406
5692
|
}
|
|
3407
5693
|
|
|
3408
5694
|
interface PopoverConfig {
|
|
3409
5695
|
position: overlayPosition;
|
|
3410
5696
|
offset: Point;
|
|
5697
|
+
/**
|
|
5698
|
+
* Minimum gap in px kept between the panel and the viewport's edges when the
|
|
5699
|
+
* panel has to be pushed or shrunk to stay on screen.
|
|
5700
|
+
*/
|
|
5701
|
+
viewportMargin: number;
|
|
3411
5702
|
}
|
|
3412
5703
|
declare const DEFAULT_POPOVER_CONFIG: PopoverConfig;
|
|
3413
5704
|
|
|
@@ -3483,6 +5774,309 @@ declare const DEFAULT_PROGRESS_CONFIG: ProgressConfig;
|
|
|
3483
5774
|
|
|
3484
5775
|
declare const PROGRESS_CONFIG: InjectionToken<ProgressConfig>;
|
|
3485
5776
|
|
|
5777
|
+
interface RippleConfig {
|
|
5778
|
+
/**
|
|
5779
|
+
* Pointer types whose presses spread ink.
|
|
5780
|
+
*
|
|
5781
|
+
* Ink answers occlusion — a fingertip covers the control it spreads from, and a
|
|
5782
|
+
* cursor covers nothing — so a mouse is left to the press by default. Widening
|
|
5783
|
+
* this does not widen when ink plays: reduced motion still falls back to the
|
|
5784
|
+
* press whatever is listed here.
|
|
5785
|
+
*/
|
|
5786
|
+
pointerTypes: pointerType[];
|
|
5787
|
+
}
|
|
5788
|
+
declare const DEFAULT_RIPPLE_CONFIG: RippleConfig;
|
|
5789
|
+
|
|
5790
|
+
/** Marks a host while its ink is expanding; the theme's `ripple` mixin animates on it. */
|
|
5791
|
+
declare const RIPPLE_ACTIVE_CLASS = "tls-rippling";
|
|
5792
|
+
/** Contact point of the press, relative to the host's own box. */
|
|
5793
|
+
declare const RIPPLE_X_PROPERTY = "--tls-ripple-x";
|
|
5794
|
+
declare const RIPPLE_Y_PROPERTY = "--tls-ripple-y";
|
|
5795
|
+
/** Radius the ink has to reach to cover the host from that contact point. */
|
|
5796
|
+
declare const RIPPLE_DIAMETER_PROPERTY = "--tls-ripple-diameter";
|
|
5797
|
+
/** Suppression hook the press mixin reads: 1 leaves the control at rest. */
|
|
5798
|
+
declare const PRESS_SCALE_PROPERTY = "--tls-press-scale";
|
|
5799
|
+
/**
|
|
5800
|
+
* How far a pointer may travel before its press is read as the start of a scroll.
|
|
5801
|
+
* A ripple keeps expanding for its full duration, so one spawned by a flick stays
|
|
5802
|
+
* on screen well after the surface has moved — worse than a press, which ends
|
|
5803
|
+
* with the contact.
|
|
5804
|
+
*/
|
|
5805
|
+
declare const RIPPLE_MOVE_SLOP_PX = 8;
|
|
5806
|
+
|
|
5807
|
+
declare const RIPPLE_CONFIG: InjectionToken<RippleConfig>;
|
|
5808
|
+
|
|
5809
|
+
/**
|
|
5810
|
+
* How tall a detent is: the header slot's height (`'header'`), the header plus
|
|
5811
|
+
* the body's natural height capped at the viewport (`'content'`), a share of
|
|
5812
|
+
* the viewport (`'50%'`), or any CSS length (`'20rem'`).
|
|
5813
|
+
*/
|
|
5814
|
+
type sheetDetentSize = 'header' | 'content' | `${number}%` | string;
|
|
5815
|
+
/** One resting height of a sheet. Listed smallest to largest by the author. */
|
|
5816
|
+
interface SheetDetent {
|
|
5817
|
+
id: string;
|
|
5818
|
+
size: sheetDetentSize;
|
|
5819
|
+
}
|
|
5820
|
+
/** Measurements, in px, a detent size is resolved against. */
|
|
5821
|
+
interface SheetMeasures {
|
|
5822
|
+
/** Rendered height of the header slot. */
|
|
5823
|
+
header: number;
|
|
5824
|
+
/** Header plus the body's natural (unclipped) height. */
|
|
5825
|
+
content: number;
|
|
5826
|
+
/** Height of the area the sheet may occupy. */
|
|
5827
|
+
viewport: number;
|
|
5828
|
+
/** Resolves a CSS length against the sheet's own font and viewport. */
|
|
5829
|
+
length: (css: string) => number;
|
|
5830
|
+
}
|
|
5831
|
+
/**
|
|
5832
|
+
* Where focus goes when a sheet stops being modal: back to its header when the
|
|
5833
|
+
* sheet stays, or to what the page had focused when the sheet is going.
|
|
5834
|
+
*/
|
|
5835
|
+
type sheetFocusRestoreTarget = 'header' | 'page';
|
|
5836
|
+
/** The header slot's template, read by the sheet. */
|
|
5837
|
+
interface SheetHeaderTemplate {
|
|
5838
|
+
templateRef: TemplateRef<unknown>;
|
|
5839
|
+
}
|
|
5840
|
+
|
|
5841
|
+
/**
|
|
5842
|
+
* Marks the template a `tls-sheet` renders as its header: always visible, the
|
|
5843
|
+
* height of the `'header'` detent, and the button that toggles the sheet. It
|
|
5844
|
+
* renders inside a native `<button>`, so it holds no interactive content.
|
|
5845
|
+
*/
|
|
5846
|
+
declare class SheetHeaderDirective implements SheetHeaderTemplate {
|
|
5847
|
+
readonly templateRef: TemplateRef<unknown>;
|
|
5848
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SheetHeaderDirective, never>;
|
|
5849
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SheetHeaderDirective, "ng-template[tlsSheetHeader]", never, {}, {}, never, never, true, never>;
|
|
5850
|
+
}
|
|
5851
|
+
|
|
5852
|
+
/**
|
|
5853
|
+
* A persistent bottom sheet: one surface, at rest at one of several named
|
|
5854
|
+
* heights (detents), that a page declares in its template and keeps for as
|
|
5855
|
+
* long as the component lives. It grows and shrinks between detents by drag,
|
|
5856
|
+
* by its header button, by arrow keys, or by `snapTo`; at or above
|
|
5857
|
+
* `modalFrom` it is a modal dialog, below it the page stays interactive.
|
|
5858
|
+
*
|
|
5859
|
+
* The host stays in the page, so the page's injector and `@if` own the
|
|
5860
|
+
* sheet, while its panel is rendered in a CDK overlay pane at the end of
|
|
5861
|
+
* `body` — page hosts may sit under transforms that would turn a fixed panel
|
|
5862
|
+
* into an absolute one. One sheet at a time: it publishes the collapsed height
|
|
5863
|
+
* as `--tls-sheet-collapsed-size` on the root element for the page to reserve.
|
|
5864
|
+
*
|
|
5865
|
+
* Transient, code-summoned surfaces are `tls-drawer`'s; nothing here dismisses.
|
|
5866
|
+
*/
|
|
5867
|
+
declare class Sheet implements OnDestroy {
|
|
5868
|
+
private readonly _overlay;
|
|
5869
|
+
private readonly _renderer;
|
|
5870
|
+
private readonly _injector;
|
|
5871
|
+
private readonly _document;
|
|
5872
|
+
private readonly _destroyRef;
|
|
5873
|
+
private readonly _viewportRuler;
|
|
5874
|
+
private readonly _focusTrapFactory;
|
|
5875
|
+
private readonly _overlayContainer;
|
|
5876
|
+
private readonly _inputModalityDetector;
|
|
5877
|
+
/** Resting heights, smallest to largest. */
|
|
5878
|
+
readonly detents: InputSignal<SheetDetent[]>;
|
|
5879
|
+
/**
|
|
5880
|
+
* The resting detent's id. Written on arrival at a detent; setting it moves
|
|
5881
|
+
* there. An id no detent carries, the empty default included, moves the sheet
|
|
5882
|
+
* to the first detent and is rewritten to that detent's id.
|
|
5883
|
+
*/
|
|
5884
|
+
readonly detent: ModelSignal<string>;
|
|
5885
|
+
/** Detent id at or above which the sheet is modal; `null` never. */
|
|
5886
|
+
readonly modalFrom: InputSignal<string | null>;
|
|
5887
|
+
/** Accessible name of the region or dialog. */
|
|
5888
|
+
readonly label: InputSignal<string>;
|
|
5889
|
+
/** Localized names per detent id, announced with the label; an id without one is announced as is. */
|
|
5890
|
+
readonly detentLabels: InputSignal<Record<string, string>>;
|
|
5891
|
+
/** Whether the pill along the top edge that advertises the drag is drawn. */
|
|
5892
|
+
readonly grabber: InputSignalWithTransform<boolean, unknown>;
|
|
5893
|
+
/**
|
|
5894
|
+
* Extra class(es) placed on the overlay pane, so one sheet can carry its own
|
|
5895
|
+
* treatment where the shared one does not fit. The pane lives as long as the
|
|
5896
|
+
* sheet, so a change swaps them on it in place.
|
|
5897
|
+
*
|
|
5898
|
+
* The pane sits outside every component's template and carries no style
|
|
5899
|
+
* encapsulation attribute, so a consumer's scoped rules cannot otherwise reach
|
|
5900
|
+
* it. A class named here is the handle they get. The sheet declares its own
|
|
5901
|
+
* `--tls-sheet-*` properties, which beat anything inherited from the pane, so
|
|
5902
|
+
* a rule that retunes one has to name the sheet too: `.<class> .tls-sheet`.
|
|
5903
|
+
*/
|
|
5904
|
+
readonly panelClass: InputSignal<string | string[] | undefined>;
|
|
5905
|
+
/**
|
|
5906
|
+
* Numbers the instances, so each sheet's ids are unique in the document;
|
|
5907
|
+
* declared first because `id` reads it.
|
|
5908
|
+
*/
|
|
5909
|
+
private static _counter;
|
|
5910
|
+
readonly id: string;
|
|
5911
|
+
protected readonly bodyId: string;
|
|
5912
|
+
protected readonly headerTemplate: i0.Signal<SheetHeaderDirective>;
|
|
5913
|
+
protected readonly pointerTypes: readonly string[];
|
|
5914
|
+
private readonly _root;
|
|
5915
|
+
private readonly _backdrop;
|
|
5916
|
+
private readonly _panel;
|
|
5917
|
+
private readonly _header;
|
|
5918
|
+
/**
|
|
5919
|
+
* The scroll container: its `scrollTop` decides whether a pan at the top
|
|
5920
|
+
* detent is the sheet's or the body's. The content inside it is what is measured.
|
|
5921
|
+
*/
|
|
5922
|
+
private readonly _body;
|
|
5923
|
+
private readonly _content;
|
|
5924
|
+
private readonly _probe;
|
|
5925
|
+
/** Height in px of each detent, in `detents` order; empty until measured. */
|
|
5926
|
+
private readonly _heights;
|
|
5927
|
+
/** Annotated because its own callback reads it back for the travel. */
|
|
5928
|
+
private readonly _motion;
|
|
5929
|
+
protected readonly motionState: i0.Signal<sheetMotionState>;
|
|
5930
|
+
private _overlayRef;
|
|
5931
|
+
/**
|
|
5932
|
+
* The detent the sheet is at or moving to, so a remeasure mid-settle
|
|
5933
|
+
* re-targets the settle rather than snapping back to where it started.
|
|
5934
|
+
*/
|
|
5935
|
+
private readonly _targetIndex;
|
|
5936
|
+
/** The detent a drag began at, for the release decision. */
|
|
5937
|
+
private _dragStartIndex;
|
|
5938
|
+
/**
|
|
5939
|
+
* A pan the body's own scrolling owns; its moves and end are not the sheet's.
|
|
5940
|
+
*/
|
|
5941
|
+
private _declined;
|
|
5942
|
+
private _focusTrap;
|
|
5943
|
+
/** The classes `panelClass` last put on the pane, for a change to take off again. */
|
|
5944
|
+
private _panelClasses;
|
|
5945
|
+
/** Page-level elements made inert while modal, to be released as found. */
|
|
5946
|
+
private _inerted;
|
|
5947
|
+
/**
|
|
5948
|
+
* What had focus in the page before the sheet went modal, for a destroy
|
|
5949
|
+
* that removes the header focus would otherwise return to.
|
|
5950
|
+
*/
|
|
5951
|
+
private _focusBeforeModal;
|
|
5952
|
+
protected readonly currentIndex: i0.Signal<number>;
|
|
5953
|
+
protected readonly isTop: i0.Signal<boolean>;
|
|
5954
|
+
/**
|
|
5955
|
+
* At the first detent or settling towards it: from the moment a collapse
|
|
5956
|
+
* begins, not once it lands, so what reacts to it moves with the panel.
|
|
5957
|
+
*/
|
|
5958
|
+
protected readonly isBoundForLip: i0.Signal<boolean>;
|
|
5959
|
+
protected readonly isExpanded: i0.Signal<boolean>;
|
|
5960
|
+
protected readonly isModal: i0.Signal<boolean>;
|
|
5961
|
+
protected readonly description: i0.Signal<string>;
|
|
5962
|
+
constructor();
|
|
5963
|
+
/** Moves to the detent with `id`; an unknown id is ignored. */
|
|
5964
|
+
snapTo(id: string): void;
|
|
5965
|
+
/** Moves one detent up; a no-op at the largest. */
|
|
5966
|
+
expand(): void;
|
|
5967
|
+
/** Moves one detent down; a no-op at the smallest. */
|
|
5968
|
+
collapse(): void;
|
|
5969
|
+
/**
|
|
5970
|
+
* Re-reads the detent heights and brings the sheet to its detent at the new
|
|
5971
|
+
* heights. Runs by itself when the viewport, the header or the content
|
|
5972
|
+
* changes size; public for a page whose detents depend on anything else.
|
|
5973
|
+
*/
|
|
5974
|
+
remeasure(): void;
|
|
5975
|
+
/**
|
|
5976
|
+
* The header steps down from a modal or the largest detent — where there is
|
|
5977
|
+
* nothing above to grow into — and up from any other.
|
|
5978
|
+
*/
|
|
5979
|
+
protected onHeaderClick(): void;
|
|
5980
|
+
/** The arrows would otherwise scroll the page behind the sheet. */
|
|
5981
|
+
protected onArrowUp(event: Event): void;
|
|
5982
|
+
protected onArrowDown(event: Event): void;
|
|
5983
|
+
protected onPanStart(event: PanEvent): void;
|
|
5984
|
+
/**
|
|
5985
|
+
* Fired outside the Angular zone (see `PanDirective.panMove`), so it writes
|
|
5986
|
+
* to the DOM through the engine and writes no signal. The start height is
|
|
5987
|
+
* read live, so a remeasure mid-drag applies at once.
|
|
5988
|
+
*/
|
|
5989
|
+
protected onPanMove(event: PanEvent): void;
|
|
5990
|
+
protected onPanEnd(event: PanEvent): void;
|
|
5991
|
+
protected onPanCancel(): void;
|
|
5992
|
+
/**
|
|
5993
|
+
* Heard at the document, so Escape works wherever focus sits while modal —
|
|
5994
|
+
* the backdrop and the panel's own surface take no focus. An Escape a
|
|
5995
|
+
* control already consumed, or one typed in another overlay (a drawer
|
|
5996
|
+
* stacked above the sheet), keeps the sheet where it is.
|
|
5997
|
+
*/
|
|
5998
|
+
protected onEscape(event: Event): void;
|
|
5999
|
+
protected onBackdropClick(): void;
|
|
6000
|
+
/**
|
|
6001
|
+
* Moves the panel into a full-viewport pane at the end of body. The pane
|
|
6002
|
+
* passes pointers through; only the panel and the backdrop take them.
|
|
6003
|
+
*/
|
|
6004
|
+
private _attach;
|
|
6005
|
+
/**
|
|
6006
|
+
* Puts the named classes on the pane in place of the ones named before. The
|
|
6007
|
+
* pane's own class is laid back on with them, so naming it and then dropping
|
|
6008
|
+
* it cannot strip it from the pane.
|
|
6009
|
+
*/
|
|
6010
|
+
private _applyPanelClass;
|
|
6011
|
+
private _measure;
|
|
6012
|
+
/** Displacement below the largest detent that puts the panel at `index`. */
|
|
6013
|
+
private _offsetOf;
|
|
6014
|
+
private _surface;
|
|
6015
|
+
/**
|
|
6016
|
+
* Puts the panel at `index` at once, with no motion: after measuring, the
|
|
6017
|
+
* sheet is already where it rests.
|
|
6018
|
+
*/
|
|
6019
|
+
private _place;
|
|
6020
|
+
/**
|
|
6021
|
+
* Animates the panel to `index` from wherever it is, by a settle from rest.
|
|
6022
|
+
*/
|
|
6023
|
+
private _settleTo;
|
|
6024
|
+
/**
|
|
6025
|
+
* Whether a pan is the sheet's to move, or the body's to scroll. Only the
|
|
6026
|
+
* top detent scrolls the body; there a downward pan that starts inside the
|
|
6027
|
+
* body is the sheet's only when the body is already at its top. Decided
|
|
6028
|
+
* once, at the start — a hand-off mid-gesture is where jank lives.
|
|
6029
|
+
*/
|
|
6030
|
+
private _claims;
|
|
6031
|
+
/**
|
|
6032
|
+
* Offset for a height the finger asks for. Above the largest detent the
|
|
6033
|
+
* panel holds (a lifted panel would show a gap beneath it); below the
|
|
6034
|
+
* smallest it follows a third of the overshoot, capped, so the end of the
|
|
6035
|
+
* travel reads as a stretch rather than a wall.
|
|
6036
|
+
*/
|
|
6037
|
+
private _offsetFor;
|
|
6038
|
+
/** Ends a drag at `index`: the settle continues from the finger's offset. */
|
|
6039
|
+
private _settleFromDrag;
|
|
6040
|
+
/**
|
|
6041
|
+
* A settle that finishes after destroy writes nothing to a destroyed model.
|
|
6042
|
+
*/
|
|
6043
|
+
private _arrive;
|
|
6044
|
+
/**
|
|
6045
|
+
* Opacity of the scrim at `offset` below the largest detent: 0 up to the
|
|
6046
|
+
* detent below `modalFrom`, rising across the gap into it, 1 from there on.
|
|
6047
|
+
* It takes the offset rather than a share of the travel because at rest the
|
|
6048
|
+
* engine holds no surface and knows no travel.
|
|
6049
|
+
*/
|
|
6050
|
+
private _backdropOpacityAt;
|
|
6051
|
+
/**
|
|
6052
|
+
* The highest detent that is not modal, or the lowest when `modalFrom` is it.
|
|
6053
|
+
*/
|
|
6054
|
+
private _collapseBelowModal;
|
|
6055
|
+
/**
|
|
6056
|
+
* While modal the rest of the page is inert and focus stays in the panel,
|
|
6057
|
+
* landing on the header button — the one control that explains the state
|
|
6058
|
+
* and undoes it — unless a pointer made the change (see
|
|
6059
|
+
* `_focusHeaderUnlessPointer`). Leaving modal releases both. When the sheet stays, focus
|
|
6060
|
+
* goes back to the header only if it has nowhere better to be — nothing
|
|
6061
|
+
* focused, the body, or still inside the panel; focus already elsewhere (another
|
|
6062
|
+
* overlay, the page) is left where it is. When the sheet is going, focus
|
|
6063
|
+
* returns to what the page had focused.
|
|
6064
|
+
* Elements already inert are someone else's, so they are neither taken nor
|
|
6065
|
+
* released.
|
|
6066
|
+
*/
|
|
6067
|
+
private _applyModality;
|
|
6068
|
+
/**
|
|
6069
|
+
* Keyboard users, and changes made before any interaction or by code, get
|
|
6070
|
+
* the header focused. After a pointer interaction focus stays put: with the
|
|
6071
|
+
* page inert a pointer user's focus rests on `body`, and the first Tab lands
|
|
6072
|
+
* on the header anyway, so moving focus would only paint a ring nobody asked for.
|
|
6073
|
+
*/
|
|
6074
|
+
private _focusHeaderUnlessPointer;
|
|
6075
|
+
ngOnDestroy(): void;
|
|
6076
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Sheet, never>;
|
|
6077
|
+
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>;
|
|
6078
|
+
}
|
|
6079
|
+
|
|
3486
6080
|
declare class Skeleton {
|
|
3487
6081
|
private readonly _config;
|
|
3488
6082
|
readonly size: InputSignal<number | string | null>;
|
|
@@ -3557,11 +6151,17 @@ declare class Splitter {
|
|
|
3557
6151
|
/** Accessible name for the group of panels and their separators. */
|
|
3558
6152
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
3559
6153
|
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
6154
|
+
/**
|
|
6155
|
+
* `descendants: false` scopes the query to this splitter's own panels; without
|
|
6156
|
+
* it a nested `tls-splitter`'s panels would be counted here too.
|
|
6157
|
+
*/
|
|
3560
6158
|
protected readonly panels: Signal<readonly SplitterPanel[]>;
|
|
3561
6159
|
private readonly _activeSeam;
|
|
6160
|
+
/** Transient drag bookkeeping, captured on pointer down. */
|
|
3562
6161
|
private _dragContainerSize;
|
|
3563
6162
|
private _dragStartCoordinate;
|
|
3564
6163
|
private _dragStartSize;
|
|
6164
|
+
/** Restore sizes for collapsed panels, keyed by the panel that owns them. */
|
|
3565
6165
|
private readonly _collapsedSizes;
|
|
3566
6166
|
private readonly _collapsedFlags;
|
|
3567
6167
|
protected readonly isHorizontal: Signal<boolean>;
|
|
@@ -3572,14 +6172,35 @@ declare class Splitter {
|
|
|
3572
6172
|
protected onGutterPointerDown(seamIndex: number, event: PointerEvent): void;
|
|
3573
6173
|
protected onGutterPointerMove(seamIndex: number, event: PointerEvent): void;
|
|
3574
6174
|
protected onGutterPointerUp(seamIndex: number, event: PointerEvent): void;
|
|
6175
|
+
/**
|
|
6176
|
+
* Pointer capture is already released once the browser cancels the pointer, so
|
|
6177
|
+
* this only resets drag state (calling `releasePointerCapture` here can throw).
|
|
6178
|
+
*/
|
|
3575
6179
|
protected onGutterPointerCancel(seamIndex: number): void;
|
|
3576
6180
|
protected onGutterKeydown(seamIndex: number, event: KeyboardEvent): void;
|
|
3577
6181
|
private _isRtl;
|
|
3578
6182
|
private _lowerBound;
|
|
3579
6183
|
private _upperBound;
|
|
6184
|
+
/**
|
|
6185
|
+
* Sets the leading panel to `desiredSize`, clamped so both panels honour their
|
|
6186
|
+
* min/max, and gives the remainder of the pair to the trailing panel. A
|
|
6187
|
+
* `collapsible` panel dragged past its `min` snaps shut instead of clamping.
|
|
6188
|
+
*/
|
|
3580
6189
|
private _applySeamSize;
|
|
6190
|
+
/**
|
|
6191
|
+
* Collapses `panel` to zero, handing its space to `neighbour`. Expanding again
|
|
6192
|
+
* restores the panel to its `min`.
|
|
6193
|
+
*/
|
|
3581
6194
|
private _collapse;
|
|
6195
|
+
/**
|
|
6196
|
+
* Expands a collapsed `panel` back to its restore size, taking the space from
|
|
6197
|
+
* `neighbour`. Bounded by whatever the neighbour can actually give up.
|
|
6198
|
+
*/
|
|
3582
6199
|
private _expand;
|
|
6200
|
+
/**
|
|
6201
|
+
* Updates a panel's `collapsed` model from an interactive resize. Pre-syncing
|
|
6202
|
+
* the flag keeps `_syncCollapsedPanels` from re-running its own size handling.
|
|
6203
|
+
*/
|
|
3583
6204
|
private _setCollapsedState;
|
|
3584
6205
|
private _initializeSizes;
|
|
3585
6206
|
private _syncCollapsedPanels;
|
|
@@ -3678,6 +6299,128 @@ declare class Stepper {
|
|
|
3678
6299
|
|
|
3679
6300
|
declare const STEPPER_CONFIG: InjectionToken<StepperConfig>;
|
|
3680
6301
|
|
|
6302
|
+
/**
|
|
6303
|
+
* Swipeable row: dragging the projected content sideways reveals a colored
|
|
6304
|
+
* action panel behind it, and releasing past the commit threshold — or
|
|
6305
|
+
* flicking — fires that side's action. Releasing earlier snaps the row back.
|
|
6306
|
+
*
|
|
6307
|
+
* A side takes part only when its template is projected: `#startAction` is
|
|
6308
|
+
* revealed by dragging the content toward inline-end, `#endAction` by dragging
|
|
6309
|
+
* toward inline-start; both resolve against the layout direction. Projected
|
|
6310
|
+
* content is the consumer's to style — the panel only centres it. Whether
|
|
6311
|
+
* releasing would commit is exposed twice for the content to react to: the
|
|
6312
|
+
* `tls-swipe-actions__panel--armed` class on the revealed panel (for CSS
|
|
6313
|
+
* choreography — an icon pop, a label reveal) and the `armedChanged` output
|
|
6314
|
+
* (for behaviour — a haptic tick). The host carries
|
|
6315
|
+
* `tls-swipe-actions--dragging` for as long as a gesture holds the row, for
|
|
6316
|
+
* whatever around the row has to give way while it is pulled aside — a line
|
|
6317
|
+
* drawn through the row that would otherwise break where it leaves. Actions
|
|
6318
|
+
* committed by swipe must never be the only path to the behaviour — the
|
|
6319
|
+
* gesture is invisible and unavailable to keyboards and assistive tech, so a
|
|
6320
|
+
* visible control (a button, a menu item) has to offer the same actions.
|
|
6321
|
+
*
|
|
6322
|
+
* Vertical scrolling stays native: the gesture claims only the horizontal
|
|
6323
|
+
* axis, waits out the pan slop, and yields to any scrollable ancestor with
|
|
6324
|
+
* room to travel (see {@link PanDirective}).
|
|
6325
|
+
*/
|
|
6326
|
+
declare class SwipeActions {
|
|
6327
|
+
private readonly _config;
|
|
6328
|
+
private readonly _directionality;
|
|
6329
|
+
private readonly contentElement;
|
|
6330
|
+
private readonly startPanel;
|
|
6331
|
+
private readonly endPanel;
|
|
6332
|
+
protected readonly startActionTemplate: Signal<TemplateRef<unknown> | undefined>;
|
|
6333
|
+
protected readonly endActionTemplate: Signal<TemplateRef<unknown> | undefined>;
|
|
6334
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
6335
|
+
/** Fill of the panel behind the inline-start edge. */
|
|
6336
|
+
readonly startColor: InputSignal<color>;
|
|
6337
|
+
/** Fill of the panel behind the inline-end edge. */
|
|
6338
|
+
readonly endColor: InputSignal<color>;
|
|
6339
|
+
readonly revealWidth: InputSignal<number>;
|
|
6340
|
+
readonly overdrag: InputSignal<number>;
|
|
6341
|
+
readonly commitThreshold: InputSignal<number>;
|
|
6342
|
+
readonly flickVelocity: InputSignal<number>;
|
|
6343
|
+
readonly pointerTypes: InputSignal<readonly string[] | null>;
|
|
6344
|
+
/** The start-side action was committed (content dragged toward inline-end). */
|
|
6345
|
+
readonly startCommitted: OutputEmitterRef<void>;
|
|
6346
|
+
/** The end-side action was committed (content dragged toward inline-start). */
|
|
6347
|
+
readonly endCommitted: OutputEmitterRef<void>;
|
|
6348
|
+
/**
|
|
6349
|
+
* Whether releasing right now would commit the revealed action. Fires on
|
|
6350
|
+
* every change of that answer during a drag — the hook for a haptic tick on
|
|
6351
|
+
* arming — and always ends `false` when the gesture ends.
|
|
6352
|
+
*/
|
|
6353
|
+
readonly armedChanged: OutputEmitterRef<boolean>;
|
|
6354
|
+
protected readonly dragging: WritableSignal<boolean>;
|
|
6355
|
+
/**
|
|
6356
|
+
* Travel already spent crossing the pan slop when the gesture locked. Deltas
|
|
6357
|
+
* are rebased against it so the reveal grows from zero at the lock point
|
|
6358
|
+
* instead of jumping by the slop the moment the first move lands.
|
|
6359
|
+
*/
|
|
6360
|
+
private _lockDelta;
|
|
6361
|
+
/**
|
|
6362
|
+
* Whether the current reveal has passed the commit threshold. Written from
|
|
6363
|
+
* the move stream, so the DOM class rides along directly (see _applyOffset).
|
|
6364
|
+
*/
|
|
6365
|
+
private _armed;
|
|
6366
|
+
protected readonly panEnabled: Signal<boolean>;
|
|
6367
|
+
protected onPanStart(event: PanEvent): void;
|
|
6368
|
+
/**
|
|
6369
|
+
* Fired outside the Angular zone at pointer rate (see {@link PanDirective}),
|
|
6370
|
+
* so the reveal is written straight to the DOM rather than through bindings.
|
|
6371
|
+
*/
|
|
6372
|
+
protected onPanMove(event: PanEvent): void;
|
|
6373
|
+
protected onPanEnd(event: PanEvent): void;
|
|
6374
|
+
protected onPanCancel(): void;
|
|
6375
|
+
private _commits;
|
|
6376
|
+
/** Snaps the row shut; leaving the dragging state re-enables the transitions. */
|
|
6377
|
+
private _settle;
|
|
6378
|
+
/** Maps a physical horizontal delta onto the logical axis: `1` in LTR, `-1` in RTL. */
|
|
6379
|
+
private _logicalFactor;
|
|
6380
|
+
/**
|
|
6381
|
+
* A side with no action projected refuses to open at all. Travel past the
|
|
6382
|
+
* full reveal rubber-bands: the overshoot is damped along `L·o / (o + L)`,
|
|
6383
|
+
* whose slope is exactly 1 at the boundary — the hand-off from linear
|
|
6384
|
+
* tracking into resistance has no corner to feel — and which saturates at
|
|
6385
|
+
* the `overdrag` allowance instead of following the finger.
|
|
6386
|
+
*/
|
|
6387
|
+
private _clampOffset;
|
|
6388
|
+
private _damp;
|
|
6389
|
+
private _applyOffset;
|
|
6390
|
+
/**
|
|
6391
|
+
* Tracks whether releasing at this reveal would commit, mirroring the answer
|
|
6392
|
+
* onto the panels as a class and onto `armedChanged`. Both writes bypass
|
|
6393
|
+
* bindings: this runs on the move stream, outside the Angular zone.
|
|
6394
|
+
*/
|
|
6395
|
+
private _updateArmed;
|
|
6396
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwipeActions, never>;
|
|
6397
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwipeActions, "tls-swipe-actions", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "startColor": { "alias": "startColor"; "required": false; "isSignal": true; }; "endColor": { "alias": "endColor"; "required": false; "isSignal": true; }; "revealWidth": { "alias": "revealWidth"; "required": false; "isSignal": true; }; "overdrag": { "alias": "overdrag"; "required": false; "isSignal": true; }; "commitThreshold": { "alias": "commitThreshold"; "required": false; "isSignal": true; }; "flickVelocity": { "alias": "flickVelocity"; "required": false; "isSignal": true; }; "pointerTypes": { "alias": "pointerTypes"; "required": false; "isSignal": true; }; }, { "startCommitted": "startCommitted"; "endCommitted": "endCommitted"; "armedChanged": "armedChanged"; }, ["startActionTemplate", "endActionTemplate"], ["*"], true, never>;
|
|
6398
|
+
}
|
|
6399
|
+
|
|
6400
|
+
interface SwipeActionsConfig {
|
|
6401
|
+
/** Width in px of a fully revealed action panel. */
|
|
6402
|
+
revealWidth: number;
|
|
6403
|
+
/**
|
|
6404
|
+
* Extra travel in px the reveal may rubber-band past its full width. Pulling
|
|
6405
|
+
* beyond the reveal meets growing resistance and saturates at this
|
|
6406
|
+
* allowance; `0` stops the reveal dead at its width.
|
|
6407
|
+
*/
|
|
6408
|
+
overdrag: number;
|
|
6409
|
+
/** Travel in px past which releasing the pointer commits the action. */
|
|
6410
|
+
commitThreshold: number;
|
|
6411
|
+
/** Velocity in px/ms past which a flick commits regardless of travel. */
|
|
6412
|
+
flickVelocity: number;
|
|
6413
|
+
/**
|
|
6414
|
+
* Pointer types allowed to drive the gesture. Swiping is a touch idiom;
|
|
6415
|
+
* mouse users have the visible controls, and a mouse drag over a row
|
|
6416
|
+
* competes with text selection.
|
|
6417
|
+
*/
|
|
6418
|
+
pointerTypes: readonly string[];
|
|
6419
|
+
}
|
|
6420
|
+
declare const DEFAULT_SWIPE_ACTIONS_CONFIG: SwipeActionsConfig;
|
|
6421
|
+
|
|
6422
|
+
declare const SWIPE_ACTIONS_CONFIG: InjectionToken<SwipeActionsConfig>;
|
|
6423
|
+
|
|
3681
6424
|
type tabsVariant = 'flat' | 'outlined' | 'segmented';
|
|
3682
6425
|
type tabsOrientation = orientation;
|
|
3683
6426
|
type tabsHeaderPosition = 'start' | 'end';
|
|
@@ -3700,6 +6443,11 @@ type tabsHeaderAlign = 'stretch' | 'start' | 'center' | 'end';
|
|
|
3700
6443
|
type tabsItemsAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
3701
6444
|
type tabValue = string;
|
|
3702
6445
|
|
|
6446
|
+
/**
|
|
6447
|
+
* A declarative content holder: the host element itself is never rendered. `tls-tabs`
|
|
6448
|
+
* reads the captured content/header templates and renders them inside its own
|
|
6449
|
+
* `ngTabPanel`/`ngTabContent` structure, which enables lazy panel rendering.
|
|
6450
|
+
*/
|
|
3703
6451
|
declare class Tab {
|
|
3704
6452
|
readonly value: InputSignal<tabValue>;
|
|
3705
6453
|
readonly label: InputSignal<string>;
|
|
@@ -3722,7 +6470,14 @@ declare class Tabs {
|
|
|
3722
6470
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
3723
6471
|
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
3724
6472
|
protected tabs: Signal<readonly Tab[]>;
|
|
6473
|
+
/** Each tab's header control, in the order of the projected tabs. */
|
|
6474
|
+
private readonly _tabControls;
|
|
3725
6475
|
protected hostClasses: Signal<string[]>;
|
|
6476
|
+
/**
|
|
6477
|
+
* The header strip uses the shared tab-header block (also rendered by
|
|
6478
|
+
* `tls-tab-nav`), so its variant/orientation/alignment modifiers live on the
|
|
6479
|
+
* strip element itself rather than on the tabs container.
|
|
6480
|
+
*/
|
|
3726
6481
|
protected headerClasses: Signal<string[]>;
|
|
3727
6482
|
constructor();
|
|
3728
6483
|
/**
|
|
@@ -3733,6 +6488,15 @@ declare class Tabs {
|
|
|
3733
6488
|
* they have.
|
|
3734
6489
|
*/
|
|
3735
6490
|
findTabValue(text: string): tabValue | undefined;
|
|
6491
|
+
/**
|
|
6492
|
+
* Moves keyboard focus to the header control of the tab holding `value`.
|
|
6493
|
+
* Meant for a control inside a panel that switches to another tab: the
|
|
6494
|
+
* switch hides the panel and, with it, the element that had focus, which
|
|
6495
|
+
* would otherwise fall back to the document. Takes the value rather than
|
|
6496
|
+
* reading the selection, so a caller can focus the tab it has just selected
|
|
6497
|
+
* before the selection reaches this component.
|
|
6498
|
+
*/
|
|
6499
|
+
focusTab(value: tabValue): void;
|
|
3736
6500
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tabs, never>;
|
|
3737
6501
|
static ɵcmp: i0.ɵɵComponentDeclaration<Tabs, "tls-tabs", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "headerAlign": { "alias": "headerAlign"; "required": false; "isSignal": true; }; "itemsAlign": { "alias": "itemsAlign"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["tabs"], never, true, [{ directive: typeof i1$1.Tabs; inputs: {}; outputs: {}; }]>;
|
|
3738
6502
|
}
|
|
@@ -3764,6 +6528,10 @@ declare const TABS_QUERY_SYNC_CONFIG: InjectionToken<TabsQuerySyncConfig>;
|
|
|
3764
6528
|
declare class TabsQuerySyncDirective extends QuerySyncDirective {
|
|
3765
6529
|
private readonly _tabs;
|
|
3766
6530
|
private readonly _config;
|
|
6531
|
+
/**
|
|
6532
|
+
* The selector doubles as the input, so a valueless `tlsTabsQuerySync` binds `''`.
|
|
6533
|
+
* Coerce an empty value back to the configured default param key.
|
|
6534
|
+
*/
|
|
3767
6535
|
readonly tlsTabsQuerySync: i0.InputSignalWithTransform<string, string>;
|
|
3768
6536
|
/** Param value captured once at startup, pending until a matching tab resolves. */
|
|
3769
6537
|
private _pendingRestore;
|
|
@@ -3907,6 +6675,13 @@ declare class Table<TRow = TableData> {
|
|
|
3907
6675
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
3908
6676
|
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
3909
6677
|
protected readonly tableColumns: Signal<readonly TableColumn[]>;
|
|
6678
|
+
/**
|
|
6679
|
+
* Merges columnDefinitions input and tls-table-column content children into a single list.
|
|
6680
|
+
* Input drives order; content children override matching keys and append unmatched columns at the end.
|
|
6681
|
+
* Map keyed by content column key → O(1) lookup when applying overrides to each input column.
|
|
6682
|
+
* Set of input keys → O(1) membership check when finding content columns absent from input (extras).
|
|
6683
|
+
* extras: content columns with no matching input entry, appended after the merged input columns.
|
|
6684
|
+
*/
|
|
3910
6685
|
protected readonly effectiveColumnDefinitions: Signal<TableColumnDefinition[]>;
|
|
3911
6686
|
protected readonly columns: Signal<string[]>;
|
|
3912
6687
|
protected readonly resolvedTrackBy: Signal<TrackByFunction<TRow>>;
|
|
@@ -3992,8 +6767,15 @@ declare class Toast {
|
|
|
3992
6767
|
readonly actionTriggered: i0.OutputEmitterRef<void>;
|
|
3993
6768
|
protected readonly hostClasses: i0.Signal<string[]>;
|
|
3994
6769
|
protected readonly icon: i0.Signal<systemIcon>;
|
|
6770
|
+
/**
|
|
6771
|
+
* The countdown bar only makes sense for a toast that actually auto-dismisses.
|
|
6772
|
+
*/
|
|
3995
6773
|
protected readonly progressVisible: i0.Signal<boolean>;
|
|
6774
|
+
/**
|
|
6775
|
+
* CSS animation duration for the countdown bar, matching the auto-dismiss delay.
|
|
6776
|
+
*/
|
|
3996
6777
|
protected readonly progressDuration: i0.Signal<string>;
|
|
6778
|
+
/** Urgent severities announce assertively; the rest announce politely. */
|
|
3997
6779
|
protected readonly role: i0.Signal<"alert" | "status">;
|
|
3998
6780
|
protected onAction(): void;
|
|
3999
6781
|
protected onClose(): void;
|
|
@@ -4069,58 +6851,15 @@ declare class ToastService {
|
|
|
4069
6851
|
resume(): void;
|
|
4070
6852
|
private _startTimer;
|
|
4071
6853
|
private _clearTimer;
|
|
6854
|
+
/**
|
|
6855
|
+
* Drops timers whose toast was trimmed by the `max` cap without an explicit dismiss.
|
|
6856
|
+
*/
|
|
4072
6857
|
private _pruneOrphanTimers;
|
|
4073
6858
|
private _ensureOutlet;
|
|
4074
6859
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
4075
6860
|
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
4076
6861
|
}
|
|
4077
6862
|
|
|
4078
|
-
interface ToastLayout {
|
|
4079
|
-
transform: string;
|
|
4080
|
-
/** Depth fade applied to the toast surface; deep toasts in the collapsed pile fade out. */
|
|
4081
|
-
depthOpacity: string;
|
|
4082
|
-
zIndex: string;
|
|
4083
|
-
}
|
|
4084
|
-
/**
|
|
4085
|
-
* Single instance rendered into a global CDK overlay by {@link ToastService}. Lays
|
|
4086
|
-
* every live toast out as one anchored stack: collapsed into a hover-to-expand
|
|
4087
|
-
* pile, or an always-open list, per the resolved config. Each toast's host is the
|
|
4088
|
-
* stacking layer, positioned here via transform / scale / z-index computed from
|
|
4089
|
-
* the toasts' measured heights; hovering or focusing the region expands the pile
|
|
4090
|
-
* and pauses the auto-dismiss timers.
|
|
4091
|
-
*/
|
|
4092
|
-
declare class ToastOutlet {
|
|
4093
|
-
private readonly _service;
|
|
4094
|
-
private readonly _destroyRef;
|
|
4095
|
-
private readonly _elementRef;
|
|
4096
|
-
protected readonly toasts: i0.Signal<ToastState[]>;
|
|
4097
|
-
private readonly _pointerInside;
|
|
4098
|
-
private readonly _focusInside;
|
|
4099
|
-
private readonly _heights;
|
|
4100
|
-
private readonly _toastElements;
|
|
4101
|
-
private readonly _resizeObserver;
|
|
4102
|
-
protected readonly position: i0.Signal<_thalassic_ui.toastPosition>;
|
|
4103
|
-
protected readonly regionLabel: i0.Signal<string>;
|
|
4104
|
-
protected readonly dismissLabel: i0.Signal<string>;
|
|
4105
|
-
protected readonly expanded: i0.Signal<boolean>;
|
|
4106
|
-
protected readonly paused: i0.Signal<boolean>;
|
|
4107
|
-
protected readonly regionClasses: i0.Signal<string[]>;
|
|
4108
|
-
protected readonly regionHeight: i0.Signal<number>;
|
|
4109
|
-
protected readonly layouts: i0.Signal<ToastLayout[]>;
|
|
4110
|
-
private readonly _interacting;
|
|
4111
|
-
constructor();
|
|
4112
|
-
protected onDismiss(id: number): void;
|
|
4113
|
-
protected onAction(toast: ToastState): void;
|
|
4114
|
-
protected onPointerEnter(): void;
|
|
4115
|
-
protected onPointerLeave(event: PointerEvent): void;
|
|
4116
|
-
protected onDocumentPointerDown(event: PointerEvent): void;
|
|
4117
|
-
protected onFocusIn(): void;
|
|
4118
|
-
protected onFocusOut(): void;
|
|
4119
|
-
private _measure;
|
|
4120
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastOutlet, never>;
|
|
4121
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToastOutlet, "tls-toast-outlet", never, {}, {}, never, never, true, never>;
|
|
4122
|
-
}
|
|
4123
|
-
|
|
4124
6863
|
interface ToastConfig {
|
|
4125
6864
|
/** Corner of the viewport toasts are anchored to. */
|
|
4126
6865
|
position: toastPosition;
|
|
@@ -4287,8 +7026,8 @@ declare abstract class TooltipTrigger implements TooltipOwner, OnDestroy {
|
|
|
4287
7026
|
private _describedById;
|
|
4288
7027
|
/** Element that description was put on, which is not always the anchor. */
|
|
4289
7028
|
private _describedElement;
|
|
4290
|
-
/** Teardown of the
|
|
4291
|
-
private
|
|
7029
|
+
/** Teardown of the listeners that only run while a tooltip is visible. */
|
|
7030
|
+
private _visibleListeners;
|
|
4292
7031
|
protected readonly _positions: Signal<ConnectedPosition[]>;
|
|
4293
7032
|
constructor();
|
|
4294
7033
|
/** Anchor of the visible tooltip, for a subclass deciding whether an event concerns it. */
|
|
@@ -4301,6 +7040,17 @@ declare abstract class TooltipTrigger implements TooltipOwner, OnDestroy {
|
|
|
4301
7040
|
protected _hide(source: tooltipSource): void;
|
|
4302
7041
|
/** Drops every reason at once — a dismissal, rather than the end of one interaction. */
|
|
4303
7042
|
protected _hideAll(): void;
|
|
7043
|
+
/**
|
|
7044
|
+
* Timestamp of the latest pointer interaction (tap or click), for telling a
|
|
7045
|
+
* pointer-granted focus apart from a keyboard-granted one.
|
|
7046
|
+
*/
|
|
7047
|
+
private _lastPointerAt;
|
|
7048
|
+
/** Records that a pointer interaction just happened; `_followsPointer` reads it. */
|
|
7049
|
+
protected _notePointer(): void;
|
|
7050
|
+
/** Whether a focus arriving now was handed over by a pointer rather than a keyboard. */
|
|
7051
|
+
protected _followsPointer(): boolean;
|
|
7052
|
+
/** Whether the element is, or wraps, a control a tap activates. */
|
|
7053
|
+
protected _isInteractive(element: HTMLElement): boolean;
|
|
4304
7054
|
/** Whether a tap is what is currently holding the tooltip on `anchor`, which another tap ends. */
|
|
4305
7055
|
protected _isTapped(anchor: HTMLElement): boolean;
|
|
4306
7056
|
/** Re-states the content of every live request, so an input changing reaches a visible tooltip. */
|
|
@@ -4320,8 +7070,9 @@ declare abstract class TooltipTrigger implements TooltipOwner, OnDestroy {
|
|
|
4320
7070
|
private _undescribe;
|
|
4321
7071
|
private _latestRequest;
|
|
4322
7072
|
/**
|
|
4323
|
-
* Binds the
|
|
4324
|
-
* triggers carries no document listeners for the tooltips it is not showing
|
|
7073
|
+
* Binds the listeners that belong to a visible tooltip and nothing else, so a page full of
|
|
7074
|
+
* triggers carries no document listeners for the tooltips it is not showing, and a pointer
|
|
7075
|
+
* moving over a trigger schedules no change detection while its tooltip is down.
|
|
4325
7076
|
*/
|
|
4326
7077
|
private _listenWhileVisible;
|
|
4327
7078
|
private _unlisten;
|
|
@@ -4356,7 +7107,7 @@ declare class TooltipDelegateDirective extends TooltipTrigger {
|
|
|
4356
7107
|
readonly contentAttribute: InputSignalWithTransform<string, string | undefined>;
|
|
4357
7108
|
private readonly _selector;
|
|
4358
7109
|
protected onPointerOver(event: PointerEvent): void;
|
|
4359
|
-
protected
|
|
7110
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
4360
7111
|
protected onPointerOut(event: PointerEvent): void;
|
|
4361
7112
|
protected onFocusIn(event: FocusEvent): void;
|
|
4362
7113
|
protected onFocusOut(event: FocusEvent): void;
|
|
@@ -4367,20 +7118,28 @@ declare class TooltipDelegateDirective extends TooltipTrigger {
|
|
|
4367
7118
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDelegateDirective, "[tlsTooltipDelegate]", never, { "contentAttribute": { "alias": "tlsTooltipDelegate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4368
7119
|
}
|
|
4369
7120
|
|
|
7121
|
+
/**
|
|
7122
|
+
* How long after a touch tap the focus it hands over is still recognised as the
|
|
7123
|
+
* tap's own, and not a keyboard's. Generous enough to cover a slow tap-to-focus
|
|
7124
|
+
* sequence, short enough that a keyboard user following a tap is served.
|
|
7125
|
+
*/
|
|
7126
|
+
declare const TOUCH_HANDOVER_WINDOW_MS = 700;
|
|
4370
7127
|
/** Attribute a delegated tooltip reads its content from, and matches its items by. */
|
|
4371
7128
|
declare const DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE = "data-tooltip";
|
|
4372
7129
|
|
|
4373
7130
|
/**
|
|
4374
|
-
* Attaches a tooltip to the host element. Shows on hover and on focus landing anywhere inside
|
|
7131
|
+
* Attaches a tooltip to the host element. Shows on hover and on keyboard focus landing anywhere inside
|
|
4375
7132
|
* the host — a host that only wraps its real control is served as well as one that is the
|
|
4376
|
-
* control —
|
|
7133
|
+
* control — and dismisses on Escape without moving the pointer or focus
|
|
4377
7134
|
* (WCAG 1.4.13). While visible the tooltip is linked with `aria-describedby` to the element it
|
|
4378
7135
|
* describes: the host, or the control inside it that holds focus, since a description is only
|
|
4379
7136
|
* announced on the element that has it. The link joins any description that element already
|
|
4380
7137
|
* carries rather than replacing it, and leaves that one behind when the tooltip hides.
|
|
4381
7138
|
*
|
|
4382
7139
|
* Interaction is driven by pointer events, branching on `pointerType`: mouse
|
|
4383
|
-
* and pen get hover semantics
|
|
7140
|
+
* and pen get hover semantics. Touch gets tap-to-toggle on a non-interactive
|
|
7141
|
+
* host only — on an interactive one the tap already carries the control's own
|
|
7142
|
+
* action, so the tooltip stays out of its way entirely. A single stream avoids
|
|
4384
7143
|
* the synthesized mouse events browsers replay after a tap.
|
|
4385
7144
|
*
|
|
4386
7145
|
* Content is live: a tooltip already on screen follows the input it was opened with.
|
|
@@ -4394,7 +7153,7 @@ declare class TooltipDirective extends TooltipTrigger {
|
|
|
4394
7153
|
readonly data: InputSignal<unknown>;
|
|
4395
7154
|
constructor();
|
|
4396
7155
|
protected onPointerEnter(event: PointerEvent): void;
|
|
4397
|
-
protected
|
|
7156
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
4398
7157
|
protected onPointerLeave(event: PointerEvent): void;
|
|
4399
7158
|
protected onFocusIn(event: FocusEvent): void;
|
|
4400
7159
|
protected onFocusOut(event: FocusEvent): void;
|
|
@@ -4601,9 +7360,12 @@ interface tlsUiConfigProvider {
|
|
|
4601
7360
|
accessibility?: Partial<AccessibilityConfig>;
|
|
4602
7361
|
/** Cross-cutting locale used by every component that formats dates (not tied to a single one). */
|
|
4603
7362
|
locale?: Partial<LocaleConfig>;
|
|
7363
|
+
/** Cross-cutting press-ink policy applied wherever a ripple is applied (not tied to a single component). */
|
|
7364
|
+
ripple?: Partial<RippleConfig>;
|
|
4604
7365
|
/** Cross-cutting defaults inherited by every form control (not tied to a single component). */
|
|
4605
7366
|
formControl?: Partial<FormControlConfig>;
|
|
4606
7367
|
components?: {
|
|
7368
|
+
accordion?: Partial<AccordionConfig>;
|
|
4607
7369
|
activityHeatmap?: Partial<Omit<ActivityHeatmapConfig, 'labels'>> & {
|
|
4608
7370
|
labels?: Partial<ActivityHeatmapLabels>;
|
|
4609
7371
|
};
|
|
@@ -4615,11 +7377,23 @@ interface tlsUiConfigProvider {
|
|
|
4615
7377
|
views?: Partial<Record<calendarView, string>>;
|
|
4616
7378
|
};
|
|
4617
7379
|
};
|
|
7380
|
+
carousel?: Partial<Omit<CarouselConfig, 'labels'>> & {
|
|
7381
|
+
labels?: Partial<CarouselLabels>;
|
|
7382
|
+
};
|
|
4618
7383
|
checkbox?: Partial<CheckboxConfig>;
|
|
4619
7384
|
chip?: Partial<ChipConfig>;
|
|
4620
7385
|
chipControl?: Partial<ChipControlConfig>;
|
|
4621
7386
|
chipGroup?: Partial<ChipGroupConfig>;
|
|
4622
7387
|
chipInput?: Partial<ChipInputConfig>;
|
|
7388
|
+
colorInput?: Partial<Omit<ColorInputConfig, 'labels'>> & {
|
|
7389
|
+
labels?: Partial<ColorInputLabels>;
|
|
7390
|
+
};
|
|
7391
|
+
colorPicker?: Partial<Omit<ColorPickerConfig, 'labels'>> & {
|
|
7392
|
+
labels?: Partial<ColorPickerLabels>;
|
|
7393
|
+
};
|
|
7394
|
+
colorRange?: Partial<Omit<ColorRangeConfig, 'labels'>> & {
|
|
7395
|
+
labels?: Partial<ColorRangeLabels>;
|
|
7396
|
+
};
|
|
4623
7397
|
dateTimePicker?: Partial<DateTimePickerConfig>;
|
|
4624
7398
|
dialog?: Partial<DialogConfig>;
|
|
4625
7399
|
divider?: Partial<DividerConfig>;
|
|
@@ -4629,6 +7403,9 @@ interface tlsUiConfigProvider {
|
|
|
4629
7403
|
highlight?: Partial<HighlightConfig>;
|
|
4630
7404
|
icon?: Partial<IconConfig>;
|
|
4631
7405
|
imageCompare?: Partial<ImageCompareConfig>;
|
|
7406
|
+
imagePreview?: Partial<Omit<ImagePreviewConfig, 'labels'>> & {
|
|
7407
|
+
labels?: Partial<ImagePreviewLabels>;
|
|
7408
|
+
};
|
|
4632
7409
|
infiniteScroll?: Partial<Omit<InfiniteScrollConfig, 'labels'>> & {
|
|
4633
7410
|
labels?: Partial<InfiniteScrollLabels>;
|
|
4634
7411
|
};
|
|
@@ -4719,6 +7496,13 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
|
|
|
4719
7496
|
readonly optionLabel: InputSignal<keyof T | undefined>;
|
|
4720
7497
|
readonly optionValue: InputSignal<keyof T | undefined>;
|
|
4721
7498
|
readonly optionDisabled: InputSignal<keyof T | undefined>;
|
|
7499
|
+
/**
|
|
7500
|
+
* Key of the option property naming the group it is listed under. The panel lists each group
|
|
7501
|
+
* under its own heading, as a `role="group"` named by that heading, in the order the groups
|
|
7502
|
+
* first appear; options naming no group are listed bare. A virtualized panel keeps the grouped
|
|
7503
|
+
* order but draws no headings, as its rows all share one fixed height.
|
|
7504
|
+
*/
|
|
7505
|
+
readonly optionGroup: InputSignal<keyof T | undefined>;
|
|
4722
7506
|
readonly tabindex: InputSignal<string | number>;
|
|
4723
7507
|
abstract readonly placeholder: InputSignal<string>;
|
|
4724
7508
|
abstract readonly size: InputSignal<controlSize>;
|
|
@@ -4731,11 +7515,17 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
|
|
|
4731
7515
|
protected readonly isOpen: Signal<boolean>;
|
|
4732
7516
|
protected readonly normalizedOptions: Signal<Option<V>[]>;
|
|
4733
7517
|
/**
|
|
4734
|
-
* Options actually shown in the panel and traversed by keyboard navigation
|
|
4735
|
-
*
|
|
4736
|
-
*
|
|
7518
|
+
* Options actually shown in the panel and traversed by keyboard navigation, in the order they
|
|
7519
|
+
* are listed — each group's options gathered together. Defaults to the full normalized list; a
|
|
7520
|
+
* filtering control (an editable combobox) narrows it via {@link filterVisibleOptions}.
|
|
7521
|
+
* `activeIndex` always indexes into this list, never the raw one.
|
|
4737
7522
|
*/
|
|
4738
7523
|
protected readonly visibleOptions: Signal<Option<V>[]>;
|
|
7524
|
+
/**
|
|
7525
|
+
* The visible options split into the groups the panel lists them under. A group the filter has
|
|
7526
|
+
* emptied is not listed at all, so no heading ever stands over nothing.
|
|
7527
|
+
*/
|
|
7528
|
+
protected readonly optionGroups: Signal<OptionGroup<V>[]>;
|
|
4739
7529
|
/**
|
|
4740
7530
|
* Index of the option keyboard navigation rests on, within `visibleOptions`; −1
|
|
4741
7531
|
* means none. When the visible list changes under it (the options swapped while the
|
|
@@ -4782,18 +7572,28 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
|
|
|
4782
7572
|
protected filterVisibleOptions(options: Option<V>[]): Option<V>[];
|
|
4783
7573
|
/** Hook invoked after the panel has closed, once the trigger has regained focus. */
|
|
4784
7574
|
protected onClosed(): void;
|
|
7575
|
+
/**
|
|
7576
|
+
* Focus lands on the trigger and the panel opens with it: the value of an option-list
|
|
7577
|
+
* control lives in the list, so handing the control over without showing the list
|
|
7578
|
+
* would stop one step short of what was asked for.
|
|
7579
|
+
*/
|
|
7580
|
+
activate(): void;
|
|
7581
|
+
/** The trigger is the control's single focusable element; the panel is elsewhere. */
|
|
7582
|
+
protected focusTarget(): HTMLElement | null;
|
|
4785
7583
|
protected open(): void;
|
|
4786
7584
|
protected close(): void;
|
|
4787
7585
|
protected toggle(): void;
|
|
4788
7586
|
protected onOptionHover(event: PointerEvent, index: number, disabled?: boolean): void;
|
|
4789
7587
|
protected onKeydown(event: KeyboardEvent): void;
|
|
4790
7588
|
protected optionId(index: number): string;
|
|
7589
|
+
/** Id of the heading that names the group at `groupIndex`. */
|
|
7590
|
+
protected groupLabelId(groupIndex: number): string;
|
|
4791
7591
|
/** Context handed to the consumer's option template for the option at `index`. */
|
|
4792
7592
|
protected optionContext(option: Option<V>, index: number): selectTemplateContext<T, V>;
|
|
4793
7593
|
protected moveActive(direction: 1 | -1): void;
|
|
4794
7594
|
private moveActiveToEdge;
|
|
4795
7595
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSelect<any, any, any>, never>;
|
|
4796
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any, any>, never, never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, ["optionTemplate"], never, true, never>;
|
|
7596
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any, any>, never, never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; "isSignal": true; }; "optionGroup": { "alias": "optionGroup"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, ["optionTemplate"], never, true, never>;
|
|
4797
7597
|
}
|
|
4798
7598
|
|
|
4799
7599
|
declare abstract class QuerySyncDirective {
|
|
@@ -4807,5 +7607,5 @@ declare abstract class QuerySyncDirective {
|
|
|
4807
7607
|
|
|
4808
7608
|
declare const provideThalassicUIConfig: (config?: tlsUiConfigProvider) => EnvironmentProviders;
|
|
4809
7609
|
|
|
4810
|
-
export { ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, AUTOCOMPLETE_CONFIG, ActivityHeatmap, Alert, AlertIcon, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ACTIVITY_HEATMAP_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_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_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_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SLIDER_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEPPER_LABELS, DEFAULT_STEP_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, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogRef, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileDropTargetDirective, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, INFINITE_SCROLL_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, 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, PROGRESS_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PinInput, Popover, Progress, RADIO_BUTTON_CONFIG, RATING_CONFIG, RadioButton, Rating, SELECT_CONFIG, SKELETON_CONFIG, SLIDER_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Slider, Splitter, SplitterPanel, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast,
|
|
4811
|
-
export type { ActivityHeatmapConfig, ActivityHeatmapDay, ActivityHeatmapEntry, ActivityHeatmapLabels, ActivityHeatmapMonth, ActivityHeatmapRow, ActivityHeatmapTotal, AlertConfig, AutocompleteConfig, BadgeConfig, BreadcrumbItem, BreadcrumbItemContext, BreadcrumbsConfig, ButtonConfig, CalendarConfig, CalendarDayContext, CalendarEvent, CalendarEventContext, CalendarLabels, CalendarRange, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOpenConfig, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, FormItemLabelContext, HighlightConfig, HighlightSegment, IconConfig, ImageCompareConfig, InfiniteScrollConfig, InfiniteScrollLabels, InputConfig, InputNumberConfig, KbdConfig, LoaderConfig, MarkConfig, MaskResult, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MenuRenderBlock, MenuRenderEntry, MenuRenderGroup, MenuRenderSingle, MultiSelectConfig, OdometerConfig, OdometerToken, OverlayArrowPosition, PaginationConfig, PaginationLabels, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, ProgressConfig, RadioButtonConfig, RatingConfig, RatingLabels, RatingStarContext, SelectConfig, SkeletonConfig, SliderConfig, SplitterConfig, StepConfig, StepperConfig, StepperLabels, StepperSelectEvent, SwitchConfig, TabNavConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToastConfig, ToastOptions, ToastRef, ToastState, ToggleButtonConfig, ToggleGroupConfig, TooltipConfig, TooltipOwner, TooltipRequest, TrackBy, VirtualScrollConfig, VirtualScrollContext, acceptInput, alertColor, autocompleteFilterMode, badgeColor, badgePosition, badgeVariant, buttonColor, buttonType, buttonVariant, calendarCompact, calendarView, chipColor, chipSize, chipTemplateContext, chipVariant, color, confirmActionsAlign, confirmButton, confirmSize, controlSize, dateTimePickerMode, dialogFooterAlign, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant,
|
|
7610
|
+
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, 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_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 };
|
|
7611
|
+
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, 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 };
|