@cngx/ui 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 (108) hide show
  1. package/README.md +118 -59
  2. package/action-button/README.md +170 -53
  3. package/breadcrumb/README.md +5 -6
  4. package/collection/README.md +1 -1
  5. package/command-palette/README.md +9 -5
  6. package/data-grid-accordion/README.md +1 -1
  7. package/empty-state/README.md +2 -3
  8. package/feedback/README.md +1 -1
  9. package/fesm2022/cngx-ui-a11y.mjs +13 -23
  10. package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
  11. package/fesm2022/cngx-ui-accordion.mjs +55 -60
  12. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-action-button.mjs +220 -339
  14. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
  16. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  17. package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
  18. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
  19. package/fesm2022/cngx-ui-collection.mjs +28 -34
  20. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  21. package/fesm2022/cngx-ui-command-palette.mjs +29 -51
  22. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
  23. package/fesm2022/cngx-ui-context-menu.mjs +138 -89
  24. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  27. package/fesm2022/cngx-ui-empty-state.mjs +17 -44
  28. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  29. package/fesm2022/cngx-ui-feedback.mjs +648 -495
  30. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  31. package/fesm2022/cngx-ui-layout.mjs +17 -13
  32. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  33. package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
  34. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  35. package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
  36. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  37. package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
  38. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  39. package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
  40. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  41. package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
  42. package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
  43. package/fesm2022/cngx-ui-overlay.mjs +9 -10
  44. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  45. package/fesm2022/cngx-ui-paginator.mjs +212 -188
  46. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  47. package/fesm2022/cngx-ui-sidenav.mjs +872 -721
  48. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  49. package/fesm2022/cngx-ui-skeleton.mjs +17 -19
  50. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  51. package/fesm2022/cngx-ui-speak.mjs +21 -74
  52. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  53. package/fesm2022/cngx-ui-stat-card.mjs +39 -62
  54. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
  55. package/fesm2022/cngx-ui-stepper.mjs +259 -130
  56. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  57. package/fesm2022/cngx-ui-tabs.mjs +148 -50
  58. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  59. package/fesm2022/cngx-ui-timeline.mjs +48 -32
  60. package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
  61. package/fesm2022/cngx-ui-toc.mjs +59 -48
  62. package/fesm2022/cngx-ui-toc.mjs.map +1 -1
  63. package/fesm2022/cngx-ui.mjs +5 -5
  64. package/fesm2022/cngx-ui.mjs.map +1 -1
  65. package/mat-tabs/README.md +57 -19
  66. package/mat-tabs/styles/mat-tabs.css +285 -163
  67. package/nav-rail/README.md +325 -0
  68. package/package.json +37 -8
  69. package/paginator/README.md +10 -0
  70. package/schematics/collection.json +9 -0
  71. package/schematics/ng-add/index.js +9 -0
  72. package/schematics/ng-add/schema.json +96 -0
  73. package/schematics/package.json +3 -0
  74. package/sidenav/README.md +150 -55
  75. package/skeleton/README.md +1 -1
  76. package/speak/README.md +1 -2
  77. package/stepper/README.md +20 -5
  78. package/tabs/README.md +13 -0
  79. package/timeline/README.md +1 -1
  80. package/toc/README.md +1 -1
  81. package/types/cngx-ui-a11y.d.ts +20 -38
  82. package/types/cngx-ui-accordion.d.ts +46 -71
  83. package/types/cngx-ui-action-button.d.ts +113 -151
  84. package/types/cngx-ui-breadcrumb.d.ts +60 -85
  85. package/types/cngx-ui-chart-panel.d.ts +22 -40
  86. package/types/cngx-ui-collection.d.ts +30 -43
  87. package/types/cngx-ui-command-palette.d.ts +40 -64
  88. package/types/cngx-ui-context-menu.d.ts +109 -48
  89. package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
  90. package/types/cngx-ui-empty-state.d.ts +18 -8
  91. package/types/cngx-ui-feedback.d.ts +275 -292
  92. package/types/cngx-ui-layout.d.ts +4 -12
  93. package/types/cngx-ui-mat-accordion.d.ts +5 -5
  94. package/types/cngx-ui-mat-paginator.d.ts +4 -10
  95. package/types/cngx-ui-mat-stepper.d.ts +5 -10
  96. package/types/cngx-ui-mat-tabs.d.ts +86 -89
  97. package/types/cngx-ui-nav-rail.d.ts +416 -0
  98. package/types/cngx-ui-overlay.d.ts +4 -13
  99. package/types/cngx-ui-paginator.d.ts +186 -161
  100. package/types/cngx-ui-sidenav.d.ts +557 -437
  101. package/types/cngx-ui-skeleton.d.ts +7 -13
  102. package/types/cngx-ui-speak.d.ts +40 -24
  103. package/types/cngx-ui-stat-card.d.ts +45 -36
  104. package/types/cngx-ui-stepper.d.ts +205 -84
  105. package/types/cngx-ui-tabs.d.ts +104 -28
  106. package/types/cngx-ui-timeline.d.ts +31 -51
  107. package/types/cngx-ui-toc.d.ts +43 -54
  108. package/types/cngx-ui.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as _cngx_common_stepper from '@cngx/common/stepper';
