@thalassic/ui 22.16.1 → 22.17.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.
@@ -1,17 +1,18 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TemplateRef, OutputEmitterRef, Type, EnvironmentProviders, ElementRef, OnInit, TrackByFunction, ComponentRef, OnDestroy, Renderer2 } from '@angular/core';
2
+ import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TemplateRef, TrackByFunction, OutputEmitterRef, Type, EnvironmentProviders, ElementRef, OnInit, ComponentRef, OnDestroy, Renderer2 } 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 { Point } from '@thalassic/core';
6
6
  import { FlexibleConnectedPositionStrategyOrigin, ConnectedPosition } from '@angular/cdk/overlay';
7
7
  import * as _thalassic_ui from '@thalassic/ui';
8
- import { CdkDialogContainer, DialogRole, DialogRef } from '@angular/cdk/dialog';
9
- import { ComponentType } from '@angular/cdk/portal';
8
+ import { CdkDialogContainer, DialogRef as DialogRef$1, DialogRole } from '@angular/cdk/dialog';
10
9
  import { Observable } from 'rxjs';
10
+ import { ComponentType } from '@angular/cdk/portal';
11
11
  import { SafeHtml } from '@angular/platform-browser';
12
12
  import { Router, ActivatedRoute } from '@angular/router';
13
13
  import * as i1 from '@angular/aria/tabs';
14
14
  import { DataSource } from '@angular/cdk/table';
15
+ import { CdkVirtualForOfContext, ExtendedScrollToOptions } from '@angular/cdk/scrolling';
15
16
 
