@thalassic/ui 22.13.0 → 22.14.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thalassic/ui",
3
- "version": "22.13.0",
3
+ "version": "22.14.1",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/aria": "^22.0.0",
@@ -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
  }
@@ -427,6 +452,17 @@ interface BreadcrumbItem {
427
452
  /** Icon source rendered before the label (see tls-icon's iconSrc). */
428
453
  icon?: string;
429
454
  }
455
+ /**
456
+ * Context exposed to a custom item template (see Breadcrumbs.itemTemplate). The
457
+ * item is the implicit value, so `<ng-template let-item>` binds it directly.
458
+ */
459
+ interface BreadcrumbItemContext {
460
+ $implicit: BreadcrumbItem;
461
+ /** Zero-based position of the item in the trail. */
462
+ index: number;
463
+ /** Whether this is the last (current-page) item. */
464
+ last: boolean;
465
+ }
430
466
 
431
467
  declare class Breadcrumbs {
432
468
  private readonly _config;
@@ -435,8 +471,9 @@ declare class Breadcrumbs {
435
471
  /** Accessible name for the breadcrumb navigation landmark. */
436
472
  readonly ariaLabel: i0.InputSignal<string>;
437
473
  readonly ariaLabelledby: i0.InputSignal<string | undefined>;
474
+ readonly itemTemplate: i0.Signal<TemplateRef<BreadcrumbItemContext> | undefined>;
438
475
  static ɵfac: i0.ɵɵFactoryDeclaration<Breadcrumbs, never>;
439
- 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; }; }, {}, never, never, true, never>;
476
+ 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>;
440
477
  }
441
478
 
