@cngx/common 0.1.0-rc.8 → 0.3.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 (90) hide show
  1. package/a11y/README.md +15 -2
  2. package/button/README.md +258 -0
  3. package/command/README.md +42 -2
  4. package/data/README.md +15 -12
  5. package/fesm2022/cngx-common-a11y.mjs +1076 -319
  6. package/fesm2022/cngx-common-a11y.mjs.map +1 -1
  7. package/fesm2022/cngx-common-audio.mjs +99 -77
  8. package/fesm2022/cngx-common-audio.mjs.map +1 -1
  9. package/fesm2022/cngx-common-button.mjs +1084 -0
  10. package/fesm2022/cngx-common-button.mjs.map +1 -0
  11. package/fesm2022/cngx-common-card.mjs +138 -78
  12. package/fesm2022/cngx-common-card.mjs.map +1 -1
  13. package/fesm2022/cngx-common-chart.mjs +799 -327
  14. package/fesm2022/cngx-common-chart.mjs.map +1 -1
  15. package/fesm2022/cngx-common-command.mjs +101 -25
  16. package/fesm2022/cngx-common-command.mjs.map +1 -1
  17. package/fesm2022/cngx-common-data.mjs +861 -423
  18. package/fesm2022/cngx-common-data.mjs.map +1 -1
  19. package/fesm2022/cngx-common-dialog.mjs +198 -160
  20. package/fesm2022/cngx-common-dialog.mjs.map +1 -1
  21. package/fesm2022/cngx-common-display.mjs +693 -329
  22. package/fesm2022/cngx-common-display.mjs.map +1 -1
  23. package/fesm2022/cngx-common-interactive.mjs +7303 -2774
  24. package/fesm2022/cngx-common-interactive.mjs.map +1 -1
  25. package/fesm2022/cngx-common-layout.mjs +2174 -442
  26. package/fesm2022/cngx-common-layout.mjs.map +1 -1
  27. package/fesm2022/cngx-common-menu-button.mjs +557 -0
  28. package/fesm2022/cngx-common-menu-button.mjs.map +1 -0
  29. package/fesm2022/cngx-common-popover.mjs +2109 -557
  30. package/fesm2022/cngx-common-popover.mjs.map +1 -1
  31. package/fesm2022/cngx-common-stepper.mjs +548 -419
  32. package/fesm2022/cngx-common-stepper.mjs.map +1 -1
  33. package/fesm2022/cngx-common-tabs.mjs +442 -331
  34. package/fesm2022/cngx-common-tabs.mjs.map +1 -1
  35. package/fesm2022/cngx-common-timeline.mjs +44 -71
  36. package/fesm2022/cngx-common-timeline.mjs.map +1 -1
  37. package/fesm2022/cngx-common.mjs +10 -10
  38. package/fesm2022/cngx-common.mjs.map +1 -1
  39. package/interactive/README.md +30 -19
  40. package/layout/README.md +17 -1
  41. package/menu-button/README.md +234 -0
  42. package/package.json +31 -8
  43. package/popover/README.md +81 -4
  44. package/popover/tooltip-indicator.scss +52 -0
  45. package/schematics/collection.json +9 -0
  46. package/schematics/ng-add/index.js +9 -0
  47. package/schematics/ng-add/schema.json +96 -0
  48. package/schematics/package.json +3 -0
  49. package/stepper/README.md +5 -5
  50. package/theming/components/cngx-accordion.css +36 -7
  51. package/theming/components/cngx-async.css +185 -37
  52. package/theming/components/cngx-backdrop.css +3 -1
  53. package/theming/components/cngx-badge.css +20 -5
  54. package/theming/components/cngx-bottom-sheet.css +2 -0
  55. package/theming/components/cngx-breadcrumb.css +3 -1
  56. package/theming/components/cngx-button-group.css +325 -0
  57. package/theming/components/cngx-button-toggle.css +55 -23
  58. package/theming/components/cngx-button.css +975 -0
  59. package/theming/components/cngx-data-grid.css +2 -0
  60. package/theming/components/cngx-dialog.css +3 -1
  61. package/theming/components/cngx-divider.css +24 -9
  62. package/theming/components/cngx-drawer.css +153 -0
  63. package/theming/components/cngx-icon-glyph.css +76 -0
  64. package/theming/components/cngx-listbox.css +79 -25
  65. package/theming/components/cngx-menu.css +112 -52
  66. package/theming/components/cngx-nav.css +1220 -0
  67. package/theming/components/cngx-popover-sheet.css +434 -0
  68. package/theming/components/cngx-popover.css +37 -9
  69. package/theming/components/cngx-recycler-placeholder.css +2 -0
  70. package/theming/components/cngx-ripple.css +74 -16
  71. package/theming/components/cngx-sidebar.css +71 -0
  72. package/theming/components/cngx-slider.css +3 -1
  73. package/theming/components/cngx-tooltip.css +2 -0
  74. package/timeline/README.md +2 -2
  75. package/types/cngx-common-a11y.d.ts +488 -112
  76. package/types/cngx-common-audio.d.ts +60 -88
  77. package/types/cngx-common-button.d.ts +698 -0
  78. package/types/cngx-common-card.d.ts +104 -78
  79. package/types/cngx-common-chart.d.ts +677 -389
  80. package/types/cngx-common-command.d.ts +55 -41
  81. package/types/cngx-common-data.d.ts +506 -360
  82. package/types/cngx-common-dialog.d.ts +94 -127
  83. package/types/cngx-common-display.d.ts +475 -300
  84. package/types/cngx-common-interactive.d.ts +4383 -1721
  85. package/types/cngx-common-layout.d.ts +1399 -288
  86. package/types/cngx-common-menu-button.d.ts +382 -0
  87. package/types/cngx-common-popover.d.ts +990 -268
  88. package/types/cngx-common-stepper.d.ts +374 -465
  89. package/types/cngx-common-tabs.d.ts +309 -403
  90. package/types/cngx-common-timeline.d.ts +50 -109
@@ -1,25 +1,21 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Signal, InjectionToken, TemplateRef, OnInit, EnvironmentProviders, Provider, AfterContentInit, DestroyRef, Injector } from '@angular/core';
2
+ import { Signal, InjectionToken, TemplateRef, OnInit, EnvironmentProviders, Provider, AfterContentInit, Injector } from '@angular/core';
3
+ import { CngxTransitionOutcome, CngxCommitController } from '@cngx/common/data';
3
4
  import { CngxAsyncState, StatusTransition } from '@cngx/core/utils';
4
5
  import { Observable } from 'rxjs';
5
6
  import * as i1 from '@cngx/common/interactive';
6
7
  import { CngxErrorAggregatorContract, SwipeDirection } from '@cngx/common/interactive';
7
8
  import { CngxMessage } from '@cngx/core/i18n';
8
9
  import { CngxDirection } from '@cngx/core';
9
- import { CngxCommitController } from '@cngx/common/data';
10
10
 
11
11
  /**
12
12
  * Status enum for a single step. Driven by the presenter's commit-controller
13
13
  * lifecycle plus the optional `errorAggregator`.
14
- *
15
- * @category common/stepper
16
14
  */
17
15
  type CngxStepStatus = 'idle' | 'pending' | 'success' | 'error' | 'disabled' | 'busy';
18
16
  /**
19
17
  * Step-tree node. Either a terminal `step` (has its own panel) or a
20
18
  * `group` carrying nested children. Discriminated by `kind`.
21
- *
22
- * @category common/stepper
23
19
  */
