@cngx/common 0.1.0-rc.7 → 0.1.0-rc.9
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/card/README.md +2 -1
- package/command/README.md +29 -0
- package/data/README.md +15 -3
- package/dialog/README.md +23 -1
- package/fesm2022/cngx-common-a11y.mjs +517 -184
- package/fesm2022/cngx-common-a11y.mjs.map +1 -1
- package/fesm2022/cngx-common-audio.mjs +62 -17
- package/fesm2022/cngx-common-audio.mjs.map +1 -1
- package/fesm2022/cngx-common-card.mjs +301 -46
- package/fesm2022/cngx-common-card.mjs.map +1 -1
- package/fesm2022/cngx-common-chart.mjs +1221 -479
- package/fesm2022/cngx-common-chart.mjs.map +1 -1
- package/fesm2022/cngx-common-command.mjs +97 -16
- package/fesm2022/cngx-common-command.mjs.map +1 -1
- package/fesm2022/cngx-common-data.mjs +1496 -499
- package/fesm2022/cngx-common-data.mjs.map +1 -1
- package/fesm2022/cngx-common-dialog.mjs +236 -61
- package/fesm2022/cngx-common-dialog.mjs.map +1 -1
- package/fesm2022/cngx-common-display.mjs +364 -93
- package/fesm2022/cngx-common-display.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +2040 -1046
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common-layout.mjs +955 -125
- package/fesm2022/cngx-common-layout.mjs.map +1 -1
- package/fesm2022/cngx-common-popover.mjs +1293 -89
- package/fesm2022/cngx-common-popover.mjs.map +1 -1
- package/fesm2022/cngx-common-stepper.mjs +997 -453
- package/fesm2022/cngx-common-stepper.mjs.map +1 -1
- package/fesm2022/cngx-common-tabs.mjs +1794 -1265
- package/fesm2022/cngx-common-tabs.mjs.map +1 -1
- package/fesm2022/cngx-common-timeline.mjs +151 -61
- package/fesm2022/cngx-common-timeline.mjs.map +1 -1
- package/fesm2022/cngx-common.mjs +1 -1
- package/interactive/README.md +15 -4
- package/layout/README.md +37 -1
- package/package.json +20 -7
- package/popover/README.md +58 -2
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +91 -0
- package/schematics/package.json +3 -0
- package/stepper/README.md +11 -8
- package/theming/components/cngx-accordion.css +1 -1
- package/theming/components/cngx-backdrop.css +12 -0
- package/theming/components/cngx-button-toggle.css +29 -3
- package/theming/components/cngx-data-grid.css +168 -1
- package/theming/components/cngx-dialog.css +13 -0
- package/theming/components/cngx-listbox.css +21 -12
- package/theming/components/cngx-menu.css +56 -16
- package/theming/components/cngx-popover-sheet.css +402 -0
- package/theming/components/cngx-popover.css +28 -0
- package/theming/components/cngx-recycler-placeholder.css +196 -0
- package/theming/components/cngx-ripple.css +1 -1
- package/theming/components/cngx-slider.css +32 -1
- package/theming/components/cngx-tooltip.css +12 -0
- package/timeline/README.md +155 -0
- package/types/cngx-common-a11y.d.ts +205 -28
- package/types/cngx-common-card.d.ts +201 -17
- package/types/cngx-common-chart.d.ts +345 -48
- package/types/cngx-common-command.d.ts +50 -10
- package/types/cngx-common-data.d.ts +743 -92
- package/types/cngx-common-dialog.d.ts +161 -10
- package/types/cngx-common-display.d.ts +356 -142
- package/types/cngx-common-interactive.d.ts +910 -226
- package/types/cngx-common-layout.d.ts +603 -32
- package/types/cngx-common-popover.d.ts +612 -49
- package/types/cngx-common-stepper.d.ts +526 -237
- package/types/cngx-common-tabs.d.ts +358 -75
- package/types/cngx-common-timeline.d.ts +108 -22
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Signal, InjectionToken, TemplateRef, OnInit, EnvironmentProviders, Provider, AfterContentInit,
|
|
2
|
+
import { Signal, InjectionToken, TemplateRef, OnInit, EnvironmentProviders, Provider, AfterContentInit, Injector } from '@angular/core';
|
|
3
|
+
import { CngxTransitionOutcome, CngxCommitController } from '@cngx/common/data';
|
|
3
4
|
import { CngxAsyncState, StatusTransition } from '@cngx/core/utils';
|
|
4
5
|
import { Observable } from 'rxjs';
|
|
5
6
|
import * as i1 from '@cngx/common/interactive';
|
|
6
7
|
import { CngxErrorAggregatorContract, SwipeDirection } from '@cngx/common/interactive';
|
|
8
|
+
import { CngxMessage } from '@cngx/core/i18n';
|
|
7
9
|
import { CngxDirection } from '@cngx/core';
|
|
8
|
-
import { CngxCommitController } from '@cngx/common/data';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Status enum for a single step. Driven by the presenter's commit-controller
|
|
@@ -155,6 +156,17 @@ interface CngxStepperHost {
|
|
|
155
156
|
readonly previousStepLabel: Signal<string | undefined>;
|
|
156
157
|
readonly linear: Signal<boolean>;
|
|
157
158
|
readonly orientation: Signal<'horizontal' | 'vertical'>;
|
|
159
|
+
/**
|
|
160
|
+
* Resolved commit mode (`input ?? config ?? default`, with the DI
|
|
161
|
+
* fallback's pinned mode winning while a routed action is active).
|
|
162
|
+
* On the contract so Level-2 builders can gate mode-dependent
|
|
163
|
+
* behaviour - e.g. the pending-to-success announcement only applies
|
|
164
|
+
* in pessimistic mode, where the accept is what moves the step.
|
|
165
|
+
* Optional so pre-existing custom host implementations stay
|
|
166
|
+
* assignable; readers treat absence as `'pessimistic'` (the stepper
|
|
167
|
+
* default).
|
|
168
|
+
*/
|
|
169
|
+
readonly commitMode?: Signal<'optimistic' | 'pessimistic'>;
|
|
158
170
|
readonly commitState: CngxAsyncState<number | undefined>;
|
|
159
171
|
readonly intendedStepIndex: Signal<number | undefined>;
|
|
160
172
|
/**
|
|
@@ -166,11 +178,22 @@ interface CngxStepperHost {
|
|
|
166
178
|
*/
|
|
167
179
|
readonly commitTransition: StatusTransition;
|
|
168
180
|
/**
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
181
|
+
* Settle record of the most recent commit that did not land:
|
|
182
|
+
* `kind: 'refused'` when `commitAction` answered `false`, `'failed'`
|
|
183
|
+
* when it threw, rejected or errored; `index` is the rejected target,
|
|
184
|
+
* `sequence` is bumped once per settled refusal or failure. Kept
|
|
185
|
+
* through {@link clearLastFailed} (which only hides the marker), so the
|
|
186
|
+
* announcement record survives a cleared decoration; dropped by
|
|
187
|
+
* `reset()`. A refusal leaves `commitState` at `'idle'` with its data
|
|
188
|
+
* intact, so this is the only place a refusal is visible as such.
|
|
189
|
+
*/
|
|
190
|
+
readonly lastOutcome: Signal<CngxTransitionOutcome | undefined>;
|
|
191
|
+
/**
|
|
192
|
+
* Index of the most recently rejected (refused or failed) commit
|
|
193
|
+
* target, or `undefined` when no rejection marker is shown. Derived
|
|
194
|
+
* from {@link lastOutcome}; cleared by a successful re-pick of the
|
|
195
|
+
* same target or via {@link clearLastFailed}. Drives strip rejection
|
|
196
|
+
* decoration and the `commitRolledBackTo` chain in `liveAnnouncement`.
|
|
174
197
|
*/
|
|
175
198
|
readonly lastFailedIndex: Signal<number | undefined>;
|
|
176
199
|
/**
|
|
@@ -194,12 +217,19 @@ interface CngxStepperHost {
|
|
|
194
217
|
selectById(id: string): void;
|
|
195
218
|
reset(): void;
|
|
196
219
|
/**
|
|
197
|
-
* Drop the persisted {@link lastFailedIndex}
|
|
198
|
-
* safe to wire to a Dismiss button or aggregator-cleared.
|
|
220
|
+
* Drop the persisted {@link lastFailedIndex} marker. Idempotent;
|
|
221
|
+
* safe to wire to a Dismiss button or aggregator-cleared. Leaves
|
|
222
|
+
* {@link lastOutcome} untouched.
|
|
199
223
|
*/
|
|
200
224
|
clearLastFailed(): void;
|
|
201
225
|
register(handle: CngxStepRegistration, parentId?: string | null): void;
|
|
202
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Remove a registration. Pass the registering `handle` so a destroyed
|
|
228
|
+
* instance can only evict itself: under an id collision the presenter's
|
|
229
|
+
* idempotent re-register replaces the stored handle, and the OLD
|
|
230
|
+
* instance's late destroy must not tear down the NEW instance's entry.
|
|
231
|
+
*/
|
|
232
|
+
unregister(id: string, handle?: CngxStepRegistration): void;
|
|
203
233
|
}
|
|
204
234
|
/**
|
|
205
235
|
* DI token carrying the presenter's contract to atoms + organism shells.
|
|
@@ -271,8 +301,13 @@ declare class CngxStepperPresenter implements CngxStepperHost {
|
|
|
271
301
|
* `linkedSignal` is shared across all consumers.
|
|
272
302
|
*/
|
|
273
303
|
readonly commitTransition: StatusTransition;
|
|
274
|
-
private readonly
|
|
304
|
+
private readonly lastOutcomeState;
|
|
305
|
+
private readonly clearedSequenceState;
|
|
306
|
+
private outcomeSequence;
|
|
307
|
+
private lastCommittedIndex;
|
|
275
308
|
private readonly originIndexDuringCommitState;
|
|
309
|
+
/** {@inheritDoc CngxStepperHost.lastOutcome} */
|
|
310
|
+
readonly lastOutcome: Signal<CngxTransitionOutcome | undefined>;
|
|
276
311
|
/** {@inheritDoc CngxStepperHost.lastFailedIndex} */
|
|
277
312
|
readonly lastFailedIndex: Signal<number | undefined>;
|
|
278
313
|
/** {@inheritDoc CngxStepperHost.originIndexDuringCommit} */
|
|
@@ -324,7 +359,9 @@ declare class CngxStepperPresenter implements CngxStepperHost {
|
|
|
324
359
|
private readonly nextEnabledIndex;
|
|
325
360
|
/**
|
|
326
361
|
* Previous enabled step-only index before the active one, skipping
|
|
327
|
-
* disabled steps. Returns `-1` when no enabled step precedes
|
|
362
|
+
* disabled steps. Returns `-1` when no enabled step precedes - also for
|
|
363
|
+
* a stale out-of-range active index (consumer-writable model), which
|
|
364
|
+
* must resolve to "none" instead of wrapping or throwing. Single
|
|
328
365
|
* source for `selectPrevious()` and the `canGoPrevious` bound.
|
|
329
366
|
*/
|
|
330
367
|
private readonly previousEnabledIndex;
|
|
@@ -354,7 +391,7 @@ declare class CngxStepperPresenter implements CngxStepperHost {
|
|
|
354
391
|
private readonly registry;
|
|
355
392
|
private readonly insertionOrder;
|
|
356
393
|
register(handle: CngxStepRegistration, parentId?: string | null): void;
|
|
357
|
-
unregister(id: string): void;
|
|
394
|
+
unregister(id: string, handle?: CngxStepRegistration): void;
|
|
358
395
|
private rebuildTree;
|
|
359
396
|
/** {@inheritDoc CngxStepperHost.clearLastFailed} */
|
|
360
397
|
clearLastFailed(): void;
|
|
@@ -378,9 +415,23 @@ declare class CngxStepperPresenter implements CngxStepperHost {
|
|
|
378
415
|
canNavigateTo(index: number): boolean;
|
|
379
416
|
select(index: number): void;
|
|
380
417
|
selectNext(): void;
|
|
418
|
+
/**
|
|
419
|
+
* Ungated back-move. Supersedes an in-flight commit: the runner is
|
|
420
|
+
* canceled and the commit state settles to idle, so `busy` cannot
|
|
421
|
+
* latch and a late resolve cannot yank the user forward off the step
|
|
422
|
+
* they explicitly returned to.
|
|
423
|
+
*/
|
|
381
424
|
selectPrevious(): void;
|
|
382
425
|
selectById(id: string): void;
|
|
383
426
|
reset(): void;
|
|
427
|
+
/**
|
|
428
|
+
* Cancels the in-flight commit and settles the state to idle. The
|
|
429
|
+
* settle option is load-bearing here - a custom
|
|
430
|
+
* `CNGX_COMMIT_CONTROLLER_FACTORY` implementation that ignores it
|
|
431
|
+
* leaves `busy` latched, which is invisible until a user backs out
|
|
432
|
+
* mid-commit; the dev-mode probe surfaces that immediately.
|
|
433
|
+
*/
|
|
434
|
+
private cancelAndSettleCommit;
|
|
384
435
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperPresenter, never>;
|
|
385
436
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepperPresenter, "[cngxStepper]", ["cngxStepper"], { "activeStepIndex": { "alias": "activeStepIndex"; "required": false; "isSignal": true; }; "linearInput": { "alias": "linear"; "required": false; "isSignal": true; }; "orientationInput": { "alias": "orientation"; "required": false; "isSignal": true; }; "commitAction": { "alias": "commitAction"; "required": false; "isSignal": true; }; "commitModeInput": { "alias": "commitMode"; "required": false; "isSignal": true; }; }, { "activeStepIndex": "activeStepIndexChange"; }, never, never, true, never>;
|
|
386
437
|
}
|
|
@@ -397,7 +448,8 @@ declare class CngxStepperPresenter implements CngxStepperHost {
|
|
|
397
448
|
*/
|
|
398
449
|
interface CngxStepGroupHost {
|
|
399
450
|
register(handle: CngxStepRegistration): void;
|
|
400
|
-
unregister
|
|
451
|
+
/** Instance-guarded like `CngxStepperHost.unregister` - see there. */
|
|
452
|
+
unregister(id: string, handle?: CngxStepRegistration): void;
|
|
401
453
|
}
|
|
402
454
|
/**
|
|
403
455
|
* DI token providing a `CngxStepGroup`'s contract to nested `CngxStep` atoms.
|
|
@@ -473,8 +525,7 @@ declare const CNGX_STEP_PANEL_HOST: InjectionToken<CngxStepPanelHost>;
|
|
|
473
525
|
* a sibling is inserted) on top of the {@link stepTreeEqual} fields.
|
|
474
526
|
*
|
|
475
527
|
* Use only on projections where every step carries a real
|
|
476
|
-
* DFS-assigned `flatIndex` and `depth
|
|
477
|
-
* {@link stepNodesEqual}.
|
|
528
|
+
* DFS-assigned `flatIndex` and `depth`.
|
|
478
529
|
*
|
|
479
530
|
* @internal Exported from `public-api.ts` so the cngx-stepper and
|
|
480
531
|
* cngx-mat-stepper organisms share the comparator across the
|
|
@@ -539,7 +590,7 @@ declare class CngxStepLabel {
|
|
|
539
590
|
* `CngxStepGroup` ({@link CNGX_STEP_GROUP_HOST}) or the root
|
|
540
591
|
* `CngxStepperPresenter` ({@link CNGX_STEPPER_HOST}).
|
|
541
592
|
*
|
|
542
|
-
* `state` is a `
|
|
593
|
+
* `state` is a pure `computed` over `[disabled]`, `[completed]`, and
|
|
543
594
|
* the optional `[errorAggregator]`'s `hasError()`.
|
|
544
595
|
*
|
|
545
596
|
* @category common/stepper
|
|
@@ -578,10 +629,7 @@ declare class CngxStep implements OnInit {
|
|
|
578
629
|
protected readonly contentSlot: Signal<CngxStepContent | undefined>;
|
|
579
630
|
readonly labelTemplate: Signal<CngxStepLabel | undefined>;
|
|
580
631
|
readonly contentTemplate: Signal<CngxStepContent | undefined>;
|
|
581
|
-
/**
|
|
582
|
-
* Per-step status derived from inputs + aggregator. `linkedSignal`
|
|
583
|
-
* with structural equal - never written via `effect`.
|
|
584
|
-
*/
|
|
632
|
+
/** Per-step status derived from inputs + aggregator - never written. */
|
|
585
633
|
readonly state: Signal<CngxStepStatus>;
|
|
586
634
|
private readonly groupHost;
|
|
587
635
|
private readonly stepperHost;
|
|
@@ -619,6 +667,7 @@ declare class CngxStepGroup implements CngxStepGroupHost, OnInit {
|
|
|
619
667
|
private readonly childRegistry;
|
|
620
668
|
readonly aggregatedStatus: Signal<CngxStepStatus>;
|
|
621
669
|
private readonly stepperHost;
|
|
670
|
+
private readonly parentGroupHost;
|
|
622
671
|
private readonly destroyRef;
|
|
623
672
|
/**
|
|
624
673
|
* `true` when this group's children are collapsed to the header node:
|
|
@@ -637,7 +686,7 @@ declare class CngxStepGroup implements CngxStepGroupHost, OnInit {
|
|
|
637
686
|
constructor();
|
|
638
687
|
ngOnInit(): void;
|
|
639
688
|
register(handle: CngxStepRegistration): void;
|
|
640
|
-
unregister(id: string): void;
|
|
689
|
+
unregister(id: string, handle?: CngxStepRegistration): void;
|
|
641
690
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepGroup, never>;
|
|
642
691
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepGroup, "[cngxStepGroup]", ["cngxStepGroup"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
643
692
|
}
|
|
@@ -789,6 +838,10 @@ declare class CngxStepBusySpinner {
|
|
|
789
838
|
* the tabs `cngxTabRejectionIcon` slot. Renders only when
|
|
790
839
|
* `presenter.lastFailedIndex()` matches the step's flat-index.
|
|
791
840
|
*
|
|
841
|
+
* `reason` tells the two commit outcomes apart: `'refused'` when the
|
|
842
|
+
* commit action answered `false`, `'failed'` when it threw, rejected or
|
|
843
|
+
* errored. Both render the slot; pick a glyph or copy per reason.
|
|
844
|
+
*
|
|
792
845
|
* `originLabel` is the safe-harbour step's label, derived from
|
|
793
846
|
* `presenter.originIndexDuringCommit()`. May be `undefined` when the
|
|
794
847
|
* origin index is out of range (synchronous-rejection edge case);
|
|
@@ -803,6 +856,8 @@ interface CngxStepRejectionContext {
|
|
|
803
856
|
readonly originLabel: string | undefined;
|
|
804
857
|
/** The rejected step node carrying id / label / state signals. */
|
|
805
858
|
readonly node: CngxStepNode;
|
|
859
|
+
/** Why the commit did not land (`presenter.lastOutcome().kind`). */
|
|
860
|
+
readonly reason: 'refused' | 'failed';
|
|
806
861
|
}
|
|
807
862
|
/**
|
|
808
863
|
* Slot directive for the rejection-decoration template on
|
|
@@ -976,9 +1031,9 @@ declare class CngxStepperEmpty {
|
|
|
976
1031
|
|
|
977
1032
|
/**
|
|
978
1033
|
* Context passed to the `*cngxDotStepperDot` template. Drives the dot
|
|
979
|
-
* body inside `<cngx-dot-stepper
|
|
980
|
-
* shell -
|
|
981
|
-
* modifiers - stays library-owned; only the dot body content becomes
|
|
1034
|
+
* body inside `<cngx-dot-stepper>` and inside the dots mobile-collapse
|
|
1035
|
+
* branch of `<cngx-stepper>`. The dot shell - role, `aria-current`,
|
|
1036
|
+
* `aria-label`, class modifiers - stays library-owned; only the dot body content becomes
|
|
982
1037
|
* overrideable so consumers can swap the default empty body for an
|
|
983
1038
|
* icon, glyph, or branded indicator.
|
|
984
1039
|
*
|
|
@@ -1001,7 +1056,8 @@ interface CngxDotStepperDotContext {
|
|
|
1001
1056
|
readonly completed: boolean;
|
|
1002
1057
|
}
|
|
1003
1058
|
/**
|
|
1004
|
-
* Slot directive for the dot-body template on `<cngx-dot-stepper
|
|
1059
|
+
* Slot directive for the dot-body template on `<cngx-dot-stepper>` and on
|
|
1060
|
+
* `<cngx-stepper>` (dots mobile-collapse branch, `mobileCollapse: 'dots'`).
|
|
1005
1061
|
* Discovered via `contentChild`; cascades through
|
|
1006
1062
|
* `CNGX_STEPPER_CONFIG.templates.dotStepperDot` before falling back to
|
|
1007
1063
|
* the built-in empty body (the span itself paints the dot fill via CSS).
|
|
@@ -1084,10 +1140,14 @@ interface CngxStepperTemplates {
|
|
|
1084
1140
|
*/
|
|
1085
1141
|
type CngxStepperSkin = 'classic' | 'linear-minimal' | 'stripe-status-rich' | 'path-chevron' | 'pill-segment' | 'chips' | 'breadcrumb';
|
|
1086
1142
|
/**
|
|
1087
|
-
* Mobile auto-collapse target.
|
|
1088
|
-
*
|
|
1089
|
-
*
|
|
1090
|
-
*
|
|
1143
|
+
* Mobile auto-collapse target. Below `30rem` of the stepper's own
|
|
1144
|
+
* container width, `<cngx-stepper>` falls back to one of the compact
|
|
1145
|
+
* variants instead of rendering the full strip. Set to `'off'` to retain
|
|
1146
|
+
* the classic strip at every width.
|
|
1147
|
+
*
|
|
1148
|
+
* The width itself is not configurable - it is a `@container` rule in
|
|
1149
|
+
* `stepper-base.css`, overridable in consumer CSS. This setting picks
|
|
1150
|
+
* *what* the strip collapses into, not *where*.
|
|
1091
1151
|
*
|
|
1092
1152
|
* @category common/stepper
|
|
1093
1153
|
*/
|
|
@@ -1137,18 +1197,6 @@ type CngxStepperGroupSummary = 'progress' | 'count' | 'status' | 'off';
|
|
|
1137
1197
|
* @category common/stepper
|
|
1138
1198
|
*/
|
|
1139
1199
|
type CngxStepperDensity = 'comfortable' | 'auto';
|
|
1140
|
-
/**
|
|
1141
|
-
* Per-step px thresholds the `density: 'auto'` ladder reacts to.
|
|
1142
|
-
* `compact` is the minimum px per step that keeps full labels; below
|
|
1143
|
-
* `minimal` px per step the strip drops to indicators-only. `compact`
|
|
1144
|
-
* must exceed `minimal`.
|
|
1145
|
-
*
|
|
1146
|
-
* @category common/stepper
|
|
1147
|
-
*/
|
|
1148
|
-
interface CngxStepperDensityBreakpoints {
|
|
1149
|
-
readonly compact: number;
|
|
1150
|
-
readonly minimal: number;
|
|
1151
|
-
}
|
|
1152
1200
|
/**
|
|
1153
1201
|
* Where the mobile auto-collapse indicator (text caption or dot row)
|
|
1154
1202
|
* sits relative to the active step's panel content under narrow
|
|
@@ -1160,24 +1208,6 @@ interface CngxStepperDensityBreakpoints {
|
|
|
1160
1208
|
* @category common/stepper
|
|
1161
1209
|
*/
|
|
1162
1210
|
type CngxStepperMobileIndicatorPosition = 'top' | 'bottom';
|
|
1163
|
-
/**
|
|
1164
|
-
* Default media query the mobile auto-collapse policy reacts to. The
|
|
1165
|
-
* literal lives on a single exported const so the runtime, the config
|
|
1166
|
-
* default, and any JSDoc cross-references stay in lockstep. Consumers
|
|
1167
|
-
* override the query via {@link withStepperMobileBreakpoint}.
|
|
1168
|
-
*
|
|
1169
|
-
* @category common/stepper
|
|
1170
|
-
*/
|
|
1171
|
-
declare const STEPPER_DEFAULT_MOBILE_BREAKPOINT = "(max-width: 480px)";
|
|
1172
|
-
/**
|
|
1173
|
-
* Default per-step px thresholds for the `density: 'auto'` ladder. The
|
|
1174
|
-
* literal lives on a single exported const so the runtime resolver, the
|
|
1175
|
-
* config default, and any JSDoc cross-references stay in lockstep.
|
|
1176
|
-
* Consumers override via {@link withStepperDensity}'s second argument.
|
|
1177
|
-
*
|
|
1178
|
-
* @category common/stepper
|
|
1179
|
-
*/
|
|
1180
|
-
declare const STEPPER_DEFAULT_DENSITY_BREAKPOINTS: CngxStepperDensityBreakpoints;
|
|
1181
1211
|
/**
|
|
1182
1212
|
* Stepper config surface. Resolution priority: per-instance Input
|
|
1183
1213
|
* > `provideStepperConfigAt` (viewProviders) > `provideStepperConfig`
|
|
@@ -1216,17 +1246,12 @@ interface CngxStepperConfig {
|
|
|
1216
1246
|
readonly groupCollapseSummary?: CngxStepperGroupSummary;
|
|
1217
1247
|
/**
|
|
1218
1248
|
* Space-driven density policy for the classic strip. `'auto'`
|
|
1219
|
-
*
|
|
1249
|
+
* shrinks the labels in flow (a cqi budget under `[data-density-auto]`)
|
|
1250
|
+
* instead of overflowing the strip; `'comfortable'`
|
|
1220
1251
|
* (default) keeps full labels. Orthogonal to `mobileCollapse`. Apply
|
|
1221
1252
|
* app-wide via {@link withStepperDensity}.
|
|
1222
1253
|
*/
|
|
1223
1254
|
readonly density?: CngxStepperDensity;
|
|
1224
|
-
/**
|
|
1225
|
-
* Per-step px thresholds for the `density: 'auto'` ladder. Default
|
|
1226
|
-
* {@link STEPPER_DEFAULT_DENSITY_BREAKPOINTS}. Override via
|
|
1227
|
-
* {@link withStepperDensity}'s second argument.
|
|
1228
|
-
*/
|
|
1229
|
-
readonly densityBreakpoints?: CngxStepperDensityBreakpoints;
|
|
1230
1255
|
/**
|
|
1231
1256
|
* Opt-in connector rail between adjacent step indicators on the
|
|
1232
1257
|
* classic skin. Off by default. The rule is double-scoped on
|
|
@@ -1236,12 +1261,6 @@ interface CngxStepperConfig {
|
|
|
1236
1261
|
*/
|
|
1237
1262
|
readonly connectors?: boolean;
|
|
1238
1263
|
readonly mobileCollapse?: CngxStepperMobileCollapse;
|
|
1239
|
-
/**
|
|
1240
|
-
* Media query the mobile auto-collapse policy reacts to. Default
|
|
1241
|
-
* {@link STEPPER_DEFAULT_MOBILE_BREAKPOINT}. Tablet consumers can
|
|
1242
|
-
* re-aim the trigger via {@link withStepperMobileBreakpoint}.
|
|
1243
|
-
*/
|
|
1244
|
-
readonly mobileBreakpoint?: string;
|
|
1245
1264
|
/**
|
|
1246
1265
|
* Where the mobile auto-collapse indicator sits relative to the
|
|
1247
1266
|
* panel content. Default `'top'`. Override per-instance via the
|
|
@@ -1257,8 +1276,10 @@ interface CngxStepperConfig {
|
|
|
1257
1276
|
* classic strip and on the Material twin (`<cngx-mat-stepper>`).
|
|
1258
1277
|
*/
|
|
1259
1278
|
readonly mobileSwipe?: boolean;
|
|
1260
|
-
|
|
1261
|
-
readonly
|
|
1279
|
+
/** Landmark labels; a `Signal` switches the language at runtime. */
|
|
1280
|
+
readonly ariaLabels?: CngxStepperAriaLabels | Signal<CngxStepperAriaLabels>;
|
|
1281
|
+
/** Role descriptions; a `Signal` switches the language at runtime. */
|
|
1282
|
+
readonly fallbackLabels?: CngxStepperFallbackLabels | Signal<CngxStepperFallbackLabels>;
|
|
1262
1283
|
readonly templates?: CngxStepperTemplates;
|
|
1263
1284
|
}
|
|
1264
1285
|
/**
|
|
@@ -1336,24 +1357,16 @@ declare function withStepperSkin(skin: CngxStepperSkin): CngxStepperConfigFeatur
|
|
|
1336
1357
|
*/
|
|
1337
1358
|
declare function withStepperConnectors(on: boolean): CngxStepperConfigFeature;
|
|
1338
1359
|
/**
|
|
1339
|
-
* Configure the mobile auto-collapse target for `<cngx-stepper>`.
|
|
1340
|
-
*
|
|
1341
|
-
* the chosen variant - `'text'` (default) renders
|
|
1342
|
-
* `'dots'` renders `<cngx-dot-stepper>`, `'off'`
|
|
1343
|
-
* strip. The Material twin `<cngx-mat-stepper>` ignores
|
|
1360
|
+
* Configure the mobile auto-collapse target for `<cngx-stepper>`. Below
|
|
1361
|
+
* `30rem` of the stepper's own container width, the classic strip swaps
|
|
1362
|
+
* to the chosen variant - `'text'` (default) renders
|
|
1363
|
+
* `<cngx-text-stepper>`, `'dots'` renders `<cngx-dot-stepper>`, `'off'`
|
|
1364
|
+
* keeps the classic strip. The Material twin `<cngx-mat-stepper>` ignores
|
|
1365
|
+
* this setting.
|
|
1344
1366
|
*
|
|
1345
1367
|
* @category common/stepper
|
|
1346
1368
|
*/
|
|
1347
1369
|
declare function withStepperMobileCollapse(mode: CngxStepperMobileCollapse): CngxStepperConfigFeature;
|
|
1348
|
-
/**
|
|
1349
|
-
* Override the media query the mobile auto-collapse policy reacts to.
|
|
1350
|
-
* Default `'(max-width: 480px)'`. Useful for tablet-tier consumers
|
|
1351
|
-
* who want the collapse to engage at 768px or for design systems
|
|
1352
|
-
* aligned with `--mat-sys-breakpoint-*` tokens.
|
|
1353
|
-
*
|
|
1354
|
-
* @category common/stepper
|
|
1355
|
-
*/
|
|
1356
|
-
declare function withStepperMobileBreakpoint(query: string): CngxStepperConfigFeature;
|
|
1357
1370
|
/**
|
|
1358
1371
|
* Set the app-wide default position of the mobile auto-collapse
|
|
1359
1372
|
* indicator relative to panel content. `'top'` keeps the indicator
|
|
@@ -1407,30 +1420,33 @@ declare function withStepperGroupCollapse(mode: CngxStepperGroupCollapse): CngxS
|
|
|
1407
1420
|
declare function withStepperGroupCollapseSummary(mode: CngxStepperGroupSummary): CngxStepperConfigFeature;
|
|
1408
1421
|
/**
|
|
1409
1422
|
* Set the app-wide space-driven density policy for the classic
|
|
1410
|
-
* `<cngx-stepper>` strip. `'auto'`
|
|
1411
|
-
*
|
|
1412
|
-
*
|
|
1413
|
-
*
|
|
1414
|
-
*
|
|
1415
|
-
*
|
|
1423
|
+
* `<cngx-stepper>` strip. `'auto'` sets `[data-density-auto]`, under
|
|
1424
|
+
* which the labels shrink in flow within a cqi budget (the step furthest
|
|
1425
|
+
* from the active one gives way first) instead of overflowing the strip;
|
|
1426
|
+
* `'comfortable'` (library default) keeps full labels at every width.
|
|
1427
|
+
* Orthogonal to the `mobileCollapse` axis; the Material twin ignores this
|
|
1428
|
+
* setting.
|
|
1416
1429
|
*
|
|
1417
1430
|
* @category common/stepper
|
|
1418
1431
|
*/
|
|
1419
|
-
declare function withStepperDensity(mode: CngxStepperDensity
|
|
1432
|
+
declare function withStepperDensity(mode: CngxStepperDensity): CngxStepperConfigFeature;
|
|
1420
1433
|
/**
|
|
1421
1434
|
* Merge ARIA labels into the cascade. Keys not provided keep their
|
|
1422
1435
|
* library defaults; per-instance overrides on the stepper still win.
|
|
1436
|
+
* Pass a `Signal` to switch the language at runtime.
|
|
1423
1437
|
*
|
|
1424
1438
|
* @category common/stepper
|
|
1425
1439
|
*/
|
|
1426
|
-
declare function withStepperAriaLabels(labels: CngxStepperAriaLabels): CngxStepperConfigFeature;
|
|
1440
|
+
declare function withStepperAriaLabels(labels: CngxStepperAriaLabels | Signal<CngxStepperAriaLabels>): CngxStepperConfigFeature;
|
|
1427
1441
|
/**
|
|
1428
|
-
* Merge
|
|
1429
|
-
*
|
|
1442
|
+
* Merge fallback role descriptions (`groupRoleDescription` /
|
|
1443
|
+
* `stepRoleDescription`) into the cascade. These feed the strip's
|
|
1444
|
+
* `aria-roledescription` attributes when the consumer supplies none.
|
|
1445
|
+
* Pass a `Signal` to switch the language at runtime.
|
|
1430
1446
|
*
|
|
1431
1447
|
* @category common/stepper
|
|
1432
1448
|
*/
|
|
1433
|
-
declare function withStepperFallbackLabels(labels: CngxStepperFallbackLabels): CngxStepperConfigFeature;
|
|
1449
|
+
declare function withStepperFallbackLabels(labels: CngxStepperFallbackLabels | Signal<CngxStepperFallbackLabels>): CngxStepperConfigFeature;
|
|
1434
1450
|
/**
|
|
1435
1451
|
* Override the default `*cngxStepIndicator` template app-wide.
|
|
1436
1452
|
* Per-instance directive still wins; this only moves the cascade
|
|
@@ -1480,10 +1496,11 @@ declare function withStepGroupHeaderTemplate(template: TemplateRef<CngxStepGroup
|
|
|
1480
1496
|
*/
|
|
1481
1497
|
declare function withStepperEmptyTemplate(template: TemplateRef<void>): CngxStepperConfigFeature;
|
|
1482
1498
|
/**
|
|
1483
|
-
* Override the default `*cngxDotStepperDot` template app-wide.
|
|
1484
|
-
* `<cngx-dot-stepper>`
|
|
1485
|
-
*
|
|
1486
|
-
* (the dot fill is painted by
|
|
1499
|
+
* Override the default `*cngxDotStepperDot` template app-wide. Both dot
|
|
1500
|
+
* hosts resolve the cascade per dot - `<cngx-dot-stepper>` and the dots
|
|
1501
|
+
* mobile-collapse branch of `<cngx-stepper>`: per-instance directive >
|
|
1502
|
+
* this feature > built-in empty body (the dot fill is painted by the dot
|
|
1503
|
+
* element's CSS regardless).
|
|
1487
1504
|
*
|
|
1488
1505
|
* @category common/stepper
|
|
1489
1506
|
*/
|
|
@@ -1538,6 +1555,8 @@ interface CngxStepperTemplateBindingsOptions {
|
|
|
1538
1555
|
readonly errorSlot?: Signal<CngxStepError | undefined>;
|
|
1539
1556
|
readonly groupHeaderSlot: Signal<CngxStepGroupHeader | undefined>;
|
|
1540
1557
|
readonly emptySlot: Signal<CngxStepperEmpty | undefined>;
|
|
1558
|
+
/** Optional - only hosts with a dots branch query `*cngxDotStepperDot`; without it the config template still applies. */
|
|
1559
|
+
readonly dotSlot?: Signal<CngxDotStepperDot | undefined>;
|
|
1541
1560
|
readonly config: CngxStepperConfig;
|
|
1542
1561
|
}
|
|
1543
1562
|
/**
|
|
@@ -1555,6 +1574,7 @@ interface CngxStepperTemplateBindings {
|
|
|
1555
1574
|
readonly stepError: Signal<TemplateRef<CngxStepErrorContext> | null>;
|
|
1556
1575
|
readonly groupHeader: Signal<TemplateRef<CngxStepGroupHeaderContext> | null>;
|
|
1557
1576
|
readonly empty: Signal<TemplateRef<void> | null>;
|
|
1577
|
+
readonly dot: Signal<TemplateRef<CngxDotStepperDotContext> | null>;
|
|
1558
1578
|
}
|
|
1559
1579
|
/**
|
|
1560
1580
|
* Wires the 3-stage template cascade for the `<cngx-stepper>` skin
|
|
@@ -1591,8 +1611,14 @@ declare function createStepperTemplateBindings(opts: CngxStepperTemplateBindings
|
|
|
1591
1611
|
declare const CNGX_STEPPER_GLYPHS: {
|
|
1592
1612
|
/** Default visual for `*cngxStepBadge` when no override is bound. */
|
|
1593
1613
|
readonly errorBadge: "!";
|
|
1594
|
-
/** Default visual for `*cngxStepRejection` when no override is bound. */
|
|
1614
|
+
/** Default visual for `*cngxStepRejection` on a failed commit when no override is bound. */
|
|
1595
1615
|
readonly rejectionIcon: "!";
|
|
1616
|
+
/**
|
|
1617
|
+
* Default visual for `*cngxStepRejection` on a refused commit (the action
|
|
1618
|
+
* answered `false`). A distinct glyph, so a refusal never differs from a
|
|
1619
|
+
* failure by colour alone (WCAG 1.4.1).
|
|
1620
|
+
*/
|
|
1621
|
+
readonly refusedIcon: "⊘";
|
|
1596
1622
|
};
|
|
1597
1623
|
|
|
1598
1624
|
/**
|
|
@@ -1639,16 +1665,24 @@ declare class CngxStepperRouterSync implements AfterContentInit {
|
|
|
1639
1665
|
constructor();
|
|
1640
1666
|
/**
|
|
1641
1667
|
* Seed from the URL before the stepper renders its panels. `CngxStep`
|
|
1642
|
-
* registers in
|
|
1643
|
-
*
|
|
1644
|
-
*
|
|
1645
|
-
*
|
|
1668
|
+
* registers in `ngOnInit` (so a bound `[id]` reaches the registry), which
|
|
1669
|
+
* runs before the host's `ngAfterContentInit` - the registry is populated
|
|
1670
|
+
* by the time this runs, and the host view has not rendered yet, which is
|
|
1671
|
+
* what keeps a `panelMode="lazy"` default step from counting its first
|
|
1672
|
+
* render as a first activation on a deep link that named another step.
|
|
1646
1673
|
*
|
|
1647
1674
|
* Own router guard: the constructor's early return does not stop
|
|
1648
1675
|
* lifecycle hooks from running.
|
|
1649
1676
|
*/
|
|
1650
1677
|
ngAfterContentInit(): void;
|
|
1651
1678
|
private seedFromUrl;
|
|
1679
|
+
/**
|
|
1680
|
+
* Reflect `id` into the URL. Fragment mode re-serializes the existing
|
|
1681
|
+
* fragment params so foreign state (`#foo=1&step=x`) survives the
|
|
1682
|
+
* write; values are URI-encoded symmetric to {@link parseFragment}.
|
|
1683
|
+
*/
|
|
1684
|
+
private writeUrl;
|
|
1685
|
+
private serializeFragment;
|
|
1652
1686
|
private readUrlValue;
|
|
1653
1687
|
private parseFragment;
|
|
1654
1688
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperRouterSync, never>;
|
|
@@ -1656,20 +1690,102 @@ declare class CngxStepperRouterSync implements AfterContentInit {
|
|
|
1656
1690
|
}
|
|
1657
1691
|
|
|
1658
1692
|
/**
|
|
1659
|
-
*
|
|
1660
|
-
* future skin / variant that surfaces a per-step status pill). Sub-
|
|
1661
|
-
* bundle of {@link CngxStepperI18n}; consumers override partial keys
|
|
1662
|
-
* via {@link withStepperI18nLabels} - un-overridden keys keep their
|
|
1663
|
-
* English defaults.
|
|
1693
|
+
* The status-pill words of the stepper section.
|
|
1664
1694
|
*
|
|
1665
1695
|
* @category common/stepper/i18n
|
|
1696
|
+
* @since 0.1.0
|
|
1666
1697
|
*/
|
|
1667
|
-
interface
|
|
1698
|
+
interface CngxStepperStatusLanguage {
|
|
1668
1699
|
readonly done: string;
|
|
1669
1700
|
readonly inProgress: string;
|
|
1670
1701
|
readonly upNext: string;
|
|
1671
1702
|
readonly errored: string;
|
|
1703
|
+
/** The status word of a step whose change the commit action refused. */
|
|
1704
|
+
readonly refused: string;
|
|
1672
1705
|
}
|
|
1706
|
+
/**
|
|
1707
|
+
* The stepper section of a {@link CngxLanguagePack}: the copy of
|
|
1708
|
+
* `@cngx/common/stepper` and of the steppers in `@cngx/ui/stepper` and
|
|
1709
|
+
* `@cngx/ui/mat-stepper`. It feeds `CNGX_STEPPER_I18N` and the copy keys of
|
|
1710
|
+
* `CNGX_STEPPER_CONFIG` (`ariaLabels`, `fallbackLabels`). Messages use
|
|
1711
|
+
* `{name}` placeholders; a plural message picks its form from `{count}`.
|
|
1712
|
+
*
|
|
1713
|
+
* @category common/stepper/i18n
|
|
1714
|
+
* @since 0.1.0
|
|
1715
|
+
* @relatedTo CNGX_STEPPER_I18N, CNGX_STEPPER_CONFIG
|
|
1716
|
+
*/
|
|
1717
|
+
interface CngxStepperLanguageSection {
|
|
1718
|
+
/** Accessible name of the stepper landmark. */
|
|
1719
|
+
readonly stepperRegion: string;
|
|
1720
|
+
/** Last-tier landmark label and role description, used when the config keys are unset. */
|
|
1721
|
+
readonly stepperLabel: string;
|
|
1722
|
+
/** `aria-roledescription` of the stepper organism. */
|
|
1723
|
+
readonly stepRoleDescription: string;
|
|
1724
|
+
/** Role description of compact step indicators (dot stepper, mobile dots). */
|
|
1725
|
+
readonly stepIndicatorRoleDescription: string;
|
|
1726
|
+
/** Role description of a step group header. */
|
|
1727
|
+
readonly groupRoleDescription: string;
|
|
1728
|
+
/** `{label}`, `{position}`, `{count}`: the accessible name of a step. */
|
|
1729
|
+
readonly selectedStep: CngxMessage;
|
|
1730
|
+
/** `{step}`, `{detail}`: a step name followed by its status or its label. */
|
|
1731
|
+
readonly stepWithDetail: CngxMessage;
|
|
1732
|
+
/** Plural on `{count}`: the number of steps with errors. */
|
|
1733
|
+
readonly stepHasErrors: CngxMessage;
|
|
1734
|
+
readonly previousStep: string;
|
|
1735
|
+
readonly nextStep: string;
|
|
1736
|
+
readonly commitFailedRetry: string;
|
|
1737
|
+
/** Announced while a step commit is in flight. */
|
|
1738
|
+
readonly commitInFlight: string;
|
|
1739
|
+
/** `{origin}`: announced when a failed commit reverts to the origin step. */
|
|
1740
|
+
readonly commitRolledBackTo: CngxMessage;
|
|
1741
|
+
/** `{base}`: the description of a rolled-back step, `{base}` being its name. */
|
|
1742
|
+
readonly stepRolledBack: CngxMessage;
|
|
1743
|
+
/** `{origin}`: announced when the commit action refuses a step change. */
|
|
1744
|
+
readonly commitRefused: CngxMessage;
|
|
1745
|
+
/** Announced when the commit action refuses a step change from an unlabelled step. */
|
|
1746
|
+
readonly commitRefusedGeneric: string;
|
|
1747
|
+
/** `{base}`: the description of a step whose change was refused, `{base}` being its name. */
|
|
1748
|
+
readonly stepRefused: CngxMessage;
|
|
1749
|
+
readonly statusLabels: CngxStepperStatusLanguage;
|
|
1750
|
+
/** `{current}`, `{count}`: the short progress caption. */
|
|
1751
|
+
readonly textStepperFormat: CngxMessage;
|
|
1752
|
+
/** Plural on `{count}`: a collapsed group's step count for screen readers. */
|
|
1753
|
+
readonly groupSummaryCount: CngxMessage;
|
|
1754
|
+
/** `{completed}`, plural on `{count}`: a collapsed group's progress for screen readers. */
|
|
1755
|
+
readonly groupSummaryProgress: CngxMessage;
|
|
1756
|
+
/** `{count}`: a collapsed group's visible step count. */
|
|
1757
|
+
readonly groupSummaryCountShort: CngxMessage;
|
|
1758
|
+
/** `{completed}`, `{count}`: a collapsed group's visible progress. */
|
|
1759
|
+
readonly groupSummaryProgressShort: CngxMessage;
|
|
1760
|
+
/** `{id}`: the last-resort label of an unlabelled Material step. */
|
|
1761
|
+
readonly stepFallbackLabel: CngxMessage;
|
|
1762
|
+
}
|
|
1763
|
+
/**
|
|
1764
|
+
* The English stepper section: the single source of the stepper's English
|
|
1765
|
+
* copy. `CNGX_STEPPER_I18N` and the `CNGX_STEPPER_CONFIG` labels default to it.
|
|
1766
|
+
*
|
|
1767
|
+
* @category common/stepper/i18n
|
|
1768
|
+
* @since 0.1.0
|
|
1769
|
+
* @relatedTo CNGX_STEPPER_I18N
|
|
1770
|
+
*/
|
|
1771
|
+
declare const CNGX_STEPPER_LANGUAGE_EN: CngxStepperLanguageSection;
|
|
1772
|
+
declare module '@cngx/core/i18n' {
|
|
1773
|
+
interface CngxLanguagePack {
|
|
1774
|
+
readonly stepper: CngxStepperLanguageSection;
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* Status-pill labels used by the `stripe-status-rich` skin (and any
|
|
1780
|
+
* future skin / variant that surfaces a per-step status pill). Sub-
|
|
1781
|
+
* bundle of {@link CngxStepperI18n}; consumers override partial keys
|
|
1782
|
+
* via {@link withStepperI18nLabels} - un-overridden keys keep their
|
|
1783
|
+
* English defaults. The same shape as the section's status words, declared
|
|
1784
|
+
* once as {@link CngxStepperStatusLanguage}.
|
|
1785
|
+
*
|
|
1786
|
+
* @category common/stepper/i18n
|
|
1787
|
+
*/
|
|
1788
|
+
type CngxStepperStatusLabels = CngxStepperStatusLanguage;
|
|
1673
1789
|
/**
|
|
1674
1790
|
* Stepper i18n surface. Library defaults are English; locales come from
|
|
1675
1791
|
* consumer overrides via {@link provideStepperI18n}. Sibling of
|
|
@@ -1678,6 +1794,14 @@ interface CngxStepperStatusLabels {
|
|
|
1678
1794
|
* @category common/stepper/i18n
|
|
1679
1795
|
*/
|
|
1680
1796
|
interface CngxStepperI18n {
|
|
1797
|
+
/**
|
|
1798
|
+
* Last tier of the landmark `aria-label` and of the organism's
|
|
1799
|
+
* `aria-roledescription`. The label applies only while
|
|
1800
|
+
* `CNGX_STEPPER_CONFIG.ariaLabels.stepperRegion` (default `'Steps'`) is
|
|
1801
|
+
* unset, the role description only while `fallbackLabels.stepRoleDescription`
|
|
1802
|
+
* (default `'stepper'`) is unset. Localise both through
|
|
1803
|
+
* `withStepperAriaLabels(...)` and `withStepperFallbackLabels(...)`.
|
|
1804
|
+
*/
|
|
1681
1805
|
readonly stepperLabel: string;
|
|
1682
1806
|
/**
|
|
1683
1807
|
* Landmark `aria-roledescription` for compact step-indicator
|
|
@@ -1687,9 +1811,15 @@ interface CngxStepperI18n {
|
|
|
1687
1811
|
* @category common/stepper/i18n
|
|
1688
1812
|
*/
|
|
1689
1813
|
readonly stepIndicatorRoleDescription: string;
|
|
1814
|
+
/** `aria-roledescription` of a step group header. English `step group`. */
|
|
1815
|
+
readonly groupRoleDescription: string;
|
|
1690
1816
|
readonly selectedStep: (label: string, position: number, count: number) => string;
|
|
1691
|
-
|
|
1692
|
-
|
|
1817
|
+
/**
|
|
1818
|
+
* A step name followed by a detail - its status (`Step 2 of 3: Shipping:
|
|
1819
|
+
* Errored`) or its label (`Step 2 of 3: Shipping`). One message, so a
|
|
1820
|
+
* locale owns the joiner and the order.
|
|
1821
|
+
*/
|
|
1822
|
+
readonly stepWithDetail: (step: string, detail: string) => string;
|
|
1693
1823
|
readonly stepHasErrors: (count: number) => string;
|
|
1694
1824
|
readonly previousStep: string;
|
|
1695
1825
|
readonly nextStep: string;
|
|
@@ -1710,13 +1840,34 @@ interface CngxStepperI18n {
|
|
|
1710
1840
|
*/
|
|
1711
1841
|
readonly commitRolledBackTo: (originLabel: string) => string;
|
|
1712
1842
|
/**
|
|
1713
|
-
*
|
|
1714
|
-
*
|
|
1715
|
-
*
|
|
1716
|
-
*
|
|
1717
|
-
*
|
|
1843
|
+
* Per-step `aria-describedby` text while `presenter.lastFailedIndex()`
|
|
1844
|
+
* matches the step. Receives the step's base description (e.g.
|
|
1845
|
+
* `Step 2 of 3: Shipping`) and owns the whole sentence, so a locale can
|
|
1846
|
+
* place the rolled-back note before, after or inside it. Distinct from
|
|
1847
|
+
* {@link commitRolledBackTo} (transient live-region phrase) - this text
|
|
1848
|
+
* is reachable when AT users navigate back to the rejected step after
|
|
1849
|
+
* the announcement has faded. Pillar 2.
|
|
1718
1850
|
*/
|
|
1719
|
-
readonly
|
|
1851
|
+
readonly stepRolledBack: (base: string) => string;
|
|
1852
|
+
/**
|
|
1853
|
+
* Origin-aware refusal phrase. Read when the commit action answered
|
|
1854
|
+
* `false` and the origin label resolves. Receives the label of the step
|
|
1855
|
+
* the user stayed on, yields e.g. `Step change not allowed - stayed on
|
|
1856
|
+
* step "Customer".`. A refusal is not a failure, so it never reads the
|
|
1857
|
+
* failure copy ({@link commitRolledBackTo}, {@link commitFailedRetry}).
|
|
1858
|
+
*/
|
|
1859
|
+
readonly commitRefused: (originLabel: string) => string;
|
|
1860
|
+
/**
|
|
1861
|
+
* Refusal phrase for an origin without a label. Twin of
|
|
1862
|
+
* {@link commitFailedRetry} for the refused outcome.
|
|
1863
|
+
*/
|
|
1864
|
+
readonly commitRefusedGeneric: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* Per-step `aria-describedby` text while the step carries the marker
|
|
1867
|
+
* of a refused change. Refused twin of {@link stepRolledBack}; same
|
|
1868
|
+
* `{base}` contract.
|
|
1869
|
+
*/
|
|
1870
|
+
readonly stepRefused: (base: string) => string;
|
|
1720
1871
|
/**
|
|
1721
1872
|
* Per-state pill labels surfaced by the `stripe-status-rich` skin
|
|
1722
1873
|
* (and any future skin / variant that paints a state pill). English
|
|
@@ -1733,6 +1884,21 @@ interface CngxStepperI18n {
|
|
|
1733
1884
|
* @category common/stepper/i18n
|
|
1734
1885
|
*/
|
|
1735
1886
|
readonly textStepperFormat: (current: number, total: number) => string;
|
|
1887
|
+
/** Collapsed-group SR phrase for `groupCollapseSummary: 'count'`. */
|
|
1888
|
+
readonly groupSummaryCount: (total: number) => string;
|
|
1889
|
+
/** Collapsed-group SR phrase for `groupCollapseSummary: 'progress'`. */
|
|
1890
|
+
readonly groupSummaryProgress: (completed: number, total: number) => string;
|
|
1891
|
+
/** Visible collapsed-group badge for `groupCollapseSummary: 'count'`. */
|
|
1892
|
+
readonly groupSummaryCountShort: (total: number) => string;
|
|
1893
|
+
/** Visible collapsed-group badge for `groupCollapseSummary: 'progress'`. */
|
|
1894
|
+
readonly groupSummaryProgressShort: (completed: number, total: number) => string;
|
|
1895
|
+
/**
|
|
1896
|
+
* Last-resort label of a Material `<mat-step>` instrumented by
|
|
1897
|
+
* `[cngxMatStepper]` when it has no `label`, `ariaLabel` or static
|
|
1898
|
+
* `matStepLabel` text. Receives the cngx handle id. English default
|
|
1899
|
+
* `Step <id>`.
|
|
1900
|
+
*/
|
|
1901
|
+
readonly stepFallbackLabel: (id: string) => string;
|
|
1736
1902
|
}
|
|
1737
1903
|
/**
|
|
1738
1904
|
* Partial-override shape for {@link withStepperI18nLabels}. Behaves as
|
|
@@ -1746,15 +1912,19 @@ type CngxStepperI18nOverrides = Omit<Partial<CngxStepperI18n>, 'statusLabels'> &
|
|
|
1746
1912
|
readonly statusLabels?: Partial<CngxStepperStatusLabels>;
|
|
1747
1913
|
};
|
|
1748
1914
|
/**
|
|
1749
|
-
* DI token for the resolved stepper i18n bundle
|
|
1750
|
-
*
|
|
1915
|
+
* DI token for the resolved stepper i18n bundle, as a `Signal` so a
|
|
1916
|
+
* runtime language switch re-renders every label it feeds.
|
|
1917
|
+
* `providedIn: 'root'`: the stepper section of the active language pack over
|
|
1918
|
+
* the English defaults, formatted for the app locale. Provide it through
|
|
1919
|
+
* {@link provideStepperI18n}; a `{ provide, useValue }` entry must supply a
|
|
1920
|
+
* `Signal<CngxStepperI18n>`.
|
|
1751
1921
|
*
|
|
1752
1922
|
* @category common/stepper/i18n
|
|
1753
1923
|
* @wcag AA
|
|
1754
1924
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/i18n/stepper-i18n.ts
|
|
1755
1925
|
* @since 0.1.0
|
|
1756
1926
|
*/
|
|
1757
|
-
declare const CNGX_STEPPER_I18N: InjectionToken<CngxStepperI18n
|
|
1927
|
+
declare const CNGX_STEPPER_I18N: InjectionToken<Signal<CngxStepperI18n>>;
|
|
1758
1928
|
/**
|
|
1759
1929
|
* Feature shape consumed by {@link provideStepperI18n} and {@link provideCngxStepper}.
|
|
1760
1930
|
* Hidden `_target: 'i18n'` discriminator routes through the family aggregator.
|
|
@@ -1762,22 +1932,23 @@ declare const CNGX_STEPPER_I18N: InjectionToken<CngxStepperI18n>;
|
|
|
1762
1932
|
*
|
|
1763
1933
|
* @category common/stepper/i18n
|
|
1764
1934
|
*/
|
|
1765
|
-
type CngxStepperI18nFeature = ((bundle: CngxStepperI18n) => CngxStepperI18n) & {
|
|
1935
|
+
type CngxStepperI18nFeature = ((bundle: Signal<CngxStepperI18n>) => Signal<CngxStepperI18n>) & {
|
|
1766
1936
|
readonly _target: 'i18n';
|
|
1767
1937
|
};
|
|
1768
1938
|
/**
|
|
1769
1939
|
* Override stepper i18n labels. Partial override - unset keys keep
|
|
1770
|
-
* the English default. {@link CngxStepperStatusLabels} is merged
|
|
1940
|
+
* the language pack's copy, or the English default. {@link CngxStepperStatusLabels} is merged
|
|
1771
1941
|
* key-by-key so consumers can override one pill label without
|
|
1772
|
-
* restating the rest.
|
|
1773
|
-
* `withStepperFallbackLabels`.
|
|
1942
|
+
* restating the rest. Pass a `Signal` to switch the language at runtime.
|
|
1943
|
+
* Sibling of `withStepperAriaLabels` / `withStepperFallbackLabels`.
|
|
1774
1944
|
*
|
|
1775
1945
|
* @category common/stepper/i18n
|
|
1776
1946
|
*/
|
|
1777
|
-
declare function withStepperI18nLabels(overrides: CngxStepperI18nOverrides): CngxStepperI18nFeature;
|
|
1947
|
+
declare function withStepperI18nLabels(overrides: CngxStepperI18nOverrides | Signal<CngxStepperI18nOverrides>): CngxStepperI18nFeature;
|
|
1778
1948
|
/**
|
|
1779
1949
|
* Provider for the stepper i18n bundle. Compose `withStepperI18nLabels(...)`
|
|
1780
|
-
* (plus any future i18n `with*`) - unset keys fall back to
|
|
1950
|
+
* (plus any future i18n `with*`) - unset keys fall back to the language
|
|
1951
|
+
* pack, then English. The features apply on top of the active pack.
|
|
1781
1952
|
*
|
|
1782
1953
|
* ```ts
|
|
1783
1954
|
* bootstrapApplication(AppComponent, {
|
|
@@ -1793,11 +1964,13 @@ declare function withStepperI18nLabels(overrides: CngxStepperI18nOverrides): Cng
|
|
|
1793
1964
|
*/
|
|
1794
1965
|
declare function provideStepperI18n(...features: readonly CngxStepperI18nFeature[]): Provider;
|
|
1795
1966
|
/**
|
|
1796
|
-
* Inject the resolved stepper i18n bundle in an injection context.
|
|
1967
|
+
* Inject the resolved stepper i18n bundle in an injection context. Read it
|
|
1968
|
+
* inside a `computed()`, template or handler so a language switch reaches
|
|
1969
|
+
* the label.
|
|
1797
1970
|
*
|
|
1798
1971
|
* @category common/stepper/i18n
|
|
1799
1972
|
*/
|
|
1800
|
-
declare function injectStepperI18n(): CngxStepperI18n
|
|
1973
|
+
declare function injectStepperI18n(): Signal<CngxStepperI18n>;
|
|
1801
1974
|
|
|
1802
1975
|
/**
|
|
1803
1976
|
* Resolve the status-pill label for a step node against the resolved
|
|
@@ -1818,78 +1991,40 @@ declare function injectStepperI18n(): CngxStepperI18n;
|
|
|
1818
1991
|
declare function resolveStepperStatusLabel(node: CngxStepNode, i18n: CngxStepperI18n, isActive: boolean): string;
|
|
1819
1992
|
|
|
1820
1993
|
/**
|
|
1821
|
-
*
|
|
1822
|
-
* window matches a CSS media query (e.g. `(max-width: 480px)`). Used by
|
|
1823
|
-
* `<cngx-stepper>` to drive its mobile auto-collapse template branch.
|
|
1994
|
+
* Reads the stepper's collapse flag off its own container.
|
|
1824
1995
|
*
|
|
1825
|
-
*
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1996
|
+
* The threshold is a `@container` rule in `stepper-base.css` writing
|
|
1997
|
+
* `--cngx-stepper-collapse` onto `.cngx-stepper::after`. It lands on the
|
|
1998
|
+
* pseudo-element because a container query cannot style its own container,
|
|
1999
|
+
* and the query container for a pseudo-element is selected from its
|
|
2000
|
+
* originating element's inclusive ancestors. Nothing here parses a width, so
|
|
2001
|
+
* a consumer re-aims the collapse with a plain CSS rule.
|
|
1828
2002
|
*
|
|
1829
|
-
*
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
/**
|
|
1833
|
-
* Resolves the active stepper display mode by combining a viewport
|
|
1834
|
-
* media-query with the configured `mobileCollapse` policy.
|
|
1835
|
-
* `'classic'` keeps the full strip; `'text'` / `'dots'` swap to the
|
|
1836
|
-
* matching compact variant.
|
|
2003
|
+
* Requires an injection context - it observes through `injectContainerSize`,
|
|
2004
|
+
* so the observer is scoped to the caller's `DestroyRef`. A field initialiser
|
|
2005
|
+
* on the stepper component is one; a bare call from a lifecycle hook is not.
|
|
1837
2006
|
*
|
|
2007
|
+
* @param host The `<cngx-stepper>` host element, which is its own container.
|
|
1838
2008
|
* @category common/stepper
|
|
2009
|
+
* @relatedTo createStepperDisplayMode, injectContainerSize
|
|
1839
2010
|
*/
|
|
1840
|
-
declare function
|
|
1841
|
-
|
|
2011
|
+
declare function injectStepperCollapse(host: Element): Signal<boolean>;
|
|
1842
2012
|
/**
|
|
1843
|
-
*
|
|
1844
|
-
*
|
|
1845
|
-
* `'
|
|
1846
|
-
*
|
|
2013
|
+
* Resolves the active stepper display mode by combining the collapse *signal*
|
|
2014
|
+
* - whether the stepper's own container is narrow - with the configured
|
|
2015
|
+
* `mobileCollapse` policy. `'classic'` keeps the full strip; `'text'` /
|
|
2016
|
+
* `'dots'` swap to the matching compact variant, `'off'` stays classic at any
|
|
2017
|
+
* width.
|
|
1847
2018
|
*
|
|
1848
|
-
*
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
/**
|
|
1852
|
-
* Options for {@link createStripDensity}.
|
|
1853
|
-
*
|
|
1854
|
-
* @internal
|
|
1855
|
-
*/
|
|
1856
|
-
interface CngxStripDensityOptions {
|
|
1857
|
-
/** Strip container element whose width drives the density rung. */
|
|
1858
|
-
readonly element: HTMLElement;
|
|
1859
|
-
/** Current step-only count - the width budget is split across these. */
|
|
1860
|
-
readonly stepCount: () => number;
|
|
1861
|
-
/**
|
|
1862
|
-
* Resolved density policy. Only `'auto'` degrades; `'comfortable'`
|
|
1863
|
-
* (or `undefined`) short-circuits to `'full'`, preserving today's
|
|
1864
|
-
* behaviour.
|
|
1865
|
-
*/
|
|
1866
|
-
readonly density: () => 'comfortable' | 'auto' | undefined;
|
|
1867
|
-
/**
|
|
1868
|
-
* Per-step width thresholds in px. At or above `compact` px per step
|
|
1869
|
-
* the strip stays `'full'`; at or above `minimal` it is `'compact'`;
|
|
1870
|
-
* below `minimal` it is `'minimal'`. `compact` must exceed `minimal`.
|
|
1871
|
-
*/
|
|
1872
|
-
readonly breakpoints: () => {
|
|
1873
|
-
readonly compact: number;
|
|
1874
|
-
readonly minimal: number;
|
|
1875
|
-
};
|
|
1876
|
-
readonly destroyRef: DestroyRef;
|
|
1877
|
-
}
|
|
1878
|
-
/**
|
|
1879
|
-
* Resolves the classic strip's density rung from its own container
|
|
1880
|
-
* width against the step count and two per-step px thresholds. Pure
|
|
1881
|
-
* `create*` factory, sibling to `createStepperDisplayMode` - it owns a
|
|
1882
|
-
* `ResizeObserver` the way the display-mode factory owns a
|
|
1883
|
-
* `matchMedia` listener, and returns a single derived `Signal`.
|
|
1884
|
-
*
|
|
1885
|
-
* `'comfortable'` density short-circuits to `'full'` (no measurement
|
|
1886
|
-
* dependency). Before the first measurement (`width === 0`) and for an
|
|
1887
|
-
* empty strip the rung is `'full'`, so the strip never flashes
|
|
1888
|
-
* `'minimal'` on mount.
|
|
2019
|
+
* The factory takes no DOM API and holds no threshold: *where* the collapse
|
|
2020
|
+
* happens is a `@container` rule in the stepper stylesheet, *what* it collapses
|
|
2021
|
+
* into is this policy. See `core-concepts/responsive-by-default.md`.
|
|
1889
2022
|
*
|
|
2023
|
+
* @param collapsed `true` while the container sits below the collapse rung.
|
|
2024
|
+
* @param mobileCollapse The configured collapse policy, read lazily.
|
|
1890
2025
|
* @category common/stepper
|
|
1891
2026
|
*/
|
|
1892
|
-
declare function
|
|
2027
|
+
declare function createStepperDisplayMode(collapsed: Signal<boolean>, mobileCollapse: () => CngxStepperMobileCollapse | undefined): Signal<'classic' | 'text' | 'dots'>;
|
|
1893
2028
|
|
|
1894
2029
|
/**
|
|
1895
2030
|
* Collapsed-group summary view consumed by `<cngx-stepper>`. Resolves
|
|
@@ -1919,13 +2054,15 @@ interface CngxStepperGroupSummaryOptions {
|
|
|
1919
2054
|
readonly summaryMode: () => CngxStepperGroupSummary | undefined;
|
|
1920
2055
|
/** Whether a given group node is currently collapsed. */
|
|
1921
2056
|
readonly isCollapsed: (node: CngxStepNode) => boolean;
|
|
2057
|
+
/** Resolved i18n bundle Signal for the SR phrases. */
|
|
2058
|
+
readonly i18n: Signal<Pick<CngxStepperI18n, 'groupSummaryCount' | 'groupSummaryProgress' | 'groupSummaryCountShort' | 'groupSummaryProgressShort'>>;
|
|
1922
2059
|
}
|
|
1923
2060
|
/**
|
|
1924
2061
|
* Builds the collapsed-group summary view. Level-2 helper so the
|
|
1925
2062
|
* organism stays a thin renderer. `status` mode defers its SR phrasing
|
|
1926
2063
|
* to the group's existing status-phrase span, so {@link srText} returns
|
|
1927
|
-
* `null` there.
|
|
1928
|
-
*
|
|
2064
|
+
* `null` there. SR phrases resolve through the `CngxStepperI18n` bundle
|
|
2065
|
+
* when passed; English defaults otherwise.
|
|
1929
2066
|
*
|
|
1930
2067
|
* @category common/stepper
|
|
1931
2068
|
*/
|
|
@@ -2032,6 +2169,29 @@ interface CngxStepperHostAttrs {
|
|
|
2032
2169
|
* @internal
|
|
2033
2170
|
*/
|
|
2034
2171
|
declare function createStepperHostAttrs(inputs: CngxStepperHostAttrsInputs): CngxStepperHostAttrs;
|
|
2172
|
+
/**
|
|
2173
|
+
* Input bundle for {@link createStepperAccname}: the two per-instance
|
|
2174
|
+
* accname inputs plus the resolved config and the i18n bundle Signal.
|
|
2175
|
+
*
|
|
2176
|
+
* @internal
|
|
2177
|
+
*/
|
|
2178
|
+
interface CngxStepperAccnameInputs {
|
|
2179
|
+
readonly ariaLabel: Signal<string | undefined>;
|
|
2180
|
+
readonly ariaLabelledBy: Signal<string | undefined>;
|
|
2181
|
+
readonly config: CngxStepperConfig;
|
|
2182
|
+
readonly i18n: Signal<CngxStepperI18n>;
|
|
2183
|
+
}
|
|
2184
|
+
/**
|
|
2185
|
+
* Shared `aria-label` cascade for every stepper organism host
|
|
2186
|
+
* (`<cngx-stepper>` and the compact variants): a bound
|
|
2187
|
+
* `aria-labelledby` trumps and nulls the label out; otherwise the
|
|
2188
|
+
* per-instance input wins over `ariaLabels.stepperRegion` wins over
|
|
2189
|
+
* `i18n.stepperLabel`. One source so the variants cannot drift from
|
|
2190
|
+
* the parent's naming behaviour.
|
|
2191
|
+
*
|
|
2192
|
+
* @internal
|
|
2193
|
+
*/
|
|
2194
|
+
declare function createStepperAccname(inputs: CngxStepperAccnameInputs): Signal<string | null>;
|
|
2035
2195
|
|
|
2036
2196
|
/**
|
|
2037
2197
|
* Options for {@link createStepperStripKeyboardNav}.
|
|
@@ -2048,8 +2208,6 @@ interface CngxStepperStripKeyboardNavOptions {
|
|
|
2048
2208
|
* under `rtl` (APG); the vertical strip and Home/End stay invariant.
|
|
2049
2209
|
*/
|
|
2050
2210
|
readonly direction: Signal<CngxDirection>;
|
|
2051
|
-
/** Returns the current flat-step count so `End` lands on the last step. */
|
|
2052
|
-
readonly flatStepCount: () => number;
|
|
2053
2211
|
/**
|
|
2054
2212
|
* Maps a CngxStepNode id to its DOM button id (e.g. `${id}-header`).
|
|
2055
2213
|
* The strip selects by stable DOM id rather than waiting for the
|
|
@@ -2121,10 +2279,17 @@ interface CngxStepperStateView {
|
|
|
2121
2279
|
readonly isBusy: (node: CngxStepNode) => boolean;
|
|
2122
2280
|
/**
|
|
2123
2281
|
* `true` when this step is the one a commit just rejected
|
|
2124
|
-
* (`flatIndex === lastFailedIndex`)
|
|
2125
|
-
* pessimistic / optimistic flows hit.
|
|
2282
|
+
* (`flatIndex === lastFailedIndex`), refused or failed alike. The
|
|
2283
|
+
* commit-rejection marker your pessimistic / optimistic flows hit.
|
|
2126
2284
|
*/
|
|
2127
2285
|
readonly isRejected: (node: CngxStepNode) => boolean;
|
|
2286
|
+
/**
|
|
2287
|
+
* `true` when this step carries the rejection marker AND the commit
|
|
2288
|
+
* action refused it (`lastOutcome().kind === 'refused'`). A refusal is
|
|
2289
|
+
* not an error: it marks the step but never sets `aria-invalid` or
|
|
2290
|
+
* counts towards {@link errorCount}.
|
|
2291
|
+
*/
|
|
2292
|
+
readonly isRefused: (node: CngxStepNode) => boolean;
|
|
2128
2293
|
/**
|
|
2129
2294
|
* Badge-level error: per-step `state === 'error'` OR the bound error
|
|
2130
2295
|
* aggregator's `shouldShow()`. Deliberately excludes commit rejection -
|
|
@@ -2133,11 +2298,24 @@ interface CngxStepperStateView {
|
|
|
2133
2298
|
*/
|
|
2134
2299
|
readonly hasErrorBadge: (node: CngxStepNode) => boolean;
|
|
2135
2300
|
/**
|
|
2136
|
-
*
|
|
2137
|
-
*
|
|
2138
|
-
*
|
|
2139
|
-
|
|
2140
|
-
|
|
2301
|
+
* Why the step carries a commit-rejection marker, for the `data-reason`
|
|
2302
|
+
* styling hook: `'refused'` or `'failed'` while {@link isRejected} holds,
|
|
2303
|
+
* `null` otherwise. Independent of a validation error on the same step.
|
|
2304
|
+
*/
|
|
2305
|
+
readonly rejectionReason: (node: CngxStepNode) => 'refused' | 'failed' | null;
|
|
2306
|
+
/**
|
|
2307
|
+
* Visual marker predicate - the hook the minimal skins (dot / text /
|
|
2308
|
+
* progress-bar) and the mobile dots paint (`data-state="error"`,
|
|
2309
|
+
* `--error`). `true` when {@link hasErrorBadge} fires OR the step carries
|
|
2310
|
+
* a commit rejection of either kind ({@link isRejected}). Those skins have
|
|
2311
|
+
* no separate rejection slot, so every marker shares one visual state.
|
|
2312
|
+
*/
|
|
2313
|
+
readonly hasErrorMarker: (node: CngxStepNode) => boolean;
|
|
2314
|
+
/**
|
|
2315
|
+
* Semantic error predicate - what `aria-invalid`, the errored status word
|
|
2316
|
+
* and {@link errorCount} read. `true` when {@link hasErrorBadge} fires OR
|
|
2317
|
+
* a commit failed on this step. A refused step is marked
|
|
2318
|
+
* ({@link hasErrorMarker}) but not in error.
|
|
2141
2319
|
*/
|
|
2142
2320
|
readonly hasError: (node: CngxStepNode) => boolean;
|
|
2143
2321
|
/** Count of step-only nodes where {@link hasError} is `true`. */
|
|
@@ -2146,6 +2324,21 @@ interface CngxStepperStateView {
|
|
|
2146
2324
|
readonly firstErrorIndex: Signal<number>;
|
|
2147
2325
|
/** `true` when `errorCount() > 0`. Drives skin-level `aria-invalid`. */
|
|
2148
2326
|
readonly hasAnyError: Signal<boolean>;
|
|
2327
|
+
/** Count of step-only nodes where {@link hasErrorMarker} is `true`. */
|
|
2328
|
+
readonly errorMarkerCount: Signal<number>;
|
|
2329
|
+
/** Flat index of the first marked step, or `-1` when none. */
|
|
2330
|
+
readonly firstErrorMarkerIndex: Signal<number>;
|
|
2331
|
+
/**
|
|
2332
|
+
* `true` when `errorMarkerCount() > 0`. Drives skin-level visual hooks
|
|
2333
|
+
* (`data-state="error"`); `aria-invalid` stays on {@link hasAnyError}.
|
|
2334
|
+
*/
|
|
2335
|
+
readonly hasAnyErrorMarker: Signal<boolean>;
|
|
2336
|
+
/**
|
|
2337
|
+
* `true` when steps are marked but none is in error: every marker is a
|
|
2338
|
+
* refused commit. Drives the refused tone of skin-level hooks (the
|
|
2339
|
+
* aggregate error line, the progress bar) that stand for all steps.
|
|
2340
|
+
*/
|
|
2341
|
+
readonly refusalOnly: Signal<boolean>;
|
|
2149
2342
|
}
|
|
2150
2343
|
/**
|
|
2151
2344
|
* Build the shared {@link CngxStepperStateView} over a presenter host and its
|
|
@@ -2162,25 +2355,34 @@ declare function createStepperStateView(inputs: {
|
|
|
2162
2355
|
}): CngxStepperStateView;
|
|
2163
2356
|
/**
|
|
2164
2357
|
* Aggregate error phrase shared by the minimal skins (text / progress-bar)
|
|
2165
|
-
* and the classic mobile-collapse text branch.
|
|
2166
|
-
*
|
|
2167
|
-
*
|
|
2168
|
-
*
|
|
2358
|
+
* and the classic mobile-collapse text branch. Walks the marked steps
|
|
2359
|
+
* ({@link CngxStepperStateView.hasErrorMarker}). A single marked step names
|
|
2360
|
+
* itself with the word of its kind: `"Payment: Errored"` (or the custom
|
|
2361
|
+
* reason) for an error, `"Payment: Not allowed"` for a refused step change;
|
|
2362
|
+
* several failed steps collapse to the i18n count phrase (`"2 errors"`),
|
|
2363
|
+
* which never counts a refusal. Returns `''`
|
|
2364
|
+
* when no step is marked, so the error line stays quiet.
|
|
2169
2365
|
*
|
|
2170
2366
|
* The optional `messageOf` resolver lets callers surface a per-step
|
|
2171
2367
|
* reason (a direct `[error]` string or the first aggregator label) in the
|
|
2172
|
-
* single-error case instead of the generic `errored` status word.
|
|
2368
|
+
* single-error case instead of the generic `errored` status word. The
|
|
2369
|
+
* reason is still prefixed with the step label (`"Payment: Card declined"`),
|
|
2370
|
+
* because the summary line stays visible while another step is active and
|
|
2371
|
+
* a bare reason would read as belonging to the active step. When
|
|
2173
2372
|
* omitted - or when it returns `undefined`/`''` - the helper produces
|
|
2174
2373
|
* byte-identical output to the no-resolver form, so existing callers
|
|
2175
2374
|
* (the classic mobile-collapse summary) are a guaranteed no-op.
|
|
2176
2375
|
*
|
|
2177
2376
|
* Pure helper - reads signals at call time, intended to be wrapped in the
|
|
2178
|
-
* caller's `computed()`.
|
|
2377
|
+
* caller's `computed()`. The phrase feeds live regions, so the step label
|
|
2378
|
+
* is read untracked: a label that follows a language switch must not
|
|
2379
|
+
* re-announce the line. Pass the i18n bundle as an untracked snapshot for
|
|
2380
|
+
* the same reason.
|
|
2179
2381
|
*
|
|
2180
2382
|
* @category common/stepper
|
|
2181
2383
|
* @since 0.1.0
|
|
2182
2384
|
*/
|
|
2183
|
-
declare function resolveStepperErrorSummary(view: Pick<CngxStepperStateView, 'errorCount' | 'firstErrorIndex'>, stepsOnly: Signal<readonly CngxStepNode[]>, i18n: CngxStepperI18n, messageOf?: (node: CngxStepNode) => string | undefined): string;
|
|
2385
|
+
declare function resolveStepperErrorSummary(view: Pick<CngxStepperStateView, 'errorMarkerCount' | 'firstErrorMarkerIndex' | 'errorCount' | 'firstErrorIndex' | 'isRefused' | 'hasErrorBadge'>, stepsOnly: Signal<readonly CngxStepNode[]>, i18n: CngxStepperI18n, messageOf?: (node: CngxStepNode) => string | undefined): string;
|
|
2184
2386
|
|
|
2185
2387
|
/**
|
|
2186
2388
|
* Input bundle for {@link createStepperSlotContextBuilders}: the presenter
|
|
@@ -2192,8 +2394,14 @@ declare function resolveStepperErrorSummary(view: Pick<CngxStepperStateView, 'er
|
|
|
2192
2394
|
interface CngxStepperSlotContextBuildersInputs {
|
|
2193
2395
|
readonly presenter: CngxStepperHost;
|
|
2194
2396
|
readonly stepsOnly: Signal<readonly CngxStepNode[]>;
|
|
2195
|
-
/**
|
|
2196
|
-
|
|
2397
|
+
/**
|
|
2398
|
+
* Whether a group node is currently collapsed (focus-driven collapse
|
|
2399
|
+
* policy). Optional so header contexts of collapse-free steppers keep
|
|
2400
|
+
* reporting `expanded: true` without the caller wiring a predicate.
|
|
2401
|
+
*/
|
|
2402
|
+
readonly isGroupCollapsed?: (node: CngxStepNode) => boolean;
|
|
2403
|
+
/** i18n bundle Signal - supplies the `errored` status label as the message fallback. */
|
|
2404
|
+
readonly i18n: Signal<CngxStepperI18n>;
|
|
2197
2405
|
}
|
|
2198
2406
|
/**
|
|
2199
2407
|
* Per-step status / activity / rejection / labelling derivations shared by
|
|
@@ -2217,6 +2425,8 @@ interface CngxStepperSlotContextBuilders {
|
|
|
2217
2425
|
readonly groupHeaderContextFor: (node: CngxStepNode) => CngxStepGroupHeaderContext;
|
|
2218
2426
|
readonly stepLabelContextFor: (node: CngxStepNode) => CngxStepLabelContext;
|
|
2219
2427
|
readonly stepContentContextFor: (node: CngxStepNode) => CngxStepContentContext;
|
|
2428
|
+
/** Context of the `*cngxDotStepperDot` body in the dots mobile-collapse branch. */
|
|
2429
|
+
readonly dotContextFor: (node: CngxStepNode) => CngxDotStepperDotContext;
|
|
2220
2430
|
}
|
|
2221
2431
|
/**
|
|
2222
2432
|
* Bundle the `*ContextFor` slot-context builders plus the small
|
|
@@ -2231,14 +2441,14 @@ declare function createStepperSlotContextBuilders(inputs: CngxStepperSlotContext
|
|
|
2231
2441
|
/**
|
|
2232
2442
|
* Input bundle for {@link createStepperAnnouncementBuilders}. The presenter
|
|
2233
2443
|
* surface (commit transition + failed-index signals), the step-only flat
|
|
2234
|
-
* projection, and the resolved i18n
|
|
2444
|
+
* projection, and the resolved i18n bundle Signal.
|
|
2235
2445
|
*
|
|
2236
2446
|
* @internal
|
|
2237
2447
|
*/
|
|
2238
2448
|
interface CngxStepperAnnouncementBuildersInputs {
|
|
2239
2449
|
readonly presenter: CngxStepperHost;
|
|
2240
2450
|
readonly stepsOnly: Signal<readonly CngxStepNode[]>;
|
|
2241
|
-
readonly i18n: CngxStepperI18n
|
|
2451
|
+
readonly i18n: Signal<CngxStepperI18n>;
|
|
2242
2452
|
}
|
|
2243
2453
|
/**
|
|
2244
2454
|
* Reactive SR-announcement surface for the stepper organism: the
|
|
@@ -2253,23 +2463,33 @@ interface CngxStepperAnnouncementBuilders {
|
|
|
2253
2463
|
/**
|
|
2254
2464
|
* Live-region content driven by the commit transition tracker.
|
|
2255
2465
|
* Empty string between transitions keeps the region quiet on no-op
|
|
2256
|
-
* CD ticks.
|
|
2257
|
-
*
|
|
2258
|
-
*
|
|
2466
|
+
* CD ticks. A refusal speaks `commitRefused(originLabel)` (or
|
|
2467
|
+
* `commitRefusedGeneric` without a label) once and holds it until the
|
|
2468
|
+
* next commit, step move or reset. Error-arm priority:
|
|
2469
|
+
* `commitRolledBackTo(originLabel)` when both `lastFailedIndex` and a
|
|
2470
|
+
* resolvable origin label exist; otherwise `commitFailedRetry`.
|
|
2259
2471
|
*/
|
|
2260
2472
|
readonly liveAnnouncement: Signal<string>;
|
|
2261
2473
|
/**
|
|
2262
2474
|
* SR descriptor phrase. Aggregator-announced or "Step N of M: <label>";
|
|
2263
|
-
*
|
|
2475
|
+
* routes a refused row through `stepRefused(base)` and a failed row
|
|
2476
|
+
* through `stepRolledBack(base)`.
|
|
2264
2477
|
*/
|
|
2265
2478
|
readonly statusPhrase: (node: CngxStepNode) => string;
|
|
2479
|
+
/**
|
|
2480
|
+
* Step-header descriptor: `statusPhrase` plus the done / errored status
|
|
2481
|
+
* the stepper skins draw as a CSS glyph, joined through `stepWithDetail`.
|
|
2482
|
+
* The glyphs carry `/ ''` alt text, so this text is where their meaning
|
|
2483
|
+
* reaches a screen reader.
|
|
2484
|
+
*/
|
|
2485
|
+
readonly headerStatusPhrase: (node: CngxStepNode) => string;
|
|
2266
2486
|
/** Group descriptor - rolls up children's aggregated status. */
|
|
2267
2487
|
readonly groupStatusPhrase: (node: CngxStepNode) => string;
|
|
2268
2488
|
/** Stable descriptor-span id for a node (`<node-id>-desc`). */
|
|
2269
2489
|
readonly descriptorId: (node: CngxStepNode) => string;
|
|
2270
2490
|
/**
|
|
2271
2491
|
* `aria-describedby` value for a node: `descriptorId(node)` while the
|
|
2272
|
-
* node's phrase (`
|
|
2492
|
+
* node's phrase (`headerStatusPhrase` for steps, `groupStatusPhrase` for
|
|
2273
2493
|
* groups) is non-empty, else `null`. The descriptor span stays in the
|
|
2274
2494
|
* DOM; only the reference is gated - accname 1.2 §2A traverses a
|
|
2275
2495
|
* directly-referenced node even when it is empty or hidden.
|
|
@@ -2284,6 +2504,45 @@ interface CngxStepperAnnouncementBuilders {
|
|
|
2284
2504
|
* @internal
|
|
2285
2505
|
*/
|
|
2286
2506
|
declare function createStepperAnnouncementBuilders(inputs: CngxStepperAnnouncementBuildersInputs): CngxStepperAnnouncementBuilders;
|
|
2507
|
+
/**
|
|
2508
|
+
* Input bundle for {@link createStepperPanelRefs}: the resolved display
|
|
2509
|
+
* mode, the strip projection that decides which headers exist, and the
|
|
2510
|
+
* organism's id/describedby schemes.
|
|
2511
|
+
*
|
|
2512
|
+
* @internal
|
|
2513
|
+
*/
|
|
2514
|
+
interface CngxStepperPanelRefsInputs {
|
|
2515
|
+
readonly displayMode: Signal<'classic' | 'text' | 'dots'>;
|
|
2516
|
+
readonly visibleStripNodes: Signal<readonly CngxStepNode[]>;
|
|
2517
|
+
readonly headerIdFor: (node: CngxStepNode) => string;
|
|
2518
|
+
readonly describedByFor: (node: CngxStepNode) => string | null;
|
|
2519
|
+
}
|
|
2520
|
+
/**
|
|
2521
|
+
* Per-mode panel naming surface for `<cngx-stepper>`'s region panels.
|
|
2522
|
+
*
|
|
2523
|
+
* @internal
|
|
2524
|
+
*/
|
|
2525
|
+
interface CngxStepperPanelRefs {
|
|
2526
|
+
/** Header id when a header element is rendered for the node, else `null`. */
|
|
2527
|
+
readonly labelledBy: (node: CngxStepNode) => string | null;
|
|
2528
|
+
/** Self-naming fallback whenever {@link labelledBy} emits no id. */
|
|
2529
|
+
readonly ariaLabel: (node: CngxStepNode) => string | null;
|
|
2530
|
+
/** Gated describedby - suppressed when the descriptor span is header-hosted and the header is not rendered. */
|
|
2531
|
+
readonly describedBy: (node: CngxStepNode) => string | null;
|
|
2532
|
+
}
|
|
2533
|
+
/**
|
|
2534
|
+
* Build the mode-aware panel ref surface. The dots branch always
|
|
2535
|
+
* renders one dot per step; the classic strip only renders headers the
|
|
2536
|
+
* group-collapse policy exposes; the text branch has no header element
|
|
2537
|
+
* at all. A panel must never reference an id that is not in the DOM -
|
|
2538
|
+
* a dangling IDREF names the region as empty - so header-less panels
|
|
2539
|
+
* self-name via `aria-label` and drop the describedby reference (the
|
|
2540
|
+
* classic descriptor spans live inside the strip headers; the
|
|
2541
|
+
* collapsed branches mount theirs inside the panel).
|
|
2542
|
+
*
|
|
2543
|
+
* @internal
|
|
2544
|
+
*/
|
|
2545
|
+
declare function createStepperPanelRefs(inputs: CngxStepperPanelRefsInputs): CngxStepperPanelRefs;
|
|
2287
2546
|
|
|
2288
2547
|
/**
|
|
2289
2548
|
* Routes a `CngxSwipe` gesture into the stepper presenter so the
|
|
@@ -2296,10 +2555,10 @@ declare function createStepperAnnouncementBuilders(inputs: CngxStepperAnnounceme
|
|
|
2296
2555
|
* `CNGX_STEPPER_CONFIG.mobileSwipe` -> library default `true`.
|
|
2297
2556
|
*
|
|
2298
2557
|
* Direction routing is asymmetric, matching the presenter's existing
|
|
2299
|
-
* navigation surface: `left`
|
|
2300
|
-
*
|
|
2301
|
-
*
|
|
2302
|
-
*
|
|
2558
|
+
* navigation surface: the forward swipe (`left` under `ltr`, `right`
|
|
2559
|
+
* under `rtl`) -> `selectNext()` -> `select()` (linear gate + commit
|
|
2560
|
+
* window apply identically to a click); the back swipe ->
|
|
2561
|
+
* `selectPrevious()`, gated on `busy()` like the strip back-arrow.
|
|
2303
2562
|
*
|
|
2304
2563
|
* @category common/stepper
|
|
2305
2564
|
* @docsKind primary
|
|
@@ -2315,12 +2574,16 @@ declare class CngxStepperSwipeNav {
|
|
|
2315
2574
|
readonly mobileSwipe: i0.InputSignal<boolean | undefined>;
|
|
2316
2575
|
private readonly host;
|
|
2317
2576
|
private readonly config;
|
|
2577
|
+
private readonly direction;
|
|
2318
2578
|
/** Resolved enabled flag (Input -> config -> default(true)). Boolean output, no `equal` fn required. */
|
|
2319
2579
|
readonly swipeEnabled: i0.Signal<boolean>;
|
|
2320
2580
|
/**
|
|
2321
|
-
* Route a swipe direction into the presenter.
|
|
2322
|
-
*
|
|
2323
|
-
*
|
|
2581
|
+
* Route a swipe direction into the presenter. The inline mapping
|
|
2582
|
+
* resolves against the document direction like the keyboard path:
|
|
2583
|
+
* under `ltr` a left swipe advances; under `rtl` the roles flip.
|
|
2584
|
+
* Vertical directions are ignored. The back path waits while a
|
|
2585
|
+
* commit is in flight - a stray gesture must not supersede it (the
|
|
2586
|
+
* programmatic `selectPrevious()` cancels deliberately).
|
|
2324
2587
|
*/
|
|
2325
2588
|
handleSwipe(direction: SwipeDirection): void;
|
|
2326
2589
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperSwipeNav, never>;
|
|
@@ -2374,7 +2637,11 @@ interface CngxStepperCountHost {
|
|
|
2374
2637
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-count/multi-instance-format-overrides</example-url>
|
|
2375
2638
|
*/
|
|
2376
2639
|
declare class CngxStepperCount {
|
|
2377
|
-
/**
|
|
2640
|
+
/**
|
|
2641
|
+
* When `true`, wraps the rendered string in an `aria-live="polite"` span.
|
|
2642
|
+
* Set it once per instance: toggling it swaps the span, and the region
|
|
2643
|
+
* content present at that moment is not announced.
|
|
2644
|
+
*/
|
|
2378
2645
|
readonly live: i0.InputSignal<boolean>;
|
|
2379
2646
|
/**
|
|
2380
2647
|
* Per-instance format override. Receives `(current, total)` where
|
|
@@ -2397,8 +2664,16 @@ declare class CngxStepperCount {
|
|
|
2397
2664
|
private readonly injectedHost;
|
|
2398
2665
|
private readonly i18n;
|
|
2399
2666
|
private readonly resolvedHost;
|
|
2667
|
+
/** 1-based active position and step total, or `null` while there is nothing to count. */
|
|
2668
|
+
private readonly position;
|
|
2400
2669
|
/** Resolved caption - reactive on activeStepIndex / stepsOnly / format / i18n. */
|
|
2401
2670
|
protected readonly label: Signal<string>;
|
|
2671
|
+
/**
|
|
2672
|
+
* {@link label} for the live span: the bundle and a consumer `format`
|
|
2673
|
+
* (which may itself be language-dependent) are read untracked.
|
|
2674
|
+
*/
|
|
2675
|
+
protected readonly liveLabel: Signal<string>;
|
|
2676
|
+
constructor();
|
|
2402
2677
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperCount, never>;
|
|
2403
2678
|
static ɵcmp: i0.ɵɵComponentDeclaration<CngxStepperCount, "cngx-stepper-count", never, { "live": { "alias": "live"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "host": { "alias": "host"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2404
2679
|
}
|
|
@@ -2441,6 +2716,8 @@ declare class CngxStepperPrevious {
|
|
|
2441
2716
|
private readonly injectedHost;
|
|
2442
2717
|
private readonly resolvedHost;
|
|
2443
2718
|
private readonly coPlacedAsyncClick;
|
|
2719
|
+
private readonly elementRef;
|
|
2720
|
+
private readonly i18n;
|
|
2444
2721
|
constructor();
|
|
2445
2722
|
/** `true` when retreat is unavailable: no earlier step or commit busy. */
|
|
2446
2723
|
protected readonly disabled: Signal<boolean>;
|
|
@@ -2492,6 +2769,8 @@ declare class CngxStepperNext {
|
|
|
2492
2769
|
private readonly injectedHost;
|
|
2493
2770
|
private readonly resolvedHost;
|
|
2494
2771
|
private readonly coPlacedAsyncClick;
|
|
2772
|
+
private readonly elementRef;
|
|
2773
|
+
private readonly i18n;
|
|
2495
2774
|
/** `true` when advancing is unavailable: no enabled next step or commit busy. */
|
|
2496
2775
|
protected readonly disabled: Signal<boolean>;
|
|
2497
2776
|
constructor();
|
|
@@ -2576,6 +2855,14 @@ declare class CngxStepperComplete {
|
|
|
2576
2855
|
*/
|
|
2577
2856
|
declare function createStepperHostProxy(supplier: () => CngxStepperHost | null): CngxStepperHost;
|
|
2578
2857
|
|
|
2858
|
+
/**
|
|
2859
|
+
* How a commit-gated step change settled. `'refused'` is a `false` answer
|
|
2860
|
+
* from `commitAction` (the action declined on purpose, nothing failed);
|
|
2861
|
+
* `'failed'` is a throw, a rejected promise or an erroring observable.
|
|
2862
|
+
*
|
|
2863
|
+
* @category common/stepper
|
|
2864
|
+
*/
|
|
2865
|
+
type CngxStepperCommitResolution = 'accepted' | 'refused' | 'failed';
|
|
2579
2866
|
/**
|
|
2580
2867
|
* Adapter between the lifted commit-controller and the stepper's
|
|
2581
2868
|
* action shape. The presenter delegates to `beginTransition` on
|
|
@@ -2588,10 +2875,11 @@ interface CngxStepperCommitHandler {
|
|
|
2588
2875
|
* Start a transition commit. Returns synchronously; the controller's
|
|
2589
2876
|
* `state` signal reports the in-flight status.
|
|
2590
2877
|
*
|
|
2591
|
-
* @param onResolve fires `
|
|
2592
|
-
*
|
|
2878
|
+
* @param onResolve fires `'accepted'` when the action answers `true`,
|
|
2879
|
+
* `'refused'` when it answers `false`, `'failed'` when
|
|
2880
|
+
* it throws, rejects or errors; skipped on supersede.
|
|
2593
2881
|
*/
|
|
2594
|
-
beginTransition(fromIndex: number, toIndex: number, action: CngxStepperCommitAction, onResolve: (
|
|
2882
|
+
beginTransition(fromIndex: number, toIndex: number, action: CngxStepperCommitAction, onResolve: (outcome: CngxStepperCommitResolution) => void): void;
|
|
2595
2883
|
/** Cancel the in-flight transition without firing callbacks. */
|
|
2596
2884
|
cancel(): void;
|
|
2597
2885
|
/** Live `pending` flag from the controller. */
|
|
@@ -2608,7 +2896,8 @@ interface CngxStepperCommitHandlerOptions {
|
|
|
2608
2896
|
/**
|
|
2609
2897
|
* Build a stepper commit handler over an existing {@link CngxCommitController}.
|
|
2610
2898
|
* Resolves `Observable<boolean>` / `Promise<boolean>` / `boolean` returns into
|
|
2611
|
-
*
|
|
2899
|
+
* one {@link CngxStepperCommitResolution}: `true` accepts, `false` refuses
|
|
2900
|
+
* (the controller settles to `'idle'` and stores no error), a throw fails.
|
|
2612
2901
|
*
|
|
2613
2902
|
* @category common/stepper
|
|
2614
2903
|
*/
|
|
@@ -2687,5 +2976,5 @@ declare function provideCngxStepper(...features: readonly CngxStepperFeature[]):
|
|
|
2687
2976
|
*/
|
|
2688
2977
|
declare function provideCngxStepperAt(...features: readonly CngxStepperFeature[]): Provider[];
|
|
2689
2978
|
|
|
2690
|
-
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,
|
|
2691
|
-
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, CngxStepperDensity,
|
|
2979
|
+
export { CNGX_STEPPER_COMMIT_HANDLER_FACTORY, CNGX_STEPPER_CONFIG, CNGX_STEPPER_GLYPHS, CNGX_STEPPER_HOST, CNGX_STEPPER_I18N, CNGX_STEPPER_LANGUAGE_EN, CNGX_STEP_GROUP_HOST, CNGX_STEP_PANEL_HOST, CngxDotStepperDot, CngxStep, CngxStepBadge, CngxStepBusySpinner, CngxStepContent, CngxStepError, CngxStepGroup, CngxStepGroupHeader, CngxStepIndicator, CngxStepLabel, CngxStepRejection, CngxStepperComplete, CngxStepperCount, CngxStepperEmpty, CngxStepperNext, CngxStepperPresenter, CngxStepperPrevious, CngxStepperRouterSync, CngxStepperSwipeNav, createStepperAccname, createStepperAnnouncementBuilders, createStepperCommitHandler, createStepperDisplayMode, createStepperGroupNavigation, createStepperGroupSummary, createStepperHostAttrs, createStepperHostProxy, createStepperPanelRefs, createStepperSlotContextBuilders, createStepperStateView, createStepperStripKeyboardNav, createStepperTemplateBindings, flatStepsEqual, injectStepperCollapse, injectStepperConfig, injectStepperI18n, provideCngxStepper, provideCngxStepperAt, provideStepperConfig, provideStepperConfigAt, provideStepperI18n, resolveStepperErrorSummary, resolveStepperStatusLabel, withDotStepperDotTemplate, withStepBadgeTemplate, withStepBusySpinnerTemplate, withStepErrorTemplate, withStepGroupHeaderTemplate, withStepIndicatorTemplate, withStepRejectionTemplate, withStepperAriaLabels, withStepperCommitMode, withStepperConnectors, withStepperDefaultOrientation, withStepperDensity, withStepperEmptyTemplate, withStepperFallbackLabels, withStepperGroupCollapse, withStepperGroupCollapseSummary, withStepperHeaderNavigation, withStepperI18nLabels, withStepperLinear, withStepperMobileCollapse, withStepperMobileIndicatorPosition, withStepperMobileSwipe, withStepperRouterSync, withStepperSkin };
|
|
2980
|
+
export type { CngxDotStepperDotContext, CngxStepBadgeContext, CngxStepBusySpinnerContext, CngxStepContentContext, CngxStepErrorContext, CngxStepGroupHeaderContext, CngxStepGroupHost, CngxStepIndicatorContext, CngxStepLabelContext, CngxStepNode, CngxStepPanelHost, CngxStepRegistration, CngxStepRejectionContext, CngxStepStatus, CngxStepperAccnameInputs, CngxStepperAnnouncementBuilders, CngxStepperAnnouncementBuildersInputs, CngxStepperAriaLabels, CngxStepperCommitAction, CngxStepperCommitHandler, CngxStepperCommitHandlerFactory, CngxStepperCommitHandlerOptions, CngxStepperCommitResolution, CngxStepperConfig, CngxStepperConfigFeature, CngxStepperCountHost, CngxStepperDensity, CngxStepperFallbackLabels, CngxStepperFeature, CngxStepperGroupCollapse, CngxStepperGroupNavigationOptions, CngxStepperGroupNavigationView, CngxStepperGroupSummary, CngxStepperGroupSummaryOptions, CngxStepperGroupSummaryView, CngxStepperHeaderNavigation, CngxStepperHost, CngxStepperHostAttrs, CngxStepperHostAttrsInputs, CngxStepperI18n, CngxStepperI18nFeature, CngxStepperI18nOverrides, CngxStepperLanguageSection, CngxStepperMobileCollapse, CngxStepperMobileIndicatorPosition, CngxStepperPanelRefs, CngxStepperPanelRefsInputs, CngxStepperSkin, CngxStepperSlotContextBuilders, CngxStepperSlotContextBuildersInputs, CngxStepperStateView, CngxStepperStatusLabels, CngxStepperStatusLanguage, CngxStepperStripKeyboardNavOptions, CngxStepperTemplateBindings, CngxStepperTemplateBindingsOptions, CngxStepperTemplates };
|