@thalassic/ui 22.12.0 → 22.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thalassic/ui",
3
- "version": "22.12.0",
3
+ "version": "22.13.0",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/aria": "^22.0.0",
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { ModelSignal, InputSignal, WritableSignal, Signal, InputSignalWithTransform, InjectionToken, TemplateRef, Type, EnvironmentProviders, OutputEmitterRef, ElementRef, OnInit, TrackByFunction, OnDestroy } from '@angular/core';
3
3
  import { FormUiControl, WithOptionalFieldTree, ValidationError, FormValueControl, FormCheckboxControl, ReadonlyFieldTree } from '@angular/forms/signals';
4
- import { Day } from 'date-fns';
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';
@@ -544,8 +544,46 @@ interface CalendarEventContext {
544
544
  view: calendarView;
545
545
  }
546
546
 
547
+ /** User-facing strings rendered by the calendar and its views, overridable for localization. */
548
+ interface CalendarLabels {
549
+ /** Accessible name for the previous-period navigation button. */
550
+ previous: string;
551
+ /** Accessible name for the next-period navigation button. */
552
+ next: string;
553
+ /** Label for the button that snaps back to today. */
554
+ today: string;
555
+ /** Gutter label for the week/day all-day row. */
556
+ allDay: string;
557
+ /** Message shown by the agenda view when the active month has no events. */
558
+ noEvents: string;
559
+ /** Label for the "+N more" affordance on a month day cell with hidden events. */
560
+ more: (count: number) => string;
561
+ /** Labels for the view-switcher options, keyed by view. */
562
+ views: Record<calendarView, string>;
563
+ }
564
+ interface CalendarConfig {
565
+ /** View shown on first render. */
566
+ view: calendarView;
567
+ /** First day of the week (`date-fns` convention: 0 = Sunday). */
568
+ weekStartsOn: Day;
569
+ /** Short weekday labels, Sunday-first; rotated to honour `weekStartsOn`. */
570
+ weekDays: string[];
571
+ /** First hour rendered by the week/day time-grid. */
572
+ hourStart: number;
573
+ /** Last hour rendered by the week/day time-grid. */
574
+ hourEnd: number;
575
+ /** Whether the week/day views show a dedicated all-day row above the time-grid. */
576
+ showAllDayRow: boolean;
577
+ /** Events shown in a month day cell before collapsing the rest into "+N more". */
578
+ maxEventsPerDay: number;
579
+ /** User-facing strings, overridable for localization. */
580
+ labels: CalendarLabels;
581
+ }
582
+ declare const DEFAULT_CALENDAR_CONFIG: CalendarConfig;
583
+
547
584
  declare class Calendar {
548
585
  private readonly _config;
586
+ private readonly _locale;
549
587
  readonly events: InputSignal<CalendarEvent[]>;
550
588
  readonly weekStartsOn: InputSignal<Day>;
551
589
  readonly weekDays: InputSignal<string[]>;
@@ -562,11 +600,13 @@ declare class Calendar {
562
600
  readonly view: ModelSignal<calendarView>;
563
601
  /** Anchor date driving the visible range; navigation shifts it by the view's unit. */
564
602
  readonly activeDate: ModelSignal<Date>;
603
+ protected readonly labels: CalendarLabels;
565
604
  protected readonly viewOptions: {
566
605
  label: string;
567
606
  value: calendarView;
568
607
  }[];
569
608
  protected readonly eventTemplate: Signal<TemplateRef<CalendarEventContext> | undefined>;
609
+ private readonly _dateOptions;
570
610
  protected readonly hostClasses: Signal<string[]>;
571
611
  /** Whether the active period already includes today, so "Today" would be a no-op. */
572
612
  protected readonly isViewingToday: Signal<boolean>;
@@ -602,6 +642,8 @@ interface AgendaDay {
602
642
  * omitted. Reuses the shared event chip and template slot; carries list — not grid — semantics.
603
643
  */
604
644
  declare class CalendarAgendaView {
645
+ private readonly _locale;
646
+ private readonly _config;
605
647
  readonly activeDate: InputSignal<Date>;
606
648
  readonly events: InputSignal<CalendarEvent[]>;
607
649
  readonly eventTemplate: InputSignal<TemplateRef<CalendarEventContext> | undefined>;
@@ -609,6 +651,8 @@ declare class CalendarAgendaView {
609
651
  readonly label: InputSignal<string | undefined>;
610
652
  readonly dateSelect: OutputEmitterRef<Date>;
611
653
  readonly eventSelect: OutputEmitterRef<CalendarEvent>;
654
+ protected readonly noEventsLabel: string;
655
+ private readonly _dateOptions;
612
656
  protected readonly days: Signal<AgendaDay[]>;
613
657
  static ɵfac: i0.ɵɵFactoryDeclaration<CalendarAgendaView, never>;
614
658
  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>;
@@ -620,10 +664,12 @@ declare class CalendarAgendaView {
620
664
  * (a month cell's list, a time-grid block, an agenda row).
621
665
  */
622
666
  declare class CalendarEventItem {
667
+ private readonly _locale;
623
668
  readonly event: InputSignal<CalendarEvent>;
624
669
  readonly view: InputSignal<calendarView>;
625
670
  readonly template: InputSignal<TemplateRef<CalendarEventContext> | undefined>;
626
671
  readonly activate: OutputEmitterRef<CalendarEvent>;
672
+ private readonly _dateOptions;
627
673
  protected readonly classes: Signal<string[]>;
628
674
  protected readonly context: Signal<CalendarEventContext>;
629
675
  /** Time-aware views prefix the start time; the month grid shows the title alone. */
@@ -655,6 +701,8 @@ interface MonthWeek {
655
701
  bars: MonthEventBar[];
656
702
  }
657
703
  declare class CalendarMonthView {
704
+ private readonly _locale;
705
+ private readonly _config;
658
706
  readonly activeDate: InputSignal<Date>;
659
707
  readonly events: InputSignal<CalendarEvent[]>;
660
708
  readonly weekStartsOn: InputSignal<Day>;
@@ -665,8 +713,11 @@ declare class CalendarMonthView {
665
713
  readonly label: InputSignal<string | undefined>;
666
714
  readonly dateSelect: OutputEmitterRef<Date>;
667
715
  readonly eventSelect: OutputEmitterRef<CalendarEvent>;
716
+ private readonly _dateOptions;
668
717
  protected readonly weekdayHeaders: Signal<string[]>;
669
718
  protected readonly weeks: Signal<MonthWeek[]>;
719
+ /** Localized "+N more" label for a day cell with `count` hidden events. */
720
+ protected moreLabel(count: number): string;
670
721
  /** Space would scroll the page; consume it and select the focused day instead. */
671
722
  protected onDaySpace(event: Event, date: Date): void;
672
723
  static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthView, never>;
@@ -695,6 +746,8 @@ interface TimeGridColumn {
695
746
  * a header row. Shared by the week (seven columns) and day (single column) views.
696
747
  */
697
748
  declare class CalendarTimeGrid {
749
+ private readonly _locale;
750
+ private readonly _config;
698
751
  readonly days: InputSignal<Date[]>;
699
752
  readonly events: InputSignal<CalendarEvent[]>;
700
753
  readonly view: InputSignal<calendarView>;
@@ -707,6 +760,8 @@ declare class CalendarTimeGrid {
707
760
  readonly dateSelect: OutputEmitterRef<Date>;
708
761
  readonly eventSelect: OutputEmitterRef<CalendarEvent>;
709
762
  protected readonly hourHeight = 48;
763
+ protected readonly allDayLabel: string;
764
+ private readonly _dateOptions;
710
765
  protected readonly hours: Signal<number[]>;
711
766
  protected readonly columns: Signal<TimeGridColumn[]>;
712
767
  /** Vertical offset (px) of the current-time line, or null when now is off-screen. */
@@ -720,28 +775,11 @@ declare class CalendarTimeGrid {
720
775
  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>;
721
776
  }
722
777
 
723
- interface CalendarConfig {
724
- /** View shown on first render. */
725
- view: calendarView;
726
- /** First day of the week (`date-fns` convention: 0 = Sunday). */
727
- weekStartsOn: Day;
728
- /** Short weekday labels, Sunday-first; rotated to honour `weekStartsOn`. */
729
- weekDays: string[];
730
- /** First hour rendered by the week/day time-grid. */
731
- hourStart: number;
732
- /** Last hour rendered by the week/day time-grid. */
733
- hourEnd: number;
734
- /** Whether the week/day views show a dedicated all-day row above the time-grid. */
735
- showAllDayRow: boolean;
736
- /** Events shown in a month day cell before collapsing the rest into "+N more". */
737
- maxEventsPerDay: number;
738
- }
739
- declare const DEFAULT_CALENDAR_CONFIG: CalendarConfig;
740
-
741
778
  declare const CALENDAR_CONFIG: InjectionToken<CalendarConfig>;
742
779
 
743
780
  type chipColor = color;
744
781
  type chipVariant = 'filled' | 'tonal' | 'outlined' | 'text';
782
+ type chipSize = 'xs' | 'sm' | 'md' | 'lg';
745
783
  interface ChipContext {
746
784
  checked: boolean;
747
785
  disabled: boolean;
@@ -760,7 +798,7 @@ declare class Chip {
760
798
  readonly label: InputSignal<string | undefined>;
761
799
  readonly color: InputSignal<chipColor>;
762
800
  readonly variant: InputSignal<chipVariant>;
763
- readonly size: InputSignal<controlSize>;
801
+ readonly size: InputSignal<chipSize>;
764
802
  readonly rounded: i0.InputSignalWithTransform<boolean, unknown>;
765
803
  readonly icon: i0.InputSignalWithTransform<boolean, unknown>;
766
804
  readonly fluid: i0.InputSignalWithTransform<boolean, unknown>;
@@ -790,7 +828,7 @@ declare class ChipControl extends CheckboxFormControl {
790
828
  interface ChipConfig {
791
829
  color: chipColor;
792
830
  variant: chipVariant;
793
- size: controlSize;
831
+ size: chipSize;
794
832
  }
795
833
  declare const DEFAULT_CHIP_CONFIG: ChipConfig;
796
834
 
@@ -953,6 +991,8 @@ interface DialogConfig {
953
991
  size: dialogSize;
954
992
  closeable: boolean;
955
993
  backdropClose: boolean;
994
+ /** Accessible name for the close button, overridable for localization. */
995
+ closeLabel: string;
956
996
  }
957
997
  declare const DEFAULT_DIALOG_CONFIG: DialogConfig;
958
998
 
@@ -971,6 +1011,8 @@ interface DialogOpenConfig<D = unknown> {
971
1011
  size?: dialogSize;
972
1012
  closeable?: boolean;
973
1013
  backdropClose?: boolean;
1014
+ /** Accessible name for the close button. */
1015
+ closeLabel?: string;
974
1016
  role?: DialogRole;
975
1017
  ariaLabel?: string | null;
976
1018
  ariaLabelledBy?: string | null;
@@ -1021,6 +1063,8 @@ interface DrawerConfig {
1021
1063
  closeable: boolean;
1022
1064
  backdropClose: boolean;
1023
1065
  rounded: boolean;
1066
+ /** Accessible name for the close button, overridable for localization. */
1067
+ closeLabel: string;
1024
1068
  }
1025
1069
  declare const DEFAULT_DRAWER_CONFIG: DrawerConfig;
1026
1070
 
@@ -1064,6 +1108,8 @@ interface DrawerOpenConfig<D = unknown> {
1064
1108
  closeable?: boolean;
1065
1109
  backdropClose?: boolean;
1066
1110
  rounded?: boolean;
1111
+ /** Accessible name for the close button. */
1112
+ closeLabel?: string;
1067
1113
  role?: DialogRole;
1068
1114
  ariaLabel?: string | null;
1069
1115
  ariaLabelledBy?: string | null;
@@ -1181,6 +1227,7 @@ declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null
1181
1227
  readonly clearable: InputSignalWithTransform<boolean, unknown>;
1182
1228
  readonly filterMode: InputSignal<autocompleteFilterMode>;
1183
1229
  readonly emptyMessage: InputSignal<string>;
1230
+ readonly clearLabel: InputSignal<string>;
1184
1231
  protected readonly hasValue: Signal<boolean>;
1185
1232
  protected readonly selectedLabel: Signal<string>;
1186
1233
  /**
@@ -1198,7 +1245,7 @@ declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null
1198
1245
  protected getInitialActiveIndex(): number;
1199
1246
  protected commitActiveOption(option: Option<V>): void;
1200
1247
  static ɵfac: i0.ɵɵFactoryDeclaration<Autocomplete<any, any>, never>;
1201
- 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; }; }, { "value": "valueChange"; }, never, never, true, never>;
1248
+ 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>;
1202
1249
  }
1203
1250
 
1204
1251
  interface AutocompleteConfig {
@@ -1208,6 +1255,8 @@ interface AutocompleteConfig {
1208
1255
  clearable: boolean;
1209
1256
  filterMode: autocompleteFilterMode;
1210
1257
  emptyMessage: string;
1258
+ /** Accessible name for the clear button, overridable for localization. */
1259
+ clearLabel: string;
1211
1260
  }
1212
1261
  declare const DEFAULT_AUTOCOMPLETE_CONFIG: AutocompleteConfig;
1213
1262
 
@@ -1280,7 +1329,7 @@ declare class ChipGroup<T, V = unknown> extends SelectionGroup<T, V> {
1280
1329
  protected CLASS_NAME: string;
1281
1330
  readonly multiple: InputSignalWithTransform<boolean, unknown>;
1282
1331
  readonly unselectable: InputSignalWithTransform<boolean, unknown>;
1283
- readonly size: InputSignal<controlSize>;
1332
+ readonly size: InputSignal<chipSize>;
1284
1333
  readonly color: InputSignal<chipColor>;
1285
1334
  readonly checkedColor: InputSignal<_thalassic_ui.color | undefined>;
1286
1335
  readonly variant: InputSignal<chipVariant>;
@@ -1299,7 +1348,7 @@ declare class ChipGroup<T, V = unknown> extends SelectionGroup<T, V> {
1299
1348
  }
1300
1349
 
1301
1350
  interface ChipGroupConfig {
1302
- size: controlSize;
1351
+ size: chipSize;
1303
1352
  color: chipColor;
1304
1353
  checkedColor: chipColor | undefined;
1305
1354
  variant: chipVariant;
@@ -1532,7 +1581,10 @@ declare class Password extends ValueFormControl<string> {
1532
1581
  protected readonly startIconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
1533
1582
  protected readonly showIconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
1534
1583
  protected readonly hideIconTemplate: i0.Signal<TemplateRef<unknown> | undefined>;
1584
+ protected readonly showLabel: string;
1585
+ protected readonly hideLabel: string;
1535
1586
  protected type: i0.Signal<"text" | "password">;
1587
+ protected readonly toggleAriaLabel: i0.Signal<string>;
1536
1588
  protected onInput(event: Event): void;
1537
1589
  protected toggle(): void;
1538
1590
  static ɵfac: i0.ɵɵFactoryDeclaration<Password, never>;
@@ -1543,6 +1595,14 @@ interface PasswordConfig {
1543
1595
  size: controlSize;
1544
1596
  placeholder: string;
1545
1597
  fluid: boolean;
1598
+ /** Accessible name for the toggle when the password is hidden ("reveal" action). */
1599
+ showAriaLabel: string;
1600
+ /** Accessible name for the toggle when the password is visible ("conceal" action). */
1601
+ hideAriaLabel: string;
1602
+ /** Visible fallback text for the reveal action when no `showIcon` slot is provided. */
1603
+ showLabel: string;
1604
+ /** Visible fallback text for the conceal action when no `hideIcon` slot is provided. */
1605
+ hideLabel: string;
1546
1606
  }
1547
1607
  declare const DEFAULT_PASSWORD_CONFIG: PasswordConfig;
1548
1608
 
@@ -1617,6 +1677,7 @@ declare class MultiSelect<T, V = unknown> extends AbstractSelect<T, V, V[]> {
1617
1677
  readonly fluid: InputSignalWithTransform<boolean, unknown>;
1618
1678
  readonly clearable: InputSignalWithTransform<boolean, unknown>;
1619
1679
  readonly maxLabels: InputSignal<number>;
1680
+ readonly clearLabel: InputSignal<string>;
1620
1681
  protected readonly hasValue: Signal<boolean>;
1621
1682
  protected readonly selectedValues: Signal<Set<V>>;
1622
1683
  protected readonly triggerLabel: Signal<string>;
@@ -1626,7 +1687,7 @@ declare class MultiSelect<T, V = unknown> extends AbstractSelect<T, V, V[]> {
1626
1687
  protected getInitialActiveIndex(): number;
1627
1688
  protected commitActiveOption(option: Option<V>): void;
1628
1689
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelect<any, any>, never>;
1629
- 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; }; }, { "value": "valueChange"; }, never, never, true, never>;
1690
+ 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>;
1630
1691
  }
1631
1692
 
1632
1693
  interface MultiSelectConfig {
@@ -1635,6 +1696,8 @@ interface MultiSelectConfig {
1635
1696
  fluid: boolean;
1636
1697
  clearable: boolean;
1637
1698
  maxLabels: number;
1699
+ /** Accessible name for the clear button, overridable for localization. */
1700
+ clearLabel: string;
1638
1701
  }
1639
1702
  declare const DEFAULT_MULTI_SELECT_CONFIG: MultiSelectConfig;
1640
1703
 
@@ -1652,6 +1715,7 @@ declare class Select<T, V = unknown> extends AbstractSelect<T, V, V | null> {
1652
1715
  readonly size: InputSignal<controlSize>;
1653
1716
  readonly fluid: InputSignalWithTransform<boolean, unknown>;
1654
1717
  readonly clearable: InputSignalWithTransform<boolean, unknown>;
1718
+ readonly clearLabel: InputSignal<string>;
1655
1719
  protected readonly hasValue: Signal<boolean>;
1656
1720
  protected readonly selectedLabel: Signal<string>;
1657
1721
  protected select(option: Option<V>): void;
@@ -1659,7 +1723,7 @@ declare class Select<T, V = unknown> extends AbstractSelect<T, V, V | null> {
1659
1723
  protected getInitialActiveIndex(): number;
1660
1724
  protected commitActiveOption(option: Option<V>): void;
1661
1725
  static ɵfac: i0.ɵɵFactoryDeclaration<Select<any, any>, never>;
1662
- 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; }; }, { "value": "valueChange"; }, never, never, true, never>;
1726
+ 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>;
1663
1727
  }
1664
1728
 
1665
1729
  interface SelectConfig {
@@ -1667,6 +1731,8 @@ interface SelectConfig {
1667
1731
  placeholder: string;
1668
1732
  fluid: boolean;
1669
1733
  clearable: boolean;
1734
+ /** Accessible name for the clear button, overridable for localization. */
1735
+ clearLabel: string;
1670
1736
  }
1671
1737
  declare const DEFAULT_SELECT_CONFIG: SelectConfig;
1672
1738
 
@@ -2140,6 +2206,31 @@ declare const DEFAULT_ODOMETER_CONFIG: OdometerConfig;
2140
2206
 
2141
2207
  declare const ODOMETER_CONFIG: InjectionToken<OdometerConfig>;
2142
2208
 
2209
+ /** Accessible names for the pagination controls, overridable for localization. */
2210
+ interface PaginationLabels {
2211
+ /** Accessible name for the first-page button. */
2212
+ first: string;
2213
+ /** Accessible name for the previous-page button. */
2214
+ previous: string;
2215
+ /** Accessible name for the next-page button. */
2216
+ next: string;
2217
+ /** Accessible name for the last-page button. */
2218
+ last: string;
2219
+ /** Accessible name for a numbered page button. */
2220
+ page: (page: number) => string;
2221
+ }
2222
+ interface PaginationConfig {
2223
+ size: controlSize;
2224
+ pageSize: number;
2225
+ boundaries: number;
2226
+ siblings: number;
2227
+ showFirstButton: boolean;
2228
+ showLastButton: boolean;
2229
+ /** Accessible names for the controls, overridable for localization. */
2230
+ labels: PaginationLabels;
2231
+ }
2232
+ declare const DEFAULT_PAGINATION_CONFIG: PaginationConfig;
2233
+
2143
2234
  type paginationItem = number | 'gap';
2144
2235
 
2145
2236
  declare class Pagination {
@@ -2155,6 +2246,7 @@ declare class Pagination {
2155
2246
  readonly siblings: i0.InputSignal<number>;
2156
2247
  readonly showFirstButton: i0.InputSignalWithTransform<boolean, unknown>;
2157
2248
  readonly showLastButton: i0.InputSignalWithTransform<boolean, unknown>;
2249
+ protected readonly labels: PaginationLabels;
2158
2250
  protected readonly pageCount: i0.Signal<number>;
2159
2251
  protected readonly visiblePages: i0.Signal<paginationItem[]>;
2160
2252
  protected readonly classes: i0.Signal<string[]>;
@@ -2171,16 +2263,6 @@ declare class Pagination {
2171
2263
  static ɵcmp: i0.ɵɵComponentDeclaration<Pagination, "tls-pagination", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "boundaries": { "alias": "boundaries"; "required": false; "isSignal": true; }; "siblings": { "alias": "siblings"; "required": false; "isSignal": true; }; "showFirstButton": { "alias": "showFirstButton"; "required": false; "isSignal": true; }; "showLastButton": { "alias": "showLastButton"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
2172
2264
  }
2173
2265
 
2174
- interface PaginationConfig {
2175
- size: controlSize;
2176
- pageSize: number;
2177
- boundaries: number;
2178
- siblings: number;
2179
- showFirstButton: boolean;
2180
- showLastButton: boolean;
2181
- }
2182
- declare const DEFAULT_PAGINATION_CONFIG: PaginationConfig;
2183
-
2184
2266
  declare const PAGINATION_CONFIG: InjectionToken<PaginationConfig>;
2185
2267
 
2186
2268
  interface PaginationQuerySyncConfig {
@@ -2469,19 +2551,25 @@ declare class TabsQuerySyncDirective extends QuerySyncDirective implements OnIni
2469
2551
  * <a tlsTabLink routerLink="security" routerLinkActive>Security</a>
2470
2552
  * </nav>
2471
2553
  * ```
2554
+ *
2555
+ * Set `divider` to draw a separator between every pair of links. The
2556
+ * separators are presentational only — they carry no semantics and are not
2557
+ * announced to assistive technology.
2472
2558
  */
2473
2559
  declare class TabNavDirective {
2474
2560
  private readonly _config;
2475
2561
  readonly variant: InputSignal<tabsVariant>;
2476
2562
  readonly orientation: InputSignal<tabsOrientation>;
2563
+ readonly divider: InputSignalWithTransform<boolean, unknown>;
2477
2564
  protected hostClasses: Signal<string[]>;
2478
2565
  static ɵfac: i0.ɵɵFactoryDeclaration<TabNavDirective, never>;
2479
- static ɵdir: i0.ɵɵDirectiveDeclaration<TabNavDirective, "nav[tlsTabNav]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2566
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TabNavDirective, "nav[tlsTabNav]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "divider": { "alias": "divider"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2480
2567
  }
2481
2568
 
2482
2569
  interface TabNavConfig {
2483
2570
  variant: tabsVariant;
2484
2571
  orientation: tabsOrientation;
2572
+ divider: boolean;
2485
2573
  }
2486
2574
  declare const DEFAULT_TAB_NAV_CONFIG: TabNavConfig;
2487
2575
 
@@ -2610,6 +2698,8 @@ declare class Toast {
2610
2698
  readonly paused: i0.InputSignal<boolean>;
2611
2699
  readonly action: i0.InputSignal<toastAction | undefined>;
2612
2700
  readonly ariaLabel: i0.InputSignal<string | undefined>;
2701
+ /** Accessible name for the close button. */
2702
+ readonly dismissLabel: i0.InputSignal<string>;
2613
2703
  readonly dismissed: i0.OutputEmitterRef<void>;
2614
2704
  readonly actionTriggered: i0.OutputEmitterRef<void>;
2615
2705
  protected readonly hostClasses: i0.Signal<string[]>;
@@ -2620,7 +2710,7 @@ declare class Toast {
2620
2710
  protected onAction(): void;
2621
2711
  protected onClose(): void;
2622
2712
  static ɵfac: i0.ɵɵFactoryDeclaration<Toast, never>;
2623
- static ɵcmp: i0.ɵɵComponentDeclaration<Toast, "tls-toast", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": true; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "showProgress": { "alias": "showProgress"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "paused": { "alias": "paused"; "required": false; "isSignal": true; }; "action": { "alias": "action"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "dismissed": "dismissed"; "actionTriggered": "actionTriggered"; }, never, never, true, never>;
2713
+ static ɵcmp: i0.ɵɵComponentDeclaration<Toast, "tls-toast", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": true; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "showProgress": { "alias": "showProgress"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "paused": { "alias": "paused"; "required": false; "isSignal": true; }; "action": { "alias": "action"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "dismissLabel": { "alias": "dismissLabel"; "required": false; "isSignal": true; }; }, { "dismissed": "dismissed"; "actionTriggered": "actionTriggered"; }, never, never, true, never>;
2624
2714
  }
2625
2715
 
2626
2716
  /** Options accepted by {@link ToastService.show}. */
@@ -2721,6 +2811,8 @@ declare class ToastOutlet {
2721
2811
  private readonly _toastElements;
2722
2812
  private readonly _resizeObserver;
2723
2813
  protected readonly position: i0.Signal<_thalassic_ui.toastPosition>;
2814
+ protected readonly regionLabel: i0.Signal<string>;
2815
+ protected readonly dismissLabel: i0.Signal<string>;
2724
2816
  protected readonly expanded: i0.Signal<boolean>;
2725
2817
  protected readonly paused: i0.Signal<boolean>;
2726
2818
  protected readonly regionClasses: i0.Signal<string[]>;
@@ -2760,6 +2852,10 @@ interface ToastConfig {
2760
2852
  showProgress: boolean;
2761
2853
  /** Whether hovering / focusing the stack pauses every toast's auto-dismiss timer. */
2762
2854
  pauseOnHover: boolean;
2855
+ /** Accessible name for the toast region landmark, overridable for localization. */
2856
+ regionLabel: string;
2857
+ /** Accessible name for a toast's close button, overridable for localization. */
2858
+ dismissLabel: string;
2763
2859
  }
2764
2860
  declare const DEFAULT_TOAST_CONFIG: ToastConfig;
2765
2861
 
@@ -2806,16 +2902,32 @@ declare const DEFAULT_TOOLTIP_CONFIG: TooltipConfig;
2806
2902
 
2807
2903
  declare const TOOLTIP_CONFIG: InjectionToken<TooltipConfig>;
2808
2904
 
2905
+ interface LocaleConfig {
2906
+ /**
2907
+ * `date-fns` locale used by every component that formats dates (calendar month
2908
+ * names, weekday and time-grid headings, agenda labels). When omitted, `date-fns`
2909
+ * formats in its built-in `en-US` locale. Import the desired locale from
2910
+ * `date-fns/locale` (e.g. `import { fr } from 'date-fns/locale'`) and pass it here.
2911
+ */
2912
+ dateFns?: Locale;
2913
+ }
2914
+
2809
2915
  interface tlsUiConfigProvider {
2810
2916
  /** Cross-cutting accessibility policy applied across every component (not tied to a single one). */
2811
2917
  accessibility?: Partial<AccessibilityConfig>;
2918
+ /** Cross-cutting locale used by every component that formats dates (not tied to a single one). */
2919
+ locale?: Partial<LocaleConfig>;
2812
2920
  /** Cross-cutting defaults inherited by every form control (not tied to a single component). */
2813
2921
  formControl?: Partial<FormControlConfig>;
2814
2922
  components: {
2815
2923
  alert?: Partial<AlertConfig>;
2816
2924
  autocomplete?: Partial<AutocompleteConfig>;
2817
2925
  button?: Partial<ButtonConfig>;
2818
- calendar?: Partial<CalendarConfig>;
2926
+ calendar?: Partial<Omit<CalendarConfig, 'labels'>> & {
2927
+ labels?: Partial<Omit<CalendarLabels, 'views'>> & {
2928
+ views?: Partial<Record<calendarView, string>>;
2929
+ };
2930
+ };
2819
2931
  checkbox?: Partial<CheckboxConfig>;
2820
2932
  chip?: Partial<ChipConfig>;
2821
2933
  chipControl?: Partial<ChipControlConfig>;
@@ -2835,7 +2947,8 @@ interface tlsUiConfigProvider {
2835
2947
  mark?: Partial<MarkConfig>;
2836
2948
  menu?: Partial<MenuConfig>;
2837
2949
  multiSelect?: Partial<MultiSelectConfig>;
2838
- pagination?: Partial<PaginationConfig> & {
2950
+ pagination?: Partial<Omit<PaginationConfig, 'labels'>> & {
2951
+ labels?: Partial<PaginationLabels>;
2839
2952
  querySync?: Partial<PaginationQuerySyncConfig>;
2840
2953
  };
2841
2954
  password?: Partial<PasswordConfig>;
@@ -2935,4 +3048,4 @@ declare abstract class QuerySyncDirective {
2935
3048
  declare const provideThalassicUIConfig: (config: tlsUiConfigProvider) => EnvironmentProviders;
2936
3049
 
2937
3050
  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 };
2938
- export type { AlertConfig, AutocompleteConfig, BadgeConfig, BreadcrumbItem, BreadcrumbsConfig, ButtonConfig, CalendarConfig, CalendarEvent, CalendarEventContext, 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, 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, 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 };
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 };