@thalassic/ui 22.13.0 → 22.14.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.mjs +554 -246
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/thalassic-ui.d.ts +149 -19
package/package.json
CHANGED
package/types/thalassic-ui.d.ts
CHANGED
|
@@ -236,15 +236,28 @@ declare class OverlayManager {
|
|
|
236
236
|
close(): void;
|
|
237
237
|
private _buildPositionStrategy;
|
|
238
238
|
private _wireDismissal;
|
|
239
|
-
/**
|
|
240
|
-
* Disposes a detached overlay once the panel's exit animation has finished, so
|
|
241
|
-
* the pane is not torn down while `animate.leave` is still playing. Falls back
|
|
242
|
-
* to a timeout when no animation runs (e.g. the `none` motion level).
|
|
243
|
-
*/
|
|
244
|
-
private _disposeAfterAnimation;
|
|
245
239
|
private _dispose;
|
|
246
240
|
}
|
|
247
241
|
|
|
242
|
+
/**
|
|
243
|
+
* Context exposed to a consumer-provided option template of a listbox control
|
|
244
|
+
* (`tls-select`, `tls-multi-select`, `tls-autocomplete`).
|
|
245
|
+
*/
|
|
246
|
+
interface SelectOptionContext<T = unknown, V = unknown> {
|
|
247
|
+
/** The consumer's original option object (or primitive). */
|
|
248
|
+
option: T;
|
|
249
|
+
value: V;
|
|
250
|
+
label: string;
|
|
251
|
+
index: number;
|
|
252
|
+
selected: boolean;
|
|
253
|
+
/** Whether the option is the one keyboard navigation currently rests on. */
|
|
254
|
+
active: boolean;
|
|
255
|
+
disabled: boolean;
|
|
256
|
+
}
|
|
257
|
+
type selectTemplateContext<T = unknown, V = unknown> = {
|
|
258
|
+
$implicit: SelectOptionContext<T, V>;
|
|
259
|
+
};
|
|
260
|
+
|
|
248
261
|
type color = 'primary' | 'secondary' | 'tertiary' | 'success' | 'info' | 'warning' | 'danger';
|
|
249
262
|
|
|
250
263
|
type controlSize = 'sm' | 'md' | 'lg';
|
|
@@ -362,7 +375,19 @@ declare class IconService {
|
|
|
362
375
|
sanitizeSvg(svg: string): SafeHtml;
|
|
363
376
|
private _isUrlAllowed;
|
|
364
377
|
private _sanitizeSvg;
|
|
378
|
+
/**
|
|
379
|
+
* Sanitizes SVG markup by parsing it into a DOM tree and stripping dangerous
|
|
380
|
+
* nodes and attributes, so obfuscated markup (unquoted attributes, entity
|
|
381
|
+
* tricks) cannot slip through the way it could with pattern matching on the
|
|
382
|
+
* raw text. The cleaned tree is serialized back to markup.
|
|
383
|
+
*
|
|
384
|
+
* Without a DOM parser (server-side rendering), the markup is dropped rather
|
|
385
|
+
* than passed through unsanitized; the icon renders once the browser takes
|
|
386
|
+
* over.
|
|
387
|
+
*/
|
|
365
388
|
private _makeSafe;
|
|
389
|
+
private _sanitizeElement;
|
|
390
|
+
private _isAttributeDisallowed;
|
|
366
391
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
367
392
|
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
368
393
|
}
|
|
@@ -607,6 +632,8 @@ declare class Calendar {
|
|
|
607
632
|
}[];
|
|
608
633
|
protected readonly eventTemplate: Signal<TemplateRef<CalendarEventContext> | undefined>;
|
|
609
634
|
private readonly _dateOptions;
|
|
635
|
+
/** Ticking current time, so the "Today" affordance stays correct across midnight. */
|
|
636
|
+
private readonly _now;
|
|
610
637
|
protected readonly hostClasses: Signal<string[]>;
|
|
611
638
|
/** Whether the active period already includes today, so "Today" would be a no-op. */
|
|
612
639
|
protected readonly isViewingToday: Signal<boolean>;
|
|
@@ -653,6 +680,8 @@ declare class CalendarAgendaView {
|
|
|
653
680
|
readonly eventSelect: OutputEmitterRef<CalendarEvent>;
|
|
654
681
|
protected readonly noEventsLabel: string;
|
|
655
682
|
private readonly _dateOptions;
|
|
683
|
+
/** Ticking current time, so the today marker tracks the clock across midnight. */
|
|
684
|
+
private readonly _now;
|
|
656
685
|
protected readonly days: Signal<AgendaDay[]>;
|
|
657
686
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarAgendaView, never>;
|
|
658
687
|
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarAgendaView, "tls-calendar-agenda-view", never, { "activeDate": { "alias": "activeDate"; "required": true; "isSignal": true; }; "events": { "alias": "events"; "required": true; "isSignal": true; }; "eventTemplate": { "alias": "eventTemplate"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "dateSelect": "dateSelect"; "eventSelect": "eventSelect"; }, never, never, true, never>;
|
|
@@ -714,6 +743,8 @@ declare class CalendarMonthView {
|
|
|
714
743
|
readonly dateSelect: OutputEmitterRef<Date>;
|
|
715
744
|
readonly eventSelect: OutputEmitterRef<CalendarEvent>;
|
|
716
745
|
private readonly _dateOptions;
|
|
746
|
+
/** Ticking current time, so the today highlight tracks the clock across midnight. */
|
|
747
|
+
private readonly _now;
|
|
717
748
|
protected readonly weekdayHeaders: Signal<string[]>;
|
|
718
749
|
protected readonly weeks: Signal<MonthWeek[]>;
|
|
719
750
|
/** Localized "+N more" label for a day cell with `count` hidden events. */
|
|
@@ -762,6 +793,8 @@ declare class CalendarTimeGrid {
|
|
|
762
793
|
protected readonly hourHeight = 48;
|
|
763
794
|
protected readonly allDayLabel: string;
|
|
764
795
|
private readonly _dateOptions;
|
|
796
|
+
/** Ticking current time, so the now line and today highlight track the clock. */
|
|
797
|
+
private readonly _now;
|
|
765
798
|
protected readonly hours: Signal<number[]>;
|
|
766
799
|
protected readonly columns: Signal<TimeGridColumn[]>;
|
|
767
800
|
/** Vertical offset (px) of the current-time line, or null when now is off-screen. */
|
|
@@ -770,6 +803,13 @@ declare class CalendarTimeGrid {
|
|
|
770
803
|
protected laneOffset(layout: TimedEventLayout): number;
|
|
771
804
|
protected laneWidth(layout: TimedEventLayout): number;
|
|
772
805
|
private _isAllDay;
|
|
806
|
+
/**
|
|
807
|
+
* Whether the event has any visible span inside the rendered hour window.
|
|
808
|
+
* Events entirely before `hourStart` or after `hourEnd` are excluded — clamping
|
|
809
|
+
* them would paint a zero-length sliver pinned to the window edge. An instant
|
|
810
|
+
* (zero-duration) event counts while its start sits inside the window.
|
|
811
|
+
*/
|
|
812
|
+
private _overlapsWindow;
|
|
773
813
|
private _clamp;
|
|
774
814
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarTimeGrid, never>;
|
|
775
815
|
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarTimeGrid, "tls-calendar-time-grid", never, { "days": { "alias": "days"; "required": true; "isSignal": true; }; "events": { "alias": "events"; "required": true; "isSignal": true; }; "view": { "alias": "view"; "required": true; "isSignal": true; }; "hourStart": { "alias": "hourStart"; "required": true; "isSignal": true; }; "hourEnd": { "alias": "hourEnd"; "required": true; "isSignal": true; }; "showAllDayRow": { "alias": "showAllDayRow"; "required": true; "isSignal": true; }; "eventTemplate": { "alias": "eventTemplate"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "dateSelect": "dateSelect"; "eventSelect": "eventSelect"; }, never, never, true, never>;
|
|
@@ -1165,6 +1205,8 @@ interface FormItemConfig {
|
|
|
1165
1205
|
/** Text appended to non-required fields (e.g. `(optional)`). Not shown when omitted. */
|
|
1166
1206
|
optionalText?: string;
|
|
1167
1207
|
errorMessages: ErrorMessageMap;
|
|
1208
|
+
/** Fallback for an error kind absent from `errorMessages` that carries no `message` of its own. */
|
|
1209
|
+
unknownErrorMessage: ErrorMessageFn;
|
|
1168
1210
|
}
|
|
1169
1211
|
declare const DEFAULT_FORM_ITEM_CONFIG: FormItemConfig;
|
|
1170
1212
|
|
|
@@ -1237,6 +1279,7 @@ declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null
|
|
|
1237
1279
|
*/
|
|
1238
1280
|
protected readonly query: WritableSignal<string>;
|
|
1239
1281
|
protected select(option: Option<V>): void;
|
|
1282
|
+
protected isOptionSelected(option: Option<V>): boolean;
|
|
1240
1283
|
protected onInput(event: Event): void;
|
|
1241
1284
|
protected onKeydown(event: KeyboardEvent): void;
|
|
1242
1285
|
protected filterVisibleOptions(options: Option<V>[]): Option<V>[];
|
|
@@ -1276,7 +1319,7 @@ declare class Checkbox extends CheckboxFormControl {
|
|
|
1276
1319
|
readonly checked: ModelSignal<boolean>;
|
|
1277
1320
|
readonly tabindex: InputSignal<string | number>;
|
|
1278
1321
|
protected readonly hostClasses: Signal<string[]>;
|
|
1279
|
-
protected toggle(): void;
|
|
1322
|
+
protected toggle(event?: Event): void;
|
|
1280
1323
|
protected onKeyboardToggle(event: Event): void;
|
|
1281
1324
|
static ɵfac: i0.ɵɵFactoryDeclaration<Checkbox, never>;
|
|
1282
1325
|
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>;
|
|
@@ -1287,6 +1330,8 @@ type dateTimePickerMode = 'calendar' | 'month-picker' | 'year-picker' | 'time-pi
|
|
|
1287
1330
|
type ActiveView = 'calendar' | 'month-picker' | 'year-picker' | 'time-picker' | 'date-time';
|
|
1288
1331
|
declare class DateTimePicker extends ValueFormControl<Date | null> {
|
|
1289
1332
|
private readonly config;
|
|
1333
|
+
private readonly _locale;
|
|
1334
|
+
private readonly _dateOptions;
|
|
1290
1335
|
private readonly popoverComponent;
|
|
1291
1336
|
readonly value: ModelSignal<Date | null>;
|
|
1292
1337
|
readonly mode: InputSignal<dateTimePickerMode>;
|
|
@@ -1415,14 +1460,19 @@ declare class FileInput extends ValueFormControl<File[]> {
|
|
|
1415
1460
|
readonly hideFileList: InputSignalWithTransform<boolean, unknown>;
|
|
1416
1461
|
protected readonly nativeInput: Signal<ElementRef<HTMLInputElement>>;
|
|
1417
1462
|
protected readonly dragState: i0.WritableSignal<fileInputDragState>;
|
|
1463
|
+
/** Nesting depth of the active drag: dragenter/dragleave pairs fired by the drop zone's children. */
|
|
1464
|
+
private _dragDepth;
|
|
1418
1465
|
protected readonly dropZoneTemplate: Signal<TemplateRef<FileInputDropZoneContext> | undefined>;
|
|
1419
1466
|
protected readonly fileTemplate: Signal<TemplateRef<FileInputFileContext> | undefined>;
|
|
1420
1467
|
protected readonly classes: Signal<string[]>;
|
|
1421
1468
|
protected readonly triggerLabel: Signal<string>;
|
|
1469
|
+
/** Accessible name for the drop zone: the consumer's, or the configured fallback. */
|
|
1470
|
+
protected readonly dropZoneLabel: Signal<string>;
|
|
1422
1471
|
protected readonly acceptHint: Signal<string>;
|
|
1423
1472
|
protected openFilePicker(): void;
|
|
1424
1473
|
protected onFilesSelected(event: Event): void;
|
|
1425
1474
|
protected onDropZoneKeydown(event: KeyboardEvent): void;
|
|
1475
|
+
protected onDragEnter(): void;
|
|
1426
1476
|
protected onDragOver(event: DragEvent): void;
|
|
1427
1477
|
protected onDragLeave(): void;
|
|
1428
1478
|
protected onDrop(event: DragEvent): void;
|
|
@@ -1442,6 +1492,14 @@ interface FileInputConfig {
|
|
|
1442
1492
|
accept: acceptInput;
|
|
1443
1493
|
fluid: boolean;
|
|
1444
1494
|
hideFileList: boolean;
|
|
1495
|
+
/** Trigger label in single-file mode, overridable for localization. */
|
|
1496
|
+
chooseFileLabel: string;
|
|
1497
|
+
/** Trigger label in multiple-file mode, overridable for localization. */
|
|
1498
|
+
chooseFilesLabel: string;
|
|
1499
|
+
/** Fallback accessible name for the drop zone in single-file mode, overridable for localization. */
|
|
1500
|
+
dropZoneFileLabel: string;
|
|
1501
|
+
/** Fallback accessible name for the drop zone in multiple-file mode, overridable for localization. */
|
|
1502
|
+
dropZoneFilesLabel: string;
|
|
1445
1503
|
}
|
|
1446
1504
|
declare const DEFAULT_FILE_INPUT_CONFIG: FileInputConfig;
|
|
1447
1505
|
|
|
@@ -1493,6 +1551,12 @@ declare class InputNumber extends ValueFormControl<number | null> {
|
|
|
1493
1551
|
readonly hideArrows: InputSignalWithTransform<boolean, unknown>;
|
|
1494
1552
|
protected readonly classes: Signal<string[]>;
|
|
1495
1553
|
protected onInput(event: Event): void;
|
|
1554
|
+
/**
|
|
1555
|
+
* Clamps a typed value into `[min, max]` once editing is committed (`change`
|
|
1556
|
+
* fires on blur/Enter). The spinner arrows already honor the bounds natively;
|
|
1557
|
+
* clamping only here keeps mid-typing values ("1" on the way to "10") intact.
|
|
1558
|
+
*/
|
|
1559
|
+
protected onChange(event: Event): void;
|
|
1496
1560
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputNumber, never>;
|
|
1497
1561
|
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>;
|
|
1498
1562
|
}
|
|
@@ -1650,6 +1714,12 @@ declare const DEFAULT_RADIO_BUTTON_CONFIG: RadioButtonConfig;
|
|
|
1650
1714
|
|
|
1651
1715
|
declare const RADIO_BUTTON_CONFIG: InjectionToken<RadioButtonConfig>;
|
|
1652
1716
|
|
|
1717
|
+
/**
|
|
1718
|
+
* A single radio option bound to a shared `value` model; the option whose
|
|
1719
|
+
* `radioValue` equals the model is checked. When several radio buttons form one
|
|
1720
|
+
* group, wrap each in its own `tls-form-item` (the item's label names that
|
|
1721
|
+
* option), rather than one item around the whole group.
|
|
1722
|
+
*/
|
|
1653
1723
|
declare class RadioButton extends ValueFormControl<unknown> {
|
|
1654
1724
|
private _config;
|
|
1655
1725
|
protected CLASS_NAME: string;
|
|
@@ -1682,6 +1752,7 @@ declare class MultiSelect<T, V = unknown> extends AbstractSelect<T, V, V[]> {
|
|
|
1682
1752
|
protected readonly selectedValues: Signal<Set<V>>;
|
|
1683
1753
|
protected readonly triggerLabel: Signal<string>;
|
|
1684
1754
|
protected isSelected(option: Option<V>): boolean;
|
|
1755
|
+
protected isOptionSelected(option: Option<V>): boolean;
|
|
1685
1756
|
protected toggleOption(option: Option<V>): void;
|
|
1686
1757
|
protected clear(): void;
|
|
1687
1758
|
protected getInitialActiveIndex(): number;
|
|
@@ -1698,6 +1769,8 @@ interface MultiSelectConfig {
|
|
|
1698
1769
|
maxLabels: number;
|
|
1699
1770
|
/** Accessible name for the clear button, overridable for localization. */
|
|
1700
1771
|
clearLabel: string;
|
|
1772
|
+
/** Trigger label when more than `maxLabels` options are selected, overridable for localization. */
|
|
1773
|
+
selectedCountLabel: (count: number) => string;
|
|
1701
1774
|
}
|
|
1702
1775
|
declare const DEFAULT_MULTI_SELECT_CONFIG: MultiSelectConfig;
|
|
1703
1776
|
|
|
@@ -1719,6 +1792,7 @@ declare class Select<T, V = unknown> extends AbstractSelect<T, V, V | null> {
|
|
|
1719
1792
|
protected readonly hasValue: Signal<boolean>;
|
|
1720
1793
|
protected readonly selectedLabel: Signal<string>;
|
|
1721
1794
|
protected select(option: Option<V>): void;
|
|
1795
|
+
protected isOptionSelected(option: Option<V>): boolean;
|
|
1722
1796
|
protected clear(): void;
|
|
1723
1797
|
protected getInitialActiveIndex(): number;
|
|
1724
1798
|
protected commitActiveOption(option: Option<V>): void;
|
|
@@ -1748,7 +1822,7 @@ declare class Switch extends CheckboxFormControl {
|
|
|
1748
1822
|
readonly color: InputSignal<switchColor>;
|
|
1749
1823
|
readonly tabindex: InputSignal<string | number>;
|
|
1750
1824
|
protected readonly hostClasses: Signal<string[]>;
|
|
1751
|
-
protected toggle(): void;
|
|
1825
|
+
protected toggle(event?: Event): void;
|
|
1752
1826
|
protected onKeyboardToggle(event: Event): void;
|
|
1753
1827
|
static ɵfac: i0.ɵɵFactoryDeclaration<Switch, never>;
|
|
1754
1828
|
static ɵcmp: i0.ɵɵComponentDeclaration<Switch, "tls-switch", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, never, true, never>;
|
|
@@ -2248,13 +2322,17 @@ declare class Pagination {
|
|
|
2248
2322
|
readonly showLastButton: i0.InputSignalWithTransform<boolean, unknown>;
|
|
2249
2323
|
protected readonly labels: PaginationLabels;
|
|
2250
2324
|
protected readonly pageCount: i0.Signal<number>;
|
|
2325
|
+
/** Last valid page; at least 1 so the current page never leaves the 1-based range. */
|
|
2326
|
+
protected readonly lastValidPage: i0.Signal<number>;
|
|
2251
2327
|
protected readonly visiblePages: i0.Signal<paginationItem[]>;
|
|
2252
2328
|
protected readonly classes: i0.Signal<string[]>;
|
|
2329
|
+
constructor();
|
|
2253
2330
|
protected setPage(page: number): void;
|
|
2254
2331
|
protected firstPage(): void;
|
|
2255
2332
|
protected prevPage(): void;
|
|
2256
2333
|
protected nextPage(): void;
|
|
2257
2334
|
protected lastPage(): void;
|
|
2335
|
+
private _clamp;
|
|
2258
2336
|
/** Returns an inclusive array of integers from start to end. Returns [] if end < start. */
|
|
2259
2337
|
private _range;
|
|
2260
2338
|
/** Computes the visible page items, inserting 'gap' where ellipsis should appear based on boundaries and siblings. */
|
|
@@ -2272,10 +2350,18 @@ declare const DEFAULT_PAGINATION_QUERY_SYNC_CONFIG: PaginationQuerySyncConfig;
|
|
|
2272
2350
|
|
|
2273
2351
|
declare const PAGINATION_QUERY_SYNC_CONFIG: InjectionToken<PaginationQuerySyncConfig>;
|
|
2274
2352
|
|
|
2353
|
+
/**
|
|
2354
|
+
* Mirrors the current page into a URL query param. The param is only written
|
|
2355
|
+
* once the page actually changes — the initial page (the default, or the one
|
|
2356
|
+
* restored from the URL) never stamps the param, so a freshly loaded page
|
|
2357
|
+
* keeps its URL untouched.
|
|
2358
|
+
*/
|
|
2275
2359
|
declare class PaginationQuerySyncDirective extends QuerySyncDirective implements OnInit {
|
|
2276
2360
|
private readonly _pagination;
|
|
2277
2361
|
private readonly _config;
|
|
2278
2362
|
readonly tlsPaginationQuerySync: i0.InputSignalWithTransform<string, string>;
|
|
2363
|
+
/** Last page mirrored to the URL; `null` until the initial page settles. */
|
|
2364
|
+
private _lastSynced;
|
|
2279
2365
|
constructor();
|
|
2280
2366
|
ngOnInit(): void;
|
|
2281
2367
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationQuerySyncDirective, never>;
|
|
@@ -2505,6 +2591,14 @@ declare class Tabs {
|
|
|
2505
2591
|
protected hostClasses: Signal<string[]>;
|
|
2506
2592
|
protected headerClasses: Signal<string[]>;
|
|
2507
2593
|
constructor();
|
|
2594
|
+
/**
|
|
2595
|
+
* Resolves serialized text (e.g. a URL query param) back to the matching
|
|
2596
|
+
* tab's actual value, so a numeric tab value round-trips with its own type
|
|
2597
|
+
* instead of a string that would never match. Returns `undefined` when no tab
|
|
2598
|
+
* matches — including while the projected tabs have not resolved yet, so a
|
|
2599
|
+
* reactive caller can retry once they have.
|
|
2600
|
+
*/
|
|
2601
|
+
findTabValue(text: string): tabValue | undefined;
|
|
2508
2602
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tabs, never>;
|
|
2509
2603
|
static ɵcmp: i0.ɵɵComponentDeclaration<Tabs, "tls-tabs", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, ["tabs"], never, true, [{ directive: typeof i1.Tabs; inputs: {}; outputs: {}; }]>;
|
|
2510
2604
|
}
|
|
@@ -2525,12 +2619,22 @@ declare const DEFAULT_TABS_QUERY_SYNC_CONFIG: TabsQuerySyncConfig;
|
|
|
2525
2619
|
|
|
2526
2620
|
declare const TABS_QUERY_SYNC_CONFIG: InjectionToken<TabsQuerySyncConfig>;
|
|
2527
2621
|
|
|
2528
|
-
|
|
2622
|
+
/**
|
|
2623
|
+
* Mirrors the selected tab into a URL query param. The param is only written
|
|
2624
|
+
* once the selection actually changes — the initial selection (the default
|
|
2625
|
+
* first tab, or the one restored from the URL) never stamps the param, so a
|
|
2626
|
+
* freshly loaded page keeps its URL untouched.
|
|
2627
|
+
*/
|
|
2628
|
+
declare class TabsQuerySyncDirective extends QuerySyncDirective {
|
|
2529
2629
|
private readonly _tabs;
|
|
2530
2630
|
private readonly _config;
|
|
2531
2631
|
readonly tlsTabsQuerySync: i0.InputSignalWithTransform<string, string>;
|
|
2632
|
+
/** Param value captured once at startup, pending until a matching tab resolves. */
|
|
2633
|
+
private _pendingRestore;
|
|
2634
|
+
private _restoreRead;
|
|
2635
|
+
/** Last selection mirrored to the URL; `undefined` until the initial selection settles. */
|
|
2636
|
+
private _lastSynced;
|
|
2532
2637
|
constructor();
|
|
2533
|
-
ngOnInit(): void;
|
|
2534
2638
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabsQuerySyncDirective, never>;
|
|
2535
2639
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsQuerySyncDirective, "tls-tabs[tlsTabsQuerySync]", never, { "tlsTabsQuerySync": { "alias": "tlsTabsQuerySync"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2536
2640
|
}
|
|
@@ -2804,6 +2908,7 @@ interface ToastLayout {
|
|
|
2804
2908
|
declare class ToastOutlet {
|
|
2805
2909
|
private readonly _service;
|
|
2806
2910
|
private readonly _destroyRef;
|
|
2911
|
+
private readonly _elementRef;
|
|
2807
2912
|
protected readonly toasts: i0.Signal<ToastState[]>;
|
|
2808
2913
|
private readonly _pointerInside;
|
|
2809
2914
|
private readonly _focusInside;
|
|
@@ -2823,7 +2928,8 @@ declare class ToastOutlet {
|
|
|
2823
2928
|
protected onDismiss(id: number): void;
|
|
2824
2929
|
protected onAction(toast: ToastState): void;
|
|
2825
2930
|
protected onPointerEnter(): void;
|
|
2826
|
-
protected onPointerLeave(): void;
|
|
2931
|
+
protected onPointerLeave(event: PointerEvent): void;
|
|
2932
|
+
protected onDocumentPointerDown(event: PointerEvent): void;
|
|
2827
2933
|
protected onFocusIn(): void;
|
|
2828
2934
|
protected onFocusOut(): void;
|
|
2829
2935
|
private _measure;
|
|
@@ -2865,6 +2971,16 @@ type tooltipOrigin = 'cursor' | 'element';
|
|
|
2865
2971
|
type tooltipPosition = overlayPosition;
|
|
2866
2972
|
type tooltipColor = color;
|
|
2867
2973
|
|
|
2974
|
+
/**
|
|
2975
|
+
* Attaches a tooltip to the host element. Shows on hover and on keyboard focus,
|
|
2976
|
+
* toggles on touch, and dismisses on Escape without moving the pointer or focus
|
|
2977
|
+
* (WCAG 1.4.13). The tooltip is linked to the host via `aria-describedby` while
|
|
2978
|
+
* visible.
|
|
2979
|
+
*
|
|
2980
|
+
* Interaction is driven by pointer events, branching on `pointerType`: mouse
|
|
2981
|
+
* and pen get hover semantics, touch gets tap-to-toggle. A single stream avoids
|
|
2982
|
+
* the synthesized mouse events browsers replay after a tap.
|
|
2983
|
+
*/
|
|
2868
2984
|
declare class TooltipDirective implements OnDestroy {
|
|
2869
2985
|
private _tooltipService;
|
|
2870
2986
|
private _elementRef;
|
|
@@ -2880,10 +2996,13 @@ declare class TooltipDirective implements OnDestroy {
|
|
|
2880
2996
|
tooltipColor: InputSignal<tooltipColor>;
|
|
2881
2997
|
private _visible;
|
|
2882
2998
|
private _positions;
|
|
2883
|
-
protected
|
|
2884
|
-
protected
|
|
2885
|
-
protected
|
|
2886
|
-
protected
|
|
2999
|
+
protected onPointerEnter(event: PointerEvent): void;
|
|
3000
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
3001
|
+
protected onPointerLeave(event: PointerEvent): void;
|
|
3002
|
+
protected onFocus(): void;
|
|
3003
|
+
protected onBlur(): void;
|
|
3004
|
+
/** Dismisses the tooltip without moving the pointer or focus (WCAG 1.4.13). */
|
|
3005
|
+
protected onEscape(): void;
|
|
2887
3006
|
private _show;
|
|
2888
3007
|
private _hide;
|
|
2889
3008
|
ngOnDestroy(): void;
|
|
@@ -2919,7 +3038,7 @@ interface tlsUiConfigProvider {
|
|
|
2919
3038
|
locale?: Partial<LocaleConfig>;
|
|
2920
3039
|
/** Cross-cutting defaults inherited by every form control (not tied to a single component). */
|
|
2921
3040
|
formControl?: Partial<FormControlConfig>;
|
|
2922
|
-
components
|
|
3041
|
+
components?: {
|
|
2923
3042
|
alert?: Partial<AlertConfig>;
|
|
2924
3043
|
autocomplete?: Partial<AutocompleteConfig>;
|
|
2925
3044
|
button?: Partial<ButtonConfig>;
|
|
@@ -2986,6 +3105,13 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
|
|
|
2986
3105
|
protected readonly overlay: OverlayManager;
|
|
2987
3106
|
private readonly triggerElement;
|
|
2988
3107
|
private readonly panelTemplate;
|
|
3108
|
+
/**
|
|
3109
|
+
* Consumer template rendered inside each option button in place of the plain
|
|
3110
|
+
* label (`<ng-template #option let-context>`). The button itself — and with it
|
|
3111
|
+
* the option's ARIA, activation, and hover behavior — stays owned by the
|
|
3112
|
+
* control; the template only customizes the visual content.
|
|
3113
|
+
*/
|
|
3114
|
+
protected readonly optionTemplate: Signal<TemplateRef<selectTemplateContext<T, V>> | undefined>;
|
|
2989
3115
|
readonly options: InputSignal<optionInput<T>[]>;
|
|
2990
3116
|
readonly optionLabel: InputSignal<keyof T | undefined>;
|
|
2991
3117
|
readonly optionValue: InputSignal<keyof T | undefined>;
|
|
@@ -3011,6 +3137,8 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
|
|
|
3011
3137
|
protected abstract readonly hostClassBase: string;
|
|
3012
3138
|
protected abstract readonly panelClass: string;
|
|
3013
3139
|
protected abstract readonly hasValue: Signal<boolean>;
|
|
3140
|
+
/** Whether `option` is part of the current selection (scalar or array, per control). */
|
|
3141
|
+
protected abstract isOptionSelected(option: Option<V>): boolean;
|
|
3014
3142
|
/** Index the active option starts on when the panel opens. */
|
|
3015
3143
|
protected abstract getInitialActiveIndex(): number;
|
|
3016
3144
|
/** Apply the active option's selection when committed via mouse or keyboard. */
|
|
@@ -3027,13 +3155,15 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
|
|
|
3027
3155
|
protected open(): void;
|
|
3028
3156
|
protected close(): void;
|
|
3029
3157
|
protected toggle(): void;
|
|
3030
|
-
protected onOptionHover(index: number, disabled?: boolean): void;
|
|
3158
|
+
protected onOptionHover(event: PointerEvent, index: number, disabled?: boolean): void;
|
|
3031
3159
|
protected onKeydown(event: KeyboardEvent): void;
|
|
3032
3160
|
protected optionId(index: number): string;
|
|
3161
|
+
/** Context handed to the consumer's option template for the option at `index`. */
|
|
3162
|
+
protected optionContext(option: Option<V>, index: number): selectTemplateContext<T, V>;
|
|
3033
3163
|
protected moveActive(direction: 1 | -1): void;
|
|
3034
3164
|
private moveActiveToEdge;
|
|
3035
3165
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSelect<any, any, any>, never>;
|
|
3036
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any, any>, never, never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {},
|
|
3166
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any, any>, never, never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, {}, ["optionTemplate"], never, true, never>;
|
|
3037
3167
|
}
|
|
3038
3168
|
|
|
3039
3169
|
declare abstract class QuerySyncDirective {
|
|
@@ -3045,7 +3175,7 @@ declare abstract class QuerySyncDirective {
|
|
|
3045
3175
|
static ɵdir: i0.ɵɵDirectiveDeclaration<QuerySyncDirective, never, never, {}, {}, never, never, true, never>;
|
|
3046
3176
|
}
|
|
3047
3177
|
|
|
3048
|
-
declare const provideThalassicUIConfig: (config
|
|
3178
|
+
declare const provideThalassicUIConfig: (config?: tlsUiConfigProvider) => EnvironmentProviders;
|
|
3049
3179
|
|
|
3050
3180
|
export { ALERT_CONFIG, AUTOCOMPLETE_CONFIG, Alert, 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_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_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_RADIO_BUTTON_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, 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, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, 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, Pagination, PaginationQuerySyncDirective, Password, PinInput, Popover, RADIO_BUTTON_CONFIG, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, 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, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDirective, ValueFormControl, applyMask, provideThalassicIcons, provideThalassicUIConfig };
|
|
3051
3181
|
export type { AlertConfig, AutocompleteConfig, BadgeConfig, BreadcrumbItem, BreadcrumbsConfig, ButtonConfig, CalendarConfig, CalendarEvent, CalendarEventContext, CalendarLabels, CalendarRange, CheckboxConfig, ChipConfig, ChipContext, ChipControlConfig, ChipGroupConfig, ChipInputConfig, ConfirmConfig, ConfirmOptions, DateTimePickerConfig, DialogConfig, DialogOpenConfig, DividerConfig, DrawerConfig, DrawerOpenConfig, FileInputConfig, FileInputDropZoneContext, FileInputFileContext, FormControlConfig, FormControlGroupConfig, FormItemConfig, HighlightConfig, HighlightSegment, IconConfig, ImageCompareConfig, InputConfig, InputNumberConfig, KbdConfig, LoaderConfig, MarkConfig, MaskResult, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, MultiSelectConfig, OdometerConfig, OdometerToken, PaginationConfig, PaginationLabels, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, SplitterConfig, StepConfig, StepperConfig, StepperSelectEvent, SwitchConfig, TabNavConfig, TableColumnDefinition, TableConfig, TableData, TableTrackBy, TabsConfig, TabsQuerySyncConfig, TextareaConfig, ToastConfig, ToastOptions, ToastRef, ToastState, ToggleButtonConfig, ToggleGroupConfig, TooltipConfig, acceptInput, alertColor, autocompleteFilterMode, badgeColor, badgePosition, badgeVariant, buttonColor, buttonType, buttonVariant, calendarView, chipColor, chipSize, chipTemplateContext, chipVariant, color, confirmActionsAlign, confirmButton, controlSize, dateTimePickerMode, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerSide, drawerSize, errorTrigger, fileInputDragState, fileInputVariant, iconRegistry, iconRenderer, imageCompareOrientation, labelPosition, loaderSize, menuItemType, menuPosition, orientation, overlayPosition, paginationItem, pinInputType, resolvedConfirmButton, size, splitterOrientation, stepperColor, stepperOrientation, stepperValue, switchColor, systemIcon, tabValue, tableColumnAlignment, tabsHeaderPosition, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, toastAction, toastColor, toastPosition, toastSeverity, toastStacking, toggleButtonColor, toggleButtonVariant, toggleGroupVariant, tooltipColor, tooltipOrigin, tooltipPosition };
|