@cngx/common 0.0.1-rc.0 → 0.1.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/a11y/README.md +13 -16
  2. package/card/README.md +2 -21
  3. package/chart/README.md +5 -8
  4. package/data/README.md +45 -47
  5. package/dialog/README.md +12 -15
  6. package/display/README.md +5 -9
  7. package/fesm2022/cngx-common-a11y.mjs +164 -51
  8. package/fesm2022/cngx-common-a11y.mjs.map +1 -1
  9. package/fesm2022/cngx-common-card.mjs +157 -69
  10. package/fesm2022/cngx-common-card.mjs.map +1 -1
  11. package/fesm2022/cngx-common-chart.mjs +389 -92
  12. package/fesm2022/cngx-common-chart.mjs.map +1 -1
  13. package/fesm2022/cngx-common-data.mjs +311 -151
  14. package/fesm2022/cngx-common-data.mjs.map +1 -1
  15. package/fesm2022/cngx-common-dialog.mjs +167 -29
  16. package/fesm2022/cngx-common-dialog.mjs.map +1 -1
  17. package/fesm2022/cngx-common-display.mjs +445 -110
  18. package/fesm2022/cngx-common-display.mjs.map +1 -1
  19. package/fesm2022/cngx-common-interactive.mjs +2059 -435
  20. package/fesm2022/cngx-common-interactive.mjs.map +1 -1
  21. package/fesm2022/cngx-common-layout.mjs +188 -31
  22. package/fesm2022/cngx-common-layout.mjs.map +1 -1
  23. package/fesm2022/cngx-common-popover.mjs +711 -90
  24. package/fesm2022/cngx-common-popover.mjs.map +1 -1
  25. package/fesm2022/cngx-common-stepper.mjs +1479 -73
  26. package/fesm2022/cngx-common-stepper.mjs.map +1 -1
  27. package/fesm2022/cngx-common-tabs.mjs +1144 -85
  28. package/fesm2022/cngx-common-tabs.mjs.map +1 -1
  29. package/fesm2022/cngx-common.mjs +2 -2
  30. package/fesm2022/cngx-common.mjs.map +1 -1
  31. package/interactive/README.md +5 -5
  32. package/layout/README.md +2 -2
  33. package/package.json +7 -6
  34. package/popover/README.md +8 -34
  35. package/stepper/README.md +69 -8
  36. package/tabs/README.md +6 -6
  37. package/theming/components/cngx-async.css +74 -0
  38. package/theming/components/cngx-backdrop.css +73 -0
  39. package/theming/components/cngx-badge.css +340 -0
  40. package/theming/components/cngx-bottom-sheet.css +201 -0
  41. package/theming/components/cngx-button-toggle.css +99 -0
  42. package/theming/components/cngx-dialog.css +358 -0
  43. package/theming/components/cngx-divider.css +145 -0
  44. package/theming/components/cngx-listbox.css +220 -0
  45. package/theming/components/cngx-menu.css +371 -0
  46. package/theming/components/cngx-ripple.css +116 -0
  47. package/theming/components/cngx-tooltip.css +265 -0
  48. package/theming/system-tokens.css +24 -0
  49. package/types/cngx-common-a11y.d.ts +159 -38
  50. package/types/cngx-common-card.d.ts +137 -22
  51. package/types/cngx-common-chart.d.ts +337 -40
  52. package/types/cngx-common-data.d.ts +277 -45
  53. package/types/cngx-common-dialog.d.ts +162 -22
  54. package/types/cngx-common-display.d.ts +422 -78
  55. package/types/cngx-common-interactive.d.ts +1880 -305
  56. package/types/cngx-common-layout.d.ts +191 -28
  57. package/types/cngx-common-popover.d.ts +632 -87
  58. package/types/cngx-common-stepper.d.ts +1360 -45
  59. package/types/cngx-common-tabs.d.ts +1139 -56
  60. package/types/cngx-common.d.ts +1 -1
  61. package/README.md +0 -18
@@ -1,18 +1,23 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Signal, InjectionToken, TemplateRef, EnvironmentProviders, Provider } from '@angular/core';
2
+ import { Signal, InjectionToken, TemplateRef, EnvironmentProviders, Provider, DestroyRef } from '@angular/core';
3
3
  import { CngxAsyncState, StatusTransition } from '@cngx/core/utils';
4
4
  import { Observable } from 'rxjs';
5
- import { CngxErrorAggregatorContract } from '@cngx/common/interactive';
5
+ import * as i1 from '@cngx/common/interactive';
6
+ import { CngxErrorAggregatorContract, SwipeDirection } from '@cngx/common/interactive';
6
7
  import { CngxCommitController } from '@cngx/common/data';
7
8
 
8
9
  /**
9
10
  * Status enum for a single step. Driven by the presenter's commit-controller
10
11
  * lifecycle plus the optional `errorAggregator`.
12
+ *
13
+ * @category common/stepper
11
14
  */
12
15
  type CngxStepStatus = 'idle' | 'pending' | 'success' | 'error' | 'disabled' | 'busy';
13
16
  /**
14
17
  * Step-tree node. Either a terminal `step` (has its own panel) or a
15
18
  * `group` carrying nested children. Discriminated by `kind`.
19
+ *
20
+ * @category common/stepper
16
21
  */
