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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +22 -48
  2. package/action-button/README.md +9 -11
  3. package/empty-state/README.md +11 -26
  4. package/feedback/README.md +3 -3
  5. package/fesm2022/cngx-ui-action-button.mjs +30 -26
  6. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  7. package/fesm2022/cngx-ui-empty-state.mjs +26 -21
  8. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  9. package/fesm2022/cngx-ui-feedback.mjs +498 -261
  10. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  11. package/fesm2022/cngx-ui-layout.mjs +32 -5
  12. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-mat-stepper.mjs +79 -104
  14. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-mat-tabs.mjs +111 -83
  16. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  17. package/fesm2022/cngx-ui-material.mjs +14 -3
  18. package/fesm2022/cngx-ui-material.mjs.map +1 -1
  19. package/fesm2022/cngx-ui-overlay.mjs +22 -3
  20. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  21. package/fesm2022/cngx-ui-sidenav.mjs +107 -28
  22. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  23. package/fesm2022/cngx-ui-skeleton.mjs +61 -20
  24. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-speak.mjs +14 -5
  26. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  27. package/fesm2022/cngx-ui-stepper.mjs +484 -161
  28. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  29. package/fesm2022/cngx-ui-tabs.mjs +75 -39
  30. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  31. package/fesm2022/cngx-ui.mjs +2 -1
  32. package/fesm2022/cngx-ui.mjs.map +1 -1
  33. package/layout/README.md +9 -44
  34. package/mat-stepper/README.md +7 -10
  35. package/mat-tabs/README.md +13 -13
  36. package/mat-tabs/styles/mat-tabs.css +339 -213
  37. package/material/README.md +19 -19
  38. package/overlay/README.md +11 -11
  39. package/package.json +5 -4
  40. package/sidenav/README.md +4 -19
  41. package/skeleton/README.md +3 -17
  42. package/speak/README.md +15 -15
  43. package/stepper/README.md +139 -5
  44. package/tabs/README.md +4 -4
  45. package/theming/system-tokens.css +29 -0
  46. package/types/cngx-ui-action-button.d.ts +28 -13
  47. package/types/cngx-ui-empty-state.d.ts +21 -9
  48. package/types/cngx-ui-feedback.d.ts +437 -121
  49. package/types/cngx-ui-layout.d.ts +38 -8
  50. package/types/cngx-ui-mat-stepper.d.ts +58 -43
  51. package/types/cngx-ui-mat-tabs.d.ts +122 -72
  52. package/types/cngx-ui-material.d.ts +12 -1
  53. package/types/cngx-ui-overlay.d.ts +25 -4
  54. package/types/cngx-ui-sidenav.d.ts +106 -12
  55. package/types/cngx-ui-skeleton.d.ts +62 -8
  56. package/types/cngx-ui-speak.d.ts +10 -2
  57. package/types/cngx-ui-stepper.d.ts +280 -56
  58. package/types/cngx-ui-tabs.d.ts +38 -10
  59. package/types/cngx-ui.d.ts +1 -0
  60. package/speak/speak-button-theme.scss +0 -78
@@ -1,5 +1,5 @@
1
1
  import * as _cngx_common_stepper from '@cngx/common/stepper';
2
- import { CngxStepPanelHost, CngxStepNode, CngxStepIndicatorContext, CngxStepBadgeContext, CngxStepBusySpinnerContext, CngxStepRejectionContext, CngxStepGroupHeaderContext, CngxStepLabelContext, CngxStepContentContext } from '@cngx/common/stepper';
2
+ import { CngxStepPanelHost, CngxStepperSkin, CngxStepperMobileIndicatorPosition, CngxStepperSwipeNav, CngxStepNode, CngxStepLabelContext, CngxStepContentContext, CngxDotStepperDotContext, CngxStepperHost } from '@cngx/common/stepper';
3
3
  import * as _angular_core from '@angular/core';
4
4
  import { Signal, TemplateRef } from '@angular/core';
5
5
  import * as i2 from '@cngx/common/a11y';
@@ -10,11 +10,48 @@ import * as i2 from '@cngx/common/a11y';
10
10
  * forwards `activeStepIndex`/`linear`/`orientation`/`commitAction`/
11
11
  * `commitMode` to the presenter. Material twin lives in
12
12
  * `@cngx/ui/mat-stepper`. ARIA attrs are in the `computed()` graph.
