@cngx/common 0.1.0-rc.6 → 0.1.0-rc.8
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/chart/README.md +85 -0
- package/command/README.md +157 -0
- package/data/README.md +33 -1
- package/dialog/README.md +23 -1
- package/fesm2022/cngx-common-a11y.mjs +356 -180
- package/fesm2022/cngx-common-a11y.mjs.map +1 -1
- package/fesm2022/cngx-common-audio.mjs +84 -42
- package/fesm2022/cngx-common-audio.mjs.map +1 -1
- package/fesm2022/cngx-common-card.mjs +311 -53
- package/fesm2022/cngx-common-card.mjs.map +1 -1
- package/fesm2022/cngx-common-chart.mjs +4360 -1625
- package/fesm2022/cngx-common-chart.mjs.map +1 -1
- package/fesm2022/cngx-common-command.mjs +171 -0
- package/fesm2022/cngx-common-command.mjs.map +1 -0
- package/fesm2022/cngx-common-data.mjs +1556 -616
- package/fesm2022/cngx-common-data.mjs.map +1 -1
- package/fesm2022/cngx-common-dialog.mjs +518 -112
- package/fesm2022/cngx-common-dialog.mjs.map +1 -1
- package/fesm2022/cngx-common-display.mjs +468 -87
- package/fesm2022/cngx-common-display.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +2725 -1303
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common-layout.mjs +943 -164
- package/fesm2022/cngx-common-layout.mjs.map +1 -1
- package/fesm2022/cngx-common-popover.mjs +769 -103
- package/fesm2022/cngx-common-popover.mjs.map +1 -1
- package/fesm2022/cngx-common-stepper.mjs +816 -348
- package/fesm2022/cngx-common-stepper.mjs.map +1 -1
- package/fesm2022/cngx-common-tabs.mjs +2330 -1554
- package/fesm2022/cngx-common-tabs.mjs.map +1 -1
- package/fesm2022/cngx-common-timeline.mjs +1170 -0
- package/fesm2022/cngx-common-timeline.mjs.map +1 -0
- package/fesm2022/cngx-common.mjs +2 -2
- package/fesm2022/cngx-common.mjs.map +1 -1
- package/interactive/README.md +15 -4
- package/layout/README.md +21 -1
- package/package.json +11 -1
- package/popover/README.md +18 -2
- package/stepper/README.md +7 -5
- package/theming/components/cngx-accordion.css +4 -1
- package/theming/components/cngx-backdrop.css +12 -0
- package/theming/components/cngx-badge.css +22 -0
- package/theming/components/cngx-bottom-sheet.css +14 -2
- package/theming/components/cngx-breadcrumb.css +8 -0
- package/theming/components/cngx-button-toggle.css +73 -5
- package/theming/components/cngx-data-grid.css +234 -1
- package/theming/components/cngx-dialog.css +25 -0
- package/theming/components/cngx-divider.css +12 -0
- package/theming/components/cngx-listbox.css +48 -12
- package/theming/components/cngx-menu.css +91 -15
- package/theming/components/cngx-popover.css +24 -0
- package/theming/components/cngx-recycler-placeholder.css +196 -0
- package/theming/components/cngx-ripple.css +2 -2
- package/theming/components/cngx-slider.css +32 -1
- package/theming/components/cngx-tooltip.css +23 -0
- package/timeline/README.md +155 -0
- package/types/cngx-common-a11y.d.ts +101 -31
- package/types/cngx-common-audio.d.ts +32 -32
- package/types/cngx-common-card.d.ts +211 -20
- package/types/cngx-common-chart.d.ts +1605 -169
- package/types/cngx-common-command.d.ts +190 -0
- package/types/cngx-common-data.d.ts +842 -163
- package/types/cngx-common-dialog.d.ts +372 -28
- package/types/cngx-common-display.d.ts +432 -148
- package/types/cngx-common-interactive.d.ts +1553 -370
- package/types/cngx-common-layout.d.ts +613 -27
- package/types/cngx-common-popover.d.ts +376 -36
- package/types/cngx-common-stepper.d.ts +414 -114
- package/types/cngx-common-tabs.d.ts +597 -72
- package/types/cngx-common-timeline.d.ts +1125 -0
- package/types/cngx-common.d.ts +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Signal, InjectionToken, TemplateRef, EnvironmentProviders, Provider, DestroyRef, Injector } from '@angular/core';
|
|
2
|
+
import { Signal, InjectionToken, TemplateRef, OnInit, EnvironmentProviders, Provider, AfterContentInit, DestroyRef, Injector } from '@angular/core';
|
|
3
3
|
import { CngxAsyncState, StatusTransition } from '@cngx/core/utils';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i1 from '@cngx/common/interactive';
|
|
6
6
|
import { CngxErrorAggregatorContract, SwipeDirection } from '@cngx/common/interactive';
|
|
7
|
+
import { CngxMessage } from '@cngx/core/i18n';
|
|
8
|
+
import { CngxDirection } from '@cngx/core';
|
|
7
9
|
import { CngxCommitController } from '@cngx/common/data';
|
|
8
10
|
|
|
9
11
|
/**
|
|
@@ -154,6 +156,17 @@ interface CngxStepperHost {
|
|
|
154
156
|
readonly previousStepLabel: Signal<string | undefined>;
|
|
155
157
|
readonly linear: Signal<boolean>;
|
|
156
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'>;
|
|
157
170
|
readonly commitState: CngxAsyncState<number | undefined>;
|
|
158
171
|
readonly intendedStepIndex: Signal<number | undefined>;
|
|
159
172
|
/**
|
|
@@ -198,7 +211,13 @@ interface CngxStepperHost {
|
|
|
198
211
|
*/
|
|
199
212
|
clearLastFailed(): void;
|
|
200
213
|
register(handle: CngxStepRegistration, parentId?: string | null): void;
|
|
201
|
-
|
|
214
|
+
/**
|
|
215
|
+
* Remove a registration. Pass the registering `handle` so a destroyed
|
|
216
|
+
* instance can only evict itself: under an id collision the presenter's
|
|
217
|
+
* idempotent re-register replaces the stored handle, and the OLD
|
|
218
|
+
* instance's late destroy must not tear down the NEW instance's entry.
|
|
219
|
+
*/
|
|
220
|
+
unregister(id: string, handle?: CngxStepRegistration): void;
|
|
202
221
|
}
|
|
203
222
|
/**
|
|
204
223
|
* DI token carrying the presenter's contract to atoms + organism shells.
|
|
@@ -271,6 +290,7 @@ declare class CngxStepperPresenter implements CngxStepperHost {
|
|
|
271
290
|
*/
|
|
272
291
|
readonly commitTransition: StatusTransition;
|
|
273
292
|
private readonly lastFailedIndexState;
|
|
293
|
+
private lastCommittedIndex;
|
|
274
294
|
private readonly originIndexDuringCommitState;
|
|
275
295
|
/** {@inheritDoc CngxStepperHost.lastFailedIndex} */
|
|
276
296
|
readonly lastFailedIndex: Signal<number | undefined>;
|
|
@@ -323,7 +343,9 @@ declare class CngxStepperPresenter implements CngxStepperHost {
|
|
|
323
343
|
private readonly nextEnabledIndex;
|
|
324
344
|
/**
|
|
325
345
|
* Previous enabled step-only index before the active one, skipping
|
|
326
|
-
* disabled steps. Returns `-1` when no enabled step precedes
|
|
346
|
+
* disabled steps. Returns `-1` when no enabled step precedes - also for
|
|
347
|
+
* a stale out-of-range active index (consumer-writable model), which
|
|
348
|
+
* must resolve to "none" instead of wrapping or throwing. Single
|
|
327
349
|
* source for `selectPrevious()` and the `canGoPrevious` bound.
|
|
328
350
|
*/
|
|
329
351
|
private readonly previousEnabledIndex;
|
|
@@ -353,7 +375,7 @@ declare class CngxStepperPresenter implements CngxStepperHost {
|
|
|
353
375
|
private readonly registry;
|
|
354
376
|
private readonly insertionOrder;
|
|
355
377
|
register(handle: CngxStepRegistration, parentId?: string | null): void;
|
|
356
|
-
unregister(id: string): void;
|
|
378
|
+
unregister(id: string, handle?: CngxStepRegistration): void;
|
|
357
379
|
private rebuildTree;
|
|
358
380
|
/** {@inheritDoc CngxStepperHost.clearLastFailed} */
|
|
359
381
|
clearLastFailed(): void;
|
|
@@ -377,9 +399,23 @@ declare class CngxStepperPresenter implements CngxStepperHost {
|
|
|
377
399
|
canNavigateTo(index: number): boolean;
|
|
378
400
|
select(index: number): void;
|
|
379
401
|
selectNext(): void;
|
|
402
|
+
/**
|
|
403
|
+
* Ungated back-move. Supersedes an in-flight commit: the runner is
|
|
404
|
+
* canceled and the commit state settles to idle, so `busy` cannot
|
|
405
|
+
* latch and a late resolve cannot yank the user forward off the step
|
|
406
|
+
* they explicitly returned to.
|
|
407
|
+
*/
|
|
380
408
|
selectPrevious(): void;
|
|
381
409
|
selectById(id: string): void;
|
|
382
410
|
reset(): void;
|
|
411
|
+
/**
|
|
412
|
+
* Cancels the in-flight commit and settles the state to idle. The
|
|
413
|
+
* settle option is load-bearing here - a custom
|
|
414
|
+
* `CNGX_COMMIT_CONTROLLER_FACTORY` implementation that ignores it
|
|
415
|
+
* leaves `busy` latched, which is invisible until a user backs out
|
|
416
|
+
* mid-commit; the dev-mode probe surfaces that immediately.
|
|
417
|
+
*/
|
|
418
|
+
private cancelAndSettleCommit;
|
|
383
419
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperPresenter, never>;
|
|
384
420
|
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>;
|
|
385
421
|
}
|
|
@@ -396,7 +432,8 @@ declare class CngxStepperPresenter implements CngxStepperHost {
|
|
|
396
432
|
*/
|
|
397
433
|
interface CngxStepGroupHost {
|
|
398
434
|
register(handle: CngxStepRegistration): void;
|
|
399
|
-
unregister
|
|
435
|
+
/** Instance-guarded like `CngxStepperHost.unregister` - see there. */
|
|
436
|
+
unregister(id: string, handle?: CngxStepRegistration): void;
|
|
400
437
|
}
|
|
401
438
|
/**
|
|
402
439
|
* DI token providing a `CngxStepGroup`'s contract to nested `CngxStep` atoms.
|
|
@@ -472,8 +509,7 @@ declare const CNGX_STEP_PANEL_HOST: InjectionToken<CngxStepPanelHost>;
|
|
|
472
509
|
* a sibling is inserted) on top of the {@link stepTreeEqual} fields.
|
|
473
510
|
*
|
|
474
511
|
* Use only on projections where every step carries a real
|
|
475
|
-
* DFS-assigned `flatIndex` and `depth
|
|
476
|
-
* {@link stepNodesEqual}.
|
|
512
|
+
* DFS-assigned `flatIndex` and `depth`.
|
|
477
513
|
*
|
|
478
514
|
* @internal Exported from `public-api.ts` so the cngx-stepper and
|
|
479
515
|
* cngx-mat-stepper organisms share the comparator across the
|
|
@@ -538,7 +574,7 @@ declare class CngxStepLabel {
|
|
|
538
574
|
* `CngxStepGroup` ({@link CNGX_STEP_GROUP_HOST}) or the root
|
|
539
575
|
* `CngxStepperPresenter` ({@link CNGX_STEPPER_HOST}).
|
|
540
576
|
*
|
|
541
|
-
* `state` is a `
|
|
577
|
+
* `state` is a pure `computed` over `[disabled]`, `[completed]`, and
|
|
542
578
|
* the optional `[errorAggregator]`'s `hasError()`.
|
|
543
579
|
*
|
|
544
580
|
* @category common/stepper
|
|
@@ -547,9 +583,11 @@ declare class CngxStepLabel {
|
|
|
547
583
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/step.directive.ts
|
|
548
584
|
* @since 0.1.0
|
|
549
585
|
* @relatedTo CngxStepGroup, CngxStepperPresenter, CngxStepLabel, CngxStepContent
|
|
586
|
+
* @slot cngxStepLabel The step's own header label.
|
|
587
|
+
* @slot cngxStepContent The step body, rendered lazily when the step activates.
|
|
550
588
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-step-content/typed-lazy-panels</example-url>
|
|
551
589
|
*/
|
|
552
|
-
declare class CngxStep {
|
|
590
|
+
declare class CngxStep implements OnInit {
|
|
553
591
|
readonly id: i0.InputSignal<string>;
|
|
554
592
|
readonly disabled: i0.InputSignal<boolean>;
|
|
555
593
|
readonly completed: i0.InputSignal<boolean>;
|
|
@@ -575,12 +613,13 @@ declare class CngxStep {
|
|
|
575
613
|
protected readonly contentSlot: Signal<CngxStepContent | undefined>;
|
|
576
614
|
readonly labelTemplate: Signal<CngxStepLabel | undefined>;
|
|
577
615
|
readonly contentTemplate: Signal<CngxStepContent | undefined>;
|
|
578
|
-
/**
|
|
579
|
-
* Per-step status derived from inputs + aggregator. `linkedSignal`
|
|
580
|
-
* with structural equal - never written via `effect`.
|
|
581
|
-
*/
|
|
616
|
+
/** Per-step status derived from inputs + aggregator - never written. */
|
|
582
617
|
readonly state: Signal<CngxStepStatus>;
|
|
618
|
+
private readonly groupHost;
|
|
619
|
+
private readonly stepperHost;
|
|
620
|
+
private readonly destroyRef;
|
|
583
621
|
constructor();
|
|
622
|
+
ngOnInit(): void;
|
|
584
623
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStep, never>;
|
|
585
624
|
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>;
|
|
586
625
|
}
|
|
@@ -604,7 +643,7 @@ declare class CngxStep {
|
|
|
604
643
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-hierarchical/expand-active-group-collapse</example-url>
|
|
605
644
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-hierarchical/group-collapse-summary-count</example-url>
|
|
606
645
|
*/
|
|
607
|
-
declare class CngxStepGroup implements CngxStepGroupHost {
|
|
646
|
+
declare class CngxStepGroup implements CngxStepGroupHost, OnInit {
|
|
608
647
|
readonly id: i0.InputSignal<string>;
|
|
609
648
|
readonly disabled: i0.InputSignal<boolean>;
|
|
610
649
|
readonly label: i0.InputSignal<string>;
|
|
@@ -612,6 +651,8 @@ declare class CngxStepGroup implements CngxStepGroupHost {
|
|
|
612
651
|
private readonly childRegistry;
|
|
613
652
|
readonly aggregatedStatus: Signal<CngxStepStatus>;
|
|
614
653
|
private readonly stepperHost;
|
|
654
|
+
private readonly parentGroupHost;
|
|
655
|
+
private readonly destroyRef;
|
|
615
656
|
/**
|
|
616
657
|
* `true` when this group's children are collapsed to the header node:
|
|
617
658
|
* the focus-driven policy is `'expand-active'`, this group does not
|
|
@@ -627,8 +668,9 @@ declare class CngxStepGroup implements CngxStepGroupHost {
|
|
|
627
668
|
*/
|
|
628
669
|
readonly isCollapsed: Signal<boolean>;
|
|
629
670
|
constructor();
|
|
671
|
+
ngOnInit(): void;
|
|
630
672
|
register(handle: CngxStepRegistration): void;
|
|
631
|
-
unregister(id: string): void;
|
|
673
|
+
unregister(id: string, handle?: CngxStepRegistration): void;
|
|
632
674
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepGroup, never>;
|
|
633
675
|
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>;
|
|
634
676
|
}
|
|
@@ -1075,10 +1117,14 @@ interface CngxStepperTemplates {
|
|
|
1075
1117
|
*/
|
|
1076
1118
|
type CngxStepperSkin = 'classic' | 'linear-minimal' | 'stripe-status-rich' | 'path-chevron' | 'pill-segment' | 'chips' | 'breadcrumb';
|
|
1077
1119
|
/**
|
|
1078
|
-
* Mobile auto-collapse target.
|
|
1079
|
-
*
|
|
1080
|
-
*
|
|
1081
|
-
*
|
|
1120
|
+
* Mobile auto-collapse target. Below `30rem` of the stepper's own
|
|
1121
|
+
* container width, `<cngx-stepper>` falls back to one of the compact
|
|
1122
|
+
* variants instead of rendering the full strip. Set to `'off'` to retain
|
|
1123
|
+
* the classic strip at every width.
|
|
1124
|
+
*
|
|
1125
|
+
* The width itself is not configurable - it is a `@container` rule in
|
|
1126
|
+
* `stepper-base.css`, overridable in consumer CSS. This setting picks
|
|
1127
|
+
* *what* the strip collapses into, not *where*.
|
|
1082
1128
|
*
|
|
1083
1129
|
* @category common/stepper
|
|
1084
1130
|
*/
|
|
@@ -1151,15 +1197,6 @@ interface CngxStepperDensityBreakpoints {
|
|
|
1151
1197
|
* @category common/stepper
|
|
1152
1198
|
*/
|
|
1153
1199
|
type CngxStepperMobileIndicatorPosition = 'top' | 'bottom';
|
|
1154
|
-
/**
|
|
1155
|
-
* Default media query the mobile auto-collapse policy reacts to. The
|
|
1156
|
-
* literal lives on a single exported const so the runtime, the config
|
|
1157
|
-
* default, and any JSDoc cross-references stay in lockstep. Consumers
|
|
1158
|
-
* override the query via {@link withStepperMobileBreakpoint}.
|
|
1159
|
-
*
|
|
1160
|
-
* @category common/stepper
|
|
1161
|
-
*/
|
|
1162
|
-
declare const STEPPER_DEFAULT_MOBILE_BREAKPOINT = "(max-width: 480px)";
|
|
1163
1200
|
/**
|
|
1164
1201
|
* Default per-step px thresholds for the `density: 'auto'` ladder. The
|
|
1165
1202
|
* literal lives on a single exported const so the runtime resolver, the
|
|
@@ -1227,12 +1264,6 @@ interface CngxStepperConfig {
|
|
|
1227
1264
|
*/
|
|
1228
1265
|
readonly connectors?: boolean;
|
|
1229
1266
|
readonly mobileCollapse?: CngxStepperMobileCollapse;
|
|
1230
|
-
/**
|
|
1231
|
-
* Media query the mobile auto-collapse policy reacts to. Default
|
|
1232
|
-
* {@link STEPPER_DEFAULT_MOBILE_BREAKPOINT}. Tablet consumers can
|
|
1233
|
-
* re-aim the trigger via {@link withStepperMobileBreakpoint}.
|
|
1234
|
-
*/
|
|
1235
|
-
readonly mobileBreakpoint?: string;
|
|
1236
1267
|
/**
|
|
1237
1268
|
* Where the mobile auto-collapse indicator sits relative to the
|
|
1238
1269
|
* panel content. Default `'top'`. Override per-instance via the
|
|
@@ -1248,8 +1279,10 @@ interface CngxStepperConfig {
|
|
|
1248
1279
|
* classic strip and on the Material twin (`<cngx-mat-stepper>`).
|
|
1249
1280
|
*/
|
|
1250
1281
|
readonly mobileSwipe?: boolean;
|
|
1251
|
-
|
|
1252
|
-
readonly
|
|
1282
|
+
/** Landmark labels; a `Signal` switches the language at runtime. */
|
|
1283
|
+
readonly ariaLabels?: CngxStepperAriaLabels | Signal<CngxStepperAriaLabels>;
|
|
1284
|
+
/** Role descriptions; a `Signal` switches the language at runtime. */
|
|
1285
|
+
readonly fallbackLabels?: CngxStepperFallbackLabels | Signal<CngxStepperFallbackLabels>;
|
|
1253
1286
|
readonly templates?: CngxStepperTemplates;
|
|
1254
1287
|
}
|
|
1255
1288
|
/**
|
|
@@ -1327,24 +1360,16 @@ declare function withStepperSkin(skin: CngxStepperSkin): CngxStepperConfigFeatur
|
|
|
1327
1360
|
*/
|
|
1328
1361
|
declare function withStepperConnectors(on: boolean): CngxStepperConfigFeature;
|
|
1329
1362
|
/**
|
|
1330
|
-
* Configure the mobile auto-collapse target for `<cngx-stepper>`.
|
|
1331
|
-
*
|
|
1332
|
-
* the chosen variant - `'text'` (default) renders
|
|
1333
|
-
* `'dots'` renders `<cngx-dot-stepper>`, `'off'`
|
|
1334
|
-
* strip. The Material twin `<cngx-mat-stepper>` ignores
|
|
1363
|
+
* Configure the mobile auto-collapse target for `<cngx-stepper>`. Below
|
|
1364
|
+
* `30rem` of the stepper's own container width, the classic strip swaps
|
|
1365
|
+
* to the chosen variant - `'text'` (default) renders
|
|
1366
|
+
* `<cngx-text-stepper>`, `'dots'` renders `<cngx-dot-stepper>`, `'off'`
|
|
1367
|
+
* keeps the classic strip. The Material twin `<cngx-mat-stepper>` ignores
|
|
1368
|
+
* this setting.
|
|
1335
1369
|
*
|
|
1336
1370
|
* @category common/stepper
|
|
1337
1371
|
*/
|
|
1338
1372
|
declare function withStepperMobileCollapse(mode: CngxStepperMobileCollapse): CngxStepperConfigFeature;
|
|
1339
|
-
/**
|
|
1340
|
-
* Override the media query the mobile auto-collapse policy reacts to.
|
|
1341
|
-
* Default `'(max-width: 480px)'`. Useful for tablet-tier consumers
|
|
1342
|
-
* who want the collapse to engage at 768px or for design systems
|
|
1343
|
-
* aligned with `--mat-sys-breakpoint-*` tokens.
|
|
1344
|
-
*
|
|
1345
|
-
* @category common/stepper
|
|
1346
|
-
*/
|
|
1347
|
-
declare function withStepperMobileBreakpoint(query: string): CngxStepperConfigFeature;
|
|
1348
1373
|
/**
|
|
1349
1374
|
* Set the app-wide default position of the mobile auto-collapse
|
|
1350
1375
|
* indicator relative to panel content. `'top'` keeps the indicator
|
|
@@ -1411,17 +1436,20 @@ declare function withStepperDensity(mode: CngxStepperDensity, breakpoints?: Cngx
|
|
|
1411
1436
|
/**
|
|
1412
1437
|
* Merge ARIA labels into the cascade. Keys not provided keep their
|
|
1413
1438
|
* library defaults; per-instance overrides on the stepper still win.
|
|
1439
|
+
* Pass a `Signal` to switch the language at runtime.
|
|
1414
1440
|
*
|
|
1415
1441
|
* @category common/stepper
|
|
1416
1442
|
*/
|
|
1417
|
-
declare function withStepperAriaLabels(labels: CngxStepperAriaLabels): CngxStepperConfigFeature;
|
|
1443
|
+
declare function withStepperAriaLabels(labels: CngxStepperAriaLabels | Signal<CngxStepperAriaLabels>): CngxStepperConfigFeature;
|
|
1418
1444
|
/**
|
|
1419
|
-
* Merge
|
|
1420
|
-
*
|
|
1445
|
+
* Merge fallback role descriptions (`groupRoleDescription` /
|
|
1446
|
+
* `stepRoleDescription`) into the cascade. These feed the strip's
|
|
1447
|
+
* `aria-roledescription` attributes when the consumer supplies none.
|
|
1448
|
+
* Pass a `Signal` to switch the language at runtime.
|
|
1421
1449
|
*
|
|
1422
1450
|
* @category common/stepper
|
|
1423
1451
|
*/
|
|
1424
|
-
declare function withStepperFallbackLabels(labels: CngxStepperFallbackLabels): CngxStepperConfigFeature;
|
|
1452
|
+
declare function withStepperFallbackLabels(labels: CngxStepperFallbackLabels | Signal<CngxStepperFallbackLabels>): CngxStepperConfigFeature;
|
|
1425
1453
|
/**
|
|
1426
1454
|
* Override the default `*cngxStepIndicator` template app-wide.
|
|
1427
1455
|
* Per-instance directive still wins; this only moves the cascade
|
|
@@ -1605,7 +1633,7 @@ declare const CNGX_STEPPER_GLYPHS: {
|
|
|
1605
1633
|
* @relatedTo CngxStepperPresenter, CNGX_STEPPER_CONFIG
|
|
1606
1634
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-router-sync/deep-linking-with-fragment-queryparam-modes</example-url>
|
|
1607
1635
|
*/
|
|
1608
|
-
declare class CngxStepperRouterSync {
|
|
1636
|
+
declare class CngxStepperRouterSync implements AfterContentInit {
|
|
1609
1637
|
readonly modeInput: i0.InputSignal<"fragment" | "queryParam" | undefined>;
|
|
1610
1638
|
readonly paramNameInput: i0.InputSignal<string | undefined>;
|
|
1611
1639
|
private readonly config;
|
|
@@ -1615,27 +1643,134 @@ declare class CngxStepperRouterSync {
|
|
|
1615
1643
|
readonly syncError: i0.OutputEmitterRef<unknown>;
|
|
1616
1644
|
private readonly host;
|
|
1617
1645
|
private readonly router;
|
|
1646
|
+
/**
|
|
1647
|
+
* Latched once the URL seed has reached a registered step, so the
|
|
1648
|
+
* `afterNextRender` fallback cannot run it twice.
|
|
1649
|
+
*
|
|
1650
|
+
* The latch is load-bearing, not decorative: the seed goes through
|
|
1651
|
+
* `selectById` → `select()`, which opens a commit window. Under a
|
|
1652
|
+
* pessimistic commit `activeStepIndex` still holds the *previous* index
|
|
1653
|
+
* while the action is in flight, so the presenter's `target === previous`
|
|
1654
|
+
* bail does not catch the repeat - an unlatched fallback would fire the
|
|
1655
|
+
* consumer's commit-action a second time and supersede the first.
|
|
1656
|
+
*/
|
|
1657
|
+
private seeded;
|
|
1618
1658
|
constructor();
|
|
1659
|
+
/**
|
|
1660
|
+
* Seed from the URL before the stepper renders its panels. `CngxStep`
|
|
1661
|
+
* registers in `ngOnInit` (so a bound `[id]` reaches the registry), which
|
|
1662
|
+
* runs before the host's `ngAfterContentInit` - the registry is populated
|
|
1663
|
+
* by the time this runs, and the host view has not rendered yet, which is
|
|
1664
|
+
* what keeps a `panelMode="lazy"` default step from counting its first
|
|
1665
|
+
* render as a first activation on a deep link that named another step.
|
|
1666
|
+
*
|
|
1667
|
+
* Own router guard: the constructor's early return does not stop
|
|
1668
|
+
* lifecycle hooks from running.
|
|
1669
|
+
*/
|
|
1670
|
+
ngAfterContentInit(): void;
|
|
1671
|
+
private seedFromUrl;
|
|
1672
|
+
/**
|
|
1673
|
+
* Reflect `id` into the URL. Fragment mode re-serializes the existing
|
|
1674
|
+
* fragment params so foreign state (`#foo=1&step=x`) survives the
|
|
1675
|
+
* write; values are URI-encoded symmetric to {@link parseFragment}.
|
|
1676
|
+
*/
|
|
1677
|
+
private writeUrl;
|
|
1678
|
+
private serializeFragment;
|
|
1679
|
+
private readUrlValue;
|
|
1619
1680
|
private parseFragment;
|
|
1620
1681
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperRouterSync, never>;
|
|
1621
1682
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxStepperRouterSync, "[cngxStepperRouterSync]", ["cngxStepperRouterSync"], { "modeInput": { "alias": "mode"; "required": false; "isSignal": true; }; "paramNameInput": { "alias": "paramName"; "required": false; "isSignal": true; }; }, { "syncError": "syncError"; }, never, never, true, never>;
|
|
1622
1683
|
}
|
|
1623
1684
|
|
|
1624
1685
|
/**
|
|
1625
|
-
*
|
|
1626
|
-
* future skin / variant that surfaces a per-step status pill). Sub-
|
|
1627
|
-
* bundle of {@link CngxStepperI18n}; consumers override partial keys
|
|
1628
|
-
* via {@link withStepperI18nLabels} - un-overridden keys keep their
|
|
1629
|
-
* English defaults.
|
|
1686
|
+
* The status-pill words of the stepper section.
|
|
1630
1687
|
*
|
|
1631
1688
|
* @category common/stepper/i18n
|
|
1689
|
+
* @since 0.1.0
|
|
1632
1690
|
*/
|
|
1633
|
-
interface
|
|
1691
|
+
interface CngxStepperStatusLanguage {
|
|
1634
1692
|
readonly done: string;
|
|
1635
1693
|
readonly inProgress: string;
|
|
1636
1694
|
readonly upNext: string;
|
|
1637
1695
|
readonly errored: string;
|
|
1638
1696
|
}
|
|
1697
|
+
/**
|
|
1698
|
+
* The stepper section of a {@link CngxLanguagePack}: the copy of
|
|
1699
|
+
* `@cngx/common/stepper` and of the steppers in `@cngx/ui/stepper` and
|
|
1700
|
+
* `@cngx/ui/mat-stepper`. It feeds `CNGX_STEPPER_I18N` and the copy keys of
|
|
1701
|
+
* `CNGX_STEPPER_CONFIG` (`ariaLabels`, `fallbackLabels`). Messages use
|
|
1702
|
+
* `{name}` placeholders; a plural message picks its form from `{count}`.
|
|
1703
|
+
*
|
|
1704
|
+
* @category common/stepper/i18n
|
|
1705
|
+
* @since 0.1.0
|
|
1706
|
+
* @relatedTo CNGX_STEPPER_I18N, CNGX_STEPPER_CONFIG
|
|
1707
|
+
*/
|
|
1708
|
+
interface CngxStepperLanguageSection {
|
|
1709
|
+
/** Accessible name of the stepper landmark. */
|
|
1710
|
+
readonly stepperRegion: string;
|
|
1711
|
+
/** Last-tier landmark label and role description, used when the config keys are unset. */
|
|
1712
|
+
readonly stepperLabel: string;
|
|
1713
|
+
/** `aria-roledescription` of the stepper organism. */
|
|
1714
|
+
readonly stepRoleDescription: string;
|
|
1715
|
+
/** Role description of compact step indicators (dot stepper, mobile dots). */
|
|
1716
|
+
readonly stepIndicatorRoleDescription: string;
|
|
1717
|
+
/** Role description of a step group header. */
|
|
1718
|
+
readonly groupRoleDescription: string;
|
|
1719
|
+
/** `{label}`, `{position}`, `{count}`: the accessible name of a step. */
|
|
1720
|
+
readonly selectedStep: CngxMessage;
|
|
1721
|
+
/** `{step}`, `{detail}`: a step name followed by its status or its label. */
|
|
1722
|
+
readonly stepWithDetail: CngxMessage;
|
|
1723
|
+
/** Plural on `{count}`: the number of steps with errors. */
|
|
1724
|
+
readonly stepHasErrors: CngxMessage;
|
|
1725
|
+
readonly previousStep: string;
|
|
1726
|
+
readonly nextStep: string;
|
|
1727
|
+
readonly commitFailedRetry: string;
|
|
1728
|
+
/** Announced while a step commit is in flight. */
|
|
1729
|
+
readonly commitInFlight: string;
|
|
1730
|
+
/** `{origin}`: announced when a failed commit reverts to the origin step. */
|
|
1731
|
+
readonly commitRolledBackTo: CngxMessage;
|
|
1732
|
+
/** `{base}`: the description of a rolled-back step, `{base}` being its name. */
|
|
1733
|
+
readonly stepRolledBack: CngxMessage;
|
|
1734
|
+
readonly statusLabels: CngxStepperStatusLanguage;
|
|
1735
|
+
/** `{current}`, `{count}`: the short progress caption. */
|
|
1736
|
+
readonly textStepperFormat: CngxMessage;
|
|
1737
|
+
/** Plural on `{count}`: a collapsed group's step count for screen readers. */
|
|
1738
|
+
readonly groupSummaryCount: CngxMessage;
|
|
1739
|
+
/** `{completed}`, plural on `{count}`: a collapsed group's progress for screen readers. */
|
|
1740
|
+
readonly groupSummaryProgress: CngxMessage;
|
|
1741
|
+
/** `{count}`: a collapsed group's visible step count. */
|
|
1742
|
+
readonly groupSummaryCountShort: CngxMessage;
|
|
1743
|
+
/** `{completed}`, `{count}`: a collapsed group's visible progress. */
|
|
1744
|
+
readonly groupSummaryProgressShort: CngxMessage;
|
|
1745
|
+
/** `{id}`: the last-resort label of an unlabelled Material step. */
|
|
1746
|
+
readonly stepFallbackLabel: CngxMessage;
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* The English stepper section: the single source of the stepper's English
|
|
1750
|
+
* copy. `CNGX_STEPPER_I18N` and the `CNGX_STEPPER_CONFIG` labels default to it.
|
|
1751
|
+
*
|
|
1752
|
+
* @category common/stepper/i18n
|
|
1753
|
+
* @since 0.1.0
|
|
1754
|
+
* @relatedTo CNGX_STEPPER_I18N
|
|
1755
|
+
*/
|
|
1756
|
+
declare const CNGX_STEPPER_LANGUAGE_EN: CngxStepperLanguageSection;
|
|
1757
|
+
declare module '@cngx/core/i18n' {
|
|
1758
|
+
interface CngxLanguagePack {
|
|
1759
|
+
readonly stepper: CngxStepperLanguageSection;
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Status-pill labels used by the `stripe-status-rich` skin (and any
|
|
1765
|
+
* future skin / variant that surfaces a per-step status pill). Sub-
|
|
1766
|
+
* bundle of {@link CngxStepperI18n}; consumers override partial keys
|
|
1767
|
+
* via {@link withStepperI18nLabels} - un-overridden keys keep their
|
|
1768
|
+
* English defaults. The same shape as the section's status words, declared
|
|
1769
|
+
* once as {@link CngxStepperStatusLanguage}.
|
|
1770
|
+
*
|
|
1771
|
+
* @category common/stepper/i18n
|
|
1772
|
+
*/
|
|
1773
|
+
type CngxStepperStatusLabels = CngxStepperStatusLanguage;
|
|
1639
1774
|
/**
|
|
1640
1775
|
* Stepper i18n surface. Library defaults are English; locales come from
|
|
1641
1776
|
* consumer overrides via {@link provideStepperI18n}. Sibling of
|
|
@@ -1644,6 +1779,14 @@ interface CngxStepperStatusLabels {
|
|
|
1644
1779
|
* @category common/stepper/i18n
|
|
1645
1780
|
*/
|
|
1646
1781
|
interface CngxStepperI18n {
|
|
1782
|
+
/**
|
|
1783
|
+
* Last tier of the landmark `aria-label` and of the organism's
|
|
1784
|
+
* `aria-roledescription`. The label applies only while
|
|
1785
|
+
* `CNGX_STEPPER_CONFIG.ariaLabels.stepperRegion` (default `'Steps'`) is
|
|
1786
|
+
* unset, the role description only while `fallbackLabels.stepRoleDescription`
|
|
1787
|
+
* (default `'stepper'`) is unset. Localise both through
|
|
1788
|
+
* `withStepperAriaLabels(...)` and `withStepperFallbackLabels(...)`.
|
|
1789
|
+
*/
|
|
1647
1790
|
readonly stepperLabel: string;
|
|
1648
1791
|
/**
|
|
1649
1792
|
* Landmark `aria-roledescription` for compact step-indicator
|
|
@@ -1653,9 +1796,15 @@ interface CngxStepperI18n {
|
|
|
1653
1796
|
* @category common/stepper/i18n
|
|
1654
1797
|
*/
|
|
1655
1798
|
readonly stepIndicatorRoleDescription: string;
|
|
1799
|
+
/** `aria-roledescription` of a step group header. English `step group`. */
|
|
1800
|
+
readonly groupRoleDescription: string;
|
|
1656
1801
|
readonly selectedStep: (label: string, position: number, count: number) => string;
|
|
1657
|
-
|
|
1658
|
-
|
|
1802
|
+
/**
|
|
1803
|
+
* A step name followed by a detail - its status (`Step 2 of 3: Shipping:
|
|
1804
|
+
* Errored`) or its label (`Step 2 of 3: Shipping`). One message, so a
|
|
1805
|
+
* locale owns the joiner and the order.
|
|
1806
|
+
*/
|
|
1807
|
+
readonly stepWithDetail: (step: string, detail: string) => string;
|
|
1659
1808
|
readonly stepHasErrors: (count: number) => string;
|
|
1660
1809
|
readonly previousStep: string;
|
|
1661
1810
|
readonly nextStep: string;
|
|
@@ -1676,13 +1825,15 @@ interface CngxStepperI18n {
|
|
|
1676
1825
|
*/
|
|
1677
1826
|
readonly commitRolledBackTo: (originLabel: string) => string;
|
|
1678
1827
|
/**
|
|
1679
|
-
*
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
1682
|
-
*
|
|
1683
|
-
*
|
|
1828
|
+
* Per-step `aria-describedby` text while `presenter.lastFailedIndex()`
|
|
1829
|
+
* matches the step. Receives the step's base description (e.g.
|
|
1830
|
+
* `Step 2 of 3: Shipping`) and owns the whole sentence, so a locale can
|
|
1831
|
+
* place the rolled-back note before, after or inside it. Distinct from
|
|
1832
|
+
* {@link commitRolledBackTo} (transient live-region phrase) - this text
|
|
1833
|
+
* is reachable when AT users navigate back to the rejected step after
|
|
1834
|
+
* the announcement has faded. Pillar 2.
|
|
1684
1835
|
*/
|
|
1685
|
-
readonly
|
|
1836
|
+
readonly stepRolledBack: (base: string) => string;
|
|
1686
1837
|
/**
|
|
1687
1838
|
* Per-state pill labels surfaced by the `stripe-status-rich` skin
|
|
1688
1839
|
* (and any future skin / variant that paints a state pill). English
|
|
@@ -1699,6 +1850,21 @@ interface CngxStepperI18n {
|
|
|
1699
1850
|
* @category common/stepper/i18n
|
|
1700
1851
|
*/
|
|
1701
1852
|
readonly textStepperFormat: (current: number, total: number) => string;
|
|
1853
|
+
/** Collapsed-group SR phrase for `groupCollapseSummary: 'count'`. */
|
|
1854
|
+
readonly groupSummaryCount: (total: number) => string;
|
|
1855
|
+
/** Collapsed-group SR phrase for `groupCollapseSummary: 'progress'`. */
|
|
1856
|
+
readonly groupSummaryProgress: (completed: number, total: number) => string;
|
|
1857
|
+
/** Visible collapsed-group badge for `groupCollapseSummary: 'count'`. */
|
|
1858
|
+
readonly groupSummaryCountShort: (total: number) => string;
|
|
1859
|
+
/** Visible collapsed-group badge for `groupCollapseSummary: 'progress'`. */
|
|
1860
|
+
readonly groupSummaryProgressShort: (completed: number, total: number) => string;
|
|
1861
|
+
/**
|
|
1862
|
+
* Last-resort label of a Material `<mat-step>` instrumented by
|
|
1863
|
+
* `[cngxMatStepper]` when it has no `label`, `ariaLabel` or static
|
|
1864
|
+
* `matStepLabel` text. Receives the cngx handle id. English default
|
|
1865
|
+
* `Step <id>`.
|
|
1866
|
+
*/
|
|
1867
|
+
readonly stepFallbackLabel: (id: string) => string;
|
|
1702
1868
|
}
|
|
1703
1869
|
/**
|
|
1704
1870
|
* Partial-override shape for {@link withStepperI18nLabels}. Behaves as
|
|
@@ -1712,15 +1878,19 @@ type CngxStepperI18nOverrides = Omit<Partial<CngxStepperI18n>, 'statusLabels'> &
|
|
|
1712
1878
|
readonly statusLabels?: Partial<CngxStepperStatusLabels>;
|
|
1713
1879
|
};
|
|
1714
1880
|
/**
|
|
1715
|
-
* DI token for the resolved stepper i18n bundle
|
|
1716
|
-
*
|
|
1881
|
+
* DI token for the resolved stepper i18n bundle, as a `Signal` so a
|
|
1882
|
+
* runtime language switch re-renders every label it feeds.
|
|
1883
|
+
* `providedIn: 'root'`: the stepper section of the active language pack over
|
|
1884
|
+
* the English defaults, formatted for the app locale. Provide it through
|
|
1885
|
+
* {@link provideStepperI18n}; a `{ provide, useValue }` entry must supply a
|
|
1886
|
+
* `Signal<CngxStepperI18n>`.
|
|
1717
1887
|
*
|
|
1718
1888
|
* @category common/stepper/i18n
|
|
1719
1889
|
* @wcag AA
|
|
1720
1890
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/stepper/i18n/stepper-i18n.ts
|
|
1721
1891
|
* @since 0.1.0
|
|
1722
1892
|
*/
|
|
1723
|
-
declare const CNGX_STEPPER_I18N: InjectionToken<CngxStepperI18n
|
|
1893
|
+
declare const CNGX_STEPPER_I18N: InjectionToken<Signal<CngxStepperI18n>>;
|
|
1724
1894
|
/**
|
|
1725
1895
|
* Feature shape consumed by {@link provideStepperI18n} and {@link provideCngxStepper}.
|
|
1726
1896
|
* Hidden `_target: 'i18n'` discriminator routes through the family aggregator.
|
|
@@ -1728,22 +1898,23 @@ declare const CNGX_STEPPER_I18N: InjectionToken<CngxStepperI18n>;
|
|
|
1728
1898
|
*
|
|
1729
1899
|
* @category common/stepper/i18n
|
|
1730
1900
|
*/
|
|
1731
|
-
type CngxStepperI18nFeature = ((bundle: CngxStepperI18n) => CngxStepperI18n) & {
|
|
1901
|
+
type CngxStepperI18nFeature = ((bundle: Signal<CngxStepperI18n>) => Signal<CngxStepperI18n>) & {
|
|
1732
1902
|
readonly _target: 'i18n';
|
|
1733
1903
|
};
|
|
1734
1904
|
/**
|
|
1735
1905
|
* Override stepper i18n labels. Partial override - unset keys keep
|
|
1736
|
-
* the English default. {@link CngxStepperStatusLabels} is merged
|
|
1906
|
+
* the language pack's copy, or the English default. {@link CngxStepperStatusLabels} is merged
|
|
1737
1907
|
* key-by-key so consumers can override one pill label without
|
|
1738
|
-
* restating the rest.
|
|
1739
|
-
* `withStepperFallbackLabels`.
|
|
1908
|
+
* restating the rest. Pass a `Signal` to switch the language at runtime.
|
|
1909
|
+
* Sibling of `withStepperAriaLabels` / `withStepperFallbackLabels`.
|
|
1740
1910
|
*
|
|
1741
1911
|
* @category common/stepper/i18n
|
|
1742
1912
|
*/
|
|
1743
|
-
declare function withStepperI18nLabels(overrides: CngxStepperI18nOverrides): CngxStepperI18nFeature;
|
|
1913
|
+
declare function withStepperI18nLabels(overrides: CngxStepperI18nOverrides | Signal<CngxStepperI18nOverrides>): CngxStepperI18nFeature;
|
|
1744
1914
|
/**
|
|
1745
1915
|
* Provider for the stepper i18n bundle. Compose `withStepperI18nLabels(...)`
|
|
1746
|
-
* (plus any future i18n `with*`) - unset keys fall back to
|
|
1916
|
+
* (plus any future i18n `with*`) - unset keys fall back to the language
|
|
1917
|
+
* pack, then English. The features apply on top of the active pack.
|
|
1747
1918
|
*
|
|
1748
1919
|
* ```ts
|
|
1749
1920
|
* bootstrapApplication(AppComponent, {
|
|
@@ -1759,11 +1930,13 @@ declare function withStepperI18nLabels(overrides: CngxStepperI18nOverrides): Cng
|
|
|
1759
1930
|
*/
|
|
1760
1931
|
declare function provideStepperI18n(...features: readonly CngxStepperI18nFeature[]): Provider;
|
|
1761
1932
|
/**
|
|
1762
|
-
* Inject the resolved stepper i18n bundle in an injection context.
|
|
1933
|
+
* Inject the resolved stepper i18n bundle in an injection context. Read it
|
|
1934
|
+
* inside a `computed()`, template or handler so a language switch reaches
|
|
1935
|
+
* the label.
|
|
1763
1936
|
*
|
|
1764
1937
|
* @category common/stepper/i18n
|
|
1765
1938
|
*/
|
|
1766
|
-
declare function injectStepperI18n(): CngxStepperI18n
|
|
1939
|
+
declare function injectStepperI18n(): Signal<CngxStepperI18n>;
|
|
1767
1940
|
|
|
1768
1941
|
/**
|
|
1769
1942
|
* Resolve the status-pill label for a step node against the resolved
|
|
@@ -1784,25 +1957,40 @@ declare function injectStepperI18n(): CngxStepperI18n;
|
|
|
1784
1957
|
declare function resolveStepperStatusLabel(node: CngxStepNode, i18n: CngxStepperI18n, isActive: boolean): string;
|
|
1785
1958
|
|
|
1786
1959
|
/**
|
|
1787
|
-
*
|
|
1788
|
-
*
|
|
1789
|
-
*
|
|
1960
|
+
* Reads the stepper's collapse flag off its own container.
|
|
1961
|
+
*
|
|
1962
|
+
* The threshold is a `@container` rule in `stepper-base.css` writing
|
|
1963
|
+
* `--cngx-stepper-collapse` onto `.cngx-stepper::after`. It lands on the
|
|
1964
|
+
* pseudo-element because a container query cannot style its own container,
|
|
1965
|
+
* and the query container for a pseudo-element is selected from its
|
|
1966
|
+
* originating element's inclusive ancestors. Nothing here parses a width, so
|
|
1967
|
+
* a consumer re-aims the collapse with a plain CSS rule.
|
|
1790
1968
|
*
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1969
|
+
* Requires an injection context - it observes through `injectContainerSize`,
|
|
1970
|
+
* so the observer is scoped to the caller's `DestroyRef`. A field initialiser
|
|
1971
|
+
* on the stepper component is one; a bare call from a lifecycle hook is not.
|
|
1793
1972
|
*
|
|
1973
|
+
* @param host The `<cngx-stepper>` host element, which is its own container.
|
|
1794
1974
|
* @category common/stepper
|
|
1975
|
+
* @relatedTo createStepperDisplayMode, injectContainerSize
|
|
1795
1976
|
*/
|
|
1796
|
-
declare function
|
|
1977
|
+
declare function injectStepperCollapse(host: Element): Signal<boolean>;
|
|
1797
1978
|
/**
|
|
1798
|
-
* Resolves the active stepper display mode by combining
|
|
1799
|
-
*
|
|
1800
|
-
* `'classic'` keeps the full strip; `'text'` /
|
|
1801
|
-
* matching compact variant
|
|
1979
|
+
* Resolves the active stepper display mode by combining the collapse *signal*
|
|
1980
|
+
* - whether the stepper's own container is narrow - with the configured
|
|
1981
|
+
* `mobileCollapse` policy. `'classic'` keeps the full strip; `'text'` /
|
|
1982
|
+
* `'dots'` swap to the matching compact variant, `'off'` stays classic at any
|
|
1983
|
+
* width.
|
|
1984
|
+
*
|
|
1985
|
+
* The factory takes no DOM API and holds no threshold: *where* the collapse
|
|
1986
|
+
* happens is a `@container` rule in the stepper stylesheet, *what* it collapses
|
|
1987
|
+
* into is this policy. See `core-concepts/responsive-by-default.md`.
|
|
1802
1988
|
*
|
|
1989
|
+
* @param collapsed `true` while the container sits below the collapse rung.
|
|
1990
|
+
* @param mobileCollapse The configured collapse policy, read lazily.
|
|
1803
1991
|
* @category common/stepper
|
|
1804
1992
|
*/
|
|
1805
|
-
declare function createStepperDisplayMode(
|
|
1993
|
+
declare function createStepperDisplayMode(collapsed: Signal<boolean>, mobileCollapse: () => CngxStepperMobileCollapse | undefined): Signal<'classic' | 'text' | 'dots'>;
|
|
1806
1994
|
|
|
1807
1995
|
/**
|
|
1808
1996
|
* Resolved density rung for the classic `<cngx-stepper>` strip.
|
|
@@ -1843,9 +2031,9 @@ interface CngxStripDensityOptions {
|
|
|
1843
2031
|
/**
|
|
1844
2032
|
* Resolves the classic strip's density rung from its own container
|
|
1845
2033
|
* width against the step count and two per-step px thresholds. Pure
|
|
1846
|
-
* `create*` factory, sibling to `createStepperDisplayMode` -
|
|
1847
|
-
*
|
|
1848
|
-
* `
|
|
2034
|
+
* `create*` factory, sibling to `createStepperDisplayMode` - both derive
|
|
2035
|
+
* a rung from the space the stepper was given and return a single
|
|
2036
|
+
* `Signal`; this one measures, the other reads what CSS resolved.
|
|
1849
2037
|
*
|
|
1850
2038
|
* `'comfortable'` density short-circuits to `'full'` (no measurement
|
|
1851
2039
|
* dependency). Before the first measurement (`width === 0`) and for an
|
|
@@ -1884,13 +2072,15 @@ interface CngxStepperGroupSummaryOptions {
|
|
|
1884
2072
|
readonly summaryMode: () => CngxStepperGroupSummary | undefined;
|
|
1885
2073
|
/** Whether a given group node is currently collapsed. */
|
|
1886
2074
|
readonly isCollapsed: (node: CngxStepNode) => boolean;
|
|
2075
|
+
/** Resolved i18n bundle Signal for the SR phrases. */
|
|
2076
|
+
readonly i18n: Signal<Pick<CngxStepperI18n, 'groupSummaryCount' | 'groupSummaryProgress' | 'groupSummaryCountShort' | 'groupSummaryProgressShort'>>;
|
|
1887
2077
|
}
|
|
1888
2078
|
/**
|
|
1889
2079
|
* Builds the collapsed-group summary view. Level-2 helper so the
|
|
1890
2080
|
* organism stays a thin renderer. `status` mode defers its SR phrasing
|
|
1891
2081
|
* to the group's existing status-phrase span, so {@link srText} returns
|
|
1892
|
-
* `null` there.
|
|
1893
|
-
*
|
|
2082
|
+
* `null` there. SR phrases resolve through the `CngxStepperI18n` bundle
|
|
2083
|
+
* when passed; English defaults otherwise.
|
|
1894
2084
|
*
|
|
1895
2085
|
* @category common/stepper
|
|
1896
2086
|
*/
|
|
@@ -1997,6 +2187,29 @@ interface CngxStepperHostAttrs {
|
|
|
1997
2187
|
* @internal
|
|
1998
2188
|
*/
|
|
1999
2189
|
declare function createStepperHostAttrs(inputs: CngxStepperHostAttrsInputs): CngxStepperHostAttrs;
|
|
2190
|
+
/**
|
|
2191
|
+
* Input bundle for {@link createStepperAccname}: the two per-instance
|
|
2192
|
+
* accname inputs plus the resolved config and the i18n bundle Signal.
|
|
2193
|
+
*
|
|
2194
|
+
* @internal
|
|
2195
|
+
*/
|
|
2196
|
+
interface CngxStepperAccnameInputs {
|
|
2197
|
+
readonly ariaLabel: Signal<string | undefined>;
|
|
2198
|
+
readonly ariaLabelledBy: Signal<string | undefined>;
|
|
2199
|
+
readonly config: CngxStepperConfig;
|
|
2200
|
+
readonly i18n: Signal<CngxStepperI18n>;
|
|
2201
|
+
}
|
|
2202
|
+
/**
|
|
2203
|
+
* Shared `aria-label` cascade for every stepper organism host
|
|
2204
|
+
* (`<cngx-stepper>` and the compact variants): a bound
|
|
2205
|
+
* `aria-labelledby` trumps and nulls the label out; otherwise the
|
|
2206
|
+
* per-instance input wins over `ariaLabels.stepperRegion` wins over
|
|
2207
|
+
* `i18n.stepperLabel`. One source so the variants cannot drift from
|
|
2208
|
+
* the parent's naming behaviour.
|
|
2209
|
+
*
|
|
2210
|
+
* @internal
|
|
2211
|
+
*/
|
|
2212
|
+
declare function createStepperAccname(inputs: CngxStepperAccnameInputs): Signal<string | null>;
|
|
2000
2213
|
|
|
2001
2214
|
/**
|
|
2002
2215
|
* Options for {@link createStepperStripKeyboardNav}.
|
|
@@ -2008,8 +2221,11 @@ interface CngxStepperStripKeyboardNavOptions {
|
|
|
2008
2221
|
readonly presenter: CngxStepperHost;
|
|
2009
2222
|
/** Host element used to locate the active step button after the move. */
|
|
2010
2223
|
readonly hostElement: HTMLElement;
|
|
2011
|
-
/**
|
|
2012
|
-
|
|
2224
|
+
/**
|
|
2225
|
+
* Document writing direction. Flips the horizontal-strip inline arrows
|
|
2226
|
+
* under `rtl` (APG); the vertical strip and Home/End stay invariant.
|
|
2227
|
+
*/
|
|
2228
|
+
readonly direction: Signal<CngxDirection>;
|
|
2013
2229
|
/**
|
|
2014
2230
|
* Maps a CngxStepNode id to its DOM button id (e.g. `${id}-header`).
|
|
2015
2231
|
* The strip selects by stable DOM id rather than waiting for the
|
|
@@ -2135,7 +2351,10 @@ declare function createStepperStateView(inputs: {
|
|
|
2135
2351
|
* (the classic mobile-collapse summary) are a guaranteed no-op.
|
|
2136
2352
|
*
|
|
2137
2353
|
* Pure helper - reads signals at call time, intended to be wrapped in the
|
|
2138
|
-
* caller's `computed()`.
|
|
2354
|
+
* caller's `computed()`. The phrase feeds live regions, so the step label
|
|
2355
|
+
* is read untracked: a label that follows a language switch must not
|
|
2356
|
+
* re-announce the line. Pass the i18n bundle as an untracked snapshot for
|
|
2357
|
+
* the same reason.
|
|
2139
2358
|
*
|
|
2140
2359
|
* @category common/stepper
|
|
2141
2360
|
* @since 0.1.0
|
|
@@ -2152,8 +2371,14 @@ declare function resolveStepperErrorSummary(view: Pick<CngxStepperStateView, 'er
|
|
|
2152
2371
|
interface CngxStepperSlotContextBuildersInputs {
|
|
2153
2372
|
readonly presenter: CngxStepperHost;
|
|
2154
2373
|
readonly stepsOnly: Signal<readonly CngxStepNode[]>;
|
|
2155
|
-
/**
|
|
2156
|
-
|
|
2374
|
+
/**
|
|
2375
|
+
* Whether a group node is currently collapsed (focus-driven collapse
|
|
2376
|
+
* policy). Optional so header contexts of collapse-free steppers keep
|
|
2377
|
+
* reporting `expanded: true` without the caller wiring a predicate.
|
|
2378
|
+
*/
|
|
2379
|
+
readonly isGroupCollapsed?: (node: CngxStepNode) => boolean;
|
|
2380
|
+
/** i18n bundle Signal - supplies the `errored` status label as the message fallback. */
|
|
2381
|
+
readonly i18n: Signal<CngxStepperI18n>;
|
|
2157
2382
|
}
|
|
2158
2383
|
/**
|
|
2159
2384
|
* Per-step status / activity / rejection / labelling derivations shared by
|
|
@@ -2191,14 +2416,14 @@ declare function createStepperSlotContextBuilders(inputs: CngxStepperSlotContext
|
|
|
2191
2416
|
/**
|
|
2192
2417
|
* Input bundle for {@link createStepperAnnouncementBuilders}. The presenter
|
|
2193
2418
|
* surface (commit transition + failed-index signals), the step-only flat
|
|
2194
|
-
* projection, and the resolved i18n
|
|
2419
|
+
* projection, and the resolved i18n bundle Signal.
|
|
2195
2420
|
*
|
|
2196
2421
|
* @internal
|
|
2197
2422
|
*/
|
|
2198
2423
|
interface CngxStepperAnnouncementBuildersInputs {
|
|
2199
2424
|
readonly presenter: CngxStepperHost;
|
|
2200
2425
|
readonly stepsOnly: Signal<readonly CngxStepNode[]>;
|
|
2201
|
-
readonly i18n: CngxStepperI18n
|
|
2426
|
+
readonly i18n: Signal<CngxStepperI18n>;
|
|
2202
2427
|
}
|
|
2203
2428
|
/**
|
|
2204
2429
|
* Reactive SR-announcement surface for the stepper organism: the
|
|
@@ -2220,11 +2445,28 @@ interface CngxStepperAnnouncementBuilders {
|
|
|
2220
2445
|
readonly liveAnnouncement: Signal<string>;
|
|
2221
2446
|
/**
|
|
2222
2447
|
* SR descriptor phrase. Aggregator-announced or "Step N of M: <label>";
|
|
2223
|
-
*
|
|
2448
|
+
* routes the rejected row through `stepRolledBack(base)`.
|
|
2224
2449
|
*/
|
|
2225
2450
|
readonly statusPhrase: (node: CngxStepNode) => string;
|
|
2451
|
+
/**
|
|
2452
|
+
* Step-header descriptor: `statusPhrase` plus the done / errored status
|
|
2453
|
+
* the stepper skins draw as a CSS glyph, joined through `stepWithDetail`.
|
|
2454
|
+
* The glyphs carry `/ ''` alt text, so this text is where their meaning
|
|
2455
|
+
* reaches a screen reader.
|
|
2456
|
+
*/
|
|
2457
|
+
readonly headerStatusPhrase: (node: CngxStepNode) => string;
|
|
2226
2458
|
/** Group descriptor - rolls up children's aggregated status. */
|
|
2227
2459
|
readonly groupStatusPhrase: (node: CngxStepNode) => string;
|
|
2460
|
+
/** Stable descriptor-span id for a node (`<node-id>-desc`). */
|
|
2461
|
+
readonly descriptorId: (node: CngxStepNode) => string;
|
|
2462
|
+
/**
|
|
2463
|
+
* `aria-describedby` value for a node: `descriptorId(node)` while the
|
|
2464
|
+
* node's phrase (`headerStatusPhrase` for steps, `groupStatusPhrase` for
|
|
2465
|
+
* groups) is non-empty, else `null`. The descriptor span stays in the
|
|
2466
|
+
* DOM; only the reference is gated - accname 1.2 §2A traverses a
|
|
2467
|
+
* directly-referenced node even when it is empty or hidden.
|
|
2468
|
+
*/
|
|
2469
|
+
readonly describedBy: (node: CngxStepNode) => string | null;
|
|
2228
2470
|
}
|
|
2229
2471
|
/**
|
|
2230
2472
|
* Build the reactive SR-announcement surface for `<cngx-stepper>`.
|
|
@@ -2234,6 +2476,45 @@ interface CngxStepperAnnouncementBuilders {
|
|
|
2234
2476
|
* @internal
|
|
2235
2477
|
*/
|
|
2236
2478
|
declare function createStepperAnnouncementBuilders(inputs: CngxStepperAnnouncementBuildersInputs): CngxStepperAnnouncementBuilders;
|
|
2479
|
+
/**
|
|
2480
|
+
* Input bundle for {@link createStepperPanelRefs}: the resolved display
|
|
2481
|
+
* mode, the strip projection that decides which headers exist, and the
|
|
2482
|
+
* organism's id/describedby schemes.
|
|
2483
|
+
*
|
|
2484
|
+
* @internal
|
|
2485
|
+
*/
|
|
2486
|
+
interface CngxStepperPanelRefsInputs {
|
|
2487
|
+
readonly displayMode: Signal<'classic' | 'text' | 'dots'>;
|
|
2488
|
+
readonly visibleStripNodes: Signal<readonly CngxStepNode[]>;
|
|
2489
|
+
readonly headerIdFor: (node: CngxStepNode) => string;
|
|
2490
|
+
readonly describedByFor: (node: CngxStepNode) => string | null;
|
|
2491
|
+
}
|
|
2492
|
+
/**
|
|
2493
|
+
* Per-mode panel naming surface for `<cngx-stepper>`'s region panels.
|
|
2494
|
+
*
|
|
2495
|
+
* @internal
|
|
2496
|
+
*/
|
|
2497
|
+
interface CngxStepperPanelRefs {
|
|
2498
|
+
/** Header id when a header element is rendered for the node, else `null`. */
|
|
2499
|
+
readonly labelledBy: (node: CngxStepNode) => string | null;
|
|
2500
|
+
/** Self-naming fallback whenever {@link labelledBy} emits no id. */
|
|
2501
|
+
readonly ariaLabel: (node: CngxStepNode) => string | null;
|
|
2502
|
+
/** Gated describedby - suppressed when the descriptor span is header-hosted and the header is not rendered. */
|
|
2503
|
+
readonly describedBy: (node: CngxStepNode) => string | null;
|
|
2504
|
+
}
|
|
2505
|
+
/**
|
|
2506
|
+
* Build the mode-aware panel ref surface. The dots branch always
|
|
2507
|
+
* renders one dot per step; the classic strip only renders headers the
|
|
2508
|
+
* group-collapse policy exposes; the text branch has no header element
|
|
2509
|
+
* at all. A panel must never reference an id that is not in the DOM -
|
|
2510
|
+
* a dangling IDREF names the region as empty - so header-less panels
|
|
2511
|
+
* self-name via `aria-label` and drop the describedby reference (the
|
|
2512
|
+
* classic descriptor spans live inside the strip headers; the
|
|
2513
|
+
* collapsed branches mount theirs inside the panel).
|
|
2514
|
+
*
|
|
2515
|
+
* @internal
|
|
2516
|
+
*/
|
|
2517
|
+
declare function createStepperPanelRefs(inputs: CngxStepperPanelRefsInputs): CngxStepperPanelRefs;
|
|
2237
2518
|
|
|
2238
2519
|
/**
|
|
2239
2520
|
* Routes a `CngxSwipe` gesture into the stepper presenter so the
|
|
@@ -2246,10 +2527,10 @@ declare function createStepperAnnouncementBuilders(inputs: CngxStepperAnnounceme
|
|
|
2246
2527
|
* `CNGX_STEPPER_CONFIG.mobileSwipe` -> library default `true`.
|
|
2247
2528
|
*
|
|
2248
2529
|
* Direction routing is asymmetric, matching the presenter's existing
|
|
2249
|
-
* navigation surface: `left`
|
|
2250
|
-
*
|
|
2251
|
-
*
|
|
2252
|
-
*
|
|
2530
|
+
* navigation surface: the forward swipe (`left` under `ltr`, `right`
|
|
2531
|
+
* under `rtl`) -> `selectNext()` -> `select()` (linear gate + commit
|
|
2532
|
+
* window apply identically to a click); the back swipe ->
|
|
2533
|
+
* `selectPrevious()`, gated on `busy()` like the strip back-arrow.
|
|
2253
2534
|
*
|
|
2254
2535
|
* @category common/stepper
|
|
2255
2536
|
* @docsKind primary
|
|
@@ -2265,12 +2546,16 @@ declare class CngxStepperSwipeNav {
|
|
|
2265
2546
|
readonly mobileSwipe: i0.InputSignal<boolean | undefined>;
|
|
2266
2547
|
private readonly host;
|
|
2267
2548
|
private readonly config;
|
|
2549
|
+
private readonly direction;
|
|
2268
2550
|
/** Resolved enabled flag (Input -> config -> default(true)). Boolean output, no `equal` fn required. */
|
|
2269
2551
|
readonly swipeEnabled: i0.Signal<boolean>;
|
|
2270
2552
|
/**
|
|
2271
|
-
* Route a swipe direction into the presenter.
|
|
2272
|
-
*
|
|
2273
|
-
*
|
|
2553
|
+
* Route a swipe direction into the presenter. The inline mapping
|
|
2554
|
+
* resolves against the document direction like the keyboard path:
|
|
2555
|
+
* under `ltr` a left swipe advances; under `rtl` the roles flip.
|
|
2556
|
+
* Vertical directions are ignored. The back path waits while a
|
|
2557
|
+
* commit is in flight - a stray gesture must not supersede it (the
|
|
2558
|
+
* programmatic `selectPrevious()` cancels deliberately).
|
|
2274
2559
|
*/
|
|
2275
2560
|
handleSwipe(direction: SwipeDirection): void;
|
|
2276
2561
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperSwipeNav, never>;
|
|
@@ -2324,7 +2609,11 @@ interface CngxStepperCountHost {
|
|
|
2324
2609
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-count/multi-instance-format-overrides</example-url>
|
|
2325
2610
|
*/
|
|
2326
2611
|
declare class CngxStepperCount {
|
|
2327
|
-
/**
|
|
2612
|
+
/**
|
|
2613
|
+
* When `true`, wraps the rendered string in an `aria-live="polite"` span.
|
|
2614
|
+
* Set it once per instance: toggling it swaps the span, and the region
|
|
2615
|
+
* content present at that moment is not announced.
|
|
2616
|
+
*/
|
|
2328
2617
|
readonly live: i0.InputSignal<boolean>;
|
|
2329
2618
|
/**
|
|
2330
2619
|
* Per-instance format override. Receives `(current, total)` where
|
|
@@ -2347,8 +2636,15 @@ declare class CngxStepperCount {
|
|
|
2347
2636
|
private readonly injectedHost;
|
|
2348
2637
|
private readonly i18n;
|
|
2349
2638
|
private readonly resolvedHost;
|
|
2639
|
+
/** 1-based active position and step total, or `null` while there is nothing to count. */
|
|
2640
|
+
private readonly position;
|
|
2350
2641
|
/** Resolved caption - reactive on activeStepIndex / stepsOnly / format / i18n. */
|
|
2351
2642
|
protected readonly label: Signal<string>;
|
|
2643
|
+
/**
|
|
2644
|
+
* {@link label} for the live span: the bundle and a consumer `format`
|
|
2645
|
+
* (which may itself be language-dependent) are read untracked.
|
|
2646
|
+
*/
|
|
2647
|
+
protected readonly liveLabel: Signal<string>;
|
|
2352
2648
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxStepperCount, never>;
|
|
2353
2649
|
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>;
|
|
2354
2650
|
}
|
|
@@ -2391,6 +2687,8 @@ declare class CngxStepperPrevious {
|
|
|
2391
2687
|
private readonly injectedHost;
|
|
2392
2688
|
private readonly resolvedHost;
|
|
2393
2689
|
private readonly coPlacedAsyncClick;
|
|
2690
|
+
private readonly elementRef;
|
|
2691
|
+
private readonly i18n;
|
|
2394
2692
|
constructor();
|
|
2395
2693
|
/** `true` when retreat is unavailable: no earlier step or commit busy. */
|
|
2396
2694
|
protected readonly disabled: Signal<boolean>;
|
|
@@ -2442,6 +2740,8 @@ declare class CngxStepperNext {
|
|
|
2442
2740
|
private readonly injectedHost;
|
|
2443
2741
|
private readonly resolvedHost;
|
|
2444
2742
|
private readonly coPlacedAsyncClick;
|
|
2743
|
+
private readonly elementRef;
|
|
2744
|
+
private readonly i18n;
|
|
2445
2745
|
/** `true` when advancing is unavailable: no enabled next step or commit busy. */
|
|
2446
2746
|
protected readonly disabled: Signal<boolean>;
|
|
2447
2747
|
constructor();
|
|
@@ -2637,5 +2937,5 @@ declare function provideCngxStepper(...features: readonly CngxStepperFeature[]):
|
|
|
2637
2937
|
*/
|
|
2638
2938
|
declare function provideCngxStepperAt(...features: readonly CngxStepperFeature[]): Provider[];
|
|
2639
2939
|
|
|
2640
|
-
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_DENSITY_BREAKPOINTS,
|
|
2641
|
-
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, CngxStepperDensityBreakpoints, CngxStepperFallbackLabels, CngxStepperFeature, CngxStepperGroupCollapse, CngxStepperGroupNavigationOptions, CngxStepperGroupNavigationView, CngxStepperGroupSummary, CngxStepperGroupSummaryOptions, CngxStepperGroupSummaryView, CngxStepperHeaderNavigation, CngxStepperHost, CngxStepperHostAttrs, CngxStepperHostAttrsInputs, CngxStepperI18n, CngxStepperI18nFeature, CngxStepperI18nOverrides, CngxStepperMobileCollapse, CngxStepperMobileIndicatorPosition, CngxStepperSkin, CngxStepperSlotContextBuilders, CngxStepperSlotContextBuildersInputs, CngxStepperStateView, CngxStepperStatusLabels, CngxStepperStripKeyboardNavOptions, CngxStepperTemplateBindings, CngxStepperTemplateBindingsOptions, CngxStepperTemplates, CngxStripDensity, CngxStripDensityOptions };
|
|
2940
|
+
export { CNGX_STEPPER_COMMIT_HANDLER_FACTORY, CNGX_STEPPER_CONFIG, CNGX_STEPPER_GLYPHS, CNGX_STEPPER_HOST, CNGX_STEPPER_I18N, CNGX_STEPPER_LANGUAGE_EN, CNGX_STEP_GROUP_HOST, CNGX_STEP_PANEL_HOST, CngxDotStepperDot, CngxStep, CngxStepBadge, CngxStepBusySpinner, CngxStepContent, CngxStepError, CngxStepGroup, CngxStepGroupHeader, CngxStepIndicator, CngxStepLabel, CngxStepRejection, CngxStepperComplete, CngxStepperCount, CngxStepperEmpty, CngxStepperNext, CngxStepperPresenter, CngxStepperPrevious, CngxStepperRouterSync, CngxStepperSwipeNav, STEPPER_DEFAULT_DENSITY_BREAKPOINTS, createStepperAccname, createStepperAnnouncementBuilders, createStepperCommitHandler, createStepperDisplayMode, createStepperGroupNavigation, createStepperGroupSummary, createStepperHostAttrs, createStepperHostProxy, createStepperPanelRefs, createStepperSlotContextBuilders, createStepperStateView, createStepperStripKeyboardNav, createStepperTemplateBindings, createStripDensity, flatStepsEqual, injectStepperCollapse, injectStepperConfig, injectStepperI18n, provideCngxStepper, provideCngxStepperAt, provideStepperConfig, provideStepperConfigAt, provideStepperI18n, resolveStepperErrorSummary, resolveStepperStatusLabel, withDotStepperDotTemplate, withStepBadgeTemplate, withStepBusySpinnerTemplate, withStepErrorTemplate, withStepGroupHeaderTemplate, withStepIndicatorTemplate, withStepRejectionTemplate, withStepperAriaLabels, withStepperCommitMode, withStepperConnectors, withStepperDefaultOrientation, withStepperDensity, withStepperEmptyTemplate, withStepperFallbackLabels, withStepperGroupCollapse, withStepperGroupCollapseSummary, withStepperHeaderNavigation, withStepperI18nLabels, withStepperLinear, withStepperMobileCollapse, withStepperMobileIndicatorPosition, withStepperMobileSwipe, withStepperRouterSync, withStepperSkin };
|
|
2941
|
+
export type { CngxDotStepperDotContext, CngxStepBadgeContext, CngxStepBusySpinnerContext, CngxStepContentContext, CngxStepErrorContext, CngxStepGroupHeaderContext, CngxStepGroupHost, CngxStepIndicatorContext, CngxStepLabelContext, CngxStepNode, CngxStepPanelHost, CngxStepRegistration, CngxStepRejectionContext, CngxStepStatus, CngxStepperAccnameInputs, CngxStepperAnnouncementBuilders, CngxStepperAnnouncementBuildersInputs, CngxStepperAriaLabels, CngxStepperCommitAction, CngxStepperCommitHandler, CngxStepperCommitHandlerFactory, CngxStepperCommitHandlerOptions, CngxStepperConfig, CngxStepperConfigFeature, CngxStepperCountHost, CngxStepperDensity, CngxStepperDensityBreakpoints, CngxStepperFallbackLabels, CngxStepperFeature, CngxStepperGroupCollapse, CngxStepperGroupNavigationOptions, CngxStepperGroupNavigationView, CngxStepperGroupSummary, CngxStepperGroupSummaryOptions, CngxStepperGroupSummaryView, CngxStepperHeaderNavigation, CngxStepperHost, CngxStepperHostAttrs, CngxStepperHostAttrsInputs, CngxStepperI18n, CngxStepperI18nFeature, CngxStepperI18nOverrides, CngxStepperLanguageSection, CngxStepperMobileCollapse, CngxStepperMobileIndicatorPosition, CngxStepperPanelRefs, CngxStepperPanelRefsInputs, CngxStepperSkin, CngxStepperSlotContextBuilders, CngxStepperSlotContextBuildersInputs, CngxStepperStateView, CngxStepperStatusLabels, CngxStepperStatusLanguage, CngxStepperStripKeyboardNavOptions, CngxStepperTemplateBindings, CngxStepperTemplateBindingsOptions, CngxStepperTemplates, CngxStripDensity, CngxStripDensityOptions };
|