2
- import { CngxStepPanelHost, CngxStepperSkin, CngxStepperHeaderNavigation, CngxStepperMobileIndicatorPosition, CngxStepperI18n, CngxStepErrorContext, CngxStepperSwipeNav, CngxStepNode, CngxStepLabelContext, CngxStepContentContext, CngxDotStepperDotContext, CngxStepperHost } from '@cngx/common/stepper';
2
+ import { CngxStepPanelHost, CngxStepperSkin, CngxStepperHeaderNavigation, CngxStepperMobileIndicatorPosition, CngxStepperI18n, CngxStepErrorContext, CngxStepperSwipeNav, CngxStepNode, CngxStepperStateView, CngxStepLabelContext, CngxStepContentContext, CngxDotStepperDotContext, CngxStepperHost } from '@cngx/common/stepper';
3
3
  import * as _angular_core from '@angular/core';
4
4
  import { Signal, TemplateRef } from '@angular/core';
5
5
  import * as i2 from '@cngx/common/a11y';
@@ -11,11 +11,9 @@ import * as i2 from '@cngx/common/a11y';
11
11
  * `commitMode` to the presenter. Material twin lives in
12
12
  * `@cngx/ui/mat-stepper`. ARIA attrs are in the `computed()` graph.
13
13
  *
14
- * @category ui/stepper
15
- * @docsKind primary
16
14
  * @wcag AA
17
15
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/stepper.component.ts
18
- * @since 0.1.0
16
+ * @since 0.3.0
19
17
  * @relatedTo CngxStepperPresenter, CngxStep, CngxRovingTabindex, CngxFocusRestore, CngxLiveRegion
20
18
  * @slot cngxStepIndicator Replaces the per-step number or check glyph in the header.
21
19
  * @slot cngxStepBadge Extra marker beside a step label, e.g. an optional or count badge.
@@ -24,30 +22,42 @@ import * as i2 from '@cngx/common/a11y';
24
22
  * @slot cngxStepRejection Renders the reason a rolled-back step was refused.
25
23
  * @slot cngxStepGroupHeader Replaces the header a step group renders above its steps.
26
24
  * @slot cngxStepperEmpty Renders when no step is projected at all.
25
+ * @slot cngxDotStepperDot Replaces the body of each dot in the dots mobile-collapse branch.
27
26
  * @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts
28
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-horizontal/three-step-wizard</example-url>
29
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-vertical/vertical-sidebar-layout</example-url>
30
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-linear/linear-gating-with-completion-checkboxes</example-url>
31
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-mobile-collapse/dots-collapse</example-url>
32
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/linear-minimal</example-url>
33
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/stripe-status-rich</example-url>
34
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/path-chevron</example-url>
35
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/pill-segment</example-url>
36
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/chips</example-url>
37
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/breadcrumb</example-url>
38
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/all-skins-side-by-side</example-url>
39
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/material-theme-coverage</example-url>
40
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/linear-minimal-vertical</example-url>
41
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/stripe-status-rich-vertical</example-url>
42
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/path-chevron-vertical</example-url>
43
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/pill-segment-vertical</example-url>
44
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/chips-vertical</example-url>
45
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-density/flat-steps-auto-density</example-url>
46
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-density/density-across-skins</example-url>
47
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-density/distance-weighted-collapse</example-url>
27
+ * <example-url>/#/ui/stepper/stepper-horizontal/three-step-wizard</example-url>
28
+ * <example-url>/#/ui/stepper/stepper-vertical/vertical-sidebar-layout</example-url>
29
+ * <example-url>/#/ui/stepper/stepper-linear/linear-gating-with-completion-checkboxes</example-url>
30
+ * <example-url>/#/ui/stepper/stepper-mobile-collapse/dots-collapse</example-url>
31
+ * <example-url>/#/ui/stepper/stepper-skins/linear-minimal</example-url>
32
+ * <example-url>/#/ui/stepper/stepper-skins/stripe-status-rich</example-url>
33
+ * <example-url>/#/ui/stepper/stepper-skins/path-chevron</example-url>
34
+ * <example-url>/#/ui/stepper/stepper-skins/pill-segment</example-url>
35
+ * <example-url>/#/ui/stepper/stepper-skins/chips</example-url>
36
+ * <example-url>/#/ui/stepper/stepper-skins/breadcrumb</example-url>
37
+ * <example-url>/#/ui/stepper/stepper-skins/all-skins-side-by-side</example-url>
38
+ * <example-url>/#/ui/stepper/stepper-skins/material-theme-coverage</example-url>
39
+ * <example-url>/#/ui/stepper/stepper-skins/linear-minimal-vertical</example-url>
40
+ * <example-url>/#/ui/stepper/stepper-skins/stripe-status-rich-vertical</example-url>
41
+ * <example-url>/#/ui/stepper/stepper-skins/path-chevron-vertical</example-url>
42
+ * <example-url>/#/ui/stepper/stepper-skins/pill-segment-vertical</example-url>
43
+ * <example-url>/#/ui/stepper/stepper-skins/chips-vertical</example-url>
44
+ * <example-url>/#/ui/stepper/stepper-density/flat-steps-auto-density</example-url>
45
+ * <example-url>/#/ui/stepper/stepper-density/density-across-skins</example-url>
46
+ * <example-url>/#/ui/stepper/stepper-density/distance-weighted-collapse</example-url>
47
+ * @axis level organism
48
48
  */
