@sixbell-telco/sdk 3.3.0 → 4.0.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.
Files changed (171) hide show
  1. package/CHANGELOG.md +137 -1
  2. package/README.md +45 -45
  3. package/THIRD_PARTY_NOTICES.md +33 -0
  4. package/_index.css +673 -76
  5. package/components/audio-player/README.md +1 -0
  6. package/components/audio-player/button-play/button-play.component.d.ts +3 -0
  7. package/components/audio-player/src/audio-player.component.d.ts +8 -0
  8. package/components/audio-player/volume-control/volume-control.component.d.ts +3 -0
  9. package/components/button/README.md +13 -0
  10. package/components/button/src/button.component.d.ts +30 -5
  11. package/components/data-table/README.md +53 -3
  12. package/components/data-table/expandable/expandable.component.d.ts +15 -2
  13. package/components/data-table/public-api.d.ts +2 -0
  14. package/components/data-table/sortable-header/sortable-header.component.d.ts +15 -1
  15. package/components/data-table/src/aria-sort.d.ts +22 -0
  16. package/components/data-table/src/data-table-context.service.d.ts +11 -3
  17. package/components/data-table/src/data-table.component.d.ts +39 -3
  18. package/components/data-table/src/sort-icon.component.d.ts +22 -0
  19. package/components/data-table/src/toggle-size.d.ts +7 -0
  20. package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +13 -0
  21. package/components/dialog/README.md +1 -0
  22. package/components/dialog/src/dialog.component.d.ts +9 -2
  23. package/components/divider/src/divider.component.d.ts +5 -0
  24. package/components/dropdown/README.md +21 -0
  25. package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +4 -0
  26. package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +36 -0
  27. package/components/dropdown/src/dropdown-item-focus.d.ts +6 -0
  28. package/components/dropdown/src/dropdown.component.d.ts +5 -2
  29. package/components/dual-list/src/dual-list.component.d.ts +6 -0
  30. package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +6 -0
  31. package/components/forms/combobox/src/combobox.component.d.ts +7 -0
  32. package/components/forms/date-picker/README.md +2 -0
  33. package/components/forms/date-picker/src/date-picker.component.d.ts +6 -0
  34. package/components/forms/select/src/select.component.d.ts +3 -0
  35. package/components/icon/README.md +8 -1
  36. package/components/icon/src/icon.component.d.ts +9 -1
  37. package/components/notification/README.md +8 -0
  38. package/components/notification/src/notification.component.d.ts +8 -1
  39. package/components/paginator/README.md +1 -0
  40. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +7 -1
  41. package/components/paginator/src/paginator.component.d.ts +10 -0
  42. package/components/sonner/toaster/src/toaster.component.d.ts +2 -1
  43. package/components/table/README.md +25 -0
  44. package/components/table/public-api.d.ts +1 -0
  45. package/components/table/src/table-loading.d.ts +18 -0
  46. package/components/table/src/table.component.d.ts +32 -4
  47. package/components/text/README.md +1 -0
  48. package/components/tooltip/src/tooltip.component.d.ts +2 -0
  49. package/directives/text/src/text.directive.d.ts +2 -2
  50. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +48 -10
  51. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  52. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +1 -1
  53. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  54. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +2 -2
  55. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  56. package/fesm2022/sixbell-telco-sdk-components-button.mjs +83 -4
  57. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  58. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +34 -33
  59. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +429 -361
  61. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +42 -22
  63. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  64. package/fesm2022/sixbell-telco-sdk-components-divider.mjs +8 -2
  65. package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -1
  66. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +7 -8
  67. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  68. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +4 -4
  69. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  70. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +247 -48
  71. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  72. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +10 -3
  73. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  74. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +16 -8
  75. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +13 -5
  78. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +9 -3
  80. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  82. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +1 -1
  84. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +8 -4
  86. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  88. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +3 -15
  89. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  90. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -3
  91. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  92. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +12 -4
  93. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  94. package/fesm2022/sixbell-telco-sdk-components-link.mjs +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  96. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +17 -8
  97. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  98. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +24 -5
  100. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +5 -5
  102. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +2 -1
  104. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +2 -1
  106. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -1
  108. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-table.mjs +99 -22
  110. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +21 -3
  112. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +9 -9
  114. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-directives-text.mjs +3 -3
  116. package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -1
  117. package/fesm2022/sixbell-telco-sdk-layouts.mjs +919 -0
  118. package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -0
  119. package/fesm2022/sixbell-telco-sdk-utils-cn.mjs +2 -3
  120. package/fesm2022/sixbell-telco-sdk-utils-cn.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-utils-http.mjs +39 -0
  122. package/fesm2022/sixbell-telco-sdk-utils-http.mjs.map +1 -0
  123. package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs +150 -0
  124. package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs.map +1 -0
  125. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +103 -4
  126. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +71 -2
  128. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
  129. package/layouts/README.md +278 -0
  130. package/layouts/index.d.ts +5 -0
  131. package/layouts/public-api.d.ts +23 -0
  132. package/layouts/src/app-layout/app-layout.component.d.ts +71 -0
  133. package/layouts/src/layout-account.d.ts +16 -0
  134. package/layouts/src/layout-logo.d.ts +10 -0
  135. package/layouts/src/layout-switcher/layout-switcher.component.d.ts +13 -0
  136. package/layouts/src/layout.config.d.ts +18 -0
  137. package/layouts/src/layout.service.d.ts +17 -0
  138. package/layouts/src/menu/menu-active.d.ts +24 -0
  139. package/layouts/src/menu/menu-animation.d.ts +34 -0
  140. package/layouts/src/menu/menu-search.d.ts +13 -0
  141. package/layouts/src/menu/menu-sections.d.ts +23 -0
  142. package/layouts/src/menu/menu-url.d.ts +12 -0
  143. package/layouts/src/menu/menu.model.d.ts +15 -0
  144. package/layouts/src/navbar/navbar.component.d.ts +33 -0
  145. package/layouts/src/page-banner/page-banner.component.d.ts +40 -0
  146. package/layouts/src/side-menu/side-menu.component.d.ts +89 -0
  147. package/layouts/src/user-menu/user-menu.component.d.ts +91 -0
  148. package/package.json +30 -19
  149. package/utils/cn/src/cn.d.ts +1 -1
  150. package/utils/http/README.md +26 -0
  151. package/utils/http/index.d.ts +5 -0
  152. package/utils/http/public-api.d.ts +3 -0
  153. package/utils/http/src/bearer-token.interceptor.d.ts +19 -0
  154. package/utils/http/src/http-context.d.ts +3 -0
  155. package/utils/mfe/README.md +35 -0
  156. package/utils/mfe/index.d.ts +5 -0
  157. package/utils/mfe/public-api.d.ts +5 -0
  158. package/utils/mfe/src/mfe-shadow-root.d.ts +23 -0
  159. package/utils/mfe/src/mfe-shadow-shell.component.d.ts +20 -0
  160. package/utils/mfe/src/provide-mfe-shadow-shell.d.ts +20 -0
  161. package/utils/mfe/src/shadow-root-overlay-container.d.ts +13 -0
  162. package/utils/theme/README.md +14 -0
  163. package/utils/theme/public-api.d.ts +3 -1
  164. package/utils/theme/src/models/theme.d.ts +18 -0
  165. package/utils/theme/src/scheme-favicon/scheme-favicon.d.ts +26 -0
  166. package/utils/theme/src/theme-assets/theme-assets.service.d.ts +31 -1
  167. package/utils/theme/src/theme-assets/theme-assets.types.d.ts +6 -0
  168. package/utils/translation/README.md +12 -0
  169. package/utils/translation/public-api.d.ts +4 -0
  170. package/utils/translation/src/title-strategy/translated-title-strategy.d.ts +27 -0
  171. package/utils/translation/src/translated-label/translated-label.d.ts +21 -0
