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

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