49
49
  declare class CngxStepper implements CngxStepPanelHost {
50
+ /**
51
+ * Accessible name of the stepper host, bound as `[aria-label]`. Resolution order: this input,
52
+ * then the `stepperLabel` string of the stepper i18n bundle. Ignored while a non-empty
53
+ * `[aria-labelledby]` is set.
54
+ */
50
55
  readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
56
+ /**
57
+ * Id reference list naming the stepper host, bound as `[aria-labelledby]`. A non-empty value
58
+ * is written to the host and suppresses the `aria-label` cascade, so the host carries no
59
+ * `aria-label` at all.
60
+ */
51
61
  readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
52
62
  /** Per-instance skin override; flips `[data-skin]`, structure/ARIA unchanged. */
53
63
  readonly skin: _angular_core.InputSignal<CngxStepperSkin | undefined>;
@@ -67,6 +77,12 @@ declare class CngxStepper implements CngxStepPanelHost {
67
77
  * that sits next to the dot row.
68
78
  */
69
79
  readonly showStepCount: _angular_core.InputSignal<boolean>;
80
+ /**
81
+ * Places the mobile-collapse indicator (the dots row or the step text) above or below the
82
+ * panels, as `'top'` or `'bottom'`. Resolution order: this input, then `mobileIndicatorPosition`
83
+ * from the stepper config, then `'top'`. The result is written to `data-mobile-indicator-position`,
84
+ * and `'bottom'` reorders the host through CSS; the classic strip layout has no indicator to move.
85
+ */
70
86
  readonly mobileIndicatorPosition: _angular_core.InputSignal<CngxStepperMobileIndicatorPosition | undefined>;
71
87
  /** Stepper-host contract; exposed so external `<cngx-stepper-count>` / bridge consumers can `[host]="s.presenter"` via `#s="cngxStepper"`. */
72
88
  readonly presenter: _cngx_common_stepper.CngxStepperHost;
@@ -82,10 +98,52 @@ declare class CngxStepper implements CngxStepPanelHost {
82
98
  private readonly errorSlot;
83
99
  private readonly groupHeaderSlot;
84
100
  private readonly emptySlot;
85
- /** Default-template glyph source - read by `#defaultBadge` / `#defaultRejection` outlets. */
86
- protected readonly glyphs: {
87
- readonly errorBadge: "!";
88
- readonly rejectionIcon: "!";
101
+ private readonly dotSlot;
102
+ /** Default-template icons: badge, rejection, done checks and mobile-dot marks. */
103
+ protected readonly icons: {
104
+ readonly alert: {
105
+ readonly viewBox: "0 0 24 24";
106
+ readonly d: "M12 3L2 20.5h20zM12 9.5v5M12 17.5v.01";
107
+ readonly paint: "stroke";
108
+ readonly micro: {
109
+ readonly viewBox: "0 0 12 12";
110
+ readonly d: "M6.514 1.857L11.486 10.143Q12 11 11 11L1 11Q0 11 0.514 10.143L5.486 1.857Q6 1 6.514 1.857ZM5 5V8H7V5ZM5 9V10H7V9Z";
111
+ };
112
+ readonly small: {
113
+ readonly viewBox: "0 0 16 16";
114
+ readonly d: "M8 2L14 14H2ZM7 6V10H9V6ZM7 11V13H9V11Z";
115
+ };
116
+ };
117
+ readonly ban: {
118
+ readonly viewBox: "0 0 24 24";
119
+ readonly d: "M2.5 12a9.5 9.5 0 1 0 19 0a9.5 9.5 0 1 0-19 0zM5.3 5.3l13.4 13.4";
120
+ readonly paint: "stroke";
121
+ readonly micro: {
122
+ readonly viewBox: "0 0 12 12";
123
+ readonly d: "M6 0A6 6 0 1 1 6 12A6 6 0 1 1 6 0ZM9.668 8.607A4.5 4.5 0 0 0 3.393 2.332ZM2.332 3.393A4.5 4.5 0 0 0 8.607 9.668Z";
124
+ };
125
+ readonly small: null;
126
+ };
127
+ readonly check: {
128
+ readonly viewBox: "0 0 24 24";
129
+ readonly d: "M5 12.5l4.5 4.5L19 7";
130
+ readonly paint: "stroke";
131
+ readonly micro: {
132
+ readonly viewBox: "0 0 12 12";
133
+ readonly d: "M1 6L2 5L5 8L10 3L11 4L5 10Z";
134
+ };
135
+ readonly small: null;
136
+ };
137
+ readonly exclamation: {
138
+ readonly viewBox: "0 0 24 24";
139
+ readonly d: "M11,14V5h2v9H11Zm0,5V17h2v2H11Z";
140
+ readonly paint: "fill";
141
+ readonly micro: {
142
+ readonly viewBox: "0 0 12 12";
143
+ readonly d: "M5 2H7V8H5ZM5 9H7V11H5Z";
144
+ };
145
+ readonly small: null;
146
+ };
89
147
  };
90
148
  /**
91
149
  * Template cascade (indicator/badge/busySpinner/rejection/stepError/
@@ -94,14 +152,6 @@ declare class CngxStepper implements CngxStepPanelHost {
94
152
  */
95
153
  protected readonly templates: _cngx_common_stepper.CngxStepperTemplateBindings;
96
154
  protected readonly displayMode: Signal<"classic" | "text" | "dots">;
97
- /**
98
- * Space-driven density rung for the classic strip, measured off the
99
- * host element's own width via {@link createStripDensity}. `'full'`
100
- * under the `'comfortable'` default. Drives `[data-strip-density]` (the
101
- * strip-overflow rung, distinct from the global `[data-density]` spacing
102
- * swap so strip degradation never re-scales component spacing).
103
- */
104
- protected readonly stripDensity: Signal<_cngx_common_stepper.CngxStripDensity>;
105
155
  /**
106
156
  * `true` when `density: 'auto'` is active. Drives `[data-density-auto]`,
107
157
  * which makes the strip absorb a too-narrow container by shrinking +
@@ -112,7 +162,10 @@ declare class CngxStepper implements CngxStepPanelHost {
112
162
  protected readonly isDensityAuto: Signal<boolean>;
113
163
  constructor();
114
164
  private readonly fallbackLabels;
115
- /** Stepper landmark role-description with config + i18n cascade. */
165
+ /**
166
+ * Stepper landmark role-description: config `fallbackLabels`, then the
167
+ * library default. Never the stepper name, which is the accessible name.
168
+ */
116
169
  protected readonly stepperRoleDescription: Signal<string>;
117
170
  /** Resolved skin / connectors / mobile-indicator host attrs (Level-2 cascade helper). */
118
171
  protected readonly hostAttrs: _cngx_common_stepper.CngxStepperHostAttrs;
@@ -141,9 +194,12 @@ declare class CngxStepper implements CngxStepPanelHost {
141
194
  /** Mobile-swipe navigation host directive (Level-2 composition). */
142
195
  protected readonly swipeNav: CngxStepperSwipeNav;
143
196
  protected statusLabelFor: (node: CngxStepNode) => string;
144
- /** Mobile-dot `data-state`: unified error (rejection + aggregator) over the raw status. */
197
+ /** Mobile-dot `data-state`: the error marker (rejection + aggregator) over the raw status. */
145
198
  protected mobileDotState(node: CngxStepNode): string;
146
- /** Mobile-dot `aria-label`, appending the errored status when the dot has an error. */
199
+ /**
200
+ * Mobile-dot `aria-label`, appending the errored status when the dot has
201
+ * an error, or the refused status when its step change was refused.
202
+ */
147
203
  protected mobileDotAriaLabel(node: CngxStepNode, index: number): string;
148
204
  protected readonly groupRoleDescription: Signal<string>;
149
205
  /**
@@ -177,7 +233,7 @@ declare class CngxStepper implements CngxStepPanelHost {
177
233
  * enters the branch at its first reachable step. Level-2 factory.
178
234
  */
179
235
  protected readonly groupNavigation: _cngx_common_stepper.CngxStepperGroupNavigationView;
180
- /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */
236
+ /** Shared accname cascade (input → `i18n.stepperLabel`). */
181
237
  protected readonly resolvedAriaLabel: Signal<string | null>;
182
238
  private readonly stepDirectiveById;
183
239
  readonly flatSteps: Signal<readonly CngxStepNode[]>;
@@ -207,7 +263,7 @@ declare class CngxStepper implements CngxStepPanelHost {
207
263
  * which otherwise rendered only `Step N of M` (text) or `node.state()`
208
264
  * (dots) and dropped the per-step error the desktop branch shows.
209
265
  */
210
- protected readonly stateView: _cngx_common_stepper.CngxStepperStateView;
266
+ protected readonly stateView: CngxStepperStateView;
211
267
  /**
212
268
  * Aggregate error phrase for the mobile-collapse text branch. Feeds the
213
269
  * real reason (the `[error]` string / aggregator label) through the
@@ -235,7 +291,8 @@ declare class CngxStepper implements CngxStepPanelHost {
235
291
  /**
236
292
  * `true` when the step header at `node` may be navigated to right now:
237
293
  * structurally reachable (`canNavigateTo` - not disabled, not
238
- * linear-blocked) AND not while a commit is in flight (`busy()`). The
294
+ * linear-blocked) AND not while a commit or the finish run is in flight
295
+ * (`busy()`). The
239
296
  * busy gate mirrors the footer nav atoms, which disable on
240
297
  * `!canGo* || busy()` - so the strip and the footer lock together
241
298
  * during an async transition instead of letting a header click
@@ -262,10 +319,20 @@ declare class CngxStepper implements CngxStepPanelHost {
262
319
  * {@link CNGX_STEPPER_HOST}.
263
320
  */
264
321
  clearLastFailed(): void;
322
+ /**
323
+ * Returns the `*cngxStepLabel` template of the step with the given id, or `null` when no step has
324
+ * that id or the step supplies none. Implements `CngxStepPanelHost.labelTemplateFor`; the stepper
325
+ * template calls it per header and renders the default label text on `null`.
326
+ */
265
327
  labelTemplateFor(id: string): TemplateRef<CngxStepLabelContext> | null;
328
+ /**
329
+ * Returns the `*cngxStepContent` template of the step with the given id, or `null` when no step
330
+ * has that id or the step supplies none. Implements `CngxStepPanelHost.contentTemplateFor`; the
331
+ * stepper template calls it per panel and renders no body on `null`.
332
+ */
266
333
  contentTemplateFor(id: string): TemplateRef<CngxStepContentContext> | null;
267
334
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStepper, never>;
268
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStepper, "cngx-stepper", ["cngxStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "skin": { "alias": "skin"; "required": false; "isSignal": true; }; "connectors": { "alias": "connectors"; "required": false; "isSignal": true; }; "headerNavigation": { "alias": "headerNavigation"; "required": false; "isSignal": true; }; "showStepCount": { "alias": "showStepCount"; "required": false; "isSignal": true; }; "mobileIndicatorPosition": { "alias": "mobileIndicatorPosition"; "required": false; "isSignal": true; }; }, {}, ["stepDirectives", "indicatorSlot", "badgeSlot", "busySpinnerSlot", "rejectionSlot", "errorSlot", "groupHeaderSlot", "emptySlot"], ["cngx-stepper-footer, [cngxStepperFooter]"], true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; "orientation": "orientation"; "commitAction": "commitAction"; "commitMode": "commitMode"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }, { directive: typeof i2.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }, { directive: typeof _cngx_common_stepper.CngxStepperSwipeNav; inputs: { "mobileSwipe": "mobileSwipe"; }; outputs: {}; }, { directive: typeof i2.CngxFocusRestore; inputs: {}; outputs: {}; }]>;
335
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStepper, "cngx-stepper", ["cngxStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "skin": { "alias": "skin"; "required": false; "isSignal": true; }; "connectors": { "alias": "connectors"; "required": false; "isSignal": true; }; "headerNavigation": { "alias": "headerNavigation"; "required": false; "isSignal": true; }; "showStepCount": { "alias": "showStepCount"; "required": false; "isSignal": true; }; "mobileIndicatorPosition": { "alias": "mobileIndicatorPosition"; "required": false; "isSignal": true; }; }, {}, ["stepDirectives", "indicatorSlot", "badgeSlot", "busySpinnerSlot", "rejectionSlot", "errorSlot", "groupHeaderSlot", "emptySlot", "dotSlot"], ["cngx-stepper-footer, [cngxStepperFooter]"], true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; "orientation": "orientation"; "commitAction": "commitAction"; "commitMode": "commitMode"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }, { directive: typeof i2.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }, { directive: typeof _cngx_common_stepper.CngxStepperSwipeNav; inputs: { "mobileSwipe": "mobileSwipe"; }; outputs: {}; }, { directive: typeof i2.CngxFocusRestore; inputs: {}; outputs: {}; }]>;
269
336
  }
270
337
 
271
338
  /**
@@ -283,28 +350,40 @@ declare class CngxStepper implements CngxStepPanelHost {
283
350
  * cascades as `<cngx-stepper>`; a step-less flow renders the
284
351
  * `CNGX_STEPPER_CONFIG` empty-template cascade instead of the bar.
285
352
  *
286
- * @category ui/stepper
287
- * @docsKind primary
288
353
  * @wcag AA
289
354
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/progress-bar-stepper.component.ts
290
- * @since 0.1.0
355
+ * @since 0.3.0
291
356
  * @relatedTo CngxStepperPresenter, CngxProgress, CngxDotStepper, CngxTextStepper
292
357
  * @slot cngxStepperEmpty Renders when no step is projected at all.
293
358
  * @playground Material theme coverage across variants ./examples/material-theme-coverage/variants-coverage.component.ts
294
- * <example-url>http://localhost:4200/#/ui/stepper/progress-bar/onboarding-flow</example-url>
359
+ * <example-url>/#/ui/stepper/progress-bar/onboarding-flow</example-url>
360
+ * @axis level organism
295
361
  */
296
362
  declare class CngxProgressBarStepper {
363
+ /**
364
+ * Accessible name of the stepper host, bound as `[aria-label]`. Resolution order: this input,
365
+ * then the `stepperLabel` string of the stepper i18n bundle. Ignored while a non-empty
366
+ * `[aria-labelledby]` is set.
367
+ */
297
368
  readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
369
+ /**
370
+ * Id reference list naming the stepper host, bound as `[aria-labelledby]`. A non-empty value
371
+ * is written to the host and suppresses the `aria-label` cascade, so the host carries no
372
+ * `aria-label` at all.
373
+ */
298
374
  readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
299
375
  /** Render a `Step N of M` caption below the bar. Off by default. */
300
376
  readonly showStepCount: _angular_core.InputSignal<boolean>;
301
377
  protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
302
378
  protected readonly i18n: _angular_core.Signal<_cngx_common_stepper.CngxStepperI18n>;
303
379
  protected readonly config: _cngx_common_stepper.CngxStepperConfig;
304
- /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */
380
+ /** Shared accname cascade (input → `i18n.stepperLabel`). */
305
381
  protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
306
382
  private readonly fallbackLabels;
307
- /** Landmark role-description with config + i18n cascade, mirroring `<cngx-stepper>`. */
383
+ /**
384
+ * Landmark role-description mirroring `<cngx-stepper>`: config
385
+ * `fallbackLabels`, then the library default, never the stepper name.
386
+ */
308
387
  protected readonly stepperRoleDescription: _angular_core.Signal<string>;
309
388
  private readonly emptySlot;
310
389
  /**
@@ -327,9 +406,10 @@ declare class CngxProgressBarStepper {
327
406
  protected readonly completedPercent: _angular_core.Signal<number>;
328
407
  protected readonly captionText: _angular_core.Signal<string>;
329
408
  /**
330
- * Aggregate error caption. A single errored step names itself
331
- * (`"Payment: Errored"`), several collapse to the i18n count phrase.
332
- * Read only when `stateView.hasAnyError()` gates the template.
409
+ * Aggregate error caption. A single marked step names itself
410
+ * (`"Payment: Errored"`, or `"Payment: Not allowed"` for a refused step
411
+ * change), several collapse to the i18n count phrase. Empty when no step
412
+ * is marked, which keeps the error line quiet.
333
413
  */
334
414
  protected readonly errorText: _angular_core.Signal<string>;
335
415
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxProgressBarStepper, never>;
@@ -359,28 +439,58 @@ declare class CngxProgressBarStepper {
359
439
  * defaults cascade through `var(--cngx-step-active-fill, ...)`, so the
360
440
  * Phase A active-fill chain reaches the dot variant without duplication.
361
441
  *
362
- * @category ui/stepper
363
- * @docsKind primary
364
442
  * @wcag AA
365
443
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/dot-stepper.component.ts
366
- * @since 0.1.0
444
+ * @since 0.3.0
367
445
  * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxTextStepper
368
446
  * @slot cngxDotStepperDot Replaces one dot; gets its index and active state.
369
447
  * @slot cngxStepperEmpty Renders when no step is projected at all.
370
- * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/mobile-carousel</example-url>
448
+ * <example-url>/#/ui/stepper/dot-stepper/mobile-carousel</example-url>
449
+ * @axis level organism
371
450
  */
372
451
  declare class CngxDotStepper {
452
+ /**
453
+ * Accessible name of the stepper host, bound as `[aria-label]`. Resolution order: this input,
454
+ * then the `stepperLabel` string of the stepper i18n bundle. Ignored while a non-empty
455
+ * `[aria-labelledby]` is set.
456
+ */
373
457
  readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
458
+ /**
459
+ * Id reference list naming the stepper host, bound as `[aria-labelledby]`. A non-empty value
460
+ * is written to the host and suppresses the `aria-label` cascade, so the host carries no
461
+ * `aria-label` at all.
462
+ */
374
463
  readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
375
464
  protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
376
465
  protected readonly i18n: Signal<_cngx_common_stepper.CngxStepperI18n>;
377
466
  protected readonly config: _cngx_common_stepper.CngxStepperConfig;
378
- /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */
467
+ /** Shared accname cascade (input → `i18n.stepperLabel`). */
379
468
  protected readonly resolvedAriaLabel: Signal<string | null>;
380
469
  /** Mobile-swipe routing surface composed via hostDirectives. */
381
470
  protected readonly swipeNav: CngxStepperSwipeNav;
382
471
  /** Document writing direction - flips the inline next/previous arrows under `rtl` (APG). */
383
472
  private readonly direction;
473
+ /** Error marks drawn over an errored (alert) or refused (ban) dot. */
474
+ protected readonly exclamationIcon: {
475
+ readonly viewBox: "0 0 24 24";
476
+ readonly d: "M11,14V5h2v9H11Zm0,5V17h2v2H11Z";
477
+ readonly paint: "fill";
478
+ readonly micro: {
479
+ readonly viewBox: "0 0 12 12";
480
+ readonly d: "M5 2H7V8H5ZM5 9H7V11H5Z";
481
+ };
482
+ readonly small: null;
483
+ };
484
+ protected readonly banIcon: {
485
+ readonly viewBox: "0 0 24 24";
486
+ readonly d: "M2.5 12a9.5 9.5 0 1 0 19 0a9.5 9.5 0 1 0-19 0zM5.3 5.3l13.4 13.4";
487
+ readonly paint: "stroke";
488
+ readonly micro: {
489
+ readonly viewBox: "0 0 12 12";
490
+ readonly d: "M6 0A6 6 0 1 1 6 12A6 6 0 1 1 6 0ZM9.668 8.607A4.5 4.5 0 0 0 3.393 2.332ZM2.332 3.393A4.5 4.5 0 0 0 8.607 9.668Z";
491
+ };
492
+ readonly small: null;
493
+ };
384
494
  protected readonly stepNodes: Signal<readonly CngxStepNode[]>;
385
495
  protected readonly activeIndex: Signal<number>;
386
496
  /** Shared per-step/aggregate state derivations - the single error source. */
@@ -411,9 +521,10 @@ declare class CngxDotStepper {
411
521
  protected isActive(node: CngxStepNode, index: number): boolean;
412
522
  protected isCompleted(index: number): boolean;
413
523
  /**
414
- * Resolved `data-state` for the dot: `'error'` whenever the unified error
415
- * view fires (covers commit rejection and the error aggregator, not just a
416
- * literal `state === 'error'`), otherwise the raw step status.
524
+ * Resolved `data-state` for the dot: `'error'` whenever the error marker
525
+ * fires (covers a commit rejection of either kind and the error
526
+ * aggregator, not just a literal `state === 'error'`), otherwise the raw
527
+ * step status.
417
528
  */
418
529
  protected dotState(node: CngxStepNode): string;
419
530
  protected ariaLabelFor(node: CngxStepNode, index: number): string;
@@ -435,14 +546,13 @@ declare class CngxDotStepper {
435
546
  * Material consumers inherit surrounding text styling via CSS
436
547
  * inheritance, no theme bridge required.
437
548
  *
438
- * @category ui/stepper
439
- * @docsKind primary
440
549
  * @wcag AA
441
550
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/text-stepper.component.ts
442
- * @since 0.1.0
551
+ * @since 0.3.0
443
552
  * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxDotStepper
444
553
  * @slot cngxStepperEmpty Renders when no step is projected at all.
445
- * <example-url>http://localhost:4200/#/ui/stepper/text-stepper/inline-progress</example-url>
554
+ * <example-url>/#/ui/stepper/text-stepper/inline-progress</example-url>
555
+ * @axis level organism
446
556
  */
447
557
  declare class CngxTextStepper {
448
558
  /** Append the active step's label to the count text. Off by default. */
@@ -465,10 +575,10 @@ declare class CngxTextStepper {
465
575
  protected readonly currentStep: Signal<number>;
466
576
  protected readonly stepText: Signal<string>;
467
577
  /**
468
- * Aggregate error sub-line text. A single errored step names itself
469
- * (`"Payment: Errored"`), several collapse to the i18n count phrase
470
- * (`"2 errors"`). Empty when no step errored - the template gates on
471
- * `stateView.hasAnyError()`, so this is only read when non-empty.
578
+ * Aggregate error sub-line text. A single marked step names itself
579
+ * (`"Payment: Errored"`, or `"Payment: Not allowed"` for a refused step
580
+ * change), several collapse to the i18n count phrase (`"2 errors"`).
581
+ * Empty when no step is marked, which keeps the error line quiet.
472
582
  */
473
583
  protected readonly errorText: Signal<string>;
474
584
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTextStepper, never>;
@@ -494,6 +604,12 @@ declare class CngxTextStepper {
494
604
  * consumer-projected button content. With no host at all, the proxy's
495
605
  * neutral set renders the nav buttons disabled.
496
606
  *
607
+ * **Keeps focus in a region when its control is replaced:** \
608
+ * When the focused control of a region leaves the DOM (Continue swapped
609
+ * for Finish by an `@if`) and focus fell to `body`, the footer focuses
610
+ * the first focusable control of the same region after that render. Focus
611
+ * the user had already moved out of the footer stays where it is.
612
+ *
497
613
  * ```html
498
614
  * <cngx-stepper #s="cngxStepper"> … </cngx-stepper>
499
615
  * <cngx-stepper-footer [host]="s.presenter">
@@ -503,19 +619,18 @@ declare class CngxTextStepper {
503
619
  * </cngx-stepper-footer>
504
620
  * ```
505
621
  *
506
- * @category ui/stepper
507
- * @docsKind primary
508
622
  * @wcag AA
509
623
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/footer/stepper-footer.component.ts
510
- * @since 0.1.0
624
+ * @since 0.3.0
511
625
  * @relatedTo CngxStepper, CngxStepperPrevious, CngxStepperNext, CngxStepperComplete, CngxStepperCount
512
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/back-continue</example-url>
513
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/save-draft-extra-button</example-url>
514
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/footer-with-progress-center</example-url>
515
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/percent-complete-center</example-url>
516
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/segmented-progress-center</example-url>
517
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/complete-finish-button</example-url>
518
- * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/async-commit-status</example-url>
626
+ * <example-url>/#/ui/stepper/stepper-footer/back-continue</example-url>
627
+ * <example-url>/#/ui/stepper/stepper-footer/save-draft-extra-button</example-url>
628
+ * <example-url>/#/ui/stepper/stepper-footer/footer-with-progress-center</example-url>
629
+ * <example-url>/#/ui/stepper/stepper-footer/percent-complete-center</example-url>
630
+ * <example-url>/#/ui/stepper/stepper-footer/segmented-progress-center</example-url>
631
+ * <example-url>/#/ui/stepper/stepper-footer/complete-finish-button</example-url>
632
+ * <example-url>/#/ui/stepper/stepper-footer/async-commit-status</example-url>
633
+ * @axis level molecule
519
634
  */
520
635
  declare class CngxStepperFooter {
521
636
  /**
@@ -527,6 +642,15 @@ declare class CngxStepperFooter {
527
642
  private readonly injectedHost;
528
643
  /** Resolved host: explicit input wins, else the ambient ancestor host. */
529
644
  readonly resolvedHost: _angular_core.Signal<CngxStepperHost | null>;
645
+ private readonly hostEl;
646
+ private readonly document;
647
+ private lastFocus;
648
+ constructor();
649
+ /** @internal */
650
+ protected trackFocus(event: FocusEvent): void;
651
+ /** @internal */
652
+ protected forgetFocus(event: FocusEvent): void;
653
+ private restoreFocus;
530
654
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStepperFooter, never>;
531
655
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStepperFooter, "cngx-stepper-footer", ["cngxStepperFooter"], { "host": { "alias": "host"; "required": false; "isSignal": true; }; }, {}, never, ["[cngxStepperFooterStart]", "[cngxStepperFooterCenter]", "[cngxStepperFooterEnd]"], true, never>;
532
656
  }
@@ -539,8 +663,7 @@ declare class CngxStepperFooter {
539
663
  * <button cngxStepperFooterStart cngxStepperPrevious>Back</button>
540
664
  * ```
541
665
  *
542
- * @category ui/stepper
543
- * @since 0.1.0
666
+ * @since 0.3.0
544
667
  * @relatedTo CngxStepperFooter, CngxStepperFooterCenter, CngxStepperFooterEnd
545
668
  */
546
669
  declare class CngxStepperFooterStart {
@@ -551,8 +674,7 @@ declare class CngxStepperFooterStart {
551
674
  * Marker for the footer's center region - a progress hint, a
552
675
  * `<cngx-stepper-count>`, or a "50% complete" caption.
553
676
  *
554
- * @category ui/stepper
555
- * @since 0.1.0
677
+ * @since 0.3.0
556
678
  * @relatedTo CngxStepperFooter, CngxStepperFooterStart, CngxStepperFooterEnd
557
679
  */
558
680
  declare class CngxStepperFooterCenter {
@@ -563,8 +685,7 @@ declare class CngxStepperFooterCenter {
563
685
  * Marker for the footer's trailing region (inline-end) - typically a
564
686
  * Continue / Finish control, optionally preceded by a "Save draft".
565
687
  *
566
- * @category ui/stepper
567
- * @since 0.1.0
688
+ * @since 0.3.0
568
689
  * @relatedTo CngxStepperFooter, CngxStepperFooterStart, CngxStepperFooterCenter
569
690
  */
570
691
  declare class CngxStepperFooterEnd {