@cngx/ui 0.1.0-rc.0 → 0.1.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as _cngx_common_stepper from '@cngx/common/stepper';
2
- import { CngxStepPanelHost, CngxStepperSkin, CngxStepperMobileIndicatorPosition, CngxStepperSwipeNav, CngxStepNode, CngxStepLabelContext, CngxStepContentContext, CngxDotStepperDotContext, CngxStepperHost } from '@cngx/common/stepper';
2
+ import { CngxStepPanelHost, CngxStepperSkin, CngxStepperHeaderNavigation, CngxStepperMobileIndicatorPosition, 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';
@@ -17,6 +17,7 @@ import * as i2 from '@cngx/common/a11y';
17
17
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/stepper.component.ts
18
18
  * @since 0.1.0
19
19
  * @relatedTo CngxStepperPresenter, CngxStep, CngxRovingTabindex, CngxFocusRestore, CngxLiveRegion
20
+ * @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts
20
21
  * <example-url>http://localhost:4200/#/ui/stepper/stepper-horizontal/three-step-wizard</example-url>
21
22
  * <example-url>http://localhost:4200/#/ui/stepper/stepper-vertical/vertical-sidebar-layout</example-url>
22
23
  * <example-url>http://localhost:4200/#/ui/stepper/stepper-linear/linear-gating-with-completion-checkboxes</example-url>
@@ -34,6 +35,9 @@ import * as i2 from '@cngx/common/a11y';
34
35
  * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/path-chevron-vertical</example-url>
35
36
  * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/pill-segment-vertical</example-url>
36
37
  * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/chips-vertical</example-url>
38
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-density/flat-steps-auto-density</example-url>
39
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-density/density-across-skins</example-url>
40
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-density/distance-weighted-collapse</example-url>
37
41
  */
38
42
  declare class CngxStepper implements CngxStepPanelHost {
39
43
  readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
@@ -42,6 +46,13 @@ declare class CngxStepper implements CngxStepPanelHost {
42
46
  readonly skin: _angular_core.InputSignal<CngxStepperSkin | undefined>;
43
47
  /** Opt the classic skin into the connector-rail presentation. Off by default, classic-scoped. */
44
48
  readonly connectors: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
49
+ /**
50
+ * Per-instance header-navigation policy. `'none'` renders inert label
51
+ * headers (footer-only navigation); `'visited'` keeps them as
52
+ * focusable buttons gated by `linear`. Cascade: Input ?? config ??
53
+ * `'visited'`.
54
+ */
55
+ readonly headerNavigation: _angular_core.InputSignal<CngxStepperHeaderNavigation | undefined>;
45
56
  /**
46
57
  * Opt-in `Step N of M` caption under the mobile `'dots'` row. In
47
58
  * the `'text'` collapse branch the count IS the indicator and is
@@ -61,6 +72,7 @@ declare class CngxStepper implements CngxStepPanelHost {
61
72
  private readonly badgeSlot;
62
73
  private readonly busySpinnerSlot;
63
74
  private readonly rejectionSlot;
75
+ private readonly errorSlot;
64
76
  private readonly groupHeaderSlot;
65
77
  private readonly emptySlot;
66
78
  /** Default-template glyph source - read by `#defaultBadge` / `#defaultRejection` outlets. */
@@ -69,24 +81,95 @@ declare class CngxStepper implements CngxStepPanelHost {
69
81
  readonly rejectionIcon: "!";
70
82
  };
71
83
  /**
72
- * 6-slot template cascade (indicator/badge/busySpinner/rejection/
84
+ * Template cascade (indicator/badge/busySpinner/rejection/stepError/
73
85
  * groupHeader/empty). Resolution: per-instance slot directive →
74
86
  * `CNGX_STEPPER_CONFIG.templates.<key>` → `null` (built-in default).
75
87
  */
76
88
  protected readonly templates: _cngx_common_stepper.CngxStepperTemplateBindings;
77
89
  protected readonly displayMode: Signal<"classic" | "text" | "dots">;
90
+ /**
91
+ * Space-driven density rung for the classic strip, measured off the
92
+ * host element's own width via {@link createStripDensity}. `'full'`
93
+ * under the `'comfortable'` default. Drives `[data-density]` (the CSS
94
+ * label-degradation ladder) and the auto-vertical flip below.
95
+ */
96
+ protected readonly stripDensity: Signal<_cngx_common_stepper.CngxStripDensity>;
97
+ /**
98
+ * `true` when `density: 'auto'` is active. Drives `[data-density-auto]`,
99
+ * which makes the strip absorb a too-narrow container by shrinking +
100
+ * ellipsis-truncating labels in flow rather than growing a horizontal
101
+ * scrollbar - so no rung ever overflows, independent of how the px
102
+ * thresholds resolve.
103
+ */
104
+ protected readonly isDensityAuto: Signal<boolean>;
78
105
  constructor();
79
106
  /** Stepper landmark role-description with config + i18n cascade. */
80
107
  protected readonly stepperRoleDescription: Signal<string>;
81
108
  /** Resolved skin / connectors / mobile-indicator host attrs (Level-2 cascade helper). */
82
109
  protected readonly hostAttrs: _cngx_common_stepper.CngxStepperHostAttrs;
110
+ /**
111
+ * Resolved header-navigation policy. Cascade mirrors `skin` /
112
+ * `connectors`: per-instance Input ?? config ?? `'visited'`.
113
+ */
114
+ protected readonly resolvedHeaderNavigation: Signal<CngxStepperHeaderNavigation>;
115
+ /**
116
+ * Real error reason for a step, or `null`. A reason is the direct
117
+ * `[error]` string or the first `errorAggregator` label.
118
+ */
119
+ private stepErrorMessageOf;
120
+ /**
121
+ * Errored steps that carry a real message, rendered as a row BELOW the
122
+ * strip (full width, wraps) rather than inline in a step - a free-text
123
+ * message inside a strip item widens the shrink-to-fit step and tears
124
+ * the row. Empty when no step has a real reason.
125
+ */
126
+ protected readonly stepErrorEntries: Signal<readonly {
127
+ id: string;
128
+ label: string;
129
+ message: string;
130
+ context: CngxStepErrorContext;
131
+ }[]>;
83
132
  /** Mobile-swipe navigation host directive (Level-2 composition). */
84
133
  protected readonly swipeNav: CngxStepperSwipeNav;
85
134
  protected statusLabelFor: (node: CngxStepNode) => string;
135
+ /** Mobile-dot `data-state`: unified error (rejection + aggregator) over the raw status. */
136
+ protected mobileDotState(node: CngxStepNode): string;
137
+ /** Mobile-dot `aria-label`, appending the errored status when the dot has an error. */
138
+ protected mobileDotAriaLabel(node: CngxStepNode, index: number): string;
86
139
  protected readonly groupRoleDescription: Signal<string>;
140
+ /**
141
+ * `true` when a rendered strip group header is folded under the
142
+ * focus-driven policy: `groupCollapse === 'expand-active'`, the group
143
+ * has children, and it does not hold the active step. Drives the
144
+ * `--collapsed` visual de-emphasis. Reads `activeGroupId` reactively,
145
+ * never a one-shot write.
146
+ *
147
+ * The fold is a density optimisation, not a disclosure widget:
148
+ * collapse is focus-driven (no toggle control), so the header carries
149
+ * no `aria-expanded` - an unsupported pairing on `role="group"`
150
+ * (ARIA 1.2) that would also imply a false disclosure affordance.
151
+ * A collapsed header does offer a pointer shortcut into the group (see
152
+ * {@link handleGroupHeaderClick}), but that selects the group's first
153
+ * step rather than expanding it in place, so it stays navigation, not
154
+ * disclosure. Keyboard users reach the same steps via the documented
155
+ * arrow-key contract, which already steps into a collapsed group.
156
+ */
157
+ protected isGroupCollapsed(node: CngxStepNode): boolean;
158
+ /**
159
+ * Collapsed-group summary view (`groupCollapseSummary`). Level-2 factory
160
+ * keeps the count/progress/status derivation out of the organism; the
161
+ * template reads `groupSummary.text(node)` / `.showStatus(node)` /
162
+ * `.srText(node)` on collapsed group headers.
163
+ */
164
+ protected readonly groupSummary: _cngx_common_stepper.CngxStepperGroupSummaryView;
165
+ /**
166
+ * Collapsed-group pointer-navigation view. `isNavigable` drives the
167
+ * `--navigable` cursor cue; `select` is the header click handler that
168
+ * enters the branch at its first reachable step. Level-2 factory.
169
+ */
170
+ protected readonly groupNavigation: _cngx_common_stepper.CngxStepperGroupNavigationView;
87
171
  /**
88
172
  * `aria-label` cascade: input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`.
89
- * Pillar 2.
90
173
  */
91
174
  protected readonly resolvedAriaLabel: Signal<string | null>;
92
175
  private readonly stepDirectiveById;
@@ -95,13 +178,38 @@ declare class CngxStepper implements CngxStepPanelHost {
95
178
  readonly activeStepId: Signal<string | null>;
96
179
  protected readonly stepsOnly: Signal<readonly CngxStepNode[]>;
97
180
  /**
98
- * Position in the step-only flat projection. Group nodes carry `-1`;
99
- * callers must guard on `kind === 'step'`.
181
+ * Strip projection honouring the focus-driven group-collapse policy.
182
+ * Drives the classic strip `@for`; collapsed groups contribute their
183
+ * header node alone. Sourced from the presenter, never re-derived here
184
+ * (host-token contract). Panels still render every step via
185
+ * {@link stepsOnly}, so collapsed steps keep their panel ids in the DOM.
100
186
  */
101
- protected stepIndexOf(node: CngxStepNode): number;
187
+ protected readonly visibleStripNodes: Signal<readonly CngxStepNode[]>;
188
+ /**
189
+ * Distance of a step from the active one, published per-step as
190
+ * `--cngx-step-distance` under `density: 'auto'`. Drives the
191
+ * distance-weighted label budget so the step furthest from the active
192
+ * one collapses first. `flatIndex` is `-1` for group nodes, but only
193
+ * step nodes carry the binding. Pure derived data - no layout read.
194
+ */
195
+ protected stepDistanceOf(node: CngxStepNode): number;
102
196
  /** Per-step predicates + slot-context builders (Level-2 factory). */
103
197
  protected readonly slotContext: _cngx_common_stepper.CngxStepperSlotContextBuilders;
104
- /** Commit-in-flight flag - drives the host `aria-busy` binding. Pillar 2. */
198
+ /**
199
+ * Shared state view - feeds the mobile-collapse `text` / `dots` branches,
200
+ * which otherwise rendered only `Step N of M` (text) or `node.state()`
201
+ * (dots) and dropped the per-step error the desktop branch shows.
202
+ */
203
+ protected readonly stateView: _cngx_common_stepper.CngxStepperStateView;
204
+ /**
205
+ * Aggregate error phrase for the mobile-collapse text branch. Feeds the
206
+ * real reason (the `[error]` string / aggregator label) through the
207
+ * resolver so the collapsed view shows "Card declined", not the generic
208
+ * "errored" status word - the strip's per-step row is not on screen in
209
+ * collapsed mode, so this line is the only error surface.
210
+ */
211
+ protected readonly mobileErrorSummary: Signal<string>;
212
+ /** Commit-in-flight flag - drives the host `aria-busy` binding.*/
105
213
  protected readonly isCommitting: Signal<boolean>;
106
214
  protected stepHeaderId(node: CngxStepNode): string;
107
215
  protected stepPanelId(node: CngxStepNode): string;
@@ -109,6 +217,28 @@ declare class CngxStepper implements CngxStepPanelHost {
109
217
  /** Live-region + per-step + group SR phrase builders (Level-2 factory). */
110
218
  protected readonly announcement: _cngx_common_stepper.CngxStepperAnnouncementBuilders;
111
219
  protected handleHeaderClick(node: CngxStepNode): void;
220
+ /**
221
+ * `true` when the step header at `node` may be navigated to right now:
222
+ * structurally reachable (`canNavigateTo` - not disabled, not
223
+ * linear-blocked) AND not while a commit is in flight (`busy()`). The
224
+ * busy gate mirrors the footer nav atoms, which disable on
225
+ * `!canGo* || busy()` - so the strip and the footer lock together
226
+ * during an async transition instead of letting a header click
227
+ * supersede the pending commit. Reads the host contract, never the
228
+ * presenter's private linear-block check.
229
+ */
230
+ protected isHeaderReachable(node: CngxStepNode): boolean;
231
+ /**
232
+ * `'true'` on a header that cannot be navigated to, `null` otherwise.
233
+ * Folds two channels into one binding: a `disabled` step and a
234
+ * linear-unreachable step both read as `aria-disabled`, so the gate is
235
+ * announced rather than silently ignored. The header stays focusable
236
+ * per the ARIA composite-widget disabled-focusable rule. In
237
+ * `'visited'` + `linear=false` this is byte-identical to the
238
+ * prior `node.disabled()`-only binding, since `canNavigateTo` returns
239
+ * `true` for every enabled step when linear is off.
240
+ */
241
+ protected headerAriaDisabled(node: CngxStepNode): 'true' | null;
112
242
  /** Strip-scoped arrow-key handler. See {@link createStepperStripKeyboardNav}. */
113
243
  protected readonly handleStripKeyDown: (event: KeyboardEvent) => void;
114
244
  /**
@@ -120,7 +250,7 @@ declare class CngxStepper implements CngxStepPanelHost {
120
250
  labelTemplateFor(id: string): TemplateRef<CngxStepLabelContext> | null;
121
251
  contentTemplateFor(id: string): TemplateRef<CngxStepContentContext> | null;
122
252
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStepper, never>;
123
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStepper, "cngx-stepper", ["cngxStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "skin": { "alias": "skin"; "required": false; "isSignal": true; }; "connectors": { "alias": "connectors"; "required": false; "isSignal": true; }; "showStepCount": { "alias": "showStepCount"; "required": false; "isSignal": true; }; "mobileIndicatorPosition": { "alias": "mobileIndicatorPosition"; "required": false; "isSignal": true; }; }, {}, ["stepDirectives", "indicatorSlot", "badgeSlot", "busySpinnerSlot", "rejectionSlot", "groupHeaderSlot", "emptySlot"], ["cngx-stepper-footer, [cngxStepperFooter]"], true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; "orientation": "orientation"; "commitAction": "commitAction"; "commitMode": "commitMode"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }, { directive: typeof i2.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }, { directive: typeof _cngx_common_stepper.CngxStepperSwipeNav; inputs: { "mobileSwipe": "mobileSwipe"; }; outputs: {}; }, { directive: typeof i2.CngxFocusRestore; inputs: {}; outputs: {}; }]>;
253
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStepper, "cngx-stepper", ["cngxStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "skin": { "alias": "skin"; "required": false; "isSignal": true; }; "connectors": { "alias": "connectors"; "required": false; "isSignal": true; }; "headerNavigation": { "alias": "headerNavigation"; "required": false; "isSignal": true; }; "showStepCount": { "alias": "showStepCount"; "required": false; "isSignal": true; }; "mobileIndicatorPosition": { "alias": "mobileIndicatorPosition"; "required": false; "isSignal": true; }; }, {}, ["stepDirectives", "indicatorSlot", "badgeSlot", "busySpinnerSlot", "rejectionSlot", "errorSlot", "groupHeaderSlot", "emptySlot"], ["cngx-stepper-footer, [cngxStepperFooter]"], true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; "orientation": "orientation"; "commitAction": "commitAction"; "commitMode": "commitMode"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }, { directive: typeof i2.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }, { directive: typeof _cngx_common_stepper.CngxStepperSwipeNav; inputs: { "mobileSwipe": "mobileSwipe"; }; outputs: {}; }, { directive: typeof i2.CngxFocusRestore; inputs: {}; outputs: {}; }]>;
124
254
  }
125
255
 
126
256
  /**
@@ -141,6 +271,7 @@ declare class CngxStepper implements CngxStepPanelHost {
141
271
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/progress-bar-stepper.component.ts
142
272
  * @since 0.1.0
143
273
  * @relatedTo CngxStepperPresenter, CngxProgress, CngxDotStepper, CngxTextStepper
274
+ * @playground Material theme coverage across variants ./examples/material-theme-coverage/variants-coverage.component.ts
144
275
  * <example-url>http://localhost:4200/#/ui/stepper/progress-bar/onboarding-flow</example-url>
145
276
  */
146
277
  declare class CngxProgressBarStepper {
@@ -150,6 +281,10 @@ declare class CngxProgressBarStepper {
150
281
  readonly showStepCount: _angular_core.InputSignal<boolean>;
151
282
  protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
152
283
  protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
284
+ /** Shared per-step/aggregate state derivations - the single error source. */
285
+ protected readonly stateView: _cngx_common_stepper.CngxStepperStateView;
286
+ /** Default error glyph for the error caption. */
287
+ protected readonly errorGlyph: "!";
153
288
  /** Total step count (group nodes excluded). */
154
289
  protected readonly totalSteps: _angular_core.Signal<number>;
155
290
  /** 1-based active position used in the caption format. */
@@ -160,6 +295,12 @@ declare class CngxProgressBarStepper {
160
295
  */
161
296
  protected readonly completedPercent: _angular_core.Signal<number>;
162
297
  protected readonly captionText: _angular_core.Signal<string>;
298
+ /**
299
+ * Aggregate error caption. A single errored step names itself
300
+ * (`"Payment: Errored"`), several collapse to the i18n count phrase.
301
+ * Read only when `stateView.hasAnyError()` gates the template.
302
+ */
303
+ protected readonly errorText: _angular_core.Signal<string>;
163
304
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxProgressBarStepper, never>;
164
305
  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"; }; }]>;
165
306
  }
@@ -194,7 +335,6 @@ declare class CngxProgressBarStepper {
194
335
  * @since 0.1.0
195
336
  * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxTextStepper
196
337
  * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/mobile-carousel</example-url>
197
- * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/icon-dots-via-code-cngxdotstepperdot-code</example-url>
198
338
  */
199
339
  declare class CngxDotStepper {
200
340
  readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
@@ -206,16 +346,33 @@ declare class CngxDotStepper {
206
346
  protected readonly swipeNav: CngxStepperSwipeNav;
207
347
  protected readonly stepNodes: Signal<readonly CngxStepNode[]>;
208
348
  protected readonly activeIndex: Signal<number>;
349
+ /** Shared per-step/aggregate state derivations - the single error source. */
350
+ protected readonly stateView: _cngx_common_stepper.CngxStepperStateView;
351
+ /** Default error glyph for the aggregate error line. */
352
+ protected readonly errorGlyph: "!";
353
+ /**
354
+ * Aggregate error line. The dot row only colours the errored dot, so
355
+ * the real reason (the `[error]` string / aggregator label) needs a
356
+ * text surface; this is it. Falls back to the count phrase for
357
+ * multiple errors.
358
+ */
359
+ protected readonly errorText: Signal<string>;
209
360
  private readonly dotSlot;
210
361
  /**
211
362
  * Resolved dot-body template cascade: per-instance `*cngxDotStepperDot`
212
363
  * directive > `CNGX_STEPPER_CONFIG.templates.dotStepperDot` > `null`
213
- * (built-in empty body). Pillar 1 — resolution is a `computed`, not
364
+ * (built-in empty body). Pillar 1 - resolution is a `computed`, not
214
365
  * manual sync.
215
366
  */
216
367
  protected readonly resolvedDotTemplate: Signal<TemplateRef<CngxDotStepperDotContext> | null>;
217
368
  protected isActive(node: CngxStepNode, index: number): boolean;
218
369
  protected isCompleted(index: number): boolean;
370
+ /**
371
+ * Resolved `data-state` for the dot: `'error'` whenever the unified error
372
+ * view fires (covers commit rejection and the error aggregator, not just a
373
+ * literal `state === 'error'`), otherwise the raw step status.
374
+ */
375
+ protected dotState(node: CngxStepNode): string;
219
376
  protected ariaLabelFor(node: CngxStepNode, index: number): string;
220
377
  /** Build the slot context for `*cngxDotStepperDot`. */
221
378
  protected dotContextFor(node: CngxStepNode, index: number): CngxDotStepperDotContext;
@@ -247,28 +404,40 @@ declare class CngxTextStepper {
247
404
  protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
248
405
  protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
249
406
  protected readonly stepNodes: Signal<readonly CngxStepNode[]>;
407
+ /** Shared per-step/aggregate state derivations - the single error source. */
408
+ protected readonly stateView: _cngx_common_stepper.CngxStepperStateView;
409
+ /** Default error glyph for the error sub-line. */
410
+ protected readonly errorGlyph: "!";
250
411
  protected readonly totalSteps: Signal<number>;
251
412
  protected readonly currentStep: Signal<number>;
252
413
  protected readonly stepText: Signal<string>;
414
+ /**
415
+ * Aggregate error sub-line text. A single errored step names itself
416
+ * (`"Payment: Errored"`), several collapse to the i18n count phrase
417
+ * (`"2 errors"`). Empty when no step errored - the template gates on
418
+ * `stateView.hasAnyError()`, so this is only read when non-empty.
419
+ */
420
+ protected readonly errorText: Signal<string>;
253
421
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTextStepper, never>;
254
422
  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"; }; }]>;
255
423
  }
256
424
 
257
425
  /**
258
- * Navigation action-bar molecule for the stepper family. Lays out three
259
- * regions - start (Back), center (progress hint), end (Continue / Finish)
260
- * - and wires the {@link CNGX_STEPPER_HOST} for any nav atoms a consumer
261
- * drops inside.
426
+ * Navigation action-bar molecule for the stepper family. \
427
+ * Lays out three regions - **start** (Back), **center** (progress hint), **end** (Continue / Finish). \
428
+ * Wires the {@link CNGX_STEPPER_HOST} for any nav atoms a consumer drops inside.
262
429
  *
263
- * Resolves its host like `CngxStepperCount`: an explicit `[host]` input
264
- * for placement outside the stepper tree, falling back to the ambient
430
+ * **Resolves its host like `CngxStepperCount`:** \
431
+ * An explicit `[host]` input for placement outside the stepper tree, falling back to the ambient
265
432
  * host injected from an ancestor `<cngx-stepper>` / `<cngx-mat-stepper>`
266
433
  * (`skipSelf`, so the footer reads the real presenter rather than its own
267
- * re-provided proxy). It then re-provides `CNGX_STEPPER_HOST` as a live
434
+ * re-provided proxy). \
435
+ * It then re-provides `CNGX_STEPPER_HOST` as a live
268
436
  * {@link createStepperHostProxy} over the resolved host, so child
269
437
  * `[cngxStepperPrevious]` / `[cngxStepperNext]` atoms resolve it
270
438
  * ambiently whether the footer is nested or used standalone with
271
- * `[host]`. `providers` (not `viewProviders`) carries the proxy to the
439
+ * `[host]`. \
440
+ * `providers` (not `viewProviders`) carries the proxy to the
272
441
  * consumer-projected button content. With no host at all, the proxy's
273
442
  * neutral set renders the nav buttons disabled.
274
443
  *