@cngx/common 0.1.0-rc.0 → 0.1.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/cngx-common-a11y.mjs +24 -11
- package/fesm2022/cngx-common-a11y.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +45 -11
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common-stepper.mjs +242 -34
- package/fesm2022/cngx-common-stepper.mjs.map +1 -1
- package/fesm2022/cngx-common-tabs.mjs +900 -47
- package/fesm2022/cngx-common-tabs.mjs.map +1 -1
- package/fesm2022/cngx-common.mjs +1 -1
- package/package.json +3 -3
- package/stepper/README.md +20 -0
- package/theming/components/cngx-badge.css +1 -1
- package/theming/components/cngx-menu.css +1 -1
- package/types/cngx-common-a11y.d.ts +23 -2
- package/types/cngx-common-interactive.d.ts +20 -2
- package/types/cngx-common-stepper.d.ts +256 -13
- package/types/cngx-common-tabs.d.ts +832 -23
package/fesm2022/cngx-common.mjs
CHANGED
|
@@ -8,7 +8,7 @@ export * from '@cngx/common/popover';
|
|
|
8
8
|
import { makeVersion } from '@cngx/utils';
|
|
9
9
|
|
|
10
10
|
/** @internal — replaced at publish time, not part of consumer API. */
|
|
11
|
-
const VERSION = makeVersion('0.1.0-rc.
|
|
11
|
+
const VERSION = makeVersion('0.1.0-rc.1');
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Public API Surface of @cngx/common
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cngx/common",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
4
|
-
"description": "Atoms and molecules (a11y, interactive, layout, dialog, popover, display) for the
|
|
3
|
+
"version": "0.1.0-rc.1",
|
|
4
|
+
"description": "Atoms and molecules (a11y, interactive, layout, dialog, popover, display) for the CNGX Angular component library. CDK-only, no Material.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cngx",
|
|
7
7
|
"angular",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directives",
|
|
12
12
|
"components"
|
|
13
13
|
],
|
|
14
|
-
"author": "Christian Weiss <
|
|
14
|
+
"author": "Christian Weiss <info@cngx.dev>",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"homepage": "https://github.com/cngxjs/cngx#readme",
|
|
17
17
|
"bugs": {
|
package/stepper/README.md
CHANGED
|
@@ -94,6 +94,8 @@ class WizardCmp {
|
|
|
94
94
|
|-|-|
|
|
95
95
|
| `withStepperSkin(name)` | Select the visual skin for `<cngx-stepper>`: `'classic'` (default) / `'linear-minimal'` / `'stripe-status-rich'` / `'path-chevron'` / `'pill-segment'`. Thematic only - structure, slots, ARIA, and keyboard behaviour are identical across skins. The Material twin `<cngx-mat-stepper>` ignores this setting. |
|
|
96
96
|
| `withStepperMobileCollapse(mode)` | Choose the auto-collapse target for narrow viewports (`max-width: 480px`): `'text'` (default, renders `<cngx-text-stepper>`) / `'dots'` (renders `<cngx-dot-stepper>`) / `'off'` (keep the classic strip on every viewport). The Material twin ignores this setting. |
|
|
97
|
+
| `withStepperHeaderNavigation(mode)` | Set the header-navigation policy: `'none'` (inert label headers, footer-only navigation) / `'visited'` (default - focusable header buttons gated by `linear`). Per-instance `[headerNavigation]` wins. |
|
|
98
|
+
| `withStepErrorTemplate(tpl)` | App-wide default for the `*cngxStepError` slot - the per-step validation message rendered in a row below the strip. Per-instance `*cngxStepError` directive wins. |
|
|
97
99
|
| `withStepperI18nLabels({ statusLabels })` | Override the per-state pill labels surfaced by the `stripe-status-rich` skin: `{ done, inProgress, upNext, errored }`. Partial overrides keep unset keys at the English default. |
|
|
98
100
|
| `withStepperI18nLabels({ textStepperFormat })` | Override the short format used by `CngxProgressBarStepper`'s caption and by `CngxTextStepper`. Signature: `(current: number, total: number) => string`; default `(c, t) => 'Step ' + c + ' of ' + t`. |
|
|
99
101
|
|
|
@@ -129,6 +131,24 @@ bootstrapApplication(AppComponent, {
|
|
|
129
131
|
|
|
130
132
|
`CngxStepperPresenter` also emits a dev-mode warning when a stepper has more than 6 leaf steps at the same depth with no `<cngx-step-group>` wrapper, guiding consumers toward logical grouping for better UX. The warning is one-shot per presenter instance (via `afterNextRender`) and no-ops in production builds.
|
|
131
133
|
|
|
134
|
+
## Header navigation
|
|
135
|
+
|
|
136
|
+
`headerNavigation` is a two-value policy - `'none'` or `'visited'` - that decides whether step headers are controls or pure indicators. It folds into the existing `linear` axis instead of adding a third value:
|
|
137
|
+
|
|
138
|
+
- `'none'`: headers render as inert labels (no `<button>`, no roving, no click); the footer is the sole navigation control.
|
|
139
|
+
- `'visited'` (default): headers are focusable buttons. `linear="false"` allows free click-through; `linear="true"` reaches only visited steps and marks forward-incomplete headers `aria-disabled` (focusable, so the gate is announced).
|
|
140
|
+
|
|
141
|
+
"Free navigation" is `'visited'` + `linear="false"` - there is no discrete `'free'` value. Resolve via the cascade: per-instance `[headerNavigation]` input ?? `withStepperHeaderNavigation(...)` config ?? `'visited'`. See `@cngx/ui/stepper` for the full table and migration note.
|
|
142
|
+
|
|
143
|
+
## Error channels
|
|
144
|
+
|
|
145
|
+
A step carries an error through two independent channels:
|
|
146
|
+
|
|
147
|
+
- **Validation** - a direct `[error]` input on `cngxStep` (`true` or a message string), or an `[errorAggregator]` for genuine multi-source forms. Both fold into the step's `state` (`'error'`) with no async machine. The state shows on every skin via the indicator / badge; the reason text surfaces in a row below the strip via the `*cngxStepError` slot (or the aggregate line on the text / dot / progress variants), but only for a real message - a bare `[error]="true"` shows state only. `[error]="'message'"` wins over the first aggregator label, which wins over the i18n `errored` word.
|
|
148
|
+
- **Commit / async** - a `commitAction` that rejects sets `lastFailedIndex`; the rolled-back step decorates via `*cngxStepRejection` and announces through the `CngxToastOn` / `CngxBannerOn` bridges.
|
|
149
|
+
|
|
150
|
+
The two never collide: validation owns `*cngxStepError`, commit owns `*cngxStepRejection`. The `[error]` input replaces the old `<fieldset cngxErrorAggregator><input cngxErrorSource>` boilerplate for the common "this step is invalid" case; the aggregator stays the power path. See `@cngx/ui/stepper` for the per-skin text-surface table.
|
|
151
|
+
|
|
132
152
|
## Architecture notes
|
|
133
153
|
|
|
134
154
|
- **Pillar 1** (`Ableitung statt Verwaltung`): every derived value is a `computed()`; the only writable slot is the active-step model + a registry `WritableSignal<readonly CngxStepRegistration[]>` mutated only by `register`/`unregister`.
|
|
@@ -159,6 +159,22 @@ declare class CngxAutofocus {
|
|
|
159
159
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxAutofocus, "[cngxAutofocus]", ["cngxAutofocus"], { "when": { "alias": "cngxAutofocus"; "required": false; "isSignal": true; }; "delay": { "alias": "autofocusDelay"; "required": false; "isSignal": true; }; "options": { "alias": "autofocusOptions"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
/**
|
|
163
|
+
* CSS selector matching natively-focusable elements: links with an
|
|
164
|
+
* `href`, the enabled form controls, and anything with an explicit
|
|
165
|
+
* non-negative `tabindex`. Form controls carry `:not(:disabled)` because
|
|
166
|
+
* a disabled control is not in the tab order - without it a descendant
|
|
167
|
+
* probe would count a disabled button as focusable and a restore target
|
|
168
|
+
* could land on an unfocusable element. Single source of truth for "is
|
|
169
|
+
* this focusable" - the element-level {@link CngxFocusRestore} predicate
|
|
170
|
+
* matches against it, and descendant probes (e.g. "does this panel
|
|
171
|
+
* contain a focusable child?") query against it. Keeping one selector
|
|
172
|
+
* stops the two uses from drifting apart.
|
|
173
|
+
*
|
|
174
|
+
* @category common/a11y
|
|
175
|
+
* @since 0.1.0
|
|
176
|
+
*/
|
|
177
|
+
declare const CNGX_FOCUSABLE_SELECTOR = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])";
|
|
162
178
|
/**
|
|
163
179
|
* Stores the previously focused element and restores focus on destroy.
|
|
164
180
|
*
|
|
@@ -218,7 +234,12 @@ declare class CngxFocusRestore {
|
|
|
218
234
|
private resolveTarget;
|
|
219
235
|
/** Traverses up the DOM tree looking for the first natively focusable element. */
|
|
220
236
|
private findFocusableAncestor;
|
|
221
|
-
/**
|
|
237
|
+
/**
|
|
238
|
+
* Checks if an element is natively focusable (tabindex, links, form
|
|
239
|
+
* controls). Element-level predicate over the shared
|
|
240
|
+
* {@link CNGX_FOCUSABLE_SELECTOR}, so it never drifts from the
|
|
241
|
+
* descendant-query callers.
|
|
242
|
+
*/
|
|
222
243
|
private isFocusable;
|
|
223
244
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxFocusRestore, never>;
|
|
224
245
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxFocusRestore, "[cngxFocusRestore]", ["cngxFocusRestore"], { "restoreOnDestroy": { "alias": "restoreOnDestroy"; "required": false; "isSignal": true; }; "fallback": { "alias": "fallback"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -712,5 +733,5 @@ declare class CngxReducedMotion {
|
|
|
712
733
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxReducedMotion, "[cngxReducedMotion]", ["cngxReducedMotion"], {}, {}, never, never, true, never>;
|
|
713
734
|
}
|
|
714
735
|
|
|
715
|
-
export { CNGX_AD_ITEM, CngxActiveDescendant, CngxAriaExpanded, CngxAutofocus, CngxFocusRestore, CngxFocusTrap, CngxFocusVisible, CngxLiveRegion, CngxReducedMotion, CngxRovingItem, CngxRovingTabindex };
|
|
736
|
+
export { CNGX_AD_ITEM, CNGX_FOCUSABLE_SELECTOR, CngxActiveDescendant, CngxAriaExpanded, CngxAutofocus, CngxFocusRestore, CngxFocusTrap, CngxFocusVisible, CngxLiveRegion, CngxReducedMotion, CngxRovingItem, CngxRovingTabindex };
|
|
716
737
|
export type { ActiveDescendantItem, CngxAdItemHandle };
|
|
@@ -3362,10 +3362,28 @@ declare class CngxSwipe {
|
|
|
3362
3362
|
readonly swipeProgress: _angular_core.Signal<number>;
|
|
3363
3363
|
/** Dominant direction of the in-flight gesture, or `null` when idle. */
|
|
3364
3364
|
readonly swipeDirection: _angular_core.Signal<SwipeDirection | null>;
|
|
3365
|
+
/**
|
|
3366
|
+
* The `touch-action` the host should advertise, derived from `axis`.
|
|
3367
|
+
* A pinned axis hands the orthogonal direction back to native
|
|
3368
|
+
* scrolling (`x` -> `pan-y`, `y` -> `pan-x`); `both` claims the
|
|
3369
|
+
* whole surface (`none`). When disabled, no value is written so the
|
|
3370
|
+
* element keeps its native scroll behaviour untouched.
|
|
3371
|
+
*/
|
|
3372
|
+
protected readonly touchAction: _angular_core.Signal<string | null>;
|
|
3365
3373
|
constructor();
|
|
3366
3374
|
/**
|
|
3367
|
-
* Resolve the
|
|
3368
|
-
*
|
|
3375
|
+
* Resolve the swipe direction + distance for a pointer delta.
|
|
3376
|
+
*
|
|
3377
|
+
* When `axis` is pinned, only that axis's delta decides direction
|
|
3378
|
+
* and distance - the orthogonal component is irrelevant, not an
|
|
3379
|
+
* abort reason. The previous endpoint-dominance check (`|dx| >= |dy|`)
|
|
3380
|
+
* discarded a clearly horizontal drag the moment a natural thumb arc
|
|
3381
|
+
* left `|dy|` slightly larger at release, which made a pinned swipe
|
|
3382
|
+
* register only on a near-perfect straight line. `touch-action`
|
|
3383
|
+
* (advertised from the same `axis`) is the real guard against an
|
|
3384
|
+
* orthogonal scroll firing the gesture: the browser cancels the
|
|
3385
|
+
* pointer before pointerup, so a clean cycle reaching here is already
|
|
3386
|
+
* the intended direction. `both` keeps the dominant-axis heuristic.
|
|
3369
3387
|
*/
|
|
3370
3388
|
private read;
|
|
3371
3389
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSwipe, never>;
|
|
@@ -28,6 +28,13 @@ interface CngxStepNode {
|
|
|
28
28
|
readonly state: Signal<CngxStepStatus>;
|
|
29
29
|
/** Optional error aggregator signal for badge / SR phrasing. */
|
|
30
30
|
readonly errorAggregator?: Signal<CngxErrorAggregatorContract | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* Message carried by a direct `[error]` string input on the step, or
|
|
33
|
+
* `undefined` when `[error]` is boolean / absent. Pure data carrier
|
|
34
|
+
* read by the `*cngxStepError` slot + the mini-skin aggregate line -
|
|
35
|
+
* not a swap surface.
|
|
36
|
+
*/
|
|
37
|
+
readonly errorMessage?: Signal<string | undefined>;
|
|
31
38
|
/** Direct children for group nodes; empty for step nodes. */
|
|
32
39
|
readonly children: readonly CngxStepNode[];
|
|
33
40
|
/** DFS depth (root = 0). */
|
|
@@ -50,6 +57,12 @@ interface CngxStepRegistration {
|
|
|
50
57
|
readonly disabled: Signal<boolean>;
|
|
51
58
|
readonly state: Signal<CngxStepStatus>;
|
|
52
59
|
readonly errorAggregator?: Signal<CngxErrorAggregatorContract | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* Resolved message from a direct `[error]` string input, or
|
|
62
|
+
* `undefined` for boolean / absent. Pure data carrier (not a swap
|
|
63
|
+
* token); surfaced on {@link CngxStepNode.errorMessage}.
|
|
64
|
+
*/
|
|
65
|
+
readonly errorMessage?: Signal<string | undefined>;
|
|
53
66
|
}
|
|
54
67
|
/**
|
|
55
68
|
* Contract atoms see via {@link CNGX_STEPPER_HOST}. Mirrors the
|
|
@@ -142,6 +155,14 @@ interface CngxStepperHost {
|
|
|
142
155
|
* success; retained on rejection through the persistence window.
|
|
143
156
|
*/
|
|
144
157
|
readonly originIndexDuringCommit: Signal<number | undefined>;
|
|
158
|
+
/**
|
|
159
|
+
* `true` when the header at the given step-only index may be
|
|
160
|
+
* navigated to: the step is enabled and not blocked by the `linear`
|
|
161
|
+
* gate. The single reachability predicate a header affordance reads -
|
|
162
|
+
* the organism MUST call this rather than reaching the presenter's
|
|
163
|
+
* private linear-block check. Out-of-range indices return `false`.
|
|
164
|
+
*/
|
|
165
|
+
canNavigateTo(index: number): boolean;
|
|
145
166
|
select(index: number): void;
|
|
146
167
|
selectNext(): void;
|
|
147
168
|
selectPrevious(): void;
|
|
@@ -297,6 +318,15 @@ declare class CngxStepperPresenter implements CngxStepperHost {
|
|
|
297
318
|
* affordance.
|
|
298
319
|
*/
|
|
299
320
|
private isLinearBlocked;
|
|
321
|
+
/**
|
|
322
|
+
* {@inheritDoc CngxStepperHost.canNavigateTo}
|
|
323
|
+
*
|
|
324
|
+
* Wraps the private {@link isLinearBlocked} predicate plus the
|
|
325
|
+
* per-step `disabled` check. The header-reachability contract surface;
|
|
326
|
+
* `isLinearBlocked` stays private so the organism reads this method,
|
|
327
|
+
* never the internal gate.
|
|
328
|
+
*/
|
|
329
|
+
canNavigateTo(index: number): boolean;
|
|
300
330
|
select(index: number): void;
|
|
301
331
|
selectNext(): void;
|
|
302
332
|
selectPrevious(): void;
|
|
@@ -477,6 +507,22 @@ declare class CngxStep {
|
|
|
477
507
|
readonly completed: i0.InputSignal<boolean>;
|
|
478
508
|
readonly label: i0.InputSignal<string>;
|
|
479
509
|
readonly errorAggregator: i0.InputSignal<CngxErrorAggregatorContract | undefined>;
|
|
510
|
+
/**
|
|
511
|
+
* Direct error flag for the common "this step is invalid" case - no
|
|
512
|
+
* `errorAggregator` boilerplate required. `true` or a non-empty string
|
|
513
|
+
* drives the error state; a string doubles as the inline message
|
|
514
|
+
* (surfaced via the `*cngxStepError` slot and the mini-skin aggregate
|
|
515
|
+
* line). `false` / `''` clear it. The aggregator stays the rich
|
|
516
|
+
* multi-source forms path; the two channels compose (either errors).
|
|
517
|
+
*/
|
|
518
|
+
readonly error: i0.InputSignal<string | boolean>;
|
|
519
|
+
/**
|
|
520
|
+
* Resolved direct-error message: the `[error]` string when non-empty,
|
|
521
|
+
* else `undefined`. Carried onto the registration / node so the error
|
|
522
|
+
* slot + aggregate line can render it. `computed` over the input -
|
|
523
|
+
* never written.
|
|
524
|
+
*/
|
|
525
|
+
readonly errorMessage: Signal<string | undefined>;
|
|
480
526
|
protected readonly labelSlot: Signal<CngxStepLabel | undefined>;
|
|
481
527
|
protected readonly contentSlot: Signal<CngxStepContent | undefined>;
|
|
482
528
|
readonly labelTemplate: Signal<CngxStepLabel | undefined>;
|
|
@@ -488,7 +534,7 @@ declare class CngxStep {
|
|
|
488
534
|
readonly state: Signal<CngxStepStatus>;
|
|
489
535
|
constructor();
|
|
490
536
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStep, never>;
|
|
491
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStep, "[cngxStep]", ["cngxStep"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "errorAggregator": { "alias": "errorAggregator"; "required": false; "isSignal": true; }; }, {}, ["labelSlot", "contentSlot"], never, true, never>;
|
|
537
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStep, "[cngxStep]", ["cngxStep"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "completed": { "alias": "completed"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "errorAggregator": { "alias": "errorAggregator"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; }, {}, ["labelSlot", "contentSlot"], never, true, never>;
|
|
492
538
|
}
|
|
493
539
|
|
|
494
540
|
/**
|
|
@@ -717,6 +763,65 @@ declare class CngxStepRejection {
|
|
|
717
763
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepRejection, "ng-template[cngxStepRejection]", ["cngxStepRejection"], {}, {}, never, never, true, never>;
|
|
718
764
|
}
|
|
719
765
|
|
|
766
|
+
/**
|
|
767
|
+
* Context passed to the `*cngxStepError` template. Renders the
|
|
768
|
+
* validation-error reason for a step in the error state - sibling of
|
|
769
|
+
* the commit-channel `*cngxStepRejection` slot. The two channels stay
|
|
770
|
+
* distinct: rejection decorates the step a commit rolled back FROM;
|
|
771
|
+
* this slot surfaces the per-step validation message.
|
|
772
|
+
*
|
|
773
|
+
* `message` resolves the direct `[error]` string > the first
|
|
774
|
+
* aggregator label > the i18n `errored` status phrase, so a template
|
|
775
|
+
* that renders `{{ message }}` always shows a non-empty reason.
|
|
776
|
+
* `errorLabels` / `announcement` expose the richer aggregator surface
|
|
777
|
+
* for consumers that want a list or the full SR phrase.
|
|
778
|
+
*
|
|
779
|
+
* @category common/stepper/slots
|
|
780
|
+
*/
|
|
781
|
+
interface CngxStepErrorContext {
|
|
782
|
+
/** The errored step node carrying id / label / state signals. */
|
|
783
|
+
readonly node: CngxStepNode;
|
|
784
|
+
/** Resolved error reason (direct `[error]` string > aggregator label > i18n). */
|
|
785
|
+
readonly message: string;
|
|
786
|
+
/** Aggregator error labels, or an empty array when none. */
|
|
787
|
+
readonly errorLabels: readonly string[];
|
|
788
|
+
/** Aggregator SR announcement phrase, or an empty string when none. */
|
|
789
|
+
readonly announcement: string;
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Slot directive for the per-step error-message template on
|
|
793
|
+
* `<cngx-stepper>`. Discovered via `contentChild`; cascades through
|
|
794
|
+
* `CNGX_STEPPER_CONFIG.templates.stepError` before falling back to the
|
|
795
|
+
* built-in `{{ message }}` text. Mirrors {@link CngxStepRejection} so
|
|
796
|
+
* consumer-authored templates read the same way across both channels.
|
|
797
|
+
*
|
|
798
|
+
* ```html
|
|
799
|
+
* <cngx-stepper>
|
|
800
|
+
* <ng-template cngxStepError let-message="message" let-errorLabels="errorLabels">
|
|
801
|
+
* <strong>{{ message }}</strong>
|
|
802
|
+
* @if (errorLabels.length > 1) {
|
|
803
|
+
* <ul>
|
|
804
|
+
* @for (label of errorLabels; track label) {
|
|
805
|
+
* <li>{{ label }}</li>
|
|
806
|
+
* }
|
|
807
|
+
* </ul>
|
|
808
|
+
* }
|
|
809
|
+
* </ng-template>
|
|
810
|
+
* </cngx-stepper>
|
|
811
|
+
* ```
|
|
812
|
+
*
|
|
813
|
+
* @category common/stepper/slots
|
|
814
|
+
* @wcag AA
|
|
815
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/slots/step-error.directive.ts
|
|
816
|
+
* @since 0.1.0
|
|
817
|
+
* @relatedTo CngxStepRejection, CngxStepBadge, CngxStep
|
|
818
|
+
*/
|
|
819
|
+
declare class CngxStepError {
|
|
820
|
+
readonly templateRef: TemplateRef<CngxStepErrorContext>;
|
|
821
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepError, never>;
|
|
822
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepError, "ng-template[cngxStepError]", ["cngxStepError"], {}, {}, never, never, true, never>;
|
|
823
|
+
}
|
|
824
|
+
|
|
720
825
|
/**
|
|
721
826
|
* Context passed to the `*cngxStepGroupHeader` template. Drives the
|
|
722
827
|
* group-row landmark for `kind === 'group'` nodes. The `role="group"`
|
|
@@ -890,6 +995,7 @@ interface CngxStepperTemplates {
|
|
|
890
995
|
readonly badge?: TemplateRef<CngxStepBadgeContext>;
|
|
891
996
|
readonly busySpinner?: TemplateRef<CngxStepBusySpinnerContext>;
|
|
892
997
|
readonly rejection?: TemplateRef<CngxStepRejectionContext>;
|
|
998
|
+
readonly stepError?: TemplateRef<CngxStepErrorContext>;
|
|
893
999
|
readonly groupHeader?: TemplateRef<CngxStepGroupHeaderContext>;
|
|
894
1000
|
readonly empty?: TemplateRef<void>;
|
|
895
1001
|
readonly dotStepperDot?: TemplateRef<CngxDotStepperDotContext>;
|
|
@@ -913,6 +1019,18 @@ type CngxStepperSkin = 'classic' | 'linear-minimal' | 'stripe-status-rich' | 'pa
|
|
|
913
1019
|
* @category common/stepper
|
|
914
1020
|
*/
|
|
915
1021
|
type CngxStepperMobileCollapse = 'text' | 'dots' | 'off';
|
|
1022
|
+
/**
|
|
1023
|
+
* Header-navigation policy for `<cngx-stepper>`. `'none'` renders the
|
|
1024
|
+
* step headers as inert labels - the footer is the sole navigation
|
|
1025
|
+
* control. `'visited'` (default) keeps the headers as focusable
|
|
1026
|
+
* buttons; reachability folds into the `linear` axis (`linear=false`
|
|
1027
|
+
* is free click-through, `linear=true` is backward-to-visited only,
|
|
1028
|
+
* with linear-unreachable headers marked `aria-disabled`). There is no
|
|
1029
|
+
* discrete `'free'` value - `'free'` is `'visited'` + `linear=false`.
|
|
1030
|
+
*
|
|
1031
|
+
* @category common/stepper
|
|
1032
|
+
*/
|
|
1033
|
+
type CngxStepperHeaderNavigation = 'none' | 'visited';
|
|
916
1034
|
/**
|
|
917
1035
|
* Where the mobile auto-collapse indicator (text caption or dot row)
|
|
918
1036
|
* sits relative to the active step's panel content under narrow
|
|
@@ -947,6 +1065,13 @@ interface CngxStepperConfig {
|
|
|
947
1065
|
readonly routerSyncMode?: 'fragment' | 'queryParam';
|
|
948
1066
|
readonly routerSyncParam?: string;
|
|
949
1067
|
readonly skin?: CngxStepperSkin;
|
|
1068
|
+
/**
|
|
1069
|
+
* Header-navigation policy. `'none'` makes the step headers inert
|
|
1070
|
+
* labels (footer-only navigation); `'visited'` (default) keeps them
|
|
1071
|
+
* focusable buttons whose reachability folds into the `linear` axis.
|
|
1072
|
+
* Per-instance `[headerNavigation]` Input still wins.
|
|
1073
|
+
*/
|
|
1074
|
+
readonly headerNavigation?: CngxStepperHeaderNavigation;
|
|
950
1075
|
/**
|
|
951
1076
|
* Opt-in connector rail between adjacent step indicators on the
|
|
952
1077
|
* classic skin. Off by default. The rule is double-scoped on
|
|
@@ -1094,6 +1219,16 @@ declare function withStepperMobileIndicatorPosition(position: CngxStepperMobileI
|
|
|
1094
1219
|
* @category common/stepper
|
|
1095
1220
|
*/
|
|
1096
1221
|
declare function withStepperMobileSwipe(enabled: boolean): CngxStepperConfigFeature;
|
|
1222
|
+
/**
|
|
1223
|
+
* Set the app-wide default header-navigation policy for
|
|
1224
|
+
* `<cngx-stepper>`. `'none'` renders inert label headers (footer-only
|
|
1225
|
+
* navigation); `'visited'` (library default) keeps the headers as
|
|
1226
|
+
* focusable buttons whose reachability folds into the `linear` axis.
|
|
1227
|
+
* Per-instance `[headerNavigation]` Input still wins.
|
|
1228
|
+
*
|
|
1229
|
+
* @category common/stepper
|
|
1230
|
+
*/
|
|
1231
|
+
declare function withStepperHeaderNavigation(mode: CngxStepperHeaderNavigation): CngxStepperConfigFeature;
|
|
1097
1232
|
/**
|
|
1098
1233
|
* Merge ARIA labels into the cascade. Keys not provided keep their
|
|
1099
1234
|
* library defaults; per-instance overrides on the stepper still win.
|
|
@@ -1135,6 +1270,15 @@ declare function withStepBusySpinnerTemplate(template: TemplateRef<CngxStepBusyS
|
|
|
1135
1270
|
* @category common/stepper
|
|
1136
1271
|
*/
|
|
1137
1272
|
declare function withStepRejectionTemplate(template: TemplateRef<CngxStepRejectionContext>): CngxStepperConfigFeature;
|
|
1273
|
+
/**
|
|
1274
|
+
* Override the default `*cngxStepError` template app-wide. The slot
|
|
1275
|
+
* renders the per-step validation reason on the skins with a label area
|
|
1276
|
+
* (classic / stripe-status-rich). Per-instance directive still wins;
|
|
1277
|
+
* this moves the cascade middle tier.
|
|
1278
|
+
*
|
|
1279
|
+
* @category common/stepper
|
|
1280
|
+
*/
|
|
1281
|
+
declare function withStepErrorTemplate(template: TemplateRef<CngxStepErrorContext>): CngxStepperConfigFeature;
|
|
1138
1282
|
/**
|
|
1139
1283
|
* Override the default `*cngxStepGroupHeader` template app-wide.
|
|
1140
1284
|
*
|
|
@@ -1191,7 +1335,7 @@ declare function injectStepperConfig(): CngxStepperConfig;
|
|
|
1191
1335
|
|
|
1192
1336
|
/**
|
|
1193
1337
|
* Inputs to {@link createStepperTemplateBindings}. The organism owns
|
|
1194
|
-
* the `contentChild()` queries (NG8110
|
|
1338
|
+
* the `contentChild()` queries (NG8110 - must run in component
|
|
1195
1339
|
* injection context) and the resolved {@link CngxStepperConfig}; this
|
|
1196
1340
|
* factory absorbs the 3-stage cascade per slot key.
|
|
1197
1341
|
*
|
|
@@ -1202,13 +1346,15 @@ interface CngxStepperTemplateBindingsOptions {
|
|
|
1202
1346
|
readonly badgeSlot: Signal<CngxStepBadge | undefined>;
|
|
1203
1347
|
readonly busySpinnerSlot: Signal<CngxStepBusySpinner | undefined>;
|
|
1204
1348
|
readonly rejectionSlot: Signal<CngxStepRejection | undefined>;
|
|
1349
|
+
/** Optional - the error slot is desktop-label-area only; absent on variants that have no label region. */
|
|
1350
|
+
readonly errorSlot?: Signal<CngxStepError | undefined>;
|
|
1205
1351
|
readonly groupHeaderSlot: Signal<CngxStepGroupHeader | undefined>;
|
|
1206
1352
|
readonly emptySlot: Signal<CngxStepperEmpty | undefined>;
|
|
1207
1353
|
readonly config: CngxStepperConfig;
|
|
1208
1354
|
}
|
|
1209
1355
|
/**
|
|
1210
1356
|
* Output of {@link createStepperTemplateBindings}. One resolved
|
|
1211
|
-
* `Signal<TemplateRef | null>` per slot
|
|
1357
|
+
* `Signal<TemplateRef | null>` per slot - `null` falls through to the
|
|
1212
1358
|
* organism's built-in default markup.
|
|
1213
1359
|
*
|
|
1214
1360
|
* @category common/stepper/slots
|
|
@@ -1218,19 +1364,20 @@ interface CngxStepperTemplateBindings {
|
|
|
1218
1364
|
readonly badge: Signal<TemplateRef<CngxStepBadgeContext> | null>;
|
|
1219
1365
|
readonly busySpinner: Signal<TemplateRef<CngxStepBusySpinnerContext> | null>;
|
|
1220
1366
|
readonly rejection: Signal<TemplateRef<CngxStepRejectionContext> | null>;
|
|
1367
|
+
readonly stepError: Signal<TemplateRef<CngxStepErrorContext> | null>;
|
|
1221
1368
|
readonly groupHeader: Signal<TemplateRef<CngxStepGroupHeaderContext> | null>;
|
|
1222
1369
|
readonly empty: Signal<TemplateRef<void> | null>;
|
|
1223
1370
|
}
|
|
1224
1371
|
/**
|
|
1225
|
-
* Wires the 3-stage template cascade for the
|
|
1226
|
-
*
|
|
1372
|
+
* Wires the 3-stage template cascade for the `<cngx-stepper>` skin
|
|
1373
|
+
* slots: per-instance directive > `CNGX_STEPPER_CONFIG.templates.<key>`
|
|
1227
1374
|
* > `null` (built-in default).
|
|
1228
1375
|
*
|
|
1229
|
-
* Pure
|
|
1376
|
+
* Pure - no DI, no side effects. Safe to call from a field-init
|
|
1230
1377
|
* block. Sibling of `createTabOverflowTemplateBindings` and the
|
|
1231
1378
|
* family-wide `createTemplateRegistry`.
|
|
1232
1379
|
*
|
|
1233
|
-
* Tabs has no parallel slot surface yet
|
|
1380
|
+
* Tabs has no parallel slot surface yet - see
|
|
1234
1381
|
* `stepper-accepted-debt §3` for the planned Phase-4 closure.
|
|
1235
1382
|
*
|
|
1236
1383
|
* @category common/stepper/slots
|
|
@@ -1543,6 +1690,13 @@ interface CngxStepperStripKeyboardNavOptions {
|
|
|
1543
1690
|
* through untouched.
|
|
1544
1691
|
*/
|
|
1545
1692
|
readonly stepClassName?: string;
|
|
1693
|
+
/**
|
|
1694
|
+
* Optional gate - when supplied and returning `false`, the handler is
|
|
1695
|
+
* a complete no-op. Used to switch arrow-key navigation off in the
|
|
1696
|
+
* `headerNavigation: 'none'` mode, where the step headers are inert
|
|
1697
|
+
* labels rather than focusable buttons. Omitted defaults to enabled.
|
|
1698
|
+
*/
|
|
1699
|
+
readonly enabled?: () => boolean;
|
|
1546
1700
|
}
|
|
1547
1701
|
/**
|
|
1548
1702
|
* Builds the WAI-ARIA APG arrow-key handler for a stepper strip. The
|
|
@@ -1560,6 +1714,90 @@ interface CngxStepperStripKeyboardNavOptions {
|
|
|
1560
1714
|
*/
|
|
1561
1715
|
declare function createStepperStripKeyboardNav(options: CngxStepperStripKeyboardNavOptions): (event: KeyboardEvent) => void;
|
|
1562
1716
|
|
|
1717
|
+
/**
|
|
1718
|
+
* Per-step + aggregate state derivations shared by every stepper skin.
|
|
1719
|
+
*
|
|
1720
|
+
* The classic organism historically derived "is this step errored / busy /
|
|
1721
|
+
* rejected" inline in {@link createStepperSlotContextBuilders}; the dot,
|
|
1722
|
+
* text, and progress-bar variants derived nothing, so a step error (per-step
|
|
1723
|
+
* `state`, an error aggregator, or a commit rejection) was structurally
|
|
1724
|
+
* invisible in those three. This view is the single source those four skins
|
|
1725
|
+
* read from - "Ableitung statt Verwaltung" - so the error contract can never
|
|
1726
|
+
* drift between them.
|
|
1727
|
+
*
|
|
1728
|
+
* @internal
|
|
1729
|
+
*/
|
|
1730
|
+
interface CngxStepperStateView {
|
|
1731
|
+
/** Raw step status. Group nodes still report their own `state()`. */
|
|
1732
|
+
readonly statusOf: (node: CngxStepNode) => CngxStepStatus;
|
|
1733
|
+
/**
|
|
1734
|
+
* `true` while a commit is in flight AND targets this step. Mirrors the
|
|
1735
|
+
* classic `isStepBusy` predicate.
|
|
1736
|
+
*/
|
|
1737
|
+
readonly isBusy: (node: CngxStepNode) => boolean;
|
|
1738
|
+
/**
|
|
1739
|
+
* `true` when this step is the one a commit just rejected
|
|
1740
|
+
* (`flatIndex === lastFailedIndex`). The commit-rejection arm your
|
|
1741
|
+
* pessimistic / optimistic flows hit.
|
|
1742
|
+
*/
|
|
1743
|
+
readonly isRejected: (node: CngxStepNode) => boolean;
|
|
1744
|
+
/**
|
|
1745
|
+
* Badge-level error: per-step `state === 'error'` OR the bound error
|
|
1746
|
+
* aggregator's `shouldShow()`. Deliberately excludes commit rejection -
|
|
1747
|
+
* the classic skin renders rejection through its own dedicated slot, so
|
|
1748
|
+
* folding it in here would double-render the icon.
|
|
1749
|
+
*/
|
|
1750
|
+
readonly hasErrorBadge: (node: CngxStepNode) => boolean;
|
|
1751
|
+
/**
|
|
1752
|
+
* Unified error predicate - the contract the minimal skins (dot / text /
|
|
1753
|
+
* progress-bar) read. `true` when ANY of the three error sources fires:
|
|
1754
|
+
* {@link hasErrorBadge} OR a commit rejection ({@link isRejected}). Those
|
|
1755
|
+
* skins have no separate rejection slot, so they treat every error source
|
|
1756
|
+
* as one "errored" state.
|
|
1757
|
+
*/
|
|
1758
|
+
readonly hasError: (node: CngxStepNode) => boolean;
|
|
1759
|
+
/** Count of step-only nodes where {@link hasError} is `true`. */
|
|
1760
|
+
readonly errorCount: Signal<number>;
|
|
1761
|
+
/** Flat index of the first errored step, or `-1` when none. */
|
|
1762
|
+
readonly firstErrorIndex: Signal<number>;
|
|
1763
|
+
/** `true` when `errorCount() > 0`. Drives skin-level `aria-invalid`. */
|
|
1764
|
+
readonly hasAnyError: Signal<boolean>;
|
|
1765
|
+
}
|
|
1766
|
+
/**
|
|
1767
|
+
* Build the shared {@link CngxStepperStateView} over a presenter host and its
|
|
1768
|
+
* step-only projection. Pure factory - `computed()` only, no injection
|
|
1769
|
+
* context required, so any skin can allocate it in a field initializer.
|
|
1770
|
+
*
|
|
1771
|
+
* @category common/stepper
|
|
1772
|
+
* @since 0.1.0
|
|
1773
|
+
* @relatedTo CngxStepperHost, createStepperSlotContextBuilders
|
|
1774
|
+
*/
|
|
1775
|
+
declare function createStepperStateView(inputs: {
|
|
1776
|
+
presenter: CngxStepperHost;
|
|
1777
|
+
stepsOnly: Signal<readonly CngxStepNode[]>;
|
|
1778
|
+
}): CngxStepperStateView;
|
|
1779
|
+
/**
|
|
1780
|
+
* Aggregate error phrase shared by the minimal skins (text / progress-bar)
|
|
1781
|
+
* and the classic mobile-collapse text branch. A single errored step names
|
|
1782
|
+
* itself (`"Payment: Errored"`); several collapse to the i18n count phrase
|
|
1783
|
+
* (`"2 errors"`). Returns `''` when no step errored - callers gate on
|
|
1784
|
+
* `view.hasAnyError()` so the empty string never reaches the DOM.
|
|
1785
|
+
*
|
|
1786
|
+
* The optional `messageOf` resolver lets callers surface a per-step
|
|
1787
|
+
* reason (a direct `[error]` string or the first aggregator label) in the
|
|
1788
|
+
* single-error case instead of the generic `errored` status word. When
|
|
1789
|
+
* omitted - or when it returns `undefined`/`''` - the helper produces
|
|
1790
|
+
* byte-identical output to the no-resolver form, so existing callers
|
|
1791
|
+
* (the classic mobile-collapse summary) are a guaranteed no-op.
|
|
1792
|
+
*
|
|
1793
|
+
* Pure helper - reads signals at call time, intended to be wrapped in the
|
|
1794
|
+
* caller's `computed()`.
|
|
1795
|
+
*
|
|
1796
|
+
* @category common/stepper
|
|
1797
|
+
* @since 0.1.0
|
|
1798
|
+
*/
|
|
1799
|
+
declare function resolveStepperErrorSummary(view: Pick<CngxStepperStateView, 'errorCount' | 'firstErrorIndex'>, stepsOnly: Signal<readonly CngxStepNode[]>, i18n: CngxStepperI18n, messageOf?: (node: CngxStepNode) => string | undefined): string;
|
|
1800
|
+
|
|
1563
1801
|
/**
|
|
1564
1802
|
* Input bundle for {@link createStepperSlotContextBuilders}: the presenter
|
|
1565
1803
|
* surface and the step-only flat projection. Builders read both reactively
|
|
@@ -1570,6 +1808,8 @@ declare function createStepperStripKeyboardNav(options: CngxStepperStripKeyboard
|
|
|
1570
1808
|
interface CngxStepperSlotContextBuildersInputs {
|
|
1571
1809
|
readonly presenter: CngxStepperHost;
|
|
1572
1810
|
readonly stepsOnly: Signal<readonly CngxStepNode[]>;
|
|
1811
|
+
/** i18n bundle - supplies the `errored` status label as the message fallback. */
|
|
1812
|
+
readonly i18n: CngxStepperI18n;
|
|
1573
1813
|
}
|
|
1574
1814
|
/**
|
|
1575
1815
|
* Per-step status / activity / rejection / labelling derivations shared by
|
|
@@ -1583,19 +1823,22 @@ interface CngxStepperSlotContextBuilders {
|
|
|
1583
1823
|
readonly isStepBusy: (node: CngxStepNode) => boolean;
|
|
1584
1824
|
readonly showRejection: (node: CngxStepNode) => boolean;
|
|
1585
1825
|
readonly showErrorBadge: (node: CngxStepNode) => boolean;
|
|
1826
|
+
/** Validation-channel error gate - mirrors the error badge, independent of commit rejection. */
|
|
1827
|
+
readonly showStepError: (node: CngxStepNode) => boolean;
|
|
1586
1828
|
readonly indicatorContextFor: (node: CngxStepNode) => CngxStepIndicatorContext;
|
|
1587
1829
|
readonly badgeContextFor: (node: CngxStepNode) => CngxStepBadgeContext;
|
|
1588
1830
|
readonly busySpinnerContextFor: (node: CngxStepNode) => CngxStepBusySpinnerContext;
|
|
1589
1831
|
readonly rejectionContextFor: (node: CngxStepNode) => CngxStepRejectionContext;
|
|
1832
|
+
readonly stepErrorContextFor: (node: CngxStepNode) => CngxStepErrorContext;
|
|
1590
1833
|
readonly groupHeaderContextFor: (node: CngxStepNode) => CngxStepGroupHeaderContext;
|
|
1591
1834
|
readonly stepLabelContextFor: (node: CngxStepNode) => CngxStepLabelContext;
|
|
1592
1835
|
readonly stepContentContextFor: (node: CngxStepNode) => CngxStepContentContext;
|
|
1593
1836
|
}
|
|
1594
1837
|
/**
|
|
1595
|
-
* Bundle the
|
|
1596
|
-
* `isActive` / `isStepBusy` / `showRejection` / `showErrorBadge`
|
|
1597
|
-
* the organism's template reads. Lives at
|
|
1598
|
-
* organism stays a thin shell
|
|
1838
|
+
* Bundle the `*ContextFor` slot-context builders plus the small
|
|
1839
|
+
* `isActive` / `isStepBusy` / `showRejection` / `showErrorBadge` /
|
|
1840
|
+
* `showStepError` predicates the organism's template reads. Lives at
|
|
1841
|
+
* Level 2 so the `<cngx-stepper>` organism stays a thin shell.
|
|
1599
1842
|
*
|
|
1600
1843
|
* @internal
|
|
1601
1844
|
*/
|
|
@@ -2050,5 +2293,5 @@ declare function provideCngxStepper(...features: readonly CngxStepperFeature[]):
|
|
|
2050
2293
|
*/
|
|
2051
2294
|
declare function provideCngxStepperAt(...features: readonly CngxStepperFeature[]): Provider[];
|
|
2052
2295
|
|
|
2053
|
-
export { CNGX_STEPPER_COMMIT_HANDLER_FACTORY, CNGX_STEPPER_CONFIG, CNGX_STEPPER_GLYPHS, CNGX_STEPPER_HOST, CNGX_STEPPER_I18N, CNGX_STEP_GROUP_HOST, CNGX_STEP_PANEL_HOST, CngxDotStepperDot, CngxStep, CngxStepBadge, CngxStepBusySpinner, CngxStepContent, CngxStepGroup, CngxStepGroupHeader, CngxStepIndicator, CngxStepLabel, CngxStepRejection, CngxStepperComplete, CngxStepperCount, CngxStepperEmpty, CngxStepperNext, CngxStepperPresenter, CngxStepperPrevious, CngxStepperRouterSync, CngxStepperSwipeNav, STEPPER_DEFAULT_MOBILE_BREAKPOINT, createMobileViewportSignal, createStepperAnnouncementBuilders, createStepperCommitHandler, createStepperDisplayMode, createStepperHostAttrs, createStepperHostProxy, createStepperSlotContextBuilders, createStepperStripKeyboardNav, createStepperTemplateBindings, flatStepsEqual, injectStepperConfig, injectStepperI18n, provideCngxStepper, provideCngxStepperAt, provideStepperConfig, provideStepperConfigAt, provideStepperI18n, resolveStepperStatusLabel, withDotStepperDotTemplate, withStepBadgeTemplate, withStepBusySpinnerTemplate, withStepGroupHeaderTemplate, withStepIndicatorTemplate, withStepRejectionTemplate, withStepperAriaLabels, withStepperCommitMode, withStepperConnectors, withStepperDefaultOrientation, withStepperEmptyTemplate, withStepperFallbackLabels, withStepperI18nLabels, withStepperLinear, withStepperMobileBreakpoint, withStepperMobileCollapse, withStepperMobileIndicatorPosition, withStepperMobileSwipe, withStepperRouterSync, withStepperSkin };
|
|
2054
|
-
export type { CngxDotStepperDotContext, CngxStepBadgeContext, CngxStepBusySpinnerContext, CngxStepContentContext, CngxStepGroupHeaderContext, CngxStepGroupHost, CngxStepIndicatorContext, CngxStepLabelContext, CngxStepNode, CngxStepPanelHost, CngxStepRegistration, CngxStepRejectionContext, CngxStepStatus, CngxStepperAnnouncementBuilders, CngxStepperAnnouncementBuildersInputs, CngxStepperAriaLabels, CngxStepperCommitAction, CngxStepperCommitHandler, CngxStepperCommitHandlerFactory, CngxStepperCommitHandlerOptions, CngxStepperConfig, CngxStepperConfigFeature, CngxStepperCountHost, CngxStepperFallbackLabels, CngxStepperFeature, CngxStepperHost, CngxStepperHostAttrs, CngxStepperHostAttrsInputs, CngxStepperI18n, CngxStepperI18nFeature, CngxStepperI18nOverrides, CngxStepperMobileCollapse, CngxStepperMobileIndicatorPosition, CngxStepperSkin, CngxStepperSlotContextBuilders, CngxStepperSlotContextBuildersInputs, CngxStepperStatusLabels, CngxStepperStripKeyboardNavOptions, CngxStepperTemplateBindings, CngxStepperTemplateBindingsOptions, CngxStepperTemplates };
|
|
2296
|
+
export { CNGX_STEPPER_COMMIT_HANDLER_FACTORY, CNGX_STEPPER_CONFIG, CNGX_STEPPER_GLYPHS, CNGX_STEPPER_HOST, CNGX_STEPPER_I18N, CNGX_STEP_GROUP_HOST, CNGX_STEP_PANEL_HOST, CngxDotStepperDot, CngxStep, CngxStepBadge, CngxStepBusySpinner, CngxStepContent, CngxStepError, CngxStepGroup, CngxStepGroupHeader, CngxStepIndicator, CngxStepLabel, CngxStepRejection, CngxStepperComplete, CngxStepperCount, CngxStepperEmpty, CngxStepperNext, CngxStepperPresenter, CngxStepperPrevious, CngxStepperRouterSync, CngxStepperSwipeNav, STEPPER_DEFAULT_MOBILE_BREAKPOINT, createMobileViewportSignal, createStepperAnnouncementBuilders, createStepperCommitHandler, createStepperDisplayMode, createStepperHostAttrs, createStepperHostProxy, createStepperSlotContextBuilders, createStepperStateView, createStepperStripKeyboardNav, createStepperTemplateBindings, flatStepsEqual, injectStepperConfig, injectStepperI18n, provideCngxStepper, provideCngxStepperAt, provideStepperConfig, provideStepperConfigAt, provideStepperI18n, resolveStepperErrorSummary, resolveStepperStatusLabel, withDotStepperDotTemplate, withStepBadgeTemplate, withStepBusySpinnerTemplate, withStepErrorTemplate, withStepGroupHeaderTemplate, withStepIndicatorTemplate, withStepRejectionTemplate, withStepperAriaLabels, withStepperCommitMode, withStepperConnectors, withStepperDefaultOrientation, withStepperEmptyTemplate, withStepperFallbackLabels, withStepperHeaderNavigation, withStepperI18nLabels, withStepperLinear, withStepperMobileBreakpoint, withStepperMobileCollapse, withStepperMobileIndicatorPosition, withStepperMobileSwipe, withStepperRouterSync, withStepperSkin };
|
|
2297
|
+
export type { CngxDotStepperDotContext, CngxStepBadgeContext, CngxStepBusySpinnerContext, CngxStepContentContext, CngxStepErrorContext, CngxStepGroupHeaderContext, CngxStepGroupHost, CngxStepIndicatorContext, CngxStepLabelContext, CngxStepNode, CngxStepPanelHost, CngxStepRegistration, CngxStepRejectionContext, CngxStepStatus, CngxStepperAnnouncementBuilders, CngxStepperAnnouncementBuildersInputs, CngxStepperAriaLabels, CngxStepperCommitAction, CngxStepperCommitHandler, CngxStepperCommitHandlerFactory, CngxStepperCommitHandlerOptions, CngxStepperConfig, CngxStepperConfigFeature, CngxStepperCountHost, CngxStepperFallbackLabels, CngxStepperFeature, CngxStepperHeaderNavigation, CngxStepperHost, CngxStepperHostAttrs, CngxStepperHostAttrsInputs, CngxStepperI18n, CngxStepperI18nFeature, CngxStepperI18nOverrides, CngxStepperMobileCollapse, CngxStepperMobileIndicatorPosition, CngxStepperSkin, CngxStepperSlotContextBuilders, CngxStepperSlotContextBuildersInputs, CngxStepperStateView, CngxStepperStatusLabels, CngxStepperStripKeyboardNavOptions, CngxStepperTemplateBindings, CngxStepperTemplateBindingsOptions, CngxStepperTemplates };
|