@@ -40,6 +40,18 @@ export interface DropdownFallbackPositions {
40
40
  */
41
41
  export declare class DropdownTriggerComponent {
42
42
  protected readonly themeDomService: ThemeDomService;
43
+ private readonly wrapper;
44
+ private readonly panel;
45
+ private destroyed;
46
+ private readonly ownId;
47
+ /** Projected focusable element that acts as the menu button; null when the wrapper is the button */
48
+ private readonly delegate;
49
+ /** @internal Id of the element that names the menu */
50
+ readonly labelledBy: import("@angular/core").WritableSignal<string>;
51
+ /** @internal Id of the menu this trigger controls, set by the parent dropdown */
52
+ readonly menuId: import("@angular/core").WritableSignal<string | null>;
53
+ /** Item to focus once the menu renders after a user opened it */
54
+ private readonly pendingFocus;
43
55
  /** Offset X in pixels */
44
56
  offsetX: import("@angular/core").InputSignal<number>;
45
57
  /** Offset Y in pixels */
@@ -94,6 +106,11 @@ export declare class DropdownTriggerComponent {
94
106
  overlayOpen: import("@angular/core").WritableSignal<boolean>;
95
107
  /** Current animation state */
96
108
  animationState: import("@angular/core").WritableSignal<DropdownAnimationState>;
109
+ /** Whether the menu is expanded for assistive technology (false as soon as it starts closing) */
110
+ readonly expanded: import("@angular/core").Signal<boolean>;
111
+ /** @internal aria-controls value: the menu id while the menu is expanded */
112
+ readonly controls: import("@angular/core").Signal<string | null>;
113
+ constructor();
97
114
  /** Current active position configuration */
98
115
  currentPosition: import("@angular/core").WritableSignal<ConnectedPosition | null>;
99
116
  /**
@@ -179,6 +196,25 @@ export declare class DropdownTriggerComponent {
179
196
  * Handle Space key activation
180
197
  */
181
198
  handleKeyDownSpace(event: Event): void;
199
+ /**
200
+ * @internal
201
+ * ArrowDown and ArrowUp on the trigger open the menu (or enter it) on the first or last item
202
+ */
203
+ handleTriggerKeydown(event: KeyboardEvent): void;
204
+ /**
205
+ * @internal
206
+ * Keyboard model inside the open menu: arrows (wrapping), Home/End, typeahead, Escape and Tab
207
+ */
208
+ handleMenuKeydown(event: KeyboardEvent): void;
209
+ private focusMenuItem;
210
+ private typeahead;
211
+ private menuItems;
212
+ private toggleFromUser;
213
+ private openAndFocus;
214
+ /** Focus the menu button: the projected focusable element, or the wrapper */
215
+ private focusTrigger;
216
+ /** Whether focus is inside the open menu, read from the panel's own root so it works in shadow DOM */
217
+ private hasFocusInMenu;
182
218
  /**
183
219
  * Open the dropdown
184
220
  * Sets up overlay with animation and emits opened event
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Focus indicator of the dropdown items. Focus sits on the `li[role^=menuitem]` itself (the kit's menu
3
+ * tokens target `li > *`), so the item draws a 2px `base-content` outline just outside its edge, over
4
+ * the menu surface: at least 3:1 against `base-200` in every theme and scheme.
5
+ */
6
+ export declare const FOCUS_RING = "focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-0 focus-visible:outline-base-content";
@@ -11,8 +11,11 @@ import * as i0 from "@angular/core";
11
11
  * @example
12
12
  * ```html
13
13
  * <st-dropdown>
14
- * <st-dropdown-trigger [showChevron]="true">
15
- * <button class="btn btn-primary">Open Menu</button>
14
+ * <st-dropdown-trigger>
15
+ * <button type="button" class="btn btn-primary">
16
+ * Open Menu
17
+ * <st-dropdown-chevron />
18
+ * </button>
16
19
  * </st-dropdown-trigger>
17
20
  * <st-dropdown-content>
18
21
  * <st-dropdown-item>Item 1</st-dropdown-item>
@@ -9,6 +9,12 @@ export declare class DualListComponent<T> {
9
9
  maxSize: import("@angular/core").InputSignal<number>;
10
10
  chevronLeftIcon: string;
11
11
  chevronRightIcon: string;
12
+ private readonly translateLabel;
13
+ /** @internal Names of the icon-only move buttons. */
14
+ protected readonly moveLabels: import("@angular/core").Signal<{
15
+ add: string;
16
+ remove: string;
17
+ }>;
12
18
  searchIcon: string;
13
19
  key: import("@angular/core").InputSignal<string>;
14
20
  value: import("@angular/core").InputSignal<string>;
@@ -145,6 +145,12 @@ export declare class DropzoneComponent implements ControlValueAccessor {
145
145
  /** @internal Material icon references */
146
146
  iconDelete: string;
147
147
  iconDownload: string;
148
+ private readonly translateLabel;
149
+ /** @internal Names of the icon-only file action buttons. */
150
+ protected readonly fileActionLabels: import("@angular/core").Signal<{
151
+ download: string;
152
+ remove: string;
153
+ }>;
148
154
  iconInsertDriveFile: string;
149
155
  iconCloudUpload: string;
150
156
  iconError: string;
@@ -83,6 +83,13 @@ export declare class ComboboxComponent implements ControlValueAccessor {
83
83
  * @internal
84
84
  */
85
85
  translateService: TranslateService;
86
+ private readonly translateLabel;
87
+ /** @internal Clear button name from `sdk.combobox.clearSelection`, in English when no translation is loaded. */
88
+ protected readonly clearSelectionLabel: import("@angular/core").Signal<string>;
89
+ /** @internal Search input name from `sdk.combobox.searchOptions`, in English when no translation is loaded. */
90
+ protected readonly searchOptionsLabel: import("@angular/core").Signal<string>;
91
+ /** @internal Clear-all button text from `sdk.combobox.clearAll`, in English when no translation is loaded. */
92
+ protected readonly clearAllLabel: import("@angular/core").Signal<string>;
86
93
  protected readonly themeDomService: ThemeDomService;
87
94
  /**
88
95
  * The visual style variant of the combobox
@@ -8,6 +8,7 @@ Single or range calendar. Overlay Clear is gated by `allowClear` (default `true`
8
8
 
9
9
  ## Usage
10
10
 
11
+ <!-- prettier-ignore -->
11
12
  ```html
12
13
  <st-datepicker
13
14
  label="Start date"
@@ -25,3 +26,4 @@ Single or range calendar. Overlay Clear is gated by `allowClear` (default `true`
25
26
 
26
27
  - Wrap with `st-form-item` and put `st-form-errors` as a sibling, not inside the trigger.
27
28
  - Range: bind `[rangeValue]` and `(rangeValueChanged)`.
29
+ - Accessibility: the calendar's month buttons are named from `sdk.datePicker.previousMonth` and `sdk.datePicker.nextMonth`, in English when no translation is loaded.
@@ -335,6 +335,12 @@ export declare class DatepickerComponent implements ControlValueAccessor {
335
335
  readonly iconChevronLeft = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z\"></path></svg>";
336
336
  readonly iconChevronRight = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z\"></path></svg>";
337
337
  readonly iconClock = "<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" style=\"stroke-width:var(--ng-icon__stroke-width, 1.5)\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"></path></svg>";
338
+ private readonly translateLabel;
339
+ /** @internal Names of the icon-only month navigation buttons. */
340
+ protected readonly monthLabels: import("@angular/core").Signal<{
341
+ previous: string;
342
+ next: string;
343
+ }>;
338
344
  private clampTime;
339
345
  onStartTimeChange(ev: Event): void;
340
346
  onEndTimeChange(ev: Event): void;
@@ -158,6 +158,9 @@ export declare class SelectComponent implements ControlValueAccessor {
158
158
  iconCheck: string;
159
159
  /** Close/clear icon */
160
160
  iconClose: string;
161
+ private readonly translateLabel;
162
+ /** @internal Name of the icon-only clear button. */
163
+ protected readonly clearSelectionLabel: import("@angular/core").Signal<string>;
161
164
  /** Current animation state of the overlay */
162
165
  private readonly animationState;
163
166
  /** Trigger for blur events in form validation */
@@ -14,5 +14,12 @@ Renders an SVG from the bundled icon sets (Material, Heroicons, Ionicons).
14
14
 
15
15
  ## Notes
16
16
 
17
- - `icon` is required. Optional `color` and `size`.
17
+ - `icon` is required. Optional `color`, `size` and `ariaLabel`.
18
18
  - Import icon strings from `@sixbell-telco/sdk/components/icon/material/outline` (and sibling packs).
19
+ - Icons are decorative by default: the rendered icon gets `aria-hidden="true"` and no role, so it adds nothing to the accessibility tree. Name the surrounding control instead (for example `st-button`'s `ariaLabel`).
20
+ - Set `ariaLabel` only when the icon carries meaning on its own (a status icon with no text next to it). The icon is then exposed as `role="img"` with that name. A blank `ariaLabel` keeps the icon decorative.
21
+ - Put accessibility attributes on `st-icon` through `ariaLabel`, not `aria-*` on the host: the host is `display: contents`.
22
+
23
+ ```html
24
+ <st-icon [icon]="warningIcon" color="warning" ariaLabel="Warning" />
25
+ ```
@@ -13,7 +13,15 @@ export declare class IconComponent {
13
13
  color: import("@angular/core").InputSignal<IconColorProps>;
14
14
  size: import("@angular/core").InputSignal<IconSizeProps>;
15
15
  icon: import("@angular/core").InputSignal<string>;
16
+ /**
17
+ * Accessible name for an icon that carries meaning on its own.
18
+ * Without it the icon is decorative and hidden from assistive technology (`aria-hidden="true"`).
19
+ * With it the icon is exposed as `role="img"` with this name.
20
+ */
21
+ ariaLabel: import("@angular/core").InputSignal<string | null | undefined>;
22
+ /** @internal */
23
+ accessibleName: import("@angular/core").Signal<string | null>;
16
24
  componentClass: import("@angular/core").Signal<string>;
17
25
  static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "st-icon", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "st-icon", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
19
27
  }
@@ -11,3 +11,11 @@ Inline status chip (not a toast). `status` is required (for example `'unseen'`).
11
11
  ```html
12
12
  <st-notification status="unseen"></st-notification>
13
13
  ```
14
+
15
+ ## Accessibility
16
+
17
+ The icon-only button is named from `sdk.notification.label` ("Notifications"), or `sdk.notification.unseen` ("Notifications, unread") while `status` is `'unseen'`, in English when no translation is loaded. Pass `ariaLabel` for a more specific name, such as a count:
18
+
19
+ ```html
20
+ <st-notification status="unseen" [ariaLabel]="unreadCount + ' unread notifications'"></st-notification>
21
+ ```
@@ -20,7 +20,14 @@ export declare class NotificationComponent {
20
20
  icon: import("@angular/core").InputSignal<string>;
21
21
  status: import("@angular/core").InputSignal<NotificationStatus>;
22
22
  disabled: import("@angular/core").InputSignal<boolean>;
23
+ /**
24
+ * Accessible name of the button. Defaults to `sdk.notification.label`, or `sdk.notification.unseen` while `status` is `'unseen'`.
25
+ */
26
+ ariaLabel: import("@angular/core").InputSignal<string | null | undefined>;
27
+ private readonly translateLabel;
28
+ /** @internal Accessible name of the icon-only button. */
29
+ protected readonly label: import("@angular/core").Signal<string>;
23
30
  componentClass: import("@angular/core").Signal<string>;
24
31
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "st-notification", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "st-notification", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
26
33
  }
@@ -15,3 +15,4 @@ Page controls. Bind `pages` and listen to `pageChanged`.
15
15
  ## Notes
16
16
 
17
17
  - Two-way `[(currentPage)]`. Prefer `(pageChanged)` over item-level activation outputs.
18
+ - Accessibility: the first/previous/next/last icon buttons are named from `sdk.pagination.first|previous|next|last`, and dot buttons from `sdk.pagination.page` ("Page 3"), in English when no translation is loaded. Numeric buttons are named by their number, and the current page has `aria-current="page"`. A standalone `st-pagination-item` with `variant="icon"` or `"dots"` needs `ariaLabel`.
@@ -32,6 +32,7 @@ export type PaginationItemProps = {
32
32
  * <st-pagination-item
33
33
  * variant="icon"
34
34
  * icon="chevron-right"
35
+ * ariaLabel="Next page"
35
36
  * ></st-pagination-item>
36
37
  * ```
37
38
  *
@@ -80,6 +81,11 @@ export declare class PaginationItemComponent {
80
81
  * @defaultValue false
81
82
  */
82
83
  stopPropagation: import("@angular/core").InputSignal<boolean>;
84
+ /**
85
+ * Accessible name forwarded to the inner `<button>` as `aria-label`.
86
+ * Required for the `icon` and `dots` variants, which have no visible text.
87
+ */
88
+ ariaLabel: import("@angular/core").InputSignal<string | null | undefined>;
83
89
  /**
84
90
  * Event emitted on click
85
91
  */
@@ -121,5 +127,5 @@ export declare class PaginationItemComponent {
121
127
  */
122
128
  handleKeyDownSpace(event: Event): void;
123
129
  static ɵfac: i0.ɵɵFactoryDeclaration<PaginationItemComponent, never>;
124
- static ɵcmp: i0.ɵɵComponentDeclaration<PaginationItemComponent, "st-pagination-item", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "number": { "alias": "number"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, never, true, never>;
130
+ static ɵcmp: i0.ɵɵComponentDeclaration<PaginationItemComponent, "st-pagination-item", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "number": { "alias": "number"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, never, true, never>;
125
131
  }
@@ -83,6 +83,16 @@ export declare class PaginatorComponent {
83
83
  * Double right arrow icon reference
84
84
  */
85
85
  iconDoubleArrowRight: string;
86
+ private readonly translateLabel;
87
+ /** @internal Names of the icon-only navigation buttons, from `sdk.pagination.*` with English fallbacks. */
88
+ protected readonly navigationLabels: import("@angular/core").Signal<{
89
+ first: string;
90
+ previous: string;
91
+ next: string;
92
+ last: string;
93
+ }>;
94
+ /** @internal Name of a dot button, from `sdk.pagination.page`. */
95
+ protected pageLabel(page: number | string): string;
86
96
  /**
87
97
  * @internal
88
98
  * Computed array of page numbers and ellipses for display.
@@ -22,7 +22,8 @@ export declare class SonnerToasterComponent {
22
22
  dir: import("@angular/core").InputSignal<"ltr" | "rtl">;
23
23
  /**
24
24
  * Whether to use rich colors for semantic toasts
25
- * @defaultValue true
25
+ * (semantic border and text color on the base-200 surface, applied through the SDK classes).
26
+ * @defaultValue false
26
27
  */
27
28
  richColors: import("@angular/core").InputSignal<boolean>;
28
29
  /**
@@ -19,3 +19,28 @@ Data table with optional pagination, footer, and row actions.
19
19
  - `st-table-actions` supports `inline` or `dropdown` modes, or projected `st-table-action` children.
20
20
  - `st-table-action` default `variant` is `base`. Prefer `(triggered)` or `(clicked)`.
21
21
  - `st-table-action` tooltip default `tooltipVariant` is `base`; override per action when needed.
22
+ - Accessible names: an `st-table-action` uses its translated `tooltip` as the button's `aria-label`, so give icon-only actions a `tooltip` (or a `tooltip` in each `TableActionConfig`). The `dropdown` mode trigger is named by the `sdk.table.actions` key.
23
+ - `height` presets: `auto` (default), `full`, `sm` (18rem), `md` (20rem), `lg` (24rem), `xl` (36rem). The height container is the only scroll container, so `pinRows` keeps the header in view.
24
+ - `pinColumns` pins the first column, whether its cells are `th` or `td`.
25
+
26
+ ## Loading
27
+
28
+ - `[loading]="true"` keeps the projected `<thead>` and the table frame and replaces the body with skeleton rows, so the header and column layout do not jump. The no-data and no-results states are not shown while loading.
29
+ - The skeleton has one row per page entry (`pagination.itemsPerPage`) unless `loadingRows` sets the count, and one cell per header column (`colspan` counted) of the first `<thead>` row.
30
+ - The table gets `aria-busy="true"`, the skeleton is `aria-hidden`, and a polite status announces `sdk.table.loading`. The skeleton pulse stops under reduced motion.
31
+ - The projected `<tbody>` and `<tfoot>` are hidden while loading. Same behavior and shared implementation as `st-data-table`.
32
+
33
+ ```html
34
+ <st-table [loading]="isLoading()" [data]="rows()" [totalItems]="total()" [pagination]="pagination()">
35
+ <thead>
36
+ ...
37
+ </thead>
38
+ <tbody>
39
+ ...
40
+ </tbody>
41
+ </st-table>
42
+ ```
43
+
44
+ ## Row hover
45
+
46
+ `rowHover` (default `true`) tints the hovered body row with `--color-table-row-hover`, layered over each cell's own background, so zebra rows and the pinned first column follow it. The default tint is `color-mix(in oklch, var(--color-base-content) 12%, transparent)`: it darkens rows in light schemes and lightens them in dark ones, whichever base step is lighter, and keeps at least 1.2:1 between hovered and resting rows with body text above 4.5:1 in the shipped themes. Override `--color-table-row-hover` in a theme to change it. Set `[rowHover]="false"` to turn it off. Remove per-row `hover:bg-*` workarounds.
@@ -1,3 +1,4 @@
1
+ export * from './src/table-loading';
1
2
  export * from './src/table.component';
2
3
  export * from './table-action/table-action.component';
3
4
  export * from './table-actions/table-actions.component';
@@ -0,0 +1,18 @@
1
+ import { Signal } from '@angular/core';
2
+ import type { TableResolvedSize } from './table.component';
3
+ /** Skeleton body shared by `st-table` and `st-data-table` while `loading` is on. */
4
+ export interface TableLoadingSkeleton {
5
+ readonly rows: Signal<number[]>;
6
+ readonly columns: Signal<number[]>;
7
+ readonly cellClass: Signal<string>;
8
+ }
9
+ /**
10
+ * @internal
11
+ * Builds the loading skeleton of a table shell: one row per entry of `rowCount`, one cell per projected header
12
+ * column (colspan included, measured after render while loading). Call it in an injection context.
13
+ */
14
+ export declare function injectTableLoadingSkeleton(options: {
15
+ loading: Signal<boolean>;
16
+ rowCount: Signal<number>;
17
+ size: Signal<TableResolvedSize>;
18
+ }): TableLoadingSkeleton;
@@ -118,6 +118,24 @@ export declare class TableComponent {
118
118
  * @defaultValue false
119
119
  */
120
120
  bordered: import("@angular/core").InputSignal<boolean>;
121
+ /**
122
+ * Highlight body rows on hover with the `--color-table-row-hover` tint (12% `base-content` by default)
123
+ * layered over each cell's own background, so zebra rows and pinned first-column cells follow it
124
+ * @defaultValue true
125
+ */
126
+ rowHover: import("@angular/core").InputSignal<boolean>;
127
+ /**
128
+ * Show a loading state: the projected header and the table frame stay in place and the body
129
+ * shows skeleton rows. The table is marked `aria-busy` and a status message is announced.
130
+ * The empty states are not shown while loading.
131
+ * @defaultValue false
132
+ */
133
+ loading: import("@angular/core").InputSignal<boolean>;
134
+ /**
135
+ * Number of skeleton rows shown while loading. Defaults to the page size (`pagination.itemsPerPage`).
136
+ * @defaultValue null
137
+ */
138
+ loadingRows: import("@angular/core").InputSignal<number | null>;
121
139
  /**
122
140
  * Pagination control display variant
123
141
  * @defaultValue 'default'
@@ -202,6 +220,17 @@ export declare class TableComponent {
202
220
  * Computed boolean indicating if any filters are currently active
203
221
  */
204
222
  readonly hasActiveFilters: import("@angular/core").Signal<boolean>;
223
+ private readonly skeleton;
224
+ /** @internal */
225
+ readonly skeletonRows: import("@angular/core").Signal<number[]>;
226
+ /** @internal */
227
+ readonly skeletonColumns: import("@angular/core").Signal<number[]>;
228
+ /** @internal */
229
+ readonly skeletonClass: import("@angular/core").Signal<string>;
230
+ /** @internal */
231
+ readonly showNoData: import("@angular/core").Signal<boolean>;
232
+ /** @internal */
233
+ readonly showNoResults: import("@angular/core").Signal<boolean>;
205
234
  /**
206
235
  * Computed boolean indicating if we should show "no results" vs "no data"
207
236
  */
@@ -258,10 +287,9 @@ export declare class TableComponent {
258
287
  rows: import("@angular/core").Signal<readonly TableRowCheckboxComponent[]>;
259
288
  /** @internal Track selected row identifiers */
260
289
  identifiers: import("@angular/core").WritableSignal<Set<unknown>>;
261
- /** Event emitted with array of selected item identifiers */
290
+ /** Event emitted with the selected item identifiers after each selection change (not on init) */
262
291
  checkedItems: import("@angular/core").OutputEmitterRef<unknown[]>;
263
- /** @internal Sync checkbox state with output */
264
- checkEffect: import("@angular/core").EffectRef;
292
+ private emitCheckedItems;
265
293
  /**
266
294
  * Toggle all row checkboxes
267
295
  * @param value - Whether to check or uncheck all rows
@@ -276,5 +304,5 @@ export declare class TableComponent {
276
304
  /** @internal Clear all selections */
277
305
  private clearList;
278
306
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
279
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "st-table", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "pinRows": { "alias": "pinRows"; "required": false; "isSignal": true; }; "pinColumns": { "alias": "pinColumns"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "paginatorType": { "alias": "paginatorType"; "required": false; "isSignal": true; }; "noDataIcon": { "alias": "noDataIcon"; "required": false; "isSignal": true; }; "noResultsIcon": { "alias": "noResultsIcon"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "showItemsPerPage": { "alias": "showItemsPerPage"; "required": false; "isSignal": true; }; "showEntries": { "alias": "showEntries"; "required": false; "isSignal": true; }; "showPagination": { "alias": "showPagination"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "hasActiveFiltersCallback": { "alias": "hasActiveFiltersCallback"; "required": false; "isSignal": true; }; "allowHeaderOverflow": { "alias": "allowHeaderOverflow"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; "checkedItems": "checkedItems"; }, ["header", "rows"], ["st-table-empty-actions", "thead", "tbody", "tfoot"], true, never>;
307
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "st-table", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "pinRows": { "alias": "pinRows"; "required": false; "isSignal": true; }; "pinColumns": { "alias": "pinColumns"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "rowHover": { "alias": "rowHover"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingRows": { "alias": "loadingRows"; "required": false; "isSignal": true; }; "paginatorType": { "alias": "paginatorType"; "required": false; "isSignal": true; }; "noDataIcon": { "alias": "noDataIcon"; "required": false; "isSignal": true; }; "noResultsIcon": { "alias": "noResultsIcon"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "showItemsPerPage": { "alias": "showItemsPerPage"; "required": false; "isSignal": true; }; "showEntries": { "alias": "showEntries"; "required": false; "isSignal": true; }; "showPagination": { "alias": "showPagination"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "hasActiveFiltersCallback": { "alias": "hasActiveFiltersCallback"; "required": false; "isSignal": true; }; "allowHeaderOverflow": { "alias": "allowHeaderOverflow"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; "checkedItems": "checkedItems"; }, ["header", "rows"], ["st-table-empty-actions", "thead", "tbody", "tfoot"], true, never>;
280
308
  }
@@ -8,6 +8,7 @@ Polymorphic text. `as` picks the HTML tag; `preset` is `'1'`–`'10'`. Classes o
8
8
 
9
9
  ## Usage
10
10
 
11
+ <!-- prettier-ignore -->
11
12
  ```html
12
13
  <st-text as="h2" preset="2">Section title</st-text>
13
14
  <st-text as="p" preset="7" class="text-error font-medium">Class overrides win</st-text>
@@ -131,6 +131,8 @@ export declare class TooltipComponent {
131
131
  protected onPointerEnter(): void;
132
132
  protected onPointerLeave(): void;
133
133
  protected onFocusIn(event: FocusEvent): void;
134
+ /** Pressing the trigger dismisses the tooltip until a fresh pointer enter or keyboard focus. */
135
+ protected onPress(): void;
134
136
  protected onFocusOut(event: FocusEvent): void;
135
137
  protected onEscape(): void;
136
138
  protected onTooltipPositionChange(event: ConnectedOverlayPositionChange): void;
@@ -24,7 +24,7 @@ export type TextProps = {
24
24
  * Each preset bundles sensible defaults for font-size, line-height, letter-spacing, and font-weight.
25
25
  * Weight, color, and overflow can be overridden independently.
26
26
  *
27
- * External Tailwind classes on the host element are automatically merged via `tailwind-merge`,
27
+ * External Tailwind classes on the host element are automatically merged via `cn()`,
28
28
  * so they override conflicting directive defaults (e.g., `class="text-error"` overrides the
29
29
  * default `text-base-content` color).
30
30
  *
@@ -73,7 +73,7 @@ export declare class TextDirective {
73
73
  */
74
74
  stTextLineClamp: import("@angular/core").InputSignal<TextLineClamp>;
75
75
  /**
76
- * Extra CSS classes merged after directive classes via `tailwind-merge`.
76
+ * Extra CSS classes merged after directive classes via `cn()`.
77
77
  * Useful for programmatic overrides (e.g., forwarded from a wrapper component).
78
78
  * Conflicting utilities in `stTextClass` win over directive defaults.
79
79
  */