24
20
  interface CngxStepNode {
25
21
  readonly id: string;
@@ -69,8 +65,6 @@ interface CngxStepRegistration {
69
65
  /**
70
66
  * Contract atoms see via {@link CNGX_STEPPER_HOST}. Mirrors the
71
67
  * directive's surface 1:1 - atoms never reach the concrete class.
72
- *
73
- * @category common/stepper
74
68
  */
75
69
  interface CngxStepperHost {
76
70
  readonly stepTree: Signal<readonly CngxStepNode[]>;
@@ -87,8 +81,6 @@ interface CngxStepperHost {
87
81
  * invariant, and a local re-filter breaks the shape-stable
88
82
  * short-circuit that downstream consumers rely on. Add lookup
89
83
  * helpers as methods on this contract rather than re-deriving.
90
- *
91
- * @category common/stepper
92
84
  */
93
85
  readonly stepsOnly: Signal<readonly CngxStepNode[]>;
94
86
  /**
@@ -102,8 +94,6 @@ interface CngxStepperHost {
102
94
  * projection, never re-derive it. Structural-equal via `flatStepsEqual`
103
95
  * (each retained node keeps its `flatSteps` `flatIndex`), so a
104
96
  * shape-stable re-emit short-circuits the strip render.
105
- *
106
- * @category common/stepper
107
97
  */
108
98
  readonly visibleStripNodes: Signal<readonly CngxStepNode[]>;
109
99
  readonly activeStepIndex: Signal<number>;
@@ -137,12 +127,20 @@ interface CngxStepperHost {
137
127
  */
138
128
  readonly canGoNext: Signal<boolean>;
139
129
  /**
140
- * `true` while a commit is in flight (`commitState.status() ===
141
- * 'pending'`). Drives the busy-disable on nav affordances. Keyed on
142
- * the strict `'pending'` status, consistent with the per-step busy
143
- * gate.
130
+ * `true` while a commit or the finish run is in flight: the commit
131
+ * (`commitState.status() === 'pending'`) or any source registered
132
+ * through {@link registerBusy}. Drives the busy-disable on nav
133
+ * affordances. Keyed on the strict `'pending'` status, consistent
134
+ * with the per-step busy gate.
144
135
  */
145
136
  readonly busy: Signal<boolean>;
137
+ /**
138
+ * Registers a run outside the commit (the `CngxStepperComplete`
139
+ * finish run) under `key`, so {@link busy} reads `true` while
140
+ * `pending()` does. Returns the release. Optional: a host without it
141
+ * reflects only its commit.
142
+ */
143
+ registerBusy?(key: string, pending: Signal<boolean>): () => void;
146
144
  /**
147
145
  * Label of the step {@link selectNext} would land on, or `undefined`
148
146
  * when none follows. Resolved through the enabled-step traversal so a
@@ -178,11 +176,22 @@ interface CngxStepperHost {
178
176
  */
179
177
  readonly commitTransition: StatusTransition;
180
178
  /**
181
- * Index of the most recently refused commit target, or `undefined`
182
- * when no rejection is pending. Set by the rejection arm of
183
- * `select()`; cleared by a successful re-pick of the same target
184
- * or via {@link clearLastFailed}. Drives strip rejection decoration
185
- * and the `commitRolledBackTo` chain in `liveAnnouncement`.
179
+ * Settle record of the most recent commit that did not land:
180
+ * `kind: 'refused'` when `commitAction` answered `false`, `'failed'`
181
+ * when it threw, rejected or errored; `index` is the rejected target,
182
+ * `sequence` is bumped once per settled refusal or failure. Kept
183
+ * through {@link clearLastFailed} (which only hides the marker), so the
184
+ * announcement record survives a cleared decoration; dropped by
185
+ * `reset()`. A refusal leaves `commitState` at `'idle'` with its data
186
+ * intact, so this is the only place a refusal is visible as such.
187
+ */
188
+ readonly lastOutcome: Signal<CngxTransitionOutcome | undefined>;
189
+ /**
190
+ * Index of the most recently rejected (refused or failed) commit
191
+ * target, or `undefined` when no rejection marker is shown. Derived
192
+ * from {@link lastOutcome}; cleared by a successful re-pick of the
193
+ * same target or via {@link clearLastFailed}. Drives strip rejection
194
+ * decoration and the `commitRolledBackTo` chain in `liveAnnouncement`.
186
195
  */
187
196
  readonly lastFailedIndex: Signal<number | undefined>;
188
197
  /**
@@ -206,8 +215,9 @@ interface CngxStepperHost {
206
215
  selectById(id: string): void;
207
216
  reset(): void;
208
217
  /**
209
- * Drop the persisted {@link lastFailedIndex} flag. Idempotent;
210
- * safe to wire to a Dismiss button or aggregator-cleared.
218
+ * Drop the persisted {@link lastFailedIndex} marker. Idempotent;
219
+ * safe to wire to a Dismiss button or aggregator-cleared. Leaves
220
+ * {@link lastOutcome} untouched.
211
221
  */
212
222
  clearLastFailed(): void;
213
223
  register(handle: CngxStepRegistration, parentId?: string | null): void;
@@ -224,10 +234,9 @@ interface CngxStepperHost {
224
234
  * Atoms inject `optional: true` and either register here or fall through
225
235
  * {@link CNGX_STEP_GROUP_HOST} when nested in a group.
226
236
  *
227
- * @category common/stepper
228
237
  * @wcag AA
229
238
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/stepper-host.token.ts
230
- * @since 0.1.0
239
+ * @since 0.3.0
231
240
  */
232
241
  declare const CNGX_STEPPER_HOST: InjectionToken<CngxStepperHost>;
233
242
 
@@ -237,9 +246,8 @@ declare const CNGX_STEPPER_HOST: InjectionToken<CngxStepperHost>;
237
246
  * The `Observable | Promise | sync` union matches every cngx
238
247
  * commit-action signature.
239
248
  *
240
- * @category common/stepper
241
249
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/presenter.directive.ts
242
- * @since 0.1.0
250
+ * @since 0.3.0
243
251
  */
244
252
  type CngxStepperCommitAction = (fromIndex: number, toIndex: number) => boolean | Promise<boolean> | Observable<boolean>;
245
253
  /**
@@ -253,22 +261,46 @@ type CngxStepperCommitAction = (fromIndex: number, toIndex: number) => boolean |
253
261
  * Sheriff: common Level 2. Pure directive - zero template, zero CSS.
254
262
  * Level-4 organisms compose this via `hostDirectives`.
255
263
  *
256
- * @category common/stepper
257
- * @docsKind primary
258
264
  * @wcag AA
259
265
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/presenter.directive.ts
260
- * @since 0.1.0
266
+ * @since 0.3.0
261
267
  * @relatedTo CngxStep, CngxStepGroup, CngxStepperRouterSync, CNGX_STEPPER_HOST, CNGX_STEPPER_CONFIG
262
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-commit-action/pessimistic-optimistic-commits-with-bridge-directives</example-url>
268
+ * <example-url>/#/ui/stepper/stepper-commit-action/pessimistic-optimistic-commits-with-bridge-directives</example-url>
263
269
  */
264
270
  declare class CngxStepperPresenter implements CngxStepperHost {
265
271
  private readonly config;
272
+ /**
273
+ * Zero-based index of the active step among the steps only (group nodes do not count), two-way bindable
274
+ * as `[(activeStepIndex)]`. Defaults to `0`. The presenter writes it on navigation, so under a
275
+ * `commitAction` in `'pessimistic'` mode it changes only after the action resolves `true`; reads are
276
+ * clamped to the registered step count.
277
+ */
266
278
  readonly activeStepIndex: i0.ModelSignal<number>;
279
+ /**
280
+ * Binding `[linear]`: when `true`, moving forward is refused while any enabled step from the active
281
+ * one up to the target is not in the `'success'` state. Unset, it resolves through `defaultLinear` of the stepper config and then
282
+ * `false`.
283
+ */
267
284
  readonly linearInput: i0.InputSignal<boolean | undefined>;
268
285
  readonly linear: Signal<boolean>;
286
+ /**
287
+ * Binding `[orientation]`: layout axis of the stepper, `'horizontal'` or `'vertical'`. Unset, it resolves
288
+ * through `defaultOrientation` of the stepper config and then `'horizontal'`. The organism mirrors the
289
+ * resolved value to `aria-orientation` and `data-orientation`.
290
+ */
269
291
  readonly orientationInput: i0.InputSignal<"horizontal" | "vertical" | undefined>;
270
292
  readonly orientation: Signal<"horizontal" | "vertical">;
293
+ /**
294
+ * Async guard run before a step change: it receives the origin and target index and resolves `true` to
295
+ * advance or `false` to refuse. Defaults to `null`, which makes every `select` a synchronous move.
296
+ * Navigating back with `selectPrevious` bypasses it.
297
+ */
271
298
  readonly commitAction: i0.InputSignal<CngxStepperCommitAction | null>;
299
+ /**
300
+ * Binding `[commitMode]`: whether `activeStepIndex` moves to the target before the `commitAction` resolves
301
+ * (`'optimistic'`, rolled back on refusal or failure) or only after it resolves `true` (`'pessimistic'`).
302
+ * Unset, it resolves through `defaultCommitMode` of the stepper config and then `'pessimistic'`.
303
+ */
272
304
  readonly commitModeInput: i0.InputSignal<"optimistic" | "pessimistic" | undefined>;
273
305
  readonly commitMode: Signal<"optimistic" | "pessimistic">;
274
306
  private readonly genericFactory;
@@ -289,9 +321,13 @@ declare class CngxStepperPresenter implements CngxStepperHost {
289
321
  * `linkedSignal` is shared across all consumers.
290
322
  */
291
323
  readonly commitTransition: StatusTransition;
292
- private readonly lastFailedIndexState;
324
+ private readonly lastOutcomeState;
325
+ private readonly clearedSequenceState;
326
+ private outcomeSequence;
293
327
  private lastCommittedIndex;
294
328
  private readonly originIndexDuringCommitState;
329
+ /** {@inheritDoc CngxStepperHost.lastOutcome} */
330
+ readonly lastOutcome: Signal<CngxTransitionOutcome | undefined>;
295
331
  /** {@inheritDoc CngxStepperHost.lastFailedIndex} */
296
332
  readonly lastFailedIndex: Signal<number | undefined>;
297
333
  /** {@inheritDoc CngxStepperHost.originIndexDuringCommit} */
@@ -365,6 +401,7 @@ declare class CngxStepperPresenter implements CngxStepperHost {
365
401
  readonly canGoNext: Signal<boolean>;
366
402
  /** {@inheritDoc CngxStepperHost.canGoPrevious} */
367
403
  readonly canGoPrevious: Signal<boolean>;
404
+ private readonly busySources;
368
405
  /** {@inheritDoc CngxStepperHost.busy} */
369
406
  readonly busy: Signal<boolean>;
370
407
  /** {@inheritDoc CngxStepperHost.nextStepLabel} */
@@ -374,7 +411,20 @@ declare class CngxStepperPresenter implements CngxStepperHost {
374
411
  constructor();
375
412
  private readonly registry;
376
413
  private readonly insertionOrder;
414
+ /**
415
+ * `CngxStepperHost` contract, called by `CngxStep` and `CngxStepGroup` in their `ngOnInit`, or by a
416
+ * `CngxStepGroup` on behalf of a nested child with its own id as `parentId`. Adds the node to the step
417
+ * tree in registration order; a second call with a known id replaces the stored handle and keeps its
418
+ * position. A group must register before its children.
419
+ */
377
420
  register(handle: CngxStepRegistration, parentId?: string | null): void;
421
+ /** {@inheritDoc CngxStepperHost.registerBusy} */
422
+ registerBusy(key: string, pending: Signal<boolean>): () => void;
423
+ /**
424
+ * `CngxStepperHost` contract, called from the destroy hook of `CngxStep` and `CngxStepGroup`. Removes the
425
+ * node from the step tree; when `handle` is passed and is no longer the stored one (it was replaced by a
426
+ * re-register), the call does nothing.
427
+ */
378
428
  unregister(id: string, handle?: CngxStepRegistration): void;
379
429
  private rebuildTree;
380
430
  /** {@inheritDoc CngxStepperHost.clearLastFailed} */
@@ -397,7 +447,16 @@ declare class CngxStepperPresenter implements CngxStepperHost {
397
447
  * never the internal gate.
398
448
  */
399
449
  canNavigateTo(index: number): boolean;
450
+ /**
451
+ * Moves to the step at the given step-only index, clamped to the registered range. Does nothing when the
452
+ * target is the active step, is disabled, or is blocked by `linear`. Without a `commitAction` the move is
453
+ * synchronous; with one, the move follows `commitMode`, and a newer call supersedes the pending one.
454
+ */
400
455
  select(index: number): void;
456
+ /**
457
+ * Moves to the next enabled step after the active one, through `select`. Does nothing when no enabled
458
+ * step follows; the `linear` gate and the `commitAction` apply as for any other forward move.
459
+ */
401
460
  selectNext(): void;
402
461
  /**
403
462
  * Ungated back-move. Supersedes an in-flight commit: the runner is
@@ -406,7 +465,15 @@ declare class CngxStepperPresenter implements CngxStepperHost {
406
465
  * they explicitly returned to.
407
466
  */
408
467
  selectPrevious(): void;
468
+ /**
469
+ * Moves to the step registered under the given id, through `select`. Group ids and unknown ids are
470
+ * ignored.
471
+ */
409
472
  selectById(id: string): void;
473
+ /**
474
+ * Returns to the first step without running the `commitAction`. Cancels a commit in flight and clears the
475
+ * origin, the rejection marker and the last outcome.
476
+ */
410
477
  reset(): void;
411
478
  /**
412
479
  * Cancels the in-flight commit and settles the state to idle. The
@@ -427,8 +494,6 @@ declare class CngxStepperPresenter implements CngxStepperHost {
427
494
  *
428
495
  * Surface is registration-only - `id` and `aggregatedStatus` are
429
496
  * concrete-class details, not part of the token contract.
430
- *
431
- * @category common/stepper
432
497
  */
433
498
  interface CngxStepGroupHost {
434
499
  register(handle: CngxStepRegistration): void;
@@ -439,9 +504,8 @@ interface CngxStepGroupHost {
439
504
  * DI token providing a `CngxStepGroup`'s contract to nested `CngxStep` atoms.
440
505
  * Steps inject this `optional: true` and fall back to {@link CNGX_STEPPER_HOST}.
441
506
  *
442
- * @category common/stepper
443
507
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step-group-host.token.ts
444
- * @since 0.1.0
508
+ * @since 0.3.0
445
509
  */
446
510
  declare const CNGX_STEP_GROUP_HOST: InjectionToken<CngxStepGroupHost>;
447
511
 
@@ -453,8 +517,6 @@ declare const CNGX_STEP_GROUP_HOST: InjectionToken<CngxStepGroupHost>;
453
517
  * `active` reflects `presenter.activeStepId`; `busy` mirrors
454
518
  * `presenter.intendedStepIndex` matching this step; `disabled` reads
455
519
  * `node.disabled()`.
456
- *
457
- * @category common/stepper
458
520
  */
459
521
  interface CngxStepLabelContext {
460
522
  readonly node: CngxStepNode;
@@ -467,8 +529,6 @@ interface CngxStepLabelContext {
467
529
  * Context delivered to `*cngxStepContent` templates. Mirrors
468
530
  * {@link CngxStepLabelContext} - content templates need the same
469
531
  * derivations to gate inner controls on `disabled` / `busy`.
470
- *
471
- * @category common/stepper
472
532
  */
473
533
  interface CngxStepContentContext {
474
534
  readonly node: CngxStepNode;
@@ -482,8 +542,6 @@ interface CngxStepContentContext {
482
542
  * consume to render the panel body. Narrower than the presenter's
483
543
  * full interface - just enough to project label / content templates
484
544
  * and react to active-step changes.
485
- *
486
- * @category common/stepper
487
545
  */
488
546
  interface CngxStepPanelHost {
489
547
  readonly flatSteps: Signal<readonly CngxStepNode[]>;
@@ -498,9 +556,8 @@ interface CngxStepPanelHost {
498
556
  * DI token providing the rendering-surface contract to organism shells
499
557
  * (`<cngx-stepper>`, `<cngx-mat-stepper>`) and consumer-authored skins.
500
558
  *
501
- * @category common/stepper
502
559
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step-panel-host.token.ts
503
- * @since 0.1.0
560
+ * @since 0.3.0
504
561
  */
505
562
  declare const CNGX_STEP_PANEL_HOST: InjectionToken<CngxStepPanelHost>;
506
563
 
@@ -514,8 +571,6 @@ declare const CNGX_STEP_PANEL_HOST: InjectionToken<CngxStepPanelHost>;
514
571
  * @internal Exported from `public-api.ts` so the cngx-stepper and
515
572
  * cngx-mat-stepper organisms share the comparator across the
516
573
  * secondary-entry boundary (Sheriff forbids deep-relative imports).
517
- *
518
- * @category common/stepper
519
574
  */
520
575
  declare function flatStepsEqual(a: readonly CngxStepNode[], b: readonly CngxStepNode[]): boolean;
521
576
 
@@ -531,12 +586,11 @@ declare function flatStepsEqual(a: readonly CngxStepNode[], b: readonly CngxStep
531
586
  * </ng-template>
532
587
  * ```
533
588
  *
534
- * @category common/stepper
535
589
  * @wcag AA
536
590
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step-content.directive.ts
537
- * @since 0.1.0
591
+ * @since 0.3.0
538
592
  * @relatedTo CngxStep, CngxStepLabel
539
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-step-content/typed-lazy-panels</example-url>
593
+ * <example-url>/#/ui/stepper/stepper-step-content/typed-lazy-panels</example-url>
540
594
  */
541
595
  declare class CngxStepContent {
542
596
  readonly templateRef: TemplateRef<CngxStepContentContext>;
@@ -556,12 +610,11 @@ declare class CngxStepContent {
556
610
  * </ng-template>
557
611
  * ```
558
612
  *
559
- * @category common/stepper
560
613
  * @wcag AA
561
614
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step-label.directive.ts
562
- * @since 0.1.0
615
+ * @since 0.3.0
563
616
  * @relatedTo CngxStep, CngxStepContent, CngxStepGroupHeader
564
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-custom-labels/mixing-code-label-code-input-with-code-cngxsteplabel-code-slot</example-url>
617
+ * <example-url>/#/ui/stepper/stepper-custom-labels/mixing-code-label-code-input-with-code-cngxsteplabel-code-slot</example-url>
565
618
  */
566
619
  declare class CngxStepLabel {
567
620
  readonly templateRef: TemplateRef<CngxStepLabelContext>;
@@ -577,21 +630,42 @@ declare class CngxStepLabel {
577
630
  * `state` is a pure `computed` over `[disabled]`, `[completed]`, and
578
631
  * the optional `[errorAggregator]`'s `hasError()`.
579
632
  *
580
- * @category common/stepper
581
- * @docsKind primary
582
633
  * @wcag AA
583
634
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step.directive.ts
584
- * @since 0.1.0
635
+ * @since 0.3.0
585
636
  * @relatedTo CngxStepGroup, CngxStepperPresenter, CngxStepLabel, CngxStepContent
586
637
  * @slot cngxStepLabel The step's own header label.
587
638
  * @slot cngxStepContent The step body, rendered lazily when the step activates.
588
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-step-content/typed-lazy-panels</example-url>
639
+ * <example-url>/#/ui/stepper/stepper-step-content/typed-lazy-panels</example-url>
640
+ * @axis level molecule
589
641
  */
590
642
  declare class CngxStep implements OnInit {
643
+ /**
644
+ * Identifier the step registers under with its host. Defaults to an auto-generated `cngx-step` uid.
645
+ * It is read once in `ngOnInit`, so a bound `[id]` must be set before init; the router-sync deep link
646
+ * and `selectById` match against this value.
647
+ */
591
648
  readonly id: i0.InputSignal<string>;
649
+ /**
650
+ * Marks the step as not navigable. Defaults to `false`. A disabled step reports `state` `'disabled'`,
651
+ * is skipped by next/previous navigation and refused by `select`, and the strip header reflects it
652
+ * through `aria-disabled`.
653
+ */
592
654
  readonly disabled: i0.InputSignal<boolean>;
655
+ /**
656
+ * Marks the step as done. Defaults to `false`. A completed step reports `state` `'success'` unless it is
657
+ * disabled or errored, and a `linear` stepper only lets the user move past steps that are in that state.
658
+ */
593
659
  readonly completed: i0.InputSignal<boolean>;
660
+ /**
661
+ * Header text of the step, shown in the strip and used for the next/previous step labels and the
662
+ * announcement phrases. Defaults to an empty string.
663
+ */
594
664
  readonly label: i0.InputSignal<string>;
665
+ /**
666
+ * Optional error aggregator whose `hasError()` puts the step into the `'error'` state, for forms with
667
+ * several error sources. Defaults to `undefined`. It composes with `[error]`: either one errors the step.
668
+ */
595
669
  readonly errorAggregator: i0.InputSignal<CngxErrorAggregatorContract | undefined>;
596
670
  /**
597
671
  * Direct error flag for the common "this step is invalid" case - no
@@ -633,19 +707,29 @@ declare class CngxStep implements OnInit {
633
707
  * `success` if all are success, `pending` if any is pending or busy,
634
708
  * otherwise `idle`.
635
709
  *
636
- * @category common/stepper
637
- * @docsKind primary
638
710
  * @wcag AA
639
711
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step-group.directive.ts
640
- * @since 0.1.0
712
+ * @since 0.3.0
641
713
  * @relatedTo CngxStep, CngxStepperPresenter, CngxStepGroupHeader
642
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-hierarchical/group-nested-steps-trailing-root-step</example-url>
643
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-hierarchical/expand-active-group-collapse</example-url>
644
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-hierarchical/group-collapse-summary-count</example-url>
714
+ * <example-url>/#/ui/stepper/stepper-hierarchical/group-nested-steps-trailing-root-step</example-url>
715
+ * <example-url>/#/ui/stepper/stepper-hierarchical/expand-active-group-collapse</example-url>
716
+ * <example-url>/#/ui/stepper/stepper-hierarchical/group-collapse-summary-count</example-url>
645
717
  */
646
718
  declare class CngxStepGroup implements CngxStepGroupHost, OnInit {
719
+ /**
720
+ * Identifier the group registers under with the root presenter. Defaults to an auto-generated
721
+ * `cngx-step-group` uid. It is read once in `ngOnInit`, so a bound `[id]` must be set before init;
722
+ * child steps are registered with this id as their parent.
723
+ */
647
724
  readonly id: i0.InputSignal<string>;
725
+ /**
726
+ * Disabled flag of the group node in the step tree. Defaults to `false`. It does not disable the child
727
+ * steps, which keep their own `[disabled]`.
728
+ */
648
729
  readonly disabled: i0.InputSignal<boolean>;
730
+ /**
731
+ * Header text of the group, rendered as the group label in the stepper strip. Defaults to an empty string.
732
+ */
649
733
  readonly label: i0.InputSignal<string>;
650
734
  private readonly config;
651
735
  private readonly childRegistry;
@@ -669,7 +753,17 @@ declare class CngxStepGroup implements CngxStepGroupHost, OnInit {
669
753
  readonly isCollapsed: Signal<boolean>;
670
754
  constructor();
671
755
  ngOnInit(): void;
756
+ /**
757
+ * `CngxStepGroupHost` contract, called by a nested `CngxStep` (or a nested `CngxStepGroup`) in its
758
+ * `ngOnInit`. Adds the handle to the group's own registry, which feeds `aggregatedStatus`, and forwards
759
+ * it to the root presenter with this group's id as parent.
760
+ */
672
761
  register(handle: CngxStepRegistration): void;
762
+ /**
763
+ * `CngxStepGroupHost` contract, called from the destroy hook of a nested `CngxStep` or
764
+ * `CngxStepGroup`. Removes the registration from the group's registry and from the root presenter; when
765
+ * `handle` is passed, only that exact instance is evicted.
766
+ */
673
767
  unregister(id: string, handle?: CngxStepRegistration): void;
674
768
  static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepGroup, never>;
675
769
  static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepGroup, "[cngxStepGroup]", ["cngxStepGroup"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -684,8 +778,6 @@ declare class CngxStepGroup implements CngxStepGroupHost, OnInit {
684
778
  * `status` mirrors `node.state()`. `busy` is the presenter-derived
685
779
  * "this step is the in-flight commit target" flag - independent of
686
780
  * `status === 'pending'` (which is the aggregate landmark state).
687
- *
688
- * @category common/stepper/slots
689
781
  */
690
782
  interface CngxStepIndicatorContext {
691
783
  /** Convenience alias for `position` - usable as `let-position` shorthand. */
@@ -721,13 +813,12 @@ interface CngxStepIndicatorContext {
721
813
  * </cngx-stepper>
722
814
  * ```
723
815
  *
724
- * @category common/stepper/slots
725
816
  * @wcag AA
726
817
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-indicator.directive.ts
727
- * @since 0.1.0
818
+ * @since 0.3.0
728
819
  * @relatedTo CngxStepBadge, CngxStepBusySpinner, CngxStepRejection, CngxStepGroupHeader
729
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/custom-indicator-glyph-via-code-cngxstepindicator-code</example-url>
730
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/cross-skin-indicator-override</example-url>
820
+ * <example-url>/#/ui/stepper/stepper-slot-overrides/custom-indicator-glyph-via-code-cngxstepindicator-code</example-url>
821
+ * <example-url>/#/ui/stepper/stepper-slot-overrides/cross-skin-indicator-override</example-url>
731
822
  */
732
823
  declare class CngxStepIndicator {
733
824
  readonly templateRef: TemplateRef<CngxStepIndicatorContext>;
@@ -740,8 +831,6 @@ declare class CngxStepIndicator {
740
831
  * badge inside a step button when `errorAggregator?.shouldShow()` is
741
832
  * truthy. Consumers swap the built-in `'!'` glyph for a counter pill
742
833
  * or branded marker; the visibility gate stays library-owned.
743
- *
744
- * @category common/stepper/slots
745
834
  */
746
835
  interface CngxStepBadgeContext {
747
836
  /** Aggregated error count for this step (≥ 1 when shown). */
@@ -753,7 +842,7 @@ interface CngxStepBadgeContext {
753
842
  * Slot directive for the error-badge template on `<cngx-stepper>`.
754
843
  * Discovered via `contentChild`; cascades through
755
844
  * `CNGX_STEPPER_CONFIG.templates.badge` before falling back to
756
- * `CNGX_STEPPER_GLYPHS.errorBadge`.
845
+ * the default alert icon (`CNGX_ICON_ALERT` from `@cngx/utils`).
757
846
  *
758
847
  * ```html
759
848
  * <cngx-stepper>
@@ -763,13 +852,12 @@ interface CngxStepBadgeContext {
763
852
  * </cngx-stepper>
764
853
  * ```
765
854
  *
766
- * @category common/stepper/slots
767
855
  * @wcag AA
768
856
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-badge.directive.ts
769
- * @since 0.1.0
857
+ * @since 0.3.0
770
858
  * @relatedTo CngxStepIndicator, CngxStepBusySpinner, CngxStepRejection
771
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/custom-error-badge-via-code-cngxstepbadge-code</example-url>
772
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-error-aggregation/per-step-error-badges</example-url>
859
+ * <example-url>/#/ui/stepper/stepper-slot-overrides/custom-error-badge-via-code-cngxstepbadge-code</example-url>
860
+ * <example-url>/#/ui/stepper/stepper-error-aggregation/per-step-error-badges</example-url>
773
861
  */
774
862
  declare class CngxStepBadge {
775
863
  readonly templateRef: TemplateRef<CngxStepBadgeContext>;
@@ -782,8 +870,6 @@ declare class CngxStepBadge {
782
870
  * pending-commit overlay on the in-flight target step. Renders only
783
871
  * when the step matches `presenter.intendedStepIndex()` with
784
872
  * `commitState.status() === 'pending'`.
785
- *
786
- * @category common/stepper/slots
787
873
  */
788
874
  interface CngxStepBusySpinnerContext {
789
875
  /** The step node carrying id / label / state signals. */
@@ -803,12 +889,11 @@ interface CngxStepBusySpinnerContext {
803
889
  * </cngx-stepper>
804
890
  * ```
805
891
  *
806
- * @category common/stepper/slots
807
892
  * @wcag AA
808
893
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-busy-spinner.directive.ts
809
- * @since 0.1.0
894
+ * @since 0.3.0
810
895
  * @relatedTo CngxStepIndicator, CngxStepBadge, CngxStepRejection
811
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/custom-busy-spinner-via-code-cngxstepbusyspinner-code</example-url>
896
+ * <example-url>/#/ui/stepper/stepper-slot-overrides/custom-busy-spinner-via-code-cngxstepbusyspinner-code</example-url>
812
897
  */
813
898
  declare class CngxStepBusySpinner {
814
899
  readonly templateRef: TemplateRef<CngxStepBusySpinnerContext>;
@@ -822,12 +907,14 @@ declare class CngxStepBusySpinner {
822
907
  * the tabs `cngxTabRejectionIcon` slot. Renders only when
823
908
  * `presenter.lastFailedIndex()` matches the step's flat-index.
824
909
  *
910
+ * `reason` tells the two commit outcomes apart: `'refused'` when the
911
+ * commit action answered `false`, `'failed'` when it threw, rejected or
912
+ * errored. Both render the slot; pick a glyph or copy per reason.
913
+ *
825
914
  * `originLabel` is the safe-harbour step's label, derived from
826
915
  * `presenter.originIndexDuringCommit()`. May be `undefined` when the
827
916
  * origin index is out of range (synchronous-rejection edge case);
828
917
  * gate richer UI on its presence.
829
- *
830
- * @category common/stepper/slots
831
918
  */
832
919
  interface CngxStepRejectionContext {
833
920
  /** Flat-index of the rejected step (`presenter.lastFailedIndex()`). */
@@ -836,12 +923,15 @@ interface CngxStepRejectionContext {
836
923
  readonly originLabel: string | undefined;
837
924
  /** The rejected step node carrying id / label / state signals. */
838
925
  readonly node: CngxStepNode;
926
+ /** Why the commit did not land (`presenter.lastOutcome().kind`). */
927
+ readonly reason: 'refused' | 'failed';
839
928
  }
840
929
  /**
841
930
  * Slot directive for the rejection-decoration template on
842
931
  * `<cngx-stepper>`. Discovered via `contentChild`; cascades through
843
932
  * `CNGX_STEPPER_CONFIG.templates.rejection` before falling back to
844
- * `CNGX_STEPPER_GLYPHS.rejectionIcon`.
933
+ * the default icon (`CNGX_ICON_ALERT` on a failed commit, `CNGX_ICON_BAN` on
934
+ * a refused one, from `@cngx/utils`).
845
935
  *
846
936
  * Symmetric context shape with the upcoming tabs `cngxTabRejectionIcon`
847
937
  * slot so consumer templates port directly between the two families.
@@ -857,12 +947,11 @@ interface CngxStepRejectionContext {
857
947
  * </cngx-stepper>
858
948
  * ```
859
949
  *
860
- * @category common/stepper/slots
861
950
  * @wcag AA
862
951
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-rejection.directive.ts
863
- * @since 0.1.0
952
+ * @since 0.3.0
864
953
  * @relatedTo CngxStepBadge, CngxStepIndicator, CngxStepBusySpinner
865
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/rejection-decoration-via-code-cngxsteprejection-code</example-url>
954
+ * <example-url>/#/ui/stepper/stepper-slot-overrides/rejection-decoration-via-code-cngxsteprejection-code</example-url>
866
955
  */
867
956
  declare class CngxStepRejection {
868
957
  readonly templateRef: TemplateRef<CngxStepRejectionContext>;
@@ -882,8 +971,6 @@ declare class CngxStepRejection {
882
971
  * that renders `{{ message }}` always shows a non-empty reason.
883
972
  * `errorLabels` / `announcement` expose the richer aggregator surface
884
973
  * for consumers that want a list or the full SR phrase.
885
- *
886
- * @category common/stepper/slots
887
974
  */
888
975
  interface CngxStepErrorContext {
889
976
  /** The errored step node carrying id / label / state signals. */
@@ -917,10 +1004,9 @@ interface CngxStepErrorContext {
917
1004
  * </cngx-stepper>
918
1005
  * ```
919
1006
  *
920
- * @category common/stepper/slots
921
1007
  * @wcag AA
922
1008
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-error.directive.ts
923
- * @since 0.1.0
1009
+ * @since 0.3.0
924
1010
  * @relatedTo CngxStepRejection, CngxStepBadge, CngxStep
925
1011
  */
926
1012
  declare class CngxStepError {
@@ -938,8 +1024,6 @@ declare class CngxStepError {
938
1024
  * `kind === 'group'` (the slot only fires for group nodes).
939
1025
  * `expanded` is reserved for future collapsible groups - passed `true`
940
1026
  * today; declaring it now avoids a breaking change later.
941
- *
942
- * @category common/stepper/slots
943
1027
  */
944
1028
  interface CngxStepGroupHeaderContext {
945
1029
  /** The group node carrying id / label / state / children signals. */
@@ -963,12 +1047,11 @@ interface CngxStepGroupHeaderContext {
963
1047
  * </cngx-stepper>
964
1048
  * ```
965
1049
  *
966
- * @category common/stepper/slots
967
1050
  * @wcag AA
968
1051
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-group-header.directive.ts
969
- * @since 0.1.0
1052
+ * @since 0.3.0
970
1053
  * @relatedTo CngxStepGroup, CngxStepIndicator, CngxStepLabel
971
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/custom-group-header-via-code-cngxstepgroupheader-code</example-url>
1054
+ * <example-url>/#/ui/stepper/stepper-slot-overrides/custom-group-header-via-code-cngxstepgroupheader-code</example-url>
972
1055
  */
973
1056
  declare class CngxStepGroupHeader {
974
1057
  readonly templateRef: TemplateRef<CngxStepGroupHeaderContext>;
@@ -994,12 +1077,11 @@ declare class CngxStepGroupHeader {
994
1077
  * </cngx-stepper>
995
1078
  * ```
996
1079
  *
997
- * @category common/stepper/slots
998
1080
  * @wcag AA
999
1081
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/stepper-empty.directive.ts
1000
- * @since 0.1.0
1082
+ * @since 0.3.0
1001
1083
  * @relatedTo CngxStepIndicator, CngxStepGroupHeader
1002
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-slot-overrides/empty-state-placeholder-via-code-cngxstepperempty-code</example-url>
1084
+ * <example-url>/#/ui/stepper/stepper-slot-overrides/empty-state-placeholder-via-code-cngxstepperempty-code</example-url>
1003
1085
  */
1004
1086
  declare class CngxStepperEmpty {
1005
1087
  readonly templateRef: TemplateRef<void>;
@@ -1009,17 +1091,15 @@ declare class CngxStepperEmpty {
1009
1091
 
1010
1092
  /**
1011
1093
  * Context passed to the `*cngxDotStepperDot` template. Drives the dot
1012
- * body inside `<cngx-dot-stepper>`. The `<span class="cngx-dot-stepper__dot">`
1013
- * shell - `role="img"`, `aria-current`, `aria-label`, class
1014
- * modifiers - stays library-owned; only the dot body content becomes
1094
+ * body inside `<cngx-dot-stepper>` and inside the dots mobile-collapse
1095
+ * branch of `<cngx-stepper>`. The dot shell - role, `aria-current`,
1096
+ * `aria-label`, class modifiers - stays library-owned; only the dot body content becomes
1015
1097
  * overrideable so consumers can swap the default empty body for an
1016
1098
  * icon, glyph, or branded indicator.
1017
1099
  *
1018
1100
  * Smaller than {@link CngxStepIndicatorContext} on purpose - the dot
1019
1101
  * stepper does not surface step status/busy state visually, so the
1020
1102
  * context strips to the four fields a consumer actually needs.
1021
- *
1022
- * @category common/stepper/slots
1023
1103
  */
1024
1104
  interface CngxDotStepperDotContext {
1025
1105
  /** Convenience alias for `index` - usable as `let-index` shorthand. */
@@ -1034,7 +1114,8 @@ interface CngxDotStepperDotContext {
1034
1114
  readonly completed: boolean;
1035
1115
  }
1036
1116
  /**
1037
- * Slot directive for the dot-body template on `<cngx-dot-stepper>`.
1117
+ * Slot directive for the dot-body template on `<cngx-dot-stepper>` and on
1118
+ * `<cngx-stepper>` (dots mobile-collapse branch, `mobileCollapse: 'dots'`).
1038
1119
  * Discovered via `contentChild`; cascades through
1039
1120
  * `CNGX_STEPPER_CONFIG.templates.dotStepperDot` before falling back to
1040
1121
  * the built-in empty body (the span itself paints the dot fill via CSS).
@@ -1053,12 +1134,11 @@ interface CngxDotStepperDotContext {
1053
1134
  * </cngx-dot-stepper>
1054
1135
  * ```
1055
1136
  *
1056
- * @category common/stepper/slots
1057
1137
  * @wcag AA
1058
1138
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/dot-stepper-dot.directive.ts
1059
- * @since 0.1.0
1139
+ * @since 0.3.0
1060
1140
  * @relatedTo CngxStepIndicator, CngxStepBadge, CngxStepBusySpinner, CngxStepRejection
1061
- * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/icon-dots-via-code-cngxdotstepperdot-code</example-url>
1141
+ * <example-url>/#/ui/stepper/dot-stepper/icon-dots-via-code-cngxdotstepperdot-code</example-url>
1062
1142
  */
1063
1143
  declare class CngxDotStepperDot {
1064
1144
  readonly templateRef: TemplateRef<CngxDotStepperDotContext>;
@@ -1066,24 +1146,9 @@ declare class CngxDotStepperDot {
1066
1146
  static ɵdir: i0.ɵɵDirectiveDeclaration<CngxDotStepperDot, "ng-template[cngxDotStepperDot]", ["cngxDotStepperDot"], {}, {}, never, never, true, never>;
1067
1147
  }
1068
1148
 
1069
- /**
1070
- * Aria-label overrides for the stepper landmark region. Library
1071
- * defaults are English; locales come from consumer overrides.
1072
- *
1073
- * Per-step navigation labels (`previousStep`, `nextStep`) live in
1074
- * {@link CngxStepperI18n} - SR phrasing, not landmark naming.
1075
- * Splitting the surfaces avoids a dual-override path for the same string.
1076
- *
1077
- * @category common/stepper
1078
- */
1079
- interface CngxStepperAriaLabels {
1080
- readonly stepperRegion?: string;
1081
- }
1082
1149
  /**
1083
1150
  * Fallback labels for derived strings (group descriptors, badge SR
1084
1151
  * announcements). English defaults; consumer overrides per locale.
1085
- *
1086
- * @category common/stepper
1087
1152
  */
1088
1153
  interface CngxStepperFallbackLabels {
1089
1154
  readonly groupRoleDescription?: string;
@@ -1093,8 +1158,6 @@ interface CngxStepperFallbackLabels {
1093
1158
  * Per-slot template overrides for `<cngx-stepper>`. Middle tier of
1094
1159
  * the 3-stage cascade: per-instance directive > this field > built-in
1095
1160
  * markup. Apply via the `with*Template` feature builders below.
1096
- *
1097
- * @category common/stepper
1098
1161
  */
1099
1162
  interface CngxStepperTemplates {
1100
1163
  readonly indicator?: TemplateRef<CngxStepIndicatorContext>;
@@ -1112,8 +1175,6 @@ interface CngxStepperTemplates {
1112
1175
  * slots, same ARIA, same keyboard behaviour, and only redirects CSS via
1113
1176
  * the `[data-skin]` host attribute. The Material twin
1114
1177
  * (`<cngx-mat-stepper>`) ignores this setting.
1115
- *
1116
- * @category common/stepper
1117
1178
  */
1118
1179
  type CngxStepperSkin = 'classic' | 'linear-minimal' | 'stripe-status-rich' | 'path-chevron' | 'pill-segment' | 'chips' | 'breadcrumb';
1119
1180
  /**
@@ -1125,8 +1186,6 @@ type CngxStepperSkin = 'classic' | 'linear-minimal' | 'stripe-status-rich' | 'pa
1125
1186
  * The width itself is not configurable - it is a `@container` rule in
1126
1187
  * `stepper-base.css`, overridable in consumer CSS. This setting picks
1127
1188
  * *what* the strip collapses into, not *where*.
1128
- *
1129
- * @category common/stepper
1130
1189
  */
1131
1190
  type CngxStepperMobileCollapse = 'text' | 'dots' | 'off';
1132
1191
  /**
@@ -1137,8 +1196,6 @@ type CngxStepperMobileCollapse = 'text' | 'dots' | 'off';
1137
1196
  * is free click-through, `linear=true` is backward-to-visited only,
1138
1197
  * with linear-unreachable headers marked `aria-disabled`). There is no
1139
1198
  * discrete `'free'` value - `'free'` is `'visited'` + `linear=false`.
1140
- *
1141
- * @category common/stepper
1142
1199
  */
1143
1200
  type CngxStepperHeaderNavigation = 'none' | 'visited';
1144
1201
  /**
@@ -1149,8 +1206,6 @@ type CngxStepperHeaderNavigation = 'none' | 'visited';
1149
1206
  * the browser-native baseline. Orthogonal to the `mobileCollapse` axis;
1150
1207
  * the two never edit each other. The Material twin (`[cngxMatStepper]`)
1151
1208
  * ignores this setting.
1152
- *
1153
- * @category common/stepper
1154
1209
  */
1155
1210
  type CngxStepperGroupCollapse = 'expand-active' | 'off';
1156
1211
  /**
@@ -1159,8 +1214,6 @@ type CngxStepperGroupCollapse = 'expand-active' | 'off';
1159
1214
  * completed/total steps; `'count'` shows the step count; `'status'`
1160
1215
  * shows a status dot coloured by the group's rolled-up state; `'off'`
1161
1216
  * shows the bare label. Only ever rendered on a collapsed group header.
1162
- *
1163
- * @category common/stepper
1164
1217
  */
1165
1218
  type CngxStepperGroupSummary = 'progress' | 'count' | 'status' | 'off';
1166
1219
  /**
@@ -1170,22 +1223,8 @@ type CngxStepperGroupSummary = 'progress' | 'count' | 'status' | 'off';
1170
1223
  * label kept); `'comfortable'` (default) keeps full labels at every
1171
1224
  * width. Orthogonal to `mobileCollapse` and `groupCollapse`; the
1172
1225
  * Material twin ignores this setting.
1173
- *
1174
- * @category common/stepper
1175
1226
  */
1176
1227
  type CngxStepperDensity = 'comfortable' | 'auto';
1177
- /**
1178
- * Per-step px thresholds the `density: 'auto'` ladder reacts to.
1179
- * `compact` is the minimum px per step that keeps full labels; below
1180
- * `minimal` px per step the strip drops to indicators-only. `compact`
1181
- * must exceed `minimal`.
1182
- *
1183
- * @category common/stepper
1184
- */
1185
- interface CngxStepperDensityBreakpoints {
1186
- readonly compact: number;
1187
- readonly minimal: number;
1188
- }
1189
1228
  /**
1190
1229
  * Where the mobile auto-collapse indicator (text caption or dot row)
1191
1230
  * sits relative to the active step's panel content under narrow
@@ -1193,25 +1232,12 @@ interface CngxStepperDensityBreakpoints {
1193
1232
  * `'bottom'` flips it below so the user reads content first and the
1194
1233
  * navigation cue sits at the thumb zone. Ignored when the classic
1195
1234
  * strip is on screen (`displayMode === 'classic'`).
1196
- *
1197
- * @category common/stepper
1198
1235
  */
1199
1236
  type CngxStepperMobileIndicatorPosition = 'top' | 'bottom';
1200
- /**
1201
- * Default per-step px thresholds for the `density: 'auto'` ladder. The
1202
- * literal lives on a single exported const so the runtime resolver, the
1203
- * config default, and any JSDoc cross-references stay in lockstep.
1204
- * Consumers override via {@link withStepperDensity}'s second argument.
1205
- *
1206
- * @category common/stepper
1207
- */
1208
- declare const STEPPER_DEFAULT_DENSITY_BREAKPOINTS: CngxStepperDensityBreakpoints;
1209
1237
  /**
1210
1238
  * Stepper config surface. Resolution priority: per-instance Input
1211
1239
  * > `provideStepperConfigAt` (viewProviders) > `provideStepperConfig`
1212
1240
  * (root) > library default. Canonical cngx config shape.
1213
- *
1214
- * @category common/stepper
1215
1241
  */
1216
1242
  interface CngxStepperConfig {
1217
1243
  readonly defaultOrientation?: 'horizontal' | 'vertical';
@@ -1244,17 +1270,12 @@ interface CngxStepperConfig {
1244
1270
  readonly groupCollapseSummary?: CngxStepperGroupSummary;
1245
1271
  /**
1246
1272
  * Space-driven density policy for the classic strip. `'auto'`
1247
- * degrades labels on the strip's own container width; `'comfortable'`
1273
+ * shrinks the labels in flow (a cqi budget under `[data-density-auto]`)
1274
+ * instead of overflowing the strip; `'comfortable'`
1248
1275
  * (default) keeps full labels. Orthogonal to `mobileCollapse`. Apply
1249
1276
  * app-wide via {@link withStepperDensity}.
1250
1277
  */
1251
1278
  readonly density?: CngxStepperDensity;
1252
- /**
1253
- * Per-step px thresholds for the `density: 'auto'` ladder. Default
1254
- * {@link STEPPER_DEFAULT_DENSITY_BREAKPOINTS}. Override via
1255
- * {@link withStepperDensity}'s second argument.
1256
- */
1257
- readonly densityBreakpoints?: CngxStepperDensityBreakpoints;
1258
1279
  /**
1259
1280
  * Opt-in connector rail between adjacent step indicators on the
1260
1281
  * classic skin. Off by default. The rule is double-scoped on
@@ -1279,8 +1300,6 @@ interface CngxStepperConfig {
1279
1300
  * classic strip and on the Material twin (`<cngx-mat-stepper>`).
1280
1301
  */
1281
1302
  readonly mobileSwipe?: boolean;
1282
- /** Landmark labels; a `Signal` switches the language at runtime. */
1283
- readonly ariaLabels?: CngxStepperAriaLabels | Signal<CngxStepperAriaLabels>;
1284
1303
  /** Role descriptions; a `Signal` switches the language at runtime. */
1285
1304
  readonly fallbackLabels?: CngxStepperFallbackLabels | Signal<CngxStepperFallbackLabels>;
1286
1305
  readonly templates?: CngxStepperTemplates;
@@ -1290,18 +1309,15 @@ interface CngxStepperConfig {
1290
1309
  * library defaults; override via {@link provideStepperConfig} (root)
1291
1310
  * or {@link provideStepperConfigAt} (component scope).
1292
1311
  *
1293
- * @category common/stepper
1294
1312
  * @wcag AA
1295
1313
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/stepper-config.ts
1296
- * @since 0.1.0
1314
+ * @since 0.3.0
1297
1315
  */
1298
1316
  declare const CNGX_STEPPER_CONFIG: InjectionToken<CngxStepperConfig>;
1299
1317
  /**
1300
1318
  * Feature signature - each `with*` builder reduces over the config.
1301
1319
  * Hidden `_target: 'config'` discriminator routes through the family
1302
1320
  * aggregator {@link provideCngxStepper}.
1303
- *
1304
- * @category common/stepper
1305
1321
  */
1306
1322
  type CngxStepperConfigFeature = ((config: CngxStepperConfig) => CngxStepperConfig) & {
1307
1323
  readonly _target: 'config';
@@ -1309,15 +1325,11 @@ type CngxStepperConfigFeature = ((config: CngxStepperConfig) => CngxStepperConfi
1309
1325
  /**
1310
1326
  * Override the default orientation. Per-instance `[orientation]`
1311
1327
  * Input still wins; this only moves the cascade default.
1312
- *
1313
- * @category common/stepper
1314
1328
  */
1315
1329
  declare function withStepperDefaultOrientation(orientation: 'horizontal' | 'vertical'): CngxStepperConfigFeature;
1316
1330
  /**
1317
1331
  * Override the default linear-progression setting. Per-instance
1318
1332
  * `[linear]` Input still wins.
1319
- *
1320
- * @category common/stepper
1321
1333
  */
1322
1334
  declare function withStepperLinear(linear: boolean): CngxStepperConfigFeature;
1323
1335
  /**
@@ -1325,16 +1337,12 @@ declare function withStepperLinear(linear: boolean): CngxStepperConfigFeature;
1325
1337
  * `'optimistic'` advances on action dispatch and rolls back on error;
1326
1338
  * `'pessimistic'` waits for success. Per-instance `[commitMode]`
1327
1339
  * Input still wins.
1328
- *
1329
- * @category common/stepper
1330
1340
  */
1331
1341
  declare function withStepperCommitMode(mode: 'optimistic' | 'pessimistic'): CngxStepperConfigFeature;
1332
1342
  /**
1333
1343
  * Configure router synchronisation for the active step. `mode` chooses
1334
1344
  * the URL surface (URL fragment or query parameter); `param` names the
1335
1345
  * key (default `'step'`).
1336
- *
1337
- * @category common/stepper
1338
1346
  */
1339
1347
  declare function withStepperRouterSync(mode: 'fragment' | 'queryParam', param?: string): CngxStepperConfigFeature;
1340
1348
  /**
@@ -1343,8 +1351,6 @@ declare function withStepperRouterSync(mode: 'fragment' | 'queryParam', param?:
1343
1351
  * moves the cascade default. Structure, slots, ARIA, and keyboard
1344
1352
  * behaviour are identical across skins - only the `[data-skin]` host
1345
1353
  * attribute changes the CSS layer that paints the strip.
1346
- *
1347
- * @category common/stepper
1348
1354
  */
1349
1355
  declare function withStepperSkin(skin: CngxStepperSkin): CngxStepperConfigFeature;
1350
1356
  /**
@@ -1355,8 +1361,6 @@ declare function withStepperSkin(skin: CngxStepperSkin): CngxStepperConfigFeatur
1355
1361
  * `[data-skin='classic']`; the four other skins each ship their own
1356
1362
  * inter-step decoration and ignore this flag. Per-instance
1357
1363
  * `[connectors]` Input still wins.
1358
- *
1359
- * @category common/stepper
1360
1364
  */
1361
1365
  declare function withStepperConnectors(on: boolean): CngxStepperConfigFeature;
1362
1366
  /**
@@ -1366,8 +1370,6 @@ declare function withStepperConnectors(on: boolean): CngxStepperConfigFeature;
1366
1370
  * `<cngx-text-stepper>`, `'dots'` renders `<cngx-dot-stepper>`, `'off'`
1367
1371
  * keeps the classic strip. The Material twin `<cngx-mat-stepper>` ignores
1368
1372
  * this setting.
1369
- *
1370
- * @category common/stepper
1371
1373
  */
1372
1374
  declare function withStepperMobileCollapse(mode: CngxStepperMobileCollapse): CngxStepperConfigFeature;
1373
1375
  /**
@@ -1377,8 +1379,6 @@ declare function withStepperMobileCollapse(mode: CngxStepperMobileCollapse): Cng
1377
1379
  * reads first and the navigation cue sits at thumb height. Per-
1378
1380
  * instance `[mobileIndicatorPosition]` on `<cngx-stepper>` still
1379
1381
  * wins.
1380
- *
1381
- * @category common/stepper
1382
1382
  */
1383
1383
  declare function withStepperMobileIndicatorPosition(position: CngxStepperMobileIndicatorPosition): CngxStepperConfigFeature;
1384
1384
  /**
@@ -1386,8 +1386,6 @@ declare function withStepperMobileIndicatorPosition(position: CngxStepperMobileI
1386
1386
  * in mobile-collapse mode. Default `true` - the `'dots'` and `'text'`
1387
1387
  * variants read as carousels, so users expect to swipe. Per-instance
1388
1388
  * `[mobileSwipe]` Input still wins; the classic strip is unaffected.
1389
- *
1390
- * @category common/stepper
1391
1389
  */
1392
1390
  declare function withStepperMobileSwipe(enabled: boolean): CngxStepperConfigFeature;
1393
1391
  /**
@@ -1396,8 +1394,6 @@ declare function withStepperMobileSwipe(enabled: boolean): CngxStepperConfigFeat
1396
1394
  * navigation); `'visited'` (library default) keeps the headers as
1397
1395
  * focusable buttons whose reachability folds into the `linear` axis.
1398
1396
  * Per-instance `[headerNavigation]` Input still wins.
1399
- *
1400
- * @category common/stepper
1401
1397
  */
1402
1398
  declare function withStepperHeaderNavigation(mode: CngxStepperHeaderNavigation): CngxStepperConfigFeature;
1403
1399
  /**
@@ -1407,8 +1403,6 @@ declare function withStepperHeaderNavigation(mode: CngxStepperHeaderNavigation):
1407
1403
  * holding the active step; `'off'` (library default) keeps the full
1408
1404
  * strip. Orthogonal to the `mobileCollapse` axis. The Material twin
1409
1405
  * ignores this setting.
1410
- *
1411
- * @category common/stepper
1412
1406
  */
1413
1407
  declare function withStepperGroupCollapse(mode: CngxStepperGroupCollapse): CngxStepperConfigFeature;
1414
1408
  /**
@@ -1417,64 +1411,42 @@ declare function withStepperGroupCollapse(mode: CngxStepperGroupCollapse): CngxS
1417
1411
  * shows completed/total steps; `'count'` the step count; `'status'` a
1418
1412
  * status dot coloured by the group's rolled-up state; `'off'` the bare
1419
1413
  * label. No effect unless `groupCollapse` is `'expand-active'`.
1420
- *
1421
- * @category common/stepper
1422
1414
  */
1423
1415
  declare function withStepperGroupCollapseSummary(mode: CngxStepperGroupSummary): CngxStepperConfigFeature;
1424
1416
  /**
1425
1417
  * Set the app-wide space-driven density policy for the classic
1426
- * `<cngx-stepper>` strip. `'auto'` degrades labels on the strip's own
1427
- * container width (full -> compact -> minimal); `'comfortable'`
1428
- * (library default) keeps full labels at every width. The optional
1429
- * second argument overrides the per-step px thresholds (default
1430
- * {@link STEPPER_DEFAULT_DENSITY_BREAKPOINTS}). Orthogonal to the
1431
- * `mobileCollapse` axis; the Material twin ignores this setting.
1432
- *
1433
- * @category common/stepper
1418
+ * `<cngx-stepper>` strip. `'auto'` sets `[data-density-auto]`, under
1419
+ * which the labels shrink in flow within a cqi budget (the step furthest
1420
+ * from the active one gives way first) instead of overflowing the strip;
1421
+ * `'comfortable'` (library default) keeps full labels at every width.
1422
+ * Orthogonal to the `mobileCollapse` axis; the Material twin ignores this
1423
+ * setting.
1434
1424
  */
1435
- declare function withStepperDensity(mode: CngxStepperDensity, breakpoints?: CngxStepperDensityBreakpoints): CngxStepperConfigFeature;
1436
- /**
1437
- * Merge ARIA labels into the cascade. Keys not provided keep their
1438
- * library defaults; per-instance overrides on the stepper still win.
1439
- * Pass a `Signal` to switch the language at runtime.
1440
- *
1441
- * @category common/stepper
1442
- */
1443
- declare function withStepperAriaLabels(labels: CngxStepperAriaLabels | Signal<CngxStepperAriaLabels>): CngxStepperConfigFeature;
1425
+ declare function withStepperDensity(mode: CngxStepperDensity): CngxStepperConfigFeature;
1444
1426
  /**
1445
1427
  * Merge fallback role descriptions (`groupRoleDescription` /
1446
1428
  * `stepRoleDescription`) into the cascade. These feed the strip's
1447
1429
  * `aria-roledescription` attributes when the consumer supplies none.
1448
1430
  * Pass a `Signal` to switch the language at runtime.
1449
- *
1450
- * @category common/stepper
1451
1431
  */
1452
1432
  declare function withStepperFallbackLabels(labels: CngxStepperFallbackLabels | Signal<CngxStepperFallbackLabels>): CngxStepperConfigFeature;
1453
1433
  /**
1454
1434
  * Override the default `*cngxStepIndicator` template app-wide.
1455
1435
  * Per-instance directive still wins; this only moves the cascade
1456
1436
  * middle tier.
1457
- *
1458
- * @category common/stepper
1459
1437
  */
1460
1438
  declare function withStepIndicatorTemplate(template: TemplateRef<CngxStepIndicatorContext>): CngxStepperConfigFeature;
1461
1439
  /**
1462
1440
  * Override the default `*cngxStepBadge` template app-wide.
1463
- *
1464
- * @category common/stepper
1465
1441
  */
1466
1442
  declare function withStepBadgeTemplate(template: TemplateRef<CngxStepBadgeContext>): CngxStepperConfigFeature;
1467
1443
  /**
1468
1444
  * Override the default `*cngxStepBusySpinner` template app-wide.
1469
- *
1470
- * @category common/stepper
1471
1445
  */
1472
1446
  declare function withStepBusySpinnerTemplate(template: TemplateRef<CngxStepBusySpinnerContext>): CngxStepperConfigFeature;
1473
1447
  /**
1474
1448
  * Override the default `*cngxStepRejection` template app-wide.
1475
1449
  * Symmetric with the upcoming tabs `cngxTabRejectionIcon` (Phase 4).
1476
- *
1477
- * @category common/stepper
1478
1450
  */
1479
1451
  declare function withStepRejectionTemplate(template: TemplateRef<CngxStepRejectionContext>): CngxStepperConfigFeature;
1480
1452
  /**
@@ -1482,37 +1454,28 @@ declare function withStepRejectionTemplate(template: TemplateRef<CngxStepRejecti
1482
1454
  * renders the per-step validation reason on the skins with a label area
1483
1455
  * (classic / stripe-status-rich). Per-instance directive still wins;
1484
1456
  * this moves the cascade middle tier.
1485
- *
1486
- * @category common/stepper
1487
1457
  */
1488
1458
  declare function withStepErrorTemplate(template: TemplateRef<CngxStepErrorContext>): CngxStepperConfigFeature;
1489
1459
  /**
1490
1460
  * Override the default `*cngxStepGroupHeader` template app-wide.
1491
- *
1492
- * @category common/stepper
1493
1461
  */
1494
1462
  declare function withStepGroupHeaderTemplate(template: TemplateRef<CngxStepGroupHeaderContext>): CngxStepperConfigFeature;
1495
1463
  /**
1496
1464
  * Override the default `*cngxStepperEmpty` template app-wide.
1497
- *
1498
- * @category common/stepper
1499
1465
  */
1500
1466
  declare function withStepperEmptyTemplate(template: TemplateRef<void>): CngxStepperConfigFeature;
1501
1467
  /**
1502
- * Override the default `*cngxDotStepperDot` template app-wide. The
1503
- * `<cngx-dot-stepper>` variant resolves the cascade per dot:
1504
- * per-instance directive > this feature > built-in empty body
1505
- * (the dot fill is painted by `.cngx-dot-stepper__dot` regardless).
1506
- *
1507
- * @category common/stepper
1468
+ * Override the default `*cngxDotStepperDot` template app-wide. Both dot
1469
+ * hosts resolve the cascade per dot - `<cngx-dot-stepper>` and the dots
1470
+ * mobile-collapse branch of `<cngx-stepper>`: per-instance directive >
1471
+ * this feature > built-in empty body (the dot fill is painted by the dot
1472
+ * element's CSS regardless).
1508
1473
  */
1509
1474
  declare function withDotStepperDotTemplate(template: TemplateRef<CngxDotStepperDotContext>): CngxStepperConfigFeature;
1510
1475
  /**
1511
1476
  * Root-level provider for the stepper config. Apply once in the
1512
1477
  * application providers array. Sibling of `provideTabsConfig` /
1513
1478
  * `provideSelectConfig`.
1514
- *
1515
- * @category common/stepper
1516
1479
  */
1517
1480
  declare function provideStepperConfig(...features: readonly CngxStepperConfigFeature[]): EnvironmentProviders;
1518
1481
  /**
@@ -1529,14 +1492,10 @@ declare function provideStepperConfig(...features: readonly CngxStepperConfigFea
1529
1492
  * viewProviders: [...provideStepperConfigAt(withStepperLinear(true))],
1530
1493
  * })
1531
1494
  * ```
1532
- *
1533
- * @category common/stepper
1534
1495
  */
1535
1496
  declare function provideStepperConfigAt(...features: readonly CngxStepperConfigFeature[]): Provider[];
1536
1497
  /**
1537
1498
  * Inject the resolved stepper config in an injection context.
1538
- *
1539
- * @category common/stepper
1540
1499
  */
1541
1500
  declare function injectStepperConfig(): CngxStepperConfig;
1542
1501
 
@@ -1545,8 +1504,6 @@ declare function injectStepperConfig(): CngxStepperConfig;
1545
1504
  * the `contentChild()` queries (NG8110 - must run in component
1546
1505
  * injection context) and the resolved {@link CngxStepperConfig}; this
1547
1506
  * factory absorbs the 3-stage cascade per slot key.
1548
- *
1549
- * @category common/stepper/slots
1550
1507
  */
1551
1508
  interface CngxStepperTemplateBindingsOptions {
1552
1509
  readonly indicatorSlot: Signal<CngxStepIndicator | undefined>;
@@ -1557,14 +1514,14 @@ interface CngxStepperTemplateBindingsOptions {
1557
1514
  readonly errorSlot?: Signal<CngxStepError | undefined>;
1558
1515
  readonly groupHeaderSlot: Signal<CngxStepGroupHeader | undefined>;
1559
1516
  readonly emptySlot: Signal<CngxStepperEmpty | undefined>;
1517
+ /** Optional - only hosts with a dots branch query `*cngxDotStepperDot`; without it the config template still applies. */
1518
+ readonly dotSlot?: Signal<CngxDotStepperDot | undefined>;
1560
1519
  readonly config: CngxStepperConfig;
1561
1520
  }
1562
1521
  /**
1563
1522
  * Output of {@link createStepperTemplateBindings}. One resolved
1564
1523
  * `Signal<TemplateRef | null>` per slot - `null` falls through to the
1565
1524
  * organism's built-in default markup.
1566
- *
1567
- * @category common/stepper/slots
1568
1525
  */
1569
1526
  interface CngxStepperTemplateBindings {
1570
1527
  readonly indicator: Signal<TemplateRef<CngxStepIndicatorContext> | null>;
@@ -1574,6 +1531,7 @@ interface CngxStepperTemplateBindings {
1574
1531
  readonly stepError: Signal<TemplateRef<CngxStepErrorContext> | null>;
1575
1532
  readonly groupHeader: Signal<TemplateRef<CngxStepGroupHeaderContext> | null>;
1576
1533
  readonly empty: Signal<TemplateRef<void> | null>;
1534
+ readonly dot: Signal<TemplateRef<CngxDotStepperDotContext> | null>;
1577
1535
  }
1578
1536
  /**
1579
1537
  * Wires the 3-stage template cascade for the `<cngx-stepper>` skin
@@ -1586,34 +1544,9 @@ interface CngxStepperTemplateBindings {
1586
1544
  *
1587
1545
  * Tabs has no parallel slot surface yet - see
1588
1546
  * `stepper-accepted-debt §3` for the planned Phase-4 closure.
1589
- *
1590
- * @category common/stepper/slots
1591
1547
  */
1592
1548
  declare function createStepperTemplateBindings(opts: CngxStepperTemplateBindingsOptions): CngxStepperTemplateBindings;
1593
1549
 
1594
- /**
1595
- * Default glyphs for `<cngx-stepper>` skin slots. Used when neither a
1596
- * per-instance slot directive nor `CNGX_STEPPER_CONFIG.templates.<key>`
1597
- * overrides the built-in span. Sibling of `CNGX_SELECT_GLYPHS` /
1598
- * `CNGX_TABS_GLYPHS`.
1599
- *
1600
- * Exported with `@internal` so the organism (and mat-twin) can share
1601
- * the literals across the secondary-entry boundary that Sheriff
1602
- * forbids deep-relative imports across. Consumers customise via
1603
- * `*cngxStep*` slots or `withStep*Template` features.
1604
- *
1605
- * @internal
1606
- * @category common/stepper
1607
- * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/glyphs.ts
1608
- * @since 0.1.0
1609
- */
1610
- declare const CNGX_STEPPER_GLYPHS: {
1611
- /** Default visual for `*cngxStepBadge` when no override is bound. */
1612
- readonly errorBadge: "!";
1613
- /** Default visual for `*cngxStepRejection` when no override is bound. */
1614
- readonly rejectionIcon: "!";
1615
- };
1616
-
1617
1550
  /**
1618
1551
  * URL deep-linking for the stepper. Bidirectional sync between
1619
1552
  * `activeStepId` and a URL fragment / query-param. Opt-in via
@@ -1625,16 +1558,25 @@ declare const CNGX_STEPPER_GLYPHS: {
1625
1558
  * `Router` is optional - without `@angular/router` the directive
1626
1559
  * dev-warns once and becomes a no-op.
1627
1560
  *
1628
- * @category common/stepper
1629
- * @docsKind primary
1630
1561
  * @wcag AA
1631
1562
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/router-sync.directive.ts
1632
- * @since 0.1.0
1563
+ * @since 0.3.0
1633
1564
  * @relatedTo CngxStepperPresenter, CNGX_STEPPER_CONFIG
1634
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-router-sync/deep-linking-with-fragment-queryparam-modes</example-url>
1565
+ * <example-url>/#/ui/stepper/stepper-router-sync/deep-linking-with-fragment-queryparam-modes</example-url>
1635
1566
  */
1636
1567
  declare class CngxStepperRouterSync implements AfterContentInit {
1568
+ /**
1569
+ * Binding `[mode]`: where the active step id is kept in the URL, `'fragment'` (`#step=customer`) or
1570
+ * `'queryParam'` (`?step=customer`). Unset, it resolves through `routerSyncMode` of the stepper config
1571
+ * and then `'fragment'`. A change after init applies to the next URL write or read and leaves the
1572
+ * previous key in the URL.
1573
+ */
1637
1574
  readonly modeInput: i0.InputSignal<"fragment" | "queryParam" | undefined>;
1575
+ /**
1576
+ * Binding `[paramName]`: name of the fragment or query key that carries the step id. Unset, it resolves
1577
+ * through `routerSyncParam` of the stepper config and then `'step'`. A change after init applies to the next URL write or read and leaves the
1578
+ * previous key in the URL.
1579
+ */
1638
1580
  readonly paramNameInput: i0.InputSignal<string | undefined>;
1639
1581
  private readonly config;
1640
1582
  readonly mode: i0.Signal<"fragment" | "queryParam">;
@@ -1685,30 +1627,28 @@ declare class CngxStepperRouterSync implements AfterContentInit {
1685
1627
  /**
1686
1628
  * The status-pill words of the stepper section.
1687
1629
  *
1688
- * @category common/stepper/i18n
1689
- * @since 0.1.0
1630
+ * @since 0.3.0
1690
1631
  */
1691
1632
  interface CngxStepperStatusLanguage {
1692
1633
  readonly done: string;
1693
1634
  readonly inProgress: string;
1694
1635
  readonly upNext: string;
1695
1636
  readonly errored: string;
1637
+ /** The status word of a step whose change the commit action refused. */
1638
+ readonly refused: string;
1696
1639
  }
1697
1640
  /**
1698
1641
  * The stepper section of a {@link CngxLanguagePack}: the copy of
1699
1642
  * `@cngx/common/stepper` and of the steppers in `@cngx/ui/stepper` and
1700
1643
  * `@cngx/ui/mat-stepper`. It feeds `CNGX_STEPPER_I18N` and the copy keys of
1701
- * `CNGX_STEPPER_CONFIG` (`ariaLabels`, `fallbackLabels`). Messages use
1644
+ * `CNGX_STEPPER_CONFIG` (`fallbackLabels`). Messages use
1702
1645
  * `{name}` placeholders; a plural message picks its form from `{count}`.
1703
1646
  *
1704
- * @category common/stepper/i18n
1705
- * @since 0.1.0
1647
+ * @since 0.3.0
1706
1648
  * @relatedTo CNGX_STEPPER_I18N, CNGX_STEPPER_CONFIG
1707
1649
  */
1708
1650
  interface CngxStepperLanguageSection {
1709
- /** Accessible name of the stepper landmark. */
1710
- readonly stepperRegion: string;
1711
- /** Last-tier landmark label and role description, used when the config keys are unset. */
1651
+ /** Accessible name of the stepper. */
1712
1652
  readonly stepperLabel: string;
1713
1653
  /** `aria-roledescription` of the stepper organism. */
1714
1654
  readonly stepRoleDescription: string;
@@ -1731,6 +1671,12 @@ interface CngxStepperLanguageSection {
1731
1671
  readonly commitRolledBackTo: CngxMessage;
1732
1672
  /** `{base}`: the description of a rolled-back step, `{base}` being its name. */
1733
1673
  readonly stepRolledBack: CngxMessage;
1674
+ /** `{origin}`: announced when the commit action refuses a step change. */
1675
+ readonly commitRefused: CngxMessage;
1676
+ /** Announced when the commit action refuses a step change from an unlabelled step. */
1677
+ readonly commitRefusedGeneric: string;
1678
+ /** `{base}`: the description of a step whose change was refused, `{base}` being its name. */
1679
+ readonly stepRefused: CngxMessage;
1734
1680
  readonly statusLabels: CngxStepperStatusLanguage;
1735
1681
  /** `{current}`, `{count}`: the short progress caption. */
1736
1682
  readonly textStepperFormat: CngxMessage;
@@ -1749,8 +1695,7 @@ interface CngxStepperLanguageSection {
1749
1695
  * The English stepper section: the single source of the stepper's English
1750
1696
  * copy. `CNGX_STEPPER_I18N` and the `CNGX_STEPPER_CONFIG` labels default to it.
1751
1697
  *
1752
- * @category common/stepper/i18n
1753
- * @since 0.1.0
1698
+ * @since 0.3.0
1754
1699
  * @relatedTo CNGX_STEPPER_I18N
1755
1700
  */
1756
1701
  declare const CNGX_STEPPER_LANGUAGE_EN: CngxStepperLanguageSection;
@@ -1767,33 +1712,23 @@ declare module '@cngx/core/i18n' {
1767
1712
  * via {@link withStepperI18nLabels} - un-overridden keys keep their
1768
1713
  * English defaults. The same shape as the section's status words, declared
1769
1714
  * once as {@link CngxStepperStatusLanguage}.
1770
- *
1771
- * @category common/stepper/i18n
1772
1715
  */
1773
1716
  type CngxStepperStatusLabels = CngxStepperStatusLanguage;
1774
1717
  /**
1775
1718
  * Stepper i18n surface. Library defaults are English; locales come from
1776
1719
  * consumer overrides via {@link provideStepperI18n}. Sibling of
1777
1720
  * `CNGX_TABS_I18N` / `CNGX_CHART_I18N`.
1778
- *
1779
- * @category common/stepper/i18n
1780
1721
  */
1781
1722
  interface CngxStepperI18n {
1782
1723
  /**
1783
- * Last tier of the landmark `aria-label` and of the organism's
1784
- * `aria-roledescription`. The label applies only while
1785
- * `CNGX_STEPPER_CONFIG.ariaLabels.stepperRegion` (default `'Steps'`) is
1786
- * unset, the role description only while `fallbackLabels.stepRoleDescription`
1787
- * (default `'stepper'`) is unset. Localise both through
1788
- * `withStepperAriaLabels(...)` and `withStepperFallbackLabels(...)`.
1724
+ * Accessible name of the stepper; only a per-instance `[aria-label]` or
1725
+ * `[aria-labelledby]` overrides it.
1789
1726
  */
1790
1727
  readonly stepperLabel: string;
1791
1728
  /**
1792
1729
  * Landmark `aria-roledescription` for compact step-indicator
1793
1730
  * surfaces such as the dot stepper and the mobile-dot collapse
1794
1731
  * fallback. Mirrors the W3C APG step-indicator pattern.
1795
- *
1796
- * @category common/stepper/i18n
1797
1732
  */
1798
1733
  readonly stepIndicatorRoleDescription: string;
1799
1734
  /** `aria-roledescription` of a step group header. English `step group`. */
@@ -1834,6 +1769,25 @@ interface CngxStepperI18n {
1834
1769
  * the announcement has faded. Pillar 2.
1835
1770
  */
1836
1771
  readonly stepRolledBack: (base: string) => string;
1772
+ /**
1773
+ * Origin-aware refusal phrase. Read when the commit action answered
1774
+ * `false` and the origin label resolves. Receives the label of the step
1775
+ * the user stayed on, yields e.g. `Step change not allowed - stayed on
1776
+ * step "Customer".`. A refusal is not a failure, so it never reads the
1777
+ * failure copy ({@link commitRolledBackTo}, {@link commitFailedRetry}).
1778
+ */
1779
+ readonly commitRefused: (originLabel: string) => string;
1780
+ /**
1781
+ * Refusal phrase for an origin without a label. Twin of
1782
+ * {@link commitFailedRetry} for the refused outcome.
1783
+ */
1784
+ readonly commitRefusedGeneric: string;
1785
+ /**
1786
+ * Per-step `aria-describedby` text while the step carries the marker
1787
+ * of a refused change. Refused twin of {@link stepRolledBack}; same
1788
+ * `{base}` contract.
1789
+ */
1790
+ readonly stepRefused: (base: string) => string;
1837
1791
  /**
1838
1792
  * Per-state pill labels surfaced by the `stripe-status-rich` skin
1839
1793
  * (and any future skin / variant that paints a state pill). English
@@ -1846,8 +1800,6 @@ interface CngxStepperI18n {
1846
1800
  * step-count subtext and by `CngxTextStepper`. Receives the
1847
1801
  * 1-based current position and total step count; default
1848
1802
  * `(current, total) => 'Step ${current} of ${total}'`.
1849
- *
1850
- * @category common/stepper/i18n
1851
1803
  */
1852
1804
  readonly textStepperFormat: (current: number, total: number) => string;
1853
1805
  /** Collapsed-group SR phrase for `groupCollapseSummary: 'count'`. */
@@ -1871,8 +1823,6 @@ interface CngxStepperI18n {
1871
1823
  * `Partial<CngxStepperI18n>` for top-level keys, plus a nested partial
1872
1824
  * for {@link CngxStepperStatusLabels} so consumers can override one
1873
1825
  * pill label without restating the full status-label bundle.
1874
- *
1875
- * @category common/stepper/i18n
1876
1826
  */
1877
1827
  type CngxStepperI18nOverrides = Omit<Partial<CngxStepperI18n>, 'statusLabels'> & {
1878
1828
  readonly statusLabels?: Partial<CngxStepperStatusLabels>;
@@ -1885,18 +1835,15 @@ type CngxStepperI18nOverrides = Omit<Partial<CngxStepperI18n>, 'statusLabels'> &
1885
1835
  * {@link provideStepperI18n}; a `{ provide, useValue }` entry must supply a
1886
1836
  * `Signal<CngxStepperI18n>`.
1887
1837
  *
1888
- * @category common/stepper/i18n
1889
1838
  * @wcag AA
1890
1839
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/i18n/stepper-i18n.ts
1891
- * @since 0.1.0
1840
+ * @since 0.3.0
1892
1841
  */
1893
1842
  declare const CNGX_STEPPER_I18N: InjectionToken<Signal<CngxStepperI18n>>;
1894
1843
  /**
1895
1844
  * Feature shape consumed by {@link provideStepperI18n} and {@link provideCngxStepper}.
1896
1845
  * Hidden `_target: 'i18n'` discriminator routes through the family aggregator.
1897
1846
  * Sibling of `CngxTabsI18nFeature`.
1898
- *
1899
- * @category common/stepper/i18n
1900
1847
  */
1901
1848
  type CngxStepperI18nFeature = ((bundle: Signal<CngxStepperI18n>) => Signal<CngxStepperI18n>) & {
1902
1849
  readonly _target: 'i18n';
@@ -1906,9 +1853,7 @@ type CngxStepperI18nFeature = ((bundle: Signal<CngxStepperI18n>) => Signal<CngxS
1906
1853
  * the language pack's copy, or the English default. {@link CngxStepperStatusLabels} is merged
1907
1854
  * key-by-key so consumers can override one pill label without
1908
1855
  * restating the rest. Pass a `Signal` to switch the language at runtime.
1909
- * Sibling of `withStepperAriaLabels` / `withStepperFallbackLabels`.
1910
- *
1911
- * @category common/stepper/i18n
1856
+ * Sibling of `withStepperFallbackLabels`.
1912
1857
  */
1913
1858
  declare function withStepperI18nLabels(overrides: CngxStepperI18nOverrides | Signal<CngxStepperI18nOverrides>): CngxStepperI18nFeature;
1914
1859
  /**
@@ -1920,21 +1865,17 @@ declare function withStepperI18nLabels(overrides: CngxStepperI18nOverrides | Sig
1920
1865
  * bootstrapApplication(AppComponent, {
1921
1866
  * providers: [
1922
1867
  * provideStepperI18n(
1923
- * withStepperI18nLabels({ stepperLabel: 'Schrittfolge', previousStep: 'Vorheriger' }),
1868
+ * withStepperI18nLabels({ stepperLabel: 'Bestellschritte', previousStep: 'Vorheriger' }),
1924
1869
  * ),
1925
1870
  * ],
1926
1871
  * });
1927
1872
  * ```
1928
- *
1929
- * @category common/stepper/i18n
1930
1873
  */
1931
1874
  declare function provideStepperI18n(...features: readonly CngxStepperI18nFeature[]): Provider;
1932
1875
  /**
1933
1876
  * Inject the resolved stepper i18n bundle in an injection context. Read it
1934
1877
  * inside a `computed()`, template or handler so a language switch reaches
1935
1878
  * the label.
1936
- *
1937
- * @category common/stepper/i18n
1938
1879
  */
1939
1880
  declare function injectStepperI18n(): Signal<CngxStepperI18n>;
1940
1881
 
@@ -1945,16 +1886,19 @@ declare function injectStepperI18n(): Signal<CngxStepperI18n>;
1945
1886
  * no signal graph involvement.
1946
1887
  *
1947
1888
  * Resolution order:
1948
- * 1. `success` data-state -> `statusLabels.done`
1949
- * 2. `error` data-state -> `statusLabels.errored`
1950
- * 3. `aria-current="step"` -> `statusLabels.inProgress`
1951
- * 4. otherwise -> `statusLabels.upNext`
1889
+ * 1. `error` data-state -> `statusLabels.errored`
1890
+ * 2. a failed commit rejection -> `statusLabels.errored`
1891
+ * 3. a refused commit rejection -> `statusLabels.refused`
1892
+ * 4. `success` data-state -> `statusLabels.done`
1893
+ * 5. `aria-current="step"` -> `statusLabels.inProgress`
1894
+ * 6. otherwise -> `statusLabels.upNext`
1952
1895
  *
1953
- * Group nodes (non-step) return an empty string.
1896
+ * The rejection outranks `done` and the position words because it is the
1897
+ * most recent event on the step: a rejected step must never read "Up next".
1954
1898
  *
1955
- * @category common/stepper
1899
+ * Group nodes (non-step) return an empty string.
1956
1900
  */
1957
- declare function resolveStepperStatusLabel(node: CngxStepNode, i18n: CngxStepperI18n, isActive: boolean): string;
1901
+ declare function resolveStepperStatusLabel(node: CngxStepNode, i18n: CngxStepperI18n, isActive: boolean, rejection?: 'refused' | 'failed' | null): string;
1958
1902
 
1959
1903
  /**
1960
1904
  * Reads the stepper's collapse flag off its own container.
@@ -1971,7 +1915,6 @@ declare function resolveStepperStatusLabel(node: CngxStepNode, i18n: CngxStepper
1971
1915
  * on the stepper component is one; a bare call from a lifecycle hook is not.
1972
1916
  *
1973
1917
  * @param host The `<cngx-stepper>` host element, which is its own container.
1974
- * @category common/stepper
1975
1918
  * @relatedTo createStepperDisplayMode, injectContainerSize
1976
1919
  */
1977
1920
  declare function injectStepperCollapse(host: Element): Signal<boolean>;
@@ -1988,69 +1931,14 @@ declare function injectStepperCollapse(host: Element): Signal<boolean>;
1988
1931
  *
1989
1932
  * @param collapsed `true` while the container sits below the collapse rung.
1990
1933
  * @param mobileCollapse The configured collapse policy, read lazily.
1991
- * @category common/stepper
1992
1934
  */
1993
1935
  declare function createStepperDisplayMode(collapsed: Signal<boolean>, mobileCollapse: () => CngxStepperMobileCollapse | undefined): Signal<'classic' | 'text' | 'dots'>;
1994
1936
 
1995
- /**
1996
- * Resolved density rung for the classic `<cngx-stepper>` strip.
1997
- * `'full'` shows every label; `'compact'` ellipsis-truncates labels;
1998
- * `'minimal'` drops to indicators-only (the active step keeps its
1999
- * label). Orthogonal to the `mobileCollapse` display-mode union.
2000
- *
2001
- * @category common/stepper
2002
- */
2003
- type CngxStripDensity = 'full' | 'compact' | 'minimal';
2004
- /**
2005
- * Options for {@link createStripDensity}.
2006
- *
2007
- * @internal
2008
- */
2009
- interface CngxStripDensityOptions {
2010
- /** Strip container element whose width drives the density rung. */
2011
- readonly element: HTMLElement;
2012
- /** Current step-only count - the width budget is split across these. */
2013
- readonly stepCount: () => number;
2014
- /**
2015
- * Resolved density policy. Only `'auto'` degrades; `'comfortable'`
2016
- * (or `undefined`) short-circuits to `'full'`, preserving today's
2017
- * behaviour.
2018
- */
2019
- readonly density: () => 'comfortable' | 'auto' | undefined;
2020
- /**
2021
- * Per-step width thresholds in px. At or above `compact` px per step
2022
- * the strip stays `'full'`; at or above `minimal` it is `'compact'`;
2023
- * below `minimal` it is `'minimal'`. `compact` must exceed `minimal`.
2024
- */
2025
- readonly breakpoints: () => {
2026
- readonly compact: number;
2027
- readonly minimal: number;
2028
- };
2029
- readonly destroyRef: DestroyRef;
2030
- }
2031
- /**
2032
- * Resolves the classic strip's density rung from its own container
2033
- * width against the step count and two per-step px thresholds. Pure
2034
- * `create*` factory, sibling to `createStepperDisplayMode` - both derive
2035
- * a rung from the space the stepper was given and return a single
2036
- * `Signal`; this one measures, the other reads what CSS resolved.
2037
- *
2038
- * `'comfortable'` density short-circuits to `'full'` (no measurement
2039
- * dependency). Before the first measurement (`width === 0`) and for an
2040
- * empty strip the rung is `'full'`, so the strip never flashes
2041
- * `'minimal'` on mount.
2042
- *
2043
- * @category common/stepper
2044
- */
2045
- declare function createStripDensity(options: CngxStripDensityOptions): Signal<CngxStripDensity>;
2046
-
2047
1937
  /**
2048
1938
  * Collapsed-group summary view consumed by `<cngx-stepper>`. Resolves
2049
1939
  * the `groupCollapseSummary` mode and the per-group `progress` / `count`
2050
1940
  * text, the `status`-dot gate, and the SR phrase. Pure derivation over
2051
1941
  * the group's subtree step states; rendered only on collapsed groups.
2052
- *
2053
- * @category common/stepper
2054
1942
  */
2055
1943
  interface CngxStepperGroupSummaryView {
2056
1944
  /** Resolved summary mode (config cascade, default `'progress'`). */
@@ -2081,8 +1969,6 @@ interface CngxStepperGroupSummaryOptions {
2081
1969
  * to the group's existing status-phrase span, so {@link srText} returns
2082
1970
  * `null` there. SR phrases resolve through the `CngxStepperI18n` bundle
2083
1971
  * when passed; English defaults otherwise.
2084
- *
2085
- * @category common/stepper
2086
1972
  */
2087
1973
  declare function createStepperGroupSummary(options: CngxStepperGroupSummaryOptions): CngxStepperGroupSummaryView;
2088
1974
 
@@ -2094,8 +1980,6 @@ declare function createStepperGroupSummary(options: CngxStepperGroupSummaryOptio
2094
1980
  * consequence (no in-place disclosure). Keyboard users reach the same
2095
1981
  * steps via the arrow-key contract, which already steps into a collapsed
2096
1982
  * group, so this is a supplementary pointer affordance.
2097
- *
2098
- * @category common/stepper
2099
1983
  */
2100
1984
  interface CngxStepperGroupNavigationView {
2101
1985
  /**
@@ -2145,8 +2029,6 @@ interface CngxStepperGroupNavigationOptions {
2145
2029
  * the seeded `-1`. Each candidate is gated by `canNavigateTo` + `busy`
2146
2030
  * (mirroring the step-header reachability), so a linear-blocked leading
2147
2031
  * step is skipped to the first reachable one.
2148
- *
2149
- * @category common/stepper
2150
2032
  */
2151
2033
  declare function createStepperGroupNavigation(options: CngxStepperGroupNavigationOptions): CngxStepperGroupNavigationView;
2152
2034
 
@@ -2189,22 +2071,20 @@ interface CngxStepperHostAttrs {
2189
2071
  declare function createStepperHostAttrs(inputs: CngxStepperHostAttrsInputs): CngxStepperHostAttrs;
2190
2072
  /**
2191
2073
  * Input bundle for {@link createStepperAccname}: the two per-instance
2192
- * accname inputs plus the resolved config and the i18n bundle Signal.
2074
+ * accname inputs plus the i18n bundle Signal.
2193
2075
  *
2194
2076
  * @internal
2195
2077
  */
2196
2078
  interface CngxStepperAccnameInputs {
2197
2079
  readonly ariaLabel: Signal<string | undefined>;
2198
2080
  readonly ariaLabelledBy: Signal<string | undefined>;
2199
- readonly config: CngxStepperConfig;
2200
2081
  readonly i18n: Signal<CngxStepperI18n>;
2201
2082
  }
2202
2083
  /**
2203
2084
  * Shared `aria-label` cascade for every stepper organism host
2204
2085
  * (`<cngx-stepper>` and the compact variants): a bound
2205
2086
  * `aria-labelledby` trumps and nulls the label out; otherwise the
2206
- * per-instance input wins over `ariaLabels.stepperRegion` wins over
2207
- * `i18n.stepperLabel`. One source so the variants cannot drift from
2087
+ * per-instance input wins over `i18n.stepperLabel`. One source so the variants cannot drift from
2208
2088
  * the parent's naming behaviour.
2209
2089
  *
2210
2090
  * @internal
@@ -2297,10 +2177,17 @@ interface CngxStepperStateView {
2297
2177
  readonly isBusy: (node: CngxStepNode) => boolean;
2298
2178
  /**
2299
2179
  * `true` when this step is the one a commit just rejected
2300
- * (`flatIndex === lastFailedIndex`). The commit-rejection arm your
2301
- * pessimistic / optimistic flows hit.
2180
+ * (`flatIndex === lastFailedIndex`), refused or failed alike. The
2181
+ * commit-rejection marker your pessimistic / optimistic flows hit.
2302
2182
  */
2303
2183
  readonly isRejected: (node: CngxStepNode) => boolean;
2184
+ /**
2185
+ * `true` when this step carries the rejection marker AND the commit
2186
+ * action refused it (`lastOutcome().kind === 'refused'`). A refusal is
2187
+ * not an error: it marks the step but never sets `aria-invalid` or
2188
+ * counts towards {@link errorCount}.
2189
+ */
2190
+ readonly isRefused: (node: CngxStepNode) => boolean;
2304
2191
  /**
2305
2192
  * Badge-level error: per-step `state === 'error'` OR the bound error
2306
2193
  * aggregator's `shouldShow()`. Deliberately excludes commit rejection -
@@ -2309,11 +2196,24 @@ interface CngxStepperStateView {
2309
2196
  */
2310
2197
  readonly hasErrorBadge: (node: CngxStepNode) => boolean;
2311
2198
  /**
2312
- * Unified error predicate - the contract the minimal skins (dot / text /
2313
- * progress-bar) read. `true` when ANY of the three error sources fires:
2314
- * {@link hasErrorBadge} OR a commit rejection ({@link isRejected}). Those
2315
- * skins have no separate rejection slot, so they treat every error source
2316
- * as one "errored" state.
2199
+ * Why the step carries a commit-rejection marker, for the `data-reason`
2200
+ * styling hook: `'refused'` or `'failed'` while {@link isRejected} holds,
2201
+ * `null` otherwise. Independent of a validation error on the same step.
2202
+ */
2203
+ readonly rejectionReason: (node: CngxStepNode) => 'refused' | 'failed' | null;
2204
+ /**
2205
+ * Visual marker predicate - the hook the minimal skins (dot / text /
2206
+ * progress-bar) and the mobile dots paint (`data-state="error"`,
2207
+ * `--error`). `true` when {@link hasErrorBadge} fires OR the step carries
2208
+ * a commit rejection of either kind ({@link isRejected}). Those skins have
2209
+ * no separate rejection slot, so every marker shares one visual state.
2210
+ */
2211
+ readonly hasErrorMarker: (node: CngxStepNode) => boolean;
2212
+ /**
2213
+ * Semantic error predicate - what `aria-invalid`, the errored status word
2214
+ * and {@link errorCount} read. `true` when {@link hasErrorBadge} fires OR
2215
+ * a commit failed on this step. A refused step is marked
2216
+ * ({@link hasErrorMarker}) but not in error.
2317
2217
  */
2318
2218
  readonly hasError: (node: CngxStepNode) => boolean;
2319
2219
  /** Count of step-only nodes where {@link hasError} is `true`. */
@@ -2322,14 +2222,28 @@ interface CngxStepperStateView {
2322
2222
  readonly firstErrorIndex: Signal<number>;
2323
2223
  /** `true` when `errorCount() > 0`. Drives skin-level `aria-invalid`. */
2324
2224
  readonly hasAnyError: Signal<boolean>;
2225
+ /** Count of step-only nodes where {@link hasErrorMarker} is `true`. */
2226
+ readonly errorMarkerCount: Signal<number>;
2227
+ /** Flat index of the first marked step, or `-1` when none. */
2228
+ readonly firstErrorMarkerIndex: Signal<number>;
2229
+ /**
2230
+ * `true` when `errorMarkerCount() > 0`. Drives skin-level visual hooks
2231
+ * (`data-state="error"`); `aria-invalid` stays on {@link hasAnyError}.
2232
+ */
2233
+ readonly hasAnyErrorMarker: Signal<boolean>;
2234
+ /**
2235
+ * `true` when steps are marked but none is in error: every marker is a
2236
+ * refused commit. Drives the refused tone of skin-level hooks (the
2237
+ * aggregate error line, the progress bar) that stand for all steps.
2238
+ */
2239
+ readonly refusalOnly: Signal<boolean>;
2325
2240
  }
2326
2241
  /**
2327
2242
  * Build the shared {@link CngxStepperStateView} over a presenter host and its
2328
2243
  * step-only projection. Pure factory - `computed()` only, no injection
2329
2244
  * context required, so any skin can allocate it in a field initializer.
2330
2245
  *
2331
- * @category common/stepper
2332
- * @since 0.1.0
2246
+ * @since 0.3.0
2333
2247
  * @relatedTo CngxStepperHost, createStepperSlotContextBuilders
2334
2248
  */
2335
2249
  declare function createStepperStateView(inputs: {
@@ -2338,14 +2252,20 @@ declare function createStepperStateView(inputs: {
2338
2252
  }): CngxStepperStateView;
2339
2253
  /**
2340
2254
  * Aggregate error phrase shared by the minimal skins (text / progress-bar)
2341
- * and the classic mobile-collapse text branch. A single errored step names
2342
- * itself (`"Payment: Errored"`); several collapse to the i18n count phrase
2343
- * (`"2 errors"`). Returns `''` when no step errored - callers gate on
2344
- * `view.hasAnyError()` so the empty string never reaches the DOM.
2255
+ * and the classic mobile-collapse text branch. Walks the marked steps
2256
+ * ({@link CngxStepperStateView.hasErrorMarker}). A single marked step names
2257
+ * itself with the word of its kind: `"Payment: Errored"` (or the custom
2258
+ * reason) for an error, `"Payment: Not allowed"` for a refused step change;
2259
+ * several failed steps collapse to the i18n count phrase (`"2 errors"`),
2260
+ * which never counts a refusal. Returns `''`
2261
+ * when no step is marked, so the error line stays quiet.
2345
2262
  *
2346
2263
  * The optional `messageOf` resolver lets callers surface a per-step
2347
2264
  * reason (a direct `[error]` string or the first aggregator label) in the
2348
- * single-error case instead of the generic `errored` status word. When
2265
+ * single-error case instead of the generic `errored` status word. The
2266
+ * reason is still prefixed with the step label (`"Payment: Card declined"`),
2267
+ * because the summary line stays visible while another step is active and
2268
+ * a bare reason would read as belonging to the active step. When
2349
2269
  * omitted - or when it returns `undefined`/`''` - the helper produces
2350
2270
  * byte-identical output to the no-resolver form, so existing callers
2351
2271
  * (the classic mobile-collapse summary) are a guaranteed no-op.
@@ -2356,10 +2276,9 @@ declare function createStepperStateView(inputs: {
2356
2276
  * re-announce the line. Pass the i18n bundle as an untracked snapshot for
2357
2277
  * the same reason.
2358
2278
  *
2359
- * @category common/stepper
2360
- * @since 0.1.0
2279
+ * @since 0.3.0
2361
2280
  */
2362
- declare function resolveStepperErrorSummary(view: Pick<CngxStepperStateView, 'errorCount' | 'firstErrorIndex'>, stepsOnly: Signal<readonly CngxStepNode[]>, i18n: CngxStepperI18n, messageOf?: (node: CngxStepNode) => string | undefined): string;
2281
+ declare function resolveStepperErrorSummary(view: Pick<CngxStepperStateView, 'errorMarkerCount' | 'firstErrorMarkerIndex' | 'errorCount' | 'firstErrorIndex' | 'isRefused' | 'hasErrorBadge'>, stepsOnly: Signal<readonly CngxStepNode[]>, i18n: CngxStepperI18n, messageOf?: (node: CngxStepNode) => string | undefined): string;
2363
2282
 
2364
2283
  /**
2365
2284
  * Input bundle for {@link createStepperSlotContextBuilders}: the presenter
@@ -2402,6 +2321,8 @@ interface CngxStepperSlotContextBuilders {
2402
2321
  readonly groupHeaderContextFor: (node: CngxStepNode) => CngxStepGroupHeaderContext;
2403
2322
  readonly stepLabelContextFor: (node: CngxStepNode) => CngxStepLabelContext;
2404
2323
  readonly stepContentContextFor: (node: CngxStepNode) => CngxStepContentContext;
2324
+ /** Context of the `*cngxDotStepperDot` body in the dots mobile-collapse branch. */
2325
+ readonly dotContextFor: (node: CngxStepNode) => CngxDotStepperDotContext;
2405
2326
  }
2406
2327
  /**
2407
2328
  * Bundle the `*ContextFor` slot-context builders plus the small
@@ -2438,14 +2359,17 @@ interface CngxStepperAnnouncementBuilders {
2438
2359
  /**
2439
2360
  * Live-region content driven by the commit transition tracker.
2440
2361
  * Empty string between transitions keeps the region quiet on no-op
2441
- * CD ticks. Error-arm priority: `commitRolledBackTo(originLabel)` when
2442
- * both `lastFailedIndex` and a resolvable origin label exist; otherwise
2443
- * `commitFailedRetry`.
2362
+ * CD ticks. A refusal speaks `commitRefused(originLabel)` (or
2363
+ * `commitRefusedGeneric` without a label) once and holds it until the
2364
+ * next commit, step move or reset. Error-arm priority:
2365
+ * `commitRolledBackTo(originLabel)` when both `lastFailedIndex` and a
2366
+ * resolvable origin label exist; otherwise `commitFailedRetry`.
2444
2367
  */
2445
2368
  readonly liveAnnouncement: Signal<string>;
2446
2369
  /**
2447
2370
  * SR descriptor phrase. Aggregator-announced or "Step N of M: <label>";
2448
- * routes the rejected row through `stepRolledBack(base)`.
2371
+ * routes a refused row through `stepRefused(base)` and a failed row
2372
+ * through `stepRolledBack(base)`.
2449
2373
  */
2450
2374
  readonly statusPhrase: (node: CngxStepNode) => string;
2451
2375
  /**
@@ -2532,11 +2456,9 @@ declare function createStepperPanelRefs(inputs: CngxStepperPanelRefsInputs): Cng
2532
2456
  * window apply identically to a click); the back swipe ->
2533
2457
  * `selectPrevious()`, gated on `busy()` like the strip back-arrow.
2534
2458
  *
2535
- * @category common/stepper
2536
- * @docsKind primary
2537
2459
  * @wcag AA
2538
2460
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/swipe-nav.directive.ts
2539
- * @since 0.1.0
2461
+ * @since 0.3.0
2540
2462
  */
2541
2463
  declare class CngxStepperSwipeNav {
2542
2464
  /**
@@ -2567,8 +2489,6 @@ declare class CngxStepperSwipeNav {
2567
2489
  * {@link CngxStepperHost} satisfies it, but consumers can also supply
2568
2490
  * a narrower stub (useful in tests, custom layouts, or non-standard
2569
2491
  * step containers that surface just these two signals).
2570
- *
2571
- * @category common/stepper
2572
2492
  */
2573
2493
  interface CngxStepperCountHost {
2574
2494
  readonly activeStepIndex: Signal<number>;
@@ -2602,11 +2522,9 @@ interface CngxStepperCountHost {
2602
2522
  * the caption sits next to another live region (e.g. a stepper that
2603
2523
  * already mounts its own live announcer) to prevent double announces.
2604
2524
  *
2605
- * @category common/stepper
2606
- * @docsKind primary
2607
- * @since 0.1.0
2525
+ * @since 0.3.0
2608
2526
  * @relatedTo CngxStepperHost, CngxStepperI18n
2609
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-count/multi-instance-format-overrides</example-url>
2527
+ * <example-url>/#/ui/stepper/stepper-count/multi-instance-format-overrides</example-url>
2610
2528
  */
2611
2529
  declare class CngxStepperCount {
2612
2530
  /**
@@ -2645,6 +2563,7 @@ declare class CngxStepperCount {
2645
2563
  * (which may itself be language-dependent) are read untracked.
2646
2564
  */
2647
2565
  protected readonly liveLabel: Signal<string>;
2566
+ constructor();
2648
2567
  static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperCount, never>;
2649
2568
  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>;
2650
2569
  }
@@ -2656,11 +2575,12 @@ declare class CngxStepperCount {
2656
2575
  * ambient {@link CNGX_STEPPER_HOST}.
2657
2576
  *
2658
2577
  * `(click)` retreats via `selectPrevious()`. The control disables itself
2659
- * when there is no earlier step (`!canGoPrevious()`) OR while a commit is
2660
- * in flight (`busy()`): `selectPrevious()` writes `activeStepIndex`
2661
- * directly, bypassing the commit controller, so disabling it during an
2662
- * in-flight forward commit prevents a navigate-mid-commit race. The gate
2663
- * is the host's `canGoPrevious` bound - never re-derived from `stepsOnly`.
2578
+ * when there is no earlier step (`!canGoPrevious()`) OR while a commit or
2579
+ * the finish run is in flight (`busy()`): `selectPrevious()` writes
2580
+ * `activeStepIndex` directly, bypassing the commit controller, so
2581
+ * disabling it during an in-flight forward commit or finish run prevents
2582
+ * a navigate-mid-run race. The gate is the host's `canGoPrevious` bound -
2583
+ * never re-derived from `stepsOnly`.
2664
2584
  *
2665
2585
  * Reflects the disabled state via `aria-disabled` only - never native
2666
2586
  * `disabled` - so the control stays focusable and AT-reachable; the
@@ -2670,11 +2590,9 @@ declare class CngxStepperCount {
2670
2590
  * <button cngxStepperPrevious>Back</button>
2671
2591
  * ```
2672
2592
  *
2673
- * @category common/stepper
2674
- * @docsKind primary
2675
2593
  * @wcag AA
2676
2594
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/controls/stepper-previous.directive.ts
2677
- * @since 0.1.0
2595
+ * @since 0.3.0
2678
2596
  * @relatedTo CngxStepperNext, CngxStepperComplete, CngxStepperHost
2679
2597
  */
2680
2598
  declare class CngxStepperPrevious {
@@ -2705,8 +2623,9 @@ declare class CngxStepperPrevious {
2705
2623
  *
2706
2624
  * `(click)` advances via `selectNext()`. A turnkey re-entrancy guard
2707
2625
  * disables the control when there is no enabled next step
2708
- * (`!canGoNext()`) OR while a commit is in flight (`busy()`) - an opt-in
2709
- * guard a consumer forgets is a silent double-commit (Pillar 2). The
2626
+ * (`!canGoNext()`) OR while a commit or the finish run is in flight
2627
+ * (`busy()`) - an opt-in guard a consumer forgets is a silent
2628
+ * double-commit (Pillar 2). The
2710
2629
  * gate reads the host's `canGoNext` bound, which derives from the same
2711
2630
  * `select()` predicates, so the affordance can never drift from the
2712
2631
  * navigation it triggers.
@@ -2723,11 +2642,9 @@ declare class CngxStepperPrevious {
2723
2642
  * <button cngxStepperNext>Continue</button>
2724
2643
  * ```
2725
2644
  *
2726
- * @category common/stepper
2727
- * @docsKind primary
2728
2645
  * @wcag AA
2729
2646
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/controls/stepper-next.directive.ts
2730
- * @since 0.1.0
2647
+ * @since 0.3.0
2731
2648
  * @relatedTo CngxStepperPrevious, CngxStepperComplete, CngxAsyncStatus, CngxStepperHost
2732
2649
  */
2733
2650
  declare class CngxStepperNext {
@@ -2763,7 +2680,7 @@ declare class CngxStepperNext {
2763
2680
  * falling back to the ambient {@link CNGX_STEPPER_HOST}. {@link isActive}
2764
2681
  * exposes whether the active step is the last one, so a consumer renders
2765
2682
  * the finish control only on the final step. `(completed)` emits once
2766
- * after the action resolves successfully.
2683
+ * per successful run of the action.
2767
2684
  *
2768
2685
  * ```html
2769
2686
  * @if (s.presenter.isLastStep()) {
@@ -2771,11 +2688,9 @@ declare class CngxStepperNext {
2771
2688
  * }
2772
2689
  * ```
2773
2690
  *
2774
- * @category common/stepper
2775
- * @docsKind primary
2776
2691
  * @wcag AA
2777
2692
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/controls/stepper-complete.directive.ts
2778
- * @since 0.1.0
2693
+ * @since 0.3.0
2779
2694
  * @relatedTo CngxStepperNext, CngxStepperPrevious, CngxAsyncClick, CngxStepperHost
2780
2695
  */
2781
2696
  declare class CngxStepperComplete {
@@ -2786,19 +2701,22 @@ declare class CngxStepperComplete {
2786
2701
  */
2787
2702
  readonly host: i0.InputSignal<CngxStepperHost | null>;
2788
2703
  /**
2789
- * Emits once per `pending → success` transition of the finish action.
2790
- * Does NOT re-emit when the `feedbackDuration` window resets the runner
2791
- * back to idle - the transition tracker guards on the success edge only.
2704
+ * Emits once per successful run of the finish action, driven by the
2705
+ * runner's `(settled)` event: two runs that succeed before change
2706
+ * detection emit twice. Never on failure, cancel or after destroy, and
2707
+ * not when the `feedbackDuration` window resets the runner to idle.
2792
2708
  */
2793
2709
  readonly completed: i0.OutputEmitterRef<void>;
2794
2710
  private readonly injectedHost;
2795
2711
  private readonly resolvedHost;
2796
2712
  private readonly runner;
2713
+ private readonly busy;
2714
+ private readonly busyKey;
2797
2715
  /** `true` when the active step is the last one - the finish step. */
2798
2716
  readonly isActive: Signal<boolean>;
2799
2717
  constructor();
2800
2718
  static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperComplete, never>;
2801
- 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: {}; }]>;
2719
+ 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"; "showDelay": "showDelay"; "minDwell": "minDwell"; }; outputs: {}; }]>;
2802
2720
  }
2803
2721
 
2804
2722
  /**
@@ -2820,28 +2738,32 @@ declare class CngxStepperComplete {
2820
2738
  * only). Single consumer (the footer); the surface is load-bearing, not
2821
2739
  * speculative.
2822
2740
  *
2823
- * @category common/stepper
2824
- * @since 0.1.0
2741
+ * @since 0.3.0
2825
2742
  * @relatedTo CngxStepperFooter, CngxStepperHost
2826
2743
  */
2827
2744
  declare function createStepperHostProxy(supplier: () => CngxStepperHost | null): CngxStepperHost;
2828
2745
 
2746
+ /**
2747
+ * How a commit-gated step change settled. `'refused'` is a `false` answer
2748
+ * from `commitAction` (the action declined on purpose, nothing failed);
2749
+ * `'failed'` is a throw, a rejected promise or an erroring observable.
2750
+ */
2751
+ type CngxStepperCommitResolution = 'accepted' | 'refused' | 'failed';
2829
2752
  /**
2830
2753
  * Adapter between the lifted commit-controller and the stepper's
2831
2754
  * action shape. The presenter delegates to `beginTransition` on
2832
2755
  * every step change driven by `commitAction`.
2833
- *
2834
- * @category common/stepper
2835
2756
  */
2836
2757
  interface CngxStepperCommitHandler {
2837
2758
  /**
2838
2759
  * Start a transition commit. Returns synchronously; the controller's
2839
2760
  * `state` signal reports the in-flight status.
2840
2761
  *
2841
- * @param onResolve fires `true` on accept, `false` on rejection;
2842
- * skipped on supersede.
2762
+ * @param onResolve fires `'accepted'` when the action answers `true`,
2763
+ * `'refused'` when it answers `false`, `'failed'` when
2764
+ * it throws, rejects or errors; skipped on supersede.
2843
2765
  */
2844
- beginTransition(fromIndex: number, toIndex: number, action: CngxStepperCommitAction, onResolve: (accept: boolean) => void): void;
2766
+ beginTransition(fromIndex: number, toIndex: number, action: CngxStepperCommitAction, onResolve: (outcome: CngxStepperCommitResolution) => void): void;
2845
2767
  /** Cancel the in-flight transition without firing callbacks. */
2846
2768
  cancel(): void;
2847
2769
  /** Live `pending` flag from the controller. */
@@ -2849,8 +2771,6 @@ interface CngxStepperCommitHandler {
2849
2771
  }
2850
2772
  /**
2851
2773
  * Options for {@link createStepperCommitHandler}.
2852
- *
2853
- * @category common/stepper
2854
2774
  */
2855
2775
  interface CngxStepperCommitHandlerOptions {
2856
2776
  readonly controller: CngxCommitController<number>;
@@ -2858,26 +2778,22 @@ interface CngxStepperCommitHandlerOptions {
2858
2778
  /**
2859
2779
  * Build a stepper commit handler over an existing {@link CngxCommitController}.
2860
2780
  * Resolves `Observable<boolean>` / `Promise<boolean>` / `boolean` returns into
2861
- * a unified `accept: boolean` outcome.
2862
- *
2863
- * @category common/stepper
2781
+ * one {@link CngxStepperCommitResolution}: `true` accepts, `false` refuses
2782
+ * (the controller settles to `'idle'` and stores no error), a throw fails.
2864
2783
  */
2865
2784
  declare function createStepperCommitHandler(opts: CngxStepperCommitHandlerOptions): CngxStepperCommitHandler;
2866
2785
  /**
2867
2786
  * Factory signature for {@link CngxStepperCommitHandler}. Override
2868
2787
  * {@link CNGX_STEPPER_COMMIT_HANDLER_FACTORY} for retry-with-backoff,
2869
2788
  * telemetry, or offline queues.
2870
- *
2871
- * @category common/stepper
2872
2789
  */
2873
2790
  type CngxStepperCommitHandlerFactory = (opts: CngxStepperCommitHandlerOptions) => CngxStepperCommitHandler;
2874
2791
  /**
2875
2792
  * DI token carrying the factory the presenter uses to allocate its commit
2876
2793
  * handler. Symmetric to the select family's `CNGX_ARRAY_COMMIT_HANDLER_FACTORY`.
2877
2794
  *
2878
- * @category common/stepper
2879
2795
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/commit-handler.ts
2880
- * @since 0.1.0
2796
+ * @since 0.3.0
2881
2797
  */
2882
2798
  declare const CNGX_STEPPER_COMMIT_HANDLER_FACTORY: InjectionToken<CngxStepperCommitHandlerFactory>;
2883
2799
 
@@ -2886,8 +2802,6 @@ declare const CNGX_STEPPER_COMMIT_HANDLER_FACTORY: InjectionToken<CngxStepperCom
2886
2802
  * config (`CNGX_STEPPER_CONFIG`) and i18n (`CNGX_STEPPER_I18N`). Future
2887
2803
  * surfaces widen this union and dispatch via the hidden `_target`
2888
2804
  * discriminator.
2889
- *
2890
- * @category common/stepper
2891
2805
  */
2892
2806
  type CngxStepperFeature = CngxStepperConfigFeature | CngxStepperI18nFeature;
2893
2807
  /**
@@ -2907,14 +2821,11 @@ type CngxStepperFeature = CngxStepperConfigFeature | CngxStepperI18nFeature;
2907
2821
  * provideCngxStepper(
2908
2822
  * withStepperDefaultOrientation('vertical'),
2909
2823
  * withStepperLinear(true),
2910
- * withStepperAriaLabels({ stepperRegion: 'Schrittfolge' }),
2911
- * withStepperI18nLabels({ stepperLabel: 'Schrittfolge', previousStep: 'Vorheriger' }),
2824
+ * withStepperI18nLabels({ stepperLabel: 'Bestellschritte', previousStep: 'Vorheriger' }),
2912
2825
  * ),
2913
2826
  * ],
2914
2827
  * });
2915
2828
  * ```
2916
- *
2917
- * @category common/stepper
2918
2829
  */
2919
2830
  declare function provideCngxStepper(...features: readonly CngxStepperFeature[]): EnvironmentProviders;
2920
2831
  /**
@@ -2927,15 +2838,13 @@ declare function provideCngxStepper(...features: readonly CngxStepperFeature[]):
2927
2838
  * viewProviders: [
2928
2839
  * ...provideCngxStepperAt(
2929
2840
  * withStepperDefaultOrientation('vertical'),
2930
- * withStepperI18nLabels({ stepperLabel: 'Schrittfolge' }),
2841
+ * withStepperI18nLabels({ stepperLabel: 'Bestellschritte' }),
2931
2842
  * ),
2932
2843
  * ],
2933
2844
  * })
2934
2845
  * ```
2935
- *
2936
- * @category common/stepper
2937
2846
  */
2938
2847
  declare function provideCngxStepperAt(...features: readonly CngxStepperFeature[]): Provider[];
2939
2848
 
2940
- export { CNGX_STEPPER_COMMIT_HANDLER_FACTORY, CNGX_STEPPER_CONFIG, CNGX_STEPPER_GLYPHS, CNGX_STEPPER_HOST, CNGX_STEPPER_I18N, CNGX_STEPPER_LANGUAGE_EN, CNGX_STEP_GROUP_HOST, CNGX_STEP_PANEL_HOST, CngxDotStepperDot, CngxStep, CngxStepBadge, CngxStepBusySpinner, CngxStepContent, CngxStepError, CngxStepGroup, CngxStepGroupHeader, CngxStepIndicator, CngxStepLabel, CngxStepRejection, CngxStepperComplete, CngxStepperCount, CngxStepperEmpty, CngxStepperNext, CngxStepperPresenter, CngxStepperPrevious, CngxStepperRouterSync, CngxStepperSwipeNav, STEPPER_DEFAULT_DENSITY_BREAKPOINTS, createStepperAccname, createStepperAnnouncementBuilders, createStepperCommitHandler, createStepperDisplayMode, createStepperGroupNavigation, createStepperGroupSummary, createStepperHostAttrs, createStepperHostProxy, createStepperPanelRefs, createStepperSlotContextBuilders, createStepperStateView, createStepperStripKeyboardNav, createStepperTemplateBindings, createStripDensity, flatStepsEqual, injectStepperCollapse, injectStepperConfig, injectStepperI18n, provideCngxStepper, provideCngxStepperAt, provideStepperConfig, provideStepperConfigAt, provideStepperI18n, resolveStepperErrorSummary, resolveStepperStatusLabel, withDotStepperDotTemplate, withStepBadgeTemplate, withStepBusySpinnerTemplate, withStepErrorTemplate, withStepGroupHeaderTemplate, withStepIndicatorTemplate, withStepRejectionTemplate, withStepperAriaLabels, withStepperCommitMode, withStepperConnectors, withStepperDefaultOrientation, withStepperDensity, withStepperEmptyTemplate, withStepperFallbackLabels, withStepperGroupCollapse, withStepperGroupCollapseSummary, withStepperHeaderNavigation, withStepperI18nLabels, withStepperLinear, withStepperMobileCollapse, withStepperMobileIndicatorPosition, withStepperMobileSwipe, withStepperRouterSync, withStepperSkin };
2941
- export type { CngxDotStepperDotContext, CngxStepBadgeContext, CngxStepBusySpinnerContext, CngxStepContentContext, CngxStepErrorContext, CngxStepGroupHeaderContext, CngxStepGroupHost, CngxStepIndicatorContext, CngxStepLabelContext, CngxStepNode, CngxStepPanelHost, CngxStepRegistration, CngxStepRejectionContext, CngxStepStatus, CngxStepperAccnameInputs, CngxStepperAnnouncementBuilders, CngxStepperAnnouncementBuildersInputs, CngxStepperAriaLabels, CngxStepperCommitAction, CngxStepperCommitHandler, CngxStepperCommitHandlerFactory, CngxStepperCommitHandlerOptions, CngxStepperConfig, CngxStepperConfigFeature, CngxStepperCountHost, CngxStepperDensity, CngxStepperDensityBreakpoints, CngxStepperFallbackLabels, CngxStepperFeature, CngxStepperGroupCollapse, CngxStepperGroupNavigationOptions, CngxStepperGroupNavigationView, CngxStepperGroupSummary, CngxStepperGroupSummaryOptions, CngxStepperGroupSummaryView, CngxStepperHeaderNavigation, CngxStepperHost, CngxStepperHostAttrs, CngxStepperHostAttrsInputs, CngxStepperI18n, CngxStepperI18nFeature, CngxStepperI18nOverrides, CngxStepperLanguageSection, CngxStepperMobileCollapse, CngxStepperMobileIndicatorPosition, CngxStepperPanelRefs, CngxStepperPanelRefsInputs, CngxStepperSkin, CngxStepperSlotContextBuilders, CngxStepperSlotContextBuildersInputs, CngxStepperStateView, CngxStepperStatusLabels, CngxStepperStatusLanguage, CngxStepperStripKeyboardNavOptions, CngxStepperTemplateBindings, CngxStepperTemplateBindingsOptions, CngxStepperTemplates, CngxStripDensity, CngxStripDensityOptions };
2849
+ export { CNGX_STEPPER_COMMIT_HANDLER_FACTORY, CNGX_STEPPER_CONFIG, CNGX_STEPPER_HOST, CNGX_STEPPER_I18N, CNGX_STEPPER_LANGUAGE_EN, CNGX_STEP_GROUP_HOST, CNGX_STEP_PANEL_HOST, CngxDotStepperDot, CngxStep, CngxStepBadge, CngxStepBusySpinner, CngxStepContent, CngxStepError, CngxStepGroup, CngxStepGroupHeader, CngxStepIndicator, CngxStepLabel, CngxStepRejection, CngxStepperComplete, CngxStepperCount, CngxStepperEmpty, CngxStepperNext, CngxStepperPresenter, CngxStepperPrevious, CngxStepperRouterSync, CngxStepperSwipeNav, createStepperAccname, createStepperAnnouncementBuilders, createStepperCommitHandler, createStepperDisplayMode, createStepperGroupNavigation, createStepperGroupSummary, createStepperHostAttrs, createStepperHostProxy, createStepperPanelRefs, createStepperSlotContextBuilders, createStepperStateView, createStepperStripKeyboardNav, createStepperTemplateBindings, flatStepsEqual, injectStepperCollapse, injectStepperConfig, injectStepperI18n, provideCngxStepper, provideCngxStepperAt, provideStepperConfig, provideStepperConfigAt, provideStepperI18n, resolveStepperErrorSummary, resolveStepperStatusLabel, withDotStepperDotTemplate, withStepBadgeTemplate, withStepBusySpinnerTemplate, withStepErrorTemplate, withStepGroupHeaderTemplate, withStepIndicatorTemplate, withStepRejectionTemplate, withStepperCommitMode, withStepperConnectors, withStepperDefaultOrientation, withStepperDensity, withStepperEmptyTemplate, withStepperFallbackLabels, withStepperGroupCollapse, withStepperGroupCollapseSummary, withStepperHeaderNavigation, withStepperI18nLabels, withStepperLinear, withStepperMobileCollapse, withStepperMobileIndicatorPosition, withStepperMobileSwipe, withStepperRouterSync, withStepperSkin };
2850
+ export type { CngxDotStepperDotContext, CngxStepBadgeContext, CngxStepBusySpinnerContext, CngxStepContentContext, CngxStepErrorContext, CngxStepGroupHeaderContext, CngxStepGroupHost, CngxStepIndicatorContext, CngxStepLabelContext, CngxStepNode, CngxStepPanelHost, CngxStepRegistration, CngxStepRejectionContext, CngxStepStatus, CngxStepperAccnameInputs, CngxStepperAnnouncementBuilders, CngxStepperAnnouncementBuildersInputs, CngxStepperCommitAction, CngxStepperCommitHandler, CngxStepperCommitHandlerFactory, CngxStepperCommitHandlerOptions, CngxStepperCommitResolution, CngxStepperConfig, CngxStepperConfigFeature, CngxStepperCountHost, CngxStepperDensity, CngxStepperFallbackLabels, CngxStepperFeature, CngxStepperGroupCollapse, CngxStepperGroupNavigationOptions, CngxStepperGroupNavigationView, CngxStepperGroupSummary, CngxStepperGroupSummaryOptions, CngxStepperGroupSummaryView, CngxStepperHeaderNavigation, CngxStepperHost, CngxStepperHostAttrs, CngxStepperHostAttrsInputs, CngxStepperI18n, CngxStepperI18nFeature, CngxStepperI18nOverrides, CngxStepperLanguageSection, CngxStepperMobileCollapse, CngxStepperMobileIndicatorPosition, CngxStepperPanelRefs, CngxStepperPanelRefsInputs, CngxStepperSkin, CngxStepperSlotContextBuilders, CngxStepperSlotContextBuildersInputs, CngxStepperStateView, CngxStepperStatusLabels, CngxStepperStatusLanguage, CngxStepperStripKeyboardNavOptions, CngxStepperTemplateBindings, CngxStepperTemplateBindingsOptions, CngxStepperTemplates };