16
17
  interface AccessibilityConfig {
17
18
  /**
@@ -280,8 +281,24 @@ interface OverlayArrowPosition {
280
281
 
281
282
  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';
282
283
 
284
+ type radius = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
285
+
286
+ /**
287
+ * A border radius expressed as a theme scale token (`'md'`), a number of pixels (`8`),
288
+ * or a raw CSS length (`'2rem'`). The `string & {}` member keeps token autocomplete
289
+ * while still allowing any other CSS value.
290
+ */
291
+ type radiusValue = radius | number | (string & {});
292
+
283
293
  type size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
284
294
 
295
+ /**
296
+ * Identity of an item in a repeated collection, expressed either as the key of the
297
+ * property holding it or as an explicit function. Absent, a collection tracks by
298
+ * item identity.
299
+ */
300
+ type TrackBy<T> = keyof T | TrackByFunction<T>;
301
+
285
302
  /** A single activity record. Records falling on the same calendar day are summed. */
286
303
  interface ActivityHeatmapEntry {
287
304
  /** Day the activity happened on; the time of day is ignored. */
@@ -538,7 +555,7 @@ declare const BADGE_CONFIG: InjectionToken<BadgeConfig>;
538
555
  * them for their own kit via `provideThalassicIcons`, so this list is the icon
539
556
  * contract between the library and the app.
540
557
  */
541
- type systemIcon = 'check' | 'indeterminate' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevrons-left' | 'chevrons-right' | 'close' | 'success' | 'warning' | 'error' | 'info' | 'bold' | 'italic' | 'strikethrough' | 'inline-code' | 'bullet-list' | 'ordered-list' | 'blockquote' | 'link' | 'code-block';
558
+ 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';
542
559
 
543
560
  declare class Icon {
544
561
  private readonly _iconService;
@@ -758,6 +775,11 @@ declare const DEFAULT_BUTTON_CONFIG: ButtonConfig;
758
775
  declare const BUTTON_CONFIG: InjectionToken<ButtonConfig>;
759
776
 
760
777
  type calendarView = 'month' | 'week' | 'day' | 'agenda';
778
+ /**
779
+ * Density of the calendar's layout. `'auto'` resolves from the calendar's own rendered width, so
780
+ * a calendar in a narrow column is dense even on a wide screen; a boolean pins it either way.
781
+ */
782
+ type calendarCompact = boolean | 'auto';
761
783
  /** A single entry rendered on the calendar. `end` defaults to `start` when omitted. */
762
784
  interface CalendarEvent {
763
785
  id: string;
@@ -780,6 +802,21 @@ interface CalendarEventContext {
780
802
  $implicit: CalendarEvent;
781
803
  view: calendarView;
782
804
  }
805
+ /**
806
+ * Context object exposed to a consumer-provided month day-cell template slot. The slot replaces
807
+ * what the cell renders — its number, event dots and "+N more" — while the cell element itself
808
+ * keeps its grid semantics, selection and borders.
809
+ */
810
+ interface CalendarDayContext {
811
+ $implicit: Date;
812
+ /** Day of the month, formatted for the active locale. */
813
+ dayNumber: string;
814
+ /** Whether the day belongs to the month on screen rather than the padding around it. */
815
+ inCurrentMonth: boolean;
816
+ isToday: boolean;
817
+ /** Every event covering the day, in start order. */
818
+ events: CalendarEvent[];
819
+ }
783
820
 
784
821
  /** User-facing strings rendered by the calendar and its views, overridable for localization. */
785
822
  interface CalendarLabels {
@@ -795,12 +832,19 @@ interface CalendarLabels {
795
832
  noEvents: string;
796
833
  /** Label for the "+N more" affordance on a month day cell with hidden events. */
797
834
  more: (count: number) => string;
835
+ /**
836
+ * Accessible summary of a day cell's event count, announced in place of the dense month
837
+ * layout's dots — which carry no text of their own.
838
+ */
839
+ eventCount: (count: number) => string;
798
840
  /** Labels for the view-switcher options, keyed by view. */
799
841
  views: Record<calendarView, string>;
800
842
  }
801
843
  interface CalendarConfig {
802
844
  /** View shown on first render. */
803
845
  view: calendarView;
846
+ /** Views the switcher offers, in the order they appear; a single entry hides the switcher. */
847
+ views: calendarView[];
804
848
  /** First day of the week (`date-fns` convention: 0 = Sunday). */
805
849
  weekStartsOn: Day;
806
850
  /** Short weekday labels, Sunday-first; rotated to honour `weekStartsOn`. */
@@ -828,6 +872,30 @@ declare class Calendar {
828
872
  readonly hourEnd: InputSignal<number>;
829
873
  readonly showAllDayRow: InputSignal<boolean>;
830
874
  readonly maxEventsPerDay: InputSignal<number>;
875
+ /**
876
+ * Views the switcher offers, in the order they appear. Narrowing it to one entry hides the
877
+ * switcher, and the active view is pulled back into the set whenever it falls outside.
878
+ */
879
+ readonly views: InputSignal<calendarView[]>;
880
+ /** Whether the header renders at all; when false, drive the calendar through its own API. */
881
+ readonly showHeader: InputSignal<boolean>;
882
+ /** Whether the header shows the period title. */
883
+ readonly showTitle: InputSignal<boolean>;
884
+ /** Whether the header shows the previous/today/next controls. */
885
+ readonly showNavigation: InputSignal<boolean>;
886
+ /** Whether the header shows the view switcher; it is hidden anyway with fewer than two views. */
887
+ readonly showViewSwitcher: InputSignal<boolean>;
888
+ /**
889
+ * Density of the layout: `'auto'` lets the rendered width decide, `true` pins the dense layout
890
+ * on and `false` pins it off. The dense month grid marks each day with a dot per event rather
891
+ * than laying out event bars, so only `dateSelect` fires there — `eventSelect` has no target.
892
+ */
893
+ readonly compact: InputSignal<calendarCompact>;
894
+ /**
895
+ * Whether the month grid holds its day cells to a 1:1 ratio. Off by default, where a cell is
896
+ * as tall as the events it has to show; on, the grid's height follows from its width alone.
897
+ */
898
+ readonly squareCells: InputSignal<boolean>;
831
899
  /** Accessible name forwarded to the active view's grid. */
832
900
  readonly ariaLabel: InputSignal<string | undefined>;
833
901
  readonly eventSelect: OutputEmitterRef<CalendarEvent>;
@@ -838,15 +906,20 @@ declare class Calendar {
838
906
  /** Anchor date driving the visible range; navigation shifts it by the view's unit. */
839
907
  readonly activeDate: ModelSignal<Date>;
840
908
  protected readonly labels: CalendarLabels;
841
- protected readonly viewOptions: {
842
- label: string;
843
- value: calendarView;
844
- }[];
845
909
  protected readonly eventTemplate: Signal<TemplateRef<CalendarEventContext> | undefined>;
910
+ protected readonly dayTemplate: Signal<TemplateRef<CalendarDayContext> | undefined>;
846
911
  private readonly _dateOptions;
847
912
  /** Ticking current time, so the "Today" affordance stays correct across midnight. */
848
913
  private readonly _now;
849
914
  protected readonly hostClasses: Signal<string[]>;
915
+ protected readonly viewOptions: Signal<{
916
+ label: string;
917
+ value: calendarView;
918
+ }[]>;
919
+ /** A lone view has nothing to switch between, so the group is suppressed regardless. */
920
+ protected readonly showsViewSwitcher: Signal<boolean>;
921
+ /** Suppresses the header wrapper once every part it would hold is hidden. */
922
+ protected readonly showsHeader: Signal<boolean>;
850
923
  /** Whether the active period already includes today, so "Today" would be a no-op. */
851
924
  protected readonly isViewingToday: Signal<boolean>;
852
925
  protected readonly title: Signal<string>;
@@ -865,7 +938,7 @@ declare class Calendar {
865
938
  private _weekBounds;
866
939
  private _weekTitle;
867
940
  static ɵfac: i0.ɵɵFactoryDeclaration<Calendar, never>;
868
- 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; }; "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"], never, true, never>;
941
+ 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>;
869
942
  }
870
943
 
871
944
  /** A day that has events, precomputed for the agenda list. */
@@ -921,6 +994,12 @@ declare class CalendarEventItem {
921
994
  static ɵcmp: i0.ɵɵComponentDeclaration<CalendarEventItem, "tls-calendar-event", never, { "event": { "alias": "event"; "required": true; "isSignal": true; }; "view": { "alias": "view"; "required": true; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; }, { "activate": "activate"; }, never, never, true, never>;
922
995
  }
923
996
 
997
+ /** A dot marking one of a day's events in the dense layout, tinted by that event's color. */
998
+ interface MonthDayMarker {
999
+ id: string;
1000
+ /** Resolved with the cell so the binding keeps one array rather than rebuilding per check. */
1001
+ classes: string[];
1002
+ }
924
1003
  /** A day cell in the month grid: its number and how many of its events are hidden. */
925
1004
  interface MonthDay {
926
1005
  date: Date;
@@ -928,6 +1007,11 @@ interface MonthDay {
928
1007
  inCurrentMonth: boolean;
929
1008
  isToday: boolean;
930
1009
  hiddenCount: number;
1010
+ /** How many events cover the day in total, however the layout chooses to present them. */
1011
+ eventCount: number;
1012
+ markers: MonthDayMarker[];
1013
+ /** Built with the cell so a template slot is not handed a fresh object on every check. */
1014
+ context: CalendarDayContext;
931
1015
  }
932
1016
  /** A visible event bar placed on the week's lane overlay. */
933
1017
  interface MonthEventBar {
@@ -950,7 +1034,11 @@ declare class CalendarMonthView {
950
1034
  readonly weekStartsOn: InputSignal<Day>;
951
1035
  readonly weekDays: InputSignal<string[]>;
952
1036
  readonly maxEventsPerDay: InputSignal<number>;
1037
+ /** Whether day cells are held to a 1:1 ratio instead of sizing to the events they hold. */
1038
+ readonly squareCells: InputSignal<boolean>;
953
1039
  readonly eventTemplate: InputSignal<TemplateRef<CalendarEventContext> | undefined>;
1040
+ /** Replaces what a day cell renders, leaving the cell's own semantics and chrome in place. */
1041
+ readonly dayTemplate: InputSignal<TemplateRef<CalendarDayContext> | undefined>;
954
1042
  /** Accessible name for the grid, announced when focus enters it. */
955
1043
  readonly label: InputSignal<string | undefined>;
956
1044
  readonly dateSelect: OutputEmitterRef<Date>;
@@ -962,10 +1050,13 @@ declare class CalendarMonthView {
962
1050
  protected readonly weeks: Signal<MonthWeek[]>;
963
1051
  /** Localized "+N more" label for a day cell with `count` hidden events. */
964
1052
  protected moreLabel(count: number): string;
1053
+ /** Localized event-count summary, the only textual form the dense layout's dots have. */
1054
+ protected eventCountLabel(count: number): string;
965
1055
  /** Space would scroll the page; consume it and select the focused day instead. */
966
1056
  protected onDaySpace(event: Event, date: Date): void;
1057
+ private _markerClasses;
967
1058
  static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthView, never>;
968
- 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; }; "eventTemplate": { "alias": "eventTemplate"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "dateSelect": "dateSelect"; "eventSelect": "eventSelect"; }, never, never, true, never>;
1059
+ 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>;
969
1060
  }
970
1061
 
971
1062
  /** A timed event with its absolute placement inside a day column. */
@@ -1273,13 +1364,32 @@ declare const DEFAULT_DIALOG_CONFIG: DialogConfig;
1273
1364
  declare class Dialog extends CdkDialogContainer {
1274
1365
  private readonly _tlsConfig;
1275
1366
  private readonly _dialogRef;
1276
- protected readonly hostClasses: string[];
1367
+ private readonly _state;
1368
+ private _closing;
1369
+ protected readonly hostClasses: i0.Signal<string[]>;
1277
1370
  protected get config(): DialogConfig;
1371
+ animatedClose(result?: unknown): void;
1278
1372
  protected close(): void;
1279
1373
  static ɵfac: i0.ɵɵFactoryDeclaration<Dialog, never>;
1280
1374
  static ɵcmp: i0.ɵɵComponentDeclaration<Dialog, "tls-dialog", never, {}, {}, never, never, true, never>;
1281
1375
  }
1282
1376
 
1377
+ /**
1378
+ * Handle to an open dialog. Provided to the dialog's content component (inject it
1379
+ * instead of the CDK `DialogRef`) and returned from {@link DialogService.open}.
1380
+ *
1381
+ * `close` routes through the container so the exit animation plays before the
1382
+ * overlay is disposed, unlike the CDK `DialogRef` which disposes synchronously.
1383
+ */
1384
+ declare class DialogRef<R = unknown, C = unknown> {
1385
+ private readonly _cdkRef;
1386
+ private readonly _container;
1387
+ readonly closed: Observable<R | undefined>;
1388
+ constructor(_cdkRef: DialogRef$1<R, C>, _container: Dialog);
1389
+ get componentInstance(): C | null;
1390
+ close(result?: R): void;
1391
+ }
1392
+
1283
1393
  /**
1284
1394
  * Top region of a dialog, holding its title and any supporting text. Keeps its
1285
1395
  * padding out of the scrolling body so the title stays put while the content
@@ -1338,8 +1448,10 @@ interface DialogOpenConfig<D = unknown> {
1338
1448
  declare class DialogService {
1339
1449
  private readonly _dialog;
1340
1450
  private readonly _config;
1451
+ private readonly _openDialogs;
1341
1452
  open<R = unknown, D = unknown, C = unknown>(component: ComponentType<C>, config?: DialogOpenConfig<D>): DialogRef<R, C>;
1342
1453
  closeAll(): void;
1454
+ private _wireDismissal;
1343
1455
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
1344
1456
  static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
1345
1457
  }
@@ -1372,7 +1484,7 @@ declare const DEFAULT_DIVIDER_CONFIG: DividerConfig;
1372
1484
  declare const DIVIDER_CONFIG: InjectionToken<DividerConfig>;
1373
1485
 
1374
1486
  type drawerSide = 'start' | 'end' | 'top' | 'bottom';
1375
- type drawerSize = 'sm' | 'md' | 'lg' | 'full';
1487
+ type drawerSize = 'sm' | 'md' | 'lg' | 'full' | 'auto';
1376
1488
 
1377
1489
  interface DrawerConfig {
1378
1490
  side: drawerSide;
@@ -1380,6 +1492,8 @@ interface DrawerConfig {
1380
1492
  closeable: boolean;
1381
1493
  backdropClose: boolean;
1382
1494
  rounded: boolean;
1495
+ /** Renders a grabber pill on the edge facing the viewport, the affordance for a sheet-style panel. */
1496
+ grabber: boolean;
1383
1497
  /** Accessible name for the close button, overridable for localization. */
1384
1498
  closeLabel: string;
1385
1499
  }
@@ -1397,7 +1511,6 @@ declare class Drawer extends CdkDialogContainer {
1397
1511
  protected close(): void;
1398
1512
  private _sizeClass;
1399
1513
  private _isNamedSize;
1400
- private _afterLeaveAnimation;
1401
1514
  static ɵfac: i0.ɵɵFactoryDeclaration<Drawer, never>;
1402
1515
  static ɵcmp: i0.ɵɵComponentDeclaration<Drawer, "tls-drawer", never, {}, {}, never, never, true, never>;
1403
1516
  }
@@ -1413,7 +1526,7 @@ declare class DrawerRef<R = unknown, C = unknown> {
1413
1526
  private readonly _dialogRef;
1414
1527
  private readonly _container;
1415
1528
  readonly closed: Observable<R | undefined>;
1416
- constructor(_dialogRef: DialogRef<R, C>, _container: Drawer);
1529
+ constructor(_dialogRef: DialogRef$1<R, C>, _container: Drawer);
1417
1530
  get componentInstance(): C | null;
1418
1531
  close(result?: R): void;
1419
1532
  }
@@ -1425,6 +1538,8 @@ interface DrawerOpenConfig<D = unknown> {
1425
1538
  closeable?: boolean;
1426
1539
  backdropClose?: boolean;
1427
1540
  rounded?: boolean;
1541
+ /** Renders a grabber pill on the edge facing the viewport, the affordance for a sheet-style panel. */
1542
+ grabber?: boolean;
1428
1543
  /** Accessible name for the close button. */
1429
1544
  closeLabel?: string;
1430
1545
  role?: DialogRole;
@@ -1539,6 +1654,7 @@ declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null
1539
1654
  protected readonly uniqueId: string;
1540
1655
  protected readonly hostClassBase = "tls-autocomplete";
1541
1656
  protected readonly panelClass = "tls-autocomplete-panel";
1657
+ protected readonly panelCssVariablePrefix = "--tls-autocomplete-panel";
1542
1658
  readonly value: ModelSignal<V | null>;
1543
1659
  readonly placeholder: InputSignal<string>;
1544
1660
  readonly size: InputSignal<controlSize>;
@@ -1547,6 +1663,8 @@ declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null
1547
1663
  readonly filterMode: InputSignal<autocompleteFilterMode>;
1548
1664
  readonly emptyMessage: InputSignal<string>;
1549
1665
  readonly clearLabel: InputSignal<string>;
1666
+ readonly virtualScroll: InputSignalWithTransform<boolean, unknown>;
1667
+ readonly virtualScrollItemSize: InputSignalWithTransform<number, unknown>;
1550
1668
  protected readonly hasValue: Signal<boolean>;
1551
1669
  protected readonly selectedLabel: Signal<string>;
1552
1670
  /**
@@ -1565,7 +1683,7 @@ declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null
1565
1683
  protected getInitialActiveIndex(): number;
1566
1684
  protected commitActiveOption(option: Option<V>): void;
1567
1685
  static ɵfac: i0.ɵɵFactoryDeclaration<Autocomplete<any, any>, never>;
1568
- static ɵcmp: i0.ɵɵComponentDeclaration<Autocomplete<any, any>, "tls-autocomplete", 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; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
1686
+ static ɵcmp: i0.ɵɵComponentDeclaration<Autocomplete<any, any>, "tls-autocomplete", 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; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
1569
1687
  }
1570
1688
 
1571
1689
  interface AutocompleteConfig {
@@ -1577,6 +1695,10 @@ interface AutocompleteConfig {
1577
1695
  emptyMessage: string;
1578
1696
  /** Accessible name for the clear button, overridable for localization. */
1579
1697
  clearLabel: string;
1698
+ /** Renders the panel through a virtual-scroll viewport, windowing the option list. */
1699
+ virtualScroll: boolean;
1700
+ /** Fixed height of an option row, in pixels, when the panel is virtualized. */
1701
+ virtualScrollItemSize: number;
1580
1702
  }
1581
1703
  declare const DEFAULT_AUTOCOMPLETE_CONFIG: AutocompleteConfig;
1582
1704
 
@@ -2012,6 +2134,136 @@ declare class RadioButton extends ValueFormControl<unknown> {
2012
2134
  static ɵcmp: i0.ɵɵComponentDeclaration<RadioButton, "tls-radio-button", never, { "radioValue": { "alias": "radioValue"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
2013
2135
  }
2014
2136
 
2137
+ /** The theme colors plus `golden` — the classic star gold, exclusive to the rating. */
2138
+ type ratingColor = color | 'golden';
2139
+ /**
2140
+ * Context object exposed to a consumer-provided star template slot. The slot
2141
+ * replaces the built-in star icon; each star renders the template twice — once
2142
+ * as the empty layer and once inside the fill layer, which is clipped to the
2143
+ * star's filled share — so both states must come from the same template.
2144
+ */
2145
+ interface RatingStarContext {
2146
+ /** 1-based position of the star in the row. */
2147
+ $implicit: number;
2148
+ /** Whether this copy renders a filled layer rather than the empty one. */
2149
+ filled: boolean;
2150
+ /** Whether this copy renders inside the tentative hover-preview layer rather than the committed fill. */
2151
+ preview: boolean;
2152
+ /** Whether the displayed value fills this star only partially — e.g. the third star at 2.5. */
2153
+ half: boolean;
2154
+ }
2155
+
2156
+ /**
2157
+ * A star-rating control holding a number of stars, where 0 means unrated. Each
2158
+ * selectable increment (a whole star, or each half when `allowHalf` is on) is a
2159
+ * native radio positioned over its slice of the star row, so the group gets the
2160
+ * radio pattern's focus and arrow-key behaviour natively. The host is the
2161
+ * composite's `radiogroup` container and carries the group-level ARIA.
2162
+ */
2163
+ declare class Rating extends ValueFormControl<number> {
2164
+ private readonly _config;
2165
+ protected CLASS_NAME: string;
2166
+ readonly value: ModelSignal<number>;
2167
+ readonly max: InputSignalWithTransform<number, unknown>;
2168
+ readonly color: InputSignal<ratingColor>;
2169
+ readonly size: InputSignal<controlSize>;
2170
+ /** Offers half-star options: each star becomes two radios, one per half. */
2171
+ readonly allowHalf: InputSignalWithTransform<boolean, unknown>;
2172
+ /** Re-activating the currently selected option resets the value to 0 (unrated). */
2173
+ readonly allowClear: InputSignalWithTransform<boolean, unknown>;
2174
+ /**
2175
+ * Renders the hover preview's *difference* from the committed value as a
2176
+ * translucent ghost: hovering above the value ghosts only the stars being
2177
+ * added, hovering below ghosts only the part being removed, and the solid
2178
+ * fill always shows the part both agree on.
2179
+ */
2180
+ readonly preview: InputSignalWithTransform<boolean, unknown>;
2181
+ private static _counter;
2182
+ /** Groups the radios when the consumer supplies no `name`; unique per instance. */
2183
+ private readonly _autoName;
2184
+ /** Option value previewed under the pointer, or null when nothing is hovered. */
2185
+ private readonly _hovered;
2186
+ /** Star currently playing the selection pop animation, or null. */
2187
+ private readonly _popped;
2188
+ /** Consumer-provided star slot rendered in place of the built-in star icon. */
2189
+ protected readonly starTemplate: Signal<TemplateRef<RatingStarContext> | undefined>;
2190
+ /**
2191
+ * Activating an unchecked radio fires `change` then `click`; a click on the
2192
+ * already-checked one fires `click` alone. This flag marks the `change` so the
2193
+ * trailing `click` is not mistaken for a re-activation that should clear.
2194
+ */
2195
+ private _suppressClear;
2196
+ private readonly _inputs;
2197
+ protected readonly hostClasses: Signal<string[]>;
2198
+ protected readonly stars: Signal<number[]>;
2199
+ protected readonly radioName: Signal<string>;
2200
+ /**
2201
+ * Hovered option that should actually drive the preview: none while the
2202
+ * control is non-interactive, so a readonly/disabled flip mid-hover cannot
2203
+ * leave a stale preview on screen.
2204
+ */
2205
+ private readonly _previewedOption;
2206
+ /**
2207
+ * Solidly filled share of the given star, 0–100. Reads the hovered preview
2208
+ * when one is active, the committed value otherwise; a fractional value fills
2209
+ * its star partially, so a non-interactive rating can display an average like
2210
+ * 4.3. In ghost mode the solid fill shows only the part the committed value
2211
+ * and the hovered one agree on — the delta belongs to the ghost layer.
2212
+ */
2213
+ protected fillPercent(star: number): number;
2214
+ /**
2215
+ * Ghost-layer share of the given star, 0–100: reaches whichever of the
2216
+ * committed and hovered values is larger, so the part peeking out from under
2217
+ * the solid fill is exactly their difference — the stars a click would add,
2218
+ * or the part it would remove.
2219
+ */
2220
+ protected ghostPercent(star: number): number;
2221
+ protected starLabel(option: number): string;
2222
+ /** Whether the displayed value (hover preview first, else committed) fills the star only partially. */
2223
+ protected isHalf(star: number): boolean;
2224
+ protected onChange(option: number): void;
2225
+ protected isPopped(star: number): boolean;
2226
+ protected onPopAnimationEnd(star: number): void;
2227
+ protected onClick(option: number): void;
2228
+ protected onPointerDown(): void;
2229
+ protected onPointerEnter(option: number): void;
2230
+ protected onPointerLeave(): void;
2231
+ private _starShare;
2232
+ /**
2233
+ * Plays the selection pop on the star containing the committed option. When
2234
+ * that star is already popping (e.g. its other half was just selected), the
2235
+ * class is dropped for a frame and re-applied, so the animation restarts.
2236
+ */
2237
+ private _pop;
2238
+ /**
2239
+ * Restores every radio's native checked state from the model. Needed after a
2240
+ * reverted change: the browser has already moved the native check to the
2241
+ * activated radio, and the unchanged `checked` bindings won't move it back.
2242
+ */
2243
+ private _syncNativeChecked;
2244
+ static ɵfac: i0.ɵɵFactoryDeclaration<Rating, never>;
2245
+ static ɵcmp: i0.ɵɵComponentDeclaration<Rating, "tls-rating", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "allowHalf": { "alias": "allowHalf"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "preview": { "alias": "preview"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["starTemplate"], never, true, never>;
2246
+ }
2247
+
2248
+ /** Accessible names for the rating's options, overridable for localization. */
2249
+ interface RatingLabels {
2250
+ /** Accessible name for the option selecting the given star value (whole or half, e.g. 2.5). */
2251
+ star: (value: number) => string;
2252
+ }
2253
+ interface RatingConfig {
2254
+ color: ratingColor;
2255
+ size: controlSize;
2256
+ max: number;
2257
+ allowHalf: boolean;
2258
+ allowClear: boolean;
2259
+ preview: boolean;
2260
+ /** Accessible names for the options, overridable for localization. */
2261
+ labels: RatingLabels;
2262
+ }
2263
+ declare const DEFAULT_RATING_CONFIG: RatingConfig;
2264
+
2265
+ declare const RATING_CONFIG: InjectionToken<RatingConfig>;
2266
+
2015
2267
  declare class MultiSelect<T, V = unknown> extends AbstractSelect<T, V, V[]> {
2016
2268
  private static _nextUniqueId;
2017
2269
  private readonly _config;
@@ -2019,6 +2271,7 @@ declare class MultiSelect<T, V = unknown> extends AbstractSelect<T, V, V[]> {
2019
2271
  protected readonly uniqueId: string;
2020
2272
  protected readonly hostClassBase = "tls-multi-select";
2021
2273
  protected readonly panelClass = "tls-multi-select-panel";
2274
+ protected readonly panelCssVariablePrefix = "--tls-multi-select-panel";
2022
2275
  readonly value: ModelSignal<V[]>;
2023
2276
  readonly placeholder: InputSignal<string>;
2024
2277
  readonly size: InputSignal<controlSize>;
@@ -2026,6 +2279,8 @@ declare class MultiSelect<T, V = unknown> extends AbstractSelect<T, V, V[]> {
2026
2279
  readonly clearable: InputSignalWithTransform<boolean, unknown>;
2027
2280
  readonly maxLabels: InputSignal<number>;
2028
2281
  readonly clearLabel: InputSignal<string>;
2282
+ readonly virtualScroll: InputSignalWithTransform<boolean, unknown>;
2283
+ readonly virtualScrollItemSize: InputSignalWithTransform<number, unknown>;
2029
2284
  protected readonly hasValue: Signal<boolean>;
2030
2285
  protected readonly selectedValues: Signal<Set<V>>;
2031
2286
  protected readonly triggerLabel: Signal<string>;
@@ -2036,7 +2291,7 @@ declare class MultiSelect<T, V = unknown> extends AbstractSelect<T, V, V[]> {
2036
2291
  protected getInitialActiveIndex(): number;
2037
2292
  protected commitActiveOption(option: Option<V>): void;
2038
2293
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelect<any, any>, never>;
2039
- static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelect<any, any>, "tls-multi-select", 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; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "maxLabels": { "alias": "maxLabels"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
2294
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelect<any, any>, "tls-multi-select", 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; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "maxLabels": { "alias": "maxLabels"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
2040
2295
  }
2041
2296
 
2042
2297
  interface MultiSelectConfig {
@@ -2049,6 +2304,10 @@ interface MultiSelectConfig {
2049
2304
  clearLabel: string;
2050
2305
  /** Trigger label when more than `maxLabels` options are selected, overridable for localization. */
2051
2306
  selectedCountLabel: (count: number) => string;
2307
+ /** Renders the panel through a virtual-scroll viewport, windowing the option list. */
2308
+ virtualScroll: boolean;
2309
+ /** Fixed height of an option row, in pixels, when the panel is virtualized. */
2310
+ virtualScrollItemSize: number;
2052
2311
  }
2053
2312
  declare const DEFAULT_MULTI_SELECT_CONFIG: MultiSelectConfig;
2054
2313
 
@@ -2061,12 +2320,15 @@ declare class Select<T, V = unknown> extends AbstractSelect<T, V, V | null> {
2061
2320
  protected readonly uniqueId: string;
2062
2321
  protected readonly hostClassBase = "tls-select";
2063
2322
  protected readonly panelClass = "tls-select-panel";
2323
+ protected readonly panelCssVariablePrefix = "--tls-select-panel";
2064
2324
  readonly value: ModelSignal<V | null>;
2065
2325
  readonly placeholder: InputSignal<string>;
2066
2326
  readonly size: InputSignal<controlSize>;
2067
2327
  readonly fluid: InputSignalWithTransform<boolean, unknown>;
2068
2328
  readonly clearable: InputSignalWithTransform<boolean, unknown>;
2069
2329
  readonly clearLabel: InputSignal<string>;
2330
+ readonly virtualScroll: InputSignalWithTransform<boolean, unknown>;
2331
+ readonly virtualScrollItemSize: InputSignalWithTransform<number, unknown>;
2070
2332
  protected readonly hasValue: Signal<boolean>;
2071
2333
  protected readonly selectedLabel: Signal<string>;
2072
2334
  protected select(option: Option<V>): void;
@@ -2075,7 +2337,7 @@ declare class Select<T, V = unknown> extends AbstractSelect<T, V, V | null> {
2075
2337
  protected getInitialActiveIndex(): number;
2076
2338
  protected commitActiveOption(option: Option<V>): void;
2077
2339
  static ɵfac: i0.ɵɵFactoryDeclaration<Select<any, any>, never>;
2078
- static ɵcmp: i0.ɵɵComponentDeclaration<Select<any, any>, "tls-select", 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; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
2340
+ static ɵcmp: i0.ɵɵComponentDeclaration<Select<any, any>, "tls-select", 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; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
2079
2341
  }
2080
2342
 
2081
2343
  interface SelectConfig {
@@ -2085,6 +2347,10 @@ interface SelectConfig {
2085
2347
  clearable: boolean;
2086
2348
  /** Accessible name for the clear button, overridable for localization. */
2087
2349
  clearLabel: string;
2350
+ /** Renders the panel through a virtual-scroll viewport, windowing the option list. */
2351
+ virtualScroll: boolean;
2352
+ /** Fixed height of an option row, in pixels, when the panel is virtualized. */
2353
+ virtualScrollItemSize: number;
2088
2354
  }
2089
2355
  declare const DEFAULT_SELECT_CONFIG: SelectConfig;
2090
2356
 
@@ -2724,23 +2990,94 @@ declare const DEFAULT_POPOVER_CONFIG: PopoverConfig;
2724
2990
 
2725
2991
  declare const POPOVER_CONFIG: InjectionToken<PopoverConfig>;
2726
2992
 
2993
+ type progressColor = color;
2994
+ /**
2995
+ * Segment singled out for emphasis in a segmented track: a zero-based index,
2996
+ * `'latest'` for the frontmost segment the value has reached, or `null` for
2997
+ * none.
2998
+ */
2999
+ type progressActiveSegment = number | 'latest' | null;
3000
+
3001
+ /**
3002
+ * A read-only linear progress indicator. Renders one continuous bar by
3003
+ * default; `segments` splits the track into that many discrete pills that fill
3004
+ * in order as the value advances — the idiom for step-based flows ("step 2 of
3005
+ * 6"). The host carries the `progressbar` role and the value ARIA.
3006
+ */
3007
+ declare class Progress {
3008
+ private readonly _config;
3009
+ readonly value: InputSignalWithTransform<number, unknown>;
3010
+ readonly max: InputSignalWithTransform<number, unknown>;
3011
+ /**
3012
+ * Splits the track into this many equal segments, filled one after another
3013
+ * as the value grows, the segment at the boundary partially. `null` renders
3014
+ * one continuous bar.
3015
+ */
3016
+ readonly segments: InputSignal<number | null>;
3017
+ /**
3018
+ * Segment rendered wider than the rest, marking the step in progress: a
3019
+ * zero-based index, or `'latest'` to follow the frontmost segment the value
3020
+ * has reached. `null` keeps every segment the same width. Only meaningful
3021
+ * with `segments`.
3022
+ */
3023
+ readonly activeSegment: InputSignal<progressActiveSegment>;
3024
+ /** Width of the active segment relative to the others (a flex-grow ratio). */
3025
+ readonly activeSegmentScale: InputSignalWithTransform<number, unknown>;
3026
+ readonly color: InputSignal<progressColor>;
3027
+ readonly size: InputSignal<controlSize>;
3028
+ /** Accessible name for the progressbar. */
3029
+ readonly ariaLabel: InputSignal<string | undefined>;
3030
+ readonly ariaLabelledby: InputSignal<string | undefined>;
3031
+ protected readonly hostClasses: Signal<string[]>;
3032
+ /** Value clamped into [0, max]; the number exposed through ARIA. */
3033
+ protected readonly clampedValue: Signal<number>;
3034
+ /** Filled share of the whole track, 0–1. */
3035
+ private readonly _fraction;
3036
+ /**
3037
+ * Per-segment fill percentages, 0–100. A continuous bar is a single
3038
+ * segment, so one loop renders both looks; in segmented mode the overall
3039
+ * fraction is distributed across the segments in order, so each is full,
3040
+ * empty, or — at the boundary — partial.
3041
+ */
3042
+ protected readonly segmentFills: Signal<number[]>;
3043
+ /**
3044
+ * Index of the emphasized segment, or `null` when none: the clamped
3045
+ * consumer-picked index, or — for `'latest'` — the frontmost segment the
3046
+ * value has reached (the first one when nothing is filled yet).
3047
+ */
3048
+ protected readonly activeIndex: Signal<number | null>;
3049
+ static ɵfac: i0.ɵɵFactoryDeclaration<Progress, never>;
3050
+ static ɵcmp: i0.ɵɵComponentDeclaration<Progress, "tls-progress", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "segments": { "alias": "segments"; "required": false; "isSignal": true; }; "activeSegment": { "alias": "activeSegment"; "required": false; "isSignal": true; }; "activeSegmentScale": { "alias": "activeSegmentScale"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3051
+ }
3052
+
3053
+ interface ProgressConfig {
3054
+ max: number;
3055
+ color: progressColor;
3056
+ size: controlSize;
3057
+ activeSegmentScale: number;
3058
+ }
3059
+ declare const DEFAULT_PROGRESS_CONFIG: ProgressConfig;
3060
+
3061
+ declare const PROGRESS_CONFIG: InjectionToken<ProgressConfig>;
3062
+
2727
3063
  declare class Skeleton {
2728
- private _config;
3064
+ private readonly _config;
2729
3065
  readonly size: InputSignal<number | string | null>;
2730
3066
  readonly width: InputSignal<number | string | null>;
2731
3067
  readonly height: InputSignal<number | string | null>;
2732
- readonly radius: InputSignal<number>;
3068
+ readonly radius: InputSignal<radiusValue>;
2733
3069
  readonly duration: InputSignal<number>;
2734
3070
  readonly rounded: InputSignalWithTransform<boolean, unknown>;
2735
3071
  readonly animate: InputSignalWithTransform<boolean, unknown>;
2736
- protected hostClasses: i0.Signal<string[]>;
2737
- protected hostStyles: i0.Signal<{
3072
+ protected readonly hostClasses: i0.Signal<string[]>;
3073
+ protected readonly hostStyles: i0.Signal<{
2738
3074
  '--tls-skeleton-width': string;
2739
3075
  '--tls-skeleton-height': string;
2740
3076
  '--tls-skeleton-radius': string;
2741
3077
  '--tls-skeleton-duration': string;
2742
3078
  }>;
2743
- private resolveDimension;
3079
+ private _resolveDimension;
3080
+ private _resolveRadius;
2744
3081
  static ɵfac: i0.ɵɵFactoryDeclaration<Skeleton, never>;
2745
3082
  static ɵcmp: i0.ɵɵComponentDeclaration<Skeleton, "tls-skeleton", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "animate": { "alias": "animate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2746
3083
  }
@@ -2749,7 +3086,7 @@ interface SkeletonConfig {
2749
3086
  size: number | string | null;
2750
3087
  width: number | string | null;
2751
3088
  height: number | string | null;
2752
- radius: number;
3089
+ radius: radiusValue;
2753
3090
  duration: number;
2754
3091
  rounded: boolean;
2755
3092
  animate: boolean;
@@ -2840,6 +3177,14 @@ declare const SPLITTER_CONFIG: InjectionToken<SplitterConfig>;
2840
3177
  type stepperValue = string;
2841
3178
  type stepperColor = color;
2842
3179
  type stepperOrientation = orientation;
3180
+ /**
3181
+ * Placement of a step's text relative to its index in a horizontal stepper:
3182
+ * `end` puts the text after the index with the last step sized to its
3183
+ * content, `bottom` centers every step in an equal column with the text under
3184
+ * the index, so the connector rail spans the full width symmetrically.
3185
+ * Vertical steppers always use `end`.
3186
+ */
3187
+ type stepperLabelPosition = 'end' | 'bottom';
2843
3188
  interface StepperSelectEvent {
2844
3189
  index: number;
2845
3190
  value: stepperValue;
@@ -2855,18 +3200,46 @@ declare class Step {
2855
3200
  readonly description: InputSignal<string | undefined>;
2856
3201
  readonly color: InputSignal<stepperColor>;
2857
3202
  readonly disabled: InputSignal<boolean>;
3203
+ /**
3204
+ * Marks the step's content as invalid: its header takes the danger hue and
3205
+ * assistive technology hears the invalid state. Drive it from the step's
3206
+ * form validity to surface errors in the navigation.
3207
+ */
3208
+ readonly invalid: InputSignalWithTransform<boolean, unknown>;
2858
3209
  protected hostClasses: Signal<string[]>;
2859
3210
  static ɵfac: i0.ɵɵFactoryDeclaration<Step, never>;
2860
- static ɵcmp: i0.ɵɵComponentDeclaration<Step, "tls-step", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["iconTemplateRef", "completedIconTemplateRef"], ["*"], true, [{ directive: typeof i1.TabPanel; inputs: { "value": "value"; }; outputs: {}; }]>;
3211
+ static ɵcmp: i0.ɵɵComponentDeclaration<Step, "tls-step", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, ["iconTemplateRef", "completedIconTemplateRef"], ["*"], true, [{ directive: typeof i1.TabPanel; inputs: { "value": "value"; }; outputs: {}; }]>;
2861
3212
  }
2862
3213
 
3214
+ interface StepperConfig {
3215
+ orientation: stepperOrientation;
3216
+ labelPosition: stepperLabelPosition;
3217
+ linear: boolean;
3218
+ labels: StepperLabels;
3219
+ step: StepConfig;
3220
+ }
3221
+ /** Visually hidden state texts announced by assistive technology for a step. */
3222
+ interface StepperLabels {
3223
+ completed: string;
3224
+ invalid: string;
3225
+ }
3226
+ interface StepConfig {
3227
+ color: stepperColor;
3228
+ }
3229
+ declare const DEFAULT_STEP_CONFIG: StepConfig;
3230
+ declare const DEFAULT_STEPPER_LABELS: StepperLabels;
3231
+ declare const DEFAULT_STEPPER_CONFIG: StepperConfig;
3232
+
2863
3233
  declare class Stepper {
2864
- private _config;
3234
+ private readonly _config;
3235
+ /** Visually hidden state texts appended to a step's accessible name. */
3236
+ protected readonly labels: StepperLabels;
2865
3237
  protected steps: Signal<readonly Step[]>;
2866
3238
  protected completedTemplateRef: Signal<TemplateRef<unknown> | undefined>;
2867
3239
  protected completedIconTemplateRef: Signal<TemplateRef<unknown> | undefined>;
2868
3240
  readonly active: ModelSignal<stepperValue>;
2869
3241
  readonly orientation: InputSignal<stepperOrientation>;
3242
+ readonly labelPosition: InputSignal<stepperLabelPosition>;
2870
3243
  readonly completed: InputSignal<boolean>;
2871
3244
  readonly linear: InputSignal<boolean>;
2872
3245
  /** Accessible name for the stepper tablist. */
@@ -2877,20 +3250,9 @@ declare class Stepper {
2877
3250
  protected activeIndex: Signal<number>;
2878
3251
  protected onSelectedTabChange(value: stepperValue | undefined): void;
2879
3252
  static ɵfac: i0.ɵɵFactoryDeclaration<Stepper, never>;
2880
- static ɵcmp: i0.ɵɵComponentDeclaration<Stepper, "tls-stepper", never, { "active": { "alias": "active"; "required": true; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; "stepSelect": "stepSelect"; }, ["steps", "completedTemplateRef", "completedIconTemplateRef"], ["*"], true, [{ directive: typeof i1.Tabs; inputs: {}; outputs: {}; }]>;
3253
+ static ɵcmp: i0.ɵɵComponentDeclaration<Stepper, "tls-stepper", never, { "active": { "alias": "active"; "required": true; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; "stepSelect": "stepSelect"; }, ["steps", "completedTemplateRef", "completedIconTemplateRef"], ["*"], true, [{ directive: typeof i1.Tabs; inputs: {}; outputs: {}; }]>;
2881
3254
  }
2882
3255
 
2883
- interface StepperConfig {
2884
- orientation: stepperOrientation;
2885
- linear: boolean;
2886
- step: StepConfig;
2887
- }
2888
- interface StepConfig {
2889
- color: stepperColor;
2890
- }
2891
- declare const DEFAULT_STEP_CONFIG: StepConfig;
2892
- declare const DEFAULT_STEPPER_CONFIG: StepperConfig;
2893
-
2894
3256
  declare const STEPPER_CONFIG: InjectionToken<StepperConfig>;
2895
3257
 
2896
3258
  type tabsVariant = 'flat' | 'outlined' | 'segmented';
@@ -3054,7 +3416,7 @@ declare class TabLinkDirective {
3054
3416
 
3055
3417
  type tableColumnAlignment = 'start' | 'center' | 'end';
3056
3418
  type TableData = Record<string, unknown>;
3057
- type TableTrackBy = string | TrackByFunction<TableData>;
3419
+ type TableTrackBy = TrackBy<TableData>;
3058
3420
  interface TableColumnDefinition {
3059
3421
  key: string;
3060
3422
  header?: string;
@@ -3082,19 +3444,26 @@ declare class Table {
3082
3444
  readonly hideHeader: InputSignalWithTransform<boolean, unknown>;
3083
3445
  readonly striped: InputSignalWithTransform<boolean, unknown>;
3084
3446
  readonly trackBy: InputSignal<TableTrackBy | undefined>;
3447
+ /**
3448
+ * Bounds the table's height, in pixels. When set, the host becomes the scroll
3449
+ * container for the rows and the header row sticks to its top edge while they
3450
+ * scroll. Left unset the table grows with its content and nothing scrolls.
3451
+ */
3452
+ readonly maxHeight: InputSignalWithTransform<number | undefined, unknown>;
3085
3453
  /** Accessible name for the table, forwarded to the inner `<table>` element. */
3086
3454
  readonly ariaLabel: InputSignal<string | undefined>;
3087
3455
  readonly ariaLabelledby: InputSignal<string | undefined>;
3088
- protected readonly tableColumns: i0.Signal<readonly TableColumn[]>;
3089
- protected readonly effectiveColumnDefinitions: i0.Signal<TableColumnDefinition[]>;
3090
- protected readonly columns: i0.Signal<string[]>;
3091
- protected readonly resolvedTrackBy: i0.Signal<TrackByFunction<TableData>>;
3092
- protected readonly classes: i0.Signal<string[]>;
3456
+ protected readonly tableColumns: Signal<readonly TableColumn[]>;
3457
+ protected readonly effectiveColumnDefinitions: Signal<TableColumnDefinition[]>;
3458
+ protected readonly columns: Signal<string[]>;
3459
+ protected readonly resolvedTrackBy: Signal<TrackByFunction<TableData>>;
3460
+ protected readonly scrollable: Signal<boolean>;
3461
+ protected readonly classes: Signal<string[]>;
3093
3462
  protected readonly dataSource: DataSource<TableData>;
3094
3463
  private _mapContentColumns;
3095
3464
  private _mapContentColumn;
3096
3465
  static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
3097
- static ɵcmp: i0.ɵɵComponentDeclaration<Table, "tls-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "columnDefinitions": { "alias": "columnDefinitions"; "required": false; "isSignal": true; }; "hideHeader": { "alias": "hideHeader"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, {}, ["tableColumns"], never, true, never>;
3466
+ static ɵcmp: i0.ɵɵComponentDeclaration<Table, "tls-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "columnDefinitions": { "alias": "columnDefinitions"; "required": false; "isSignal": true; }; "hideHeader": { "alias": "hideHeader"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; }, {}, ["tableColumns"], never, true, never>;
3098
3467
  }
3099
3468
 
3100
3469
  interface TableConfig {
@@ -3491,6 +3860,165 @@ declare const DEFAULT_TOOLTIP_CONFIG: TooltipConfig;
3491
3860
 
3492
3861
  declare const TOOLTIP_CONFIG: InjectionToken<TooltipConfig>;
3493
3862
 
3863
+ /**
3864
+ * Context handed to the item template for every rendered item: the item itself as
3865
+ * `$implicit`, plus `index`, `count`, `first`, `last`, `even` and `odd`. `index` and
3866
+ * `count` are the item's position and the total in the whole collection, not within
3867
+ * the rendered window — which is what makes them usable for `aria-posinset` and
3868
+ * `aria-setsize`.
3869
+ */
3870
+ type VirtualScrollContext<T> = CdkVirtualForOfContext<T>;
3871
+
3872
+ /**
3873
+ * Scroll container that renders only the items intersecting the visible window plus a
3874
+ * buffer, keeping the DOM a constant size however long the collection is. Every item
3875
+ * occupies the same fixed extent along the scroll axis, declared by `itemSize`.
3876
+ *
3877
+ * The collection arrives as the `items` input and each item is rendered through a
3878
+ * template projected under the `#item` reference:
3879
+ *
3880
+ * ```html
3881
+ * <tls-virtual-scroll [items]="rows()" [itemSize]="48" trackBy="id">
3882
+ * <ng-template #item let-row let-index="index" let-count="count">
3883
+ * <div class="row" role="listitem" [attr.aria-posinset]="index + 1" [attr.aria-setsize]="count">
3884
+ * {{ row.name }}
3885
+ * </div>
3886
+ * </ng-template>
3887
+ * </tls-virtual-scroll>
3888
+ * ```
3889
+ *
3890
+ * ```scss
3891
+ * .row {
3892
+ * box-sizing: border-box;
3893
+ * height: var(--tls-virtual-scroll-item-size);
3894
+ * }
3895
+ * ```
3896
+ *
3897
+ * Because most items are absent from the DOM, assistive technology can no longer
3898
+ * derive the collection's size or an item's position from the markup. The template
3899
+ * context exposes the true `index` and `count` for exactly this reason; an item
3900
+ * carrying a role that belongs to a set should reflect them through `aria-posinset`
3901
+ * and `aria-setsize`.
3902
+ *
3903
+ * Windowing needs a bounded scroll container, so the host must have a resolved extent
3904
+ * along the scroll axis — it defaults to filling its parent, which therefore needs a
3905
+ * height of its own.
3906
+ *
3907
+ * The scroll axis follows `orientation`. When it is `horizontal` the roles of the two
3908
+ * axes swap: `itemSize` is an item's *width*, so the item template constrains
3909
+ * `width: var(--tls-virtual-scroll-item-size)` instead of `height` — and the cross-axis
3910
+ * height still has to be resolved, because the absolutely-positioned items cannot
3911
+ * drive it.
3912
+ */
3913
+ declare class VirtualScroll<T> {
3914
+ private readonly _config;
3915
+ readonly items: InputSignal<readonly T[]>;
3916
+ /**
3917
+ * Extent of a single item along the scroll axis, in pixels. Every offset the container
3918
+ * computes assumes it, so an item that renders to a different size drifts out of
3919
+ * place. Nothing constrains the item template, so its own styles have to honour the
3920
+ * value; it is published on the scroll container as the `--tls-virtual-scroll-item-size`
3921
+ * custom property, which an item can read (`height: var(--tls-virtual-scroll-item-size)`)
3922
+ * instead of repeating the number.
3923
+ */
3924
+ readonly itemSize: InputSignalWithTransform<number, unknown>;
3925
+ /**
3926
+ * Buffer kept rendered beyond the visible window, in pixels. When the rendered
3927
+ * buffer falls below this minimum, items are rendered up to `maxBufferPx` — which
3928
+ * must therefore be at least this value, or the scroll strategy throws. Raising
3929
+ * only one of the pair past the other's default breaks that invariant.
3930
+ */
3931
+ readonly minBufferPx: InputSignalWithTransform<number, unknown>;
3932
+ /** Buffer rendered when `minBufferPx` is crossed, in pixels. Must be at least `minBufferPx`. */
3933
+ readonly maxBufferPx: InputSignalWithTransform<number, unknown>;
3934
+ readonly orientation: InputSignal<orientation>;
3935
+ readonly appendOnly: InputSignalWithTransform<boolean, unknown>;
3936
+ readonly templateCacheSize: InputSignalWithTransform<number, unknown>;
3937
+ /** Identity of an item, so a changed collection reuses views instead of rebuilding them. */
3938
+ readonly trackBy: InputSignal<TrackBy<T> | undefined>;
3939
+ /**
3940
+ * Role applied to the scroll container rather than the host, so that the items —
3941
+ * which the container owns — are described relative to it. Left unset the container
3942
+ * carries no role and the items keep whatever semantics their template gives them.
3943
+ */
3944
+ readonly viewportRole: InputSignal<string | undefined>;
3945
+ /**
3946
+ * Id applied to the scroll container rather than the host, for the same reason as
3947
+ * `viewportRole`: a reference to the collection (`aria-controls`, `aria-owns`) has to
3948
+ * resolve to the element that owns the items. Deliberately not named `id` — a static
3949
+ * `id` attribute would land on the host and the container at once, duplicating the id.
3950
+ */
3951
+ readonly viewportId: InputSignal<string | undefined>;
3952
+ /**
3953
+ * Reflected as `aria-multiselectable` on the scroll container, meaningful when
3954
+ * `viewportRole` names a role that supports it (a listbox holding a multiple
3955
+ * selection).
3956
+ */
3957
+ readonly ariaMultiselectable: InputSignal<boolean | undefined>;
3958
+ /**
3959
+ * Whether the scroll container is a tab stop. A region that scrolls has to be
3960
+ * operable from the keyboard, so it is one by default. Turn it off only when the
3961
+ * region already offers that operability another way — items that are themselves
3962
+ * focusable, or a widget that drives the container through `scrollToIndex` from a
3963
+ * control elsewhere — since a redundant tab stop is its own obstacle.
3964
+ *
3965
+ * A tab stop should announce what it is: pair it with `viewportRole` and an
3966
+ * accessible name (`ariaLabel` / `ariaLabelledby`) so focus does not land on an
3967
+ * anonymous container.
3968
+ */
3969
+ readonly focusable: InputSignalWithTransform<boolean, unknown>;
3970
+ /** Accessible name for the scroll container. */
3971
+ readonly ariaLabel: InputSignal<string | undefined>;
3972
+ readonly ariaLabelledby: InputSignal<string | undefined>;
3973
+ readonly ariaDescribedby: InputSignal<string | undefined>;
3974
+ /** Index of the first item currently rendered, emitted as the window moves. */
3975
+ readonly scrolledIndexChange: OutputEmitterRef<number>;
3976
+ private readonly _viewport;
3977
+ /**
3978
+ * Template rendering a single item, projected as `<ng-template #item>`. It receives
3979
+ * the item as `$implicit` alongside the positional context described on the class.
3980
+ */
3981
+ protected readonly itemTemplate: Signal<TemplateRef<VirtualScrollContext<T>>>;
3982
+ protected readonly resolvedTrackBy: Signal<TrackByFunction<T>>;
3983
+ /** Scrolls the item at `index` to the leading edge of the container. */
3984
+ scrollToIndex(index: number, behavior?: ScrollBehavior): void;
3985
+ /**
3986
+ * Scrolls the least amount that brings the item at `index` fully into view: an item
3987
+ * beyond the trailing edge lands on that edge, one before the leading edge lands on
3988
+ * it, and an item already fully visible does not move — the behavior of
3989
+ * `scrollIntoView({ block: 'nearest' })`, which `scrollToIndex` (always pinning to
3990
+ * the leading edge) does not provide.
3991
+ */
3992
+ scrollIndexIntoView(index: number, behavior?: ScrollBehavior): void;
3993
+ /** Scrolls to an offset given from any edge of the container. */
3994
+ scrollTo(options: ExtendedScrollToOptions): void;
3995
+ /**
3996
+ * Re-measures the container. Its size is measured when it is created and whenever the
3997
+ * window resizes, so a container revealed inside a panel or a collapsed parent — sized
3998
+ * only after that measurement — has to ask for a fresh one.
3999
+ */
4000
+ checkViewportSize(): void;
4001
+ static ɵfac: i0.ɵɵFactoryDeclaration<VirtualScroll<any>, never>;
4002
+ static ɵcmp: i0.ɵɵComponentDeclaration<VirtualScroll<any>, "tls-virtual-scroll", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "minBufferPx": { "alias": "minBufferPx"; "required": false; "isSignal": true; }; "maxBufferPx": { "alias": "maxBufferPx"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "appendOnly": { "alias": "appendOnly"; "required": false; "isSignal": true; }; "templateCacheSize": { "alias": "templateCacheSize"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "viewportRole": { "alias": "viewportRole"; "required": false; "isSignal": true; }; "viewportId": { "alias": "viewportId"; "required": false; "isSignal": true; }; "ariaMultiselectable": { "alias": "ariaMultiselectable"; "required": false; "isSignal": true; }; "focusable": { "alias": "focusable"; "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; }; }, { "scrolledIndexChange": "scrolledIndexChange"; }, ["itemTemplate"], never, true, never>;
4003
+ }
4004
+
4005
+ interface VirtualScrollConfig {
4006
+ /** Extent of a single item along the scroll axis, in pixels. Every item shares it. */
4007
+ itemSize: number;
4008
+ /** Buffer kept rendered beyond the viewport before more items are rendered, in pixels. */
4009
+ minBufferPx: number;
4010
+ /** Buffer rendered when the minimum is crossed, in pixels. Must be at least `minBufferPx`. */
4011
+ maxBufferPx: number;
4012
+ orientation: orientation;
4013
+ /** Keeps items rendered once scrolled past instead of recycling them. */
4014
+ appendOnly: boolean;
4015
+ /** Number of detached item views kept for reuse before they are destroyed. */
4016
+ templateCacheSize: number;
4017
+ }
4018
+ declare const DEFAULT_VIRTUAL_SCROLL_CONFIG: VirtualScrollConfig;
4019
+
4020
+ declare const VIRTUAL_SCROLL_CONFIG: InjectionToken<VirtualScrollConfig>;
4021
+
3494
4022
  /**
3495
4023
  * Clock convention used when formatting times. `'locale'` follows the configured
3496
4024
  * `date-fns` locale's own short-time pattern.
@@ -3558,12 +4086,19 @@ interface tlsUiConfigProvider {
3558
4086
  password?: Partial<PasswordConfig>;
3559
4087
  pinInput?: Partial<PinInputConfig>;
3560
4088
  popover?: Partial<PopoverConfig>;
4089
+ progress?: Partial<ProgressConfig>;
3561
4090
  radioButton?: Partial<RadioButtonConfig>;
4091
+ rating?: Partial<Omit<RatingConfig, 'labels'>> & {
4092
+ labels?: Partial<RatingLabels>;
4093
+ };
3562
4094
  select?: Partial<SelectConfig>;
3563
4095
  skeleton?: Partial<SkeletonConfig>;
3564
4096
  slider?: Partial<SliderConfig>;
3565
4097
  splitter?: Partial<SplitterConfig>;
3566
- stepper?: Partial<StepperConfig>;
4098
+ stepper?: Partial<Omit<StepperConfig, 'labels' | 'step'>> & {
4099
+ labels?: Partial<StepperLabels>;
4100
+ step?: Partial<StepConfig>;
4101
+ };
3567
4102
  switch?: Partial<SwitchConfig>;
3568
4103
  table?: Partial<TableConfig>;
3569
4104
  tabNav?: Partial<TabNavConfig>;
@@ -3576,6 +4111,7 @@ interface tlsUiConfigProvider {
3576
4111
  };
3577
4112
  toggleGroup?: Partial<ToggleGroupConfig>;
3578
4113
  tooltip?: Partial<TooltipConfig>;
4114
+ virtualScroll?: Partial<VirtualScrollConfig>;
3579
4115
  };
3580
4116
  }
3581
4117
 
@@ -3589,8 +4125,25 @@ interface tlsUiConfigProvider {
3589
4125
  */
3590
4126
  declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<ValueType> {
3591
4127
  protected readonly overlay: OverlayManager;
4128
+ private readonly _document;
3592
4129
  private readonly triggerElement;
3593
4130
  private readonly panelTemplate;
4131
+ private readonly virtualScrollRef;
4132
+ /**
4133
+ * Whether the panel has already been rendered open, distinguishing the render that
4134
+ * opens it from the ones that follow while it stays open.
4135
+ */
4136
+ private _panelWasOpen;
4137
+ /**
4138
+ * Keeps the active option visible inside the scrolling panel. Focus stays on the
4139
+ * trigger and only `aria-activedescendant` moves, so the browser never scrolls the
4140
+ * option list on its own — every write of `activeIndex` (keyboard navigation, the
4141
+ * initial index on open, a filter narrowing the list) has to be followed by an
4142
+ * explicit scroll. Running after render guarantees the option's element exists even
4143
+ * when the same change re-rendered the list. `nearest` leaves an already-visible
4144
+ * option where it is, so pointer-driven activation never causes a scroll.
4145
+ */
4146
+ private readonly _scrollActiveOptionIntoView;
3594
4147
  /**
3595
4148
  * Consumer template rendered inside each option button in place of the plain
3596
4149
  * label (`<ng-template #option let-context>`). The button itself — and with it
@@ -3607,8 +4160,11 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
3607
4160
  abstract readonly size: InputSignal<controlSize>;
3608
4161
  abstract readonly fluid: InputSignalWithTransform<boolean, unknown>;
3609
4162
  abstract readonly clearable: InputSignalWithTransform<boolean, unknown>;
4163
+ /** Renders the panel through a virtual-scroll viewport, windowing the option list. */
4164
+ abstract readonly virtualScroll: InputSignalWithTransform<boolean, unknown>;
4165
+ /** Fixed height of an option row, in pixels, when the panel is virtualized. */
4166
+ abstract readonly virtualScrollItemSize: InputSignalWithTransform<number, unknown>;
3610
4167
  protected readonly isOpen: Signal<boolean>;
3611
- protected readonly activeIndex: WritableSignal<number>;
3612
4168
  protected readonly normalizedOptions: Signal<Option<V>[]>;
3613
4169
  /**
3614
4170
  * Options actually shown in the panel and traversed by keyboard navigation. Defaults to the full
@@ -3616,12 +4172,31 @@ declare abstract class AbstractSelect<T, V, ValueType> extends ValueFormControl<
3616
4172
  * {@link filterVisibleOptions}. `activeIndex` always indexes into this list, never the raw one.
3617
4173
  */
3618
4174
  protected readonly visibleOptions: Signal<Option<V>[]>;
4175
+ /**
4176
+ * Index of the option keyboard navigation rests on, within `visibleOptions`; −1
4177
+ * means none. When the visible list changes under it (the options swapped while the
4178
+ * panel is open), an index that fell out of range snaps to the last enabled option,
4179
+ * so `aria-activedescendant` never references an element that no longer exists.
4180
+ */
4181
+ protected readonly activeIndex: WritableSignal<number>;
3619
4182
  protected readonly activeDescendantId: Signal<string | null>;
4183
+ /**
4184
+ * Height of the virtualized option viewport: sized to the options, capped so the
4185
+ * panel — viewport plus its block padding — never exceeds the panel's max-height.
4186
+ * A short list therefore produces a short panel instead of an empty scroll area.
4187
+ * Bound to the viewport's `--tls-virtual-scroll-height` custom property.
4188
+ */
4189
+ protected readonly virtualPanelHeight: Signal<string>;
3620
4190
  protected readonly hostClasses: Signal<string[]>;
3621
4191
  protected get listboxId(): string;
3622
4192
  protected abstract readonly uniqueId: string;
3623
4193
  protected abstract readonly hostClassBase: string;
3624
4194
  protected abstract readonly panelClass: string;
4195
+ /**
4196
+ * Prefix of the control's panel custom properties; `<prefix>-max-height` and
4197
+ * `<prefix>-padding-block` must exist under it, as they size the virtualized viewport.
4198
+ */
4199
+ protected abstract readonly panelCssVariablePrefix: string;
3625
4200
  protected abstract readonly hasValue: Signal<boolean>;
3626
4201
  /** Whether `option` is part of the current selection (scalar or array, per control). */
3627
4202
  protected abstract isOptionSelected(option: Option<V>): boolean;
@@ -3663,5 +4238,5 @@ declare abstract class QuerySyncDirective {
3663
4238
 
3664
4239
  declare const provideThalassicUIConfig: (config?: tlsUiConfigProvider) => EnvironmentProviders;
3665
4240
 
3666
- export { ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, AUTOCOMPLETE_CONFIG, ActivityHeatmap, 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_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_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_SLIDER_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, DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL, 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, 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, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, ValueFormControl, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, provideThalassicIcons, provideThalassicUIConfig, resolveActivityLevel };
3667
- export type { ActivityHeatmapConfig, ActivityHeatmapDay, ActivityHeatmapEntry, ActivityHeatmapLabels, ActivityHeatmapMonth, ActivityHeatmapRow, ActivityHeatmapTotal, 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, OverlayArrowPosition, PaginationConfig, PaginationLabels, PaginationQuerySyncConfig, PasswordConfig, PinInputConfig, PopoverConfig, RadioButtonConfig, SelectConfig, SkeletonConfig, SliderConfig, 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, confirmSize, controlSize, dateTimePickerMode, dialogFooterAlign, dialogSize, dividerContentPosition, dividerOrientation, dividerVariant, drawerSide, drawerSize, errorTrigger, fileInputDragState, fileInputVariant, iconRegistry, iconRenderer, imageCompareOrientation, labelPosition, loaderSize, menuItemType, menuPosition, orientation, overlayArrowAlignment, overlayArrowSide, overlayPosition, paginationItem, pinInputType, resolvedConfirmButton, size, sliderColor, splitterOrientation, stepperColor, stepperOrientation, stepperValue, switchColor, systemIcon, tabValue, tableColumnAlignment, tabsHeaderAlign, tabsHeaderPosition, tabsItemsAlign, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, toastAction, toastColor, toastPosition, toastSeverity, toastStacking, toggleButtonColor, toggleButtonVariant, toggleGroupVariant, tooltipColor, tooltipOrigin, tooltipPosition };
4241
+ export { ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, AUTOCOMPLETE_CONFIG, ActivityHeatmap, 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_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_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, 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, 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, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, VIRTUAL_SCROLL_CONFIG, ValueFormControl, VirtualScroll, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, provideThalassicIcons, provideThalassicUIConfig, resolveActivityLevel };
4242
+ 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, HighlightConfig, HighlightSegment, IconConfig, ImageCompareConfig, InputConfig, InputNumberConfig, KbdConfig, LoaderConfig, MarkConfig, MaskResult, MenuActionItem, MenuConfig, MenuCustomItem, MenuDivider, MenuItemDefinition, MenuLabel, 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, 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, drawerSide, drawerSize, errorTrigger, fileInputDragState, fileInputVariant, iconRegistry, iconRenderer, imageCompareOrientation, labelPosition, loaderSize, menuItemType, menuPosition, orientation, overlayArrowAlignment, overlayArrowSide, overlayPosition, paginationItem, pinInputType, progressActiveSegment, progressColor, radius, radiusValue, ratingColor, resolvedConfirmButton, size, sliderColor, splitterOrientation, stepperColor, stepperLabelPosition, stepperOrientation, stepperValue, switchColor, systemIcon, tabValue, tableColumnAlignment, tabsHeaderAlign, tabsHeaderPosition, tabsItemsAlign, tabsOrientation, tabsVariant, textareaResize, tlsUiConfigProvider, toastAction, toastColor, toastPosition, toastSeverity, toastStacking, toggleButtonColor, toggleButtonVariant, toggleGroupVariant, tooltipColor, tooltipOrigin, tooltipPosition };