@thalassic/ui 22.20.0 → 22.21.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-media.mjs +1194 -0
- package/fesm2022/thalassic-ui-media.mjs.map +1 -0
- package/fesm2022/thalassic-ui.mjs +7514 -2411
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +5 -1
- package/types/thalassic-ui-media.d.ts +300 -0
- package/types/thalassic-ui.d.ts +2065 -116
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
|
/**
|
|
@@ -85,6 +91,25 @@ declare abstract class FormControl<TValue = unknown> implements FormUiControl<TV
|
|
|
85
91
|
protected CLASS_NAME: string;
|
|
86
92
|
protected notInteractive: Signal<boolean>;
|
|
87
93
|
protected controlClasses: Signal<string[]>;
|
|
94
|
+
/**
|
|
95
|
+
* Moves focus to the control. Focus lands on the element that actually takes it — the
|
|
96
|
+
* native input a wrapper renders, or a composite's trigger — never on the host, which
|
|
97
|
+
* is only a wrapper.
|
|
98
|
+
*/
|
|
99
|
+
focus(): void;
|
|
100
|
+
/**
|
|
101
|
+
* Hands the control over as though the user had reached for it directly. Focus alone
|
|
102
|
+
* for a control whose value is edited in place; a control that keeps its value behind
|
|
103
|
+
* a panel — a select, a picker — also opens that panel, since focus on its own leaves
|
|
104
|
+
* such a control looking untouched and the user still a click away from the value.
|
|
105
|
+
*/
|
|
106
|
+
activate(): void;
|
|
107
|
+
/**
|
|
108
|
+
* The element focus lands on. Defaults to the first focusable element the control
|
|
109
|
+
* renders, which is the right one for a control built around a single native element;
|
|
110
|
+
* a control with a more elaborate view names its own.
|
|
111
|
+
*/
|
|
112
|
+
protected focusTarget(): HTMLElement | null;
|
|
88
113
|
protected baseControlClasses(): string[];
|
|
89
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormControl<any>, never>;
|
|
90
115
|
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>;
|
|
@@ -180,6 +205,14 @@ interface ConnectedOverlayConfig {
|
|
|
180
205
|
origin: FlexibleConnectedPositionStrategyOrigin;
|
|
181
206
|
/** Connected positions to try, in order of preference. */
|
|
182
207
|
positions: ConnectedPosition[];
|
|
208
|
+
/**
|
|
209
|
+
* How the pane is placed. `'connected'` (the default) anchors it beside the
|
|
210
|
+
* origin through `positions`. `'sheet'` pins it to the viewport's bottom
|
|
211
|
+
* edge at full width — the origin and positions are ignored, the page's
|
|
212
|
+
* scroll is blocked, and the backdrop defaults to the shared modal scrim so
|
|
213
|
+
* the sheet reads as the modal surface it is.
|
|
214
|
+
*/
|
|
215
|
+
presentation?: 'connected' | 'sheet';
|
|
183
216
|
/** Forwarded to the position strategy. Defaults to the CDK default (true). */
|
|
184
217
|
flexibleDimensions?: boolean;
|
|
185
218
|
/** Forwarded to the position strategy. Defaults to the CDK default (true). */
|
|
@@ -235,6 +268,8 @@ declare class OverlayManager {
|
|
|
235
268
|
private readonly _isOpen;
|
|
236
269
|
private _ignoreTrailingAuxClick;
|
|
237
270
|
readonly isOpen: i0.Signal<boolean>;
|
|
271
|
+
/** Backdrop element of the open overlay; `null` while closed or without one. */
|
|
272
|
+
get backdropElement(): HTMLElement | null;
|
|
238
273
|
private readonly _teardown;
|
|
239
274
|
open(config: ConnectedOverlayConfig): void;
|
|
240
275
|
close(): void;
|
|
@@ -282,6 +317,9 @@ interface OverlayArrowPosition {
|
|
|
282
317
|
|
|
283
318
|
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
319
|
|
|
320
|
+
/** Kind of pointing device that produced a press, as reported by `PointerEvent.pointerType`. */
|
|
321
|
+
type pointerType = 'mouse' | 'touch' | 'pen';
|
|
322
|
+
|
|
285
323
|
type radius = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
286
324
|
|
|
287
325
|
/**
|
|
@@ -300,6 +338,101 @@ type size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
300
338
|
*/
|
|
301
339
|
type TrackBy<T> = keyof T | TrackByFunction<T>;
|
|
302
340
|
|
|
341
|
+
type accordionVariant = 'flat' | 'outlined' | 'separated';
|
|
342
|
+
/**
|
|
343
|
+
* Rank the item headings occupy in the document outline. An accordion sits
|
|
344
|
+
* somewhere inside a page whose headings already run `h1`, `h2`, … so the level
|
|
345
|
+
* is chosen by the surrounding content rather than fixed by the component.
|
|
346
|
+
* `h1` is excluded: it names the page, never a collapsible section.
|
|
347
|
+
*/
|
|
348
|
+
type accordionHeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* One collapsible section, declared as content of a `tls-accordion`. The host
|
|
352
|
+
* element itself is never rendered: the accordion reads the captured
|
|
353
|
+
* content/header templates and renders them inside its own trigger/panel
|
|
354
|
+
* structure, which is what allows the panel content to be deferred until the
|
|
355
|
+
* section is first expanded.
|
|
356
|
+
*
|
|
357
|
+
* The default header renders `label` above an optional `description`. Two
|
|
358
|
+
* template slots override it: `#accordionItemHeader` replaces that text
|
|
359
|
+
* entirely, and `#accordionItemTrailing` renders between the header and the
|
|
360
|
+
* chevron.
|
|
361
|
+
*/
|
|
362
|
+
declare class AccordionItem {
|
|
363
|
+
/**
|
|
364
|
+
* Text of the heading. Required even alongside a header template, which
|
|
365
|
+
* renders in its place but leaves the label as the section's accessible name
|
|
366
|
+
* — a header composed only of an icon would otherwise have none.
|
|
367
|
+
*/
|
|
368
|
+
readonly label: InputSignal<string>;
|
|
369
|
+
/** Secondary line rendered under the label. */
|
|
370
|
+
readonly description: InputSignal<string | undefined>;
|
|
371
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
372
|
+
/** Overrides the heading rank the accordion assigns to its items. */
|
|
373
|
+
readonly headingLevel: InputSignal<accordionHeadingLevel | undefined>;
|
|
374
|
+
readonly expanded: ModelSignal<boolean>;
|
|
375
|
+
readonly headerTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
376
|
+
readonly trailingTemplateRef: Signal<TemplateRef<unknown> | undefined>;
|
|
377
|
+
readonly contentTemplateRef: Signal<TemplateRef<unknown>>;
|
|
378
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItem, never>;
|
|
379
|
+
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>;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* A stack of collapsible sections. The container owns the policy shared by the
|
|
384
|
+
* whole stack — how many sections may stay open, whether arrowing wraps, the
|
|
385
|
+
* heading rank the items occupy — while each `tls-accordion-item` owns its own
|
|
386
|
+
* expanded state.
|
|
387
|
+
*/
|
|
388
|
+
declare class Accordion {
|
|
389
|
+
private readonly _config;
|
|
390
|
+
readonly variant: InputSignal<accordionVariant>;
|
|
391
|
+
readonly multiExpandable: InputSignalWithTransform<boolean, unknown>;
|
|
392
|
+
readonly headingLevel: InputSignal<accordionHeadingLevel>;
|
|
393
|
+
readonly preserveContent: InputSignalWithTransform<boolean, unknown>;
|
|
394
|
+
readonly wrap: InputSignalWithTransform<boolean, unknown>;
|
|
395
|
+
readonly softDisabled: InputSignalWithTransform<boolean, unknown>;
|
|
396
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
397
|
+
/** Accessible name for the stack as a whole. */
|
|
398
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
399
|
+
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
400
|
+
protected readonly items: Signal<readonly AccordionItem[]>;
|
|
401
|
+
private readonly _group;
|
|
402
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
403
|
+
protected readonly hasAccessibleName: Signal<boolean>;
|
|
404
|
+
/** Expands every item. Takes effect only while the accordion is multi-expandable. */
|
|
405
|
+
expandAll(): void;
|
|
406
|
+
collapseAll(): void;
|
|
407
|
+
protected resolveHeadingLevel(item: AccordionItem): accordionHeadingLevel;
|
|
408
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Accordion, never>;
|
|
409
|
+
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>;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
interface AccordionConfig {
|
|
413
|
+
variant: accordionVariant;
|
|
414
|
+
/** Whether more than one item may stay expanded at a time. */
|
|
415
|
+
multiExpandable: boolean;
|
|
416
|
+
headingLevel: accordionHeadingLevel;
|
|
417
|
+
/**
|
|
418
|
+
* Whether a panel's content stays in the DOM once it has been expanded. The
|
|
419
|
+
* collapse transition needs the content to outlive the collapse, so turning
|
|
420
|
+
* this off trades the outgoing animation for a smaller DOM.
|
|
421
|
+
*/
|
|
422
|
+
preserveContent: boolean;
|
|
423
|
+
/** Whether arrowing past the last trigger returns to the first, and vice versa. */
|
|
424
|
+
wrap: boolean;
|
|
425
|
+
/**
|
|
426
|
+
* Whether a disabled trigger still receives focus. Keeping it focusable lets a
|
|
427
|
+
* screen-reader user reach the item and hear that it is unavailable, rather
|
|
428
|
+
* than the item vanishing from the keyboard order.
|
|
429
|
+
*/
|
|
430
|
+
softDisabled: boolean;
|
|
431
|
+
}
|
|
432
|
+
declare const DEFAULT_ACCORDION_CONFIG: AccordionConfig;
|
|
433
|
+
|
|
434
|
+
declare const ACCORDION_CONFIG: InjectionToken<AccordionConfig>;
|
|
435
|
+
|
|
303
436
|
/** A single activity record. Records falling on the same calendar day are summed. */
|
|
304
437
|
interface ActivityHeatmapEntry {
|
|
305
438
|
/** Day the activity happened on; the time of day is ignored. */
|
|
@@ -492,7 +625,7 @@ declare const resolveActivityLevel: (count: number, thresholds: number[]) => num
|
|
|
492
625
|
* them for their own kit via `provideThalassicIcons`, so this list is the icon
|
|
493
626
|
* contract between the library and the app.
|
|
494
627
|
*/
|
|
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';
|
|
628
|
+
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
629
|
|
|
497
630
|
declare class Icon {
|
|
498
631
|
private readonly _iconService;
|
|
@@ -621,6 +754,16 @@ declare class Alert {
|
|
|
621
754
|
/** Renders an arbitrary SVG or image URL as the icon instead of a registry glyph. */
|
|
622
755
|
readonly iconSrc: InputSignal<string | undefined>;
|
|
623
756
|
readonly hideIcon: InputSignalWithTransform<boolean, unknown>;
|
|
757
|
+
/**
|
|
758
|
+
* Renders a trailing close button. Dismissal is reported through `dismissed`;
|
|
759
|
+
* the consumer owns removal — including moving keyboard focus somewhere
|
|
760
|
+
* sensible, since removing the alert destroys the focused button and focus
|
|
761
|
+
* would otherwise fall back to the document body.
|
|
762
|
+
*/
|
|
763
|
+
readonly closable: InputSignalWithTransform<boolean, unknown>;
|
|
764
|
+
/** Accessible name of the close button. */
|
|
765
|
+
readonly dismissLabel: InputSignal<string>;
|
|
766
|
+
readonly dismissed: OutputEmitterRef<void>;
|
|
624
767
|
/** Consumer-provided visual rendered in place of the built-in icon. */
|
|
625
768
|
protected readonly projectedIcon: Signal<AlertIcon | undefined>;
|
|
626
769
|
protected readonly displayLabel: Signal<string>;
|
|
@@ -631,8 +774,9 @@ declare class Alert {
|
|
|
631
774
|
protected readonly displayIcon: Signal<systemIcon | undefined>;
|
|
632
775
|
protected readonly hostClasses: Signal<string[]>;
|
|
633
776
|
protected readonly hostRole: Signal<string>;
|
|
777
|
+
protected onClose(): void;
|
|
634
778
|
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>;
|
|
779
|
+
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
780
|
}
|
|
637
781
|
|
|
638
782
|
interface AlertConfig {
|
|
@@ -642,6 +786,9 @@ interface AlertConfig {
|
|
|
642
786
|
/** Leading glyph, either one icon for every color or a per-color status set. */
|
|
643
787
|
icon: Record<alertColor, systemIcon> | systemIcon;
|
|
644
788
|
hideIcon: boolean;
|
|
789
|
+
closable: boolean;
|
|
790
|
+
/** Accessible name of the close button; the global place to localize it. */
|
|
791
|
+
dismissLabel: string;
|
|
645
792
|
}
|
|
646
793
|
declare const DEFAULT_ALERT_CONFIG: AlertConfig;
|
|
647
794
|
|
|
@@ -684,6 +831,7 @@ declare const DEFAULT_BADGE_CONFIG: BadgeConfig;
|
|
|
684
831
|
|
|
685
832
|
declare const BADGE_CONFIG: InjectionToken<BadgeConfig>;
|
|
686
833
|
|
|
834
|
+
type breadcrumbsSize = 'sm' | 'md' | 'lg';
|
|
687
835
|
interface BreadcrumbItem {
|
|
688
836
|
label: string;
|
|
689
837
|
/** Router link for the item. An item without a link renders as plain text. */
|
|
@@ -705,18 +853,29 @@ interface BreadcrumbItemContext {
|
|
|
705
853
|
|
|
706
854
|
declare class Breadcrumbs {
|
|
707
855
|
private readonly _config;
|
|
708
|
-
readonly items:
|
|
709
|
-
readonly separatorIcon:
|
|
856
|
+
readonly items: InputSignal<BreadcrumbItem[]>;
|
|
857
|
+
readonly separatorIcon: InputSignal<systemIcon>;
|
|
858
|
+
/** Overall scale of the trail: type size, link height, and glyph sizes together. */
|
|
859
|
+
readonly size: InputSignal<breadcrumbsSize>;
|
|
860
|
+
/**
|
|
861
|
+
* Keeps the trail on a single line: instead of wrapping, crumbs shrink and
|
|
862
|
+
* truncate their labels with an ellipsis. For trails in width-constrained
|
|
863
|
+
* chrome (a header bar) where a second line would break the surrounding
|
|
864
|
+
* layout.
|
|
865
|
+
*/
|
|
866
|
+
readonly nowrap: InputSignalWithTransform<boolean, unknown>;
|
|
710
867
|
/** Accessible name for the breadcrumb navigation landmark. */
|
|
711
|
-
readonly ariaLabel:
|
|
712
|
-
readonly ariaLabelledby:
|
|
868
|
+
readonly ariaLabel: InputSignal<string>;
|
|
869
|
+
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
713
870
|
readonly itemTemplate: i0.Signal<TemplateRef<BreadcrumbItemContext> | undefined>;
|
|
871
|
+
protected readonly classes: i0.Signal<string[]>;
|
|
714
872
|
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>;
|
|
873
|
+
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
874
|
}
|
|
717
875
|
|
|
718
876
|
interface BreadcrumbsConfig {
|
|
719
877
|
separatorIcon: systemIcon;
|
|
878
|
+
size: breadcrumbsSize;
|
|
720
879
|
}
|
|
721
880
|
declare const DEFAULT_BREADCRUMBS_CONFIG: BreadcrumbsConfig;
|
|
722
881
|
|
|
@@ -728,25 +887,58 @@ type buttonColor = color;
|
|
|
728
887
|
|
|
729
888
|
declare abstract class ButtonBase {
|
|
730
889
|
protected _config: _thalassic_ui.ButtonConfig;
|
|
731
|
-
protected
|
|
890
|
+
protected HOST_IS_CONTROL: boolean;
|
|
732
891
|
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
892
|
+
/**
|
|
893
|
+
* Marks the button unavailable while leaving it focusable: it takes the
|
|
894
|
+
* disabled treatment and `aria-disabled`, and refuses activation, but keeps
|
|
895
|
+
* its place in the tab order.
|
|
896
|
+
*
|
|
897
|
+
* Reach for it over `disabled` wherever removing the control from the tab
|
|
898
|
+
* order would strand focus — a control that becomes unavailable through its
|
|
899
|
+
* own activation, such as a pager arrow at the end of its range, would
|
|
900
|
+
* otherwise vanish from under the keyboard user who just pressed it. Plain
|
|
901
|
+
* `disabled` remains the stronger choice everywhere else, since the platform
|
|
902
|
+
* enforces it.
|
|
903
|
+
*/
|
|
904
|
+
readonly inactive: InputSignalWithTransform<boolean, unknown>;
|
|
733
905
|
readonly icon: InputSignalWithTransform<boolean, unknown>;
|
|
906
|
+
/**
|
|
907
|
+
* Renders the button as a floating action button: a larger, elevated container for a
|
|
908
|
+
* screen's single primary action. Composes with the other inputs — `icon` for the square
|
|
909
|
+
* icon-only shape, a label for the extended form, `color`/`variant` for the treatment.
|
|
910
|
+
* Placement (typically floating above other content) is the consumer's concern; the
|
|
911
|
+
* input only changes the control's own geometry and elevation.
|
|
912
|
+
*/
|
|
913
|
+
readonly fab: InputSignalWithTransform<boolean, unknown>;
|
|
734
914
|
readonly color: InputSignal<buttonColor>;
|
|
735
915
|
readonly variant: InputSignal<buttonVariant>;
|
|
736
916
|
readonly size: InputSignal<controlSize>;
|
|
737
917
|
readonly rounded: InputSignalWithTransform<boolean, unknown>;
|
|
738
918
|
/** Whether the button stretches to fill its container's width. */
|
|
739
919
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
920
|
+
/**
|
|
921
|
+
* Whether the button stretches to fill its container's height, the block-axis
|
|
922
|
+
* counterpart to `fluid`. For a button that is a region in its own right — a slot in a
|
|
923
|
+
* grid of cards, a panel that happens to be pressable — rather than a control sitting in
|
|
924
|
+
* a line of content. Takes effect only where the container's height is definite, and is
|
|
925
|
+
* opt-in for that reason: a control in a fixed-height bar keeps its own size unless it
|
|
926
|
+
* asks for the bar's.
|
|
927
|
+
*/
|
|
928
|
+
readonly stretch: InputSignalWithTransform<boolean, unknown>;
|
|
929
|
+
/** Whether the button refuses activation, for either reason. */
|
|
930
|
+
readonly unavailable: i0.Signal<boolean>;
|
|
931
|
+
protected ariaDisabled: i0.Signal<"true" | null>;
|
|
740
932
|
protected classes: i0.Signal<string[]>;
|
|
741
933
|
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>;
|
|
934
|
+
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
935
|
}
|
|
744
936
|
|
|
745
937
|
declare class Button extends ButtonBase {
|
|
746
938
|
private _routerLink;
|
|
747
939
|
private _router;
|
|
748
940
|
private _locationStrategy;
|
|
749
|
-
protected
|
|
941
|
+
protected HOST_IS_CONTROL: boolean;
|
|
750
942
|
/** The text label displayed inside the button. Takes priority over projected content. */
|
|
751
943
|
readonly label: InputSignal<string | undefined>;
|
|
752
944
|
/**
|
|
@@ -771,6 +963,13 @@ declare class Button extends ButtonBase {
|
|
|
771
963
|
* `href` wins; otherwise the URL is derived from the host `routerLink`.
|
|
772
964
|
*/
|
|
773
965
|
protected linkHref: Signal<string | null>;
|
|
966
|
+
/**
|
|
967
|
+
* Stops a click on an inactive button at the control, so it never reaches a
|
|
968
|
+
* consumer's handler on the host. A natively disabled button dispatches no
|
|
969
|
+
* click at all; one held focusable by `inactive` does, and the refusal has to
|
|
970
|
+
* be made here.
|
|
971
|
+
*/
|
|
972
|
+
protected onControlClick(event: MouseEvent): void;
|
|
774
973
|
/**
|
|
775
974
|
* Keeps navigation correct when the host carries a `routerLink` while the inner anchor
|
|
776
975
|
* exposes a real `href`:
|
|
@@ -922,6 +1121,12 @@ declare class Calendar {
|
|
|
922
1121
|
* as tall as the events it has to show; on, the grid's height follows from its width alone.
|
|
923
1122
|
*/
|
|
924
1123
|
readonly squareCells: InputSignal<boolean>;
|
|
1124
|
+
/**
|
|
1125
|
+
* Whether a vertical touch swipe over the month grid pages the calendar — up to the next
|
|
1126
|
+
* month, down to the previous. Off by default: the gesture claims vertical pans from the
|
|
1127
|
+
* browser, so it belongs only on a grid that is not itself inside something it must scroll.
|
|
1128
|
+
*/
|
|
1129
|
+
readonly swipeNavigation: InputSignal<boolean>;
|
|
925
1130
|
/** Accessible name forwarded to the active view's grid. */
|
|
926
1131
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
927
1132
|
readonly eventSelect: OutputEmitterRef<CalendarEvent>;
|
|
@@ -932,6 +1137,7 @@ declare class Calendar {
|
|
|
932
1137
|
/** Anchor date driving the visible range; navigation shifts it by the view's unit. */
|
|
933
1138
|
readonly activeDate: ModelSignal<Date>;
|
|
934
1139
|
protected readonly labels: CalendarLabels;
|
|
1140
|
+
protected readonly swipePointerTypes: string[];
|
|
935
1141
|
protected readonly eventTemplate: Signal<TemplateRef<CalendarEventContext> | undefined>;
|
|
936
1142
|
protected readonly dayTemplate: Signal<TemplateRef<CalendarDayContext> | undefined>;
|
|
937
1143
|
private readonly _dateOptions;
|
|
@@ -960,11 +1166,13 @@ declare class Calendar {
|
|
|
960
1166
|
/** Snaps the anchor date back to today. */
|
|
961
1167
|
today(): void;
|
|
962
1168
|
protected onViewChange(views: calendarView[]): void;
|
|
1169
|
+
/** The grid follows the finger's push: swiping up reveals the next month waiting below. */
|
|
1170
|
+
protected onSwipe(event: SwipeEvent): void;
|
|
963
1171
|
private _step;
|
|
964
1172
|
private _weekBounds;
|
|
965
1173
|
private _weekTitle;
|
|
966
1174
|
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>;
|
|
1175
|
+
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; }; "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
1176
|
}
|
|
969
1177
|
|
|
970
1178
|
/** A day that has events, precomputed for the agenda list. */
|
|
@@ -1055,6 +1263,8 @@ interface MonthWeek {
|
|
|
1055
1263
|
declare class CalendarMonthView {
|
|
1056
1264
|
private readonly _locale;
|
|
1057
1265
|
private readonly _config;
|
|
1266
|
+
private readonly _changeDetectorRef;
|
|
1267
|
+
private readonly _injector;
|
|
1058
1268
|
readonly activeDate: InputSignal<Date>;
|
|
1059
1269
|
readonly events: InputSignal<CalendarEvent[]>;
|
|
1060
1270
|
readonly weekStartsOn: InputSignal<Day>;
|
|
@@ -1072,14 +1282,33 @@ declare class CalendarMonthView {
|
|
|
1072
1282
|
private readonly _dateOptions;
|
|
1073
1283
|
/** Ticking current time, so the today highlight tracks the clock across midnight. */
|
|
1074
1284
|
private readonly _now;
|
|
1285
|
+
/** Widened week window a navigation scroll renders through; unset while the grid rests. */
|
|
1286
|
+
private readonly _scrollPlan;
|
|
1287
|
+
private readonly _grid;
|
|
1288
|
+
/** Settles the scroll in flight at once, so a follow-up navigation starts from rest. */
|
|
1289
|
+
private _finalizeScroll;
|
|
1290
|
+
/** Anchor the grid last rendered for, naming the window a navigation scrolls away from. */
|
|
1291
|
+
private _renderedDate;
|
|
1075
1292
|
protected readonly weekdayHeaders: Signal<string[]>;
|
|
1076
1293
|
protected readonly weeks: Signal<MonthWeek[]>;
|
|
1294
|
+
constructor();
|
|
1077
1295
|
/** Localized "+N more" label for a day cell with `count` hidden events. */
|
|
1078
1296
|
protected moreLabel(count: number): string;
|
|
1079
1297
|
/** Localized event-count summary, the only textual form the dense layout's dots have. */
|
|
1080
1298
|
protected eventCountLabel(count: number): string;
|
|
1081
1299
|
/** Space would scroll the page; consume it and select the focused day instead. */
|
|
1082
1300
|
protected onDaySpace(event: Event, date: Date): void;
|
|
1301
|
+
/**
|
|
1302
|
+
* Slides the grid from `from`'s window to `to`'s: the union of both windows renders at once,
|
|
1303
|
+
* pinned to the resting row height, and a translate transition carries it from the outgoing
|
|
1304
|
+
* offset to the incoming one. Rows the windows share keep their DOM identity, so their cells
|
|
1305
|
+
* cross-fade out of the outside dimming in place rather than being rebuilt.
|
|
1306
|
+
*
|
|
1307
|
+
* Style writes go to the element directly: the jump to the outgoing offset must paint with
|
|
1308
|
+
* the widened render, and the cleanup must paint with the collapsed one — frame boundaries a
|
|
1309
|
+
* template binding cannot express.
|
|
1310
|
+
*/
|
|
1311
|
+
private _scrollBetween;
|
|
1083
1312
|
private _markerClasses;
|
|
1084
1313
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthView, never>;
|
|
1085
1314
|
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>;
|
|
@@ -1148,6 +1377,171 @@ declare class CalendarTimeGrid {
|
|
|
1148
1377
|
|
|
1149
1378
|
declare const CALENDAR_CONFIG: InjectionToken<CalendarConfig>;
|
|
1150
1379
|
|
|
1380
|
+
declare class CarouselSlide {
|
|
1381
|
+
/** Accessible name for the slide; falls back to a localized "n of count" position label. */
|
|
1382
|
+
readonly label: InputSignal<string | undefined>;
|
|
1383
|
+
readonly contentTemplateRef: Signal<TemplateRef<unknown>>;
|
|
1384
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselSlide, never>;
|
|
1385
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CarouselSlide, "tls-carousel-slide", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
/** Accessible names for the carousel controls, overridable for localization. */
|
|
1389
|
+
interface CarouselLabels {
|
|
1390
|
+
/** Accessible name for the previous-slide button. */
|
|
1391
|
+
previous: string;
|
|
1392
|
+
/** Accessible name for the next-slide button. */
|
|
1393
|
+
next: string;
|
|
1394
|
+
/** Accessible name for the rotation toggle while rotation is stopped. */
|
|
1395
|
+
play: string;
|
|
1396
|
+
/** Accessible name for the rotation toggle while rotation is running. */
|
|
1397
|
+
pause: string;
|
|
1398
|
+
/**
|
|
1399
|
+
* Accessible name for a slide, from its 1-based position, the slide count and
|
|
1400
|
+
* the slide's own `label` when it sets one.
|
|
1401
|
+
*/
|
|
1402
|
+
slide: (index: number, count: number, label: string | undefined) => string;
|
|
1403
|
+
/** Accessible name for an indicator dot, from its slide's 1-based position. */
|
|
1404
|
+
goToSlide: (index: number) => string;
|
|
1405
|
+
}
|
|
1406
|
+
interface CarouselConfig {
|
|
1407
|
+
/** Whether the previous/next controls (and swipes) wrap around at the ends. */
|
|
1408
|
+
loop: boolean;
|
|
1409
|
+
/**
|
|
1410
|
+
* Milliseconds between automatic slide advances; 0 disables auto-rotation.
|
|
1411
|
+
* Rotation always wraps past the last slide whatever `loop` says — rotation
|
|
1412
|
+
* that stalls at the end would leave the stop control describing motion that
|
|
1413
|
+
* is no longer happening.
|
|
1414
|
+
*/
|
|
1415
|
+
autoplayInterval: number;
|
|
1416
|
+
showArrows: boolean;
|
|
1417
|
+
showIndicators: boolean;
|
|
1418
|
+
/** Accessible names for the controls, overridable for localization. */
|
|
1419
|
+
labels: CarouselLabels;
|
|
1420
|
+
}
|
|
1421
|
+
declare const DEFAULT_CAROUSEL_CONFIG: CarouselConfig;
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* A horizontally sliding carousel implementing the WAI-ARIA carousel pattern:
|
|
1425
|
+
* each slide is a `role="group"`/`aria-roledescription="slide"` region, hidden
|
|
1426
|
+
* slides are inert, and auto-rotation — when enabled — pauses on hover and
|
|
1427
|
+
* while the page is hidden, stops when keyboard focus enters, and only runs at
|
|
1428
|
+
* the `full` motion level, with a rotation toggle placed first in the tab order.
|
|
1429
|
+
*
|
|
1430
|
+
* Slides can also be dragged or flicked sideways. The gesture waits out a slop,
|
|
1431
|
+
* claims only the horizontal axis and yields to any scrollable ancestor, so
|
|
1432
|
+
* vertical scrolling over a slide stays native (see {@link PanDirective}); it
|
|
1433
|
+
* is a shortcut rather than the only path, since the arrows and indicators
|
|
1434
|
+
* reach every slide by keyboard.
|
|
1435
|
+
*/
|
|
1436
|
+
declare class Carousel {
|
|
1437
|
+
private readonly _config;
|
|
1438
|
+
private readonly _directionality;
|
|
1439
|
+
private readonly _elementRef;
|
|
1440
|
+
private readonly _injector;
|
|
1441
|
+
private readonly _destroyRef;
|
|
1442
|
+
private readonly _motion;
|
|
1443
|
+
private readonly _isBrowser;
|
|
1444
|
+
readonly loop: InputSignalWithTransform<boolean, unknown>;
|
|
1445
|
+
readonly autoplayInterval: InputSignal<number>;
|
|
1446
|
+
readonly showArrows: InputSignalWithTransform<boolean, unknown>;
|
|
1447
|
+
readonly showIndicators: InputSignalWithTransform<boolean, unknown>;
|
|
1448
|
+
/** Zero-based index of the selected slide. Two-way bound; interaction updates it. */
|
|
1449
|
+
readonly selected: ModelSignal<number>;
|
|
1450
|
+
/** Accessible name for the carousel container. */
|
|
1451
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
1452
|
+
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
1453
|
+
protected readonly slides: Signal<readonly CarouselSlide[]>;
|
|
1454
|
+
protected readonly labels: CarouselLabels;
|
|
1455
|
+
protected readonly dragSlop: number;
|
|
1456
|
+
protected readonly dragLockRatio: number;
|
|
1457
|
+
/** User intent for auto-rotation, toggled by the rotation control. */
|
|
1458
|
+
protected readonly playing: WritableSignal<boolean>;
|
|
1459
|
+
private readonly _viewport;
|
|
1460
|
+
private readonly _dragging;
|
|
1461
|
+
private readonly _hovered;
|
|
1462
|
+
private readonly _pageVisible;
|
|
1463
|
+
/** Suppresses the slide transition for a change that would otherwise travel the whole track. */
|
|
1464
|
+
private readonly _instant;
|
|
1465
|
+
private _lockDelta;
|
|
1466
|
+
private _dragEndedAt;
|
|
1467
|
+
private _pointerFocus;
|
|
1468
|
+
private readonly _endPointerFocus;
|
|
1469
|
+
protected readonly count: Signal<number>;
|
|
1470
|
+
protected readonly canPrevious: Signal<boolean>;
|
|
1471
|
+
protected readonly canNext: Signal<boolean>;
|
|
1472
|
+
protected readonly autoplayEnabled: Signal<boolean>;
|
|
1473
|
+
/**
|
|
1474
|
+
* The slides container is a polite live region only while it changes by user
|
|
1475
|
+
* action; announcing every automatic advance would be constant chatter.
|
|
1476
|
+
*/
|
|
1477
|
+
protected readonly liveMode: Signal<"off" | "polite">;
|
|
1478
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
1479
|
+
private readonly _rotating;
|
|
1480
|
+
constructor();
|
|
1481
|
+
protected previous(): void;
|
|
1482
|
+
protected next(): void;
|
|
1483
|
+
protected goTo(index: number): void;
|
|
1484
|
+
protected toggleRotation(): void;
|
|
1485
|
+
protected onPointerEnter(): void;
|
|
1486
|
+
protected onPointerLeave(): void;
|
|
1487
|
+
/**
|
|
1488
|
+
* Marks focus that lands during a press as pointer-driven. The press may end
|
|
1489
|
+
* anywhere — outside the carousel, or in another window — so the release is
|
|
1490
|
+
* watched on the document; a flag left standing would make the next keyboard
|
|
1491
|
+
* focus look like a click.
|
|
1492
|
+
*/
|
|
1493
|
+
protected onPointerDown(): void;
|
|
1494
|
+
/**
|
|
1495
|
+
* Keyboard focus entering the carousel stops rotation for good (it only
|
|
1496
|
+
* restarts through the rotation control), so the user can read and operate
|
|
1497
|
+
* the content without it moving away. Pointer-driven focus does not: a click
|
|
1498
|
+
* on the rotation control would otherwise stop rotation on the way in and
|
|
1499
|
+
* have its own toggle start it straight back up.
|
|
1500
|
+
*/
|
|
1501
|
+
protected onFocusIn(): void;
|
|
1502
|
+
/**
|
|
1503
|
+
* Images and links start a native content drag on a mouse press, and the
|
|
1504
|
+
* browser cancels the pointer to run it — taking the swipe with it. A track
|
|
1505
|
+
* that moves sideways under the pointer cannot also hand its content to a
|
|
1506
|
+
* drag-and-drop, so the native one gives way.
|
|
1507
|
+
*/
|
|
1508
|
+
protected onDragStart(event: DragEvent): void;
|
|
1509
|
+
protected onPanStart(event: PanEvent): void;
|
|
1510
|
+
/**
|
|
1511
|
+
* Fired at pointer rate (see {@link PanDirective}), so the offset is written
|
|
1512
|
+
* straight to the DOM rather than through a binding and no change detection
|
|
1513
|
+
* runs per move.
|
|
1514
|
+
*/
|
|
1515
|
+
protected onPanMove(event: PanEvent): void;
|
|
1516
|
+
protected onPanEnd(event: PanEvent): void;
|
|
1517
|
+
protected onPanCancel(): void;
|
|
1518
|
+
private _isRtl;
|
|
1519
|
+
private _clamp;
|
|
1520
|
+
private _advance;
|
|
1521
|
+
/** Moves to a slide with the track transition suppressed for that one change. */
|
|
1522
|
+
private _jumpTo;
|
|
1523
|
+
/**
|
|
1524
|
+
* Damps travel toward an edge with no slide behind it, so a drag at the first
|
|
1525
|
+
* or last slide resists instead of pulling empty track into view.
|
|
1526
|
+
*/
|
|
1527
|
+
private _resistedOffset;
|
|
1528
|
+
private _applyDragOffset;
|
|
1529
|
+
private _settleDrag;
|
|
1530
|
+
private _clearDragOffset;
|
|
1531
|
+
/**
|
|
1532
|
+
* Swallows the click that concludes a drag so the slide content under the
|
|
1533
|
+
* released pointer is not activated. The listener runs in the capture phase:
|
|
1534
|
+
* the click has to be stopped before it reaches that content, and a
|
|
1535
|
+
* bubble-phase listener would only see it once the content had handled it.
|
|
1536
|
+
*/
|
|
1537
|
+
private _suppressPostDragClicks;
|
|
1538
|
+
private _watchPageVisibility;
|
|
1539
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Carousel, never>;
|
|
1540
|
+
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>;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
declare const CAROUSEL_CONFIG: InjectionToken<CarouselConfig>;
|
|
1544
|
+
|
|
1151
1545
|
type chipColor = color;
|
|
1152
1546
|
type chipVariant = 'filled' | 'tonal' | 'outlined' | 'text';
|
|
1153
1547
|
type chipSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -1164,6 +1558,87 @@ type chipTemplateContext = {
|
|
|
1164
1558
|
$implicit: ChipContext;
|
|
1165
1559
|
};
|
|
1166
1560
|
|
|
1561
|
+
/**
|
|
1562
|
+
* Spreads ink from the point of contact when the host is touched, and stands its
|
|
1563
|
+
* press down for that one interaction so a single tap produces a single effect.
|
|
1564
|
+
*
|
|
1565
|
+
* A touch and a pen ink by default, a mouse does not. Ink answers the fingertip
|
|
1566
|
+
* covering the control it is spreading from — a cursor occludes nothing, and a
|
|
1567
|
+
* mouse press is over in a fraction of the ink's duration, leaving most of it
|
|
1568
|
+
* playing after the button has already been released. Which pointers ink is set
|
|
1569
|
+
* app-wide through `RIPPLE_CONFIG` and per host through `ripplePointerTypes`.
|
|
1570
|
+
*
|
|
1571
|
+
* The ink is expressive and outlives the contact that spawned it, so it is
|
|
1572
|
+
* confined to the `full` motion level; below that the press it suppresses is
|
|
1573
|
+
* restored and acknowledges the touch instead. Removing this directive therefore
|
|
1574
|
+
* takes nothing away — the press underneath is pure CSS and is what a host shows
|
|
1575
|
+
* without it.
|
|
1576
|
+
*
|
|
1577
|
+
* Requires the theme's `ripple` mixin on the same element, which draws the ink
|
|
1578
|
+
* from the values written here.
|
|
1579
|
+
*
|
|
1580
|
+
* @example
|
|
1581
|
+
* ```html
|
|
1582
|
+
* <button class="tls-button" tlsRipple>Save</button>
|
|
1583
|
+
* ```
|
|
1584
|
+
*/
|
|
1585
|
+
declare class RippleDirective {
|
|
1586
|
+
private readonly _elementRef;
|
|
1587
|
+
private readonly _document;
|
|
1588
|
+
private readonly _config;
|
|
1589
|
+
/**
|
|
1590
|
+
* Turns the ink off.
|
|
1591
|
+
*
|
|
1592
|
+
* Deliberately not named `disabled`: an input shadows the DOM property of the
|
|
1593
|
+
* same name on the element it sits on, so a directive claiming `disabled` would
|
|
1594
|
+
* capture a host's `[disabled]` binding and leave the control enabled.
|
|
1595
|
+
*/
|
|
1596
|
+
readonly rippleDisabled: InputSignalWithTransform<boolean, unknown>;
|
|
1597
|
+
/**
|
|
1598
|
+
* Pointer types whose presses ink here, overriding the app-wide default for
|
|
1599
|
+
* this one host. Unset defers to `RIPPLE_CONFIG`.
|
|
1600
|
+
*/
|
|
1601
|
+
readonly ripplePointerTypes: InputSignal<pointerType[] | undefined>;
|
|
1602
|
+
private readonly _pointerTypes;
|
|
1603
|
+
/** Where the press landed, to measure a scroll against. */
|
|
1604
|
+
private _origin;
|
|
1605
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
1606
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
1607
|
+
protected onPointerRelease(): void;
|
|
1608
|
+
/**
|
|
1609
|
+
* Whether a press from this kind of pointer inks. `pointerType` is read off the
|
|
1610
|
+
* event rather than from a media query so a device carrying both a touchscreen
|
|
1611
|
+
* and a mouse is answered by the one in use, not by the one it reports as
|
|
1612
|
+
* primary.
|
|
1613
|
+
*/
|
|
1614
|
+
private _inksFor;
|
|
1615
|
+
/**
|
|
1616
|
+
* Whether the document is at the motion level the ink belongs to.
|
|
1617
|
+
*
|
|
1618
|
+
* Read from the attribute the stylesheet gates on rather than from
|
|
1619
|
+
* `MotionService`, for two reasons: the two can never disagree about a level
|
|
1620
|
+
* they read from one place, and a host is not made to depend on a provider it
|
|
1621
|
+
* would otherwise never need — an app that never configures motion has no
|
|
1622
|
+
* attribute, and the ink is off exactly as the stylesheet has it.
|
|
1623
|
+
*/
|
|
1624
|
+
private _isFullMotion;
|
|
1625
|
+
/**
|
|
1626
|
+
* Distance from the contact point to the farthest corner. The ink is struck
|
|
1627
|
+
* where the finger landed, so a press near an edge has farther to travel than
|
|
1628
|
+
* one in the middle; covering the control means reaching that corner.
|
|
1629
|
+
*/
|
|
1630
|
+
private _radiusToCover;
|
|
1631
|
+
/**
|
|
1632
|
+
* Retriggers the animation. A class already present does not restart a running
|
|
1633
|
+
* animation, so a second tap arriving before the first has faded would
|
|
1634
|
+
* otherwise be swallowed; reading back a layout property between the removal
|
|
1635
|
+
* and the addition forces the two to land as separate states.
|
|
1636
|
+
*/
|
|
1637
|
+
private _restartInk;
|
|
1638
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RippleDirective, never>;
|
|
1639
|
+
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>;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1167
1642
|
declare class Chip {
|
|
1168
1643
|
private _config;
|
|
1169
1644
|
readonly label: InputSignal<string | undefined>;
|
|
@@ -1178,7 +1653,7 @@ declare class Chip {
|
|
|
1178
1653
|
protected readonly endIconTemplate: i0.Signal<TemplateRef<chipTemplateContext> | undefined>;
|
|
1179
1654
|
protected classes: i0.Signal<string[]>;
|
|
1180
1655
|
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,
|
|
1656
|
+
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
1657
|
}
|
|
1183
1658
|
|
|
1184
1659
|
declare class ChipControl extends CheckboxFormControl {
|
|
@@ -1213,6 +1688,28 @@ declare const DEFAULT_CHIP_CONTROL_CONFIG: ChipControlConfig;
|
|
|
1213
1688
|
|
|
1214
1689
|
declare const CHIP_CONTROL_CONFIG: InjectionToken<ChipControlConfig>;
|
|
1215
1690
|
|
|
1691
|
+
/**
|
|
1692
|
+
* Presentational color chip: renders a color over a transparency checkerboard,
|
|
1693
|
+
* so translucent colors stay legible. Display-only — wrap it in a button when it
|
|
1694
|
+
* needs to be interactive.
|
|
1695
|
+
*/
|
|
1696
|
+
declare class ColorSwatch {
|
|
1697
|
+
/**
|
|
1698
|
+
* Color to display, in any notation CSS accepts — a hex string
|
|
1699
|
+
* (`#3b82f6`, `#3b82f680`), a function, or a custom property that resolves to
|
|
1700
|
+
* one (`var(--color-blue)`). The value is painted, never parsed, so a color
|
|
1701
|
+
* that only the browser can resolve renders like any other.
|
|
1702
|
+
*/
|
|
1703
|
+
readonly value: InputSignal<string>;
|
|
1704
|
+
readonly size: InputSignal<size>;
|
|
1705
|
+
/** Accessible name; the value itself is announced when unset. */
|
|
1706
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
1707
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
1708
|
+
protected readonly label: Signal<string>;
|
|
1709
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorSwatch, never>;
|
|
1710
|
+
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>;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1216
1713
|
/**
|
|
1217
1714
|
* Appearance of one of the confirm dialog's action buttons. Mirrors the
|
|
1218
1715
|
* `tls-button` inputs; every field but `label` is optional and falls back to
|
|
@@ -1322,7 +1819,8 @@ interface ConfirmOptions {
|
|
|
1322
1819
|
/**
|
|
1323
1820
|
* Element (or the originating event) the dialog is anchored to. Present opens
|
|
1324
1821
|
* an anchored popover next to the trigger; omitting it opens a centered,
|
|
1325
|
-
* focus-trapped modal instead.
|
|
1822
|
+
* focus-trapped modal instead. A viewport at or below the configured
|
|
1823
|
+
* `modalBelow` breakpoint opens the modal even with a trigger.
|
|
1326
1824
|
*/
|
|
1327
1825
|
trigger?: HTMLElement | MouseEvent;
|
|
1328
1826
|
message: string;
|
|
@@ -1338,15 +1836,20 @@ interface ConfirmOptions {
|
|
|
1338
1836
|
/**
|
|
1339
1837
|
* Imperative confirm dialog for `await`-style flows: opens a dialog and resolves
|
|
1340
1838
|
* `true` on confirm, `false` on cancel / backdrop / Escape. Anchors to the
|
|
1341
|
-
* `trigger` when given, otherwise opens as a centered modal
|
|
1342
|
-
*
|
|
1839
|
+
* `trigger` when given, otherwise opens as a centered modal — and a viewport at
|
|
1840
|
+
* or below the configured `modalBelow` breakpoint opens the modal even with a
|
|
1841
|
+
* trigger. For a template-driven anchored equivalent, use the `tls-confirm`
|
|
1842
|
+
* component.
|
|
1343
1843
|
*/
|
|
1344
1844
|
declare class ConfirmService {
|
|
1345
1845
|
private readonly _overlay;
|
|
1346
1846
|
private readonly _focusTrapFactory;
|
|
1347
1847
|
private readonly _router;
|
|
1348
1848
|
private readonly _config;
|
|
1849
|
+
private readonly _viewportService;
|
|
1349
1850
|
confirm(options: ConfirmOptions): Promise<boolean>;
|
|
1851
|
+
/** Whether the viewport sits at or below the configured modal breakpoint. */
|
|
1852
|
+
private _prefersModal;
|
|
1350
1853
|
private _createAnchoredOverlay;
|
|
1351
1854
|
private _createModalOverlay;
|
|
1352
1855
|
private _applyOptions;
|
|
@@ -1359,6 +1862,14 @@ declare class ConfirmService {
|
|
|
1359
1862
|
interface ConfirmConfig {
|
|
1360
1863
|
position: overlayPosition;
|
|
1361
1864
|
offset: Point;
|
|
1865
|
+
/**
|
|
1866
|
+
* Breakpoint at or below which an anchored confirm opens as a centered modal
|
|
1867
|
+
* instead: a small viewport rarely fits a popover beside its trigger, and a
|
|
1868
|
+
* focus-trapped dialog is the platform-native confirm there. `null` keeps
|
|
1869
|
+
* every triggered confirm anchored. Takes effect only when the app provides
|
|
1870
|
+
* the viewport (`provideViewport()`).
|
|
1871
|
+
*/
|
|
1872
|
+
modalBelow: breakpoint | null;
|
|
1362
1873
|
confirmButton: confirmButton;
|
|
1363
1874
|
cancelButton: confirmButton;
|
|
1364
1875
|
actionsAlign: confirmActionsAlign;
|
|
@@ -1512,11 +2023,44 @@ declare const DIVIDER_CONFIG: InjectionToken<DividerConfig>;
|
|
|
1512
2023
|
type drawerSide = 'start' | 'end' | 'top' | 'bottom';
|
|
1513
2024
|
type drawerSize = 'sm' | 'md' | 'lg' | 'full' | 'auto';
|
|
1514
2025
|
/**
|
|
1515
|
-
*
|
|
1516
|
-
*
|
|
1517
|
-
* resting position or off-screen.
|
|
2026
|
+
* Whether the panel shows a grabber. `auto` shows one on a bottom sheet, where a
|
|
2027
|
+
* grabber is the expected affordance for dragging it away, and nowhere else.
|
|
1518
2028
|
*/
|
|
1519
|
-
type
|
|
2029
|
+
type drawerGrabber = boolean | 'auto';
|
|
2030
|
+
/**
|
|
2031
|
+
* Where a drawer opened by a drag stands: waiting to be laid out (`pending`),
|
|
2032
|
+
* under the finger (`following`), on its way after release (`settling`), or
|
|
2033
|
+
* finished opening — which a drawer opened any other way always is (`done`).
|
|
2034
|
+
*/
|
|
2035
|
+
type drawerOpenPhase = 'pending' | 'following' | 'settling' | 'done';
|
|
2036
|
+
/** How a drawer is being opened, fixed for its lifetime. */
|
|
2037
|
+
interface DrawerOpening {
|
|
2038
|
+
/** The element it slides out of and back into; null for the plain slide. */
|
|
2039
|
+
origin: HTMLElement | null;
|
|
2040
|
+
/** Whether it opens under a drag fed through its `DrawerRef`, rather than by itself. */
|
|
2041
|
+
byDrag: boolean;
|
|
2042
|
+
}
|
|
2043
|
+
/** A panel's displacement from its resting place, in px along each axis. */
|
|
2044
|
+
interface DrawerOffset {
|
|
2045
|
+
x: number;
|
|
2046
|
+
y: number;
|
|
2047
|
+
}
|
|
2048
|
+
/** Duration (ms) and easing of one direction of the slide, from the theme's motion tokens. */
|
|
2049
|
+
interface DrawerSlideTiming {
|
|
2050
|
+
duration: number;
|
|
2051
|
+
easing: string;
|
|
2052
|
+
}
|
|
2053
|
+
/**
|
|
2054
|
+
* An element carried between its place in a drawer and its partner's in the
|
|
2055
|
+
* drawer's origin: the translation (px) and scale that lay it over the partner
|
|
2056
|
+
* while the panel stands displaced. Scaled from its top-left corner.
|
|
2057
|
+
*/
|
|
2058
|
+
interface DrawerSharedPair {
|
|
2059
|
+
element: HTMLElement;
|
|
2060
|
+
x: number;
|
|
2061
|
+
y: number;
|
|
2062
|
+
scale: number;
|
|
2063
|
+
}
|
|
1520
2064
|
|
|
1521
2065
|
interface DrawerConfig {
|
|
1522
2066
|
side: drawerSide;
|
|
@@ -1533,11 +2077,19 @@ interface DrawerConfig {
|
|
|
1533
2077
|
* Renders a grabber pill on the edge facing the viewport and makes the panel
|
|
1534
2078
|
* draggable toward that edge to dismiss. The pill is the affordance for the
|
|
1535
2079
|
* gesture, so the two are one decision — a visible grabber is always draggable.
|
|
2080
|
+
* `auto` shows it on a bottom sheet only.
|
|
1536
2081
|
*/
|
|
1537
|
-
grabber:
|
|
2082
|
+
grabber: drawerGrabber;
|
|
1538
2083
|
/** Accessible name for the close button, overridable for localization. */
|
|
1539
2084
|
closeLabel: string;
|
|
1540
2085
|
}
|
|
2086
|
+
/**
|
|
2087
|
+
* One panel's configuration, every choice made: the defaults and the open
|
|
2088
|
+
* config merged, with `grabber` resolved for the panel's side.
|
|
2089
|
+
*/
|
|
2090
|
+
interface DrawerPanelConfig extends Omit<DrawerConfig, 'grabber'> {
|
|
2091
|
+
grabber: boolean;
|
|
2092
|
+
}
|
|
1541
2093
|
declare const DEFAULT_DRAWER_CONFIG: DrawerConfig;
|
|
1542
2094
|
|
|
1543
2095
|
declare class Drawer extends CdkDialogContainer {
|
|
@@ -1546,16 +2098,37 @@ declare class Drawer extends CdkDialogContainer {
|
|
|
1546
2098
|
private readonly _directionality;
|
|
1547
2099
|
private readonly _dragRenderer;
|
|
1548
2100
|
private readonly _dragInjector;
|
|
2101
|
+
private readonly _opening;
|
|
2102
|
+
private readonly _origin;
|
|
1549
2103
|
private readonly _state;
|
|
1550
|
-
private readonly
|
|
2104
|
+
private readonly _slidesFromOrigin;
|
|
2105
|
+
private readonly _opensByDrag;
|
|
2106
|
+
private _openPhase;
|
|
2107
|
+
private _openGesture;
|
|
2108
|
+
private _pendingOpenTravel;
|
|
2109
|
+
private _pendingOpenRelease;
|
|
2110
|
+
private _queuedClose;
|
|
2111
|
+
private _entrance;
|
|
1551
2112
|
private _closing;
|
|
1552
|
-
private
|
|
2113
|
+
private readonly _motion;
|
|
1553
2114
|
protected readonly hostClasses: i0.Signal<string[]>;
|
|
1554
2115
|
constructor();
|
|
1555
|
-
protected get config():
|
|
2116
|
+
protected get config(): DrawerPanelConfig;
|
|
1556
2117
|
protected get customSize(): string | null;
|
|
1557
2118
|
animatedClose(result?: unknown): void;
|
|
2119
|
+
/** See `DrawerRef.followOpenDrag`. */
|
|
2120
|
+
followOpenDrag(event: PanEvent): void;
|
|
2121
|
+
/** See `DrawerRef.releaseOpenDrag`. */
|
|
2122
|
+
releaseOpenDrag(event: PanEvent | null): void;
|
|
1558
2123
|
protected close(): void;
|
|
2124
|
+
private _slideFromOrigin;
|
|
2125
|
+
private _reverseEntrance;
|
|
2126
|
+
private _settleOpenGesture;
|
|
2127
|
+
private _beginOpenGesture;
|
|
2128
|
+
private _opensOnRelease;
|
|
2129
|
+
private _settleTiming;
|
|
2130
|
+
private _isMotionAllowed;
|
|
2131
|
+
private _measureOriginOffset;
|
|
1559
2132
|
private _onPanStart;
|
|
1560
2133
|
private _onPanMove;
|
|
1561
2134
|
private _onPanEnd;
|
|
@@ -1564,12 +2137,8 @@ declare class Drawer extends CdkDialogContainer {
|
|
|
1564
2137
|
private _dismissVelocity;
|
|
1565
2138
|
private _toLogical;
|
|
1566
2139
|
private _isInlineSide;
|
|
1567
|
-
private _applyDrag;
|
|
1568
|
-
private _setBackdropTransition;
|
|
1569
2140
|
private _settleBack;
|
|
1570
2141
|
private _dragClose;
|
|
1571
|
-
private _settle;
|
|
1572
|
-
private _afterSettle;
|
|
1573
2142
|
private _sizeClass;
|
|
1574
2143
|
private _isNamedSize;
|
|
1575
2144
|
static ɵfac: i0.ɵɵFactoryDeclaration<Drawer, never>;
|
|
@@ -1588,8 +2157,39 @@ declare class DrawerRef<R = unknown, C = unknown> {
|
|
|
1588
2157
|
private readonly _container;
|
|
1589
2158
|
readonly closed: Observable<R | undefined>;
|
|
1590
2159
|
constructor(_dialogRef: DialogRef$1<R, C>, _container: Drawer);
|
|
2160
|
+
/** The id of the drawer's dialog element, for a control that points at it (`aria-controls`). */
|
|
2161
|
+
get id(): string;
|
|
1591
2162
|
get componentInstance(): C | null;
|
|
1592
2163
|
close(result?: R): void;
|
|
2164
|
+
/**
|
|
2165
|
+
* Moves a drawer opened with `openByDrag` to where the drag now puts it. The
|
|
2166
|
+
* event's travel is read from where the drag began, toward the drawer's open
|
|
2167
|
+
* position along its side's axis.
|
|
2168
|
+
*/
|
|
2169
|
+
followOpenDrag(event: PanEvent): void;
|
|
2170
|
+
/**
|
|
2171
|
+
* Ends the drag a drawer opened with `openByDrag` is following: it settles
|
|
2172
|
+
* open when released far enough along or flicked open, and back closed —
|
|
2173
|
+
* then disposed — otherwise. `null` is a drag that was cancelled.
|
|
2174
|
+
*/
|
|
2175
|
+
releaseOpenDrag(event: PanEvent | null): void;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* Pairs an element inside a drawer's origin with its counterpart inside the
|
|
2180
|
+
* drawer, by a key the two share. As the drawer slides out of its origin, the
|
|
2181
|
+
* counterpart travels from where its partner stands to its own place, and back
|
|
2182
|
+
* again as the drawer closes — a heading that reads the same in both, carried
|
|
2183
|
+
* across rather than shown twice.
|
|
2184
|
+
*
|
|
2185
|
+
* The counterpart is moved with a transform, so it needs a box: a block or
|
|
2186
|
+
* inline-block element, or any flex or grid item.
|
|
2187
|
+
*/
|
|
2188
|
+
declare class DrawerSharedDirective {
|
|
2189
|
+
/** The key pairing this element with its counterpart; unique within each side. */
|
|
2190
|
+
readonly key: i0.InputSignal<string>;
|
|
2191
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerSharedDirective, never>;
|
|
2192
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerSharedDirective, "[tlsDrawerShared]", never, { "key": { "alias": "tlsDrawerShared"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1593
2193
|
}
|
|
1594
2194
|
|
|
1595
2195
|
interface DrawerOpenConfig<D = unknown> {
|
|
@@ -1603,9 +2203,31 @@ interface DrawerOpenConfig<D = unknown> {
|
|
|
1603
2203
|
rounded?: boolean;
|
|
1604
2204
|
/**
|
|
1605
2205
|
* Renders a grabber pill on the edge facing the viewport and makes the panel
|
|
1606
|
-
* draggable toward that edge to dismiss.
|
|
2206
|
+
* draggable toward that edge to dismiss. `auto` shows it on a bottom sheet only.
|
|
2207
|
+
*/
|
|
2208
|
+
grabber?: drawerGrabber;
|
|
2209
|
+
/**
|
|
2210
|
+
* The element the panel slides out of and back into — typically what opened
|
|
2211
|
+
* it, such as a sheet's lip at the foot of the screen: the panel starts and
|
|
2212
|
+
* ends with only the origin's part of it showing, laid over the origin.
|
|
2213
|
+
* Takes effect only where the panel covers the element; anywhere else, and
|
|
2214
|
+
* once the element has left the page, the panel slides in from off-screen.
|
|
2215
|
+
*/
|
|
2216
|
+
origin?: HTMLElement | null;
|
|
2217
|
+
/**
|
|
2218
|
+
* Where focus goes once the drawer closes: an element, or `true` for whatever
|
|
2219
|
+
* held focus when it opened. Name the opener outright where a pointer opens
|
|
2220
|
+
* the drawer — Safari does not focus a button on click, so "whatever held
|
|
2221
|
+
* focus" would be the page itself.
|
|
1607
2222
|
*/
|
|
1608
|
-
|
|
2223
|
+
restoreFocus?: HTMLElement | boolean;
|
|
2224
|
+
/**
|
|
2225
|
+
* Opens the drawer under a drag instead of by itself: it stays where it
|
|
2226
|
+
* starts until the caller feeds the drag through `DrawerRef.followOpenDrag`
|
|
2227
|
+
* and ends it with `DrawerRef.releaseOpenDrag`, which settles it open or
|
|
2228
|
+
* closed. `DrawerTriggerDirective` does this for a drag that starts on it.
|
|
2229
|
+
*/
|
|
2230
|
+
openByDrag?: boolean;
|
|
1609
2231
|
/** Accessible name for the close button. */
|
|
1610
2232
|
closeLabel?: string;
|
|
1611
2233
|
role?: DialogRole;
|
|
@@ -1622,26 +2244,202 @@ declare class DrawerService {
|
|
|
1622
2244
|
open<R = unknown, D = unknown, C = unknown>(component: ComponentType<C>, config?: DrawerOpenConfig<D>): DrawerRef<R, C>;
|
|
1623
2245
|
closeAll(): void;
|
|
1624
2246
|
private _buildPanConfig;
|
|
2247
|
+
private _resolveGrabber;
|
|
1625
2248
|
private _buildPositionStrategy;
|
|
1626
2249
|
private _wireDismissal;
|
|
1627
2250
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerService, never>;
|
|
1628
2251
|
static ɵprov: i0.ɵɵInjectableDeclaration<DrawerService>;
|
|
1629
2252
|
}
|
|
1630
2253
|
|
|
2254
|
+
/**
|
|
2255
|
+
* Makes its host the control that opens a drawer, and the place the drawer
|
|
2256
|
+
* slides out of and back into. Announces the popup it controls and whether it
|
|
2257
|
+
* is open; focus returns to the host when the drawer closes.
|
|
2258
|
+
*
|
|
2259
|
+
* A press asks for the drawer through `openRequest`. With `dragToOpen`, so does
|
|
2260
|
+
* a drag starting on the host — and the drawer then follows the finger out of
|
|
2261
|
+
* it, settling open or back closed on release. Opening stays with the caller,
|
|
2262
|
+
* so the drawer's content and result keep their types: answer `openRequest` by
|
|
2263
|
+
* calling `open` on the directive.
|
|
2264
|
+
*
|
|
2265
|
+
* ```html
|
|
2266
|
+
* <button tlsDrawerTrigger dragToOpen #trigger="tlsDrawerTrigger"
|
|
2267
|
+
* (openRequest)="openSession(trigger)">…</button>
|
|
2268
|
+
* ```
|
|
2269
|
+
*
|
|
2270
|
+
* The drag runs along `dragAxis` (`y` by default, for a sheet at the top or
|
|
2271
|
+
* bottom), for touch and pen: a mouse opens the drawer with a click.
|
|
2272
|
+
*
|
|
2273
|
+
* Place it on a native `<button>`: the press it listens for is the button's own
|
|
2274
|
+
* click, which carries the keyboard's Enter and Space with it.
|
|
2275
|
+
*/
|
|
2276
|
+
declare class DrawerTriggerDirective {
|
|
2277
|
+
private readonly _drawerService;
|
|
2278
|
+
private readonly _elementRef;
|
|
2279
|
+
/** Asks for the drawer, by a press or a drag; answer it by calling `open`. */
|
|
2280
|
+
readonly openRequest: i0.OutputEmitterRef<void>;
|
|
2281
|
+
private readonly _openRef;
|
|
2282
|
+
private _requestedByDrag;
|
|
2283
|
+
private _draggedRef;
|
|
2284
|
+
readonly isOpen: i0.Signal<boolean>;
|
|
2285
|
+
protected readonly controlsId: i0.Signal<string | null>;
|
|
2286
|
+
constructor();
|
|
2287
|
+
/**
|
|
2288
|
+
* Opens a drawer from the host, which the drawer takes as its origin — under
|
|
2289
|
+
* the drag in progress when answering one.
|
|
2290
|
+
*/
|
|
2291
|
+
open<R = unknown, D = unknown, C = unknown>(component: ComponentType<C>, config?: Omit<DrawerOpenConfig<D>, 'origin' | 'restoreFocus' | 'openByDrag'>): DrawerRef<R, C>;
|
|
2292
|
+
protected onClick(): void;
|
|
2293
|
+
private _onDragStart;
|
|
2294
|
+
private _onDragMove;
|
|
2295
|
+
private _onDragEnd;
|
|
2296
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerTriggerDirective, never>;
|
|
2297
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerTriggerDirective, "[tlsDrawerTrigger]", ["tlsDrawerTrigger"], {}, { "openRequest": "openRequest"; }, never, never, true, [{ directive: typeof i1.PanDirective; inputs: { "tlsPan": "dragToOpen"; "axis": "dragAxis"; }; outputs: {}; }]>;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
1631
2300
|
declare const DRAWER_CONFIG: InjectionToken<DrawerConfig>;
|
|
2301
|
+
/** One panel's resolved configuration. Provided per drawer by `DrawerService`. */
|
|
2302
|
+
declare const DRAWER_PANEL_CONFIG: InjectionToken<DrawerPanelConfig>;
|
|
2303
|
+
/** How a drawer is being opened. Provided per drawer by `DrawerService`. */
|
|
2304
|
+
declare const DRAWER_OPENING: InjectionToken<DrawerOpening>;
|
|
2305
|
+
|
|
2306
|
+
/** A single action in a FAB menu's fanned-out stack. */
|
|
2307
|
+
interface FabMenuItemDefinition {
|
|
2308
|
+
label: string;
|
|
2309
|
+
/**
|
|
2310
|
+
* Icon source rendered leading the label. A consumer with its own icon
|
|
2311
|
+
* system supplies a `#itemIcon` template instead, which takes precedence.
|
|
2312
|
+
*/
|
|
2313
|
+
icon?: string;
|
|
2314
|
+
disabled?: boolean;
|
|
2315
|
+
/** Consumer payload, available to the `#itemIcon` template via the item. */
|
|
2316
|
+
data?: unknown;
|
|
2317
|
+
action?: () => void;
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
* A speed-dial FAB: a floating action button whose tap fans a vertical stack
|
|
2322
|
+
* of labelled pill actions out above it, one per item. The projected content
|
|
2323
|
+
* is the trigger's glyph, which turns while the menu is open (a `+` reads as a
|
|
2324
|
+
* close cross). The consumer positions the host — the host *is* the FAB.
|
|
2325
|
+
*
|
|
2326
|
+
* Reserve it for a FAB whose action genuinely forks into a small set of
|
|
2327
|
+
* choices; a single-action FAB stays a plain `tls-button [fab]`, and a
|
|
2328
|
+
* non-floating trigger takes a `tls-menu`.
|
|
2329
|
+
*/
|
|
2330
|
+
declare class FabMenu {
|
|
2331
|
+
private static _counter;
|
|
2332
|
+
private readonly _elementRef;
|
|
2333
|
+
private readonly _itemsList;
|
|
2334
|
+
private readonly _trigger;
|
|
2335
|
+
/**
|
|
2336
|
+
* Leading icon of every item, rendered instead of the item's `icon` source —
|
|
2337
|
+
* the slot for consumers whose icons are components rather than sources.
|
|
2338
|
+
* Receives the item as `$implicit`.
|
|
2339
|
+
*/
|
|
2340
|
+
protected readonly iconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
2341
|
+
readonly id: string;
|
|
2342
|
+
readonly items: InputSignal<FabMenuItemDefinition[]>;
|
|
2343
|
+
/** Accessible name shared by the trigger and the menu it opens. */
|
|
2344
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
2345
|
+
readonly color: InputSignal<color>;
|
|
2346
|
+
private readonly _open;
|
|
2347
|
+
readonly isOpen: i0.Signal<boolean>;
|
|
2348
|
+
constructor();
|
|
2349
|
+
open(): void;
|
|
2350
|
+
/** Closes the stack; `refocusTrigger` hands focus back for a keyboard dismissal. */
|
|
2351
|
+
close(refocusTrigger?: boolean): void;
|
|
2352
|
+
toggle(): void;
|
|
2353
|
+
protected onItemSelected(item: FabMenuItemDefinition): void;
|
|
2354
|
+
protected onDocumentClick(event: MouseEvent): void;
|
|
2355
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FabMenu, never>;
|
|
2356
|
+
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; }; }, {}, ["iconTemplate"], ["*"], true, never>;
|
|
2357
|
+
}
|
|
1632
2358
|
|
|
1633
2359
|
declare class FormControlAddon {
|
|
2360
|
+
private readonly _group;
|
|
2361
|
+
private readonly _elementRef;
|
|
2362
|
+
/**
|
|
2363
|
+
* Whether a rule is drawn on each edge the addon shares with a sibling, seaming it
|
|
2364
|
+
* off from the control beside it. Off by default: a field reads as one surface, and
|
|
2365
|
+
* a rule is worth its weight only when the addon is a distinct region — an action,
|
|
2366
|
+
* a unit selector — rather than a hint attached to the value.
|
|
2367
|
+
*/
|
|
2368
|
+
readonly divider: InputSignalWithTransform<boolean, unknown>;
|
|
2369
|
+
/**
|
|
2370
|
+
* Whether clicking the addon hands the field's control over, the way clicking a
|
|
2371
|
+
* `<label>` reaches the input it names — focus for a control edited in place, focus
|
|
2372
|
+
* and an open panel for one whose value lives behind a list or a calendar. On by
|
|
2373
|
+
* default: an addon sits inside the field's border, so it reads as part of the field
|
|
2374
|
+
* and a click that landed nowhere would feel broken. Turn it off for an addon whose
|
|
2375
|
+
* content is meant to be selected or copied rather than treated as a way in.
|
|
2376
|
+
*/
|
|
2377
|
+
readonly focusControl: InputSignalWithTransform<boolean, unknown>;
|
|
2378
|
+
/**
|
|
2379
|
+
* The control a click hands over to, named by template reference:
|
|
2380
|
+
*
|
|
2381
|
+
* ```html
|
|
2382
|
+
* <tls-input #amount />
|
|
2383
|
+
* <tls-form-control-addon [control]="amount">USD</tls-form-control-addon>
|
|
2384
|
+
* ```
|
|
2385
|
+
*
|
|
2386
|
+
* Unset, the addon takes the control nearest it in the row, which is what a field of
|
|
2387
|
+
* one control — or an addon sitting against the control it belongs to — already wants.
|
|
2388
|
+
* Name the control when the row leaves that ambiguous: an addon between two controls,
|
|
2389
|
+
* or one that belongs to a control further along.
|
|
2390
|
+
*/
|
|
2391
|
+
readonly control: i0.InputSignal<HTMLElement | FormControl<unknown> | undefined>;
|
|
2392
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
2393
|
+
protected onClick(event: MouseEvent): void;
|
|
1634
2394
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlAddon, never>;
|
|
1635
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormControlAddon, "tls-form-control-addon", never, {}, {}, never, ["*"], true, never>;
|
|
2395
|
+
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
2396
|
}
|
|
1637
2397
|
|
|
1638
2398
|
declare class FormControlGroup {
|
|
1639
2399
|
private _config;
|
|
2400
|
+
private readonly _elementRef;
|
|
2401
|
+
/**
|
|
2402
|
+
* The controls projected into the field. A control that reports itself this way can be
|
|
2403
|
+
* activated rather than merely focused, which is what lets a click on an addon open a
|
|
2404
|
+
* select's list instead of leaving it shut.
|
|
2405
|
+
*/
|
|
2406
|
+
private readonly _projectedControls;
|
|
1640
2407
|
readonly size: InputSignal<controlSize>;
|
|
1641
2408
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
1642
2409
|
protected readonly hostClasses: Signal<string[]>;
|
|
2410
|
+
/**
|
|
2411
|
+
* Hands over a control the field wraps, opening its panel if it has one. A field may
|
|
2412
|
+
* hold several — a country select beside a phone number, the two ends of a range — so
|
|
2413
|
+
* `origin` names the element the request came from (an addon that was clicked) and the
|
|
2414
|
+
* control nearest it is taken. Without an origin the first control is. Does nothing
|
|
2415
|
+
* when the field wraps no enabled control.
|
|
2416
|
+
*/
|
|
2417
|
+
activateControl(origin?: Element): void;
|
|
2418
|
+
/**
|
|
2419
|
+
* Every control the field can hand over, in document order.
|
|
2420
|
+
*
|
|
2421
|
+
* A projected control is taken at its word — it knows which of its elements takes
|
|
2422
|
+
* focus and what handing it over means. Anything else focusable is included as a bare
|
|
2423
|
+
* element, so a field assembled from native markup rather than the library's controls
|
|
2424
|
+
* behaves the same; elements already covered by a projected control are left out so
|
|
2425
|
+
* neither is counted twice. Addon contents are chrome around the value rather than the
|
|
2426
|
+
* value, and a disabled control cannot take focus — `:disabled` reads the element's
|
|
2427
|
+
* actual state, so it also covers one switched off by an ancestor `<fieldset>` rather
|
|
2428
|
+
* than by an attribute of its own.
|
|
2429
|
+
*/
|
|
2430
|
+
private _controls;
|
|
2431
|
+
/** Row order, so a request without an origin lands on the field's first control. */
|
|
2432
|
+
private _inDocumentOrder;
|
|
2433
|
+
/**
|
|
2434
|
+
* The control closest to `origin`, measured in places along the row rather than in
|
|
2435
|
+
* pixels, so it holds however the children are laid out. A tie — an addon sitting
|
|
2436
|
+
* between two controls — goes to the one that follows, the way a prefix belongs to
|
|
2437
|
+
* what comes after it. Distance is counted in document order, which runs start-to-end
|
|
2438
|
+
* in both directions, so this needs no separate right-to-left case.
|
|
2439
|
+
*/
|
|
2440
|
+
private _nearestControl;
|
|
1643
2441
|
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; }; }, {},
|
|
2442
|
+
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
2443
|
}
|
|
1646
2444
|
|
|
1647
2445
|
interface FormControlGroupConfig {
|
|
@@ -1713,6 +2511,11 @@ declare class FormItem {
|
|
|
1713
2511
|
displayErrors: i0.InputSignal<boolean>;
|
|
1714
2512
|
showRequiredMarker: i0.InputSignal<boolean>;
|
|
1715
2513
|
optionalText: i0.InputSignal<string | undefined>;
|
|
2514
|
+
/**
|
|
2515
|
+
* Character budget of the control's value. When set, a `current/max` counter is rendered on the
|
|
2516
|
+
* footer's trailing edge, tracking the projected control's string value as it is typed.
|
|
2517
|
+
*/
|
|
2518
|
+
maxLength: i0.InputSignal<number | undefined>;
|
|
1716
2519
|
protected isInvalid: Signal<boolean>;
|
|
1717
2520
|
protected showRequired: Signal<boolean>;
|
|
1718
2521
|
protected showOptional: Signal<boolean>;
|
|
@@ -1721,12 +2524,19 @@ declare class FormItem {
|
|
|
1721
2524
|
protected labelContext: Signal<FormItemLabelContext>;
|
|
1722
2525
|
protected labelFor: Signal<string | null>;
|
|
1723
2526
|
protected hostClasses: Signal<string[]>;
|
|
2527
|
+
protected hasCounter: Signal<boolean>;
|
|
2528
|
+
/**
|
|
2529
|
+
* Length of the control's current value. Only a string value has a character count; any
|
|
2530
|
+
* other control type under a counter reads as empty rather than failing.
|
|
2531
|
+
*/
|
|
2532
|
+
protected characterCount: Signal<number>;
|
|
2533
|
+
protected overLimit: Signal<boolean>;
|
|
1724
2534
|
protected errorMessages: Signal<string[]>;
|
|
1725
2535
|
protected firstErrorMessage: Signal<string | null>;
|
|
1726
2536
|
constructor();
|
|
1727
2537
|
private _getErrorMessages;
|
|
1728
2538
|
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>;
|
|
2539
|
+
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; }; }, {}, ["control", "labelTemplate"], ["*"], true, never>;
|
|
1730
2540
|
}
|
|
1731
2541
|
|
|
1732
2542
|
declare const FORM_ITEM_CONFIG: InjectionToken<FormItemConfig>;
|
|
@@ -1846,29 +2656,381 @@ interface AutocompleteConfig {
|
|
|
1846
2656
|
/** Fixed height of an option row, in pixels, when the panel is virtualized. */
|
|
1847
2657
|
virtualScrollItemSize: number;
|
|
1848
2658
|
}
|
|
1849
|
-
declare const DEFAULT_AUTOCOMPLETE_CONFIG: AutocompleteConfig;
|
|
1850
|
-
|
|
1851
|
-
declare const AUTOCOMPLETE_CONFIG: InjectionToken<AutocompleteConfig>;
|
|
2659
|
+
declare const DEFAULT_AUTOCOMPLETE_CONFIG: AutocompleteConfig;
|
|
2660
|
+
|
|
2661
|
+
declare const AUTOCOMPLETE_CONFIG: InjectionToken<AutocompleteConfig>;
|
|
2662
|
+
|
|
2663
|
+
interface CheckboxConfig {
|
|
2664
|
+
}
|
|
2665
|
+
declare const DEFAULT_CHECKBOX_CONFIG: CheckboxConfig;
|
|
2666
|
+
|
|
2667
|
+
declare const CHECKBOX_CONFIG: InjectionToken<CheckboxConfig>;
|
|
2668
|
+
|
|
2669
|
+
declare class Checkbox extends CheckboxFormControl {
|
|
2670
|
+
private _config;
|
|
2671
|
+
protected CLASS_NAME: string;
|
|
2672
|
+
readonly supportsLabelFor = true;
|
|
2673
|
+
indeterminate: ModelSignal<boolean>;
|
|
2674
|
+
readonly checked: ModelSignal<boolean>;
|
|
2675
|
+
readonly tabindex: InputSignal<string | number>;
|
|
2676
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
2677
|
+
protected toggle(event?: Event): void;
|
|
2678
|
+
protected onKeyboardToggle(event: Event): void;
|
|
2679
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Checkbox, never>;
|
|
2680
|
+
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>;
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
/** Text notation a color can be displayed and typed in. */
|
|
2684
|
+
type colorFormat = 'hex' | 'rgb' | 'hsl';
|
|
2685
|
+
/** Letter case hex notation is displayed in; committed values stay lowercase. */
|
|
2686
|
+
type hexCase = 'lower' | 'upper';
|
|
2687
|
+
/** Color in RGB space: channels 0–255, alpha 0–1. */
|
|
2688
|
+
interface Rgba {
|
|
2689
|
+
red: number;
|
|
2690
|
+
green: number;
|
|
2691
|
+
blue: number;
|
|
2692
|
+
alpha: number;
|
|
2693
|
+
}
|
|
2694
|
+
/**
|
|
2695
|
+
* Color in HSV (hue–saturation–value) space: hue 0–360, the rest 0–1.
|
|
2696
|
+
* HSV keeps hue meaningful at zero saturation or value, which is why the
|
|
2697
|
+
* picker holds its working state in this space.
|
|
2698
|
+
*/
|
|
2699
|
+
interface Hsva {
|
|
2700
|
+
hue: number;
|
|
2701
|
+
saturation: number;
|
|
2702
|
+
value: number;
|
|
2703
|
+
alpha: number;
|
|
2704
|
+
}
|
|
2705
|
+
/**
|
|
2706
|
+
* Shape of the platform's EyeDropper API (not yet in the DOM lib typings):
|
|
2707
|
+
* `open()` resolves with the picked screen color once the user clicks.
|
|
2708
|
+
*/
|
|
2709
|
+
interface EyeDropperConstructor {
|
|
2710
|
+
new (): {
|
|
2711
|
+
open(): Promise<{
|
|
2712
|
+
sRGBHex: string;
|
|
2713
|
+
}>;
|
|
2714
|
+
};
|
|
2715
|
+
}
|
|
2716
|
+
/** Color in HSL space: hue 0–360, the rest 0–1. */
|
|
2717
|
+
interface Hsla {
|
|
2718
|
+
hue: number;
|
|
2719
|
+
saturation: number;
|
|
2720
|
+
lightness: number;
|
|
2721
|
+
alpha: number;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
/**
|
|
2725
|
+
* Color form field: a text input for typing a color (hex/rgb()/hsl(), always
|
|
2726
|
+
* committed as lowercase hex) with a swatch button on the inline-start that
|
|
2727
|
+
* opens a `tls-color-picker` panel in a popover. The panel and the field stay
|
|
2728
|
+
* live-synced while the popover is open.
|
|
2729
|
+
*/
|
|
2730
|
+
declare class ColorInput extends ValueFormControl<string> {
|
|
2731
|
+
private readonly _config;
|
|
2732
|
+
private readonly _pickerConfig;
|
|
2733
|
+
readonly supportsLabelFor = true;
|
|
2734
|
+
readonly value: ModelSignal<string>;
|
|
2735
|
+
/** Enables the alpha slider in the panel; committed hex gains an alpha channel. */
|
|
2736
|
+
readonly alpha: InputSignalWithTransform<boolean, unknown>;
|
|
2737
|
+
/** Hex colors offered as one-tap swatches inside the panel. */
|
|
2738
|
+
readonly presets: InputSignal<string[]>;
|
|
2739
|
+
/** Notations the panel's readout may display; forwarded to the embedded picker. */
|
|
2740
|
+
readonly formats: InputSignal<colorFormat[]>;
|
|
2741
|
+
/** Letter case the field and panel readout display hex in; the emitted value stays lowercase. */
|
|
2742
|
+
readonly hexCase: InputSignal<hexCase>;
|
|
2743
|
+
/**
|
|
2744
|
+
* Confines the value to the panel: the field rejects typing and instead
|
|
2745
|
+
* opens the picker on click or Enter/Space/ArrowDown. Unlike `readonly`,
|
|
2746
|
+
* the control stays fully interactive — only the free-text entry goes.
|
|
2747
|
+
*/
|
|
2748
|
+
readonly pickerOnly: InputSignalWithTransform<boolean, unknown>;
|
|
2749
|
+
readonly placeholder: InputSignal<string>;
|
|
2750
|
+
readonly size: InputSignal<controlSize>;
|
|
2751
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
2752
|
+
private readonly _popoverComponent;
|
|
2753
|
+
private readonly _trigger;
|
|
2754
|
+
protected readonly labels: _thalassic_ui.ColorInputLabels;
|
|
2755
|
+
/** An empty or unparsable value renders as a fully transparent swatch. */
|
|
2756
|
+
protected readonly swatchColor: Signal<string>;
|
|
2757
|
+
/** Field text: the value, hex-cased for display; the model itself stays lowercase. */
|
|
2758
|
+
protected readonly displayValue: Signal<string>;
|
|
2759
|
+
/** The panel needs a concrete color to start from even while the field is empty. */
|
|
2760
|
+
protected readonly pickerValue: Signal<string>;
|
|
2761
|
+
activate(): void;
|
|
2762
|
+
protected onPickerValueChange(next: string): void;
|
|
2763
|
+
protected onFieldClick(): void;
|
|
2764
|
+
protected onFieldKeydown(event: KeyboardEvent): void;
|
|
2765
|
+
protected onFieldBlur(event: Event): void;
|
|
2766
|
+
/** A readonly control still opens the panel — the picker inside is readonly too. */
|
|
2767
|
+
private _openPanel;
|
|
2768
|
+
private _commitField;
|
|
2769
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorInput, never>;
|
|
2770
|
+
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>;
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
/** Accessible names for the control's inner elements. */
|
|
2774
|
+
interface ColorInputLabels {
|
|
2775
|
+
openPicker: string;
|
|
2776
|
+
/** Name of the popover dialog holding the picker panel. */
|
|
2777
|
+
panel: string;
|
|
2778
|
+
}
|
|
2779
|
+
interface ColorInputConfig {
|
|
2780
|
+
size: controlSize;
|
|
2781
|
+
fluid: boolean;
|
|
2782
|
+
placeholder: string;
|
|
2783
|
+
labels: ColorInputLabels;
|
|
2784
|
+
}
|
|
2785
|
+
declare const DEFAULT_COLOR_INPUT_CONFIG: ColorInputConfig;
|
|
2786
|
+
|
|
2787
|
+
declare const COLOR_INPUT_CONFIG: InjectionToken<ColorInputConfig>;
|
|
2788
|
+
|
|
2789
|
+
/**
|
|
2790
|
+
* Standalone color panel: a 2-D saturation/brightness surface, hue and
|
|
2791
|
+
* (opt-in) alpha sliders, an editable readout that accepts hex/rgb()/hsl()
|
|
2792
|
+
* notation, preset swatches, and — where the platform offers one — an
|
|
2793
|
+
* eyedropper. Reads and writes a lowercase hex string (`#rrggbb`, or
|
|
2794
|
+
* `#rrggbbaa` when `alpha` is enabled) while holding its working state in HSV,
|
|
2795
|
+
* so the chosen hue survives passes through black, white, and gray.
|
|
2796
|
+
*/
|
|
2797
|
+
declare class ColorPicker extends ValueFormControl<string> {
|
|
2798
|
+
private readonly _config;
|
|
2799
|
+
private readonly _directionality;
|
|
2800
|
+
protected readonly CLASS_NAME = "tls-color-picker";
|
|
2801
|
+
readonly value: ModelSignal<string>;
|
|
2802
|
+
/** Enables the alpha slider; the emitted hex gains an alpha channel (`#rrggbbaa`). */
|
|
2803
|
+
readonly alpha: InputSignalWithTransform<boolean, unknown>;
|
|
2804
|
+
readonly size: InputSignal<controlSize>;
|
|
2805
|
+
/**
|
|
2806
|
+
* Notations the readout may display, in cycle order; the first entry is the
|
|
2807
|
+
* starting format. A single entry pins the readout and hides the toggle.
|
|
2808
|
+
*/
|
|
2809
|
+
readonly formats: InputSignal<colorFormat[]>;
|
|
2810
|
+
/** Hex colors offered as one-tap swatches below the readout. */
|
|
2811
|
+
readonly presets: InputSignal<string[]>;
|
|
2812
|
+
/** Letter case the hex readout displays in; the emitted value stays lowercase. */
|
|
2813
|
+
readonly hexCase: InputSignal<hexCase>;
|
|
2814
|
+
private readonly _svThumb;
|
|
2815
|
+
private readonly _svArea;
|
|
2816
|
+
private readonly _chosenFormat;
|
|
2817
|
+
protected readonly labels: _thalassic_ui.ColorPickerLabels;
|
|
2818
|
+
/** Present only while the platform implements the EyeDropper API. */
|
|
2819
|
+
protected readonly supportsEyeDropper: boolean;
|
|
2820
|
+
private readonly _hsv;
|
|
2821
|
+
private readonly _dragging;
|
|
2822
|
+
/** Guards the value→HSV sync against re-parsing a hex this picker just emitted. */
|
|
2823
|
+
private _lastEmittedHex;
|
|
2824
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
2825
|
+
protected readonly hue: Signal<number>;
|
|
2826
|
+
protected readonly alphaPercent: Signal<number>;
|
|
2827
|
+
protected readonly saturationPercent: Signal<number>;
|
|
2828
|
+
protected readonly brightnessPercent: Signal<number>;
|
|
2829
|
+
protected readonly hex: Signal<string>;
|
|
2830
|
+
/** Fully saturated, fully bright color of the current hue — the SV area's base tint. */
|
|
2831
|
+
protected readonly hueColor: Signal<string>;
|
|
2832
|
+
/** The picked color at full opacity — what the alpha slider fades up to. */
|
|
2833
|
+
protected readonly opaqueColor: Signal<string>;
|
|
2834
|
+
protected readonly svValueText: Signal<string>;
|
|
2835
|
+
/** The toggled format while it stays allowed; otherwise the first allowed one. */
|
|
2836
|
+
protected readonly activeFormat: Signal<colorFormat>;
|
|
2837
|
+
protected readonly readoutText: Signal<string>;
|
|
2838
|
+
protected readonly tabindex: Signal<number>;
|
|
2839
|
+
constructor();
|
|
2840
|
+
protected onSvPointerDown(event: PointerEvent): void;
|
|
2841
|
+
protected onSvPointerMove(event: PointerEvent): void;
|
|
2842
|
+
protected onSvPointerUp(event: PointerEvent): void;
|
|
2843
|
+
protected onSvPointerCancel(): void;
|
|
2844
|
+
protected onSvKeydown(event: KeyboardEvent): void;
|
|
2845
|
+
protected onHueChange(hue: number): void;
|
|
2846
|
+
protected onAlphaChange(percent: number): void;
|
|
2847
|
+
protected onReadoutKeydown(event: KeyboardEvent): void;
|
|
2848
|
+
protected onReadoutBlur(event: Event): void;
|
|
2849
|
+
protected cycleFormat(): void;
|
|
2850
|
+
protected onPresetChange(preset: string | null): void;
|
|
2851
|
+
protected openEyeDropper(): Promise<void>;
|
|
2852
|
+
private _commit;
|
|
2853
|
+
private _commitReadout;
|
|
2854
|
+
private _updateFromPointer;
|
|
2855
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPicker, never>;
|
|
2856
|
+
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>;
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
/** Accessible names for the picker's inner controls. */
|
|
2860
|
+
interface ColorPickerLabels {
|
|
2861
|
+
saturationBrightness: string;
|
|
2862
|
+
colorValue: string;
|
|
2863
|
+
switchFormat: string;
|
|
2864
|
+
eyedropper: string;
|
|
2865
|
+
presets: string;
|
|
2866
|
+
}
|
|
2867
|
+
interface ColorPickerConfig {
|
|
2868
|
+
size: controlSize;
|
|
2869
|
+
/**
|
|
2870
|
+
* Notations the readout may display, in cycle order; the first entry is the
|
|
2871
|
+
* starting format. A single entry pins the readout and hides the toggle.
|
|
2872
|
+
*/
|
|
2873
|
+
formats: colorFormat[];
|
|
2874
|
+
/** Letter case hex notation is displayed in; committed values stay lowercase. */
|
|
2875
|
+
hexCase: hexCase;
|
|
2876
|
+
labels: ColorPickerLabels;
|
|
2877
|
+
}
|
|
2878
|
+
declare const DEFAULT_COLOR_PICKER_CONFIG: ColorPickerConfig;
|
|
2879
|
+
|
|
2880
|
+
/** Fallback color when the bound value is absent or unparsable. */
|
|
2881
|
+
declare const COLOR_PICKER_DEFAULT_VALUE = "#000000";
|
|
2882
|
+
/** Saturation/brightness change per arrow-key press, as a 0–1 ratio. */
|
|
2883
|
+
declare const SV_KEYBOARD_STEP = 0.01;
|
|
2884
|
+
/** Saturation/brightness change per shift-arrow press, as a 0–1 ratio. */
|
|
2885
|
+
declare const SV_KEYBOARD_STEP_LARGE = 0.1;
|
|
2886
|
+
/** Order the readout's format toggle cycles through. */
|
|
2887
|
+
declare const FORMAT_CYCLE: colorFormat[];
|
|
2888
|
+
|
|
2889
|
+
declare const COLOR_PICKER_CONFIG: InjectionToken<ColorPickerConfig>;
|
|
2890
|
+
|
|
2891
|
+
/**
|
|
2892
|
+
* Parses a color from hex (`#rgb`, `#rgba`, `#rrggbb`, `#rrggbbaa`, hash
|
|
2893
|
+
* optional), `rgb()`/`rgba()`, or `hsl()`/`hsla()` notation. Out-of-range
|
|
2894
|
+
* channels are clamped; unrecognized input yields null.
|
|
2895
|
+
*/
|
|
2896
|
+
declare function parseColor(text: string): Rgba | null;
|
|
2897
|
+
/** Formats a color as lowercase `#rrggbb`, or `#rrggbbaa` when `includeAlpha`. */
|
|
2898
|
+
declare function rgbaToHex(rgba: Rgba, includeAlpha?: boolean): string;
|
|
2899
|
+
/**
|
|
2900
|
+
* One color written two ways reduced to a single form, so notations can be
|
|
2901
|
+
* compared: lowercase `#rrggbb`, or `#rrggbbaa` when the color is translucent.
|
|
2902
|
+
* Null for anything that is not a readable color — a custom property that only
|
|
2903
|
+
* the browser can resolve, or a string that is not a color at all.
|
|
2904
|
+
*/
|
|
2905
|
+
declare function canonicalHex(text: string): string | null;
|
|
2906
|
+
declare function rgbToHsv(rgba: Rgba): Hsva;
|
|
2907
|
+
declare function hsvToRgb(hsva: Hsva): Rgba;
|
|
2908
|
+
declare function hsvToHsl(hsva: Hsva): Hsla;
|
|
2909
|
+
declare function hslToHsv(hsla: Hsla): Hsva;
|
|
2910
|
+
/**
|
|
2911
|
+
* Foreground — black or white — that reads best against the given color:
|
|
2912
|
+
* white on dark and mid-tone saturated colors, black on light ones.
|
|
2913
|
+
*/
|
|
2914
|
+
declare function contrastForeground(rgba: Rgba): string;
|
|
2915
|
+
/** WCAG relative luminance (0–1) of a color; alpha is ignored. */
|
|
2916
|
+
declare function relativeLuminance(rgba: Rgba): number;
|
|
2917
|
+
/** Formats as `rgb(r, g, b)`, or `rgba(r, g, b, a)` when translucent. */
|
|
2918
|
+
declare function formatRgb(rgba: Rgba): string;
|
|
2919
|
+
/** Formats as `hsl(h, s%, l%)`, or `hsla(h, s%, l%, a)` when translucent. */
|
|
2920
|
+
declare function formatHsl(hsla: Hsla): string;
|
|
2921
|
+
|
|
2922
|
+
/** Color channel a range slider drives. */
|
|
2923
|
+
type colorRangeChannel = 'hue' | 'alpha';
|
|
2924
|
+
/** Control sizes plus an extra-small variant for dense inline use. */
|
|
2925
|
+
type colorRangeSize = 'xs' | controlSize;
|
|
2926
|
+
|
|
2927
|
+
/**
|
|
2928
|
+
* Single-channel color slider: a native range input over a gradient track.
|
|
2929
|
+
* The `hue` channel spans 0–360 degrees; the `alpha` channel spans 0–100
|
|
2930
|
+
* percent and fades from transparent to the reference `color` over a
|
|
2931
|
+
* transparency checkerboard.
|
|
2932
|
+
*/
|
|
2933
|
+
declare class ColorRange extends ValueFormControl<number> {
|
|
2934
|
+
private readonly _config;
|
|
2935
|
+
protected readonly CLASS_NAME = "tls-color-range";
|
|
2936
|
+
readonly supportsLabelFor = true;
|
|
2937
|
+
readonly value: ModelSignal<number>;
|
|
2938
|
+
readonly channel: InputSignal<colorRangeChannel>;
|
|
2939
|
+
/** Reference color the alpha track fades up to; ignored by the hue channel. */
|
|
2940
|
+
readonly color: InputSignal<string>;
|
|
2941
|
+
readonly size: InputSignal<colorRangeSize>;
|
|
2942
|
+
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
2943
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
2944
|
+
protected readonly max: Signal<number>;
|
|
2945
|
+
/**
|
|
2946
|
+
* The thumb previews what it points at: the pure hue at the thumb's position,
|
|
2947
|
+
* or — on the alpha channel — the reference color.
|
|
2948
|
+
*/
|
|
2949
|
+
protected readonly thumbColor: Signal<string>;
|
|
2950
|
+
protected readonly label: Signal<string>;
|
|
2951
|
+
protected onInput(event: Event): void;
|
|
2952
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorRange, never>;
|
|
2953
|
+
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>;
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
/** Default accessible names, per channel. */
|
|
2957
|
+
interface ColorRangeLabels {
|
|
2958
|
+
hue: string;
|
|
2959
|
+
alpha: string;
|
|
2960
|
+
}
|
|
2961
|
+
interface ColorRangeConfig {
|
|
2962
|
+
size: colorRangeSize;
|
|
2963
|
+
labels: ColorRangeLabels;
|
|
2964
|
+
}
|
|
2965
|
+
declare const DEFAULT_COLOR_RANGE_CONFIG: ColorRangeConfig;
|
|
2966
|
+
|
|
2967
|
+
/** Hue channel scale: degrees on the color wheel. */
|
|
2968
|
+
declare const HUE_MAX = 360;
|
|
2969
|
+
/** Alpha channel scale: whole percent. */
|
|
2970
|
+
declare const ALPHA_MAX = 100;
|
|
2971
|
+
|
|
2972
|
+
declare const COLOR_RANGE_CONFIG: InjectionToken<ColorRangeConfig>;
|
|
2973
|
+
|
|
2974
|
+
/**
|
|
2975
|
+
* Single-select list of color swatches: a WAI-ARIA listbox with roving tabindex,
|
|
2976
|
+
* where every offered color is a one-tap option and the selected one is ringed.
|
|
2977
|
+
*
|
|
2978
|
+
* Options follow the same contract the other selection controls use — a list of
|
|
2979
|
+
* plain colors, or objects read through `optionValue` / `optionLabel` /
|
|
2980
|
+
* `optionColor`. Splitting the stored value from the color drawn is what lets a
|
|
2981
|
+
* theme token be offered: a swatch can paint `var(--color-blue)` while the value
|
|
2982
|
+
* committed stays whatever identifies that choice to the consumer.
|
|
2983
|
+
*
|
|
2984
|
+
* A value matching no option simply leaves every swatch unselected. Values are
|
|
2985
|
+
* compared as they are given, except that two colors written differently
|
|
2986
|
+
* (`#FFF` and `#ffffff`) count as the same choice.
|
|
2987
|
+
*/
|
|
2988
|
+
declare class ColorSwatchPicker<T = unknown, V = string> extends ValueFormControl<V | null> {
|
|
2989
|
+
private readonly _config;
|
|
2990
|
+
protected readonly CLASS_NAME = "tls-color-swatch-picker";
|
|
2991
|
+
readonly value: ModelSignal<V | null>;
|
|
2992
|
+
/** Colors offered as swatches: plain color strings, or objects the accessors below read. */
|
|
2993
|
+
readonly options: InputSignal<optionInput<T>[]>;
|
|
2994
|
+
readonly optionLabel: InputSignal<keyof T | undefined>;
|
|
2995
|
+
readonly optionValue: InputSignal<keyof T | undefined>;
|
|
2996
|
+
readonly optionDisabled: InputSignal<keyof T | undefined>;
|
|
2997
|
+
/**
|
|
2998
|
+
* Property holding the color a swatch paints — any notation CSS accepts, a
|
|
2999
|
+
* custom property included. Defaults to the option's value, which is what a
|
|
3000
|
+
* list of plain colors wants.
|
|
3001
|
+
*/
|
|
3002
|
+
readonly optionColor: InputSignal<keyof T | undefined>;
|
|
3003
|
+
/** Size of each swatch. */
|
|
3004
|
+
readonly size: InputSignal<size>;
|
|
3005
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
3006
|
+
/** Accessible name for the swatch list; `aria-labelledby` wins over it per the ARIA spec. */
|
|
3007
|
+
protected readonly label: Signal<string>;
|
|
3008
|
+
protected readonly normalizedOptions: Signal<Option<V>[]>;
|
|
3009
|
+
/**
|
|
3010
|
+
* The listbox's selection, as the subset of the options denoting the current
|
|
3011
|
+
* value — at most one, since a swatch list commits a single color.
|
|
3012
|
+
*/
|
|
3013
|
+
protected readonly selectedValues: Signal<V[]>;
|
|
3014
|
+
protected onSelectionChange(values: V[]): void;
|
|
3015
|
+
/** The color the option's swatch paints. */
|
|
3016
|
+
protected color(option: Option<V>): string;
|
|
3017
|
+
private _matches;
|
|
3018
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorSwatchPicker<any, any>, never>;
|
|
3019
|
+
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>;
|
|
3020
|
+
}
|
|
1852
3021
|
|
|
1853
|
-
|
|
3022
|
+
/** Default accessible names. */
|
|
3023
|
+
interface ColorSwatchPickerLabels {
|
|
3024
|
+
/** Accessible name of the swatch list, used when the consumer supplies none. */
|
|
3025
|
+
list: string;
|
|
1854
3026
|
}
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
declare class Checkbox extends CheckboxFormControl {
|
|
1860
|
-
private _config;
|
|
1861
|
-
protected CLASS_NAME: string;
|
|
1862
|
-
readonly supportsLabelFor = true;
|
|
1863
|
-
indeterminate: ModelSignal<boolean>;
|
|
1864
|
-
readonly checked: ModelSignal<boolean>;
|
|
1865
|
-
readonly tabindex: InputSignal<string | number>;
|
|
1866
|
-
protected readonly hostClasses: Signal<string[]>;
|
|
1867
|
-
protected toggle(event?: Event): void;
|
|
1868
|
-
protected onKeyboardToggle(event: Event): void;
|
|
1869
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Checkbox, never>;
|
|
1870
|
-
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>;
|
|
3027
|
+
interface ColorSwatchPickerConfig {
|
|
3028
|
+
size: size;
|
|
3029
|
+
labels: ColorSwatchPickerLabels;
|
|
1871
3030
|
}
|
|
3031
|
+
declare const DEFAULT_COLOR_SWATCH_PICKER_CONFIG: ColorSwatchPickerConfig;
|
|
3032
|
+
|
|
3033
|
+
declare const COLOR_SWATCH_PICKER_CONFIG: InjectionToken<ColorSwatchPickerConfig>;
|
|
1872
3034
|
|
|
1873
3035
|
type dateTimePickerMode = 'calendar' | 'month-picker' | 'year-picker' | 'time-picker' | 'date-time';
|
|
1874
3036
|
|
|
@@ -1888,18 +3050,28 @@ declare class DateTimePicker extends ValueFormControl<Date | null> {
|
|
|
1888
3050
|
readonly yearsPerPage: InputSignal<number>;
|
|
1889
3051
|
readonly weekStartsOn: InputSignal<Day>;
|
|
1890
3052
|
readonly weekDays: InputSignal<string[]>;
|
|
3053
|
+
/** Earliest selectable day, inclusive; the calendar disables earlier days. */
|
|
3054
|
+
readonly minDate: InputSignal<Date | null>;
|
|
3055
|
+
/** Latest selectable day, inclusive; the calendar disables later days. */
|
|
3056
|
+
readonly maxDate: InputSignal<Date | null>;
|
|
1891
3057
|
protected readonly viewDate: WritableSignal<Date>;
|
|
1892
3058
|
protected readonly activeView: WritableSignal<ActiveView>;
|
|
1893
3059
|
protected readonly hostClasses: Signal<string[]>;
|
|
1894
3060
|
protected readonly triggerLabel: Signal<string>;
|
|
1895
3061
|
constructor();
|
|
3062
|
+
/**
|
|
3063
|
+
* Focus lands on the trigger and the picker opens with it: a date is chosen in the
|
|
3064
|
+
* calendar, so handing the control over without showing the calendar would stop one
|
|
3065
|
+
* step short of what was asked for.
|
|
3066
|
+
*/
|
|
3067
|
+
activate(): void;
|
|
1896
3068
|
protected onViewDateChange(date: Date): void;
|
|
1897
3069
|
protected onDaySelect(date: Date): void;
|
|
1898
3070
|
protected onMonthSelect(date: Date): void;
|
|
1899
3071
|
protected onYearSelect(date: Date): void;
|
|
1900
3072
|
protected onTimeChange(date: Date): void;
|
|
1901
3073
|
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>;
|
|
3074
|
+
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
3075
|
}
|
|
1904
3076
|
|
|
1905
3077
|
interface DateTimePickerConfig {
|
|
@@ -2100,6 +3272,14 @@ declare const DEFAULT_FILE_INPUT_CONFIG: FileInputConfig;
|
|
|
2100
3272
|
|
|
2101
3273
|
declare const FILE_INPUT_CONFIG: InjectionToken<FileInputConfig>;
|
|
2102
3274
|
|
|
3275
|
+
/**
|
|
3276
|
+
* How the field presents itself at rest. `outlined` is the bordered field;
|
|
3277
|
+
* `plain` is dressed as the text around it — no border or surface until it is
|
|
3278
|
+
* hovered or focused — for a value that reads as a title or a label of its
|
|
3279
|
+
* own, edited in place.
|
|
3280
|
+
*/
|
|
3281
|
+
type inputVariant = 'outlined' | 'plain';
|
|
3282
|
+
|
|
2103
3283
|
declare class Input extends ValueFormControl<string> {
|
|
2104
3284
|
private _config;
|
|
2105
3285
|
readonly supportsLabelFor = true;
|
|
@@ -2107,28 +3287,42 @@ declare class Input extends ValueFormControl<string> {
|
|
|
2107
3287
|
readonly value: ModelSignal<string>;
|
|
2108
3288
|
readonly placeholder: InputSignal<string>;
|
|
2109
3289
|
readonly size: InputSignal<controlSize>;
|
|
3290
|
+
readonly variant: InputSignal<inputVariant>;
|
|
2110
3291
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
3292
|
+
/**
|
|
3293
|
+
* Sizes the field to the text it holds — or to its placeholder while empty —
|
|
3294
|
+
* instead of to a set width, so whatever follows the field follows the text.
|
|
3295
|
+
*/
|
|
3296
|
+
readonly autosize: InputSignalWithTransform<boolean, unknown>;
|
|
3297
|
+
/**
|
|
3298
|
+
* The most characters the field accepts, enforced by the browser: typing stops
|
|
3299
|
+
* at the limit and a paste is cut to it. Unset, the field takes any length.
|
|
3300
|
+
*/
|
|
3301
|
+
readonly maxLength: InputSignal<number | undefined>;
|
|
2111
3302
|
protected readonly classes: Signal<string[]>;
|
|
2112
3303
|
protected onInput(event: Event): void;
|
|
2113
3304
|
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>;
|
|
3305
|
+
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; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
2115
3306
|
}
|
|
2116
3307
|
|
|
2117
3308
|
interface InputConfig {
|
|
2118
3309
|
size: controlSize;
|
|
3310
|
+
variant: inputVariant;
|
|
2119
3311
|
type: string;
|
|
2120
3312
|
placeholder: string;
|
|
2121
3313
|
fluid: boolean;
|
|
3314
|
+
autosize: boolean;
|
|
2122
3315
|
}
|
|
2123
3316
|
declare const DEFAULT_INPUT_CONFIG: InputConfig;
|
|
2124
3317
|
|
|
2125
3318
|
declare class InputDirective {
|
|
2126
3319
|
private _config;
|
|
2127
3320
|
readonly size: InputSignal<controlSize>;
|
|
3321
|
+
readonly variant: InputSignal<inputVariant>;
|
|
2128
3322
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
2129
3323
|
protected readonly hostClasses: Signal<string[]>;
|
|
2130
3324
|
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>;
|
|
3325
|
+
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
3326
|
}
|
|
2133
3327
|
|
|
2134
3328
|
declare const INPUT_CONFIG: InjectionToken<InputConfig>;
|
|
@@ -2139,6 +3333,7 @@ declare class InputNumber extends ValueFormControl<number | null> {
|
|
|
2139
3333
|
readonly value: ModelSignal<number | null>;
|
|
2140
3334
|
readonly placeholder: InputSignal<string>;
|
|
2141
3335
|
readonly size: InputSignal<controlSize>;
|
|
3336
|
+
readonly variant: InputSignal<inputVariant>;
|
|
2142
3337
|
readonly fluid: InputSignalWithTransform<boolean, unknown>;
|
|
2143
3338
|
readonly min: InputSignal<number | undefined>;
|
|
2144
3339
|
readonly max: InputSignal<number | undefined>;
|
|
@@ -2153,11 +3348,12 @@ declare class InputNumber extends ValueFormControl<number | null> {
|
|
|
2153
3348
|
*/
|
|
2154
3349
|
protected onChange(event: Event): void;
|
|
2155
3350
|
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>;
|
|
3351
|
+
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
3352
|
}
|
|
2158
3353
|
|
|
2159
3354
|
interface InputNumberConfig {
|
|
2160
3355
|
size: controlSize;
|
|
3356
|
+
variant: inputVariant;
|
|
2161
3357
|
placeholder: string;
|
|
2162
3358
|
fluid: boolean;
|
|
2163
3359
|
step: number;
|
|
@@ -2267,6 +3463,31 @@ declare const DEFAULT_PASSWORD_CONFIG: PasswordConfig;
|
|
|
2267
3463
|
|
|
2268
3464
|
declare const PASSWORD_CONFIG: InjectionToken<PasswordConfig>;
|
|
2269
3465
|
|
|
3466
|
+
/**
|
|
3467
|
+
* The field-shaped shell shared by controls that keep their value behind a
|
|
3468
|
+
* panel: an input-like frame with the current value on the inline-start and a
|
|
3469
|
+
* chevron on the inline-end that turns while the panel is open. Purely
|
|
3470
|
+
* presentational — it renders the shell and a focusable trigger, and the
|
|
3471
|
+
* consumer attaches the panel itself (a `tlsMenuTrigger`, a popover) and
|
|
3472
|
+
* reports its state back through `open`, so any chooser reads as the field it
|
|
3473
|
+
* is rather than as a button.
|
|
3474
|
+
*
|
|
3475
|
+
* A control whose panel *is* a flat option list should be a `tls-select`; this
|
|
3476
|
+
* shell serves the choosers a select cannot express.
|
|
3477
|
+
*/
|
|
3478
|
+
declare class PickerField {
|
|
3479
|
+
/** Whether the consumer's panel is open; turns the chevron and keeps the frame active. */
|
|
3480
|
+
readonly open: i0.InputSignalWithTransform<boolean, unknown>;
|
|
3481
|
+
readonly size: InputSignal<controlSize>;
|
|
3482
|
+
readonly fluid: i0.InputSignalWithTransform<boolean, unknown>;
|
|
3483
|
+
readonly disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
3484
|
+
/** Accessible name for the trigger, for a value face that is not self-describing. */
|
|
3485
|
+
readonly ariaLabel: InputSignal<string | undefined>;
|
|
3486
|
+
protected readonly hostClasses: i0.Signal<string[]>;
|
|
3487
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PickerField, never>;
|
|
3488
|
+
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>;
|
|
3489
|
+
}
|
|
3490
|
+
|
|
2270
3491
|
type pinInputType = 'numeric' | 'alphanumeric' | RegExp;
|
|
2271
3492
|
|
|
2272
3493
|
declare class PinInput extends ValueFormControl<string> {
|
|
@@ -2649,10 +3870,15 @@ declare class Textarea extends ValueFormControl<string> {
|
|
|
2649
3870
|
readonly resize: InputSignal<textareaResize>;
|
|
2650
3871
|
readonly autosize: InputSignalWithTransform<boolean, unknown>;
|
|
2651
3872
|
readonly maxRows: InputSignalWithTransform<number, unknown>;
|
|
3873
|
+
/**
|
|
3874
|
+
* The most characters the field accepts, enforced by the browser: typing stops
|
|
3875
|
+
* at the limit and a paste is cut to it. Unset, the field takes any length.
|
|
3876
|
+
*/
|
|
3877
|
+
readonly maxLength: InputSignal<number | undefined>;
|
|
2652
3878
|
protected readonly classes: Signal<string[]>;
|
|
2653
3879
|
protected onInput(event: Event): void;
|
|
2654
3880
|
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>;
|
|
3881
|
+
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
3882
|
}
|
|
2657
3883
|
|
|
2658
3884
|
declare const TEXTAREA_CONFIG: InjectionToken<TextareaConfig>;
|
|
@@ -2716,7 +3942,7 @@ declare class ToggleButton extends CheckboxFormControl {
|
|
|
2716
3942
|
protected toggle(): void;
|
|
2717
3943
|
protected onKeyboardToggle(event: Event): void;
|
|
2718
3944
|
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,
|
|
3945
|
+
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
3946
|
}
|
|
2721
3947
|
|
|
2722
3948
|
interface ToggleButtonConfig {
|
|
@@ -2836,6 +4062,312 @@ declare const DEFAULT_IMAGE_COMPARE_CONFIG: ImageCompareConfig;
|
|
|
2836
4062
|
|
|
2837
4063
|
declare const IMAGE_COMPARE_CONFIG: InjectionToken<ImageCompareConfig>;
|
|
2838
4064
|
|
|
4065
|
+
interface ImagePreviewLabels {
|
|
4066
|
+
/** Accessible name of the viewer surface itself. */
|
|
4067
|
+
title: string;
|
|
4068
|
+
close: string;
|
|
4069
|
+
previous: string;
|
|
4070
|
+
next: string;
|
|
4071
|
+
zoomIn: string;
|
|
4072
|
+
zoomOut: string;
|
|
4073
|
+
resetZoom: string;
|
|
4074
|
+
/** Position within the group. `{index}` and `{total}` are substituted. */
|
|
4075
|
+
counter: string;
|
|
4076
|
+
/** Shown in place of the image when it fails to load. */
|
|
4077
|
+
error: string;
|
|
4078
|
+
}
|
|
4079
|
+
interface ImagePreviewConfig {
|
|
4080
|
+
/** Whether a close button is rendered. */
|
|
4081
|
+
closeable: boolean;
|
|
4082
|
+
/** Whether a click on the scrim around the image dismisses the viewer. */
|
|
4083
|
+
backdropClose: boolean;
|
|
4084
|
+
/**
|
|
4085
|
+
* Dismisses the viewer on Escape. Independent of {@link ImagePreviewConfig.backdropClose}:
|
|
4086
|
+
* a surface that ignores scrim clicks still owes keyboard users a way out.
|
|
4087
|
+
*/
|
|
4088
|
+
escapeClose: boolean;
|
|
4089
|
+
/** Whether the image can be zoomed and panned, and the zoom controls are rendered. */
|
|
4090
|
+
zoomable: boolean;
|
|
4091
|
+
/** Lower zoom bound. The viewer opens and resets at `1`, the fit to the viewport. */
|
|
4092
|
+
minZoom: number;
|
|
4093
|
+
maxZoom: number;
|
|
4094
|
+
/** Factor the zoom is multiplied by per control press or keyboard step. */
|
|
4095
|
+
zoomStep: number;
|
|
4096
|
+
/** Zoom level a double-click or double-tap toggles to. */
|
|
4097
|
+
doubleClickZoom: number;
|
|
4098
|
+
/** Whether navigation wraps around at both ends of a group. */
|
|
4099
|
+
loop: boolean;
|
|
4100
|
+
/** Whether the position within a group is displayed. Groups of one show nothing regardless. */
|
|
4101
|
+
showCounter: boolean;
|
|
4102
|
+
labels: ImagePreviewLabels;
|
|
4103
|
+
}
|
|
4104
|
+
declare const DEFAULT_IMAGE_PREVIEW_CONFIG: ImagePreviewConfig;
|
|
4105
|
+
|
|
4106
|
+
/** One image shown by the preview viewer. */
|
|
4107
|
+
interface ImagePreviewImage {
|
|
4108
|
+
/** URL of the full-size image the viewer renders. */
|
|
4109
|
+
src: string;
|
|
4110
|
+
/** Alternative text announced for the image. */
|
|
4111
|
+
alt?: string;
|
|
4112
|
+
/** Caption displayed beneath the image. */
|
|
4113
|
+
caption?: string;
|
|
4114
|
+
}
|
|
4115
|
+
/** An image given either as a bare URL or as a full descriptor. */
|
|
4116
|
+
type ImagePreviewSource = string | ImagePreviewImage;
|
|
4117
|
+
/** Payload the viewer surface is opened with. */
|
|
4118
|
+
interface ImagePreviewData {
|
|
4119
|
+
images: ImagePreviewImage[];
|
|
4120
|
+
/** Index of the image shown first, already clamped to the list. */
|
|
4121
|
+
startIndex: number;
|
|
4122
|
+
}
|
|
4123
|
+
/**
|
|
4124
|
+
* A member of a preview group: an element that contributes one image to the
|
|
4125
|
+
* group's list and can be located within it. Implemented by the trigger
|
|
4126
|
+
* directive so the group holds no dependency on it.
|
|
4127
|
+
*/
|
|
4128
|
+
interface ImagePreviewGroupItem {
|
|
4129
|
+
/** Host element, used to order the group's images by document position. */
|
|
4130
|
+
readonly element: HTMLElement;
|
|
4131
|
+
/** The image this member contributes; an empty `src` excludes it. */
|
|
4132
|
+
resolveImage(): ImagePreviewImage;
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
type imagePreviewStatus = 'loading' | 'loaded' | 'error';
|
|
4136
|
+
/**
|
|
4137
|
+
* Full-screen viewer for one image or a gallery of them, with zoom, pan and
|
|
4138
|
+
* navigation. Opened through {@link ImagePreviewService} — either directly or
|
|
4139
|
+
* by the `[tlsImagePreview]` trigger — never placed in a template.
|
|
4140
|
+
*
|
|
4141
|
+
* Zoom is expressed as a multiple of the fitted size, so `1` is the whole image
|
|
4142
|
+
* inside the viewport and the pan offset is meaningful only above it.
|
|
4143
|
+
*/
|
|
4144
|
+
declare class ImagePreview {
|
|
4145
|
+
private static _nextUniqueId;
|
|
4146
|
+
private readonly _config;
|
|
4147
|
+
private readonly _data;
|
|
4148
|
+
private readonly _cdkDialogRef;
|
|
4149
|
+
private readonly _elementRef;
|
|
4150
|
+
private readonly _directionality;
|
|
4151
|
+
private readonly _stage;
|
|
4152
|
+
private readonly _image;
|
|
4153
|
+
private readonly _uniqueId;
|
|
4154
|
+
private readonly _index;
|
|
4155
|
+
private readonly _zoom;
|
|
4156
|
+
private readonly _offset;
|
|
4157
|
+
private readonly _status;
|
|
4158
|
+
private readonly _panning;
|
|
4159
|
+
private readonly _state;
|
|
4160
|
+
/** Active pointers over the stage, keyed by pointer id, for pan and pinch tracking. */
|
|
4161
|
+
private readonly _pointers;
|
|
4162
|
+
/** Sources already requested by the preloader, so each is fetched at most once. */
|
|
4163
|
+
private readonly _preloaded;
|
|
4164
|
+
private _lastPointer;
|
|
4165
|
+
private _pressOrigin;
|
|
4166
|
+
private _gestured;
|
|
4167
|
+
private _pinchStartDistance;
|
|
4168
|
+
private _pinchStartZoom;
|
|
4169
|
+
private _closing;
|
|
4170
|
+
readonly index: Signal<number>;
|
|
4171
|
+
protected readonly current: Signal<ImagePreviewImage>;
|
|
4172
|
+
protected readonly total: Signal<number>;
|
|
4173
|
+
protected readonly multiple: Signal<boolean>;
|
|
4174
|
+
protected readonly canGoPrevious: Signal<boolean>;
|
|
4175
|
+
protected readonly canGoNext: Signal<boolean>;
|
|
4176
|
+
protected readonly status: Signal<imagePreviewStatus>;
|
|
4177
|
+
/** Whether the image is enlarged past its fitted size, which is what makes it pannable. */
|
|
4178
|
+
protected readonly zoomed: Signal<boolean>;
|
|
4179
|
+
protected readonly canZoomIn: Signal<boolean>;
|
|
4180
|
+
protected readonly canZoomOut: Signal<boolean>;
|
|
4181
|
+
/**
|
|
4182
|
+
* Whether a horizontal drag pages through the gallery. A zoomed image spends
|
|
4183
|
+
* the gesture on panning instead, since it no longer fits the viewport.
|
|
4184
|
+
*/
|
|
4185
|
+
protected readonly swipeEnabled: Signal<boolean>;
|
|
4186
|
+
protected readonly transform: Signal<string>;
|
|
4187
|
+
protected readonly counterText: Signal<string>;
|
|
4188
|
+
protected readonly captionId: Signal<string | null>;
|
|
4189
|
+
protected readonly previousIcon: Signal<systemIcon>;
|
|
4190
|
+
protected readonly nextIcon: Signal<systemIcon>;
|
|
4191
|
+
protected readonly hostClasses: Signal<string[]>;
|
|
4192
|
+
protected get config(): ImagePreviewConfig;
|
|
4193
|
+
/** Plays the exit animation, then disposes the overlay once it finishes. */
|
|
4194
|
+
animatedClose(): void;
|
|
4195
|
+
/** Shows the image at `index`, wrapping around when the config allows looping. */
|
|
4196
|
+
goTo(index: number): void;
|
|
4197
|
+
previous(): void;
|
|
4198
|
+
next(): void;
|
|
4199
|
+
resetZoom(): void;
|
|
4200
|
+
protected close(): void;
|
|
4201
|
+
protected zoomIn(): void;
|
|
4202
|
+
protected zoomOut(): void;
|
|
4203
|
+
protected onImageLoad(): void;
|
|
4204
|
+
protected onImageError(): void;
|
|
4205
|
+
protected onSwipe(event: SwipeEvent): void;
|
|
4206
|
+
protected onSurfaceClick(event: MouseEvent): void;
|
|
4207
|
+
protected onWheel(event: WheelEvent): void;
|
|
4208
|
+
protected onDoubleClick(event: MouseEvent): void;
|
|
4209
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
4210
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
4211
|
+
protected onPointerUp(event: PointerEvent): void;
|
|
4212
|
+
protected onPointerCancel(event: PointerEvent): void;
|
|
4213
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
4214
|
+
/**
|
|
4215
|
+
* Fetches the images on either side of the current one, so paging through a
|
|
4216
|
+
* gallery shows them at once instead of starting their download on arrival.
|
|
4217
|
+
* Runs once the current image has settled, leaving it the bandwidth first.
|
|
4218
|
+
*/
|
|
4219
|
+
private _preloadNeighbours;
|
|
4220
|
+
private _isOverImage;
|
|
4221
|
+
private _trackGesture;
|
|
4222
|
+
private _fitZoom;
|
|
4223
|
+
private _isRtl;
|
|
4224
|
+
private _wheelDeltaInPixels;
|
|
4225
|
+
private _clampZoom;
|
|
4226
|
+
private _zoomToCentre;
|
|
4227
|
+
private _zoomToPoint;
|
|
4228
|
+
/**
|
|
4229
|
+
* Zooms to `zoom` while keeping the content under the given viewport point in
|
|
4230
|
+
* place, so the image grows out of the cursor rather than the centre.
|
|
4231
|
+
*/
|
|
4232
|
+
private _applyZoom;
|
|
4233
|
+
private _panBy;
|
|
4234
|
+
/**
|
|
4235
|
+
* Keeps the image covering the stage on each axis it overflows, and centred on
|
|
4236
|
+
* each axis it does not, so panning can never strand it off screen.
|
|
4237
|
+
*/
|
|
4238
|
+
private _clampOffset;
|
|
4239
|
+
private _startPinch;
|
|
4240
|
+
private _updatePinch;
|
|
4241
|
+
private _pointerDistance;
|
|
4242
|
+
private _pointerMidpoint;
|
|
4243
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreview, never>;
|
|
4244
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImagePreview, "tls-image-preview", never, {}, {}, never, never, true, never>;
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
/**
|
|
4248
|
+
* Handle to an open image preview, returned from {@link ImagePreviewService.open}.
|
|
4249
|
+
*
|
|
4250
|
+
* `close` routes through the viewer so the exit animation plays before the
|
|
4251
|
+
* overlay is disposed, unlike the CDK `DialogRef` which disposes synchronously.
|
|
4252
|
+
*/
|
|
4253
|
+
declare class ImagePreviewRef {
|
|
4254
|
+
private readonly _cdkRef;
|
|
4255
|
+
readonly closed: Observable<void>;
|
|
4256
|
+
constructor(_cdkRef: DialogRef$1<void, ImagePreview>);
|
|
4257
|
+
/** Index of the image currently on screen; `-1` once the preview has closed. */
|
|
4258
|
+
get index(): number;
|
|
4259
|
+
close(): void;
|
|
4260
|
+
/** Shows the image at `index`, wrapping around when the preview loops. */
|
|
4261
|
+
goTo(index: number): void;
|
|
4262
|
+
}
|
|
4263
|
+
|
|
4264
|
+
/**
|
|
4265
|
+
* Opens the full-screen image preview from the element it sits on — typically a
|
|
4266
|
+
* thumbnail. The image previewed defaults to the one the host stands for — an
|
|
4267
|
+
* `<img>`'s own source, a link's target — so a bare attribute is enough; pass a
|
|
4268
|
+
* URL or a descriptor to preview a different (usually larger) source instead.
|
|
4269
|
+
*
|
|
4270
|
+
* ```html
|
|
4271
|
+
* <img tlsImagePreview src="beach.jpg" alt="Beach" />
|
|
4272
|
+
* <a tlsImagePreview href="beach-full.jpg"><img src="beach.jpg" alt="Beach" /></a>
|
|
4273
|
+
* <img [tlsImagePreview]="{ src: 'beach-full.jpg', caption: 'Low tide' }" src="beach.jpg" alt="Beach" />
|
|
4274
|
+
* ```
|
|
4275
|
+
*
|
|
4276
|
+
* On a link the preview replaces the navigation, leaving the href as the
|
|
4277
|
+
* fallback for a modified click and for a page without scripting.
|
|
4278
|
+
*
|
|
4279
|
+
* Inside a `[tlsImagePreviewGroup]` the trigger opens the whole group as a
|
|
4280
|
+
* gallery, positioned on its own image.
|
|
4281
|
+
*
|
|
4282
|
+
* A host that is not natively interactive is given button semantics and keyboard
|
|
4283
|
+
* access, so an `<img>` trigger is reachable and operable without a pointer.
|
|
4284
|
+
*/
|
|
4285
|
+
declare class ImagePreviewDirective implements ImagePreviewGroupItem, OnDestroy {
|
|
4286
|
+
private readonly _elementRef;
|
|
4287
|
+
private readonly _imagePreview;
|
|
4288
|
+
private readonly _group;
|
|
4289
|
+
/**
|
|
4290
|
+
* The image to preview. Left empty, the image the host stands for is previewed:
|
|
4291
|
+
* an `<img>`'s own source and alternative text, or a link's target.
|
|
4292
|
+
*/
|
|
4293
|
+
readonly image: InputSignal<ImagePreviewSource | ''>;
|
|
4294
|
+
/** Caption displayed beneath the image in the viewer. */
|
|
4295
|
+
readonly caption: InputSignal<string | undefined>;
|
|
4296
|
+
private readonly _nativelyInteractive;
|
|
4297
|
+
protected readonly buttonRole: string | null;
|
|
4298
|
+
protected readonly tabIndex: string | null;
|
|
4299
|
+
get element(): HTMLElement;
|
|
4300
|
+
constructor();
|
|
4301
|
+
/** The image this trigger contributes; an empty `src` excludes it from a group. */
|
|
4302
|
+
resolveImage(): ImagePreviewImage;
|
|
4303
|
+
/** Opens the preview, or the whole group when the trigger sits in one. */
|
|
4304
|
+
open(): ImagePreviewRef | null;
|
|
4305
|
+
protected onClick(event: MouseEvent): void;
|
|
4306
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
4307
|
+
/**
|
|
4308
|
+
* The image the host element itself stands for: an `<img>`'s own source —
|
|
4309
|
+
* `currentSrc` first, so a responsive source set previews the variant actually
|
|
4310
|
+
* loaded — or the full-size target of a link. Any other host stands for no
|
|
4311
|
+
* image of its own and must be given one.
|
|
4312
|
+
*/
|
|
4313
|
+
private _hostImage;
|
|
4314
|
+
ngOnDestroy(): void;
|
|
4315
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreviewDirective, never>;
|
|
4316
|
+
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>;
|
|
4317
|
+
}
|
|
4318
|
+
|
|
4319
|
+
/**
|
|
4320
|
+
* Groups the `[tlsImagePreview]` triggers inside it into one gallery: opening
|
|
4321
|
+
* any of them previews every image in the group, starting at the one clicked,
|
|
4322
|
+
* with the others reachable through the viewer's navigation.
|
|
4323
|
+
*
|
|
4324
|
+
* ```html
|
|
4325
|
+
* <div tlsImagePreviewGroup>
|
|
4326
|
+
* <img tlsImagePreview src="beach.jpg" alt="Beach" />
|
|
4327
|
+
* <img tlsImagePreview src="cliff.jpg" alt="Cliff" />
|
|
4328
|
+
* </div>
|
|
4329
|
+
* ```
|
|
4330
|
+
*/
|
|
4331
|
+
declare class ImagePreviewGroupDirective {
|
|
4332
|
+
private readonly _items;
|
|
4333
|
+
register(item: ImagePreviewGroupItem): void;
|
|
4334
|
+
unregister(item: ImagePreviewGroupItem): void;
|
|
4335
|
+
/**
|
|
4336
|
+
* The group's members in document order, which is the order the gallery is
|
|
4337
|
+
* paged through. Registration order does not track the DOM — members can be
|
|
4338
|
+
* added, moved or removed at any time — so the order is resolved on demand.
|
|
4339
|
+
*/
|
|
4340
|
+
items(): ImagePreviewGroupItem[];
|
|
4341
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreviewGroupDirective, never>;
|
|
4342
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ImagePreviewGroupDirective, "[tlsImagePreviewGroup]", never, {}, {}, never, never, true, never>;
|
|
4343
|
+
}
|
|
4344
|
+
|
|
4345
|
+
interface ImagePreviewOpenConfig extends Partial<Omit<ImagePreviewConfig, 'labels'>> {
|
|
4346
|
+
/** One image or the gallery to page through. */
|
|
4347
|
+
images: ImagePreviewSource | ImagePreviewSource[];
|
|
4348
|
+
/** Index of the image shown first, clamped to the list. */
|
|
4349
|
+
startIndex?: number;
|
|
4350
|
+
labels?: Partial<ImagePreviewLabels>;
|
|
4351
|
+
/** Accessible name of the viewer surface, overriding the configured title. */
|
|
4352
|
+
ariaLabel?: string;
|
|
4353
|
+
}
|
|
4354
|
+
declare class ImagePreviewService {
|
|
4355
|
+
private readonly _dialog;
|
|
4356
|
+
private readonly _config;
|
|
4357
|
+
private readonly _openPreviews;
|
|
4358
|
+
open(config: ImagePreviewOpenConfig): ImagePreviewRef;
|
|
4359
|
+
closeAll(): void;
|
|
4360
|
+
private _resolveConfig;
|
|
4361
|
+
private _resolveData;
|
|
4362
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreviewService, never>;
|
|
4363
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ImagePreviewService>;
|
|
4364
|
+
}
|
|
4365
|
+
|
|
4366
|
+
declare const IMAGE_PREVIEW_CONFIG: InjectionToken<ImagePreviewConfig>;
|
|
4367
|
+
|
|
4368
|
+
/** Normalizes an image given as a bare URL into the descriptor shape. */
|
|
4369
|
+
declare function toImagePreviewImage(source: ImagePreviewSource): ImagePreviewImage;
|
|
4370
|
+
|
|
2839
4371
|
/** Text rendered by the trigger and the end-of-collection notice, overridable for localization. */
|
|
2840
4372
|
interface InfiniteScrollLabels {
|
|
2841
4373
|
/** Announced while a page is in flight. */
|
|
@@ -2870,10 +4402,12 @@ declare const DEFAULT_INFINITE_SCROLL_CONFIG: InfiniteScrollConfig;
|
|
|
2870
4402
|
* - `loading` — a page is in flight and the watch is suspended;
|
|
2871
4403
|
* - `manual` — the automatic allowance is spent (or never granted), so the next page waits
|
|
2872
4404
|
* on the button;
|
|
2873
|
-
* - `complete` — the collection is exhausted
|
|
4405
|
+
* - `complete` — the collection is exhausted after paging, so the end notice is rendered;
|
|
4406
|
+
* - `settled` — the collection was exhausted before a page was ever requested; an end the
|
|
4407
|
+
* reader never had to find gets no notice, so nothing is rendered;
|
|
2874
4408
|
* - `disabled` — suspended altogether: nothing watched, nothing rendered, the allowance kept.
|
|
2875
4409
|
*/
|
|
2876
|
-
type infiniteScrollState = 'idle' | 'loading' | 'manual' | 'complete' | 'disabled';
|
|
4410
|
+
type infiniteScrollState = 'idle' | 'loading' | 'manual' | 'complete' | 'settled' | 'disabled';
|
|
2877
4411
|
|
|
2878
4412
|
/**
|
|
2879
4413
|
* End-of-collection trigger that asks for the next page as the reader approaches it. The
|
|
@@ -2933,7 +4467,13 @@ declare class InfiniteScroll {
|
|
|
2933
4467
|
* collection still has not reached past the scroll edge.
|
|
2934
4468
|
*/
|
|
2935
4469
|
readonly loading: InputSignalWithTransform<boolean, unknown>;
|
|
2936
|
-
/**
|
|
4470
|
+
/**
|
|
4471
|
+
* Whether the collection is exhausted. Ends the cycle, and renders the end notice — though
|
|
4472
|
+
* only for a collection this trigger has paged through: the notice resolves a question the
|
|
4473
|
+
* reader can actually have ("did it stop loading, or is this everything?"), which is only
|
|
4474
|
+
* asked once a page boundary has been crossed. A collection whose first page held
|
|
4475
|
+
* everything ends silently.
|
|
4476
|
+
*/
|
|
2937
4477
|
readonly complete: InputSignalWithTransform<boolean, unknown>;
|
|
2938
4478
|
/**
|
|
2939
4479
|
* Suspends the whole trigger without ending it: nothing is watched, nothing is rendered,
|
|
@@ -2966,6 +4506,12 @@ declare class InfiniteScroll {
|
|
|
2966
4506
|
protected readonly labels: InfiniteScrollLabels;
|
|
2967
4507
|
/** Automatic loads since the last time the button was used. */
|
|
2968
4508
|
private readonly _automaticLoads;
|
|
4509
|
+
/**
|
|
4510
|
+
* Whether this trigger has ever requested a page for the current collection. The end
|
|
4511
|
+
* notice is reserved for an end that was found by paging; until a request has gone out
|
|
4512
|
+
* there was never a loading boundary, so exhaustion renders nothing.
|
|
4513
|
+
*/
|
|
4514
|
+
private readonly _hasRequested;
|
|
2969
4515
|
/**
|
|
2970
4516
|
* Whether a request has gone out that nothing has accounted for yet. The sentinel keeps
|
|
2971
4517
|
* reporting itself visible after a page is asked for — an observer started while it is in
|
|
@@ -3003,7 +4549,9 @@ declare class InfiniteScroll {
|
|
|
3003
4549
|
* Renews the automatic allowance. A collection that is replaced rather than extended — a
|
|
3004
4550
|
* new query, a changed filter — starts its own run of automatic loads, which this
|
|
3005
4551
|
* 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.
|
|
4552
|
+
* so a page is requested straight away when the shorter collection leaves it in view. The
|
|
4553
|
+
* end notice starts over with the collection: one earned by paging through the old
|
|
4554
|
+
* collection says nothing about the new one.
|
|
3007
4555
|
*/
|
|
3008
4556
|
reset(): void;
|
|
3009
4557
|
private _loadAutomatically;
|
|
@@ -3087,6 +4635,83 @@ declare const DEFAULT_MARK_CONFIG: MarkConfig;
|
|
|
3087
4635
|
|
|
3088
4636
|
declare const MARK_CONFIG: InjectionToken<MarkConfig>;
|
|
3089
4637
|
|
|
4638
|
+
/**
|
|
4639
|
+
* Where a dragged surface's transform comes from. `idle` leaves it to the
|
|
4640
|
+
* stylesheet's enter/leave keyframes; `dragging` hands it to the finger;
|
|
4641
|
+
* `settling` animates it to where the release sent it.
|
|
4642
|
+
*/
|
|
4643
|
+
type sheetMotionState = 'idle' | 'dragging' | 'settling';
|
|
4644
|
+
/** What a `SheetMotion` is fixed to for its lifetime. */
|
|
4645
|
+
interface SheetMotionOptions {
|
|
4646
|
+
/** The custom property the stylesheet turns into the surface's translate. */
|
|
4647
|
+
property: string;
|
|
4648
|
+
/**
|
|
4649
|
+
* Opacity of the scrim at a drag progress: `1 - progress` for a surface that
|
|
4650
|
+
* dims as it leaves, `progress` for one that dims as it grows.
|
|
4651
|
+
*/
|
|
4652
|
+
backdropOpacity: (progress: number) => number;
|
|
4653
|
+
renderer: Renderer2;
|
|
4654
|
+
injector: Injector;
|
|
4655
|
+
}
|
|
4656
|
+
/**
|
|
4657
|
+
* The elements one gesture moves, given per gesture: a surface stamped fresh on
|
|
4658
|
+
* every open cannot be fixed at construction.
|
|
4659
|
+
*/
|
|
4660
|
+
interface SheetMotionSurface {
|
|
4661
|
+
panel: HTMLElement;
|
|
4662
|
+
backdrop: HTMLElement | null;
|
|
4663
|
+
/** Travel in px from rest to fully committed. */
|
|
4664
|
+
extent: number;
|
|
4665
|
+
}
|
|
4666
|
+
|
|
4667
|
+
/**
|
|
4668
|
+
* Moves a dragged surface along one axis: writes its displacement to the
|
|
4669
|
+
* custom property the stylesheet turns into a translate, keeps a scrim's
|
|
4670
|
+
* opacity in step with the drag, and settles the surface to where a release
|
|
4671
|
+
* sent it through the stylesheet's transition.
|
|
4672
|
+
*
|
|
4673
|
+
* The engine knows nothing of what the offsets mean — where rest is, what
|
|
4674
|
+
* range is legal, which release commits — and no pan events; the owning
|
|
4675
|
+
* component maps its gesture onto `begin`, `follow` and `settle`.
|
|
4676
|
+
*/
|
|
4677
|
+
declare class SheetMotion {
|
|
4678
|
+
private readonly _options;
|
|
4679
|
+
private readonly _state;
|
|
4680
|
+
/** Bound to the surface's `--dragging` / `--settling` classes. */
|
|
4681
|
+
readonly state: i0.Signal<sheetMotionState>;
|
|
4682
|
+
private _surface;
|
|
4683
|
+
private _gesture;
|
|
4684
|
+
constructor(_options: SheetMotionOptions);
|
|
4685
|
+
/** Travel in px of the gesture in progress, from rest to fully committed; 0 outside a gesture. */
|
|
4686
|
+
get extent(): number;
|
|
4687
|
+
/** Takes hold of the surface for one gesture. */
|
|
4688
|
+
begin(surface: SheetMotionSurface): void;
|
|
4689
|
+
/**
|
|
4690
|
+
* Moves the surface to `offset` px. The offset is written as given: what
|
|
4691
|
+
* range is legal is the caller's rule.
|
|
4692
|
+
*/
|
|
4693
|
+
follow(offset: number): void;
|
|
4694
|
+
/**
|
|
4695
|
+
* Animates the surface to `target` px through the stylesheet's settle
|
|
4696
|
+
* transition, then calls `done`. The state stays `settling` until `rest` is
|
|
4697
|
+
* called: a settle that ends in a dispose keeps its class on until the
|
|
4698
|
+
* overlay is gone, so the keyframe the class stands down cannot replay.
|
|
4699
|
+
*
|
|
4700
|
+
* A `begin` or `rest` that arrives before the settle finishes supersedes it:
|
|
4701
|
+
* a superseded settle neither moves the surface nor reports `done`.
|
|
4702
|
+
*/
|
|
4703
|
+
settle(target: number, done: () => void): void;
|
|
4704
|
+
/**
|
|
4705
|
+
* A settle from rest with no drag: takes hold of `surface` and settles it to
|
|
4706
|
+
* `target` in one step, for a change asked by a click, a key or code rather
|
|
4707
|
+
* than a finger. Supersedes a running settle the way a `begin` does.
|
|
4708
|
+
*/
|
|
4709
|
+
moveTo(surface: SheetMotionSurface, target: number, done: () => void): void;
|
|
4710
|
+
/** Lets go of the surface; the transform is the stylesheet's again. */
|
|
4711
|
+
rest(): void;
|
|
4712
|
+
private _write;
|
|
4713
|
+
}
|
|
4714
|
+
|
|
3090
4715
|
declare class MenuItemComponent {
|
|
3091
4716
|
readonly key: i0.InputSignal<string>;
|
|
3092
4717
|
readonly templateRef: i0.Signal<TemplateRef<unknown>>;
|
|
@@ -3169,6 +4794,9 @@ declare class Menu {
|
|
|
3169
4794
|
private static _counter;
|
|
3170
4795
|
private readonly _config;
|
|
3171
4796
|
private readonly _overlay;
|
|
4797
|
+
private readonly _viewportService;
|
|
4798
|
+
private readonly _injector;
|
|
4799
|
+
private readonly _renderer;
|
|
3172
4800
|
private readonly _panelRef;
|
|
3173
4801
|
protected readonly _customItems: i0.Signal<readonly MenuItemComponent[]>;
|
|
3174
4802
|
protected readonly customTemplates: i0.Signal<Map<string, TemplateRef<unknown>>>;
|
|
@@ -3186,6 +4814,9 @@ declare class Menu {
|
|
|
3186
4814
|
private readonly _positions;
|
|
3187
4815
|
protected readonly blocks: i0.Signal<MenuRenderBlock[]>;
|
|
3188
4816
|
readonly isOpen: i0.Signal<boolean>;
|
|
4817
|
+
protected readonly sheet: i0.WritableSignal<boolean>;
|
|
4818
|
+
protected readonly sheetMotion: SheetMotion;
|
|
4819
|
+
private _sheetClosing;
|
|
3189
4820
|
constructor();
|
|
3190
4821
|
open(trigger: MouseEvent | HTMLElement): void;
|
|
3191
4822
|
openAtPoint(x: number, y: number): void;
|
|
@@ -3200,6 +4831,14 @@ declare class Menu {
|
|
|
3200
4831
|
protected itemDescriptionId(index: number): string;
|
|
3201
4832
|
/** Content template for the item: its keyed slot first, the shared `#itemTemplate` otherwise. */
|
|
3202
4833
|
protected itemContentTemplate(item: MenuActionItem): TemplateRef<unknown> | undefined;
|
|
4834
|
+
protected onSheetPanStart(pane: HTMLElement): void;
|
|
4835
|
+
protected onSheetPanMove(event: PanEvent): void;
|
|
4836
|
+
protected onSheetPanEnd(event: PanEvent): void;
|
|
4837
|
+
protected onSheetPanCancel(): void;
|
|
4838
|
+
/** Whether the viewport sits at or below the configured sheet breakpoint. */
|
|
4839
|
+
private _prefersSheet;
|
|
4840
|
+
private _prepareOpen;
|
|
4841
|
+
private _sheetDragClose;
|
|
3203
4842
|
static ɵfac: i0.ɵɵFactoryDeclaration<Menu, never>;
|
|
3204
4843
|
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>;
|
|
3205
4844
|
}
|
|
@@ -3207,6 +4846,14 @@ declare class Menu {
|
|
|
3207
4846
|
interface MenuConfig {
|
|
3208
4847
|
position: menuPosition;
|
|
3209
4848
|
offset: Point;
|
|
4849
|
+
/**
|
|
4850
|
+
* Breakpoint at or below which the menu opens as a bottom sheet instead of
|
|
4851
|
+
* an anchored panel: a small viewport rarely fits a floating panel beside
|
|
4852
|
+
* its trigger, and a thumb-reachable sheet is the platform-native list of
|
|
4853
|
+
* choices there. `null` keeps every menu anchored. Takes effect only when
|
|
4854
|
+
* the app provides the viewport (`provideViewport()`).
|
|
4855
|
+
*/
|
|
4856
|
+
sheetBelow: breakpoint | null;
|
|
3210
4857
|
}
|
|
3211
4858
|
declare const DEFAULT_MENU_CONFIG: MenuConfig;
|
|
3212
4859
|
|
|
@@ -3397,12 +5044,23 @@ declare class Popover {
|
|
|
3397
5044
|
readonly position: i0.InputSignal<overlayPosition>;
|
|
3398
5045
|
readonly offset: i0.InputSignal<Point>;
|
|
3399
5046
|
readonly ariaLabel: i0.InputSignal<string | undefined>;
|
|
5047
|
+
/**
|
|
5048
|
+
* Extra class(es) placed on the overlay pane, so one popover can carry its own
|
|
5049
|
+
* treatment where the shared one does not fit.
|
|
5050
|
+
*
|
|
5051
|
+
* The pane sits outside every component's template and carries no style
|
|
5052
|
+
* encapsulation attribute, so a consumer's scoped rules cannot otherwise reach
|
|
5053
|
+
* it. A class named here is the handle they get. The panel declares its own
|
|
5054
|
+
* `--tls-popover-*` properties, which beat anything inherited from the pane, so
|
|
5055
|
+
* a rule that retunes one has to name the panel too: `.<class> .tls-popover`.
|
|
5056
|
+
*/
|
|
5057
|
+
readonly panelClass: i0.InputSignal<string | string[] | undefined>;
|
|
3400
5058
|
private readonly _positions;
|
|
3401
5059
|
open(trigger: MouseEvent | HTMLElement): void;
|
|
3402
5060
|
close(): void;
|
|
3403
5061
|
toggle(trigger: MouseEvent | HTMLElement): void;
|
|
3404
5062
|
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>;
|
|
5063
|
+
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; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
3406
5064
|
}
|
|
3407
5065
|
|
|
3408
5066
|
interface PopoverConfig {
|
|
@@ -3483,6 +5141,190 @@ declare const DEFAULT_PROGRESS_CONFIG: ProgressConfig;
|
|
|
3483
5141
|
|
|
3484
5142
|
declare const PROGRESS_CONFIG: InjectionToken<ProgressConfig>;
|
|
3485
5143
|
|
|
5144
|
+
interface RippleConfig {
|
|
5145
|
+
/**
|
|
5146
|
+
* Pointer types whose presses spread ink.
|
|
5147
|
+
*
|
|
5148
|
+
* Ink answers occlusion — a fingertip covers the control it spreads from, and a
|
|
5149
|
+
* cursor covers nothing — so a mouse is left to the press by default. Widening
|
|
5150
|
+
* this does not widen when ink plays: reduced motion still falls back to the
|
|
5151
|
+
* press whatever is listed here.
|
|
5152
|
+
*/
|
|
5153
|
+
pointerTypes: pointerType[];
|
|
5154
|
+
}
|
|
5155
|
+
declare const DEFAULT_RIPPLE_CONFIG: RippleConfig;
|
|
5156
|
+
|
|
5157
|
+
/** Marks a host while its ink is expanding; the theme's `ripple` mixin animates on it. */
|
|
5158
|
+
declare const RIPPLE_ACTIVE_CLASS = "tls-rippling";
|
|
5159
|
+
/** Contact point of the press, relative to the host's own box. */
|
|
5160
|
+
declare const RIPPLE_X_PROPERTY = "--tls-ripple-x";
|
|
5161
|
+
declare const RIPPLE_Y_PROPERTY = "--tls-ripple-y";
|
|
5162
|
+
/** Radius the ink has to reach to cover the host from that contact point. */
|
|
5163
|
+
declare const RIPPLE_DIAMETER_PROPERTY = "--tls-ripple-diameter";
|
|
5164
|
+
/** Suppression hook the press mixin reads: 1 leaves the control at rest. */
|
|
5165
|
+
declare const PRESS_SCALE_PROPERTY = "--tls-press-scale";
|
|
5166
|
+
/**
|
|
5167
|
+
* How far a pointer may travel before its press is read as the start of a scroll.
|
|
5168
|
+
* A ripple keeps expanding for its full duration, so one spawned by a flick stays
|
|
5169
|
+
* on screen well after the surface has moved — worse than a press, which ends
|
|
5170
|
+
* with the contact.
|
|
5171
|
+
*/
|
|
5172
|
+
declare const RIPPLE_MOVE_SLOP_PX = 8;
|
|
5173
|
+
|
|
5174
|
+
declare const RIPPLE_CONFIG: InjectionToken<RippleConfig>;
|
|
5175
|
+
|
|
5176
|
+
/**
|
|
5177
|
+
* How tall a detent is: the header slot's height (`'header'`), the header plus
|
|
5178
|
+
* the body's natural height capped at the viewport (`'content'`), a share of
|
|
5179
|
+
* the viewport (`'50%'`), or any CSS length (`'20rem'`).
|
|
5180
|
+
*/
|
|
5181
|
+
type sheetDetentSize = 'header' | 'content' | `${number}%` | string;
|
|
5182
|
+
/** One resting height of a sheet. Listed smallest to largest by the author. */
|
|
5183
|
+
interface SheetDetent {
|
|
5184
|
+
id: string;
|
|
5185
|
+
size: sheetDetentSize;
|
|
5186
|
+
}
|
|
5187
|
+
/** Measurements, in px, a detent size is resolved against. */
|
|
5188
|
+
interface SheetMeasures {
|
|
5189
|
+
/** Rendered height of the header slot. */
|
|
5190
|
+
header: number;
|
|
5191
|
+
/** Header plus the body's natural (unclipped) height. */
|
|
5192
|
+
content: number;
|
|
5193
|
+
/** Height of the area the sheet may occupy. */
|
|
5194
|
+
viewport: number;
|
|
5195
|
+
/** Resolves a CSS length against the sheet's own font and viewport. */
|
|
5196
|
+
length: (css: string) => number;
|
|
5197
|
+
}
|
|
5198
|
+
/**
|
|
5199
|
+
* Where focus goes when a sheet stops being modal: back to its header when the
|
|
5200
|
+
* sheet stays, or to what the page had focused when the sheet is going.
|
|
5201
|
+
*/
|
|
5202
|
+
type sheetFocusRestoreTarget = 'header' | 'page';
|
|
5203
|
+
/** The header slot's template, read by the sheet. */
|
|
5204
|
+
interface SheetHeaderTemplate {
|
|
5205
|
+
templateRef: TemplateRef<unknown>;
|
|
5206
|
+
}
|
|
5207
|
+
|
|
5208
|
+
/**
|
|
5209
|
+
* Marks the template a `tls-sheet` renders as its header: always visible, the
|
|
5210
|
+
* height of the `'header'` detent, and the button that toggles the sheet. It
|
|
5211
|
+
* renders inside a native `<button>`, so it holds no interactive content.
|
|
5212
|
+
*/
|
|
5213
|
+
declare class SheetHeaderDirective implements SheetHeaderTemplate {
|
|
5214
|
+
readonly templateRef: TemplateRef<unknown>;
|
|
5215
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SheetHeaderDirective, never>;
|
|
5216
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SheetHeaderDirective, "ng-template[tlsSheetHeader]", never, {}, {}, never, never, true, never>;
|
|
5217
|
+
}
|
|
5218
|
+
|
|
5219
|
+
/**
|
|
5220
|
+
* A persistent bottom sheet: one surface, at rest at one of several named
|
|
5221
|
+
* heights (detents), that a page declares in its template and keeps for as
|
|
5222
|
+
* long as the component lives. It grows and shrinks between detents by drag,
|
|
5223
|
+
* by its header button, by arrow keys, or by `snapTo`; at or above
|
|
5224
|
+
* `modalFrom` it is a modal dialog, below it the page stays interactive.
|
|
5225
|
+
*
|
|
5226
|
+
* The host stays in the page, so the page's injector and `@if` own the
|
|
5227
|
+
* sheet, while its panel is rendered in a CDK overlay pane at the end of
|
|
5228
|
+
* `body` — page hosts may sit under transforms that would turn a fixed panel
|
|
5229
|
+
* into an absolute one. One sheet at a time: it publishes the collapsed height
|
|
5230
|
+
* as `--tls-sheet-collapsed-size` on the root element for the page to reserve.
|
|
5231
|
+
*
|
|
5232
|
+
* Transient, code-summoned surfaces are `tls-drawer`'s; nothing here dismisses.
|
|
5233
|
+
*/
|
|
5234
|
+
declare class Sheet implements OnDestroy {
|
|
5235
|
+
private readonly _overlay;
|
|
5236
|
+
private readonly _renderer;
|
|
5237
|
+
private readonly _injector;
|
|
5238
|
+
private readonly _document;
|
|
5239
|
+
private readonly _destroyRef;
|
|
5240
|
+
private readonly _viewportRuler;
|
|
5241
|
+
private readonly _focusTrapFactory;
|
|
5242
|
+
private readonly _overlayContainer;
|
|
5243
|
+
private readonly _inputModalityDetector;
|
|
5244
|
+
/** Resting heights, smallest to largest. */
|
|
5245
|
+
readonly detents: InputSignal<SheetDetent[]>;
|
|
5246
|
+
/**
|
|
5247
|
+
* The resting detent's id. Written on arrival at a detent; setting it moves
|
|
5248
|
+
* there. An id no detent carries, the empty default included, moves the sheet
|
|
5249
|
+
* to the first detent and is rewritten to that detent's id.
|
|
5250
|
+
*/
|
|
5251
|
+
readonly detent: ModelSignal<string>;
|
|
5252
|
+
/** Detent id at or above which the sheet is modal; `null` never. */
|
|
5253
|
+
readonly modalFrom: InputSignal<string | null>;
|
|
5254
|
+
/** Accessible name of the region or dialog. */
|
|
5255
|
+
readonly label: InputSignal<string>;
|
|
5256
|
+
/** Localized names per detent id, announced with the label; an id without one is announced as is. */
|
|
5257
|
+
readonly detentLabels: InputSignal<Record<string, string>>;
|
|
5258
|
+
/** Whether the pill along the top edge that advertises the drag is drawn. */
|
|
5259
|
+
readonly grabber: InputSignalWithTransform<boolean, unknown>;
|
|
5260
|
+
private static _counter;
|
|
5261
|
+
readonly id: string;
|
|
5262
|
+
protected readonly bodyId: string;
|
|
5263
|
+
protected readonly headerTemplate: i0.Signal<SheetHeaderDirective>;
|
|
5264
|
+
protected readonly pointerTypes: readonly string[];
|
|
5265
|
+
private readonly _root;
|
|
5266
|
+
private readonly _backdrop;
|
|
5267
|
+
private readonly _panel;
|
|
5268
|
+
private readonly _header;
|
|
5269
|
+
private readonly _body;
|
|
5270
|
+
private readonly _content;
|
|
5271
|
+
private readonly _probe;
|
|
5272
|
+
private readonly _heights;
|
|
5273
|
+
private readonly _motion;
|
|
5274
|
+
protected readonly motionState: i0.Signal<sheetMotionState>;
|
|
5275
|
+
private _overlayRef;
|
|
5276
|
+
private _targetIndex;
|
|
5277
|
+
private _dragStartIndex;
|
|
5278
|
+
private _declined;
|
|
5279
|
+
private _focusTrap;
|
|
5280
|
+
private _inerted;
|
|
5281
|
+
private _focusBeforeModal;
|
|
5282
|
+
protected readonly currentIndex: i0.Signal<number>;
|
|
5283
|
+
protected readonly isTop: i0.Signal<boolean>;
|
|
5284
|
+
protected readonly isExpanded: i0.Signal<boolean>;
|
|
5285
|
+
protected readonly isModal: i0.Signal<boolean>;
|
|
5286
|
+
protected readonly description: i0.Signal<string>;
|
|
5287
|
+
constructor();
|
|
5288
|
+
/** Moves to the detent with `id`; an unknown id is ignored. */
|
|
5289
|
+
snapTo(id: string): void;
|
|
5290
|
+
/** Moves one detent up; a no-op at the largest. */
|
|
5291
|
+
expand(): void;
|
|
5292
|
+
/** Moves one detent down; a no-op at the smallest. */
|
|
5293
|
+
collapse(): void;
|
|
5294
|
+
/**
|
|
5295
|
+
* Re-reads the detent heights and brings the sheet to its detent at the new
|
|
5296
|
+
* heights. Runs by itself when the viewport, the header or the content
|
|
5297
|
+
* changes size; public for a page whose detents depend on anything else.
|
|
5298
|
+
*/
|
|
5299
|
+
remeasure(): void;
|
|
5300
|
+
protected onHeaderClick(): void;
|
|
5301
|
+
protected onArrowUp(event: Event): void;
|
|
5302
|
+
protected onArrowDown(event: Event): void;
|
|
5303
|
+
protected onPanStart(event: PanEvent): void;
|
|
5304
|
+
protected onPanMove(event: PanEvent): void;
|
|
5305
|
+
protected onPanEnd(event: PanEvent): void;
|
|
5306
|
+
protected onPanCancel(): void;
|
|
5307
|
+
protected onEscape(event: Event): void;
|
|
5308
|
+
protected onBackdropClick(): void;
|
|
5309
|
+
private _attach;
|
|
5310
|
+
private _measure;
|
|
5311
|
+
private _offsetOf;
|
|
5312
|
+
private _surface;
|
|
5313
|
+
private _place;
|
|
5314
|
+
private _settleTo;
|
|
5315
|
+
private _claims;
|
|
5316
|
+
private _offsetFor;
|
|
5317
|
+
private _settleFromDrag;
|
|
5318
|
+
private _arrive;
|
|
5319
|
+
private _backdropOpacityAt;
|
|
5320
|
+
private _collapseBelowModal;
|
|
5321
|
+
private _applyModality;
|
|
5322
|
+
private _focusHeaderUnlessPointer;
|
|
5323
|
+
ngOnDestroy(): void;
|
|
5324
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Sheet, never>;
|
|
5325
|
+
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; }; }, { "detent": "detentChange"; }, ["headerTemplate"], ["*"], true, never>;
|
|
5326
|
+
}
|
|
5327
|
+
|
|
3486
5328
|
declare class Skeleton {
|
|
3487
5329
|
private readonly _config;
|
|
3488
5330
|
readonly size: InputSignal<number | string | null>;
|
|
@@ -3678,6 +5520,116 @@ declare class Stepper {
|
|
|
3678
5520
|
|
|
3679
5521
|
declare const STEPPER_CONFIG: InjectionToken<StepperConfig>;
|
|
3680
5522
|
|
|
5523
|
+
/**
|
|
5524
|
+
* Swipeable row: dragging the projected content sideways reveals a colored
|
|
5525
|
+
* action panel behind it, and releasing past the commit threshold — or
|
|
5526
|
+
* flicking — fires that side's action. Releasing earlier snaps the row back.
|
|
5527
|
+
*
|
|
5528
|
+
* A side takes part only when its template is projected: `#startAction` is
|
|
5529
|
+
* revealed by dragging the content toward inline-end, `#endAction` by dragging
|
|
5530
|
+
* toward inline-start; both resolve against the layout direction. Projected
|
|
5531
|
+
* content is the consumer's to style — the panel only centres it. Whether
|
|
5532
|
+
* releasing would commit is exposed twice for the content to react to: the
|
|
5533
|
+
* `tls-swipe-actions__panel--armed` class on the revealed panel (for CSS
|
|
5534
|
+
* choreography — an icon pop, a label reveal) and the `armedChanged` output
|
|
5535
|
+
* (for behaviour — a haptic tick). Actions
|
|
5536
|
+
* committed by swipe must never be the only path to the behaviour — the
|
|
5537
|
+
* gesture is invisible and unavailable to keyboards and assistive tech, so a
|
|
5538
|
+
* visible control (a button, a menu item) has to offer the same actions.
|
|
5539
|
+
*
|
|
5540
|
+
* Vertical scrolling stays native: the gesture claims only the horizontal
|
|
5541
|
+
* axis, waits out the pan slop, and yields to any scrollable ancestor with
|
|
5542
|
+
* room to travel (see {@link PanDirective}).
|
|
5543
|
+
*/
|
|
5544
|
+
declare class SwipeActions {
|
|
5545
|
+
private readonly _config;
|
|
5546
|
+
private readonly _directionality;
|
|
5547
|
+
private readonly contentElement;
|
|
5548
|
+
private readonly startPanel;
|
|
5549
|
+
private readonly endPanel;
|
|
5550
|
+
protected readonly startActionTemplate: Signal<TemplateRef<unknown> | undefined>;
|
|
5551
|
+
protected readonly endActionTemplate: Signal<TemplateRef<unknown> | undefined>;
|
|
5552
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
5553
|
+
/** Fill of the panel behind the inline-start edge. */
|
|
5554
|
+
readonly startColor: InputSignal<color>;
|
|
5555
|
+
/** Fill of the panel behind the inline-end edge. */
|
|
5556
|
+
readonly endColor: InputSignal<color>;
|
|
5557
|
+
readonly revealWidth: InputSignal<number>;
|
|
5558
|
+
readonly overdrag: InputSignal<number>;
|
|
5559
|
+
readonly commitThreshold: InputSignal<number>;
|
|
5560
|
+
readonly flickVelocity: InputSignal<number>;
|
|
5561
|
+
readonly pointerTypes: InputSignal<readonly string[] | null>;
|
|
5562
|
+
/** The start-side action was committed (content dragged toward inline-end). */
|
|
5563
|
+
readonly startCommitted: OutputEmitterRef<void>;
|
|
5564
|
+
/** The end-side action was committed (content dragged toward inline-start). */
|
|
5565
|
+
readonly endCommitted: OutputEmitterRef<void>;
|
|
5566
|
+
/**
|
|
5567
|
+
* Whether releasing right now would commit the revealed action. Fires on
|
|
5568
|
+
* every change of that answer during a drag — the hook for a haptic tick on
|
|
5569
|
+
* arming — and always ends `false` when the gesture ends.
|
|
5570
|
+
*/
|
|
5571
|
+
readonly armedChanged: OutputEmitterRef<boolean>;
|
|
5572
|
+
protected readonly dragging: WritableSignal<boolean>;
|
|
5573
|
+
private _lockDelta;
|
|
5574
|
+
private _armed;
|
|
5575
|
+
protected readonly panEnabled: Signal<boolean>;
|
|
5576
|
+
protected onPanStart(event: PanEvent): void;
|
|
5577
|
+
/**
|
|
5578
|
+
* Fired outside the Angular zone at pointer rate (see {@link PanDirective}),
|
|
5579
|
+
* so the reveal is written straight to the DOM rather than through bindings.
|
|
5580
|
+
*/
|
|
5581
|
+
protected onPanMove(event: PanEvent): void;
|
|
5582
|
+
protected onPanEnd(event: PanEvent): void;
|
|
5583
|
+
protected onPanCancel(): void;
|
|
5584
|
+
private _commits;
|
|
5585
|
+
/** Snaps the row shut; leaving the dragging state re-enables the transitions. */
|
|
5586
|
+
private _settle;
|
|
5587
|
+
/** Maps a physical horizontal delta onto the logical axis: `1` in LTR, `-1` in RTL. */
|
|
5588
|
+
private _logicalFactor;
|
|
5589
|
+
/**
|
|
5590
|
+
* A side with no action projected refuses to open at all. Travel past the
|
|
5591
|
+
* full reveal rubber-bands: the overshoot is damped along `L·o / (o + L)`,
|
|
5592
|
+
* whose slope is exactly 1 at the boundary — the hand-off from linear
|
|
5593
|
+
* tracking into resistance has no corner to feel — and which saturates at
|
|
5594
|
+
* the `overdrag` allowance instead of following the finger.
|
|
5595
|
+
*/
|
|
5596
|
+
private _clampOffset;
|
|
5597
|
+
private _damp;
|
|
5598
|
+
private _applyOffset;
|
|
5599
|
+
/**
|
|
5600
|
+
* Tracks whether releasing at this reveal would commit, mirroring the answer
|
|
5601
|
+
* onto the panels as a class and onto `armedChanged`. Both writes bypass
|
|
5602
|
+
* bindings: this runs on the move stream, outside the Angular zone.
|
|
5603
|
+
*/
|
|
5604
|
+
private _updateArmed;
|
|
5605
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwipeActions, never>;
|
|
5606
|
+
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>;
|
|
5607
|
+
}
|
|
5608
|
+
|
|
5609
|
+
interface SwipeActionsConfig {
|
|
5610
|
+
/** Width in px of a fully revealed action panel. */
|
|
5611
|
+
revealWidth: number;
|
|
5612
|
+
/**
|
|
5613
|
+
* Extra travel in px the reveal may rubber-band past its full width. Pulling
|
|
5614
|
+
* beyond the reveal meets growing resistance and saturates at this
|
|
5615
|
+
* allowance; `0` stops the reveal dead at its width.
|
|
5616
|
+
*/
|
|
5617
|
+
overdrag: number;
|
|
5618
|
+
/** Travel in px past which releasing the pointer commits the action. */
|
|
5619
|
+
commitThreshold: number;
|
|
5620
|
+
/** Velocity in px/ms past which a flick commits regardless of travel. */
|
|
5621
|
+
flickVelocity: number;
|
|
5622
|
+
/**
|
|
5623
|
+
* Pointer types allowed to drive the gesture. Swiping is a touch idiom;
|
|
5624
|
+
* mouse users have the visible controls, and a mouse drag over a row
|
|
5625
|
+
* competes with text selection.
|
|
5626
|
+
*/
|
|
5627
|
+
pointerTypes: readonly string[];
|
|
5628
|
+
}
|
|
5629
|
+
declare const DEFAULT_SWIPE_ACTIONS_CONFIG: SwipeActionsConfig;
|
|
5630
|
+
|
|
5631
|
+
declare const SWIPE_ACTIONS_CONFIG: InjectionToken<SwipeActionsConfig>;
|
|
5632
|
+
|
|
3681
5633
|
type tabsVariant = 'flat' | 'outlined' | 'segmented';
|
|
3682
5634
|
type tabsOrientation = orientation;
|
|
3683
5635
|
type tabsHeaderPosition = 'start' | 'end';
|
|
@@ -4075,52 +6027,6 @@ declare class ToastService {
|
|
|
4075
6027
|
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
4076
6028
|
}
|
|
4077
6029
|
|
|
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
6030
|
interface ToastConfig {
|
|
4125
6031
|
/** Corner of the viewport toasts are anchored to. */
|
|
4126
6032
|
position: toastPosition;
|
|
@@ -4301,6 +6207,13 @@ declare abstract class TooltipTrigger implements TooltipOwner, OnDestroy {
|
|
|
4301
6207
|
protected _hide(source: tooltipSource): void;
|
|
4302
6208
|
/** Drops every reason at once — a dismissal, rather than the end of one interaction. */
|
|
4303
6209
|
protected _hideAll(): void;
|
|
6210
|
+
private _lastPointerAt;
|
|
6211
|
+
/** Records that a pointer interaction just happened; `_followsPointer` reads it. */
|
|
6212
|
+
protected _notePointer(): void;
|
|
6213
|
+
/** Whether a focus arriving now was handed over by a pointer rather than a keyboard. */
|
|
6214
|
+
protected _followsPointer(): boolean;
|
|
6215
|
+
/** Whether the element is, or wraps, a control a tap activates. */
|
|
6216
|
+
protected _isInteractive(element: HTMLElement): boolean;
|
|
4304
6217
|
/** Whether a tap is what is currently holding the tooltip on `anchor`, which another tap ends. */
|
|
4305
6218
|
protected _isTapped(anchor: HTMLElement): boolean;
|
|
4306
6219
|
/** Re-states the content of every live request, so an input changing reaches a visible tooltip. */
|
|
@@ -4356,6 +6269,7 @@ declare class TooltipDelegateDirective extends TooltipTrigger {
|
|
|
4356
6269
|
readonly contentAttribute: InputSignalWithTransform<string, string | undefined>;
|
|
4357
6270
|
private readonly _selector;
|
|
4358
6271
|
protected onPointerOver(event: PointerEvent): void;
|
|
6272
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
4359
6273
|
protected onPointerMove(event: PointerEvent): void;
|
|
4360
6274
|
protected onPointerOut(event: PointerEvent): void;
|
|
4361
6275
|
protected onFocusIn(event: FocusEvent): void;
|
|
@@ -4367,20 +6281,28 @@ declare class TooltipDelegateDirective extends TooltipTrigger {
|
|
|
4367
6281
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDelegateDirective, "[tlsTooltipDelegate]", never, { "contentAttribute": { "alias": "tlsTooltipDelegate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4368
6282
|
}
|
|
4369
6283
|
|
|
6284
|
+
/**
|
|
6285
|
+
* How long after a touch tap the focus it hands over is still recognised as the
|
|
6286
|
+
* tap's own, and not a keyboard's. Generous enough to cover a slow tap-to-focus
|
|
6287
|
+
* sequence, short enough that a keyboard user following a tap is served.
|
|
6288
|
+
*/
|
|
6289
|
+
declare const TOUCH_HANDOVER_WINDOW_MS = 700;
|
|
4370
6290
|
/** Attribute a delegated tooltip reads its content from, and matches its items by. */
|
|
4371
6291
|
declare const DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE = "data-tooltip";
|
|
4372
6292
|
|
|
4373
6293
|
/**
|
|
4374
|
-
* Attaches a tooltip to the host element. Shows on hover and on focus landing anywhere inside
|
|
6294
|
+
* Attaches a tooltip to the host element. Shows on hover and on keyboard focus landing anywhere inside
|
|
4375
6295
|
* the host — a host that only wraps its real control is served as well as one that is the
|
|
4376
|
-
* control —
|
|
6296
|
+
* control — and dismisses on Escape without moving the pointer or focus
|
|
4377
6297
|
* (WCAG 1.4.13). While visible the tooltip is linked with `aria-describedby` to the element it
|
|
4378
6298
|
* describes: the host, or the control inside it that holds focus, since a description is only
|
|
4379
6299
|
* announced on the element that has it. The link joins any description that element already
|
|
4380
6300
|
* carries rather than replacing it, and leaves that one behind when the tooltip hides.
|
|
4381
6301
|
*
|
|
4382
6302
|
* Interaction is driven by pointer events, branching on `pointerType`: mouse
|
|
4383
|
-
* and pen get hover semantics
|
|
6303
|
+
* and pen get hover semantics. Touch gets tap-to-toggle on a non-interactive
|
|
6304
|
+
* host only — on an interactive one the tap already carries the control's own
|
|
6305
|
+
* action, so the tooltip stays out of its way entirely. A single stream avoids
|
|
4384
6306
|
* the synthesized mouse events browsers replay after a tap.
|
|
4385
6307
|
*
|
|
4386
6308
|
* Content is live: a tooltip already on screen follows the input it was opened with.
|
|
@@ -4394,6 +6316,7 @@ declare class TooltipDirective extends TooltipTrigger {
|
|
|
4394
6316
|
readonly data: InputSignal<unknown>;
|
|
4395
6317
|
constructor();
|
|
4396
6318
|
protected onPointerEnter(event: PointerEvent): void;
|
|
6319
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
4397
6320
|
protected onPointerMove(event: PointerEvent): void;
|
|
4398
6321
|
protected onPointerLeave(event: PointerEvent): void;
|
|
4399
6322
|
protected onFocusIn(event: FocusEvent): void;
|
|
@@ -4601,9 +6524,12 @@ interface tlsUiConfigProvider {
|
|
|
4601
6524
|
accessibility?: Partial<AccessibilityConfig>;
|
|
4602
6525
|
/** Cross-cutting locale used by every component that formats dates (not tied to a single one). */
|
|
4603
6526
|
locale?: Partial<LocaleConfig>;
|
|
6527
|
+
/** Cross-cutting press-ink policy applied wherever a ripple is applied (not tied to a single component). */
|
|
6528
|
+
ripple?: Partial<RippleConfig>;
|
|
4604
6529
|
/** Cross-cutting defaults inherited by every form control (not tied to a single component). */
|
|
4605
6530
|
formControl?: Partial<FormControlConfig>;
|
|
4606
6531
|
components?: {
|
|
6532
|
+
accordion?: Partial<AccordionConfig>;
|
|
4607
6533
|
activityHeatmap?: Partial<Omit<ActivityHeatmapConfig, 'labels'>> & {
|
|
4608
6534
|
labels?: Partial<ActivityHeatmapLabels>;
|
|
4609
6535
|
};
|
|
@@ -4615,11 +6541,23 @@ interface tlsUiConfigProvider {
|
|
|
4615
6541
|
views?: Partial<Record<calendarView, string>>;
|
|
4616
6542
|
};
|
|
4617
6543
|
};
|
|
6544
|
+
carousel?: Partial<Omit<CarouselConfig, 'labels'>> & {
|
|
6545
|
+
labels?: Partial<CarouselLabels>;
|
|
6546
|
+
};
|
|
4618
6547
|
checkbox?: Partial<CheckboxConfig>;
|
|
4619
6548
|
chip?: Partial<ChipConfig>;
|
|
4620
6549
|
chipControl?: Partial<ChipControlConfig>;
|
|
4621
6550
|
chipGroup?: Partial<ChipGroupConfig>;
|
|
4622
6551
|
chipInput?: Partial<ChipInputConfig>;
|
|
6552
|
+
colorInput?: Partial<Omit<ColorInputConfig, 'labels'>> & {
|
|
6553
|
+
labels?: Partial<ColorInputLabels>;
|
|
6554
|
+
};
|
|
6555
|
+
colorPicker?: Partial<Omit<ColorPickerConfig, 'labels'>> & {
|
|
6556
|
+
labels?: Partial<ColorPickerLabels>;
|
|
6557
|
+
};
|
|
6558
|
+
colorRange?: Partial<Omit<ColorRangeConfig, 'labels'>> & {
|
|
6559
|
+
labels?: Partial<ColorRangeLabels>;
|
|
6560
|
+
};
|
|
4623
6561
|
dateTimePicker?: Partial<DateTimePickerConfig>;
|
|
4624
6562
|
dialog?: Partial<DialogConfig>;
|
|
4625
6563
|
divider?: Partial<DividerConfig>;
|
|
@@ -4629,6 +6567,9 @@ interface tlsUiConfigProvider {
|
|
|
4629
6567
|
highlight?: Partial<HighlightConfig>;
|
|
4630
6568
|
icon?: Partial<IconConfig>;
|
|
4631
6569
|
imageCompare?: Partial<ImageCompareConfig>;
|
|
6570
|
+
imagePreview?: Partial<Omit<ImagePreviewConfig, 'labels'>> & {
|
|
6571
|
+
labels?: Partial<ImagePreviewLabels>;
|
|
6572
|
+
};
|
|
4632
6573
|
infiniteScroll?: Partial<Omit<InfiniteScrollConfig, 'labels'>> & {
|
|
4633
6574
|
labels?: Partial<InfiniteScrollLabels>;
|
|
4634
6575
|
};
|
|
@@ -4782,6 +6723,14 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
|
|
|
4782
6723
|
protected filterVisibleOptions(options: Option<V>[]): Option<V>[];
|
|
4783
6724
|
/** Hook invoked after the panel has closed, once the trigger has regained focus. */
|
|
4784
6725
|
protected onClosed(): void;
|
|
6726
|
+
/**
|
|
6727
|
+
* Focus lands on the trigger and the panel opens with it: the value of an option-list
|
|
6728
|
+
* control lives in the list, so handing the control over without showing the list
|
|
6729
|
+
* would stop one step short of what was asked for.
|
|
6730
|
+
*/
|
|
6731
|
+
activate(): void;
|
|
6732
|
+
/** The trigger is the control's single focusable element; the panel is elsewhere. */
|
|
6733
|
+
protected focusTarget(): HTMLElement | null;
|
|
4785
6734
|
protected open(): void;
|
|
4786
6735
|
protected close(): void;
|
|
4787
6736
|
protected toggle(): void;
|
|
@@ -4807,5 +6756,5 @@ declare abstract class QuerySyncDirective {
|
|
|
4807
6756
|
|
|
4808
6757
|
declare const provideThalassicUIConfig: (config?: tlsUiConfigProvider) => EnvironmentProviders;
|
|
4809
6758
|
|
|
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,
|
|
6759
|
+
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 };
|
|
6760
|
+
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, 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, 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 };
|