@cngx/ui 0.1.0-rc.7 → 0.1.0-rc.8

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 (96) hide show
  1. package/README.md +0 -1
  2. package/a11y/README.md +11 -5
  3. package/accordion/README.md +4 -2
  4. package/breadcrumb/README.md +262 -0
  5. package/collection/README.md +6 -0
  6. package/command-palette/README.md +224 -0
  7. package/data-grid-accordion/README.md +76 -2
  8. package/feedback/README.md +40 -0
  9. package/fesm2022/cngx-ui-a11y.mjs +189 -57
  10. package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
  11. package/fesm2022/cngx-ui-accordion.mjs +102 -35
  12. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-action-button.mjs +112 -50
  14. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-breadcrumb.mjs +176 -96
  16. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  17. package/fesm2022/cngx-ui-chart-panel.mjs +180 -23
  18. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
  19. package/fesm2022/cngx-ui-collection.mjs +194 -62
  20. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  21. package/fesm2022/cngx-ui-command-palette.mjs +395 -119
  22. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
  23. package/fesm2022/cngx-ui-context-menu.mjs +149 -34
  24. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-data-grid-accordion.mjs +415 -98
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  27. package/fesm2022/cngx-ui-empty-state.mjs +16 -6
  28. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  29. package/fesm2022/cngx-ui-feedback.mjs +1022 -439
  30. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  31. package/fesm2022/cngx-ui-mat-accordion.mjs +75 -7
  32. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  33. package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
  34. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  35. package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
  36. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  37. package/fesm2022/cngx-ui-mat-tabs.mjs +314 -141
  38. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  39. package/fesm2022/cngx-ui-overlay.mjs +69 -13
  40. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  41. package/fesm2022/cngx-ui-paginator.mjs +487 -178
  42. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  43. package/fesm2022/cngx-ui-sidenav.mjs +327 -106
  44. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  45. package/fesm2022/cngx-ui-skeleton.mjs +4 -16
  46. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  47. package/fesm2022/cngx-ui-speak.mjs +107 -8
  48. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  49. package/fesm2022/cngx-ui-stat-card.mjs +146 -46
  50. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
  51. package/fesm2022/cngx-ui-stepper.mjs +191 -68
  52. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  53. package/fesm2022/cngx-ui-tabs.mjs +10 -6
  54. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  55. package/fesm2022/cngx-ui-timeline.mjs +74 -21
  56. package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
  57. package/fesm2022/cngx-ui-toc.mjs +70 -26
  58. package/fesm2022/cngx-ui-toc.mjs.map +1 -1
  59. package/fesm2022/cngx-ui.mjs +15 -20
  60. package/fesm2022/cngx-ui.mjs.map +1 -1
  61. package/mat-paginator/README.md +9 -2
  62. package/mat-tabs/styles/mat-tabs.css +9 -10
  63. package/overlay/README.md +9 -4
  64. package/package.json +4 -4
  65. package/paginator/README.md +8 -4
  66. package/sidenav/README.md +33 -11
  67. package/speak/README.md +3 -2
  68. package/stepper/README.md +13 -1
  69. package/timeline/README.md +1 -1
  70. package/toc/README.md +4 -1
  71. package/types/cngx-ui-a11y.d.ts +121 -30
  72. package/types/cngx-ui-accordion.d.ts +91 -26
  73. package/types/cngx-ui-action-button.d.ts +44 -3
  74. package/types/cngx-ui-breadcrumb.d.ts +154 -58
  75. package/types/cngx-ui-chart-panel.d.ts +122 -18
  76. package/types/cngx-ui-collection.d.ts +147 -55
  77. package/types/cngx-ui-command-palette.d.ts +297 -183
  78. package/types/cngx-ui-context-menu.d.ts +98 -6
  79. package/types/cngx-ui-data-grid-accordion.d.ts +274 -38
  80. package/types/cngx-ui-empty-state.d.ts +9 -2
  81. package/types/cngx-ui-feedback.d.ts +594 -56
  82. package/types/cngx-ui-mat-accordion.d.ts +29 -1
  83. package/types/cngx-ui-mat-paginator.d.ts +37 -8
  84. package/types/cngx-ui-mat-stepper.d.ts +23 -11
  85. package/types/cngx-ui-mat-tabs.d.ts +207 -14
  86. package/types/cngx-ui-overlay.d.ts +56 -10
  87. package/types/cngx-ui-paginator.d.ts +403 -129
  88. package/types/cngx-ui-sidenav.d.ts +248 -74
  89. package/types/cngx-ui-skeleton.d.ts +6 -7
  90. package/types/cngx-ui-speak.d.ts +118 -5
  91. package/types/cngx-ui-stat-card.d.ts +117 -33
  92. package/types/cngx-ui-stepper.d.ts +66 -27
  93. package/types/cngx-ui-tabs.d.ts +2 -2
  94. package/types/cngx-ui-timeline.d.ts +23 -7
  95. package/types/cngx-ui-toc.d.ts +80 -13
  96. package/types/cngx-ui.d.ts +7 -4
@@ -1,4 +1,5 @@
1
- import * as i0 from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { InjectionToken, Signal, Provider } from '@angular/core';
2
3
  import { CngxSpeak } from '@cngx/common';
3
4
 
4
5
  /**
@@ -30,10 +31,122 @@ import { CngxSpeak } from '@cngx/common';
30
31
  * <example-url>http://localhost:4200/#/ui/speak/speak-button/styled-speaker-icon</example-url>
31
32
  */