13
+ *
14
+ * @category ui/stepper
15
+ * @docsKind primary
16
+ * @wcag AA
17
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/stepper.component.ts
18
+ * @since 0.1.0
19
+ * @relatedTo CngxStepperPresenter, CngxStep, CngxRovingTabindex, CngxFocusRestore, CngxLiveRegion
20
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-horizontal/three-step-wizard</example-url>
21
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-vertical/vertical-sidebar-layout</example-url>
22
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-linear/linear-gating-with-completion-checkboxes</example-url>
23
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-mobile-collapse/dots-collapse</example-url>
24
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/linear-minimal</example-url>
25
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/stripe-status-rich</example-url>
26
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/path-chevron</example-url>
27
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/pill-segment</example-url>
28
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/chips</example-url>
29
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/breadcrumb</example-url>
30
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/all-skins-side-by-side</example-url>
31
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/material-theme-coverage</example-url>
32
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/linear-minimal-vertical</example-url>
33
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/stripe-status-rich-vertical</example-url>
34
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/path-chevron-vertical</example-url>
35
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/pill-segment-vertical</example-url>
36
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/chips-vertical</example-url>
13
37
  */
14
38
  declare class CngxStepper implements CngxStepPanelHost {
15
39
  readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
16
40
  readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
17
- protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
41
+ /** Per-instance skin override; flips `[data-skin]`, structure/ARIA unchanged. */
42
+ readonly skin: _angular_core.InputSignal<CngxStepperSkin | undefined>;
43
+ /** Opt the classic skin into the connector-rail presentation. Off by default, classic-scoped. */
44
+ readonly connectors: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
45
+ /**
46
+ * Opt-in `Step N of M` caption under the mobile `'dots'` row. In
47
+ * the `'text'` collapse branch the count IS the indicator and is
48
+ * always rendered; this input only gates the supplemental caption
49
+ * that sits next to the dot row.
50
+ */
51
+ readonly showStepCount: _angular_core.InputSignal<boolean>;
52
+ readonly mobileIndicatorPosition: _angular_core.InputSignal<CngxStepperMobileIndicatorPosition | undefined>;
53
+ /** Stepper-host contract; exposed so external `<cngx-stepper-count>` / bridge consumers can `[host]="s.presenter"` via `#s="cngxStepper"`. */
54
+ readonly presenter: _cngx_common_stepper.CngxStepperHost;
18
55
  protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
19
56
  protected readonly config: _cngx_common_stepper.CngxStepperConfig;
20
57
  private readonly hostElement;
@@ -26,7 +63,7 @@ declare class CngxStepper implements CngxStepPanelHost {
26
63
  private readonly rejectionSlot;
27
64
  private readonly groupHeaderSlot;
28
65
  private readonly emptySlot;
29
- /** Default-template glyph source — read by `#defaultBadge` / `#defaultRejection` outlets. */
66
+ /** Default-template glyph source - read by `#defaultBadge` / `#defaultRejection` outlets. */
30
67
  protected readonly glyphs: {
31
68
  readonly errorBadge: "!";
32
69
  readonly rejectionIcon: "!";
@@ -37,10 +74,15 @@ declare class CngxStepper implements CngxStepPanelHost {
37
74
  * `CNGX_STEPPER_CONFIG.templates.<key>` → `null` (built-in default).
38
75
  */
39
76
  protected readonly templates: _cngx_common_stepper.CngxStepperTemplateBindings;
77
+ protected readonly displayMode: Signal<"classic" | "text" | "dots">;
40
78
  constructor();
41
79
  /** Stepper landmark role-description with config + i18n cascade. */
42
80
  protected readonly stepperRoleDescription: Signal<string>;
43
- /** Group landmark role-description with config + i18n cascade. */
81
+ /** Resolved skin / connectors / mobile-indicator host attrs (Level-2 cascade helper). */
82
+ protected readonly hostAttrs: _cngx_common_stepper.CngxStepperHostAttrs;
83
+ /** Mobile-swipe navigation host directive (Level-2 composition). */
84
+ protected readonly swipeNav: CngxStepperSwipeNav;
85
+ protected statusLabelFor: (node: CngxStepNode) => string;
44
86
  protected readonly groupRoleDescription: Signal<string>;
45
87
  /**
46
88
  * `aria-label` cascade: input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`.
@@ -51,57 +93,24 @@ declare class CngxStepper implements CngxStepPanelHost {
51
93
  readonly flatSteps: Signal<readonly CngxStepNode[]>;
52
94
  readonly activeStepIndex: Signal<number>;
53
95
  readonly activeStepId: Signal<string | null>;
54
- /**
55
- * Step-only flat projection (group nodes filtered out). Structural equal
56
- * via `flatStepsEqual` — downstream consumers don't re-walk on shape-stable
57
- * `flatSteps()` re-emits.
58
- */
59
- protected readonly stepsOnly: Signal<CngxStepNode[]>;
96
+ protected readonly stepsOnly: Signal<readonly CngxStepNode[]>;
60
97
  /**
61
98
  * Position in the step-only flat projection. Group nodes carry `-1`;
62
99
  * callers must guard on `kind === 'step'`.
63
100
  */
64
101
  protected stepIndexOf(node: CngxStepNode): number;
65
- protected isActive(node: CngxStepNode): boolean;
66
- protected isStepBusy(node: CngxStepNode): boolean;
67
- /** Commit-in-flight flag — drives the host `aria-busy` binding. Pillar 2. */
102
+ /** Per-step predicates + slot-context builders (Level-2 factory). */
103
+ protected readonly slotContext: _cngx_common_stepper.CngxStepperSlotContextBuilders;
104
+ /** Commit-in-flight flag - drives the host `aria-busy` binding. Pillar 2. */
68
105
  protected readonly isCommitting: Signal<boolean>;
69
106
  protected stepHeaderId(node: CngxStepNode): string;
70
107
  protected stepPanelId(node: CngxStepNode): string;
71
108
  protected stepDescriptorId(node: CngxStepNode): string;
72
- /**
73
- * Live-region content. Empty string between transitions keeps the region
74
- * quiet on no-op CD ticks. Error-arm priority:
75
- * 1. `commitRolledBackTo(originLabel)` when both `lastFailedIndex` and a
76
- * resolvable origin label exist.
77
- * 2. `commitFailedRetry` otherwise.
78
- */
79
- protected readonly liveAnnouncement: Signal<string>;
80
- /** SR descriptor phrase. Aggregator-announced or "Step N of M: <label>"; appends stepRolledBackSuffix on the rejected row. */
81
- protected statusPhrase(node: CngxStepNode): string;
82
- /** Group descriptor — rolls up children's aggregated status. */
83
- protected groupStatusPhrase(node: CngxStepNode): string;
84
- /** Whether to render the error badge for a step node. */
85
- protected showErrorBadge(node: CngxStepNode): boolean;
86
- /**
87
- * Render the rejection decoration when this step's flat-index matches
88
- * `presenter.lastFailedIndex()`. Closes stepper-accepted-debt §2.
89
- */
90
- protected showRejection(node: CngxStepNode): boolean;
91
- /** Build the slot context for `*cngxStepIndicator`. */
92
- protected indicatorContextFor(node: CngxStepNode): CngxStepIndicatorContext;
93
- /** Build the slot context for `*cngxStepBadge`. */
94
- protected badgeContextFor(node: CngxStepNode): CngxStepBadgeContext;
95
- /** Build the slot context for `*cngxStepBusySpinner`. */
96
- protected busySpinnerContextFor(node: CngxStepNode): CngxStepBusySpinnerContext;
97
- /**
98
- * Build the slot context for `*cngxStepRejection`. Resolves origin label
99
- * from `presenter.originIndexDuringCommit()` via `stepsOnly()`.
100
- */
101
- protected rejectionContextFor(node: CngxStepNode): CngxStepRejectionContext;
102
- /** Build the slot context for `*cngxStepGroupHeader`. */
103
- protected groupHeaderContextFor(node: CngxStepNode): CngxStepGroupHeaderContext;
109
+ /** Live-region + per-step + group SR phrase builders (Level-2 factory). */
110
+ protected readonly announcement: _cngx_common_stepper.CngxStepperAnnouncementBuilders;
104
111
  protected handleHeaderClick(node: CngxStepNode): void;
112
+ /** Strip-scoped arrow-key handler. See {@link createStepperStripKeyboardNav}. */
113
+ protected readonly handleStripKeyDown: (event: KeyboardEvent) => void;
105
114
  /**
106
115
  * Clear the presenter's `lastFailedIndex`. Lets template-ref consumers
107
116
  * (`#s="cngxStepper"`) dismiss the rejection decoration without injecting
@@ -110,20 +119,235 @@ declare class CngxStepper implements CngxStepPanelHost {
110
119
  clearLastFailed(): void;
111
120
  labelTemplateFor(id: string): TemplateRef<CngxStepLabelContext> | null;
112
121
  contentTemplateFor(id: string): TemplateRef<CngxStepContentContext> | null;
122
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStepper, never>;
123
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStepper, "cngx-stepper", ["cngxStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "skin": { "alias": "skin"; "required": false; "isSignal": true; }; "connectors": { "alias": "connectors"; "required": false; "isSignal": true; }; "showStepCount": { "alias": "showStepCount"; "required": false; "isSignal": true; }; "mobileIndicatorPosition": { "alias": "mobileIndicatorPosition"; "required": false; "isSignal": true; }; }, {}, ["stepDirectives", "indicatorSlot", "badgeSlot", "busySpinnerSlot", "rejectionSlot", "groupHeaderSlot", "emptySlot"], ["cngx-stepper-footer, [cngxStepperFooter]"], true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; "orientation": "orientation"; "commitAction": "commitAction"; "commitMode": "commitMode"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }, { directive: typeof i2.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }, { directive: typeof _cngx_common_stepper.CngxStepperSwipeNav; inputs: { "mobileSwipe": "mobileSwipe"; }; outputs: {}; }, { directive: typeof i2.CngxFocusRestore; inputs: {}; outputs: {}; }]>;
124
+ }
125
+
126
+ /**
127
+ * Progress-Bar stepper variant. Thin Level-4 organism composing
128
+ * `CngxStepperPresenter` via `hostDirectives` and rendering the
129
+ * existing `<cngx-progress>` primitive as the visual bar instead of
130
+ * reinventing `<div role="progressbar">`. Material consumers inherit
131
+ * Material progress styling through `CngxProgress` automatically.
132
+ *
133
+ * `completedPercent()` is `computed` from `presenter.activeStepIndex()`
134
+ * and the count of step nodes in `presenter.flatSteps()`. Optional
135
+ * `[showStepCount]` adds a `Step N of M` caption sourced from
136
+ * `CngxStepperI18n.textStepperFormat`.
137
+ *
138
+ * @category ui/stepper
139
+ * @docsKind primary
140
+ * @wcag AA
141
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/progress-bar-stepper.component.ts
142
+ * @since 0.1.0
143
+ * @relatedTo CngxStepperPresenter, CngxProgress, CngxDotStepper, CngxTextStepper
144
+ * <example-url>http://localhost:4200/#/ui/stepper/progress-bar/onboarding-flow</example-url>
145
+ */
146
+ declare class CngxProgressBarStepper {
147
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
148
+ readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
149
+ /** Render a `Step N of M` caption below the bar. Off by default. */
150
+ readonly showStepCount: _angular_core.InputSignal<boolean>;
151
+ protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
152
+ protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
153
+ /** Total step count (group nodes excluded). */
154
+ protected readonly totalSteps: _angular_core.Signal<number>;
155
+ /** 1-based active position used in the caption format. */
156
+ protected readonly currentStep: _angular_core.Signal<number>;
157
+ /**
158
+ * Completion percentage 0-100. `(active / max(total - 1, 1)) * 100`
159
+ * so the final step renders the bar full.
160
+ */
161
+ protected readonly completedPercent: _angular_core.Signal<number>;
162
+ protected readonly captionText: _angular_core.Signal<string>;
163
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxProgressBarStepper, never>;
164
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxProgressBarStepper, "cngx-progress-bar-stepper", ["cngxProgressBarStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "showStepCount": { "alias": "showStepCount"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }]>;
165
+ }
166
+
167
+ /**
168
+ * Dot stepper variant. Mobile-first sequential-flow indicator. Renders
169
+ * one labelled `<span role="img">` per step (a name-permitting role, so
170
+ * each dot announces "Step N of M: label") inside a
171
+ * `<div role="group" aria-roledescription="Step indicator">`. The active
172
+ * dot carries `aria-current="step"` per the W3C APG step-indicator
173
+ * pattern (NOT `role="tablist"` / `role="tab"` - those are reserved
174
+ * for parallel content panels, not sequential flow).
175
+ *
176
+ * Tap-to-select is intentionally NOT wired on individual dots: under
177
+ * the APG pattern each dot is a label, not a button, and attaching
178
+ * `(click)` to `role="img"` conflates two ARIA contracts. Navigation
179
+ * is offered uniformly via three modalities owned by the host element:
180
+ * arrow / Home / End keys, the composed `CngxStepperSwipeNav` dot-row
181
+ * gesture, and the two-way `[(activeStepIndex)]` binding for
182
+ * external buttons. Consumers wanting per-dot tap-to-jump compose the
183
+ * parent `<cngx-stepper>` (whose mobile-collapse `dots` branch
184
+ * renders each dot as a `<button>`).
185
+ *
186
+ * Theming flows through new `--cngx-dot-step-*` custom properties whose
187
+ * defaults cascade through `var(--cngx-step-active-fill, ...)`, so the
188
+ * Phase A active-fill chain reaches the dot variant without duplication.
189
+ *
190
+ * @category ui/stepper
191
+ * @docsKind primary
192
+ * @wcag AA
193
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/dot-stepper.component.ts
194
+ * @since 0.1.0
195
+ * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxTextStepper
196
+ * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/mobile-carousel</example-url>
197
+ * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/icon-dots-via-code-cngxdotstepperdot-code</example-url>
198
+ */
199
+ declare class CngxDotStepper {
200
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
201
+ readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
202
+ protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
203
+ protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
204
+ protected readonly config: _cngx_common_stepper.CngxStepperConfig;
205
+ /** Mobile-swipe routing surface composed via hostDirectives. */
206
+ protected readonly swipeNav: CngxStepperSwipeNav;
207
+ protected readonly stepNodes: Signal<readonly CngxStepNode[]>;
208
+ protected readonly activeIndex: Signal<number>;
209
+ private readonly dotSlot;
113
210
  /**
114
- * Build the {@link CngxStepLabelContext} for `*cngxStepLabel`.
115
- * `index` is 1-based (mirrors indicator position); group nodes
116
- * (`flatIndex === -1`) yield `0` and are never iterated here.
211
+ * Resolved dot-body template cascade: per-instance `*cngxDotStepperDot`
212
+ * directive > `CNGX_STEPPER_CONFIG.templates.dotStepperDot` > `null`
213
+ * (built-in empty body). Pillar 1 — resolution is a `computed`, not
214
+ * manual sync.
117
215
  */
118
- protected stepLabelContextFor(node: CngxStepNode): CngxStepLabelContext;
216
+ protected readonly resolvedDotTemplate: Signal<TemplateRef<CngxDotStepperDotContext> | null>;
217
+ protected isActive(node: CngxStepNode, index: number): boolean;
218
+ protected isCompleted(index: number): boolean;
219
+ protected ariaLabelFor(node: CngxStepNode, index: number): string;
220
+ /** Build the slot context for `*cngxDotStepperDot`. */
221
+ protected dotContextFor(node: CngxStepNode, index: number): CngxDotStepperDotContext;
222
+ protected handleKeyDown(event: KeyboardEvent): void;
223
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDotStepper, never>;
224
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxDotStepper, "cngx-dot-stepper", ["cngxDotStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; }, {}, ["dotSlot"], never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }, { directive: typeof _cngx_common_stepper.CngxStepperSwipeNav; inputs: { "mobileSwipe": "mobileSwipe"; }; outputs: {}; }]>;
225
+ }
226
+
227
+ /**
228
+ * Text stepper variant. Smallest possible stepper: a single
229
+ * `<span aria-live="polite">` driven by the presenter. Renders
230
+ * `Step N of M` by default (sourced from
231
+ * `CngxStepperI18n.textStepperFormat`); optional `[showCurrentLabel]`
232
+ * appends the active step's label next to the count. Material consumers
233
+ * inherit surrounding text styling via CSS inheritance, no theme bridge
234
+ * required.
235
+ *
236
+ * @category ui/stepper
237
+ * @docsKind primary
238
+ * @wcag AA
239
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/text-stepper.component.ts
240
+ * @since 0.1.0
241
+ * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxDotStepper
242
+ * <example-url>http://localhost:4200/#/ui/stepper/text-stepper/inline-progress</example-url>
243
+ */
244
+ declare class CngxTextStepper {
245
+ /** Append the active step's label to the count text. Off by default. */
246
+ readonly showCurrentLabel: _angular_core.InputSignal<boolean>;
247
+ protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
248
+ protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
249
+ protected readonly stepNodes: Signal<readonly CngxStepNode[]>;
250
+ protected readonly totalSteps: Signal<number>;
251
+ protected readonly currentStep: Signal<number>;
252
+ protected readonly stepText: Signal<string>;
253
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTextStepper, never>;
254
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxTextStepper, "cngx-text-stepper", ["cngxTextStepper"], { "showCurrentLabel": { "alias": "showCurrentLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }]>;
255
+ }
256
+
257
+ /**
258
+ * Navigation action-bar molecule for the stepper family. Lays out three
259
+ * regions - start (Back), center (progress hint), end (Continue / Finish)
260
+ * - and wires the {@link CNGX_STEPPER_HOST} for any nav atoms a consumer
261
+ * drops inside.
262
+ *
263
+ * Resolves its host like `CngxStepperCount`: an explicit `[host]` input
264
+ * for placement outside the stepper tree, falling back to the ambient
265
+ * host injected from an ancestor `<cngx-stepper>` / `<cngx-mat-stepper>`
266
+ * (`skipSelf`, so the footer reads the real presenter rather than its own
267
+ * re-provided proxy). It then re-provides `CNGX_STEPPER_HOST` as a live
268
+ * {@link createStepperHostProxy} over the resolved host, so child
269
+ * `[cngxStepperPrevious]` / `[cngxStepperNext]` atoms resolve it
270
+ * ambiently whether the footer is nested or used standalone with
271
+ * `[host]`. `providers` (not `viewProviders`) carries the proxy to the
272
+ * consumer-projected button content. With no host at all, the proxy's
273
+ * neutral set renders the nav buttons disabled.
274
+ *
275
+ * ```html
276
+ * <cngx-stepper #s="cngxStepper"> … </cngx-stepper>
277
+ * <cngx-stepper-footer [host]="s.presenter">
278
+ * <button cngxStepperFooterStart cngxStepperPrevious>Back</button>
279
+ * <cngx-stepper-count cngxStepperFooterCenter />
280
+ * <button cngxStepperFooterEnd cngxStepperNext>Continue</button>
281
+ * </cngx-stepper-footer>
282
+ * ```
283
+ *
284
+ * @category ui/stepper
285
+ * @docsKind primary
286
+ * @wcag AA
287
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/footer/stepper-footer.component.ts
288
+ * @since 0.1.0
289
+ * @relatedTo CngxStepper, CngxStepperPrevious, CngxStepperNext, CngxStepperComplete, CngxStepperCount
290
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/back-continue</example-url>
291
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/save-draft-extra-button</example-url>
292
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/footer-with-progress-center</example-url>
293
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/percent-complete-center</example-url>
294
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/segmented-progress-center</example-url>
295
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/complete-finish-button</example-url>
296
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/async-commit-status</example-url>
297
+ */
298
+ declare class CngxStepperFooter {
119
299
  /**
120
- * Build the {@link CngxStepContentContext} for `*cngxStepContent`.
121
- * Same shape as the label context — content templates need the same
122
- * `disabled`/`busy` derivations.
300
+ * Explicit stepper-host reference for placement *outside* the stepper
301
+ * tree (`[host]="s.presenter"`). When unset, the ambient
302
+ * {@link CNGX_STEPPER_HOST} from an ancestor stepper is used.
123
303
  */
124
- protected stepContentContextFor(node: CngxStepNode): CngxStepContentContext;
125
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStepper, never>;
126
- 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; }; }, {}, ["stepDirectives", "indicatorSlot", "badgeSlot", "busySpinnerSlot", "rejectionSlot", "groupHeaderSlot", "emptySlot"], never, 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 i2.CngxFocusRestore; inputs: {}; outputs: {}; }]>;
304
+ readonly host: _angular_core.InputSignal<CngxStepperHost | null>;
305
+ private readonly injectedHost;
306
+ /** Resolved host: explicit input wins, else the ambient ancestor host. */
307
+ readonly resolvedHost: _angular_core.Signal<CngxStepperHost | null>;
308
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStepperFooter, never>;
309
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStepperFooter, "cngx-stepper-footer", ["cngxStepperFooter"], { "host": { "alias": "host"; "required": false; "isSignal": true; }; }, {}, never, ["[cngxStepperFooterStart]", "[cngxStepperFooterCenter]", "[cngxStepperFooterEnd]"], true, never>;
310
+ }
311
+
312
+ /**
313
+ * Marker for the footer's leading region (inline-start). Place on the
314
+ * element you want in the start slot - typically a Back control.
315
+ *
316
+ * ```html
317
+ * <button cngxStepperFooterStart cngxStepperPrevious>Back</button>
318
+ * ```
319
+ *
320
+ * @category ui/stepper
321
+ * @since 0.1.0
322
+ * @relatedTo CngxStepperFooter, CngxStepperFooterCenter, CngxStepperFooterEnd
323
+ */
324
+ declare class CngxStepperFooterStart {
325
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStepperFooterStart, never>;
326
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxStepperFooterStart, "[cngxStepperFooterStart]", never, {}, {}, never, never, true, never>;
327
+ }
328
+ /**
329
+ * Marker for the footer's center region - a progress hint, a
330
+ * `<cngx-stepper-count>`, or a "50% complete" caption.
331
+ *
332
+ * @category ui/stepper
333
+ * @since 0.1.0
334
+ * @relatedTo CngxStepperFooter, CngxStepperFooterStart, CngxStepperFooterEnd
335
+ */
336
+ declare class CngxStepperFooterCenter {
337
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStepperFooterCenter, never>;
338
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxStepperFooterCenter, "[cngxStepperFooterCenter]", never, {}, {}, never, never, true, never>;
339
+ }
340
+ /**
341
+ * Marker for the footer's trailing region (inline-end) - typically a
342
+ * Continue / Finish control, optionally preceded by a "Save draft".
343
+ *
344
+ * @category ui/stepper
345
+ * @since 0.1.0
346
+ * @relatedTo CngxStepperFooter, CngxStepperFooterStart, CngxStepperFooterCenter
347
+ */
348
+ declare class CngxStepperFooterEnd {
349
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStepperFooterEnd, never>;
350
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxStepperFooterEnd, "[cngxStepperFooterEnd]", never, {}, {}, never, never, true, never>;
127
351
  }
128
352
 
129
- export { CngxStepper };
353
+ export { CngxDotStepper, CngxProgressBarStepper, CngxStepper, CngxStepperFooter, CngxStepperFooterCenter, CngxStepperFooterEnd, CngxStepperFooterStart, CngxTextStepper };
@@ -10,10 +10,28 @@ import { CngxPopover } from '@cngx/common/popover';
10
10
  * + `CngxRovingTabindex` + `CngxFocusRestore` via `hostDirectives`.
11
11
  * Material variant lives at `[cngxMatTabs]` in `@cngx/ui/mat-tabs`.
12
12
  *
13
- * All ARIA attrs are signal-driven — never one-shot bindings.
13
+ * All ARIA attrs are signal-driven - never one-shot bindings.
14
14
  * `CngxLiveRegion` is mounted as a child `<span>` rather than a
15
15
  * host directive: its `role="status"` would clobber the wrapper's
16
16
  * `role="group"` landmark.
17
+ *
18
+ * @playground Form error aggregation ./examples/form-errors/form-errors.component.ts
19
+ * @see {@link CngxMatTabs} for the Material `<mat-tab-group>` variant with `[cngxMatTabError]`.
20
+ *
21
+ * @category ui/tabs
22
+ * @docsKind primary
23
+ * @wcag AA
24
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-group.component.ts
25
+ * @since 0.1.0
26
+ * @relatedTo CngxTabOverflow, CngxTabGroupPresenter, CngxTab, CngxRovingTabindex, CngxFocusRestore
27
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>
28
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-error-aggregation/per-tab-error-badges</example-url>
29
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-group-vertical/vertical-sidebar-tabs</example-url>
30
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-group/three-tab-navigation</example-url>
31
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/8-tabs-in-a-narrow-container</example-url>
32
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-slot-overrides/custom-busy-spinner-via-code-cngxtabbusyspinner-code</example-url>
33
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-slot-overrides/custom-error-badge-via-code-cngxtaberrorbadge-code</example-url>
34
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-slot-overrides/rejection-decoration-via-code-cngxtabrejectionicon-code</example-url>
17
35
  */
18
36
  declare class CngxTabGroup implements CngxTabPanelHost {
19
37
  readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
@@ -33,7 +51,7 @@ declare class CngxTabGroup implements CngxTabPanelHost {
33
51
  * Per-instance skin slots. Resolved via 3-stage cascade in {@link templates}:
34
52
  * `*cngxTab*` directive > `CNGX_TABS_CONFIG.templates.<key>` > built-in.
35
53
  * AOT (NG8110) requires `contentChild()` to be a direct field initialiser
36
- * on the variant — cascade resolution is delegated to the factory.
54
+ * on the variant - cascade resolution is delegated to the factory.
37
55
  */
38
56
  private readonly errorBadgeSlot;
39
57
  private readonly rejectionIconSlot;
@@ -73,12 +91,12 @@ declare class CngxTabGroup implements CngxTabPanelHost {
73
91
  /** `WeakMap`-cached context for `*cngxTabErrorBadge`. Stable ref per tab. */
74
92
  protected errorBadgeContextFor(tab: CngxTabHandle): CngxTabErrorBadgeContext;
75
93
  /**
76
- * Context for `*cngxTabBusySpinner`. Allocates fresh per CD —
94
+ * Context for `*cngxTabBusySpinner`. Allocates fresh per CD -
77
95
  * `intendedIndex` is reactive, and `*ngTemplateOutlet` only
78
96
  * re-evaluates `let-*` bindings when the context reference changes
79
97
  * (`Object.is` input-diff); a cached mutated object would leave
80
98
  * consumer bindings stale. `intendedIndex` is non-undefined by gate
81
- * — `isTabBusy(tab)` returning `true` requires it.
99
+ * - `isTabBusy(tab)` returning `true` requires it.
82
100
  */
83
101
  protected busySpinnerContextFor(tab: CngxTabHandle): CngxTabBusySpinnerContext;
84
102
  /**
@@ -91,7 +109,7 @@ declare class CngxTabGroup implements CngxTabPanelHost {
91
109
  protected handleHeaderClick(tab: CngxTabHandle): void;
92
110
  selectById(id: string): void;
93
111
  /**
94
- * Clear the presenter's `lastFailedIndex` rejection flag — exposed
112
+ * Clear the presenter's `lastFailedIndex` rejection flag - exposed
95
113
  * so template-ref consumers (`#tg="cngxTabGroup"`) can dismiss the
96
114
  * decoration without injecting the host token.
97
115
  */
@@ -108,12 +126,22 @@ declare class CngxTabGroup implements CngxTabPanelHost {
108
126
  * organism only via {@link CNGX_TAB_PANEL_HOST}.
109
127
  *
110
128
  * Visibility is tracked through a native `IntersectionObserver`
111
- * rooted on the parent strip — `CngxIntersectionObserver` doesn't
129
+ * rooted on the parent strip - `CngxIntersectionObserver` doesn't
112
130
  * fit (single-element scope, can't reach sibling `viewChildren`).
113
- * `threshold: 0` — only fully-clipped tabs surface. Combined with
131
+ * `threshold: 0` - only fully-clipped tabs surface. Combined with
114
132
  * the organism's `scrollIntoView` effect this forms the self-healing
115
133
  * loop: pick hidden tab -> strip scrolls -> IO fires -> `hiddenTabs`
116
134
  * self-trims.
135
+ *
136
+ * @playground Overflow showcase ./examples/overflow-showcase/overflow-showcase.component.ts
137
+ *
138
+ * @category ui/tabs
139
+ * @docsKind primary
140
+ * @wcag AA
141
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-overflow.component.ts
142
+ * @since 0.1.0
143
+ * @relatedTo CngxTabGroup, CngxPopover, CngxActiveDescendant
144
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/8-tabs-in-a-narrow-container</example-url>
117
145
  */
118
146
  declare class CngxTabOverflow {
119
147
  protected readonly panelHost: CngxTabPanelHost;
@@ -142,12 +170,12 @@ declare class CngxTabOverflow {
142
170
  private readonly attachRetry;
143
171
  constructor();
144
172
  protected pickTab(tab: CngxTabHandle): void;
145
- /** AD `(activated)` — Enter / Space on a highlighted option picks. */
173
+ /** AD `(activated)` - Enter / Space on a highlighted option picks. */
146
174
  protected handleAdActivated(value: unknown): void;
147
175
  /**
148
176
  * Auto-opens popover on nav-key when collapsed. AD's host listener
149
177
  * fires first, so `activeIndex` is already set when this runs.
150
- * No-op while open — AD owns navigation.
178
+ * No-op while open - AD owns navigation.
151
179
  */
152
180
  protected handleTriggerKeydown(event: KeyboardEvent): void;
153
181
  private observeCurrentTabs;
@@ -155,7 +183,7 @@ declare class CngxTabOverflow {
155
183
  private commitPendingVisibility;
156
184
  /**
157
185
  * IO-root resolution via the injected adapter. Returns `null`
158
- * before the molecule is anchored — the rAF retry loop re-polls.
186
+ * before the molecule is anchored - the rAF retry loop re-polls.
159
187
  */
160
188
  private resolveStrip;
161
189
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTabOverflow, never>;
@@ -13,6 +13,7 @@ export { CngxFailed, CngxPending, CngxSucceeded } from '@cngx/common/interactive
13
13
  * @cngx/ui/layout – CngxStack, CngxGrid
14
14
  * @cngx/ui/overlay – CngxOverlay, CngxOverlayRef
15
15
  */
16
+ /** @internal — replaced at publish time, not part of consumer API. */
16
17
  declare const VERSION: _cngx_utils.Version;
17
18
 
18
19
  export { VERSION };
@@ -1,78 +0,0 @@
1
- @use 'sass:map';
2
- @use 'sass:math';
3
- @use '@angular/material' as mat;
4
-
5
- // Include in your global theme stylesheet alongside the Material theme:
6
- //
7
- // @use '@angular/material' as mat;
8
- // @use '@cngx/ui/speak/speak-button-theme' as speak;
9
- //
10
- // $theme: mat.define-theme((...));
11
- //
12
- // html {
13
- // @include mat.all-component-themes($theme);
14
- // @include speak.theme($theme);
15
- // }
16
-
17
-
18
- @mixin base() {
19
- --cngx-speak-btn-size: 36px;
20
- --cngx-speak-btn-icon-size: 18px;
21
- --cngx-speak-btn-radius: 8px;
22
- --cngx-speak-btn-border-width: 1px;
23
- --cngx-speak-btn-transition: 0.15s;
24
- }
25
-
26
- @mixin color($theme) {
27
- @if mat.get-theme-version($theme) == 1 {
28
- // M3 — use Material sys tokens
29
- --cngx-speak-btn-bg: var(--mat-sys-surface-container-low);
30
- --cngx-speak-btn-hover-bg: var(--mat-sys-surface-container);
31
- --cngx-speak-btn-color: var(--mat-sys-on-surface-variant);
32
- --cngx-speak-btn-active-color: var(--mat-sys-primary);
33
- --cngx-speak-btn-speaking-bg: var(--mat-sys-primary);
34
- --cngx-speak-btn-speaking-color: var(--mat-sys-on-primary);
35
- --cngx-border: var(--mat-sys-outline-variant);
36
- } @else {
37
- // M2 — derive from palette
38
- --cngx-speak-btn-bg: #{mat.get-theme-color($theme, background, card)};
39
- --cngx-speak-btn-hover-bg: #{rgba(mat.get-theme-color($theme, primary), 0.04)};
40
- --cngx-speak-btn-color: rgba(0, 0, 0, 0.54);
41
- --cngx-speak-btn-active-color: #{mat.get-theme-color($theme, primary)};
42
- --cngx-speak-btn-speaking-bg: #{mat.get-theme-color($theme, primary)};
43
- --cngx-speak-btn-speaking-color: #fff;
44
- --cngx-border: rgba(0, 0, 0, 0.12);
45
- }
46
- }
47
-
48
- @mixin density($theme) {
49
- $scale: mat.get-theme-density($theme);
50
- $scale: math.max(-4, math.min(0, $scale));
51
-
52
- $sizes: (
53
- 0: 36px,
54
- -1: 32px,
55
- -2: 28px,
56
- -3: 24px,
57
- -4: 20px,
58
- );
59
- $icon-sizes: (
60
- 0: 18px,
61
- -1: 16px,
62
- -2: 14px,
63
- -3: 12px,
64
- -4: 10px,
65
- );
66
-
67
- --cngx-speak-btn-size: #{map.get($sizes, $scale)};
68
- --cngx-speak-btn-icon-size: #{map.get($icon-sizes, $scale)};
69
- }
70
-
71
-
72
- @mixin theme($theme) {
73
- :where(cngx-speak-button) {
74
- @include base();
75
- @include color($theme);
76
- @include density($theme);
77
- }
78
- }