442
479
  interface BreadcrumbsConfig {
@@ -607,6 +644,8 @@ declare class Calendar {
607
644
  }[];
608
645
  protected readonly eventTemplate: Signal<TemplateRef<CalendarEventContext> | undefined>;
609
646
  private readonly _dateOptions;
647
+ /** Ticking current time, so the "Today" affordance stays correct across midnight. */
648
+ private readonly _now;
610
649
  protected readonly hostClasses: Signal<string[]>;
611
650
  /** Whether the active period already includes today, so "Today" would be a no-op. */
612
651
  protected readonly isViewingToday: Signal<boolean>;
@@ -653,6 +692,8 @@ declare class CalendarAgendaView {
653
692
  readonly eventSelect: OutputEmitterRef<CalendarEvent>;
654
693
  protected readonly noEventsLabel: string;
655
694
  private readonly _dateOptions;
695
+ /** Ticking current time, so the today marker tracks the clock across midnight. */
696
+ private readonly _now;
656
697
  protected readonly days: Signal<AgendaDay[]>;
657
698
  static ɵfac: i0.ɵɵFactoryDeclaration<CalendarAgendaView, never>;
658
699
  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 +755,8 @@ declare class CalendarMonthView {
714
755
  readonly dateSelect: OutputEmitterRef<Date>;
715
756
  readonly eventSelect: OutputEmitterRef<CalendarEvent>;
716
757
  private readonly _dateOptions;
758
+ /** Ticking current time, so the today highlight tracks the clock across midnight. */
759
+ private readonly _now;
717
760
  protected readonly weekdayHeaders: Signal<string[]>;
718
761
  protected readonly weeks: Signal<MonthWeek[]>;
719
762
  /** Localized "+N more" label for a day cell with `count` hidden events. */
@@ -762,6 +805,8 @@ declare class CalendarTimeGrid {
762
805
  protected readonly hourHeight = 48;
763
806
  protected readonly allDayLabel: string;
764
807
  private readonly _dateOptions;
808
+ /** Ticking current time, so the now line and today highlight track the clock. */
809
+ private readonly _now;
765
810
  protected readonly hours: Signal<number[]>;
766
811
  protected readonly columns: Signal<TimeGridColumn[]>;
767
812
  /** Vertical offset (px) of the current-time line, or null when now is off-screen. */
@@ -770,6 +815,13 @@ declare class CalendarTimeGrid {
770
815
  protected laneOffset(layout: TimedEventLayout): number;
771
816
  protected laneWidth(layout: TimedEventLayout): number;
772
817
  private _isAllDay;
818
+ /**
819
+ * Whether the event has any visible span inside the rendered hour window.
820
+ * Events entirely before `hourStart` or after `hourEnd` are excluded — clamping
821
+ * them would paint a zero-length sliver pinned to the window edge. An instant
822
+ * (zero-duration) event counts while its start sits inside the window.
823
+ */
824
+ private _overlapsWindow;
773
825
  private _clamp;
774
826
  static ɵfac: i0.ɵɵFactoryDeclaration<CalendarTimeGrid, never>;
775
827
  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 +1217,8 @@ interface FormItemConfig {
1165
1217
  /** Text appended to non-required fields (e.g. `(optional)`). Not shown when omitted. */
1166
1218
  optionalText?: string;
1167
1219
  errorMessages: ErrorMessageMap;
1220
+ /** Fallback for an error kind absent from `errorMessages` that carries no `message` of its own. */
1221
+ unknownErrorMessage: ErrorMessageFn;
1168
1222
  }
1169
1223
  declare const DEFAULT_FORM_ITEM_CONFIG: FormItemConfig;
1170
1224
 
@@ -1237,6 +1291,7 @@ declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null
1237
1291
  */
1238
1292
  protected readonly query: WritableSignal<string>;
1239
1293
  protected select(option: Option<V>): void;
1294
+ protected isOptionSelected(option: Option<V>): boolean;
1240
1295
  protected onInput(event: Event): void;
1241
1296
  protected onKeydown(event: KeyboardEvent): void;
1242
1297
  protected filterVisibleOptions(options: Option<V>[]): Option<V>[];
@@ -1276,7 +1331,7 @@ declare class Checkbox extends CheckboxFormControl {
1276
1331
  readonly checked: ModelSignal<boolean>;
1277
1332
  readonly tabindex: InputSignal<string | number>;
1278
1333
  protected readonly hostClasses: Signal<string[]>;
1279
- protected toggle(): void;
1334
+ protected toggle(event?: Event): void;
1280
1335
  protected onKeyboardToggle(event: Event): void;
1281
1336
  static ɵfac: i0.ɵɵFactoryDeclaration<Checkbox, never>;
1282
1337
  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 +1342,8 @@ type dateTimePickerMode = 'calendar' | 'month-picker' | 'year-picker' | 'time-pi
1287
1342
  type ActiveView = 'calendar' | 'month-picker' | 'year-picker' | 'time-picker' | 'date-time';
1288
1343
  declare class DateTimePicker extends ValueFormControl<Date | null> {
1289
1344
  private readonly config;
1345
+ private readonly _locale;
1346
+ private readonly _dateOptions;
1290
1347
  private readonly popoverComponent;
1291
1348
  readonly value: ModelSignal<Date | null>;
1292
1349
  readonly mode: InputSignal<dateTimePickerMode>;
@@ -1415,14 +1472,19 @@ declare class FileInput extends ValueFormControl<File[]> {
1415
1472
  readonly hideFileList: InputSignalWithTransform<boolean, unknown>;
1416
1473
  protected readonly nativeInput: Signal<ElementRef<HTMLInputElement>>;
1417
1474
  protected readonly dragState: i0.WritableSignal<fileInputDragState>;
1475
+ /** Nesting depth of the active drag: dragenter/dragleave pairs fired by the drop zone's children. */
1476
+ private _dragDepth;
1418
1477
  protected readonly dropZoneTemplate: Signal<TemplateRef<FileInputDropZoneContext> | undefined>;
1419
1478
  protected readonly fileTemplate: Signal<TemplateRef<FileInputFileContext> | undefined>;
1420
1479
  protected readonly classes: Signal<string[]>;
1421
1480
  protected readonly triggerLabel: Signal<string>;
1481
+ /** Accessible name for the drop zone: the consumer's, or the configured fallback. */
1482
+ protected readonly dropZoneLabel: Signal<string>;
1422
1483
  protected readonly acceptHint: Signal<string>;
1423
1484
  protected openFilePicker(): void;
1424
1485
  protected onFilesSelected(event: Event): void;
1425
1486
  protected onDropZoneKeydown(event: KeyboardEvent): void;
1487
+ protected onDragEnter(): void;
1426
1488
  protected onDragOver(event: DragEvent): void;
1427
1489
  protected onDragLeave(): void;
1428
1490
  protected onDrop(event: DragEvent): void;
@@ -1442,6 +1504,14 @@ interface FileInputConfig {
1442
1504
  accept: acceptInput;
1443
1505
  fluid: boolean;
1444
1506
  hideFileList: boolean;
1507
+ /** Trigger label in single-file mode, overridable for localization. */
1508
+ chooseFileLabel: string;
1509
+ /** Trigger label in multiple-file mode, overridable for localization. */
1510
+ chooseFilesLabel: string;
1511
+ /** Fallback accessible name for the drop zone in single-file mode, overridable for localization. */
1512
+ dropZoneFileLabel: string;
1513
+ /** Fallback accessible name for the drop zone in multiple-file mode, overridable for localization. */
1514
+ dropZoneFilesLabel: string;
1445
1515
  }
1446
1516
  declare const DEFAULT_FILE_INPUT_CONFIG: FileInputConfig;
1447
1517
 
@@ -1493,6 +1563,12 @@ declare class InputNumber extends ValueFormControl<number | null> {
1493
1563
  readonly hideArrows: InputSignalWithTransform<boolean, unknown>;
1494
1564
  protected readonly classes: Signal<string[]>;
1495
1565
  protected onInput(event: Event): void;
1566
+ /**
1567
+ * Clamps a typed value into `[min, max]` once editing is committed (`change`
1568
+ * fires on blur/Enter). The spinner arrows already honor the bounds natively;
1569
+ * clamping only here keeps mid-typing values ("1" on the way to "10") intact.
1570
+ */
1571
+ protected onChange(event: Event): void;
1496
1572
  static ɵfac: i0.ɵɵFactoryDeclaration<InputNumber, never>;
1497
1573
  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
1574
  }
@@ -1650,6 +1726,12 @@ declare const DEFAULT_RADIO_BUTTON_CONFIG: RadioButtonConfig;
1650
1726
 
1651
1727
  declare const RADIO_BUTTON_CONFIG: InjectionToken<RadioButtonConfig>;
1652
1728
 
1729
+ /**
1730
+ * A single radio option bound to a shared `value` model; the option whose
1731
+ * `radioValue` equals the model is checked. When several radio buttons form one
1732
+ * group, wrap each in its own `tls-form-item` (the item's label names that
1733
+ * option), rather than one item around the whole group.
1734
+ */
1653
1735
  declare class RadioButton extends ValueFormControl<unknown> {
1654
1736
  private _config;
1655
1737
  protected CLASS_NAME: string;
@@ -1682,6 +1764,7 @@ declare class MultiSelect<T, V = unknown> extends AbstractSelect<T, V, V[]> {
1682
1764
  protected readonly selectedValues: Signal<Set<V>>;
1683
1765
  protected readonly triggerLabel: Signal<string>;
1684
1766
  protected isSelected(option: Option<V>): boolean;
1767
+ protected isOptionSelected(option: Option<V>): boolean;
1685
1768
  protected toggleOption(option: Option<V>): void;
1686
1769
  protected clear(): void;
1687
1770
  protected getInitialActiveIndex(): number;
@@ -1698,6 +1781,8 @@ interface MultiSelectConfig {
1698
1781
  maxLabels: number;
1699
1782
  /** Accessible name for the clear button, overridable for localization. */
1700
1783
  clearLabel: string;
1784
+ /** Trigger label when more than `maxLabels` options are selected, overridable for localization. */
1785
+ selectedCountLabel: (count: number) => string;
1701
1786
  }
1702
1787
  declare const DEFAULT_MULTI_SELECT_CONFIG: MultiSelectConfig;
1703
1788
 
@@ -1719,6 +1804,7 @@ declare class Select<T, V = unknown> extends AbstractSelect<T, V, V | null> {
1719
1804
  protected readonly hasValue: Signal<boolean>;
1720
1805
  protected readonly selectedLabel: Signal<string>;
1721
1806
  protected select(option: Option<V>): void;
1807
+ protected isOptionSelected(option: Option<V>): boolean;
1722
1808
  protected clear(): void;
1723
1809
  protected getInitialActiveIndex(): number;
1724
1810
  protected commitActiveOption(option: Option<V>): void;
@@ -1748,7 +1834,7 @@ declare class Switch extends CheckboxFormControl {
1748
1834
  readonly color: InputSignal<switchColor>;
1749
1835
  readonly tabindex: InputSignal<string | number>;
1750
1836
  protected readonly hostClasses: Signal<string[]>;
1751
- protected toggle(): void;
1837
+ protected toggle(event?: Event): void;
1752
1838
  protected onKeyboardToggle(event: Event): void;
1753
1839
  static ɵfac: i0.ɵɵFactoryDeclaration<Switch, never>;
1754
1840
  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 +2334,17 @@ declare class Pagination {
2248
2334
  readonly showLastButton: i0.InputSignalWithTransform<boolean, unknown>;
2249
2335
  protected readonly labels: PaginationLabels;
2250
2336
  protected readonly pageCount: i0.Signal<number>;
2337
+ /** Last valid page; at least 1 so the current page never leaves the 1-based range. */
2338
+ protected readonly lastValidPage: i0.Signal<number>;
2251
2339
  protected readonly visiblePages: i0.Signal<paginationItem[]>;
2252
2340
  protected readonly classes: i0.Signal<string[]>;
2341
+ constructor();
2253
2342
  protected setPage(page: number): void;
2254
2343
  protected firstPage(): void;
2255
2344
  protected prevPage(): void;
2256
2345
  protected nextPage(): void;
2257
2346
  protected lastPage(): void;
2347
+ private _clamp;
2258
2348
  /** Returns an inclusive array of integers from start to end. Returns [] if end < start. */
2259
2349
  private _range;
2260
2350
  /** Computes the visible page items, inserting 'gap' where ellipsis should appear based on boundaries and siblings. */
@@ -2272,10 +2362,18 @@ declare const DEFAULT_PAGINATION_QUERY_SYNC_CONFIG: PaginationQuerySyncConfig;
2272
2362
 
2273
2363
  declare const PAGINATION_QUERY_SYNC_CONFIG: InjectionToken<PaginationQuerySyncConfig>;
2274
2364
 
2365
+ /**
2366
+ * Mirrors the current page into a URL query param. The param is only written
2367
+ * once the page actually changes — the initial page (the default, or the one
2368
+ * restored from the URL) never stamps the param, so a freshly loaded page
2369
+ * keeps its URL untouched.
2370
+ */
2275
2371
  declare class PaginationQuerySyncDirective extends QuerySyncDirective implements OnInit {
2276
2372
  private readonly _pagination;
2277
2373
  private readonly _config;
2278
2374
  readonly tlsPaginationQuerySync: i0.InputSignalWithTransform<string, string>;
2375
+ /** Last page mirrored to the URL; `null` until the initial page settles. */
2376
+ private _lastSynced;
2279
2377
  constructor();
2280
2378
  ngOnInit(): void;
2281
2379
  static ɵfac: i0.ɵɵFactoryDeclaration<PaginationQuerySyncDirective, never>;
@@ -2505,6 +2603,14 @@ declare class Tabs {
2505
2603
  protected hostClasses: Signal<string[]>;
2506
2604
  protected headerClasses: Signal<string[]>;
2507
2605
  constructor();
2606
+ /**
2607
+ * Resolves serialized text (e.g. a URL query param) back to the matching
2608
+ * tab's actual value, so a numeric tab value round-trips with its own type
2609
+ * instead of a string that would never match. Returns `undefined` when no tab
2610
+ * matches — including while the projected tabs have not resolved yet, so a
2611
+ * reactive caller can retry once they have.
2612
+ */
2613
+ findTabValue(text: string): tabValue | undefined;
2508
2614
  static ɵfac: i0.ɵɵFactoryDeclaration<Tabs, never>;
2509
2615
  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
2616
  }
@@ -2525,12 +2631,22 @@ declare const DEFAULT_TABS_QUERY_SYNC_CONFIG: TabsQuerySyncConfig;
2525
2631
 
2526
2632
  declare const TABS_QUERY_SYNC_CONFIG: InjectionToken<TabsQuerySyncConfig>;
2527
2633
 
2528
- declare class TabsQuerySyncDirective extends QuerySyncDirective implements OnInit {
2634
+ /**
2635
+ * Mirrors the selected tab into a URL query param. The param is only written
2636
+ * once the selection actually changes — the initial selection (the default
2637
+ * first tab, or the one restored from the URL) never stamps the param, so a
2638
+ * freshly loaded page keeps its URL untouched.
2639
+ */
2640
+ declare class TabsQuerySyncDirective extends QuerySyncDirective {
2529
2641
  private readonly _tabs;
2530
2642
  private readonly _config;
2531
2643
  readonly tlsTabsQuerySync: i0.InputSignalWithTransform<string, string>;
2644
+ /** Param value captured once at startup, pending until a matching tab resolves. */
2645
+ private _pendingRestore;
2646
+ private _restoreRead;
2647
+ /** Last selection mirrored to the URL; `undefined` until the initial selection settles. */
2648
+ private _lastSynced;
2532
2649
  constructor();
2533
- ngOnInit(): void;
2534
2650
  static ɵfac: i0.ɵɵFactoryDeclaration<TabsQuerySyncDirective, never>;
2535
2651
  static ɵdir: i0.ɵɵDirectiveDeclaration<TabsQuerySyncDirective, "tls-tabs[tlsTabsQuerySync]", never, { "tlsTabsQuerySync": { "alias": "tlsTabsQuerySync"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2536
2652
  }
@@ -2804,6 +2920,7 @@ interface ToastLayout {
2804
2920
  declare class ToastOutlet {
2805
2921
  private readonly _service;
2806
2922
  private readonly _destroyRef;
2923
+ private readonly _elementRef;
2807
2924
  protected readonly toasts: i0.Signal<ToastState[]>;
2808
2925
  private readonly _pointerInside;
2809
2926
  private readonly _focusInside;
@@ -2823,7 +2940,8 @@ declare class ToastOutlet {
2823
2940
  protected onDismiss(id: number): void;
2824
2941
  protected onAction(toast: ToastState): void;
2825
2942
  protected onPointerEnter(): void;
2826
- protected onPointerLeave(): void;
2943
+ protected onPointerLeave(event: PointerEvent): void;
2944
+ protected onDocumentPointerDown(event: PointerEvent): void;
2827
2945
  protected onFocusIn(): void;
2828
2946
  protected onFocusOut(): void;
2829
2947
  private _measure;
@@ -2865,6 +2983,16 @@ type tooltipOrigin = 'cursor' | 'element';
2865
2983
  type tooltipPosition = overlayPosition;
2866
2984
  type tooltipColor = color;
2867
2985
 
2986
+ /**
2987
+ * Attaches a tooltip to the host element. Shows on hover and on keyboard focus,
2988
+ * toggles on touch, and dismisses on Escape without moving the pointer or focus
2989
+ * (WCAG 1.4.13). The tooltip is linked to the host via `aria-describedby` while
2990
+ * visible.
2991
+ *
2992
+ * Interaction is driven by pointer events, branching on `pointerType`: mouse
2993
+ * and pen get hover semantics, touch gets tap-to-toggle. A single stream avoids
2994
+ * the synthesized mouse events browsers replay after a tap.
2995
+ */
2868
2996
  declare class TooltipDirective implements OnDestroy {
2869
2997
  private _tooltipService;
2870
2998
  private _elementRef;
@@ -2880,10 +3008,13 @@ declare class TooltipDirective implements OnDestroy {
2880
3008
  tooltipColor: InputSignal<tooltipColor>;
2881
3009
  private _visible;
2882
3010
  private _positions;
2883
- protected onMouseEnter(event: MouseEvent): void;
2884
- protected onMouseMove(event: MouseEvent): void;
2885
- protected onMouseLeave(): void;
2886
- protected onTouchStart(event: TouchEvent): void;
3011
+ protected onPointerEnter(event: PointerEvent): void;
3012
+ protected onPointerMove(event: PointerEvent): void;
3013
+ protected onPointerLeave(event: PointerEvent): void;
3014
+ protected onFocus(): void;
3015
+ protected onBlur(): void;
3016
+ /** Dismisses the tooltip without moving the pointer or focus (WCAG 1.4.13). */
3017
+ protected onEscape(): void;
2887
3018
  private _show;
2888
3019
  private _hide;
2889
3020
  ngOnDestroy(): void;
@@ -2919,7 +3050,7 @@ interface tlsUiConfigProvider {
2919
3050
  locale?: Partial<LocaleConfig>;
2920
3051
  /** Cross-cutting defaults inherited by every form control (not tied to a single component). */
2921
3052
  formControl?: Partial<FormControlConfig>;
2922
- components: {
3053
+ components?: {
2923
3054
  alert?: Partial<AlertConfig>;
2924
3055
  autocomplete?: Partial<AutocompleteConfig>;
2925
3056
  button?: Partial<ButtonConfig>;
@@ -2986,6 +3117,13 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
2986
3117
  protected readonly overlay: OverlayManager;
2987
3118
  private readonly triggerElement;
2988
3119
  private readonly panelTemplate;
3120
+ /**
3121
+ * Consumer template rendered inside each option button in place of the plain
3122
+ * label (`<ng-template #option let-context>`). The button itself — and with it
3123
+ * the option's ARIA, activation, and hover behavior — stays owned by the
3124
+ * control; the template only customizes the visual content.
3125
+ */
3126
+ protected readonly optionTemplate: Signal<TemplateRef<selectTemplateContext<T, V>> | undefined>;
2989
3127
  readonly options: InputSignal<optionInput<T>[]>;
2990
3128
  readonly optionLabel: InputSignal<keyof T | undefined>;
2991
3129
  readonly optionValue: InputSignal<keyof T | undefined>;
@@ -3011,6 +3149,8 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
3011
3149
  protected abstract readonly hostClassBase: string;
3012
3150
  protected abstract readonly panelClass: string;
3013
3151
  protected abstract readonly hasValue: Signal<boolean>;
3152
+ /** Whether `option` is part of the current selection (scalar or array, per control). */
3153
+ protected abstract isOptionSelected(option: Option<V>): boolean;
3014
3154
  /** Index the active option starts on when the panel opens. */
3015
3155
  protected abstract getInitialActiveIndex(): number;
3016
3156
  /** Apply the active option's selection when committed via mouse or keyboard. */
@@ -3027,13 +3167,15 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
3027
3167
  protected open(): void;
3028
3168
  protected close(): void;
3029
3169
  protected toggle(): void;
3030
- protected onOptionHover(index: number, disabled?: boolean): void;
3170
+ protected onOptionHover(event: PointerEvent, index: number, disabled?: boolean): void;
3031
3171
  protected onKeydown(event: KeyboardEvent): void;
3032
3172
  protected optionId(index: number): string;
3173
+ /** Context handed to the consumer's option template for the option at `index`. */
3174
+ protected optionContext(option: Option<V>, index: number): selectTemplateContext<T, V>;
3033
3175
  protected moveActive(direction: 1 | -1): void;
3034
3176
  private moveActiveToEdge;
3035
3177
  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; }; }, {}, never, never, true, never>;
3178
+ 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
3179
  }
3038
3180
 
3039
3181
  declare abstract class QuerySyncDirective {
@@ -3045,7 +3187,7 @@ declare abstract class QuerySyncDirective {
3045
3187
  static ɵdir: i0.ɵɵDirectiveDeclaration<QuerySyncDirective, never, never, {}, {}, never, never, true, never>;
3046
3188
  }
3047
3189
 
3048
- declare const provideThalassicUIConfig: (config: tlsUiConfigProvider) => EnvironmentProviders;
3190
+ declare const provideThalassicUIConfig: (config?: tlsUiConfigProvider) => EnvironmentProviders;
3049
3191
 
3050
3192
  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
- 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 };
3193
+ export type { AlertConfig, AutocompleteConfig, BadgeConfig, BreadcrumbItem, BreadcrumbItemContext, 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 };