17
22
  interface CngxStepNode {
18
23
  readonly id: string;
@@ -23,6 +28,13 @@ interface CngxStepNode {
23
28
  readonly state: Signal<CngxStepStatus>;
24
29
  /** Optional error aggregator signal for badge / SR phrasing. */
25
30
  readonly errorAggregator?: Signal<CngxErrorAggregatorContract | undefined>;
31
+ /**
32
+ * Message carried by a direct `[error]` string input on the step, or
33
+ * `undefined` when `[error]` is boolean / absent. Pure data carrier
34
+ * read by the `*cngxStepError` slot + the mini-skin aggregate line -
35
+ * not a swap surface.
36
+ */
37
+ readonly errorMessage?: Signal<string | undefined>;
26
38
  /** Direct children for group nodes; empty for step nodes. */
27
39
  readonly children: readonly CngxStepNode[];
28
40
  /** DFS depth (root = 0). */
@@ -45,16 +57,77 @@ interface CngxStepRegistration {
45
57
  readonly disabled: Signal<boolean>;
46
58
  readonly state: Signal<CngxStepStatus>;
47
59
  readonly errorAggregator?: Signal<CngxErrorAggregatorContract | undefined>;
60
+ /**
61
+ * Resolved message from a direct `[error]` string input, or
62
+ * `undefined` for boolean / absent. Pure data carrier (not a swap
63
+ * token); surfaced on {@link CngxStepNode.errorMessage}.
64
+ */
65
+ readonly errorMessage?: Signal<string | undefined>;
48
66
  }
49
67
  /**
50
68
  * Contract atoms see via {@link CNGX_STEPPER_HOST}. Mirrors the
51
- * directive's surface 1:1 — atoms never reach the concrete class.
69
+ * directive's surface 1:1 - atoms never reach the concrete class.
70
+ *
71
+ * @category common/stepper
52
72
  */
53
73
  interface CngxStepperHost {
54
74
  readonly stepTree: Signal<readonly CngxStepNode[]>;
55
75
  readonly flatSteps: Signal<readonly CngxStepNode[]>;
76
+ /**
77
+ * Step-only flat projection (group nodes filtered out).
78
+ * Structural-equal via `flatStepsEqual`; the single source for any
79
+ * step-count / step-position lookup.
80
+ *
81
+ * **Contract:** variant and skin organisms MUST read this signal
82
+ * directly. Local re-derivation (e.g. `flatSteps().filter(...)`
83
+ * inside a variant's `computed`) is rejected at review time -
84
+ * the projection's equality contract is the load-bearing
85
+ * invariant, and a local re-filter breaks the shape-stable
86
+ * short-circuit that downstream consumers rely on. Add lookup
87
+ * helpers as methods on this contract rather than re-deriving.
88
+ *
89
+ * @category common/stepper
90
+ */
91
+ readonly stepsOnly: Signal<readonly CngxStepNode[]>;
56
92
  readonly activeStepIndex: Signal<number>;
57
93
  readonly activeStepId: Signal<string | null>;
94
+ /** Step-only count - the length of {@link stepsOnly}. */
95
+ readonly stepCount: Signal<number>;
96
+ /** `true` when the active step is the first one (no earlier step). */
97
+ readonly isFirstStep: Signal<boolean>;
98
+ /** `true` when the active step is the last one (no later step). */
99
+ readonly isLastStep: Signal<boolean>;
100
+ /**
101
+ * `true` when {@link selectPrevious} would move - i.e. an enabled
102
+ * step precedes the active one. The single gate a Back affordance
103
+ * reads; never re-derive it from {@link stepsOnly} at the call site.
104
+ */
105
+ readonly canGoPrevious: Signal<boolean>;
106
+ /**
107
+ * `true` when {@link selectNext} would move - i.e. an enabled,
108
+ * linear-unblocked step follows the active one. Derived from the same
109
+ * predicates `select()` enforces, so a Next affordance can never
110
+ * drift from the navigation it gates.
111
+ */
112
+ readonly canGoNext: Signal<boolean>;
113
+ /**
114
+ * `true` while a commit is in flight (`commitState.status() ===
115
+ * 'pending'`). Drives the busy-disable on nav affordances. Keyed on
116
+ * the strict `'pending'` status, consistent with the per-step busy
117
+ * gate.
118
+ */
119
+ readonly busy: Signal<boolean>;
120
+ /**
121
+ * Label of the step {@link selectNext} would land on, or `undefined`
122
+ * when none follows. Resolved through the enabled-step traversal so a
123
+ * "Continue to {{ label }}" affordance announces the real target.
124
+ */
125
+ readonly nextStepLabel: Signal<string | undefined>;
126
+ /**
127
+ * Label of the step {@link selectPrevious} would land on, or
128
+ * `undefined` when none precedes.
129
+ */
130
+ readonly previousStepLabel: Signal<string | undefined>;
58
131
  readonly linear: Signal<boolean>;
59
132
  readonly orientation: Signal<'horizontal' | 'vertical'>;
60
133
  readonly commitState: CngxAsyncState<number | undefined>;
@@ -63,7 +136,7 @@ interface CngxStepperHost {
63
136
  * Reactive current/previous pair for the commit-state status. The
64
137
  * organism's `<span cngxLiveRegion>` reads this tracker on every
65
138
  * `pending → success / error` transition. Allocated once per
66
- * presenter — consumers MUST read this rather than calling
139
+ * presenter - consumers MUST read this rather than calling
67
140
  * `createTransitionTracker` locally so the `linkedSignal` is shared.
68
141
  */
69
142
  readonly commitTransition: StatusTransition;
@@ -76,12 +149,20 @@ interface CngxStepperHost {
76
149
  */
77
150
  readonly lastFailedIndex: Signal<number | undefined>;
78
151
  /**
79
- * Origin captured at commit-window open — the safe-harbour the user
152
+ * Origin captured at commit-window open - the safe-harbour the user
80
153
  * is returned to on optimistic rollback. Resolves the origin label
81
154
  * for the `commitRolledBackTo(originLabel)` phrase. Cleared on
82
155
  * success; retained on rejection through the persistence window.
83
156
  */
84
157
  readonly originIndexDuringCommit: Signal<number | undefined>;
158
+ /**
159
+ * `true` when the header at the given step-only index may be
160
+ * navigated to: the step is enabled and not blocked by the `linear`
161
+ * gate. The single reachability predicate a header affordance reads -
162
+ * the organism MUST call this rather than reaching the presenter's
163
+ * private linear-block check. Out-of-range indices return `false`.
164
+ */
165
+ canNavigateTo(index: number): boolean;
85
166
  select(index: number): void;
86
167
  selectNext(): void;
87
168
  selectPrevious(): void;
@@ -99,6 +180,11 @@ interface CngxStepperHost {
99
180
  * DI token carrying the presenter's contract to atoms + organism shells.
100
181
  * Atoms inject `optional: true` and either register here or fall through
101
182
  * {@link CNGX_STEP_GROUP_HOST} when nested in a group.
183
+ *
184
+ * @category common/stepper
185
+ * @wcag AA
186
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/stepper-host.token.ts
187
+ * @since 0.1.0
102
188
  */
103
189
  declare const CNGX_STEPPER_HOST: InjectionToken<CngxStepperHost>;
104
190
 
@@ -107,18 +193,30 @@ declare const CNGX_STEPPER_HOST: InjectionToken<CngxStepperHost>;
107
193
  * and target indices; resolves `true` to advance, `false` to refuse.
108
194
  * The `Observable | Promise | sync` union matches every cngx
109
195
  * commit-action signature.
196
+ *
197
+ * @category common/stepper
198
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/presenter.directive.ts
199
+ * @since 0.1.0
110
200
  */
111
201
  type CngxStepperCommitAction = (fromIndex: number, toIndex: number) => boolean | Promise<boolean> | Observable<boolean>;
112
202
  /**
113
- * Stepper presenter — the brain of every stepper / wizard flow.
203
+ * Stepper presenter - the brain of every stepper / wizard flow.
114
204
  * Holds the active-step model, registry, linear policy, orientation,
115
205
  * and commit-controller lifecycle. Provides {@link CNGX_STEPPER_HOST}
116
206
  * for atom registration and {@link CNGX_STATEFUL} so transition
117
207
  * bridges (`<cngx-toast-on />`, `<cngx-banner-on />`) compose without
118
208
  * explicit `[state]` wiring.
119
209
  *
120
- * Sheriff: common Level 2. Pure directive — zero template, zero CSS.
210
+ * Sheriff: common Level 2. Pure directive - zero template, zero CSS.
121
211
  * Level-4 organisms compose this via `hostDirectives`.
212
+ *
213
+ * @category common/stepper
214
+ * @docsKind primary
215
+ * @wcag AA
216
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/presenter.directive.ts
217
+ * @since 0.1.0
218
+ * @relatedTo CngxStep, CngxStepGroup, CngxStepperRouterSync, CNGX_STEPPER_HOST, CNGX_STEPPER_CONFIG
219
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-commit-action/pessimistic-optimistic-commits-with-bridge-directives</example-url>
122
220
  */
123
221
  declare class CngxStepperPresenter implements CngxStepperHost {
124
222
  private readonly config;
@@ -144,7 +242,7 @@ declare class CngxStepperPresenter implements CngxStepperHost {
144
242
  /**
145
243
  * Reactive current/previous pair for the commit-state status. Skin
146
244
  * sub-components mount a `<span cngxLiveRegion>` reading this
147
- * tracker. Allocated once per presenter — the underlying
245
+ * tracker. Allocated once per presenter - the underlying
148
246
  * `linkedSignal` is shared across all consumers.
149
247
  */
150
248
  readonly commitTransition: StatusTransition;
@@ -158,16 +256,52 @@ declare class CngxStepperPresenter implements CngxStepperHost {
158
256
  readonly stepTree: Signal<readonly CngxStepNode[]>;
159
257
  readonly flatSteps: Signal<readonly CngxStepNode[]>;
160
258
  /**
161
- * Step-only flat projection — terminal nodes in DFS order.
259
+ * Step-only flat projection - terminal nodes in DFS order.
162
260
  * Structural-equal via `flatStepsEqual` so downstream computeds
163
261
  * don't cascade on shape-stable re-emits. Single source for every
164
- * `select*` / `clamp` / `activeStepId` lookup — never re-filter
262
+ * `select*` / `clamp` / `activeStepId` lookup - never re-filter
165
263
  * `flatSteps()`.
166
264
  */
167
- private readonly stepsOnly;
265
+ readonly stepsOnly: Signal<readonly CngxStepNode[]>;
168
266
  private readonly clampedIndex;
169
267
  readonly activeStepId: Signal<string | null>;
170
268
  readonly commitState: CngxAsyncState<number | undefined>;
269
+ /**
270
+ * Next enabled step-only index after the active one, skipping
271
+ * disabled steps. Returns `stepsOnly().length` when no enabled step
272
+ * follows. Single source for `selectNext()` and the `canGoNext`
273
+ * bound - the traversal lives here, never re-walked at the call site.
274
+ */
275
+ private readonly nextEnabledIndex;
276
+ /**
277
+ * Previous enabled step-only index before the active one, skipping
278
+ * disabled steps. Returns `-1` when no enabled step precedes. Single
279
+ * source for `selectPrevious()` and the `canGoPrevious` bound.
280
+ */
281
+ private readonly previousEnabledIndex;
282
+ /** {@inheritDoc CngxStepperHost.stepCount} */
283
+ readonly stepCount: Signal<number>;
284
+ /** {@inheritDoc CngxStepperHost.isFirstStep} */
285
+ readonly isFirstStep: Signal<boolean>;
286
+ /** {@inheritDoc CngxStepperHost.isLastStep} */
287
+ readonly isLastStep: Signal<boolean>;
288
+ /**
289
+ * {@inheritDoc CngxStepperHost.canGoNext}
290
+ *
291
+ * Derives from the same `nextEnabledIndex` + `isLinearBlocked`
292
+ * predicates `select()`/`selectNext()` enforce, so the affordance can
293
+ * never drift from the navigation it gates.
294
+ */
295
+ readonly canGoNext: Signal<boolean>;
296
+ /** {@inheritDoc CngxStepperHost.canGoPrevious} */
297
+ readonly canGoPrevious: Signal<boolean>;
298
+ /** {@inheritDoc CngxStepperHost.busy} */
299
+ readonly busy: Signal<boolean>;
300
+ /** {@inheritDoc CngxStepperHost.nextStepLabel} */
301
+ readonly nextStepLabel: Signal<string | undefined>;
302
+ /** {@inheritDoc CngxStepperHost.previousStepLabel} */
303
+ readonly previousStepLabel: Signal<string | undefined>;
304
+ constructor();
171
305
  private readonly registry;
172
306
  private readonly insertionOrder;
173
307
  register(handle: CngxStepRegistration, parentId?: string | null): void;
@@ -175,6 +309,24 @@ declare class CngxStepperPresenter implements CngxStepperHost {
175
309
  private rebuildTree;
176
310
  /** {@inheritDoc CngxStepperHost.clearLastFailed} */
177
311
  clearLastFailed(): void;
312
+ /**
313
+ * Linear-gate predicate: `true` when linear mode forbids advancing to
314
+ * `target` because an incomplete (non-`success`, non-disabled) step
315
+ * sits between the active index and `target`. The single home for the
316
+ * linear slice check - `select()` and the `canGoNext` bound both
317
+ * consume it so the gate can never drift between navigation and its
318
+ * affordance.
319
+ */
320
+ private isLinearBlocked;
321
+ /**
322
+ * {@inheritDoc CngxStepperHost.canNavigateTo}
323
+ *
324
+ * Wraps the private {@link isLinearBlocked} predicate plus the
325
+ * per-step `disabled` check. The header-reachability contract surface;
326
+ * `isLinearBlocked` stays private so the organism reads this method,
327
+ * never the internal gate.
328
+ */
329
+ canNavigateTo(index: number): boolean;
178
330
  select(index: number): void;
179
331
  selectNext(): void;
180
332
  selectPrevious(): void;
@@ -189,8 +341,10 @@ declare class CngxStepperPresenter implements CngxStepperHost {
189
341
  * {@link CNGX_STEP_GROUP_HOST}. Mirrors the presenter's `register` /
190
342
  * `unregister` so atoms stay agnostic of root vs. nested host.
191
343
  *
192
- * Surface is registration-only — `id` and `aggregatedStatus` are
344
+ * Surface is registration-only - `id` and `aggregatedStatus` are
193
345
  * concrete-class details, not part of the token contract.
346
+ *
347
+ * @category common/stepper
194
348
  */
195
349
  interface CngxStepGroupHost {
196
350
  register(handle: CngxStepRegistration): void;
@@ -199,6 +353,10 @@ interface CngxStepGroupHost {
199
353
  /**
200
354
  * DI token providing a `CngxStepGroup`'s contract to nested `CngxStep` atoms.
201
355
  * Steps inject this `optional: true` and fall back to {@link CNGX_STEPPER_HOST}.
356
+ *
357
+ * @category common/stepper
358
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step-group-host.token.ts
359
+ * @since 0.1.0
202
360
  */
203
361
  declare const CNGX_STEP_GROUP_HOST: InjectionToken<CngxStepGroupHost>;
204
362
 
@@ -210,6 +368,8 @@ declare const CNGX_STEP_GROUP_HOST: InjectionToken<CngxStepGroupHost>;
210
368
  * `active` reflects `presenter.activeStepId`; `busy` mirrors
211
369
  * `presenter.intendedStepIndex` matching this step; `disabled` reads
212
370
  * `node.disabled()`.
371
+ *
372
+ * @category common/stepper
213
373
  */
214
374
  interface CngxStepLabelContext {
215
375
  readonly node: CngxStepNode;
@@ -220,8 +380,10 @@ interface CngxStepLabelContext {
220
380
  }
221
381
  /**
222
382
  * Context delivered to `*cngxStepContent` templates. Mirrors
223
- * {@link CngxStepLabelContext} — content templates need the same
383
+ * {@link CngxStepLabelContext} - content templates need the same
224
384
  * derivations to gate inner controls on `disabled` / `busy`.
385
+ *
386
+ * @category common/stepper
225
387
  */
226
388
  interface CngxStepContentContext {
227
389
  readonly node: CngxStepNode;
@@ -233,8 +395,10 @@ interface CngxStepContentContext {
233
395
  /**
234
396
  * Contract Level-4 organisms (and consumer-authored stepper skins)
235
397
  * consume to render the panel body. Narrower than the presenter's
236
- * full interface — just enough to project label / content templates
398
+ * full interface - just enough to project label / content templates
237
399
  * and react to active-step changes.
400
+ *
401
+ * @category common/stepper
238
402
  */
239
403
  interface CngxStepPanelHost {
240
404
  readonly flatSteps: Signal<readonly CngxStepNode[]>;
@@ -248,6 +412,10 @@ interface CngxStepPanelHost {
248
412
  /**
249
413
  * DI token providing the rendering-surface contract to organism shells
250
414
  * (`<cngx-stepper>`, `<cngx-mat-stepper>`) and consumer-authored skins.
415
+ *
416
+ * @category common/stepper
417
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step-panel-host.token.ts
418
+ * @since 0.1.0
251
419
  */
252
420
  declare const CNGX_STEP_PANEL_HOST: InjectionToken<CngxStepPanelHost>;
253
421
 
@@ -256,12 +424,14 @@ declare const CNGX_STEP_PANEL_HOST: InjectionToken<CngxStepPanelHost>;
256
424
  * a sibling is inserted) on top of the {@link stepTreeEqual} fields.
257
425
  *
258
426
  * Use only on projections where every step carries a real
259
- * DFS-assigned `flatIndex` and `depth` — for `-1` placeholders, use
427
+ * DFS-assigned `flatIndex` and `depth` - for `-1` placeholders, use
260
428
  * {@link stepNodesEqual}.
261
429
  *
262
430
  * @internal Exported from `public-api.ts` so the cngx-stepper and
263
431
  * cngx-mat-stepper organisms share the comparator across the
264
432
  * secondary-entry boundary (Sheriff forbids deep-relative imports).
433
+ *
434
+ * @category common/stepper
265
435
  */
266
436
  declare function flatStepsEqual(a: readonly CngxStepNode[], b: readonly CngxStepNode[]): boolean;
267
437
 
@@ -276,6 +446,13 @@ declare function flatStepsEqual(a: readonly CngxStepNode[], b: readonly CngxStep
276
446
  * <input [disabled]="busy">
277
447
  * </ng-template>
278
448
  * ```
449
+ *
450
+ * @category common/stepper
451
+ * @wcag AA
452
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step-content.directive.ts
453
+ * @since 0.1.0
454
+ * @relatedTo CngxStep, CngxStepLabel
455
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-horizontal/three-step-wizard</example-url>
279
456
  */
280
457
  declare class CngxStepContent {
281
458
  readonly templateRef: TemplateRef<CngxStepContentContext>;
@@ -294,6 +471,13 @@ declare class CngxStepContent {
294
471
  * {{ node.label() }}
295
472
  * </ng-template>
296
473
  * ```
474
+ *
475
+ * @category common/stepper
476
+ * @wcag AA
477
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step-label.directive.ts
478
+ * @since 0.1.0
479
+ * @relatedTo CngxStep, CngxStepContent, CngxStepGroupHeader
480
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-custom-labels/mixing-code-label-code-input-with-code-cngxsteplabel-code-slot</example-url>
297
481
  */
298
482
  declare class CngxStepLabel {
299
483
  readonly templateRef: TemplateRef<CngxStepLabelContext>;
@@ -302,12 +486,20 @@ declare class CngxStepLabel {
302
486
  }
303
487
 
304
488
  /**
305
- * Single-step atom. Registers with the nearest host — either a
489
+ * Single-step atom. Registers with the nearest host - either a
306
490
  * `CngxStepGroup` ({@link CNGX_STEP_GROUP_HOST}) or the root
307
491
  * `CngxStepperPresenter` ({@link CNGX_STEPPER_HOST}).
308
492
  *
309
493
  * `state` is a `linkedSignal` over `[disabled]`, `[completed]`, and
310
494
  * the optional `[errorAggregator]`'s `hasError()`.
495
+ *
496
+ * @category common/stepper
497
+ * @docsKind primary
498
+ * @wcag AA
499
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step.directive.ts
500
+ * @since 0.1.0
501
+ * @relatedTo CngxStepGroup, CngxStepperPresenter, CngxStepLabel, CngxStepContent
502
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-horizontal/three-step-wizard</example-url>
311
503
  */
312
504
  declare class CngxStep {
313
505
  readonly id: i0.InputSignal<string>;
@@ -315,18 +507,34 @@ declare class CngxStep {
315
507
  readonly completed: i0.InputSignal<boolean>;
316
508
  readonly label: i0.InputSignal<string>;
317
509
  readonly errorAggregator: i0.InputSignal<CngxErrorAggregatorContract | undefined>;
510
+ /**
511
+ * Direct error flag for the common "this step is invalid" case - no
512
+ * `errorAggregator` boilerplate required. `true` or a non-empty string
513
+ * drives the error state; a string doubles as the inline message
514
+ * (surfaced via the `*cngxStepError` slot and the mini-skin aggregate
515
+ * line). `false` / `''` clear it. The aggregator stays the rich
516
+ * multi-source forms path; the two channels compose (either errors).
517
+ */
518
+ readonly error: i0.InputSignal<string | boolean>;
519
+ /**
520
+ * Resolved direct-error message: the `[error]` string when non-empty,
521
+ * else `undefined`. Carried onto the registration / node so the error
522
+ * slot + aggregate line can render it. `computed` over the input -
523
+ * never written.
524
+ */
525
+ readonly errorMessage: Signal<string | undefined>;
318
526
  protected readonly labelSlot: Signal<CngxStepLabel | undefined>;
319
527
  protected readonly contentSlot: Signal<CngxStepContent | undefined>;
320
528
  readonly labelTemplate: Signal<CngxStepLabel | undefined>;
321
529
  readonly contentTemplate: Signal<CngxStepContent | undefined>;
322
530
  /**
323
531
  * Per-step status derived from inputs + aggregator. `linkedSignal`
324
- * with structural equal — never written via `effect`.
532
+ * with structural equal - never written via `effect`.
325
533
  */
326
534
  readonly state: Signal<CngxStepStatus>;
327
535
  constructor();
328
536
  static ɵfac: i0.ɵɵFactoryDeclaration<CngxStep, never>;
329
- static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStep, "[cngxStep]", ["cngxStep"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "errorAggregator": { "alias": "errorAggregator"; "required": false; "isSignal": true; }; }, {}, ["labelSlot", "contentSlot"], never, true, never>;
537
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStep, "[cngxStep]", ["cngxStep"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "errorAggregator": { "alias": "errorAggregator"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; }, {}, ["labelSlot", "contentSlot"], never, true, never>;
330
538
  }
331
539
 
332
540
  /**
@@ -337,6 +545,14 @@ declare class CngxStep {
337
545
  * `aggregatedStatus` rolls up child states: `error` if any errored,
338
546
  * `success` if all are success, `pending` if any is pending or busy,
339
547
  * otherwise `idle`.
548
+ *
549
+ * @category common/stepper
550
+ * @docsKind primary
551
+ * @wcag AA
552
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step-group.directive.ts
553
+ * @since 0.1.0
554
+ * @relatedTo CngxStep, CngxStepperPresenter, CngxStepGroupHeader
555
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-hierarchical/group-nested-steps-trailing-root-step</example-url>
340
556
  */
341
557
  declare class CngxStepGroup implements CngxStepGroupHost {
342
558
  readonly id: i0.InputSignal<string>;
@@ -355,15 +571,17 @@ declare class CngxStepGroup implements CngxStepGroupHost {
355
571
  /**
356
572
  * Context passed to the `*cngxStepIndicator` template. Drives the
357
573
  * numbered / checkmark / error glyph inside each step button. The
358
- * `<button>` shell — `aria-current`, `aria-controls`, click handler —
574
+ * `<button>` shell - `aria-current`, `aria-controls`, click handler -
359
575
  * stays library-owned.
360
576
  *
361
577
  * `status` mirrors `node.state()`. `busy` is the presenter-derived
362
- * "this step is the in-flight commit target" flag — independent of
578
+ * "this step is the in-flight commit target" flag - independent of
363
579
  * `status === 'pending'` (which is the aggregate landmark state).
580
+ *
581
+ * @category common/stepper/slots
364
582
  */
365
583
  interface CngxStepIndicatorContext {
366
- /** Convenience alias for `position` — usable as `let-position` shorthand. */
584
+ /** Convenience alias for `position` - usable as `let-position` shorthand. */
367
585
  readonly $implicit: number;
368
586
  /** 1-based position of this step in the flat step-only projection. */
369
587
  readonly position: number;
@@ -371,7 +589,7 @@ interface CngxStepIndicatorContext {
371
589
  readonly node: CngxStepNode;
372
590
  /** `true` when this step is the current `activeStepId`. */
373
591
  readonly active: boolean;
374
- /** Live step status — drives the visual variant (idle / success / error / busy). */
592
+ /** Live step status - drives the visual variant (idle / success / error / busy). */
375
593
  readonly status: CngxStepStatus;
376
594
  /** `true` when this step is the in-flight commit target. */
377
595
  readonly busy: boolean;
@@ -395,6 +613,14 @@ interface CngxStepIndicatorContext {
395
613
  * </ng-template>
396
614
  * </cngx-stepper>
397
615
  * ```
616
+ *
617
+ * @category common/stepper/slots
618
+ * @wcag AA
619
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-indicator.directive.ts
620
+ * @since 0.1.0
621
+ * @relatedTo CngxStepBadge, CngxStepBusySpinner, CngxStepRejection, CngxStepGroupHeader
622
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/custom-indicator-glyph-via-code-cngxstepindicator-code</example-url>
623
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/cross-skin-indicator-override</example-url>
398
624
  */
399
625
  declare class CngxStepIndicator {
400
626
  readonly templateRef: TemplateRef<CngxStepIndicatorContext>;
@@ -407,6 +633,8 @@ declare class CngxStepIndicator {
407
633
  * badge inside a step button when `errorAggregator?.shouldShow()` is
408
634
  * truthy. Consumers swap the built-in `'!'` glyph for a counter pill
409
635
  * or branded marker; the visibility gate stays library-owned.
636
+ *
637
+ * @category common/stepper/slots
410
638
  */
411
639
  interface CngxStepBadgeContext {
412
640
  /** Aggregated error count for this step (≥ 1 when shown). */
@@ -427,6 +655,14 @@ interface CngxStepBadgeContext {
427
655
  * </ng-template>
428
656
  * </cngx-stepper>
429
657
  * ```
658
+ *
659
+ * @category common/stepper/slots
660
+ * @wcag AA
661
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-badge.directive.ts
662
+ * @since 0.1.0
663
+ * @relatedTo CngxStepIndicator, CngxStepBusySpinner, CngxStepRejection
664
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/custom-error-badge-via-code-cngxstepbadge-code</example-url>
665
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-error-aggregation/per-step-error-badges</example-url>
430
666
  */
431
667
  declare class CngxStepBadge {
432
668
  readonly templateRef: TemplateRef<CngxStepBadgeContext>;
@@ -439,6 +675,8 @@ declare class CngxStepBadge {
439
675
  * pending-commit overlay on the in-flight target step. Renders only
440
676
  * when the step matches `presenter.intendedStepIndex()` with
441
677
  * `commitState.status() === 'pending'`.
678
+ *
679
+ * @category common/stepper/slots
442
680
  */
443
681
  interface CngxStepBusySpinnerContext {
444
682
  /** The step node carrying id / label / state signals. */
@@ -457,6 +695,13 @@ interface CngxStepBusySpinnerContext {
457
695
  * </ng-template>
458
696
  * </cngx-stepper>
459
697
  * ```
698
+ *
699
+ * @category common/stepper/slots
700
+ * @wcag AA
701
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-busy-spinner.directive.ts
702
+ * @since 0.1.0
703
+ * @relatedTo CngxStepIndicator, CngxStepBadge, CngxStepRejection
704
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/custom-busy-spinner-via-code-cngxstepbusyspinner-code</example-url>
460
705
  */
461
706
  declare class CngxStepBusySpinner {
462
707
  readonly templateRef: TemplateRef<CngxStepBusySpinnerContext>;
@@ -466,7 +711,7 @@ declare class CngxStepBusySpinner {
466
711
 
467
712
  /**
468
713
  * Context passed to the `*cngxStepRejection` template. Renders on the
469
- * strip step the most recent commit was rolled back FROM — sibling of
714
+ * strip step the most recent commit was rolled back FROM - sibling of
470
715
  * the tabs `cngxTabRejectionIcon` slot. Renders only when
471
716
  * `presenter.lastFailedIndex()` matches the step's flat-index.
472
717
  *
@@ -474,6 +719,8 @@ declare class CngxStepBusySpinner {
474
719
  * `presenter.originIndexDuringCommit()`. May be `undefined` when the
475
720
  * origin index is out of range (synchronous-rejection edge case);
476
721
  * gate richer UI on its presence.
722
+ *
723
+ * @category common/stepper/slots
477
724
  */
478
725
  interface CngxStepRejectionContext {
479
726
  /** Flat-index of the rejected step (`presenter.lastFailedIndex()`). */
@@ -502,6 +749,13 @@ interface CngxStepRejectionContext {
502
749
  * </ng-template>
503
750
  * </cngx-stepper>
504
751
  * ```
752
+ *
753
+ * @category common/stepper/slots
754
+ * @wcag AA
755
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-rejection.directive.ts
756
+ * @since 0.1.0
757
+ * @relatedTo CngxStepBadge, CngxStepIndicator, CngxStepBusySpinner
758
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/rejection-decoration-via-code-cngxsteprejection-code</example-url>
505
759
  */
506
760
  declare class CngxStepRejection {
507
761
  readonly templateRef: TemplateRef<CngxStepRejectionContext>;
@@ -509,6 +763,65 @@ declare class CngxStepRejection {
509
763
  static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepRejection, "ng-template[cngxStepRejection]", ["cngxStepRejection"], {}, {}, never, never, true, never>;
510
764
  }
511
765
 
766
+ /**
767
+ * Context passed to the `*cngxStepError` template. Renders the
768
+ * validation-error reason for a step in the error state - sibling of
769
+ * the commit-channel `*cngxStepRejection` slot. The two channels stay
770
+ * distinct: rejection decorates the step a commit rolled back FROM;
771
+ * this slot surfaces the per-step validation message.
772
+ *
773
+ * `message` resolves the direct `[error]` string > the first
774
+ * aggregator label > the i18n `errored` status phrase, so a template
775
+ * that renders `{{ message }}` always shows a non-empty reason.
776
+ * `errorLabels` / `announcement` expose the richer aggregator surface
777
+ * for consumers that want a list or the full SR phrase.
778
+ *
779
+ * @category common/stepper/slots
780
+ */
781
+ interface CngxStepErrorContext {
782
+ /** The errored step node carrying id / label / state signals. */
783
+ readonly node: CngxStepNode;
784
+ /** Resolved error reason (direct `[error]` string > aggregator label > i18n). */
785
+ readonly message: string;
786
+ /** Aggregator error labels, or an empty array when none. */
787
+ readonly errorLabels: readonly string[];
788
+ /** Aggregator SR announcement phrase, or an empty string when none. */
789
+ readonly announcement: string;
790
+ }
791
+ /**
792
+ * Slot directive for the per-step error-message template on
793
+ * `<cngx-stepper>`. Discovered via `contentChild`; cascades through
794
+ * `CNGX_STEPPER_CONFIG.templates.stepError` before falling back to the
795
+ * built-in `{{ message }}` text. Mirrors {@link CngxStepRejection} so
796
+ * consumer-authored templates read the same way across both channels.
797
+ *
798
+ * ```html
799
+ * <cngx-stepper>
800
+ * <ng-template cngxStepError let-message="message" let-errorLabels="errorLabels">
801
+ * <strong>{{ message }}</strong>
802
+ * @if (errorLabels.length > 1) {
803
+ * <ul>
804
+ * @for (label of errorLabels; track label) {
805
+ * <li>{{ label }}</li>
806
+ * }
807
+ * </ul>
808
+ * }
809
+ * </ng-template>
810
+ * </cngx-stepper>
811
+ * ```
812
+ *
813
+ * @category common/stepper/slots
814
+ * @wcag AA
815
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-error.directive.ts
816
+ * @since 0.1.0
817
+ * @relatedTo CngxStepRejection, CngxStepBadge, CngxStep
818
+ */
819
+ declare class CngxStepError {
820
+ readonly templateRef: TemplateRef<CngxStepErrorContext>;
821
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepError, never>;
822
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepError, "ng-template[cngxStepError]", ["cngxStepError"], {}, {}, never, never, true, never>;
823
+ }
824
+
512
825
  /**
513
826
  * Context passed to the `*cngxStepGroupHeader` template. Drives the
514
827
  * group-row landmark for `kind === 'group'` nodes. The `role="group"`
@@ -516,15 +829,17 @@ declare class CngxStepRejection {
516
829
  *
517
830
  * `group` carries a `CngxStepNode` with the runtime guarantee
518
831
  * `kind === 'group'` (the slot only fires for group nodes).
519
- * `expanded` is reserved for future collapsible groups — passed `true`
832
+ * `expanded` is reserved for future collapsible groups - passed `true`
520
833
  * today; declaring it now avoids a breaking change later.
834
+ *
835
+ * @category common/stepper/slots
521
836
  */
522
837
  interface CngxStepGroupHeaderContext {
523
838
  /** The group node carrying id / label / state / children signals. */
524
839
  readonly group: CngxStepNode;
525
- /** Reserved — `true` while the group's children are visible. */
840
+ /** Reserved - `true` while the group's children are visible. */
526
841
  readonly expanded: boolean;
527
- /** Aggregated group status (rolls up children — drives heading variant). */
842
+ /** Aggregated group status (rolls up children - drives heading variant). */
528
843
  readonly status: CngxStepStatus;
529
844
  }
530
845
  /**
@@ -540,6 +855,13 @@ interface CngxStepGroupHeaderContext {
540
855
  * </ng-template>
541
856
  * </cngx-stepper>
542
857
  * ```
858
+ *
859
+ * @category common/stepper/slots
860
+ * @wcag AA
861
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-group-header.directive.ts
862
+ * @since 0.1.0
863
+ * @relatedTo CngxStepGroup, CngxStepIndicator, CngxStepLabel
864
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/custom-group-header-via-code-cngxstepgroupheader-code</example-url>
543
865
  */
544
866
  declare class CngxStepGroupHeader {
545
867
  readonly templateRef: TemplateRef<CngxStepGroupHeaderContext>;
@@ -549,7 +871,7 @@ declare class CngxStepGroupHeader {
549
871
 
550
872
  /**
551
873
  * Slot directive for the empty-state placeholder on `<cngx-stepper>`.
552
- * Rendered when `flatSteps()` is empty — async-loading or
874
+ * Rendered when `flatSteps()` is empty - async-loading or
553
875
  * server-driven step lists get a "no steps yet" landmark rather than
554
876
  * a collapsed strip.
555
877
  *
@@ -564,6 +886,13 @@ declare class CngxStepGroupHeader {
564
886
  * </ng-template>
565
887
  * </cngx-stepper>
566
888
  * ```
889
+ *
890
+ * @category common/stepper/slots
891
+ * @wcag AA
892
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/stepper-empty.directive.ts
893
+ * @since 0.1.0
894
+ * @relatedTo CngxStepIndicator, CngxStepGroupHeader
895
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/empty-state-placeholder-via-code-cngxstepperempty-code</example-url>
567
896
  */
568
897
  declare class CngxStepperEmpty {
569
898
  readonly templateRef: TemplateRef<void>;
@@ -571,13 +900,75 @@ declare class CngxStepperEmpty {
571
900
  static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepperEmpty, "ng-template[cngxStepperEmpty]", ["cngxStepperEmpty"], {}, {}, never, never, true, never>;
572
901
  }
573
902
 
903
+ /**
904
+ * Context passed to the `*cngxDotStepperDot` template. Drives the dot
905
+ * body inside `<cngx-dot-stepper>`. The `<span class="cngx-dot-stepper__dot">`
906
+ * shell - `role="img"`, `aria-current`, `aria-label`, class
907
+ * modifiers - stays library-owned; only the dot body content becomes
908
+ * overrideable so consumers can swap the default empty body for an
909
+ * icon, glyph, or branded indicator.
910
+ *
911
+ * Smaller than {@link CngxStepIndicatorContext} on purpose - the dot
912
+ * stepper does not surface step status/busy state visually, so the
913
+ * context strips to the four fields a consumer actually needs.
914
+ *
915
+ * @category common/stepper/slots
916
+ */
917
+ interface CngxDotStepperDotContext {
918
+ /** Convenience alias for `index` - usable as `let-index` shorthand. */
919
+ readonly $implicit: number;
920
+ /** 0-based position of this dot in the step-only projection. */
921
+ readonly index: number;
922
+ /** The step node carrying id / label / state signals. */
923
+ readonly node: CngxStepNode;
924
+ /** `true` when this dot represents the current active step. */
925
+ readonly active: boolean;
926
+ /** `true` when this dot represents a completed (already-traversed) step. */
927
+ readonly completed: boolean;
928
+ }
929
+ /**
930
+ * Slot directive for the dot-body template on `<cngx-dot-stepper>`.
931
+ * Discovered via `contentChild`; cascades through
932
+ * `CNGX_STEPPER_CONFIG.templates.dotStepperDot` before falling back to
933
+ * the built-in empty body (the span itself paints the dot fill via CSS).
934
+ *
935
+ * ```html
936
+ * <cngx-dot-stepper [(activeStepIndex)]="active" aria-label="Carousel">
937
+ * <ng-template cngxDotStepperDot let-index let-active="active" let-completed="completed">
938
+ * @if (active) {
939
+ * <svg viewBox="0 0 10 10" aria-hidden="true"><circle cx="5" cy="5" r="3" fill="currentColor" /></svg>
940
+ * } @else if (completed) {
941
+ * <svg viewBox="0 0 10 10" aria-hidden="true"><path d="M2 5l2 2 4-4" stroke="currentColor" fill="none" /></svg>
942
+ * }
943
+ * </ng-template>
944
+ * <div cngxStep label="Slide 1"></div>
945
+ * <div cngxStep label="Slide 2"></div>
946
+ * </cngx-dot-stepper>
947
+ * ```
948
+ *
949
+ * @category common/stepper/slots
950
+ * @wcag AA
951
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/dot-stepper-dot.directive.ts
952
+ * @since 0.1.0
953
+ * @relatedTo CngxStepIndicator, CngxStepBadge, CngxStepBusySpinner, CngxStepRejection
954
+ * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/icon-dots-via-code-cngxdotstepperdot-code</example-url>
955
+ * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/mobile-carousel</example-url>
956
+ */
957
+ declare class CngxDotStepperDot {
958
+ readonly templateRef: TemplateRef<CngxDotStepperDotContext>;
959
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxDotStepperDot, never>;
960
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxDotStepperDot, "ng-template[cngxDotStepperDot]", ["cngxDotStepperDot"], {}, {}, never, never, true, never>;
961
+ }
962
+
574
963
  /**
575
964
  * Aria-label overrides for the stepper landmark region. Library
576
965
  * defaults are English; locales come from consumer overrides.
577
966
  *
578
967
  * Per-step navigation labels (`previousStep`, `nextStep`) live in
579
- * {@link CngxStepperI18n} — SR phrasing, not landmark naming.
968
+ * {@link CngxStepperI18n} - SR phrasing, not landmark naming.
580
969
  * Splitting the surfaces avoids a dual-override path for the same string.
970
+ *
971
+ * @category common/stepper
581
972
  */
582
973
  interface CngxStepperAriaLabels {
583
974
  readonly stepperRegion?: string;
@@ -585,6 +976,8 @@ interface CngxStepperAriaLabels {
585
976
  /**
586
977
  * Fallback labels for derived strings (group descriptors, badge SR
587
978
  * announcements). English defaults; consumer overrides per locale.
979
+ *
980
+ * @category common/stepper
588
981
  */
589
982
  interface CngxStepperFallbackLabels {
590
983
  readonly groupRoleDescription?: string;
@@ -594,19 +987,76 @@ interface CngxStepperFallbackLabels {
594
987
  * Per-slot template overrides for `<cngx-stepper>`. Middle tier of
595
988
  * the 3-stage cascade: per-instance directive > this field > built-in
596
989
  * markup. Apply via the `with*Template` feature builders below.
990
+ *
991
+ * @category common/stepper
597
992
  */
598
993
  interface CngxStepperTemplates {
599
994
  readonly indicator?: TemplateRef<CngxStepIndicatorContext>;
600
995
  readonly badge?: TemplateRef<CngxStepBadgeContext>;
601
996
  readonly busySpinner?: TemplateRef<CngxStepBusySpinnerContext>;
602
997
  readonly rejection?: TemplateRef<CngxStepRejectionContext>;
998
+ readonly stepError?: TemplateRef<CngxStepErrorContext>;
603
999
  readonly groupHeader?: TemplateRef<CngxStepGroupHeaderContext>;
604
1000
  readonly empty?: TemplateRef<void>;
1001
+ readonly dotStepperDot?: TemplateRef<CngxDotStepperDotContext>;
605
1002
  }
1003
+ /**
1004
+ * Selectable visual skin for the cngx-standard stepper. The skin is a
1005
+ * pure thematic concern - every value renders the same structure, same
1006
+ * slots, same ARIA, same keyboard behaviour, and only redirects CSS via
1007
+ * the `[data-skin]` host attribute. The Material twin
1008
+ * (`<cngx-mat-stepper>`) ignores this setting.
1009
+ *
1010
+ * @category common/stepper
1011
+ */
1012
+ type CngxStepperSkin = 'classic' | 'linear-minimal' | 'stripe-status-rich' | 'path-chevron' | 'pill-segment' | 'chips' | 'breadcrumb';
1013
+ /**
1014
+ * Mobile auto-collapse target. Under a narrow viewport
1015
+ * (`max-width: 480px`), `<cngx-stepper>` falls back to one of the
1016
+ * compact variants instead of rendering the full strip. Set to
1017
+ * `'off'` to retain the classic strip on every viewport.
1018
+ *
1019
+ * @category common/stepper
1020
+ */
1021
+ type CngxStepperMobileCollapse = 'text' | 'dots' | 'off';
1022
+ /**
1023
+ * Header-navigation policy for `<cngx-stepper>`. `'none'` renders the
1024
+ * step headers as inert labels - the footer is the sole navigation
1025
+ * control. `'visited'` (default) keeps the headers as focusable
1026
+ * buttons; reachability folds into the `linear` axis (`linear=false`
1027
+ * is free click-through, `linear=true` is backward-to-visited only,
1028
+ * with linear-unreachable headers marked `aria-disabled`). There is no
1029
+ * discrete `'free'` value - `'free'` is `'visited'` + `linear=false`.
1030
+ *
1031
+ * @category common/stepper
1032
+ */
1033
+ type CngxStepperHeaderNavigation = 'none' | 'visited';
1034
+ /**
1035
+ * Where the mobile auto-collapse indicator (text caption or dot row)
1036
+ * sits relative to the active step's panel content under narrow
1037
+ * viewports. `'top'` (default) keeps the indicator above the panel;
1038
+ * `'bottom'` flips it below so the user reads content first and the
1039
+ * navigation cue sits at the thumb zone. Ignored when the classic
1040
+ * strip is on screen (`displayMode === 'classic'`).
1041
+ *
1042
+ * @category common/stepper
1043
+ */
1044
+ type CngxStepperMobileIndicatorPosition = 'top' | 'bottom';
1045
+ /**
1046
+ * Default media query the mobile auto-collapse policy reacts to. The
1047
+ * literal lives on a single exported const so the runtime, the config
1048
+ * default, and any JSDoc cross-references stay in lockstep. Consumers
1049
+ * override the query via {@link withStepperMobileBreakpoint}.
1050
+ *
1051
+ * @category common/stepper
1052
+ */
1053
+ declare const STEPPER_DEFAULT_MOBILE_BREAKPOINT = "(max-width: 480px)";
606
1054
  /**
607
1055
  * Stepper config surface. Resolution priority: per-instance Input
608
1056
  * > `provideStepperConfigAt` (viewProviders) > `provideStepperConfig`
609
1057
  * (root) > library default. Canonical cngx config shape.
1058
+ *
1059
+ * @category common/stepper
610
1060
  */
611
1061
  interface CngxStepperConfig {
612
1062
  readonly defaultOrientation?: 'horizontal' | 'vertical';
@@ -614,6 +1064,44 @@ interface CngxStepperConfig {
614
1064
  readonly defaultCommitMode?: 'optimistic' | 'pessimistic';
615
1065
  readonly routerSyncMode?: 'fragment' | 'queryParam';
616
1066
  readonly routerSyncParam?: string;
1067
+ readonly skin?: CngxStepperSkin;
1068
+ /**
1069
+ * Header-navigation policy. `'none'` makes the step headers inert
1070
+ * labels (footer-only navigation); `'visited'` (default) keeps them
1071
+ * focusable buttons whose reachability folds into the `linear` axis.
1072
+ * Per-instance `[headerNavigation]` Input still wins.
1073
+ */
1074
+ readonly headerNavigation?: CngxStepperHeaderNavigation;
1075
+ /**
1076
+ * Opt-in connector rail between adjacent step indicators on the
1077
+ * classic skin. Off by default. The rule is double-scoped on
1078
+ * `[data-skin='classic']`, so the four other skins are mechanically
1079
+ * untouched (each ships its own inter-step decoration). Per-instance
1080
+ * `[connectors]` Input still wins.
1081
+ */
1082
+ readonly connectors?: boolean;
1083
+ readonly mobileCollapse?: CngxStepperMobileCollapse;
1084
+ /**
1085
+ * Media query the mobile auto-collapse policy reacts to. Default
1086
+ * {@link STEPPER_DEFAULT_MOBILE_BREAKPOINT}. Tablet consumers can
1087
+ * re-aim the trigger via {@link withStepperMobileBreakpoint}.
1088
+ */
1089
+ readonly mobileBreakpoint?: string;
1090
+ /**
1091
+ * Where the mobile auto-collapse indicator sits relative to the
1092
+ * panel content. Default `'top'`. Override per-instance via the
1093
+ * `[mobileIndicatorPosition]` input or app-wide via
1094
+ * {@link withStepperMobileIndicatorPosition}.
1095
+ */
1096
+ readonly mobileIndicatorPosition?: CngxStepperMobileIndicatorPosition;
1097
+ /**
1098
+ * Whether horizontal swipe gestures advance/retreat the active step
1099
+ * while the stepper is in mobile-collapse mode (`'dots'` / `'text'`).
1100
+ * Default `true`. Override per-instance via the `[mobileSwipe]` input
1101
+ * or app-wide via {@link withStepperMobileSwipe}. Ignored on the
1102
+ * classic strip and on the Material twin (`<cngx-mat-stepper>`).
1103
+ */
1104
+ readonly mobileSwipe?: boolean;
617
1105
  readonly ariaLabels?: CngxStepperAriaLabels;
618
1106
  readonly fallbackLabels?: CngxStepperFallbackLabels;
619
1107
  readonly templates?: CngxStepperTemplates;
@@ -622,12 +1110,19 @@ interface CngxStepperConfig {
622
1110
  * DI token for the resolved stepper config. `providedIn: 'root'` with
623
1111
  * library defaults; override via {@link provideStepperConfig} (root)
624
1112
  * or {@link provideStepperConfigAt} (component scope).
1113
+ *
1114
+ * @category common/stepper
1115
+ * @wcag AA
1116
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/stepper-config.ts
1117
+ * @since 0.1.0
625
1118
  */
626
1119
  declare const CNGX_STEPPER_CONFIG: InjectionToken<CngxStepperConfig>;
627
1120
  /**
628
- * Feature signature — each `with*` builder reduces over the config.
1121
+ * Feature signature - each `with*` builder reduces over the config.
629
1122
  * Hidden `_target: 'config'` discriminator routes through the family
630
1123
  * aggregator {@link provideCngxStepper}.
1124
+ *
1125
+ * @category common/stepper
631
1126
  */
632
1127
  type CngxStepperConfigFeature = ((config: CngxStepperConfig) => CngxStepperConfig) & {
633
1128
  readonly _target: 'config';
@@ -635,11 +1130,15 @@ type CngxStepperConfigFeature = ((config: CngxStepperConfig) => CngxStepperConfi
635
1130
  /**
636
1131
  * Override the default orientation. Per-instance `[orientation]`
637
1132
  * Input still wins; this only moves the cascade default.
1133
+ *
1134
+ * @category common/stepper
638
1135
  */
639
1136
  declare function withStepperDefaultOrientation(orientation: 'horizontal' | 'vertical'): CngxStepperConfigFeature;
640
1137
  /**
641
1138
  * Override the default linear-progression setting. Per-instance
642
1139
  * `[linear]` Input still wins.
1140
+ *
1141
+ * @category common/stepper
643
1142
  */
644
1143
  declare function withStepperLinear(linear: boolean): CngxStepperConfigFeature;
645
1144
  /**
@@ -647,60 +1146,171 @@ declare function withStepperLinear(linear: boolean): CngxStepperConfigFeature;
647
1146
  * `'optimistic'` advances on action dispatch and rolls back on error;
648
1147
  * `'pessimistic'` waits for success. Per-instance `[commitMode]`
649
1148
  * Input still wins.
1149
+ *
1150
+ * @category common/stepper
650
1151
  */
651
1152
  declare function withStepperCommitMode(mode: 'optimistic' | 'pessimistic'): CngxStepperConfigFeature;
652
1153
  /**
653
1154
  * Configure router synchronisation for the active step. `mode` chooses
654
1155
  * the URL surface (URL fragment or query parameter); `param` names the
655
1156
  * key (default `'step'`).
1157
+ *
1158
+ * @category common/stepper
656
1159
  */
657
1160
  declare function withStepperRouterSync(mode: 'fragment' | 'queryParam', param?: string): CngxStepperConfigFeature;
1161
+ /**
1162
+ * Select the visual skin for the cngx-standard `<cngx-stepper>`. The
1163
+ * default is `'classic'`. Per-instance `[skin]` Input still wins; this
1164
+ * moves the cascade default. Structure, slots, ARIA, and keyboard
1165
+ * behaviour are identical across skins - only the `[data-skin]` host
1166
+ * attribute changes the CSS layer that paints the strip.
1167
+ *
1168
+ * @category common/stepper
1169
+ */
1170
+ declare function withStepperSkin(skin: CngxStepperSkin): CngxStepperConfigFeature;
1171
+ /**
1172
+ * Opt the classic `<cngx-stepper>` skin into the connector-rail
1173
+ * presentation: a solid completed/upcoming rail between adjacent step
1174
+ * indicators, horizontal and vertical, with per-segment coloring driven
1175
+ * by the preceding step's `[data-state]`. The rule is double-scoped on
1176
+ * `[data-skin='classic']`; the four other skins each ship their own
1177
+ * inter-step decoration and ignore this flag. Per-instance
1178
+ * `[connectors]` Input still wins.
1179
+ *
1180
+ * @category common/stepper
1181
+ */
1182
+ declare function withStepperConnectors(on: boolean): CngxStepperConfigFeature;
1183
+ /**
1184
+ * Configure the mobile auto-collapse target for `<cngx-stepper>`. Under
1185
+ * a narrow viewport (`max-width: 480px`), the classic strip swaps to
1186
+ * the chosen variant - `'text'` (default) renders `<cngx-text-stepper>`,
1187
+ * `'dots'` renders `<cngx-dot-stepper>`, `'off'` keeps the classic
1188
+ * strip. The Material twin `<cngx-mat-stepper>` ignores this setting.
1189
+ *
1190
+ * @category common/stepper
1191
+ */
1192
+ declare function withStepperMobileCollapse(mode: CngxStepperMobileCollapse): CngxStepperConfigFeature;
1193
+ /**
1194
+ * Override the media query the mobile auto-collapse policy reacts to.
1195
+ * Default `'(max-width: 480px)'`. Useful for tablet-tier consumers
1196
+ * who want the collapse to engage at 768px or for design systems
1197
+ * aligned with `--mat-sys-breakpoint-*` tokens.
1198
+ *
1199
+ * @category common/stepper
1200
+ */
1201
+ declare function withStepperMobileBreakpoint(query: string): CngxStepperConfigFeature;
1202
+ /**
1203
+ * Set the app-wide default position of the mobile auto-collapse
1204
+ * indicator relative to panel content. `'top'` keeps the indicator
1205
+ * above (library default); `'bottom'` flips it below so panel content
1206
+ * reads first and the navigation cue sits at thumb height. Per-
1207
+ * instance `[mobileIndicatorPosition]` on `<cngx-stepper>` still
1208
+ * wins.
1209
+ *
1210
+ * @category common/stepper
1211
+ */
1212
+ declare function withStepperMobileIndicatorPosition(position: CngxStepperMobileIndicatorPosition): CngxStepperConfigFeature;
1213
+ /**
1214
+ * Toggle the built-in horizontal-swipe navigation on `<cngx-stepper>`
1215
+ * in mobile-collapse mode. Default `true` - the `'dots'` and `'text'`
1216
+ * variants read as carousels, so users expect to swipe. Per-instance
1217
+ * `[mobileSwipe]` Input still wins; the classic strip is unaffected.
1218
+ *
1219
+ * @category common/stepper
1220
+ */
1221
+ declare function withStepperMobileSwipe(enabled: boolean): CngxStepperConfigFeature;
1222
+ /**
1223
+ * Set the app-wide default header-navigation policy for
1224
+ * `<cngx-stepper>`. `'none'` renders inert label headers (footer-only
1225
+ * navigation); `'visited'` (library default) keeps the headers as
1226
+ * focusable buttons whose reachability folds into the `linear` axis.
1227
+ * Per-instance `[headerNavigation]` Input still wins.
1228
+ *
1229
+ * @category common/stepper
1230
+ */
1231
+ declare function withStepperHeaderNavigation(mode: CngxStepperHeaderNavigation): CngxStepperConfigFeature;
658
1232
  /**
659
1233
  * Merge ARIA labels into the cascade. Keys not provided keep their
660
1234
  * library defaults; per-instance overrides on the stepper still win.
1235
+ *
1236
+ * @category common/stepper
661
1237
  */
662
1238
  declare function withStepperAriaLabels(labels: CngxStepperAriaLabels): CngxStepperConfigFeature;
663
1239
  /**
664
1240
  * Merge text fallback labels (button captions, error strings) into the
665
1241
  * cascade. Used when a slot directive is not present.
1242
+ *
1243
+ * @category common/stepper
666
1244
  */
667
1245
  declare function withStepperFallbackLabels(labels: CngxStepperFallbackLabels): CngxStepperConfigFeature;
668
1246
  /**
669
1247
  * Override the default `*cngxStepIndicator` template app-wide.
670
1248
  * Per-instance directive still wins; this only moves the cascade
671
1249
  * middle tier.
1250
+ *
1251
+ * @category common/stepper
672
1252
  */
673
1253
  declare function withStepIndicatorTemplate(template: TemplateRef<CngxStepIndicatorContext>): CngxStepperConfigFeature;
674
1254
  /**
675
1255
  * Override the default `*cngxStepBadge` template app-wide.
1256
+ *
1257
+ * @category common/stepper
676
1258
  */
677
1259
  declare function withStepBadgeTemplate(template: TemplateRef<CngxStepBadgeContext>): CngxStepperConfigFeature;
678
1260
  /**
679
1261
  * Override the default `*cngxStepBusySpinner` template app-wide.
1262
+ *
1263
+ * @category common/stepper
680
1264
  */
681
1265
  declare function withStepBusySpinnerTemplate(template: TemplateRef<CngxStepBusySpinnerContext>): CngxStepperConfigFeature;
682
1266
  /**
683
1267
  * Override the default `*cngxStepRejection` template app-wide.
684
1268
  * Symmetric with the upcoming tabs `cngxTabRejectionIcon` (Phase 4).
1269
+ *
1270
+ * @category common/stepper
685
1271
  */
686
1272
  declare function withStepRejectionTemplate(template: TemplateRef<CngxStepRejectionContext>): CngxStepperConfigFeature;
1273
+ /**
1274
+ * Override the default `*cngxStepError` template app-wide. The slot
1275
+ * renders the per-step validation reason on the skins with a label area
1276
+ * (classic / stripe-status-rich). Per-instance directive still wins;
1277
+ * this moves the cascade middle tier.
1278
+ *
1279
+ * @category common/stepper
1280
+ */
1281
+ declare function withStepErrorTemplate(template: TemplateRef<CngxStepErrorContext>): CngxStepperConfigFeature;
687
1282
  /**
688
1283
  * Override the default `*cngxStepGroupHeader` template app-wide.
1284
+ *
1285
+ * @category common/stepper
689
1286
  */
690
1287
  declare function withStepGroupHeaderTemplate(template: TemplateRef<CngxStepGroupHeaderContext>): CngxStepperConfigFeature;
691
1288
  /**
692
1289
  * Override the default `*cngxStepperEmpty` template app-wide.
1290
+ *
1291
+ * @category common/stepper
693
1292
  */
694
1293
  declare function withStepperEmptyTemplate(template: TemplateRef<void>): CngxStepperConfigFeature;
1294
+ /**
1295
+ * Override the default `*cngxDotStepperDot` template app-wide. The
1296
+ * `<cngx-dot-stepper>` variant resolves the cascade per dot:
1297
+ * per-instance directive > this feature > built-in empty body
1298
+ * (the dot fill is painted by `.cngx-dot-stepper__dot` regardless).
1299
+ *
1300
+ * @category common/stepper
1301
+ */
1302
+ declare function withDotStepperDotTemplate(template: TemplateRef<CngxDotStepperDotContext>): CngxStepperConfigFeature;
695
1303
  /**
696
1304
  * Root-level provider for the stepper config. Apply once in the
697
1305
  * application providers array. Sibling of `provideTabsConfig` /
698
1306
  * `provideSelectConfig`.
1307
+ *
1308
+ * @category common/stepper
699
1309
  */
700
1310
  declare function provideStepperConfig(...features: readonly CngxStepperConfigFeature[]): EnvironmentProviders;
701
1311
  /**
702
1312
  * Component-scoped config override. Spread the returned `Provider[]`
703
- * into `providers` or `viewProviders` — `viewProviders` cannot accept
1313
+ * into `providers` or `viewProviders` - `viewProviders` cannot accept
704
1314
  * opaque {@link EnvironmentProviders}, so the twin returns a list.
705
1315
  * Sibling of `provideTabsConfigAt`.
706
1316
  *
@@ -712,52 +1322,65 @@ declare function provideStepperConfig(...features: readonly CngxStepperConfigFea
712
1322
  * viewProviders: [...provideStepperConfigAt(withStepperLinear(true))],
713
1323
  * })
714
1324
  * ```
1325
+ *
1326
+ * @category common/stepper
715
1327
  */
716
1328
  declare function provideStepperConfigAt(...features: readonly CngxStepperConfigFeature[]): Provider[];
717
1329
  /**
718
1330
  * Inject the resolved stepper config in an injection context.
1331
+ *
1332
+ * @category common/stepper
719
1333
  */
720
1334
  declare function injectStepperConfig(): CngxStepperConfig;
721
1335
 
722
1336
  /**
723
1337
  * Inputs to {@link createStepperTemplateBindings}. The organism owns
724
- * the `contentChild()` queries (NG8110 — must run in component
1338
+ * the `contentChild()` queries (NG8110 - must run in component
725
1339
  * injection context) and the resolved {@link CngxStepperConfig}; this
726
1340
  * factory absorbs the 3-stage cascade per slot key.
1341
+ *
1342
+ * @category common/stepper/slots
727
1343
  */
728
1344
  interface CngxStepperTemplateBindingsOptions {
729
1345
  readonly indicatorSlot: Signal<CngxStepIndicator | undefined>;
730
1346
  readonly badgeSlot: Signal<CngxStepBadge | undefined>;
731
1347
  readonly busySpinnerSlot: Signal<CngxStepBusySpinner | undefined>;
732
1348
  readonly rejectionSlot: Signal<CngxStepRejection | undefined>;
1349
+ /** Optional - the error slot is desktop-label-area only; absent on variants that have no label region. */
1350
+ readonly errorSlot?: Signal<CngxStepError | undefined>;
733
1351
  readonly groupHeaderSlot: Signal<CngxStepGroupHeader | undefined>;
734
1352
  readonly emptySlot: Signal<CngxStepperEmpty | undefined>;
735
1353
  readonly config: CngxStepperConfig;
736
1354
  }
737
1355
  /**
738
1356
  * Output of {@link createStepperTemplateBindings}. One resolved
739
- * `Signal<TemplateRef | null>` per slot — `null` falls through to the
1357
+ * `Signal<TemplateRef | null>` per slot - `null` falls through to the
740
1358
  * organism's built-in default markup.
1359
+ *
1360
+ * @category common/stepper/slots
741
1361
  */
742
1362
  interface CngxStepperTemplateBindings {
743
1363
  readonly indicator: Signal<TemplateRef<CngxStepIndicatorContext> | null>;
744
1364
  readonly badge: Signal<TemplateRef<CngxStepBadgeContext> | null>;
745
1365
  readonly busySpinner: Signal<TemplateRef<CngxStepBusySpinnerContext> | null>;
746
1366
  readonly rejection: Signal<TemplateRef<CngxStepRejectionContext> | null>;
1367
+ readonly stepError: Signal<TemplateRef<CngxStepErrorContext> | null>;
747
1368
  readonly groupHeader: Signal<TemplateRef<CngxStepGroupHeaderContext> | null>;
748
1369
  readonly empty: Signal<TemplateRef<void> | null>;
749
1370
  }
750
1371
  /**
751
- * Wires the 3-stage template cascade for the six `<cngx-stepper>`
752
- * skin slots: per-instance directive > `CNGX_STEPPER_CONFIG.templates.<key>`
1372
+ * Wires the 3-stage template cascade for the `<cngx-stepper>` skin
1373
+ * slots: per-instance directive > `CNGX_STEPPER_CONFIG.templates.<key>`
753
1374
  * > `null` (built-in default).
754
1375
  *
755
- * Pure — no DI, no side effects. Safe to call from a field-init
1376
+ * Pure - no DI, no side effects. Safe to call from a field-init
756
1377
  * block. Sibling of `createTabOverflowTemplateBindings` and the
757
1378
  * family-wide `createTemplateRegistry`.
758
1379
  *
759
- * Tabs has no parallel slot surface yet — see
1380
+ * Tabs has no parallel slot surface yet - see
760
1381
  * `stepper-accepted-debt §3` for the planned Phase-4 closure.
1382
+ *
1383
+ * @category common/stepper/slots
761
1384
  */
762
1385
  declare function createStepperTemplateBindings(opts: CngxStepperTemplateBindingsOptions): CngxStepperTemplateBindings;
763
1386
 
@@ -773,6 +1396,9 @@ declare function createStepperTemplateBindings(opts: CngxStepperTemplateBindings
773
1396
  * `*cngxStep*` slots or `withStep*Template` features.
774
1397
  *
775
1398
  * @internal
1399
+ * @category common/stepper
1400
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/glyphs.ts
1401
+ * @since 0.1.0
776
1402
  */
777
1403
  declare const CNGX_STEPPER_GLYPHS: {
778
1404
  /** Default visual for `*cngxStepBadge` when no override is bound. */
@@ -789,8 +1415,16 @@ declare const CNGX_STEPPER_GLYPHS: {
789
1415
  * - `mode = 'fragment'` (default) → `#step=customer`
790
1416
  * - `mode = 'queryParam'` with `paramName = 'step'` → `?step=customer`
791
1417
  *
792
- * `Router` is optional — without `@angular/router` the directive
1418
+ * `Router` is optional - without `@angular/router` the directive
793
1419
  * dev-warns once and becomes a no-op.
1420
+ *
1421
+ * @category common/stepper
1422
+ * @docsKind primary
1423
+ * @wcag AA
1424
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/router-sync.directive.ts
1425
+ * @since 0.1.0
1426
+ * @relatedTo CngxStepperPresenter, CNGX_STEPPER_CONFIG
1427
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-router-sync/deep-linking-with-fragment-queryparam-modes</example-url>
794
1428
  */
795
1429
  declare class CngxStepperRouterSync {
796
1430
  readonly modeInput: i0.InputSignal<"fragment" | "queryParam" | undefined>;
@@ -808,13 +1442,38 @@ declare class CngxStepperRouterSync {
808
1442
  static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepperRouterSync, "[cngxStepperRouterSync]", ["cngxStepperRouterSync"], { "modeInput": { "alias": "mode"; "required": false; "isSignal": true; }; "paramNameInput": { "alias": "paramName"; "required": false; "isSignal": true; }; }, { "syncError": "syncError"; }, never, never, true, never>;
809
1443
  }
810
1444
 
1445
+ /**
1446
+ * Status-pill labels used by the `stripe-status-rich` skin (and any
1447
+ * future skin / variant that surfaces a per-step status pill). Sub-
1448
+ * bundle of {@link CngxStepperI18n}; consumers override partial keys
1449
+ * via {@link withStepperI18nLabels} - un-overridden keys keep their
1450
+ * English defaults.
1451
+ *
1452
+ * @category common/stepper/i18n
1453
+ */
1454
+ interface CngxStepperStatusLabels {
1455
+ readonly done: string;
1456
+ readonly inProgress: string;
1457
+ readonly upNext: string;
1458
+ readonly errored: string;
1459
+ }
811
1460
  /**
812
1461
  * Stepper i18n surface. Library defaults are English; locales come from
813
1462
  * consumer overrides via {@link provideStepperI18n}. Sibling of
814
1463
  * `CNGX_TABS_I18N` / `CNGX_CHART_I18N`.
1464
+ *
1465
+ * @category common/stepper/i18n
815
1466
  */
816
1467
  interface CngxStepperI18n {
817
1468
  readonly stepperLabel: string;
1469
+ /**
1470
+ * Landmark `aria-roledescription` for compact step-indicator
1471
+ * surfaces such as the dot stepper and the mobile-dot collapse
1472
+ * fallback. Mirrors the W3C APG step-indicator pattern.
1473
+ *
1474
+ * @category common/stepper/i18n
1475
+ */
1476
+ readonly stepIndicatorRoleDescription: string;
818
1477
  readonly selectedStep: (label: string, position: number, count: number) => string;
819
1478
  readonly stepCompleted: string;
820
1479
  readonly stepErrored: string;
@@ -840,34 +1499,72 @@ interface CngxStepperI18n {
840
1499
  /**
841
1500
  * Persistent suffix on the per-step `aria-describedby` while
842
1501
  * `presenter.lastFailedIndex()` matches the step. Distinct from
843
- * {@link commitRolledBackTo} (transient live-region phrase) — this
1502
+ * {@link commitRolledBackTo} (transient live-region phrase) - this
844
1503
  * suffix is reachable when AT users navigate back to the rejected
845
1504
  * step after the announcement has faded. Pillar 2.
846
1505
  */
847
1506
  readonly stepRolledBackSuffix: string;
1507
+ /**
1508
+ * Per-state pill labels surfaced by the `stripe-status-rich` skin
1509
+ * (and any future skin / variant that paints a state pill). English
1510
+ * defaults; consumer partial overrides via
1511
+ * {@link withStepperI18nLabels} keep un-overridden keys intact.
1512
+ */
1513
+ readonly statusLabels: CngxStepperStatusLabels;
1514
+ /**
1515
+ * Short progress format used by `CngxProgressBarStepper`'s optional
1516
+ * step-count subtext and by `CngxTextStepper`. Receives the
1517
+ * 1-based current position and total step count; default
1518
+ * `(current, total) => 'Step ${current} of ${total}'`.
1519
+ *
1520
+ * @category common/stepper/i18n
1521
+ */
1522
+ readonly textStepperFormat: (current: number, total: number) => string;
848
1523
  }
1524
+ /**
1525
+ * Partial-override shape for {@link withStepperI18nLabels}. Behaves as
1526
+ * `Partial<CngxStepperI18n>` for top-level keys, plus a nested partial
1527
+ * for {@link CngxStepperStatusLabels} so consumers can override one
1528
+ * pill label without restating the full status-label bundle.
1529
+ *
1530
+ * @category common/stepper/i18n
1531
+ */
1532
+ type CngxStepperI18nOverrides = Omit<Partial<CngxStepperI18n>, 'statusLabels'> & {
1533
+ readonly statusLabels?: Partial<CngxStepperStatusLabels>;
1534
+ };
849
1535
  /**
850
1536
  * DI token for the resolved stepper i18n bundle. `providedIn: 'root'`
851
1537
  * with English defaults.
1538
+ *
1539
+ * @category common/stepper/i18n
1540
+ * @wcag AA
1541
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/i18n/stepper-i18n.ts
1542
+ * @since 0.1.0
852
1543
  */
853
1544
  declare const CNGX_STEPPER_I18N: InjectionToken<CngxStepperI18n>;
854
1545
  /**
855
1546
  * Feature shape consumed by {@link provideStepperI18n} and {@link provideCngxStepper}.
856
1547
  * Hidden `_target: 'i18n'` discriminator routes through the family aggregator.
857
1548
  * Sibling of `CngxTabsI18nFeature`.
1549
+ *
1550
+ * @category common/stepper/i18n
858
1551
  */
859
1552
  type CngxStepperI18nFeature = ((bundle: CngxStepperI18n) => CngxStepperI18n) & {
860
1553
  readonly _target: 'i18n';
861
1554
  };
862
1555
  /**
863
- * Override stepper i18n labels. Partial override — unset keys keep
864
- * the English default. Sibling of `withStepperAriaLabels` /
1556
+ * Override stepper i18n labels. Partial override - unset keys keep
1557
+ * the English default. {@link CngxStepperStatusLabels} is merged
1558
+ * key-by-key so consumers can override one pill label without
1559
+ * restating the rest. Sibling of `withStepperAriaLabels` /
865
1560
  * `withStepperFallbackLabels`.
1561
+ *
1562
+ * @category common/stepper/i18n
866
1563
  */
867
- declare function withStepperI18nLabels(overrides: Partial<CngxStepperI18n>): CngxStepperI18nFeature;
1564
+ declare function withStepperI18nLabels(overrides: CngxStepperI18nOverrides): CngxStepperI18nFeature;
868
1565
  /**
869
1566
  * Provider for the stepper i18n bundle. Compose `withStepperI18nLabels(...)`
870
- * (plus any future i18n `with*`) — unset keys fall back to English.
1567
+ * (plus any future i18n `with*`) - unset keys fall back to English.
871
1568
  *
872
1569
  * ```ts
873
1570
  * bootstrapApplication(AppComponent, {
@@ -878,17 +1575,619 @@ declare function withStepperI18nLabels(overrides: Partial<CngxStepperI18n>): Cng
878
1575
  * ],
879
1576
  * });
880
1577
  * ```
1578
+ *
1579
+ * @category common/stepper/i18n
881
1580
  */
882
1581
  declare function provideStepperI18n(...features: readonly CngxStepperI18nFeature[]): Provider;
883
1582
  /**
884
1583
  * Inject the resolved stepper i18n bundle in an injection context.
1584
+ *
1585
+ * @category common/stepper/i18n
885
1586
  */
886
1587
  declare function injectStepperI18n(): CngxStepperI18n;
887
1588
 
1589
+ /**
1590
+ * Resolve the status-pill label for a step node against the resolved
1591
+ * i18n bundle. Used by skins that surface a per-step status pill
1592
+ * (e.g. `stripe-status-rich`). Pure factory - no injection context,
1593
+ * no signal graph involvement.
1594
+ *
1595
+ * Resolution order:
1596
+ * 1. `success` data-state -> `statusLabels.done`
1597
+ * 2. `error` data-state -> `statusLabels.errored`
1598
+ * 3. `aria-current="step"` -> `statusLabels.inProgress`
1599
+ * 4. otherwise -> `statusLabels.upNext`
1600
+ *
1601
+ * Group nodes (non-step) return an empty string.
1602
+ *
1603
+ * @category common/stepper
1604
+ */
1605
+ declare function resolveStepperStatusLabel(node: CngxStepNode, i18n: CngxStepperI18n, isActive: boolean): string;
1606
+
1607
+ /**
1608
+ * Returns a reactive `Signal<boolean>` that reflects whether the host
1609
+ * window matches a CSS media query (e.g. `(max-width: 480px)`). Used by
1610
+ * `<cngx-stepper>` to drive its mobile auto-collapse template branch.
1611
+ *
1612
+ * In SSR / non-DOM environments the signal stays `false` and the
1613
+ * listener is never wired.
1614
+ *
1615
+ * @category common/stepper
1616
+ */
1617
+ declare function createMobileViewportSignal(mediaQuery: string, destroyRef: DestroyRef): Signal<boolean>;
1618
+ /**
1619
+ * Resolves the active stepper display mode by combining a viewport
1620
+ * media-query with the configured `mobileCollapse` policy.
1621
+ * `'classic'` keeps the full strip; `'text'` / `'dots'` swap to the
1622
+ * matching compact variant.
1623
+ *
1624
+ * @category common/stepper
1625
+ */
1626
+ declare function createStepperDisplayMode(mediaQuery: string, mobileCollapse: () => CngxStepperMobileCollapse | undefined, destroyRef: DestroyRef): Signal<'classic' | 'text' | 'dots'>;
1627
+
1628
+ /**
1629
+ * Input bundle for {@link createStepperHostAttrs}: the three per-instance
1630
+ * inputs (each `Signal<T | undefined>`) and the resolved config (read
1631
+ * synchronously at construction). Each cascade collapses through
1632
+ * `input ?? config ?? library-default`.
1633
+ *
1634
+ * @internal
1635
+ */
1636
+ interface CngxStepperHostAttrsInputs {
1637
+ readonly skin: Signal<CngxStepperSkin | undefined>;
1638
+ readonly connectors: Signal<boolean | undefined>;
1639
+ readonly mobileIndicatorPosition: Signal<CngxStepperMobileIndicatorPosition | undefined>;
1640
+ readonly config: CngxStepperConfig;
1641
+ }
1642
+ /**
1643
+ * Three host-attribute signals for `<cngx-stepper>`. Each is read by a
1644
+ * `[attr.data-*]` host binding on the organism.
1645
+ *
1646
+ * @internal
1647
+ */
1648
+ interface CngxStepperHostAttrs {
1649
+ readonly resolvedSkin: Signal<CngxStepperSkin>;
1650
+ readonly resolvedConnectors: Signal<boolean>;
1651
+ readonly resolvedMobileIndicatorPosition: Signal<CngxStepperMobileIndicatorPosition>;
1652
+ }
1653
+ /**
1654
+ * Level-2 helper resolving the three host-attribute cascades for
1655
+ * `<cngx-stepper>` (skin / connectors / mobileIndicatorPosition). Keeps
1656
+ * the organism class under the LOC guard while making the cascade
1657
+ * pattern reusable for any future host-attr the strip surfaces.
1658
+ *
1659
+ * Each computed honors Pillar 1 (Ableitung statt Verwaltung): per-instance
1660
+ * input wins over root config wins over library default. No manual sync.
1661
+ *
1662
+ * @internal
1663
+ */
1664
+ declare function createStepperHostAttrs(inputs: CngxStepperHostAttrsInputs): CngxStepperHostAttrs;
1665
+
1666
+ /**
1667
+ * Options for {@link createStepperStripKeyboardNav}.
1668
+ *
1669
+ * @internal
1670
+ */
1671
+ interface CngxStepperStripKeyboardNavOptions {
1672
+ /** Host contract that owns the active-step state and selection methods. */
1673
+ readonly presenter: CngxStepperHost;
1674
+ /** Host element used to locate the active step button after the move. */
1675
+ readonly hostElement: HTMLElement;
1676
+ /** Returns the current flat-step count so `End` lands on the last step. */
1677
+ readonly flatStepCount: () => number;
1678
+ /**
1679
+ * Maps a CngxStepNode id to its DOM button id (e.g. `${id}-header`).
1680
+ * The strip selects by stable DOM id rather than waiting for the
1681
+ * `aria-current` attribute to flip - the id binding does not depend
1682
+ * on the active-step signal, so the lookup is correct the same tick
1683
+ * the presenter's `activeStepId` updates.
1684
+ */
1685
+ readonly stepButtonIdFor: (stepId: string) => string;
1686
+ /**
1687
+ * Optional class name guard - the handler only runs when
1688
+ * `event.target.classList.contains(stepClassName)`. Defaults to the
1689
+ * canonical strip button class so panel-content key presses pass
1690
+ * through untouched.
1691
+ */
1692
+ readonly stepClassName?: string;
1693
+ /**
1694
+ * Optional gate - when supplied and returning `false`, the handler is
1695
+ * a complete no-op. Used to switch arrow-key navigation off in the
1696
+ * `headerNavigation: 'none'` mode, where the step headers are inert
1697
+ * labels rather than focusable buttons. Omitted defaults to enabled.
1698
+ */
1699
+ readonly enabled?: () => boolean;
1700
+ }
1701
+ /**
1702
+ * Builds the WAI-ARIA APG arrow-key handler for a stepper strip. The
1703
+ * composed `CngxRovingTabindex` cannot reach view-template step buttons
1704
+ * (its `contentChildren` query only sees projected content), so the
1705
+ * organism wires this factory's return value to its host `(keydown)`
1706
+ * binding to honour the documented keyboard contract.
1707
+ *
1708
+ * Horizontal orientation: ArrowLeft / ArrowRight navigate. Vertical:
1709
+ * ArrowUp / ArrowDown. Home / End jump to the first / last flat step
1710
+ * regardless of orientation. The presenter's `select*` methods enforce
1711
+ * linear-mode gating so callers do not duplicate that check here.
1712
+ *
1713
+ * @internal
1714
+ */
1715
+ declare function createStepperStripKeyboardNav(options: CngxStepperStripKeyboardNavOptions): (event: KeyboardEvent) => void;
1716
+
1717
+ /**
1718
+ * Per-step + aggregate state derivations shared by every stepper skin.
1719
+ *
1720
+ * The classic organism historically derived "is this step errored / busy /
1721
+ * rejected" inline in {@link createStepperSlotContextBuilders}; the dot,
1722
+ * text, and progress-bar variants derived nothing, so a step error (per-step
1723
+ * `state`, an error aggregator, or a commit rejection) was structurally
1724
+ * invisible in those three. This view is the single source those four skins
1725
+ * read from - "Ableitung statt Verwaltung" - so the error contract can never
1726
+ * drift between them.
1727
+ *
1728
+ * @internal
1729
+ */
1730
+ interface CngxStepperStateView {
1731
+ /** Raw step status. Group nodes still report their own `state()`. */
1732
+ readonly statusOf: (node: CngxStepNode) => CngxStepStatus;
1733
+ /**
1734
+ * `true` while a commit is in flight AND targets this step. Mirrors the
1735
+ * classic `isStepBusy` predicate.
1736
+ */
1737
+ readonly isBusy: (node: CngxStepNode) => boolean;
1738
+ /**
1739
+ * `true` when this step is the one a commit just rejected
1740
+ * (`flatIndex === lastFailedIndex`). The commit-rejection arm your
1741
+ * pessimistic / optimistic flows hit.
1742
+ */
1743
+ readonly isRejected: (node: CngxStepNode) => boolean;
1744
+ /**
1745
+ * Badge-level error: per-step `state === 'error'` OR the bound error
1746
+ * aggregator's `shouldShow()`. Deliberately excludes commit rejection -
1747
+ * the classic skin renders rejection through its own dedicated slot, so
1748
+ * folding it in here would double-render the icon.
1749
+ */
1750
+ readonly hasErrorBadge: (node: CngxStepNode) => boolean;
1751
+ /**
1752
+ * Unified error predicate - the contract the minimal skins (dot / text /
1753
+ * progress-bar) read. `true` when ANY of the three error sources fires:
1754
+ * {@link hasErrorBadge} OR a commit rejection ({@link isRejected}). Those
1755
+ * skins have no separate rejection slot, so they treat every error source
1756
+ * as one "errored" state.
1757
+ */
1758
+ readonly hasError: (node: CngxStepNode) => boolean;
1759
+ /** Count of step-only nodes where {@link hasError} is `true`. */
1760
+ readonly errorCount: Signal<number>;
1761
+ /** Flat index of the first errored step, or `-1` when none. */
1762
+ readonly firstErrorIndex: Signal<number>;
1763
+ /** `true` when `errorCount() > 0`. Drives skin-level `aria-invalid`. */
1764
+ readonly hasAnyError: Signal<boolean>;
1765
+ }
1766
+ /**
1767
+ * Build the shared {@link CngxStepperStateView} over a presenter host and its
1768
+ * step-only projection. Pure factory - `computed()` only, no injection
1769
+ * context required, so any skin can allocate it in a field initializer.
1770
+ *
1771
+ * @category common/stepper
1772
+ * @since 0.1.0
1773
+ * @relatedTo CngxStepperHost, createStepperSlotContextBuilders
1774
+ */
1775
+ declare function createStepperStateView(inputs: {
1776
+ presenter: CngxStepperHost;
1777
+ stepsOnly: Signal<readonly CngxStepNode[]>;
1778
+ }): CngxStepperStateView;
1779
+ /**
1780
+ * Aggregate error phrase shared by the minimal skins (text / progress-bar)
1781
+ * and the classic mobile-collapse text branch. A single errored step names
1782
+ * itself (`"Payment: Errored"`); several collapse to the i18n count phrase
1783
+ * (`"2 errors"`). Returns `''` when no step errored - callers gate on
1784
+ * `view.hasAnyError()` so the empty string never reaches the DOM.
1785
+ *
1786
+ * The optional `messageOf` resolver lets callers surface a per-step
1787
+ * reason (a direct `[error]` string or the first aggregator label) in the
1788
+ * single-error case instead of the generic `errored` status word. When
1789
+ * omitted - or when it returns `undefined`/`''` - the helper produces
1790
+ * byte-identical output to the no-resolver form, so existing callers
1791
+ * (the classic mobile-collapse summary) are a guaranteed no-op.
1792
+ *
1793
+ * Pure helper - reads signals at call time, intended to be wrapped in the
1794
+ * caller's `computed()`.
1795
+ *
1796
+ * @category common/stepper
1797
+ * @since 0.1.0
1798
+ */
1799
+ declare function resolveStepperErrorSummary(view: Pick<CngxStepperStateView, 'errorCount' | 'firstErrorIndex'>, stepsOnly: Signal<readonly CngxStepNode[]>, i18n: CngxStepperI18n, messageOf?: (node: CngxStepNode) => string | undefined): string;
1800
+
1801
+ /**
1802
+ * Input bundle for {@link createStepperSlotContextBuilders}: the presenter
1803
+ * surface and the step-only flat projection. Builders read both reactively
1804
+ * so the produced context objects always reflect current presenter state.
1805
+ *
1806
+ * @internal
1807
+ */
1808
+ interface CngxStepperSlotContextBuildersInputs {
1809
+ readonly presenter: CngxStepperHost;
1810
+ readonly stepsOnly: Signal<readonly CngxStepNode[]>;
1811
+ /** i18n bundle - supplies the `errored` status label as the message fallback. */
1812
+ readonly i18n: CngxStepperI18n;
1813
+ }
1814
+ /**
1815
+ * Per-step status / activity / rejection / labelling derivations shared by
1816
+ * every slot context shape. The organism reads these through the bundle
1817
+ * instead of duplicating the logic next to each `*ContextFor` builder.
1818
+ *
1819
+ * @internal
1820
+ */
1821
+ interface CngxStepperSlotContextBuilders {
1822
+ readonly isActive: (node: CngxStepNode) => boolean;
1823
+ readonly isStepBusy: (node: CngxStepNode) => boolean;
1824
+ readonly showRejection: (node: CngxStepNode) => boolean;
1825
+ readonly showErrorBadge: (node: CngxStepNode) => boolean;
1826
+ /** Validation-channel error gate - mirrors the error badge, independent of commit rejection. */
1827
+ readonly showStepError: (node: CngxStepNode) => boolean;
1828
+ readonly indicatorContextFor: (node: CngxStepNode) => CngxStepIndicatorContext;
1829
+ readonly badgeContextFor: (node: CngxStepNode) => CngxStepBadgeContext;
1830
+ readonly busySpinnerContextFor: (node: CngxStepNode) => CngxStepBusySpinnerContext;
1831
+ readonly rejectionContextFor: (node: CngxStepNode) => CngxStepRejectionContext;
1832
+ readonly stepErrorContextFor: (node: CngxStepNode) => CngxStepErrorContext;
1833
+ readonly groupHeaderContextFor: (node: CngxStepNode) => CngxStepGroupHeaderContext;
1834
+ readonly stepLabelContextFor: (node: CngxStepNode) => CngxStepLabelContext;
1835
+ readonly stepContentContextFor: (node: CngxStepNode) => CngxStepContentContext;
1836
+ }
1837
+ /**
1838
+ * Bundle the `*ContextFor` slot-context builders plus the small
1839
+ * `isActive` / `isStepBusy` / `showRejection` / `showErrorBadge` /
1840
+ * `showStepError` predicates the organism's template reads. Lives at
1841
+ * Level 2 so the `<cngx-stepper>` organism stays a thin shell.
1842
+ *
1843
+ * @internal
1844
+ */
1845
+ declare function createStepperSlotContextBuilders(inputs: CngxStepperSlotContextBuildersInputs): CngxStepperSlotContextBuilders;
1846
+
1847
+ /**
1848
+ * Input bundle for {@link createStepperAnnouncementBuilders}. The presenter
1849
+ * surface (commit transition + failed-index signals), the step-only flat
1850
+ * projection, and the resolved i18n strings.
1851
+ *
1852
+ * @internal
1853
+ */
1854
+ interface CngxStepperAnnouncementBuildersInputs {
1855
+ readonly presenter: CngxStepperHost;
1856
+ readonly stepsOnly: Signal<readonly CngxStepNode[]>;
1857
+ readonly i18n: CngxStepperI18n;
1858
+ }
1859
+ /**
1860
+ * Reactive SR-announcement surface for the stepper organism: the
1861
+ * `aria-live` content for commit lifecycle transitions, the per-step
1862
+ * descriptor phrase including the rejected-suffix, and the group rollup
1863
+ * phrase. Bundles three small functions the organism's template binds
1864
+ * against.
1865
+ *
1866
+ * @internal
1867
+ */
1868
+ interface CngxStepperAnnouncementBuilders {
1869
+ /**
1870
+ * Live-region content driven by the commit transition tracker.
1871
+ * Empty string between transitions keeps the region quiet on no-op
1872
+ * CD ticks. Error-arm priority: `commitRolledBackTo(originLabel)` when
1873
+ * both `lastFailedIndex` and a resolvable origin label exist; otherwise
1874
+ * `commitFailedRetry`.
1875
+ */
1876
+ readonly liveAnnouncement: Signal<string>;
1877
+ /**
1878
+ * SR descriptor phrase. Aggregator-announced or "Step N of M: <label>";
1879
+ * appends `stepRolledBackSuffix` on the rejected row.
1880
+ */
1881
+ readonly statusPhrase: (node: CngxStepNode) => string;
1882
+ /** Group descriptor - rolls up children's aggregated status. */
1883
+ readonly groupStatusPhrase: (node: CngxStepNode) => string;
1884
+ }
1885
+ /**
1886
+ * Build the reactive SR-announcement surface for `<cngx-stepper>`.
1887
+ * Lives at Level 2 so the Level-4 organism stays a thin shell per
1888
+ * `reference_atomic_decompose`.
1889
+ *
1890
+ * @internal
1891
+ */
1892
+ declare function createStepperAnnouncementBuilders(inputs: CngxStepperAnnouncementBuildersInputs): CngxStepperAnnouncementBuilders;
1893
+
1894
+ /**
1895
+ * Routes a `CngxSwipe` gesture into the stepper presenter so the
1896
+ * organism's mobile-collapse panels gain swipe-driven navigation
1897
+ * without duplicating pointer handling. Applied via `hostDirectives`
1898
+ * on `<cngx-stepper>`; consumer-facing input `[mobileSwipe]` is
1899
+ * forwarded through the host metadata.
1900
+ *
1901
+ * Cascade for `swipeEnabled`: per-instance `[mobileSwipe]` ->
1902
+ * `CNGX_STEPPER_CONFIG.mobileSwipe` -> library default `true`.
1903
+ *
1904
+ * Direction routing is asymmetric, matching the presenter's existing
1905
+ * navigation surface: `left` -> `selectNext()` -> `select()` (linear
1906
+ * gate + commit window apply identically to a click); `right` ->
1907
+ * `selectPrevious()` (ungated direct back-move, same path as the
1908
+ * existing strip back-nav).
1909
+ *
1910
+ * @category common/stepper
1911
+ * @docsKind primary
1912
+ * @wcag AA
1913
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/swipe-nav.directive.ts
1914
+ * @since 0.1.0
1915
+ */
1916
+ declare class CngxStepperSwipeNav {
1917
+ /**
1918
+ * Per-instance opt-out for the built-in swipe navigation. `undefined`
1919
+ * defers to the config cascade.
1920
+ */
1921
+ readonly mobileSwipe: i0.InputSignal<boolean | undefined>;
1922
+ private readonly host;
1923
+ private readonly config;
1924
+ /** Resolved enabled flag (Input -> config -> default(true)). Boolean output, no `equal` fn required. */
1925
+ readonly swipeEnabled: i0.Signal<boolean>;
1926
+ /**
1927
+ * Route a swipe direction into the presenter. `left` and `right`
1928
+ * map onto `selectNext` and `selectPrevious`; vertical directions
1929
+ * are ignored.
1930
+ */
1931
+ handleSwipe(direction: SwipeDirection): void;
1932
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperSwipeNav, never>;
1933
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepperSwipeNav, "[cngxStepperSwipeNav]", never, { "mobileSwipe": { "alias": "mobileSwipe"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1934
+ }
1935
+
1936
+ /**
1937
+ * Minimal contract `CngxStepperCount` reads off the host. A full
1938
+ * {@link CngxStepperHost} satisfies it, but consumers can also supply
1939
+ * a narrower stub (useful in tests, custom layouts, or non-standard
1940
+ * step containers that surface just these two signals).
1941
+ *
1942
+ * @category common/stepper
1943
+ */
1944
+ interface CngxStepperCountHost {
1945
+ readonly activeStepIndex: Signal<number>;
1946
+ readonly stepsOnly: Signal<readonly CngxStepNode[]>;
1947
+ }
1948
+ /**
1949
+ * Reusable progress-hint atom for any stepper organism. Renders the
1950
+ * resolved `CngxStepperI18n.textStepperFormat(current, total)` string
1951
+ * inside a `<span>` and pipes the value through an `aria-live` region
1952
+ * so screen readers announce step transitions.
1953
+ *
1954
+ * The text shape is fully owned by the i18n format function - drop the
1955
+ * atom inside any `<cngx-stepper>` / `<cngx-mat-stepper>` /
1956
+ * `<cngx-progress-bar-stepper>` tree and override the format upstream
1957
+ * to change every instance at once:
1958
+ *
1959
+ * ```ts
1960
+ * provideStepperI18n(withStepperI18nLabels({
1961
+ * textStepperFormat: (c, t) => `${c}/${t} complete`,
1962
+ * }));
1963
+ * ```
1964
+ *
1965
+ * Canonical shapes the atom supports without any markup changes:
1966
+ * - `Step N of M` (default)
1967
+ * - `N/M complete`
1968
+ * - `N/M`
1969
+ * - `Math.round(c/t * 100)%`
1970
+ * - any consumer-defined string the closure returns.
1971
+ *
1972
+ * `[live]="false"` opts the atom out of the `aria-live` region when
1973
+ * the caption sits next to another live region (e.g. a stepper that
1974
+ * already mounts its own live announcer) to prevent double announces.
1975
+ *
1976
+ * @category common/stepper
1977
+ * @docsKind primary
1978
+ * @since 0.1.0
1979
+ * @relatedTo CngxStepperHost, CngxStepperI18n
1980
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-count/multi-instance-format-overrides</example-url>
1981
+ */
1982
+ declare class CngxStepperCount {
1983
+ /** When `true`, wraps the rendered string in an `aria-live="polite"` span. */
1984
+ readonly live: i0.InputSignal<boolean>;
1985
+ /**
1986
+ * Per-instance format override. Receives `(current, total)` where
1987
+ * `current` is the 1-based active step position and `total` is
1988
+ * `host.stepsOnly().length`. When omitted, the resolved
1989
+ * `CngxStepperI18n.textStepperFormat` is used so two siblings can
1990
+ * each show a different shape inside the same stepper tree.
1991
+ */
1992
+ readonly format: i0.InputSignal<((current: number, total: number) => string) | undefined>;
1993
+ /**
1994
+ * Explicit stepper-host reference. Set this when the atom sits
1995
+ * *outside* a `<cngx-stepper>` (e.g. in a sibling layout header)
1996
+ * by exporting the stepper as a template ref:
1997
+ * `<cngx-stepper #s="cngxStepper">` then `[host]="s.presenter"`.
1998
+ * When unset, the atom injects the ambient `CNGX_STEPPER_HOST` from
1999
+ * its DI tree. Accepts {@link CngxStepperCountHost} so a narrow stub
2000
+ * (active index + steps signal) also fits.
2001
+ */
2002
+ readonly host: i0.InputSignal<CngxStepperCountHost | null>;
2003
+ private readonly injectedHost;
2004
+ private readonly i18n;
2005
+ private readonly resolvedHost;
2006
+ /** Resolved caption - reactive on activeStepIndex / stepsOnly / format / i18n. */
2007
+ protected readonly label: Signal<string>;
2008
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperCount, never>;
2009
+ static ɵcmp: i0.ɵɵComponentDeclaration<CngxStepperCount, "cngx-stepper-count", never, { "live": { "alias": "live"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "host": { "alias": "host"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2010
+ }
2011
+
2012
+ /**
2013
+ * Turns any clickable element into a stepper "Back" control. Resolves
2014
+ * its host the same way `CngxStepperCount` does - an explicit `[host]`
2015
+ * input (for placement outside the stepper tree) falling back to the
2016
+ * ambient {@link CNGX_STEPPER_HOST}.
2017
+ *
2018
+ * `(click)` retreats via `selectPrevious()`. The control disables itself
2019
+ * when there is no earlier step (`!canGoPrevious()`) OR while a commit is
2020
+ * in flight (`busy()`): `selectPrevious()` writes `activeStepIndex`
2021
+ * directly, bypassing the commit controller, so disabling it during an
2022
+ * in-flight forward commit prevents a navigate-mid-commit race. The gate
2023
+ * is the host's `canGoPrevious` bound - never re-derived from `stepsOnly`.
2024
+ *
2025
+ * Reflects the disabled state via `aria-disabled` only - never native
2026
+ * `disabled` - so the control stays focusable and AT-reachable; the
2027
+ * `handleClick` guard blocks the action while disabled.
2028
+ *
2029
+ * ```html
2030
+ * <button cngxStepperPrevious>Back</button>
2031
+ * ```
2032
+ *
2033
+ * @category common/stepper
2034
+ * @docsKind primary
2035
+ * @wcag AA
2036
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/controls/stepper-previous.directive.ts
2037
+ * @since 0.1.0
2038
+ * @relatedTo CngxStepperNext, CngxStepperComplete, CngxStepperHost
2039
+ */
2040
+ declare class CngxStepperPrevious {
2041
+ /**
2042
+ * Explicit stepper-host reference for placement *outside* the stepper
2043
+ * tree (`[host]="s.presenter"`). When unset, the ambient
2044
+ * {@link CNGX_STEPPER_HOST} is injected.
2045
+ */
2046
+ readonly host: i0.InputSignal<CngxStepperHost | null>;
2047
+ private readonly injectedHost;
2048
+ private readonly resolvedHost;
2049
+ private readonly coPlacedAsyncClick;
2050
+ constructor();
2051
+ /** `true` when retreat is unavailable: no earlier step or commit busy. */
2052
+ protected readonly disabled: Signal<boolean>;
2053
+ /** @internal */
2054
+ protected handleClick(event: Event): void;
2055
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperPrevious, never>;
2056
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepperPrevious, "[cngxStepperPrevious]", ["cngxStepperPrevious"], { "host": { "alias": "host"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2057
+ }
2058
+
2059
+ /**
2060
+ * Turns any clickable element into a stepper "Continue" control. Same
2061
+ * host resolution as `CngxStepperCount` - explicit `[host]` input
2062
+ * falling back to the ambient {@link CNGX_STEPPER_HOST}.
2063
+ *
2064
+ * `(click)` advances via `selectNext()`. A turnkey re-entrancy guard
2065
+ * disables the control when there is no enabled next step
2066
+ * (`!canGoNext()`) OR while a commit is in flight (`busy()`) - an opt-in
2067
+ * guard a consumer forgets is a silent double-commit (Pillar 2). The
2068
+ * gate reads the host's `canGoNext` bound, which derives from the same
2069
+ * `select()` predicates, so the affordance can never drift from the
2070
+ * navigation it triggers.
2071
+ *
2072
+ * Reflects the disabled state via `aria-disabled` only - never native
2073
+ * `disabled` (which would steal focus, so AT could not reach the control
2074
+ * to learn it is at-a-bound / busy) and never `aria-busy` (that is
2075
+ * `CngxAsyncStatus`'s sole responsibility). The `handleClick` guard
2076
+ * blocks the action while disabled. Co-placing `[cngxAsyncClick]` here
2077
+ * (which also gates `aria-disabled` and adds native `disabled`) warns in
2078
+ * dev mode.
2079
+ *
2080
+ * ```html
2081
+ * <button cngxStepperNext>Continue</button>
2082
+ * ```
2083
+ *
2084
+ * @category common/stepper
2085
+ * @docsKind primary
2086
+ * @wcag AA
2087
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/controls/stepper-next.directive.ts
2088
+ * @since 0.1.0
2089
+ * @relatedTo CngxStepperPrevious, CngxStepperComplete, CngxAsyncStatus, CngxStepperHost
2090
+ */
2091
+ declare class CngxStepperNext {
2092
+ /**
2093
+ * Explicit stepper-host reference for placement *outside* the stepper
2094
+ * tree (`[host]="s.presenter"`). When unset, the ambient
2095
+ * {@link CNGX_STEPPER_HOST} is injected.
2096
+ */
2097
+ readonly host: i0.InputSignal<CngxStepperHost | null>;
2098
+ private readonly injectedHost;
2099
+ private readonly resolvedHost;
2100
+ private readonly coPlacedAsyncClick;
2101
+ /** `true` when advancing is unavailable: no enabled next step or commit busy. */
2102
+ protected readonly disabled: Signal<boolean>;
2103
+ constructor();
2104
+ /** @internal */
2105
+ protected handleClick(event: Event): void;
2106
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperNext, never>;
2107
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepperNext, "[cngxStepperNext]", ["cngxStepperNext"], { "host": { "alias": "host"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2108
+ }
2109
+
2110
+ /**
2111
+ * Turns any clickable element into a stepper "Finish" control. Unlike
2112
+ * `CngxStepperNext` (which *reflects* the commit state and advances),
2113
+ * the finish action *runs*: the directive composes `CngxAsyncClick` via
2114
+ * `hostDirectives`, so the runner owns the click lifecycle, `aria-busy`,
2115
+ * and the pending-disable exactly as it does on a standalone button. The
2116
+ * finish action is fed through the aliased `[cngxStepperComplete]` input.
2117
+ *
2118
+ * Resolves its host like the sibling controls - explicit `[host]` input
2119
+ * falling back to the ambient {@link CNGX_STEPPER_HOST}. {@link isActive}
2120
+ * exposes whether the active step is the last one, so a consumer renders
2121
+ * the finish control only on the final step. `(completed)` emits once
2122
+ * after the action resolves successfully.
2123
+ *
2124
+ * ```html
2125
+ * @if (s.presenter.isLastStep()) {
2126
+ * <button [cngxStepperComplete]="submit" (completed)="done()">Finish</button>
2127
+ * }
2128
+ * ```
2129
+ *
2130
+ * @category common/stepper
2131
+ * @docsKind primary
2132
+ * @wcag AA
2133
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/controls/stepper-complete.directive.ts
2134
+ * @since 0.1.0
2135
+ * @relatedTo CngxStepperNext, CngxStepperPrevious, CngxAsyncClick, CngxStepperHost
2136
+ */
2137
+ declare class CngxStepperComplete {
2138
+ /**
2139
+ * Explicit stepper-host reference for placement *outside* the stepper
2140
+ * tree (`[host]="s.presenter"`). When unset, the ambient
2141
+ * {@link CNGX_STEPPER_HOST} is injected.
2142
+ */
2143
+ readonly host: i0.InputSignal<CngxStepperHost | null>;
2144
+ /**
2145
+ * Emits once per `pending → success` transition of the finish action.
2146
+ * Does NOT re-emit when the `feedbackDuration` window resets the runner
2147
+ * back to idle - the transition tracker guards on the success edge only.
2148
+ */
2149
+ readonly completed: i0.OutputEmitterRef<void>;
2150
+ private readonly injectedHost;
2151
+ private readonly resolvedHost;
2152
+ private readonly runner;
2153
+ /** `true` when the active step is the last one - the finish step. */
2154
+ readonly isActive: Signal<boolean>;
2155
+ constructor();
2156
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperComplete, never>;
2157
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepperComplete, "[cngxStepperComplete]", ["cngxStepperComplete"], { "host": { "alias": "host"; "required": false; "isSignal": true; }; }, { "completed": "completed"; }, never, never, true, [{ directive: typeof i1.CngxAsyncClick; inputs: { "cngxAsyncClick": "cngxStepperComplete"; "feedbackDuration": "feedbackDuration"; "enabled": "enabled"; "succeededAnnouncement": "succeededAnnouncement"; "failedAnnouncement": "failedAnnouncement"; }; outputs: {}; }]>;
2158
+ }
2159
+
2160
+ /**
2161
+ * Builds a live delegating {@link CngxStepperHost} proxy over a supplier
2162
+ * signal. Every signal member is a `computed()` reading
2163
+ * `supplier()?.<member>()`, every method forwards to
2164
+ * `supplier()?.<method>(...)`. This is the spelled-out shape for
2165
+ * re-providing an input-derived host through DI - you cannot
2166
+ * `useExisting` an `input()` value, so the footer provides this proxy
2167
+ * once and it tracks whichever host the supplier currently resolves.
2168
+ *
2169
+ * **Null-supplier neutral set (the disabled-by-default contract).** When
2170
+ * the supplier resolves `null` (a standalone footer with neither `[host]`
2171
+ * nor an ambient stepper), every navigation affordance must render
2172
+ * *inert*, never falsely enabled: `canGoPrevious` / `canGoNext` collapse
2173
+ * to `false` so Back / Next render disabled, and every method is a no-op.
2174
+ *
2175
+ * `create*` pure factory - no injection context required (`computed()`
2176
+ * only). Single consumer (the footer); the surface is load-bearing, not
2177
+ * speculative.
2178
+ *
2179
+ * @category common/stepper
2180
+ * @since 0.1.0
2181
+ * @relatedTo CngxStepperFooter, CngxStepperHost
2182
+ */
2183
+ declare function createStepperHostProxy(supplier: () => CngxStepperHost | null): CngxStepperHost;
2184
+
888
2185
  /**
889
2186
  * Adapter between the lifted commit-controller and the stepper's
890
2187
  * action shape. The presenter delegates to `beginTransition` on
891
2188
  * every step change driven by `commitAction`.
2189
+ *
2190
+ * @category common/stepper
892
2191
  */
893
2192
  interface CngxStepperCommitHandler {
894
2193
  /**
@@ -906,6 +2205,8 @@ interface CngxStepperCommitHandler {
906
2205
  }
907
2206
  /**
908
2207
  * Options for {@link createStepperCommitHandler}.
2208
+ *
2209
+ * @category common/stepper
909
2210
  */
910
2211
  interface CngxStepperCommitHandlerOptions {
911
2212
  readonly controller: CngxCommitController<number>;
@@ -914,17 +2215,25 @@ interface CngxStepperCommitHandlerOptions {
914
2215
  * Build a stepper commit handler over an existing {@link CngxCommitController}.
915
2216
  * Resolves `Observable<boolean>` / `Promise<boolean>` / `boolean` returns into
916
2217
  * a unified `accept: boolean` outcome.
2218
+ *
2219
+ * @category common/stepper
917
2220
  */
918
2221
  declare function createStepperCommitHandler(opts: CngxStepperCommitHandlerOptions): CngxStepperCommitHandler;
919
2222
  /**
920
2223
  * Factory signature for {@link CngxStepperCommitHandler}. Override
921
2224
  * {@link CNGX_STEPPER_COMMIT_HANDLER_FACTORY} for retry-with-backoff,
922
2225
  * telemetry, or offline queues.
2226
+ *
2227
+ * @category common/stepper
923
2228
  */
924
2229
  type CngxStepperCommitHandlerFactory = (opts: CngxStepperCommitHandlerOptions) => CngxStepperCommitHandler;
925
2230
  /**
926
2231
  * DI token carrying the factory the presenter uses to allocate its commit
927
2232
  * handler. Symmetric to the select family's `CNGX_ARRAY_COMMIT_HANDLER_FACTORY`.
2233
+ *
2234
+ * @category common/stepper
2235
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/commit-handler.ts
2236
+ * @since 0.1.0
928
2237
  */
929
2238
  declare const CNGX_STEPPER_COMMIT_HANDLER_FACTORY: InjectionToken<CngxStepperCommitHandlerFactory>;
930
2239
 
@@ -933,6 +2242,8 @@ declare const CNGX_STEPPER_COMMIT_HANDLER_FACTORY: InjectionToken<CngxStepperCom
933
2242
  * config (`CNGX_STEPPER_CONFIG`) and i18n (`CNGX_STEPPER_I18N`). Future
934
2243
  * surfaces widen this union and dispatch via the hidden `_target`
935
2244
  * discriminator.
2245
+ *
2246
+ * @category common/stepper
936
2247
  */
937
2248
  type CngxStepperFeature = CngxStepperConfigFeature | CngxStepperI18nFeature;
938
2249
  /**
@@ -958,11 +2269,13 @@ type CngxStepperFeature = CngxStepperConfigFeature | CngxStepperI18nFeature;
958
2269
  * ],
959
2270
  * });
960
2271
  * ```
2272
+ *
2273
+ * @category common/stepper
961
2274
  */
962
2275
  declare function provideCngxStepper(...features: readonly CngxStepperFeature[]): EnvironmentProviders;
963
2276
  /**
964
2277
  * Component-scoped twin of {@link provideCngxStepper}. Spread into
965
- * `viewProviders` or `providers`. Same dispatch semantics — only the
2278
+ * `viewProviders` or `providers`. Same dispatch semantics - only the
966
2279
  * provider scope differs.
967
2280
  *
968
2281
  * ```ts
@@ -975,8 +2288,10 @@ declare function provideCngxStepper(...features: readonly CngxStepperFeature[]):
975
2288
  * ],
976
2289
  * })
977
2290
  * ```
2291
+ *
2292
+ * @category common/stepper
978
2293
  */
979
2294
  declare function provideCngxStepperAt(...features: readonly CngxStepperFeature[]): Provider[];
980
2295
 
981
- export { CNGX_STEPPER_COMMIT_HANDLER_FACTORY, CNGX_STEPPER_CONFIG, CNGX_STEPPER_GLYPHS, CNGX_STEPPER_HOST, CNGX_STEPPER_I18N, CNGX_STEP_GROUP_HOST, CNGX_STEP_PANEL_HOST, CngxStep, CngxStepBadge, CngxStepBusySpinner, CngxStepContent, CngxStepGroup, CngxStepGroupHeader, CngxStepIndicator, CngxStepLabel, CngxStepRejection, CngxStepperEmpty, CngxStepperPresenter, CngxStepperRouterSync, createStepperCommitHandler, createStepperTemplateBindings, flatStepsEqual, injectStepperConfig, injectStepperI18n, provideCngxStepper, provideCngxStepperAt, provideStepperConfig, provideStepperConfigAt, provideStepperI18n, withStepBadgeTemplate, withStepBusySpinnerTemplate, withStepGroupHeaderTemplate, withStepIndicatorTemplate, withStepRejectionTemplate, withStepperAriaLabels, withStepperCommitMode, withStepperDefaultOrientation, withStepperEmptyTemplate, withStepperFallbackLabels, withStepperI18nLabels, withStepperLinear, withStepperRouterSync };
982
- export type { CngxStepBadgeContext, CngxStepBusySpinnerContext, CngxStepContentContext, CngxStepGroupHeaderContext, CngxStepGroupHost, CngxStepIndicatorContext, CngxStepLabelContext, CngxStepNode, CngxStepPanelHost, CngxStepRegistration, CngxStepRejectionContext, CngxStepStatus, CngxStepperAriaLabels, CngxStepperCommitAction, CngxStepperCommitHandler, CngxStepperCommitHandlerFactory, CngxStepperCommitHandlerOptions, CngxStepperConfig, CngxStepperConfigFeature, CngxStepperFallbackLabels, CngxStepperFeature, CngxStepperHost, CngxStepperI18n, CngxStepperI18nFeature, CngxStepperTemplateBindings, CngxStepperTemplateBindingsOptions, CngxStepperTemplates };
2296
+ export { CNGX_STEPPER_COMMIT_HANDLER_FACTORY, CNGX_STEPPER_CONFIG, CNGX_STEPPER_GLYPHS, CNGX_STEPPER_HOST, CNGX_STEPPER_I18N, CNGX_STEP_GROUP_HOST, CNGX_STEP_PANEL_HOST, CngxDotStepperDot, CngxStep, CngxStepBadge, CngxStepBusySpinner, CngxStepContent, CngxStepError, CngxStepGroup, CngxStepGroupHeader, CngxStepIndicator, CngxStepLabel, CngxStepRejection, CngxStepperComplete, CngxStepperCount, CngxStepperEmpty, CngxStepperNext, CngxStepperPresenter, CngxStepperPrevious, CngxStepperRouterSync, CngxStepperSwipeNav, STEPPER_DEFAULT_MOBILE_BREAKPOINT, createMobileViewportSignal, createStepperAnnouncementBuilders, createStepperCommitHandler, createStepperDisplayMode, createStepperHostAttrs, createStepperHostProxy, createStepperSlotContextBuilders, createStepperStateView, createStepperStripKeyboardNav, createStepperTemplateBindings, flatStepsEqual, injectStepperConfig, injectStepperI18n, provideCngxStepper, provideCngxStepperAt, provideStepperConfig, provideStepperConfigAt, provideStepperI18n, resolveStepperErrorSummary, resolveStepperStatusLabel, withDotStepperDotTemplate, withStepBadgeTemplate, withStepBusySpinnerTemplate, withStepErrorTemplate, withStepGroupHeaderTemplate, withStepIndicatorTemplate, withStepRejectionTemplate, withStepperAriaLabels, withStepperCommitMode, withStepperConnectors, withStepperDefaultOrientation, withStepperEmptyTemplate, withStepperFallbackLabels, withStepperHeaderNavigation, withStepperI18nLabels, withStepperLinear, withStepperMobileBreakpoint, withStepperMobileCollapse, withStepperMobileIndicatorPosition, withStepperMobileSwipe, withStepperRouterSync, withStepperSkin };
2297
+ export type { CngxDotStepperDotContext, CngxStepBadgeContext, CngxStepBusySpinnerContext, CngxStepContentContext, CngxStepErrorContext, CngxStepGroupHeaderContext, CngxStepGroupHost, CngxStepIndicatorContext, CngxStepLabelContext, CngxStepNode, CngxStepPanelHost, CngxStepRegistration, CngxStepRejectionContext, CngxStepStatus, CngxStepperAnnouncementBuilders, CngxStepperAnnouncementBuildersInputs, CngxStepperAriaLabels, CngxStepperCommitAction, CngxStepperCommitHandler, CngxStepperCommitHandlerFactory, CngxStepperCommitHandlerOptions, CngxStepperConfig, CngxStepperConfigFeature, CngxStepperCountHost, CngxStepperFallbackLabels, CngxStepperFeature, CngxStepperHeaderNavigation, CngxStepperHost, CngxStepperHostAttrs, CngxStepperHostAttrsInputs, CngxStepperI18n, CngxStepperI18nFeature, CngxStepperI18nOverrides, CngxStepperMobileCollapse, CngxStepperMobileIndicatorPosition, CngxStepperSkin, CngxStepperSlotContextBuilders, CngxStepperSlotContextBuildersInputs, CngxStepperStateView, CngxStepperStatusLabels, CngxStepperStripKeyboardNavOptions, CngxStepperTemplateBindings, CngxStepperTemplateBindingsOptions, CngxStepperTemplates };