32
33
  declare class CngxSpeakButton {
34
+ private readonly i18n;
33
35
  /** The `CngxSpeak` directive instance to connect to. */
34
- readonly speakRef: i0.InputSignal<CngxSpeak>;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<CngxSpeakButton, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<CngxSpeakButton, "cngx-speak-button", never, { "speakRef": { "alias": "speakRef"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
36
+ readonly speakRef: _angular_core.InputSignal<CngxSpeak>;
37
+ /**
38
+ * Accessible label while idle - the action the button offers. Unbound,
39
+ * `CNGX_SPEAK_I18N.readAloud` applies.
40
+ */
41
+ readonly readAloudLabel: _angular_core.InputSignal<string | undefined>;
42
+ /**
43
+ * Accessible label while speaking - the action the button offers to
44
+ * interrupt playback. Unbound, `CNGX_SPEAK_I18N.stopSpeaking` applies.
45
+ */
46
+ readonly stopLabel: _angular_core.InputSignal<string | undefined>;
47
+ /** @internal - the label for the current playback state. */
48
+ protected readonly resolvedLabel: _angular_core.Signal<string>;
49
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSpeakButton, never>;
50
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxSpeakButton, "cngx-speak-button", never, { "speakRef": { "alias": "speakRef"; "required": true; "isSignal": true; }; "readAloudLabel": { "alias": "readAloudLabel"; "required": false; "isSignal": true; }; "stopLabel": { "alias": "stopLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
37
51
  }
38
52
 
39
- export { CngxSpeakButton };
53
+ /**
54
+ * The speak section of a {@link CngxLanguagePack}: the accessible names of
55
+ * `CngxSpeakButton`. It feeds `CNGX_SPEAK_I18N`; a key set through
56
+ * `withSpeakI18nLabels` still wins.
57
+ *
58
+ * @category ui/speak/i18n
59
+ * @since 0.1.0
60
+ * @relatedTo CNGX_SPEAK_I18N, withSpeakI18nLabels
61
+ */
62
+ interface CngxSpeakLanguageSection {
63
+ /** Accessible name of the speak button while idle. */
64
+ readonly readAloud: string;
65
+ /** Accessible name of the speak button while speaking. */
66
+ readonly stopSpeaking: string;
67
+ }
68
+ /**
69
+ * The English speak section: the single source of the speak button's English
70
+ * copy. `CNGX_SPEAK_I18N` defaults to it.
71
+ *
72
+ * @category ui/speak/i18n
73
+ * @since 0.1.0
74
+ * @relatedTo CNGX_SPEAK_I18N
75
+ */
76
+ declare const CNGX_SPEAK_LANGUAGE_EN: CngxSpeakLanguageSection;
77
+ declare module '@cngx/core/i18n' {
78
+ interface CngxLanguagePack {
79
+ readonly speak: CngxSpeakLanguageSection;
80
+ }
81
+ }
82
+
83
+ /**
84
+ * Speak i18n surface: the `speak` section of the language pack (English
85
+ * without one); override single keys via {@link provideSpeakI18n}. Reactive
86
+ * from birth: the token carries a `Signal`, and {@link withSpeakI18nLabels}
87
+ * accepts a `Signal` of a partial bundle.
88
+ *
89
+ * `CngxSpeakButton` reads both keys inside a `computed()` while its
90
+ * `readAloudLabel` / `stopLabel` inputs are unbound, so the label follows a
91
+ * language switch.
92
+ *
93
+ * @category ui/speak/i18n
94
+ */
95
+ type CngxSpeakI18n = CngxSpeakLanguageSection;
96
+ /**
97
+ * DI token for the speak i18n bundle. `providedIn: 'root'`: the `speak`
98
+ * section of the active language pack over the English defaults. The value is
99
+ * a `Signal`, shared by every reader under one injector.
100
+ *
101
+ * @category ui/speak/i18n
102
+ * @wcag AA
103
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/speak/speak-i18n.ts
104
+ * @since 0.1.0
105
+ * @relatedTo CngxSpeakButton
106
+ */
107
+ declare const CNGX_SPEAK_I18N: InjectionToken<Signal<CngxSpeakLanguageSection>>;
108
+ /**
109
+ * Branded feature-fn for {@link provideSpeakI18n}.
110
+ *
111
+ * @category ui/speak/i18n
112
+ * @since 0.1.0
113
+ */
114
+ type CngxSpeakI18nFeature = ((bundle: Signal<CngxSpeakI18n>) => Signal<CngxSpeakI18n>) & {
115
+ readonly _target: 'i18n';
116
+ };
117
+ /**
118
+ * Override i18n labels via a partial bundle - unset keys, and keys set to
119
+ * `null` or `undefined`, keep the language pack's copy, or the English
120
+ * default, so the button never loses its accessible name. Pass a `Signal` of a
121
+ * partial bundle to switch languages at runtime.
122
+ *
123
+ * @category ui/speak/i18n
124
+ * @since 0.1.0
125
+ */
126
+ declare function withSpeakI18nLabels(overrides: Partial<CngxSpeakI18n> | Signal<Partial<CngxSpeakI18n>>): CngxSpeakI18nFeature;
127
+ /**
128
+ * Provider for the speak i18n bundle. Returns a plain `Provider`, so it also
129
+ * scopes a subtree through `viewProviders`.
130
+ *
131
+ * ```ts
132
+ * bootstrapApplication(AppComponent, {
133
+ * providers: [
134
+ * provideSpeakI18n(withSpeakI18nLabels({ readAloud: 'Vorlesen', stopSpeaking: 'Vorlesen beenden' })),
135
+ * ],
136
+ * });
137
+ * ```
138
+ *
139
+ * @category ui/speak/i18n
140
+ * @since 0.1.0
141
+ */
142
+ declare function provideSpeakI18n(...features: readonly CngxSpeakI18nFeature[]): Provider;
143
+ /**
144
+ * Inject the resolved speak i18n bundle signal.
145
+ *
146
+ * @category ui/speak/i18n
147
+ * @since 0.1.0
148
+ */
149
+ declare function injectSpeakI18n(): Signal<CngxSpeakI18n>;
150
+
151
+ export { CNGX_SPEAK_I18N, CNGX_SPEAK_LANGUAGE_EN, CngxSpeakButton, injectSpeakI18n, provideSpeakI18n, withSpeakI18nLabels };
152
+ export type { CngxSpeakI18n, CngxSpeakI18nFeature, CngxSpeakLanguageSection };
@@ -2,7 +2,7 @@ import * as _cngx_common_data from '@cngx/common/data';
2
2
  import { CngxStatCoordinator, CngxStatSlotKind } from '@cngx/common/data';
3
3
  export { CNGX_STAT, CngxStatCaption, CngxStatDelta, CngxStatLabel, CngxStatRegistry, CngxStatValue } from '@cngx/common/data';
4
4
  import * as _angular_core from '@angular/core';
5
- import { InjectionToken, EnvironmentProviders, Provider } from '@angular/core';
5
+ import { Signal, InjectionToken, EnvironmentProviders, Provider } from '@angular/core';
6
6
  import { CngxAsyncState, CngxLoadingTreatment } from '@cngx/core/utils';
7
7
 
8
8
  /**
@@ -50,6 +50,7 @@ declare class CngxStatCard {
50
50
  /** @internal The shared slot-id brain, applied as a host directive. */
51
51
  protected readonly coordinator: CngxStatCoordinator;
52
52
  private readonly config;
53
+ private readonly ariaLabels;
53
54
  /**
54
55
  * The tile's async envelope. Every view decision derives from it; there are
55
56
  * no discrete `loading` / `error` boolean fallbacks. Optional per the
@@ -63,14 +64,20 @@ declare class CngxStatCard {
63
64
  * `'skeleton'` pin the choice.
64
65
  */
65
66
  readonly loadingTreatment: _angular_core.InputSignal<CngxLoadingTreatment>;
66
- /** Accessible label announced while the card is loading. */
67
- readonly busyLabel: _angular_core.InputSignal<string>;
67
+ /**
68
+ * Accessible label announced while the card is loading. Unbound
69
+ * (`undefined`), each copy input falls back to the config cascade and the
70
+ * `statCard` section of the language pack.
71
+ */
72
+ readonly busyLabel: _angular_core.InputSignal<string | undefined>;
68
73
  /** Headline of the error state shown instead of the stat when the first load failed. */
69
- readonly errorText: _angular_core.InputSignal<string>;
74
+ readonly errorText: _angular_core.InputSignal<string | undefined>;
70
75
  /** Supporting detail under {@link errorText}. Omitted when unset. */
71
76
  readonly errorDescription: _angular_core.InputSignal<string | undefined>;
72
77
  /** Note appended below the stat when a refresh failed but stale data is still shown. */
73
- readonly staleText: _angular_core.InputSignal<string>;
78
+ readonly staleText: _angular_core.InputSignal<string | undefined>;
79
+ /** Headline of the empty state shown when a load settled with no data. */
80
+ readonly emptyText: _angular_core.InputSignal<string | undefined>;
74
81
  /**
75
82
  * Politeness of the tile's live region. `off` (default) for a static KPI;
76
83
  * `polite` for a tile that refreshes on a timer, so the new figure is
@@ -79,11 +86,6 @@ declare class CngxStatCard {
79
86
  readonly live: _angular_core.InputSignal<"off" | "polite" | "assertive">;
80
87
  /** @internal Whether any operation is running. Drives `aria-busy` (Pillar 2). */
81
88
  protected readonly busy: _angular_core.Signal<boolean>;
82
- /**
83
- * @internal A refresh over content the user can still read. The skeleton and
84
- * spinner branches already carry their own busy signal, so the bar would be
85
- * redundant there.
86
- */
87
89
  /**
88
90
  * @internal Which bars the placeholder draws. Mirrors the slots the consumer
89
91
  * actually projected, so a tile without a delta gets no delta bar. Falls back
@@ -91,6 +93,11 @@ declare class CngxStatCard {
91
93
  * a card with no stat slots at all still needs a plausible placeholder.
92
94
  */
93
95
  protected readonly skeletonSlots: _angular_core.Signal<readonly CngxStatSlotKind[]>;
96
+ /**
97
+ * @internal A refresh over content the user can still read. The skeleton and
98
+ * spinner branches already carry their own busy signal, so the bar would be
99
+ * redundant there.
100
+ */
94
101
  protected readonly showRefreshIndicator: _angular_core.Signal<boolean>;
95
102
  private readonly loadingConfig;
96
103
  /**
@@ -106,11 +113,6 @@ declare class CngxStatCard {
106
113
  * every tile in the app.
107
114
  */
108
115
  protected readonly resolvedTreatment: _angular_core.Signal<"spinner" | "skeleton">;
109
- /**
110
- * Which body the card renders. Delegates to the shared `resolveAsyncView`
111
- * lookup table so the tile cannot drift from every other async surface.
112
- * Without a bound `[state]` the card always shows its content.
113
- */
114
116
  /**
115
117
  * @internal The card element carries the accessible name, so the tile is one
116
118
  * named region instead of an unnamed `article` wrapped around a named group.
@@ -118,9 +120,27 @@ declare class CngxStatCard {
118
120
  * branch, and pointing at ids that are out of the DOM reads as unnamed anyway.
119
121
  */
120
122
  protected readonly cardLabelledBy: _angular_core.Signal<string | null>;
123
+ /**
124
+ * @internal Which body the card renders. Delegates to the shared
125
+ * `resolveAsyncView` lookup table so the tile cannot drift from every other
126
+ * async surface. Without a bound `[state]` the card always shows its content.
127
+ */
121
128
  protected readonly activeView: _angular_core.Signal<_cngx_common_data.AsyncView>;
129
+ protected readonly resolvedBusyLabel: _angular_core.Signal<string>;
130
+ protected readonly resolvedErrorText: _angular_core.Signal<string>;
131
+ protected readonly resolvedErrorDescription: _angular_core.Signal<string | undefined>;
132
+ protected readonly resolvedStaleText: _angular_core.Signal<string>;
133
+ protected readonly resolvedEmptyText: _angular_core.Signal<string>;
134
+ /**
135
+ * Keys the untracked cascade reads above on the view and busy phase, read
136
+ * straight from the signals the template polls (so a phase that returns to an
137
+ * earlier value still re-reads). The whole card can be a live region, so a
138
+ * language switch must not re-render its text; the next view or busy change
139
+ * speaks the new language. A bound input stays tracked.
140
+ */
141
+ private trackPhase;
122
142
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStatCard, never>;
123
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStatCard, "cngx-stat-card", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; "loadingTreatment": { "alias": "loadingTreatment"; "required": false; "isSignal": true; }; "busyLabel": { "alias": "busyLabel"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "errorDescription": { "alias": "errorDescription"; "required": false; "isSignal": true; }; "staleText": { "alias": "staleText"; "required": false; "isSignal": true; }; "live": { "alias": "live"; "required": false; "isSignal": true; }; }, {}, never, ["[cngxStatLabel]", "[cngxStatValue]", "[cngxStatDelta]", "[cngxStatCaption]", "[cngxStatCardViz]", "[cngxStatCardFooter]"], true, [{ directive: typeof _cngx_common_data.CngxStatCoordinator; inputs: {}; outputs: {}; }]>;
143
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStatCard, "cngx-stat-card", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; "loadingTreatment": { "alias": "loadingTreatment"; "required": false; "isSignal": true; }; "busyLabel": { "alias": "busyLabel"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "errorDescription": { "alias": "errorDescription"; "required": false; "isSignal": true; }; "staleText": { "alias": "staleText"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "live": { "alias": "live"; "required": false; "isSignal": true; }; }, {}, never, ["[cngxStatLabel]", "[cngxStatValue]", "[cngxStatDelta]", "[cngxStatCaption]", "[cngxStatCardViz]", "[cngxStatCardFooter]"], true, [{ directive: typeof _cngx_common_data.CngxStatCoordinator; inputs: {}; outputs: {}; }]>;
124
144
  }
125
145
 
126
146
  /**
@@ -155,6 +175,61 @@ declare class CngxStatCardFooter {
155
175
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxStatCardFooter, "[cngxStatCardFooter]", never, {}, {}, never, never, true, never>;
156
176
  }
157
177
 
178
+ /**
179
+ * The stat-card section of a {@link CngxLanguagePack}: the state copy of
180
+ * `CngxStatCard`. It feeds the `ariaLabels` of `CNGX_STAT_CARD_CONFIG`; a key
181
+ * set through `withStatCardAriaLabels` or a bound copy input still wins.
182
+ *
183
+ * @category ui/stat-card/i18n
184
+ * @since 0.1.0
185
+ * @relatedTo CNGX_STAT_CARD_CONFIG, withStatCardAriaLabels
186
+ */
187
+ interface CngxStatCardLanguageSection {
188
+ /** Accessible name announced while the tile is loading. */
189
+ readonly busy: string;
190
+ /** Headline of the error state shown when the first load failed. */
191
+ readonly errorFallback: string;
192
+ /** Note shown below stale numbers when a refresh failed. */
193
+ readonly staleFallback: string;
194
+ /** Headline of the empty state shown when a load settled with no data. */
195
+ readonly emptyFallback: string;
196
+ }
197
+ /**
198
+ * The English stat-card section: the single source of the stat card's English
199
+ * copy. The `CNGX_STAT_CARD_CONFIG` labels default to it.
200
+ *
201
+ * @category ui/stat-card/i18n
202
+ * @since 0.1.0
203
+ * @relatedTo CNGX_STAT_CARD_CONFIG
204
+ */
205
+ declare const CNGX_STAT_CARD_LANGUAGE_EN: CngxStatCardLanguageSection;
206
+ declare module '@cngx/core/i18n' {
207
+ interface CngxLanguagePack {
208
+ readonly statCard: CngxStatCardLanguageSection;
209
+ }
210
+ }
211
+
212
+ /**
213
+ * String fallbacks for the stat-card's non-content states: a partial of the
214
+ * `statCard` language section (declared once there; an unset key reads the
215
+ * section, English without a pack) plus `errorDescription`, the supporting
216
+ * detail under the error headline, which has no default and is omitted when
217
+ * unset.
218
+ *
219
+ * @category ui/stat-card
220
+ * @since 0.1.0
221
+ */
222
+ interface CngxStatCardAriaLabels extends Partial<CngxStatCardLanguageSection> {
223
+ /** Supporting detail under the error headline. Omitted when unset. */
224
+ readonly errorDescription?: string;
225
+ }
226
+ /**
227
+ * The resolved stat-card strings: every key of the `statCard` section is set.
228
+ *
229
+ * @category ui/stat-card
230
+ * @since 0.1.0
231
+ */
232
+ type CngxStatCardResolvedAriaLabels = CngxStatCardAriaLabels & CngxStatCardLanguageSection;
158
233
  /**
159
234
  * App-wide cascade for the stat-card's ARIA/message strings and its default
160
235
  * loading treatment.
@@ -163,7 +238,8 @@ declare class CngxStatCardFooter {
163
238
  * 1. Per-instance Input binding (e.g. `[errorText]`, `[loadingTreatment]`).
164
239
  * 2. `provideStatCardConfigAt(...)` in a parent component's `viewProviders`.
165
240
  * 3. `provideStatCardConfig(...)` at the application root.
166
- * 4. Library defaults (English; merged in via `CNGX_STAT_CARD_DEFAULTS`).
241
+ * 4. Library defaults (`CNGX_STAT_CARD_DEFAULTS`; the strings come from the
242
+ * `statCard` section of the language pack).
167
243
  *
168
244
  * Every key is optional - partial overrides deep-merge with the library
169
245
  * defaults, so consumers declare only the keys they want to override.
@@ -174,18 +250,11 @@ declare class CngxStatCardFooter {
174
250
  interface CngxStatCardConfig {
175
251
  /**
176
252
  * String fallbacks for the tile's non-content states. Per-instance
177
- * `[busyLabel]` / `[errorText]` / `[staleText]` bindings still win.
253
+ * `[busyLabel]` / `[errorText]` / `[staleText]` bindings still win. Accepts
254
+ * a `Signal` so the strings follow a runtime language switch; read the
255
+ * resolved bundle through {@link injectStatCardAriaLabels}.
178
256
  */
179
- readonly ariaLabels?: {
180
- /** Accessible name announced while the tile is loading. */
181
- readonly busy?: string;
182
- /** Headline of the error state shown instead of the stat when the first load failed. */
183
- readonly errorFallback?: string;
184
- /** Supporting detail under the error headline. Omitted when unset. */
185
- readonly errorDescription?: string;
186
- /** Note shown below stale numbers when a refresh failed. */
187
- readonly staleFallback?: string;
188
- };
257
+ readonly ariaLabels?: CngxStatCardAriaLabels | Signal<CngxStatCardAriaLabels>;
189
258
  /**
190
259
  * App-wide default loading treatment. Per-instance `[loadingTreatment]`
191
260
  * still wins; this only moves the cascade default. A flat top-level scalar,
@@ -227,7 +296,7 @@ declare const CNGX_STAT_CARD_CONFIG: InjectionToken<CngxStatCardConfig>;
227
296
  */
228
297
  type CngxStatCardConfigFeature = {
229
298
  readonly kind: 'ariaLabels';
230
- readonly payload: NonNullable<CngxStatCardConfig['ariaLabels']>;
299
+ readonly payload: CngxStatCardAriaLabels | Signal<CngxStatCardAriaLabels>;
231
300
  } | {
232
301
  readonly kind: 'loadingTreatment';
233
302
  readonly payload: {
@@ -281,7 +350,10 @@ declare function provideStatCardConfigAt(...features: CngxStatCardConfigFeature[
281
350
  * first-load error message, and the stale-data note. Per-instance
282
351
  * `[busyLabel]` / `[errorText]` / `[staleText]` bindings still win.
283
352
  *
284
- * Library defaults are English; this is the hook a localised app uses.
353
+ * The defaults come from the `statCard` section of the language pack (English
354
+ * without one); this overrides single keys on top of it. Pass a
355
+ * `Signal` to switch the language at runtime; a tile with a live region speaks
356
+ * the new language with its next state change.
285
357
  *
286
358
  * ```ts
287
359
  * provideStatCardConfig(
@@ -292,7 +364,7 @@ declare function provideStatCardConfigAt(...features: CngxStatCardConfigFeature[
292
364
  * @category ui/stat-card
293
365
  * @since 0.1.0
294
366
  */
295
- declare function withStatCardAriaLabels(labels: NonNullable<CngxStatCardConfig['ariaLabels']>): CngxStatCardConfigFeature;
367
+ declare function withStatCardAriaLabels(labels: CngxStatCardAriaLabels | Signal<CngxStatCardAriaLabels>): CngxStatCardConfigFeature;
296
368
  /**
297
369
  * Move the cascade default for what a tile renders while it loads. `'auto'`
298
370
  * (the library default) picks spinner vs skeleton from the latency the tile
@@ -322,6 +394,18 @@ declare function withStatCardLoadingTreatment(treatment: CngxLoadingTreatment):
322
394
  * @since 0.1.0
323
395
  */
324
396
  declare function injectStatCardConfig(): CngxStatCardConfig;
397
+ /**
398
+ * The resolved strings of the stat-card config in scope, every key the config
399
+ * leaves unset (also a key an override sets to `undefined`) filled from the
400
+ * `statCard` section of the active pack, as a Signal that follows a runtime
401
+ * language switch. Runs
402
+ * in injection context; read it inside a `computed()`, a template or a
403
+ * handler, and untracked where it builds live-region text.
404
+ *
405
+ * @category ui/stat-card
406
+ * @since 0.1.0
407
+ */
408
+ declare function injectStatCardAriaLabels(): Signal<CngxStatCardResolvedAriaLabels>;
325
409
 
326
- export { CNGX_STAT_CARD_CONFIG, CngxStatCard, CngxStatCardFooter, CngxStatCardViz, injectStatCardConfig, provideStatCardConfig, provideStatCardConfigAt, withStatCardAriaLabels, withStatCardLoadingTreatment };
327
- export type { CngxStatCardConfig, CngxStatCardConfigFeature };
410
+ export { CNGX_STAT_CARD_CONFIG, CNGX_STAT_CARD_LANGUAGE_EN, CngxStatCard, CngxStatCardFooter, CngxStatCardViz, injectStatCardAriaLabels, injectStatCardConfig, provideStatCardConfig, provideStatCardConfigAt, withStatCardAriaLabels, withStatCardLoadingTreatment };
411
+ export type { CngxStatCardAriaLabels, CngxStatCardConfig, CngxStatCardConfigFeature, CngxStatCardLanguageSection, CngxStatCardResolvedAriaLabels };
@@ -1,5 +1,5 @@
1
1
  import * as _cngx_common_stepper from '@cngx/common/stepper';
2
- import { CngxStepPanelHost, CngxStepperSkin, CngxStepperHeaderNavigation, CngxStepperMobileIndicatorPosition, CngxStepErrorContext, CngxStepperSwipeNav, CngxStepNode, CngxStepLabelContext, CngxStepContentContext, CngxDotStepperDotContext, CngxStepperHost } from '@cngx/common/stepper';
2
+ import { CngxStepPanelHost, CngxStepperSkin, CngxStepperHeaderNavigation, CngxStepperMobileIndicatorPosition, CngxStepperI18n, CngxStepErrorContext, CngxStepperSwipeNav, CngxStepNode, CngxStepLabelContext, CngxStepContentContext, CngxDotStepperDotContext, CngxStepperHost } from '@cngx/common/stepper';
3
3
  import * as _angular_core from '@angular/core';
4
4
  import { Signal, TemplateRef } from '@angular/core';
5
5
  import * as i2 from '@cngx/common/a11y';
@@ -70,7 +70,7 @@ declare class CngxStepper implements CngxStepPanelHost {
70
70
  readonly mobileIndicatorPosition: _angular_core.InputSignal<CngxStepperMobileIndicatorPosition | undefined>;
71
71
  /** Stepper-host contract; exposed so external `<cngx-stepper-count>` / bridge consumers can `[host]="s.presenter"` via `#s="cngxStepper"`. */
72
72
  readonly presenter: _cngx_common_stepper.CngxStepperHost;
73
- protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
73
+ protected readonly i18n: Signal<CngxStepperI18n>;
74
74
  protected readonly config: _cngx_common_stepper.CngxStepperConfig;
75
75
  private readonly hostElement;
76
76
  private readonly injector;
@@ -111,6 +111,7 @@ declare class CngxStepper implements CngxStepPanelHost {
111
111
  */
112
112
  protected readonly isDensityAuto: Signal<boolean>;
113
113
  constructor();
114
+ private readonly fallbackLabels;
114
115
  /** Stepper landmark role-description with config + i18n cascade. */
115
116
  protected readonly stepperRoleDescription: Signal<string>;
116
117
  /** Resolved skin / connectors / mobile-indicator host attrs (Level-2 cascade helper). */
@@ -176,9 +177,7 @@ declare class CngxStepper implements CngxStepPanelHost {
176
177
  * enters the branch at its first reachable step. Level-2 factory.
177
178
  */
178
179
  protected readonly groupNavigation: _cngx_common_stepper.CngxStepperGroupNavigationView;
179
- /**
180
- * `aria-label` cascade: input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`.
181
- */
180
+ /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */
182
181
  protected readonly resolvedAriaLabel: Signal<string | null>;
183
182
  private readonly stepDirectiveById;
184
183
  readonly flatSteps: Signal<readonly CngxStepNode[]>;
@@ -219,14 +218,19 @@ declare class CngxStepper implements CngxStepPanelHost {
219
218
  protected readonly mobileErrorSummary: Signal<string>;
220
219
  /** Commit-in-flight flag - drives the host `aria-busy` binding.*/
221
220
  protected readonly isCommitting: Signal<boolean>;
222
- protected stepHeaderId(node: CngxStepNode): string;
223
- protected stepPanelId(node: CngxStepNode): string;
221
+ protected stepHeaderId: (node: CngxStepNode) => string;
222
+ protected stepPanelId: (node: CngxStepNode) => string;
224
223
  /**
225
224
  * Live-region + per-step + group SR phrase builders (Level-2 factory);
226
225
  * also owns the descriptor-span id scheme and the gated
227
226
  * `aria-describedby` reference the template binds directly.
228
227
  */
229
228
  protected readonly announcement: _cngx_common_stepper.CngxStepperAnnouncementBuilders;
229
+ /**
230
+ * Mode-aware panel naming (Level-2 factory): header-less panels
231
+ * self-name and drop the describedby ref instead of dangling.
232
+ */
233
+ protected readonly panelRefs: _cngx_common_stepper.CngxStepperPanelRefs;
230
234
  protected handleHeaderClick(node: CngxStepNode): void;
231
235
  /**
232
236
  * `true` when the step header at `node` may be navigated to right now:
@@ -274,7 +278,10 @@ declare class CngxStepper implements CngxStepPanelHost {
274
278
  * `completedPercent()` is `computed` from `presenter.activeStepIndex()`
275
279
  * and the count of step nodes in `presenter.flatSteps()`. Optional
276
280
  * `[showStepCount]` adds a `Step N of M` caption sourced from
277
- * `CngxStepperI18n.textStepperFormat`.
281
+ * `CngxStepperI18n.textStepperFormat`. Accname and
282
+ * `aria-roledescription` resolve through the same config + i18n
283
+ * cascades as `<cngx-stepper>`; a step-less flow renders the
284
+ * `CNGX_STEPPER_CONFIG` empty-template cascade instead of the bar.
278
285
  *
279
286
  * @category ui/stepper
280
287
  * @docsKind primary
@@ -282,6 +289,7 @@ declare class CngxStepper implements CngxStepPanelHost {
282
289
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/progress-bar-stepper.component.ts
283
290
  * @since 0.1.0
284
291
  * @relatedTo CngxStepperPresenter, CngxProgress, CngxDotStepper, CngxTextStepper
292
+ * @slot cngxStepperEmpty Renders when no step is projected at all.
285
293
  * @playground Material theme coverage across variants ./examples/material-theme-coverage/variants-coverage.component.ts
286
294
  * <example-url>http://localhost:4200/#/ui/stepper/progress-bar/onboarding-flow</example-url>
287
295
  */
@@ -291,11 +299,23 @@ declare class CngxProgressBarStepper {
291
299
  /** Render a `Step N of M` caption below the bar. Off by default. */
292
300
  readonly showStepCount: _angular_core.InputSignal<boolean>;
293
301
  protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
294
- protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
302
+ protected readonly i18n: _angular_core.Signal<_cngx_common_stepper.CngxStepperI18n>;
303
+ protected readonly config: _cngx_common_stepper.CngxStepperConfig;
304
+ /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */
305
+ protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
306
+ private readonly fallbackLabels;
307
+ /** Landmark role-description with config + i18n cascade, mirroring `<cngx-stepper>`. */
308
+ protected readonly stepperRoleDescription: _angular_core.Signal<string>;
309
+ private readonly emptySlot;
310
+ /**
311
+ * Empty-state cascade mirroring `<cngx-stepper>`: per-instance
312
+ * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.
313
+ * Gates the whole bar so a step-less flow shows the placeholder
314
+ * instead of a full bar captioned `Step 0 of 0`.
315
+ */
316
+ protected readonly resolvedEmptyTemplate: _angular_core.Signal<TemplateRef<void> | null>;
295
317
  /** Shared per-step/aggregate state derivations - the single error source. */
296
318
  protected readonly stateView: _cngx_common_stepper.CngxStepperStateView;
297
- /** Default error glyph for the error caption. */
298
- protected readonly errorGlyph: "!";
299
319
  /** Total step count (group nodes excluded). */
300
320
  protected readonly totalSteps: _angular_core.Signal<number>;
301
321
  /** 1-based active position used in the caption format. */
@@ -313,14 +333,14 @@ declare class CngxProgressBarStepper {
313
333
  */
314
334
  protected readonly errorText: _angular_core.Signal<string>;
315
335
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxProgressBarStepper, never>;
316
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxProgressBarStepper, "cngx-progress-bar-stepper", ["cngxProgressBarStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "showStepCount": { "alias": "showStepCount"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }]>;
336
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxProgressBarStepper, "cngx-progress-bar-stepper", ["cngxProgressBarStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "showStepCount": { "alias": "showStepCount"; "required": false; "isSignal": true; }; }, {}, ["emptySlot"], never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }]>;
317
337
  }
318
338
 
319
339
  /**
320
340
  * Dot stepper variant. Mobile-first sequential-flow indicator. Renders
321
341
  * one labelled `<span role="img">` per step (a name-permitting role, so
322
342
  * each dot announces "Step N of M: label") inside a
323
- * `<div role="group" aria-roledescription="Step indicator">`. The active
343
+ * `<div role="group" aria-roledescription="step indicator">`. The active
324
344
  * dot carries `aria-current="step"` per the W3C APG step-indicator
325
345
  * pattern (NOT `role="tablist"` / `role="tab"` - those are reserved
326
346
  * for parallel content panels, not sequential flow).
@@ -346,14 +366,17 @@ declare class CngxProgressBarStepper {
346
366
  * @since 0.1.0
347
367
  * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxTextStepper
348
368
  * @slot cngxDotStepperDot Replaces one dot; gets its index and active state.
369
+ * @slot cngxStepperEmpty Renders when no step is projected at all.
349
370
  * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/mobile-carousel</example-url>
350
371
  */
351
372
  declare class CngxDotStepper {
352
373
  readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
353
374
  readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
354
375
  protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
355
- protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
376
+ protected readonly i18n: Signal<_cngx_common_stepper.CngxStepperI18n>;
356
377
  protected readonly config: _cngx_common_stepper.CngxStepperConfig;
378
+ /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */
379
+ protected readonly resolvedAriaLabel: Signal<string | null>;
357
380
  /** Mobile-swipe routing surface composed via hostDirectives. */
358
381
  protected readonly swipeNav: CngxStepperSwipeNav;
359
382
  /** Document writing direction - flips the inline next/previous arrows under `rtl` (APG). */
@@ -362,8 +385,6 @@ declare class CngxDotStepper {
362
385
  protected readonly activeIndex: Signal<number>;
363
386
  /** Shared per-step/aggregate state derivations - the single error source. */
364
387
  protected readonly stateView: _cngx_common_stepper.CngxStepperStateView;
365
- /** Default error glyph for the aggregate error line. */
366
- protected readonly errorGlyph: "!";
367
388
  /**
368
389
  * Aggregate error line. The dot row only colours the errored dot, so
369
390
  * the real reason (the `[error]` string / aggregator label) needs a
@@ -372,6 +393,14 @@ declare class CngxDotStepper {
372
393
  */
373
394
  protected readonly errorText: Signal<string>;
374
395
  private readonly dotSlot;
396
+ private readonly emptySlot;
397
+ /**
398
+ * Empty-state cascade mirroring `<cngx-stepper>`: per-instance
399
+ * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.
400
+ * Gates the dot row so a step-less flow shows the placeholder
401
+ * instead of an empty group.
402
+ */
403
+ protected readonly resolvedEmptyTemplate: Signal<TemplateRef<void> | null>;
375
404
  /**
376
405
  * Resolved dot-body template cascade: per-instance `*cngxDotStepperDot`
377
406
  * directive > `CNGX_STEPPER_CONFIG.templates.dotStepperDot` > `null`
@@ -392,17 +421,19 @@ declare class CngxDotStepper {
392
421
  protected dotContextFor(node: CngxStepNode, index: number): CngxDotStepperDotContext;
393
422
  protected handleKeyDown(event: KeyboardEvent): void;
394
423
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDotStepper, never>;
395
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxDotStepper, "cngx-dot-stepper", ["cngxDotStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; }, {}, ["dotSlot"], never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }, { directive: typeof _cngx_common_stepper.CngxStepperSwipeNav; inputs: { "mobileSwipe": "mobileSwipe"; }; outputs: {}; }]>;
424
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxDotStepper, "cngx-dot-stepper", ["cngxDotStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; }, {}, ["dotSlot", "emptySlot"], never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }, { directive: typeof _cngx_common_stepper.CngxStepperSwipeNav; inputs: { "mobileSwipe": "mobileSwipe"; }; outputs: {}; }]>;
396
425
  }
397
426
 
398
427
  /**
399
- * Text stepper variant. Smallest possible stepper: a single
400
- * `<span aria-live="polite">` driven by the presenter. Renders
401
- * `Step N of M` by default (sourced from
428
+ * Text stepper variant. Smallest possible stepper: an always-mounted
429
+ * `<span aria-live="polite">` driven by the presenter (empty while no
430
+ * step is projected, so a live load never announces `Step 0 of 0`).
431
+ * Renders `Step N of M` by default (sourced from
402
432
  * `CngxStepperI18n.textStepperFormat`); optional `[showCurrentLabel]`
403
- * appends the active step's label next to the count. Material consumers
404
- * inherit surrounding text styling via CSS inheritance, no theme bridge
405
- * required.
433
+ * appends the active step's label next to the count. A step-less flow
434
+ * renders the `CNGX_STEPPER_CONFIG` empty-template cascade instead.
435
+ * Material consumers inherit surrounding text styling via CSS
436
+ * inheritance, no theme bridge required.
406
437
  *
407
438
  * @category ui/stepper
408
439
  * @docsKind primary
@@ -410,18 +441,26 @@ declare class CngxDotStepper {
410
441
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/text-stepper.component.ts
411
442
  * @since 0.1.0
412
443
  * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxDotStepper
444
+ * @slot cngxStepperEmpty Renders when no step is projected at all.
413
445
  * <example-url>http://localhost:4200/#/ui/stepper/text-stepper/inline-progress</example-url>
414
446
  */
415
447
  declare class CngxTextStepper {
416
448
  /** Append the active step's label to the count text. Off by default. */
417
449
  readonly showCurrentLabel: _angular_core.InputSignal<boolean>;
418
450
  protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
419
- protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
451
+ protected readonly i18n: Signal<_cngx_common_stepper.CngxStepperI18n>;
452
+ protected readonly config: _cngx_common_stepper.CngxStepperConfig;
453
+ private readonly emptySlot;
454
+ /**
455
+ * Empty-state cascade mirroring `<cngx-stepper>`: per-instance
456
+ * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.
457
+ * Rendered next to the (empty) live span so a step-less flow shows
458
+ * the placeholder instead of a bare `Step 0 of 0` count.
459
+ */
460
+ protected readonly resolvedEmptyTemplate: Signal<TemplateRef<void> | null>;
420
461
  protected readonly stepNodes: Signal<readonly CngxStepNode[]>;
421
462
  /** Shared per-step/aggregate state derivations - the single error source. */
422
463
  protected readonly stateView: _cngx_common_stepper.CngxStepperStateView;
423
- /** Default error glyph for the error sub-line. */
424
- protected readonly errorGlyph: "!";
425
464
  protected readonly totalSteps: Signal<number>;
426
465
  protected readonly currentStep: Signal<number>;
427
466
  protected readonly stepText: Signal<string>;
@@ -433,7 +472,7 @@ declare class CngxTextStepper {
433
472
  */
434
473
  protected readonly errorText: Signal<string>;
435
474
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTextStepper, never>;
436
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxTextStepper, "cngx-text-stepper", ["cngxTextStepper"], { "showCurrentLabel": { "alias": "showCurrentLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }]>;
475
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxTextStepper, "cngx-text-stepper", ["cngxTextStepper"], { "showCurrentLabel": { "alias": "showCurrentLabel"; "required": false; "isSignal": true; }; }, {}, ["emptySlot"], never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }]>;
437
476
  }
438
477
 
439
478
  /**
@@ -97,7 +97,7 @@ declare class CngxTabGroup implements CngxTabPanelHost {
97
97
  */
98
98
  readonly addable: _angular_core.InputSignal<boolean | undefined>;
99
99
  protected readonly presenter: _cngx_common_tabs.CngxTabGroupHost;
100
- protected readonly i18n: _cngx_common_tabs.CngxTabsI18n;
100
+ protected readonly i18n: Signal<_cngx_common_tabs.CngxTabsI18n>;
101
101
  protected readonly config: _cngx_common_tabs.CngxTabsConfig;
102
102
  /** Default-glyph table for the template's fallback spans. */
103
103
  protected readonly glyphs: {
@@ -373,7 +373,7 @@ declare class CngxTabNav {
373
373
  */
374
374
  declare class CngxTabOverflow {
375
375
  protected readonly panelHost: CngxTabPanelHost;
376
- protected readonly i18n: _cngx_common_tabs.CngxTabsI18n;
376
+ protected readonly i18n: _angular_core.Signal<_cngx_common_tabs.CngxTabsI18n>;
377
377
  protected readonly popover: _angular_core.Signal<CngxPopover>;
378
378
  private readonly adRef;
379
379
  private readonly hostElement;