@cngx/ui 0.1.0-rc.0 → 0.1.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/cngx-ui-mat-stepper.mjs +76 -229
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +366 -40
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +299 -39
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +344 -31
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +1 -1
- package/mat-stepper/README.md +37 -14
- package/mat-tabs/styles/mat-tabs.css +58 -40
- package/package.json +3 -3
- package/stepper/README.md +98 -0
- package/tabs/README.md +18 -0
- package/types/cngx-ui-mat-stepper.d.ts +64 -113
- package/types/cngx-ui-mat-tabs.d.ts +175 -13
- package/types/cngx-ui-stepper.d.ts +187 -18
- package/types/cngx-ui-tabs.d.ts +227 -17
|
@@ -5,7 +5,7 @@ import * as i2 from '@cngx/common/a11y';
|
|
|
5
5
|
import { CngxLiveRegion, CngxRovingItem, CngxRovingTabindex, CngxFocusRestore } from '@cngx/common/a11y';
|
|
6
6
|
import { CngxSwipe } from '@cngx/common/interactive';
|
|
7
7
|
import * as i1 from '@cngx/common/stepper';
|
|
8
|
-
import { CNGX_STEPPER_HOST, injectStepperI18n, injectStepperConfig, CngxStep, CngxStepIndicator, CngxStepBadge, CngxStepBusySpinner, CngxStepRejection, CngxStepGroupHeader, CngxStepperEmpty, CNGX_STEPPER_GLYPHS, createStepperTemplateBindings, createStepperDisplayMode, STEPPER_DEFAULT_MOBILE_BREAKPOINT, createStepperHostAttrs, CngxStepperSwipeNav, resolveStepperStatusLabel, createStepperSlotContextBuilders, createStepperAnnouncementBuilders, createStepperStripKeyboardNav, CngxStepperCount, CNGX_STEP_PANEL_HOST, CngxStepperPresenter, CngxDotStepperDot, createStepperHostProxy } from '@cngx/common/stepper';
|
|
8
|
+
import { CNGX_STEPPER_HOST, injectStepperI18n, injectStepperConfig, CngxStep, CngxStepIndicator, CngxStepBadge, CngxStepBusySpinner, CngxStepRejection, CngxStepError, CngxStepGroupHeader, CngxStepperEmpty, CNGX_STEPPER_GLYPHS, createStepperTemplateBindings, createStepperDisplayMode, STEPPER_DEFAULT_MOBILE_BREAKPOINT, createStripDensity, STEPPER_DEFAULT_DENSITY_BREAKPOINTS, createStepperHostAttrs, CngxStepperSwipeNav, resolveStepperStatusLabel, createStepperGroupSummary, createStepperGroupNavigation, createStepperSlotContextBuilders, createStepperStateView, resolveStepperErrorSummary, createStepperAnnouncementBuilders, createStepperStripKeyboardNav, CngxStepperCount, CNGX_STEP_PANEL_HOST, CngxStepperPresenter, CngxDotStepperDot, createStepperHostProxy } from '@cngx/common/stepper';
|
|
9
9
|
import { CNGX_ORGANISM_SCROLL_SYNC_FACTORY, CNGX_DIRECTIVE_BY_ID_MAP_FACTORY } from '@cngx/common/tabs';
|
|
10
10
|
import { coerceBooleanProperty } from '@cngx/core/utils';
|
|
11
11
|
import { CngxProgress } from '@cngx/ui/feedback';
|
|
@@ -23,6 +23,7 @@ import { CngxProgress } from '@cngx/ui/feedback';
|
|
|
23
23
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/stepper.component.ts
|
|
24
24
|
* @since 0.1.0
|
|
25
25
|
* @relatedTo CngxStepperPresenter, CngxStep, CngxRovingTabindex, CngxFocusRestore, CngxLiveRegion
|
|
26
|
+
* @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts
|
|
26
27
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-horizontal/three-step-wizard</example-url>
|
|
27
28
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-vertical/vertical-sidebar-layout</example-url>
|
|
28
29
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-linear/linear-gating-with-completion-checkboxes</example-url>
|
|
@@ -40,6 +41,9 @@ import { CngxProgress } from '@cngx/ui/feedback';
|
|
|
40
41
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/path-chevron-vertical</example-url>
|
|
41
42
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/pill-segment-vertical</example-url>
|
|
42
43
|
* <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/chips-vertical</example-url>
|
|
44
|
+
* <example-url>http://localhost:4200/#/ui/stepper/stepper-density/flat-steps-auto-density</example-url>
|
|
45
|
+
* <example-url>http://localhost:4200/#/ui/stepper/stepper-density/density-across-skins</example-url>
|
|
46
|
+
* <example-url>http://localhost:4200/#/ui/stepper/stepper-density/distance-weighted-collapse</example-url>
|
|
43
47
|
*/
|
|
44
48
|
class CngxStepper {
|
|
45
49
|
ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
|
|
@@ -48,6 +52,13 @@ class CngxStepper {
|
|
|
48
52
|
skin = input(undefined, ...(ngDevMode ? [{ debugName: "skin" }] : /* istanbul ignore next */ []));
|
|
49
53
|
/** Opt the classic skin into the connector-rail presentation. Off by default, classic-scoped. */
|
|
50
54
|
connectors = input(undefined, { ...(ngDevMode ? { debugName: "connectors" } : /* istanbul ignore next */ {}), transform: (v) => (v === undefined ? undefined : coerceBooleanProperty(v)) });
|
|
55
|
+
/**
|
|
56
|
+
* Per-instance header-navigation policy. `'none'` renders inert label
|
|
57
|
+
* headers (footer-only navigation); `'visited'` keeps them as
|
|
58
|
+
* focusable buttons gated by `linear`. Cascade: Input ?? config ??
|
|
59
|
+
* `'visited'`.
|
|
60
|
+
*/
|
|
61
|
+
headerNavigation = input(undefined, ...(ngDevMode ? [{ debugName: "headerNavigation" }] : /* istanbul ignore next */ []));
|
|
51
62
|
/**
|
|
52
63
|
* Opt-in `Step N of M` caption under the mobile `'dots'` row. In
|
|
53
64
|
* the `'text'` collapse branch the count IS the indicator and is
|
|
@@ -67,12 +78,13 @@ class CngxStepper {
|
|
|
67
78
|
badgeSlot = contentChild(CngxStepBadge, ...(ngDevMode ? [{ debugName: "badgeSlot" }] : /* istanbul ignore next */ []));
|
|
68
79
|
busySpinnerSlot = contentChild(CngxStepBusySpinner, ...(ngDevMode ? [{ debugName: "busySpinnerSlot" }] : /* istanbul ignore next */ []));
|
|
69
80
|
rejectionSlot = contentChild(CngxStepRejection, ...(ngDevMode ? [{ debugName: "rejectionSlot" }] : /* istanbul ignore next */ []));
|
|
81
|
+
errorSlot = contentChild(CngxStepError, ...(ngDevMode ? [{ debugName: "errorSlot" }] : /* istanbul ignore next */ []));
|
|
70
82
|
groupHeaderSlot = contentChild(CngxStepGroupHeader, ...(ngDevMode ? [{ debugName: "groupHeaderSlot" }] : /* istanbul ignore next */ []));
|
|
71
83
|
emptySlot = contentChild(CngxStepperEmpty, ...(ngDevMode ? [{ debugName: "emptySlot" }] : /* istanbul ignore next */ []));
|
|
72
84
|
/** Default-template glyph source - read by `#defaultBadge` / `#defaultRejection` outlets. */
|
|
73
85
|
glyphs = CNGX_STEPPER_GLYPHS;
|
|
74
86
|
/**
|
|
75
|
-
*
|
|
87
|
+
* Template cascade (indicator/badge/busySpinner/rejection/stepError/
|
|
76
88
|
* groupHeader/empty). Resolution: per-instance slot directive →
|
|
77
89
|
* `CNGX_STEPPER_CONFIG.templates.<key>` → `null` (built-in default).
|
|
78
90
|
*/
|
|
@@ -81,11 +93,33 @@ class CngxStepper {
|
|
|
81
93
|
badgeSlot: this.badgeSlot,
|
|
82
94
|
busySpinnerSlot: this.busySpinnerSlot,
|
|
83
95
|
rejectionSlot: this.rejectionSlot,
|
|
96
|
+
errorSlot: this.errorSlot,
|
|
84
97
|
groupHeaderSlot: this.groupHeaderSlot,
|
|
85
98
|
emptySlot: this.emptySlot,
|
|
86
99
|
config: this.config,
|
|
87
100
|
});
|
|
88
101
|
displayMode = createStepperDisplayMode(this.config.mobileBreakpoint ?? STEPPER_DEFAULT_MOBILE_BREAKPOINT, () => this.config.mobileCollapse, inject(DestroyRef));
|
|
102
|
+
/**
|
|
103
|
+
* Space-driven density rung for the classic strip, measured off the
|
|
104
|
+
* host element's own width via {@link createStripDensity}. `'full'`
|
|
105
|
+
* under the `'comfortable'` default. Drives `[data-density]` (the CSS
|
|
106
|
+
* label-degradation ladder) and the auto-vertical flip below.
|
|
107
|
+
*/
|
|
108
|
+
stripDensity = createStripDensity({
|
|
109
|
+
element: this.hostElement,
|
|
110
|
+
stepCount: () => this.presenter.stepCount(),
|
|
111
|
+
density: () => this.config.density,
|
|
112
|
+
breakpoints: () => this.config.densityBreakpoints ?? STEPPER_DEFAULT_DENSITY_BREAKPOINTS,
|
|
113
|
+
destroyRef: inject(DestroyRef),
|
|
114
|
+
});
|
|
115
|
+
/**
|
|
116
|
+
* `true` when `density: 'auto'` is active. Drives `[data-density-auto]`,
|
|
117
|
+
* which makes the strip absorb a too-narrow container by shrinking +
|
|
118
|
+
* ellipsis-truncating labels in flow rather than growing a horizontal
|
|
119
|
+
* scrollbar - so no rung ever overflows, independent of how the px
|
|
120
|
+
* thresholds resolve.
|
|
121
|
+
*/
|
|
122
|
+
isDensityAuto = computed(() => this.config.density === 'auto', ...(ngDevMode ? [{ debugName: "isDensityAuto" }] : /* istanbul ignore next */ []));
|
|
89
123
|
constructor() {
|
|
90
124
|
// Scroll active step into view via the swappable scroll-sync factory.
|
|
91
125
|
inject(CNGX_ORGANISM_SCROLL_SYNC_FACTORY)({
|
|
@@ -97,14 +131,103 @@ class CngxStepper {
|
|
|
97
131
|
/** Stepper landmark role-description with config + i18n cascade. */
|
|
98
132
|
stepperRoleDescription = computed(() => this.config.fallbackLabels?.stepRoleDescription ?? this.i18n.stepperLabel, ...(ngDevMode ? [{ debugName: "stepperRoleDescription" }] : /* istanbul ignore next */ []));
|
|
99
133
|
/** Resolved skin / connectors / mobile-indicator host attrs (Level-2 cascade helper). */
|
|
100
|
-
hostAttrs = createStepperHostAttrs({
|
|
134
|
+
hostAttrs = createStepperHostAttrs({
|
|
135
|
+
skin: this.skin,
|
|
136
|
+
connectors: this.connectors,
|
|
137
|
+
mobileIndicatorPosition: this.mobileIndicatorPosition,
|
|
138
|
+
config: this.config,
|
|
139
|
+
});
|
|
140
|
+
/**
|
|
141
|
+
* Resolved header-navigation policy. Cascade mirrors `skin` /
|
|
142
|
+
* `connectors`: per-instance Input ?? config ?? `'visited'`.
|
|
143
|
+
*/
|
|
144
|
+
resolvedHeaderNavigation = computed(() => this.headerNavigation() ?? this.config.headerNavigation ?? 'visited', ...(ngDevMode ? [{ debugName: "resolvedHeaderNavigation" }] : /* istanbul ignore next */ []));
|
|
145
|
+
/**
|
|
146
|
+
* Real error reason for a step, or `null`. A reason is the direct
|
|
147
|
+
* `[error]` string or the first `errorAggregator` label.
|
|
148
|
+
*/
|
|
149
|
+
stepErrorMessageOf(node) {
|
|
150
|
+
return node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0] ?? null;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Errored steps that carry a real message, rendered as a row BELOW the
|
|
154
|
+
* strip (full width, wraps) rather than inline in a step - a free-text
|
|
155
|
+
* message inside a strip item widens the shrink-to-fit step and tears
|
|
156
|
+
* the row. Empty when no step has a real reason.
|
|
157
|
+
*/
|
|
158
|
+
stepErrorEntries = computed(() =>
|
|
159
|
+
// The message row sits below the strip, so it has room on every
|
|
160
|
+
// skin - the bare 'errored' state still rides each skin's own
|
|
161
|
+
// indicator / badge / tile.
|
|
162
|
+
this.stepsOnly()
|
|
163
|
+
.filter((node) => node.kind === 'step' && this.stepErrorMessageOf(node) !== null)
|
|
164
|
+
.map((node) => ({
|
|
165
|
+
id: node.id,
|
|
166
|
+
label: node.label(),
|
|
167
|
+
message: this.stepErrorMessageOf(node),
|
|
168
|
+
context: this.slotContext.stepErrorContextFor(node),
|
|
169
|
+
})), { ...(ngDevMode ? { debugName: "stepErrorEntries" } : /* istanbul ignore next */ {}), equal: (a, b) => a.length === b.length && a.every((e, i) => e.id === b[i].id && e.message === b[i].message) });
|
|
101
170
|
/** Mobile-swipe navigation host directive (Level-2 composition). */
|
|
102
171
|
swipeNav = inject(CngxStepperSwipeNav, { host: true });
|
|
103
172
|
statusLabelFor = (node) => resolveStepperStatusLabel(node, this.i18n, this.slotContext.isActive(node));
|
|
173
|
+
/** Mobile-dot `data-state`: unified error (rejection + aggregator) over the raw status. */
|
|
174
|
+
mobileDotState(node) {
|
|
175
|
+
return this.stateView.hasError(node) ? 'error' : node.state();
|
|
176
|
+
}
|
|
177
|
+
/** Mobile-dot `aria-label`, appending the errored status when the dot has an error. */
|
|
178
|
+
mobileDotAriaLabel(node, index) {
|
|
179
|
+
const base = this.i18n.selectedStep(node.label(), index + 1, this.stepsOnly().length);
|
|
180
|
+
return this.stateView.hasError(node) ? `${base}: ${this.i18n.statusLabels.errored}` : base;
|
|
181
|
+
}
|
|
104
182
|
groupRoleDescription = computed(() => this.config.fallbackLabels?.groupRoleDescription ?? 'step group', ...(ngDevMode ? [{ debugName: "groupRoleDescription" }] : /* istanbul ignore next */ []));
|
|
183
|
+
/**
|
|
184
|
+
* `true` when a rendered strip group header is folded under the
|
|
185
|
+
* focus-driven policy: `groupCollapse === 'expand-active'`, the group
|
|
186
|
+
* has children, and it does not hold the active step. Drives the
|
|
187
|
+
* `--collapsed` visual de-emphasis. Reads `activeGroupId` reactively,
|
|
188
|
+
* never a one-shot write.
|
|
189
|
+
*
|
|
190
|
+
* The fold is a density optimisation, not a disclosure widget:
|
|
191
|
+
* collapse is focus-driven (no toggle control), so the header carries
|
|
192
|
+
* no `aria-expanded` - an unsupported pairing on `role="group"`
|
|
193
|
+
* (ARIA 1.2) that would also imply a false disclosure affordance.
|
|
194
|
+
* A collapsed header does offer a pointer shortcut into the group (see
|
|
195
|
+
* {@link handleGroupHeaderClick}), but that selects the group's first
|
|
196
|
+
* step rather than expanding it in place, so it stays navigation, not
|
|
197
|
+
* disclosure. Keyboard users reach the same steps via the documented
|
|
198
|
+
* arrow-key contract, which already steps into a collapsed group.
|
|
199
|
+
*/
|
|
200
|
+
isGroupCollapsed(node) {
|
|
201
|
+
if (node.kind !== 'group' || this.config.groupCollapse !== 'expand-active') {
|
|
202
|
+
return false;
|
|
203
|
+
}
|
|
204
|
+
if (node.children.length === 0) {
|
|
205
|
+
return false;
|
|
206
|
+
}
|
|
207
|
+
return this.presenter.activeGroupId() !== node.id;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Collapsed-group summary view (`groupCollapseSummary`). Level-2 factory
|
|
211
|
+
* keeps the count/progress/status derivation out of the organism; the
|
|
212
|
+
* template reads `groupSummary.text(node)` / `.showStatus(node)` /
|
|
213
|
+
* `.srText(node)` on collapsed group headers.
|
|
214
|
+
*/
|
|
215
|
+
groupSummary = createStepperGroupSummary({
|
|
216
|
+
summaryMode: () => this.config.groupCollapseSummary,
|
|
217
|
+
isCollapsed: (node) => this.isGroupCollapsed(node),
|
|
218
|
+
});
|
|
219
|
+
/**
|
|
220
|
+
* Collapsed-group pointer-navigation view. `isNavigable` drives the
|
|
221
|
+
* `--navigable` cursor cue; `select` is the header click handler that
|
|
222
|
+
* enters the branch at its first reachable step. Level-2 factory.
|
|
223
|
+
*/
|
|
224
|
+
groupNavigation = createStepperGroupNavigation({
|
|
225
|
+
presenter: this.presenter,
|
|
226
|
+
isCollapsed: (node) => this.isGroupCollapsed(node),
|
|
227
|
+
navigationEnabled: () => this.resolvedHeaderNavigation() !== 'none',
|
|
228
|
+
});
|
|
105
229
|
/**
|
|
106
230
|
* `aria-label` cascade: input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`.
|
|
107
|
-
* Pillar 2.
|
|
108
231
|
*/
|
|
109
232
|
resolvedAriaLabel = computed(() => {
|
|
110
233
|
if (this.ariaLabelledBy()) {
|
|
@@ -122,15 +245,47 @@ class CngxStepper {
|
|
|
122
245
|
activeStepId = this.presenter.activeStepId;
|
|
123
246
|
stepsOnly = this.presenter.stepsOnly;
|
|
124
247
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
248
|
+
* Strip projection honouring the focus-driven group-collapse policy.
|
|
249
|
+
* Drives the classic strip `@for`; collapsed groups contribute their
|
|
250
|
+
* header node alone. Sourced from the presenter, never re-derived here
|
|
251
|
+
* (host-token contract). Panels still render every step via
|
|
252
|
+
* {@link stepsOnly}, so collapsed steps keep their panel ids in the DOM.
|
|
127
253
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
254
|
+
visibleStripNodes = this.presenter.visibleStripNodes;
|
|
255
|
+
/**
|
|
256
|
+
* Distance of a step from the active one, published per-step as
|
|
257
|
+
* `--cngx-step-distance` under `density: 'auto'`. Drives the
|
|
258
|
+
* distance-weighted label budget so the step furthest from the active
|
|
259
|
+
* one collapses first. `flatIndex` is `-1` for group nodes, but only
|
|
260
|
+
* step nodes carry the binding. Pure derived data - no layout read.
|
|
261
|
+
*/
|
|
262
|
+
stepDistanceOf(node) {
|
|
263
|
+
return Math.abs(node.flatIndex - this.activeStepIndex());
|
|
130
264
|
}
|
|
131
265
|
/** Per-step predicates + slot-context builders (Level-2 factory). */
|
|
132
|
-
slotContext = createStepperSlotContextBuilders({
|
|
133
|
-
|
|
266
|
+
slotContext = createStepperSlotContextBuilders({
|
|
267
|
+
presenter: this.presenter,
|
|
268
|
+
stepsOnly: this.stepsOnly,
|
|
269
|
+
i18n: this.i18n,
|
|
270
|
+
});
|
|
271
|
+
/**
|
|
272
|
+
* Shared state view - feeds the mobile-collapse `text` / `dots` branches,
|
|
273
|
+
* which otherwise rendered only `Step N of M` (text) or `node.state()`
|
|
274
|
+
* (dots) and dropped the per-step error the desktop branch shows.
|
|
275
|
+
*/
|
|
276
|
+
stateView = createStepperStateView({
|
|
277
|
+
presenter: this.presenter,
|
|
278
|
+
stepsOnly: this.stepsOnly,
|
|
279
|
+
});
|
|
280
|
+
/**
|
|
281
|
+
* Aggregate error phrase for the mobile-collapse text branch. Feeds the
|
|
282
|
+
* real reason (the `[error]` string / aggregator label) through the
|
|
283
|
+
* resolver so the collapsed view shows "Card declined", not the generic
|
|
284
|
+
* "errored" status word - the strip's per-step row is not on screen in
|
|
285
|
+
* collapsed mode, so this line is the only error surface.
|
|
286
|
+
*/
|
|
287
|
+
mobileErrorSummary = computed(() => resolveStepperErrorSummary(this.stateView, this.stepsOnly, this.i18n, (node) => this.stepErrorMessageOf(node) ?? undefined), ...(ngDevMode ? [{ debugName: "mobileErrorSummary" }] : /* istanbul ignore next */ []));
|
|
288
|
+
/** Commit-in-flight flag - drives the host `aria-busy` binding.*/
|
|
134
289
|
isCommitting = computed(() => this.presenter.commitState.status() === 'pending', ...(ngDevMode ? [{ debugName: "isCommitting" }] : /* istanbul ignore next */ []));
|
|
135
290
|
stepHeaderId(node) {
|
|
136
291
|
return `${node.id}-header`;
|
|
@@ -142,18 +297,66 @@ class CngxStepper {
|
|
|
142
297
|
return `${node.id}-desc`;
|
|
143
298
|
}
|
|
144
299
|
/** Live-region + per-step + group SR phrase builders (Level-2 factory). */
|
|
145
|
-
announcement = createStepperAnnouncementBuilders({
|
|
300
|
+
announcement = createStepperAnnouncementBuilders({
|
|
301
|
+
presenter: this.presenter,
|
|
302
|
+
stepsOnly: this.stepsOnly,
|
|
303
|
+
i18n: this.i18n,
|
|
304
|
+
});
|
|
146
305
|
handleHeaderClick(node) {
|
|
147
|
-
|
|
306
|
+
// Inert headers in 'none' mode: the footer is the sole control.
|
|
307
|
+
if (this.resolvedHeaderNavigation() === 'none') {
|
|
148
308
|
return;
|
|
149
309
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
310
|
+
// No-op when the header is not reachable - disabled, linear-blocked,
|
|
311
|
+
// or a commit is in flight. The reachability gate (which now includes
|
|
312
|
+
// `busy()`) is the single source, so a mid-commit click cannot
|
|
313
|
+
// supersede the pending transition.
|
|
314
|
+
if (node.kind !== 'step' || !this.isHeaderReachable(node)) {
|
|
315
|
+
return;
|
|
153
316
|
}
|
|
317
|
+
this.presenter.select(node.flatIndex);
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* `true` when the step header at `node` may be navigated to right now:
|
|
321
|
+
* structurally reachable (`canNavigateTo` - not disabled, not
|
|
322
|
+
* linear-blocked) AND not while a commit is in flight (`busy()`). The
|
|
323
|
+
* busy gate mirrors the footer nav atoms, which disable on
|
|
324
|
+
* `!canGo* || busy()` - so the strip and the footer lock together
|
|
325
|
+
* during an async transition instead of letting a header click
|
|
326
|
+
* supersede the pending commit. Reads the host contract, never the
|
|
327
|
+
* presenter's private linear-block check.
|
|
328
|
+
*/
|
|
329
|
+
isHeaderReachable(node) {
|
|
330
|
+
return this.presenter.canNavigateTo(node.flatIndex) && !this.presenter.busy();
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* `'true'` on a header that cannot be navigated to, `null` otherwise.
|
|
334
|
+
* Folds two channels into one binding: a `disabled` step and a
|
|
335
|
+
* linear-unreachable step both read as `aria-disabled`, so the gate is
|
|
336
|
+
* announced rather than silently ignored. The header stays focusable
|
|
337
|
+
* per the ARIA composite-widget disabled-focusable rule. In
|
|
338
|
+
* `'visited'` + `linear=false` this is byte-identical to the
|
|
339
|
+
* prior `node.disabled()`-only binding, since `canNavigateTo` returns
|
|
340
|
+
* `true` for every enabled step when linear is off.
|
|
341
|
+
*/
|
|
342
|
+
headerAriaDisabled(node) {
|
|
343
|
+
return this.isHeaderReachable(node) ? null : 'true';
|
|
154
344
|
}
|
|
155
345
|
/** Strip-scoped arrow-key handler. See {@link createStepperStripKeyboardNav}. */
|
|
156
|
-
handleStripKeyDown = createStepperStripKeyboardNav({
|
|
346
|
+
handleStripKeyDown = createStepperStripKeyboardNav({
|
|
347
|
+
presenter: this.presenter,
|
|
348
|
+
hostElement: this.hostElement,
|
|
349
|
+
flatStepCount: () => this.flatSteps().length,
|
|
350
|
+
stepButtonIdFor: (id) => `${id}-header`,
|
|
351
|
+
// Defers the post-move focus to afterNextRender so arrow-key
|
|
352
|
+
// navigation across a collapsed group boundary lands on the target
|
|
353
|
+
// button after the strip re-renders its node set.
|
|
354
|
+
injector: this.injector,
|
|
355
|
+
// Off in 'none' mode (inert labels) and while a commit is in flight,
|
|
356
|
+
// so arrow-key navigation locks with the headers + footer during an
|
|
357
|
+
// async transition.
|
|
358
|
+
enabled: () => this.resolvedHeaderNavigation() !== 'none' && !this.presenter.busy(),
|
|
359
|
+
});
|
|
157
360
|
/**
|
|
158
361
|
* Clear the presenter's `lastFailedIndex`. Lets template-ref consumers
|
|
159
362
|
* (`#s="cngxStepper"`) dismiss the rejection decoration without injecting
|
|
@@ -170,7 +373,7 @@ class CngxStepper {
|
|
|
170
373
|
return this.stepDirectiveById().get(id)?.contentTemplate()?.templateRef ?? null;
|
|
171
374
|
}
|
|
172
375
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxStepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
173
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxStepper, isStandalone: true, selector: "cngx-stepper", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, skin: { classPropertyName: "skin", publicName: "skin", isSignal: true, isRequired: false, transformFunction: null }, connectors: { classPropertyName: "connectors", publicName: "connectors", isSignal: true, isRequired: false, transformFunction: null }, showStepCount: { classPropertyName: "showStepCount", publicName: "showStepCount", isSignal: true, isRequired: false, transformFunction: null }, mobileIndicatorPosition: { classPropertyName: "mobileIndicatorPosition", publicName: "mobileIndicatorPosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, listeners: { "keydown": "handleStripKeyDown($event)" }, properties: { "attr.aria-roledescription": "stepperRoleDescription()", "attr.aria-orientation": "presenter.orientation()", "attr.data-orientation": "presenter.orientation()", "attr.data-skin": "hostAttrs.resolvedSkin()", "attr.data-connectors": "hostAttrs.resolvedConnectors() ? 'true' : null", "attr.data-mobile-indicator-position": "hostAttrs.resolvedMobileIndicatorPosition()", "attr.aria-label": "resolvedAriaLabel()", "attr.aria-labelledby": "ariaLabelledBy()", "attr.aria-busy": "isCommitting() ? \"true\" : null", "class.cngx-stepper": "true" }, classAttribute: "cngx-stepper" }, providers: [{ provide: CNGX_STEP_PANEL_HOST, useExisting: CngxStepper }], queries: [{ propertyName: "stepDirectives", predicate: CngxStep, descendants: true, isSignal: true }, { propertyName: "indicatorSlot", first: true, predicate: CngxStepIndicator, descendants: true, isSignal: true }, { propertyName: "badgeSlot", first: true, predicate: CngxStepBadge, descendants: true, isSignal: true }, { propertyName: "busySpinnerSlot", first: true, predicate: CngxStepBusySpinner, descendants: true, isSignal: true }, { propertyName: "rejectionSlot", first: true, predicate: CngxStepRejection, descendants: true, isSignal: true }, { propertyName: "groupHeaderSlot", first: true, predicate: CngxStepGroupHeader, descendants: true, isSignal: true }, { propertyName: "emptySlot", first: true, predicate: CngxStepperEmpty, descendants: true, isSignal: true }], exportAs: ["cngxStepper"], hostDirectives: [{ directive: i1.CngxStepperPresenter, inputs: ["activeStepIndex", "activeStepIndex", "linear", "linear", "orientation", "orientation", "commitAction", "commitAction", "commitMode", "commitMode"], outputs: ["activeStepIndexChange", "activeStepIndexChange"] }, { directive: i2.CngxRovingTabindex, inputs: ["orientation", "orientation"] }, { directive: i1.CngxStepperSwipeNav, inputs: ["mobileSwipe", "mobileSwipe"] }, { directive: i2.CngxFocusRestore }], ngImport: i0, template: "@if (flatSteps().length === 0) {\n @let emptyTpl = templates.empty();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n} @else if (displayMode() === 'text') {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text\" [live]=\"false\" />\n\n <div\n class=\"cngx-stepper__panels\"\n [class.cngx-stepper__panels--swipeable]=\"swipeNav.swipeEnabled()\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n} @else if (displayMode() === 'dots') {\n <div class=\"cngx-stepper__mobile-dots\">\n @for (node of stepsOnly(); track node.id; let i = $index) {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__mobile-dot\"\n [class.cngx-stepper__mobile-dot--active]=\"slotContext.isActive(node)\"\n [class.cngx-stepper__mobile-dot--completed]=\"i < activeStepIndex()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-label]=\"i18n.selectedStep(node.label(), i + 1, stepsOnly().length)\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n ></button>\n }\n </div>\n @if (showStepCount()) {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text cngx-stepper__mobile-text--caption\" [live]=\"false\" />\n }\n\n <div\n class=\"cngx-stepper__panels\"\n [class.cngx-stepper__panels--swipeable]=\"swipeNav.swipeEnabled()\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n} @else {\n <div class=\"cngx-stepper__strip\" role=\"presentation\">\n @for (node of flatSteps(); track node.id) {\n @if (node.kind === 'group') {\n <div\n class=\"cngx-stepper__group-header\"\n role=\"group\"\n [attr.aria-roledescription]=\"groupRoleDescription()\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n templates.groupHeader() ?? defaultGroupHeader;\n context: slotContext.groupHeaderContextFor(node)\n \"\n ></ng-container>\n <span class=\"cngx-sr-only\" [id]=\"stepDescriptorId(node)\">{{ announcement.groupStatusPhrase(node) }}</span>\n </div>\n } @else {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__step\"\n [class.cngx-stepper__step--rejected]=\"slotContext.showRejection(node)\"\n [id]=\"stepHeaderId(node)\"\n [attr.tabindex]=\"slotContext.isActive(node) ? '0' : '-1'\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-controls]=\"stepPanelId(node)\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"slotContext.isStepBusy(node) ? 'true' : null\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n >\n <span\n class=\"cngx-stepper__indicator\"\n aria-hidden=\"true\"\n [attr.data-state]=\"node.state()\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n templates.indicator() ?? defaultIndicator;\n context: slotContext.indicatorContextFor(node)\n \"\n ></ng-container>\n @if (slotContext.showErrorBadge(node)) {\n <span class=\"cngx-stepper__badge\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.badge() ?? defaultBadge;\n context: slotContext.badgeContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n </span>\n <span class=\"cngx-stepper__label\">\n @let labelTpl = labelTemplateFor(node.id);\n @if (labelTpl) {\n <ng-container\n *ngTemplateOutlet=\"labelTpl; context: slotContext.stepLabelContextFor(node)\"\n ></ng-container>\n } @else {\n {{ node.label() }}\n }\n </span>\n <span class=\"cngx-stepper__status-pill\" aria-hidden=\"true\">{{ statusLabelFor(node) }}</span>\n @if (slotContext.showRejection(node)) {\n <span class=\"cngx-stepper__rejection-icon\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.rejection() ?? defaultRejection;\n context: slotContext.rejectionContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n @if (slotContext.isStepBusy(node)) {\n <span class=\"cngx-stepper__busy-spinner\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.busySpinner() ?? defaultBusySpinner;\n context: slotContext.busySpinnerContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n <span class=\"cngx-sr-only\" [id]=\"stepDescriptorId(node)\">{{ announcement.statusPhrase(node) }}</span>\n </button>\n }\n }\n </div>\n\n <div class=\"cngx-stepper__panels\">\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n}\n\n<!--\n Footer slot - placed OUTSIDE the display-mode @if/@else so it projects\n at view-creation time (content children register after the empty branch\n is active, so an in-branch <ng-content> would be discarded and never\n re-project). Renders after the panels in every mode.\n-->\n<ng-content select=\"cngx-stepper-footer, [cngxStepperFooter]\"></ng-content>\n\n<span class=\"cngx-stepper__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcement.liveAnnouncement()\n}}</span>\n\n<ng-template #defaultIndicator let-position>\n <span class=\"cngx-stepper__indicator-glyph\">{{ position }}</span>\n</ng-template>\n<ng-template #defaultBadge>{{ glyphs.errorBadge }}</ng-template>\n<ng-template #defaultBusySpinner></ng-template>\n<ng-template #defaultRejection>{{ glyphs.rejectionIcon }}</ng-template>\n<ng-template #defaultGroupHeader let-group=\"group\">\n <span class=\"cngx-stepper__group-label\">{{ group.label() }}</span>\n</ng-template>\n", styles: ["@layer cngx.tokens{@property --cngx-step-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-step-strip-padding{syntax: \"*\"; inherits: false; initial-value: .5rem 0;}@property --cngx-step-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-step-padding-inline{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-step-padding-compact{syntax: \"*\"; inherits: false; initial-value: .375rem .5rem;}@property --cngx-step-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .55;}@property --cngx-step-focus-ring{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.66 .19 50);}@property --cngx-step-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 3px;}@property --cngx-step-indicator-size{syntax: \"*\"; inherits: false; initial-value: 1.75rem;}@property --cngx-step-group-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-step-group-indent{syntax: \"*\"; inherits: false; initial-value: 1.5rem;}@property --cngx-step-badge-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-step-error-badge-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-step-error-badge-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-badge-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-step-badge-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}@property --cngx-step-rejection-outline-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-step-rejection-outline-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.62 .15 60);}@property --cngx-step-rejection-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-step-rejection-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-step-rejection-icon-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-step-rejection-icon-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.62 .15 60);}@property --cngx-step-rejection-icon-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-rejection-icon-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-step-rejection-icon-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}}@layer cngx.components{cngx-stepper{display:block;container-type:inline-size;container-name:cngx-stepper}.cngx-stepper__strip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:var(--cngx-step-gap, .5rem);padding:var(--cngx-step-strip-padding, .5rem 0);overflow-x:auto;overflow-y:hidden}.cngx-stepper__step{display:inline-flex;align-items:center;gap:var(--cngx-step-gap, .5rem);padding:var(--cngx-step-padding, .5rem .75rem);border:0;background:transparent;cursor:pointer;font:inherit;text-align:start;white-space:nowrap}.cngx-stepper__step[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-step-disabled-opacity, .55)}.cngx-stepper__step:focus-visible{outline:var(--cngx-step-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-step-focus-offset, 3px)}.cngx-stepper__indicator{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-indicator-size, 1.75rem);height:var(--cngx-step-indicator-size, 1.75rem);border-radius:50%;flex:0 0 auto}.cngx-stepper__label{flex:1 1 auto;min-width:0}.cngx-stepper__panels{display:block}.cngx-stepper__panels--swipeable{touch-action:pan-y}.cngx-stepper__panel{display:block;padding:var(--cngx-step-padding, .5rem .75rem)}@container cngx-stepper (max-width: 600px){.cngx-stepper__panel{padding:var(--cngx-step-padding-compact, .375rem .5rem)}}.cngx-stepper__panel[hidden]{display:none}.cngx-stepper__group-header{display:inline-flex;align-items:center;padding:var(--cngx-step-padding, .5rem .75rem);font-weight:var(--cngx-step-group-font-weight, 600)}.cngx-stepper__badge{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-badge-size, 1.25rem);height:var(--cngx-step-badge-size, 1.25rem);border-radius:50%;background:var(--cngx-step-error-badge-color, oklch(.45 .15 25));color:var(--cngx-step-error-badge-text-color, oklch(1 0 0));font-size:var(--cngx-step-badge-font-size, .75em);font-weight:var(--cngx-step-badge-font-weight, 700);flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-stepper__step--rejected{outline:var(--cngx-step-rejection-outline-width, 1px) solid var(--cngx-step-rejection-outline-color, oklch(.62 .15 60));outline-offset:var(--cngx-step-rejection-outline-offset, 2px);background:var(--cngx-step-rejection-bg, transparent)}.cngx-stepper__status-pill{display:none}.cngx-stepper__rejection-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-rejection-icon-size, 1.25rem);height:var(--cngx-step-rejection-icon-size, 1.25rem);border-radius:50%;background:var(--cngx-step-rejection-icon-bg, oklch(.62 .15 60));color:var(--cngx-step-rejection-icon-color, oklch(1 0 0));font-size:var(--cngx-step-rejection-icon-font-size, .75em);font-weight:var(--cngx-step-rejection-icon-font-weight, 700);flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}cngx-stepper[data-orientation=horizontal] .cngx-stepper__step[data-step-depth=\"1\"],cngx-stepper[data-orientation=horizontal] .cngx-stepper__group-header[data-step-depth=\"1\"]{margin-inline-start:var(--cngx-step-group-indent, 1.5rem)}cngx-stepper[data-orientation=vertical] .cngx-stepper__strip{flex-direction:column;flex-wrap:nowrap;overflow-x:hidden;overflow-y:auto}cngx-stepper[data-orientation=vertical]{display:grid;grid-template-columns:minmax(8rem,max-content) 1fr;gap:var(--cngx-step-gap, .5rem);align-items:start}cngx-stepper[data-orientation=vertical] .cngx-stepper__step[data-step-depth=\"1\"],cngx-stepper[data-orientation=vertical] .cngx-stepper__group-header[data-step-depth=\"1\"]{padding-inline-start:calc(var(--cngx-step-padding-inline, .75rem) + var(--cngx-step-group-indent, 1.5rem))}@media(prefers-reduced-motion:reduce){.cngx-stepper__step,.cngx-stepper__indicator{transition:none!important}}}\n", "@layer cngx.tokens{@property --cngx-step-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-step-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-step-indicator-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,currentColor 10%,transparent);}@property --cngx-step-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-step-indicator-font-size{syntax: \"*\"; inherits: false; initial-value: .85em;}@property --cngx-step-indicator-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-step-indicator-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-indicator-disabled-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,currentColor 5%,transparent);}@property --cngx-step-completed-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.5 .15 145);}@property --cngx-step-errored-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-step-active-fill{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-hover-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-busy-spinner-size{syntax: \"<length>\"; inherits: false; initial-value: .875rem;}@property --cngx-step-busy-spinner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}}@layer cngx.components{@scope(.cngx-stepper){:scope{color:var(--cngx-step-color, currentColor);background:var(--cngx-step-bg, transparent)}.cngx-stepper__indicator{position:relative;background:var(--cngx-step-indicator-bg, color-mix(in srgb, currentColor 10%, transparent));color:var(--cngx-step-indicator-color, currentColor);font-size:var(--cngx-step-indicator-font-size, .85em);font-weight:var(--cngx-step-indicator-font-weight, 600);transition:background-color .12s ease}.cngx-stepper__indicator .cngx-stepper__badge{position:absolute;top:-8px;right:-8px;margin-inline-start:0}.cngx-stepper__indicator[data-state=success]{background:var(--cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)));color:var(--cngx-step-indicator-active-color, oklch(1 0 0))}.cngx-stepper__indicator[data-state=success]:has(.cngx-stepper__indicator-glyph):before{content:\"\\2713\";font-weight:700}.cngx-stepper__indicator[data-state=success] .cngx-stepper__indicator-glyph{display:none}.cngx-stepper__indicator[data-state=error]{background:transparent;color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));box-shadow:inset 0 0 0 1px var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-stepper__indicator[data-state=disabled]{background:var( --cngx-step-indicator-disabled-bg, color-mix(in srgb, currentColor 5%, transparent) )}.cngx-stepper__step[aria-current=step] .cngx-stepper__indicator{background:var(--cngx-step-active-color, var(--cngx-step-active-fill));color:var(--cngx-step-indicator-active-color, oklch(1 0 0))}.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{background:var(--cngx-step-pending-color, var(--cngx-step-active-color, var(--cngx-step-active-fill)));animation:cngx-stepper-pulse 1.2s ease-in-out infinite}.cngx-stepper__busy-spinner{display:inline-block;width:var(--cngx-step-busy-spinner-size, .875rem);height:var(--cngx-step-busy-spinner-size, .875rem);border-radius:50%;border:2px solid var(--cngx-step-busy-spinner-color, currentColor);border-top-color:transparent;animation:cngx-stepper-spin .8s linear infinite;flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-stepper__busy-spinner:not(:empty){width:auto;height:auto;border:0;border-radius:0;animation:none}.cngx-stepper__step:hover:not([aria-disabled=true]){background:var(--cngx-step-hover-bg, color-mix(in srgb, currentColor 8%, transparent));cursor:pointer}@media(prefers-reduced-motion:reduce){.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator,.cngx-stepper__busy-spinner{animation:none}}}}@layer cngx.tokens{@property --cngx-step-linear-dot-fill{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-status-pill-bg-upcoming{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,currentColor 6%,transparent);}@property --cngx-step-status-pill-bg-in-progress{syntax: \"*\"; inherits: false; initial-value: oklch(.66 .19 50);}@property --cngx-step-status-pill-bg-done{syntax: \"*\"; inherits: false; initial-value: oklch(.5 .15 145);}@property --cngx-step-status-pill-bg-errored{syntax: \"*\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-step-status-pill-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-chevron-tile-active{syntax: \"*\"; inherits: false; initial-value: oklch(.66 .19 50);}@property --cngx-step-chevron-tile-completed{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,oklch(.5 .15 145) 80%,transparent);}@property --cngx-step-chevron-tile-errored{syntax: \"*\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-step-chevron-tile-upcoming-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,currentColor 12%,transparent);}@property --cngx-step-chevron-tile-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-pill-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 999px;}@property --cngx-step-pill-segment-rail-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 6%,transparent);}@property --cngx-step-pill-segment-fill-active{syntax: \"*\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-pill-segment-fill-completed{syntax: \"*\"; inherits: true; initial-value: transparent;}@property --cngx-step-pill-segment-card-shadow{syntax: \"*\"; inherits: true; initial-value: 0 1px 2px color-mix(in srgb,currentColor 12%,transparent),0 1px 1px color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-connector-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 35%,transparent);}@property --cngx-step-connector-completed-color{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-connector-errored-color{syntax: \"*\"; inherits: true; initial-value: oklch(.55 .18 25);}@property --cngx-step-connector-pending-color{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-connector-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-step-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-step-chips-gap{syntax: \"<length-percentage>\"; inherits: false; initial-value: .5rem;}@property --cngx-step-chips-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 999px;}@property --cngx-step-chips-padding-inline{syntax: \"<length-percentage>\"; inherits: false; initial-value: .875rem;}@property --cngx-step-chips-padding-block{syntax: \"<length-percentage>\"; inherits: false; initial-value: .4rem;}@property --cngx-step-chips-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-chips-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 65%,transparent);}@property --cngx-step-chips-color-active{syntax: \"*\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-chips-bg-completed{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,oklch(.5 .15 145) 12%,transparent);}@property --cngx-step-chips-color-completed{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-breadcrumb-gap{syntax: \"<length-percentage>\"; inherits: false; initial-value: .5rem;}@property --cngx-step-breadcrumb-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 6px;}@property --cngx-step-breadcrumb-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 48%,transparent);}@property --cngx-step-breadcrumb-color-active{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 92%,transparent);}@property --cngx-step-breadcrumb-color-completed{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 82%,transparent);}@property --cngx-step-breadcrumb-fill-active{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 9%,transparent);}@property --cngx-step-breadcrumb-check-color{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}}@layer cngx.skins{@scope(.cngx-stepper[data-skin=linear-minimal]){.cngx-stepper__indicator{width:.5rem;height:.5rem;border-radius:50%;background:transparent;border:1px solid color-mix(in srgb,currentColor 35%,transparent);transition:background-color .12s ease,border-color .12s ease}.cngx-stepper__indicator .cngx-stepper__indicator-glyph{display:none}.cngx-stepper__step[aria-current=step] .cngx-stepper__indicator{background:var( --cngx-step-linear-dot-fill, var(--cngx-step-active-fill, currentColor) );border-color:var( --cngx-step-linear-dot-fill, var(--cngx-step-active-fill, currentColor) )}.cngx-stepper__indicator[data-state=success]{background:var( --cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)) );border-color:var( --cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)) )}.cngx-stepper__indicator[data-state=success]:before{content:none}.cngx-stepper__indicator[data-state=error]{background:var( --cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)) );border-color:var( --cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)) )}.cngx-stepper__step{position:relative}.cngx-stepper__step+.cngx-stepper__step:before{content:\"\";position:absolute;left:calc(-1 * var(--cngx-step-gap, .5rem));top:50%;width:var(--cngx-step-gap, .5rem);height:0;border-top:1px dashed color-mix(in srgb,currentColor 35%,transparent);transform:translateY(-50%)}}@scope(.cngx-stepper[data-skin=linear-minimal][data-orientation=vertical]){.cngx-stepper__step+.cngx-stepper__step:before{left:calc(var(--cngx-step-indicator-size, 1.75rem) / 2);top:calc(-1 * var(--cngx-step-gap, .5rem));width:1px;height:var(--cngx-step-gap, .5rem);border-top:0;border-left:2px solid color-mix(in srgb,currentColor 35%,transparent);transform:none}}@scope(.cngx-stepper[data-skin=classic][data-connectors=true]){.cngx-stepper__strip{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:0}.cngx-stepper__step{position:relative;flex:1 1 0;min-width:0;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:.5rem}.cngx-stepper__indicator,.cngx-stepper__label{position:relative;z-index:1}.cngx-stepper__label{white-space:normal}.cngx-stepper__busy-spinner{display:none}.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{color:var(--cngx-step-indicator-active-color, oklch(1 0 0));animation:cngx-step-connectors-pending-pulse 1.2s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{animation:none}}.cngx-stepper__rejection-icon{position:absolute;top:calc(.5rem + var(--cngx-step-indicator-size, 1.75rem) / 2);left:50%;transform:translate(-50%,-50%);margin:0;z-index:2}.cngx-stepper__step--rejected{outline:none}.cngx-stepper__step--rejected .cngx-stepper__label{color:var(--cngx-step-connector-errored-color)}.cngx-stepper__rejection-icon{background:var(--cngx-step-connector-errored-color)}.cngx-stepper__step[data-state=success] .cngx-stepper__rejection-icon{display:none}.cngx-stepper__step[data-state=success].cngx-stepper__step--rejected{outline:none}.cngx-stepper__step+.cngx-stepper__step:before{content:\"\";position:absolute;left:calc(-50% + var(--cngx-step-indicator-size, 1.75rem) / 2 + var(--cngx-step-connector-inset, 6px));width:calc(100% - var(--cngx-step-indicator-size, 1.75rem) - 2 * var(--cngx-step-connector-inset, 6px));top:calc(.5rem + var(--cngx-step-indicator-size, 1.75rem) / 2);height:var(--cngx-step-connector-width, 2px);background-color:var(--cngx-step-connector-color);transform:translateY(-50%);z-index:0}.cngx-stepper__step[data-state=success]+.cngx-stepper__step:before{background-color:var(--cngx-step-connector-completed-color)}.cngx-stepper__step+.cngx-stepper__step[aria-busy=true]:before{background-color:var(--cngx-step-connector-pending-color)}.cngx-stepper__step+.cngx-stepper__step.cngx-stepper__step--rejected:before{background-color:var(--cngx-step-connector-errored-color)}}@scope(.cngx-stepper[data-skin=classic][data-connectors=true][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:stretch}.cngx-stepper__step{flex:0 0 auto;flex-direction:row;align-items:center;justify-content:flex-start;text-align:start;min-height:calc(var(--cngx-step-indicator-size, 1.75rem) + 2 * var(--cngx-step-connector-inset, 6px) + 2rem)}.cngx-stepper__label{white-space:nowrap}.cngx-stepper__step+.cngx-stepper__step:before{left:calc(.75rem + var(--cngx-step-indicator-size, 1.75rem) / 2 - var(--cngx-step-connector-width, 2px) / 2);width:var(--cngx-step-connector-width, 2px);top:calc(-50% + var(--cngx-step-indicator-size, 1.75rem) / 2 + var(--cngx-step-connector-inset, 6px));height:calc(100% - var(--cngx-step-indicator-size, 1.75rem) - 2 * var(--cngx-step-connector-inset, 6px));transform:none}}@scope(.cngx-stepper[data-skin=stripe-status-rich]){.cngx-stepper__step{flex-direction:column;align-items:center;gap:.375rem}.cngx-stepper__status-pill{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:999px;font-size:.7em;font-weight:600;letter-spacing:.02em;background:var(--cngx-step-status-pill-bg-upcoming);color:color-mix(in srgb,currentColor 80%,transparent);text-transform:none}.cngx-stepper__step[aria-current=step] .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-in-progress);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-done);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]) .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-errored);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}}@scope(.cngx-stepper[data-skin=stripe-status-rich][data-orientation=vertical]){.cngx-stepper__step{flex-direction:row;align-items:center;gap:var(--cngx-step-gap, .5rem);justify-content:flex-start}.cngx-stepper__status-pill{margin-inline-start:auto}}@scope(.cngx-stepper[data-skin=path-chevron]){.cngx-stepper__strip{gap:.125rem}.cngx-stepper__step{flex:1 1 0;clip-path:polygon(0 0,calc(100% - .75rem) 0,100% 50%,calc(100% - .75rem) 100%,0 100%,.75rem 50%);padding-inline:calc(var(--cngx-step-padding-inline, .75rem) + .75rem);justify-content:center;text-align:center;background:var(--cngx-step-chevron-tile-upcoming-bg, color-mix(in srgb, currentColor 12%, transparent));color:color-mix(in srgb,currentColor 80%,transparent);border:0;transition:background-color .12s ease,color .12s ease}.cngx-stepper__step .cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step:first-child{clip-path:polygon(0 0,calc(100% - .75rem) 0,100% 50%,calc(100% - .75rem) 100%,0 100%)}.cngx-stepper__step:last-child{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,.75rem 50%)}.cngx-stepper__step:only-child{clip-path:none}.cngx-stepper__step[aria-current=step]{background:var(--cngx-step-chevron-tile-active);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=success]){background:var(--cngx-step-chevron-tile-completed);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){background:var(--cngx-step-chevron-tile-errored);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__indicator{display:none}.cngx-stepper__indicator[data-state=success]{display:inline-flex;background:transparent;width:auto;height:auto;padding:0;border:0}}@scope(.cngx-stepper[data-skin=path-chevron][data-orientation=vertical]){.cngx-stepper__strip{gap:0}.cngx-stepper__step{clip-path:polygon(0 0,50% var(--cngx-step-chevron-vertical-notch, .55rem),100% 0,100% calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)),50% 100%,0 calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)));padding-block:calc(var(--cngx-step-chevron-vertical-notch, .55rem) + .5rem);min-height:var(--cngx-step-chevron-vertical-min-height, 3.25rem)}.cngx-stepper__step+.cngx-stepper__step{margin-block-start:calc(-1 * var(--cngx-step-chevron-vertical-notch, .55rem) + var(--cngx-step-chevron-vertical-divider, .25rem))}.cngx-stepper__step .cngx-stepper__label{min-width:0;overflow-wrap:anywhere;line-height:1.3;text-align:center}.cngx-stepper__step .cngx-stepper__indicator{display:none}.cngx-stepper__step:first-child{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)),50% 100%,0 calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)))}.cngx-stepper__step:last-child{clip-path:polygon(0 0,50% var(--cngx-step-chevron-vertical-notch, .55rem),100% 0,100% 100%,0 100%)}}@scope(.cngx-stepper[data-skin=pill-segment]){.cngx-stepper__strip{gap:.25rem;padding:.25rem;border-radius:var(--cngx-step-pill-radius, 999px);background:var(--cngx-step-pill-segment-rail-bg);border:0}.cngx-stepper__step{flex:1 1 0;justify-content:center;gap:.5rem;background:transparent;border-radius:9999px;color:color-mix(in srgb,currentColor 60%,transparent);transition:background-color .12s ease,color .12s ease,box-shadow .12s ease}.cngx-stepper__step .cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step[aria-current=step]{background:var(--cngx-step-pill-segment-fill-active);color:currentColor;box-shadow:var(--cngx-step-pill-segment-card-shadow)}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){background:var(--cngx-step-pill-segment-fill-completed, transparent);color:color-mix(in srgb,currentColor 85%,transparent)}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-stepper__indicator{width:var(--cngx-step-pill-indicator-size, 1.375rem);height:var(--cngx-step-pill-indicator-size, 1.375rem);font-size:.72rem;flex:0 0 auto}.cngx-stepper__step:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-stepper__step[aria-current=step]:focus-visible{box-shadow:var(--cngx-step-pill-segment-card-shadow),inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}@scope(.cngx-stepper[data-skin=pill-segment][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:stretch;border-radius:16px}.cngx-stepper__step{justify-content:flex-start;align-items:center;text-align:start;border-radius:12px;padding-block:var(--cngx-step-pill-vertical-padding-block, 1.125rem);min-height:var(--cngx-step-pill-vertical-min-height, 3.75rem)}.cngx-stepper__step .cngx-stepper__label{min-width:0;overflow-wrap:anywhere;line-height:1.3}}@scope(.cngx-stepper[data-skin=chips]){.cngx-stepper__strip{gap:var(--cngx-step-chips-gap, .5rem);padding:0;background:transparent;border:0;flex-wrap:wrap}.cngx-stepper__step{gap:.375rem;padding-inline:var(--cngx-step-chips-padding-inline, .875rem);padding-block:var(--cngx-step-chips-padding-block, .4rem);border-radius:var(--cngx-step-chips-radius, 999px);background:var(--cngx-step-chips-bg, color-mix(in srgb, currentColor 8%, transparent));color:var(--cngx-step-chips-color, color-mix(in srgb, currentColor 65%, transparent));border:0;transition:background-color .12s ease,color .12s ease}.cngx-stepper__step[aria-current=step]{background:var(--cngx-step-chips-fill-active, var(--cngx-color-primary, oklch(.66 .19 50)));color:var(--cngx-step-chips-color-active, oklch(1 0 0))}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){background:var( --cngx-step-chips-bg-completed, color-mix(in srgb, var(--cngx-color-success, oklch(.5 .15 145)) 12%, transparent) );color:var(--cngx-step-chips-color-completed, var(--cngx-color-success, oklch(.5 .15 145)))}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__label:before{content:\"\\2713\";margin-inline-end:.3rem;font-weight:600}.cngx-stepper__indicator,.cngx-stepper__status-pill{display:none}.cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}@scope(.cngx-stepper[data-skin=chips][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:flex-start}.cngx-stepper__step{width:100%;justify-content:flex-start}}@scope(.cngx-stepper[data-skin=breadcrumb]){.cngx-stepper__strip{gap:var(--cngx-step-breadcrumb-gap, .5rem);padding:0;background:transparent;border:0;flex-wrap:wrap;align-items:center}.cngx-stepper__step{gap:.25rem;padding:0;background:transparent;border:0;color:var(--cngx-step-breadcrumb-color, color-mix(in srgb, currentColor 48%, transparent));transition:color .12s ease}.cngx-stepper__step:not(:last-child):after{content:var(--cngx-step-breadcrumb-separator, \"\\203a\");margin-inline-start:var(--cngx-step-breadcrumb-gap, .5rem);color:color-mix(in srgb,currentColor 30%,transparent);font-weight:400}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){color:var(--cngx-step-breadcrumb-color-completed, color-mix(in srgb, currentColor 82%, transparent));cursor:pointer}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__label:after{content:\"\\2713\";margin-inline-start:.3rem;color:var(--cngx-step-breadcrumb-check-color, var(--cngx-color-success, oklch(.5 .15 145)));font-weight:600}.cngx-stepper__step[aria-current=step]{color:var(--cngx-step-breadcrumb-color-active, color-mix(in srgb, currentColor 92%, transparent));font-weight:600}.cngx-stepper__step[aria-current=step] .cngx-stepper__label{background:var(--cngx-step-breadcrumb-fill-active, color-mix(in srgb, currentColor 9%, transparent));padding-inline:.5rem;padding-block:.2rem;border-radius:var(--cngx-step-breadcrumb-radius, 6px)}.cngx-stepper__indicator,.cngx-stepper__status-pill{display:none}.cngx-stepper__step:focus-visible{outline:0;border-radius:var(--cngx-step-breadcrumb-radius, 6px);box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}}@keyframes cngx-stepper-spin{to{transform:rotate(360deg)}}@keyframes cngx-stepper-pulse{0%,to{opacity:1}50%{opacity:.6}}@keyframes cngx-step-connectors-pending-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.12)}}.cngx-stepper[data-skin=path-chevron] .cngx-stepper__step:focus-visible{outline:0!important;outline-offset:0!important;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-stepper__mobile-text{display:inline-block;font:inherit;color:inherit}.cngx-stepper[data-mobile-indicator-position=bottom]{display:flex;flex-direction:column}.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-text,.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-dots,.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-text--caption{order:2}.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__panels{order:1}.cngx-stepper__mobile-dots{display:flex;justify-content:center;align-items:center;gap:var(--cngx-dot-step-gap, .5rem)}.cngx-stepper__mobile-text--caption{display:block;text-align:center;font-size:.8125rem;color:color-mix(in srgb,currentColor 70%,transparent);margin-block-start:.5rem}.cngx-stepper__mobile-dot{display:inline-block;width:var(--cngx-dot-step-size, .625rem);height:var(--cngx-dot-step-size, .625rem);padding:0;border:0;border-radius:50%;background:var(--cngx-dot-step-upcoming-bg, color-mix(in srgb, currentColor 18%, transparent));cursor:pointer;transition:background .15s ease-out,transform .15s ease-out}.cngx-stepper__mobile-dot[aria-disabled=true]{cursor:not-allowed}.cngx-stepper__mobile-dot--completed{background:var(--cngx-dot-step-completed-fill, var(--cngx-step-completed-color, currentColor))}.cngx-stepper__mobile-dot--active{background:var(--cngx-dot-step-active-fill, var(--cngx-step-active-fill, currentColor));transform:scale(1.25)}.cngx-stepper__mobile-dot[data-state=error]{background:var(--cngx-step-errored-color, currentColor)}@media(prefers-reduced-motion:reduce){.cngx-stepper__mobile-dot{transition:none}}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-rail-bg: oklch(.24 .005 240);--cngx-step-pill-segment-fill-active: oklch(.4 .008 240);--cngx-step-indicator-active-color: oklch(.98 0 0);--cngx-step-pill-segment-card-shadow: 0 1px 2px color-mix(in srgb, oklch(0 0 0) 55%, transparent)}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step{color:color-mix(in srgb,oklch(1 0 0) 60%,transparent)}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step[aria-current=step]{color:#f8f8f8}@media(prefers-color-scheme:dark){:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-rail-bg: oklch(.24 .005 240);--cngx-step-pill-segment-fill-active: oklch(.4 .008 240);--cngx-step-indicator-active-color: oklch(.98 0 0);--cngx-step-pill-segment-card-shadow: 0 1px 2px color-mix(in srgb, oklch(0 0 0) 55%, transparent)}:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step{color:color-mix(in srgb,oklch(1 0 0) 60%,transparent)}:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step[aria-current=step]{color:#f8f8f8}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }, { kind: "directive", type: CngxRovingItem, selector: "[cngxRovingItem]", inputs: ["cngxRovingItemDisabled"], exportAs: ["cngxRovingItem"] }, { kind: "component", type: CngxStepperCount, selector: "cngx-stepper-count", inputs: ["live", "format", "host"] }, { kind: "directive", type: CngxSwipe, selector: "[cngxSwipe]", inputs: ["threshold", "axis", "enabled"], outputs: ["swiped"], exportAs: ["cngxSwipe"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
376
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxStepper, isStandalone: true, selector: "cngx-stepper", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, skin: { classPropertyName: "skin", publicName: "skin", isSignal: true, isRequired: false, transformFunction: null }, connectors: { classPropertyName: "connectors", publicName: "connectors", isSignal: true, isRequired: false, transformFunction: null }, headerNavigation: { classPropertyName: "headerNavigation", publicName: "headerNavigation", isSignal: true, isRequired: false, transformFunction: null }, showStepCount: { classPropertyName: "showStepCount", publicName: "showStepCount", isSignal: true, isRequired: false, transformFunction: null }, mobileIndicatorPosition: { classPropertyName: "mobileIndicatorPosition", publicName: "mobileIndicatorPosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, listeners: { "keydown": "handleStripKeyDown($event)" }, properties: { "attr.aria-roledescription": "stepperRoleDescription()", "attr.aria-orientation": "presenter.orientation()", "attr.data-orientation": "presenter.orientation()", "attr.data-density": "stripDensity()", "attr.data-density-auto": "isDensityAuto() ? '' : null", "attr.data-skin": "hostAttrs.resolvedSkin()", "attr.data-connectors": "hostAttrs.resolvedConnectors() ? 'true' : null", "attr.data-mobile-indicator-position": "hostAttrs.resolvedMobileIndicatorPosition()", "attr.aria-label": "resolvedAriaLabel()", "attr.aria-labelledby": "ariaLabelledBy()", "attr.aria-busy": "isCommitting() ? \"true\" : null", "class.cngx-stepper": "true" }, classAttribute: "cngx-stepper" }, providers: [{ provide: CNGX_STEP_PANEL_HOST, useExisting: CngxStepper }], queries: [{ propertyName: "stepDirectives", predicate: CngxStep, descendants: true, isSignal: true }, { propertyName: "indicatorSlot", first: true, predicate: CngxStepIndicator, descendants: true, isSignal: true }, { propertyName: "badgeSlot", first: true, predicate: CngxStepBadge, descendants: true, isSignal: true }, { propertyName: "busySpinnerSlot", first: true, predicate: CngxStepBusySpinner, descendants: true, isSignal: true }, { propertyName: "rejectionSlot", first: true, predicate: CngxStepRejection, descendants: true, isSignal: true }, { propertyName: "errorSlot", first: true, predicate: CngxStepError, descendants: true, isSignal: true }, { propertyName: "groupHeaderSlot", first: true, predicate: CngxStepGroupHeader, descendants: true, isSignal: true }, { propertyName: "emptySlot", first: true, predicate: CngxStepperEmpty, descendants: true, isSignal: true }], exportAs: ["cngxStepper"], hostDirectives: [{ directive: i1.CngxStepperPresenter, inputs: ["activeStepIndex", "activeStepIndex", "linear", "linear", "orientation", "orientation", "commitAction", "commitAction", "commitMode", "commitMode"], outputs: ["activeStepIndexChange", "activeStepIndexChange"] }, { directive: i2.CngxRovingTabindex, inputs: ["orientation", "orientation"] }, { directive: i1.CngxStepperSwipeNav, inputs: ["mobileSwipe", "mobileSwipe"] }, { directive: i2.CngxFocusRestore }], ngImport: i0, template: "@if (flatSteps().length === 0) {\n @let emptyTpl = templates.empty();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n} @else if (displayMode() === 'text') {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text\" [live]=\"false\" />\n @if (stateView.hasAnyError()) {\n <span class=\"cngx-stepper__mobile-error\" role=\"status\" data-state=\"error\">\n <span class=\"cngx-stepper__mobile-error-glyph\" aria-hidden=\"true\">{{ glyphs.errorBadge }}</span>\n <span class=\"cngx-stepper__mobile-error-text\">{{ mobileErrorSummary() }}</span>\n </span>\n }\n\n <div\n class=\"cngx-stepper__panels\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n} @else if (displayMode() === 'dots') {\n <!--\n In 'none' mode the dots are inert list-item indicators (footer-only\n navigation); otherwise they are roving-tabindex buttons.\n -->\n <div\n class=\"cngx-stepper__mobile-dots\"\n [attr.role]=\"resolvedHeaderNavigation() === 'none' ? 'list' : null\"\n >\n @for (node of stepsOnly(); track node.id; let i = $index) {\n @if (resolvedHeaderNavigation() === 'none') {\n <span\n role=\"listitem\"\n class=\"cngx-stepper__mobile-dot cngx-stepper__mobile-dot--static\"\n [class.cngx-stepper__mobile-dot--active]=\"slotContext.isActive(node)\"\n [class.cngx-stepper__mobile-dot--completed]=\"i < activeStepIndex()\"\n [class.cngx-stepper__mobile-dot--error]=\"stateView.hasError(node)\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-label]=\"mobileDotAriaLabel(node, i)\"\n [attr.data-state]=\"mobileDotState(node)\"\n ></span>\n } @else {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__mobile-dot\"\n [class.cngx-stepper__mobile-dot--active]=\"slotContext.isActive(node)\"\n [class.cngx-stepper__mobile-dot--completed]=\"i < activeStepIndex()\"\n [class.cngx-stepper__mobile-dot--error]=\"stateView.hasError(node)\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-label]=\"mobileDotAriaLabel(node, i)\"\n [attr.data-state]=\"mobileDotState(node)\"\n [attr.aria-disabled]=\"headerAriaDisabled(node)\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n ></button>\n }\n }\n </div>\n @if (stateView.hasAnyError()) {\n <span class=\"cngx-stepper__mobile-error\" role=\"status\" data-state=\"error\">\n <span class=\"cngx-stepper__mobile-error-glyph\" aria-hidden=\"true\">{{ glyphs.errorBadge }}</span>\n <span class=\"cngx-stepper__mobile-error-text\">{{ mobileErrorSummary() }}</span>\n </span>\n }\n @if (showStepCount()) {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text cngx-stepper__mobile-text--caption\" [live]=\"false\" />\n }\n\n <div\n class=\"cngx-stepper__panels\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n} @else {\n <!--\n In 'none' mode the inert headers are list items, so the strip is a\n semantic list; otherwise it is a presentational container of\n roving-tabindex buttons.\n -->\n <div\n class=\"cngx-stepper__strip\"\n [attr.role]=\"resolvedHeaderNavigation() === 'none' ? 'list' : 'presentation'\"\n >\n @for (node of visibleStripNodes(); track node.id) {\n @if (node.kind === 'group') {\n <div\n class=\"cngx-stepper__group-header\"\n role=\"group\"\n [attr.aria-roledescription]=\"groupRoleDescription()\"\n [class.cngx-stepper__group-header--collapsed]=\"isGroupCollapsed(node)\"\n [class.cngx-stepper__group-header--active]=\"groupNavigation.isActive(node)\"\n [class.cngx-stepper__group-header--navigable]=\"groupNavigation.isNavigable(node)\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n (click)=\"groupNavigation.select(node)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n templates.groupHeader() ?? defaultGroupHeader;\n context: slotContext.groupHeaderContextFor(node)\n \"\n ></ng-container>\n @if (groupSummary.text(node); as summary) {\n <span class=\"cngx-stepper__group-summary\" [attr.data-state]=\"node.state()\" aria-hidden=\"true\">{{ summary }}</span>\n } @else if (groupSummary.showStatus(node)) {\n <span\n class=\"cngx-stepper__group-summary cngx-stepper__group-summary--status\"\n [attr.data-state]=\"node.state()\"\n aria-hidden=\"true\"\n ></span>\n }\n @if (groupSummary.srText(node); as srSummary) {\n <span class=\"cngx-sr-only\">{{ srSummary }}</span>\n }\n <span class=\"cngx-sr-only\" [id]=\"stepDescriptorId(node)\">{{ announcement.groupStatusPhrase(node) }}</span>\n </div>\n } @else if (resolvedHeaderNavigation() === 'none') {\n <!--\n Inert label header (headerNavigation 'none'): pure step\n indicator, no <button>, no cngxRovingItem, no (click), no\n tabindex. Footer is the sole navigation control. aria-current\n + status retained (Pillar 2).\n -->\n <span\n class=\"cngx-stepper__step cngx-stepper__step--static\"\n role=\"listitem\"\n [class.cngx-stepper__step--rejected]=\"slotContext.showRejection(node)\"\n [style.--cngx-step-distance]=\"isDensityAuto() ? stepDistanceOf(node) : null\"\n [id]=\"stepHeaderId(node)\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"slotContext.isStepBusy(node) ? 'true' : null\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n >\n <ng-container *ngTemplateOutlet=\"stepHeaderInner; context: { $implicit: node }\"></ng-container>\n </span>\n } @else {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__step\"\n [class.cngx-stepper__step--rejected]=\"slotContext.showRejection(node)\"\n [style.--cngx-step-distance]=\"isDensityAuto() ? stepDistanceOf(node) : null\"\n [id]=\"stepHeaderId(node)\"\n [attr.tabindex]=\"slotContext.isActive(node) ? '0' : '-1'\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-controls]=\"stepPanelId(node)\"\n [attr.aria-disabled]=\"headerAriaDisabled(node)\"\n [attr.aria-busy]=\"slotContext.isStepBusy(node) ? 'true' : null\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n >\n <ng-container *ngTemplateOutlet=\"stepHeaderInner; context: { $implicit: node }\"></ng-container>\n </button>\n }\n }\n </div>\n\n <!--\n Error messages live on their own row BELOW the strip, not inline in a\n step. A free-text message inside a horizontal/column strip item widens\n the shrink-to-fit step and tears the row; below the strip it has full\n width and wraps. Only steps with a real reason ([error] string or an\n aggregator label) appear - the bare 'errored' state is already carried\n by the indicator + badge, so it adds no text-only noise here.\n -->\n @if (stepErrorEntries().length) {\n <div class=\"cngx-stepper__error-summary\">\n @for (entry of stepErrorEntries(); track entry.id) {\n <p class=\"cngx-stepper__error-summary-item\" data-state=\"error\">\n @if (templates.stepError(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: entry.context\"></ng-container>\n } @else {\n <span class=\"cngx-stepper__error-summary-step\">{{ entry.label }}</span>\n <span class=\"cngx-stepper__error-summary-text\">{{ entry.message }}</span>\n }\n </p>\n }\n </div>\n }\n\n <div class=\"cngx-stepper__panels\">\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n}\n\n<!--\n Footer slot - placed OUTSIDE the display-mode @if/@else so it projects\n at view-creation time (content children register after the empty branch\n is active, so an in-branch <ng-content> would be discarded and never\n re-project). Renders after the panels in every mode.\n-->\n<ng-content select=\"cngx-stepper-footer, [cngxStepperFooter]\"></ng-content>\n\n<span class=\"cngx-stepper__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcement.liveAnnouncement()\n}}</span>\n\n<!--\n Shared strip-header body. Rendered identically by the focusable\n <button> ('visited') and the inert <span> ('none') branches so the\n indicator / badge / label / status / rejection / busy markup has a\n single source (Pillar 3). ngTemplateOutlet projects inline - no\n wrapper element is added, so the 'visited' DOM is unchanged.\n-->\n<ng-template #stepHeaderInner let-node>\n <span class=\"cngx-stepper__indicator\" aria-hidden=\"true\" [attr.data-state]=\"node.state()\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.indicator() ?? defaultIndicator;\n context: slotContext.indicatorContextFor(node)\n \"\n ></ng-container>\n @if (slotContext.showErrorBadge(node)) {\n <span class=\"cngx-stepper__badge\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.badge() ?? defaultBadge;\n context: slotContext.badgeContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n </span>\n <span class=\"cngx-stepper__label\">\n @let labelTpl = labelTemplateFor(node.id);\n @if (labelTpl) {\n <ng-container\n *ngTemplateOutlet=\"labelTpl; context: slotContext.stepLabelContextFor(node)\"\n ></ng-container>\n } @else {\n {{ node.label() }}\n }\n </span>\n <span class=\"cngx-stepper__status-pill\" aria-hidden=\"true\">{{ statusLabelFor(node) }}</span>\n @if (slotContext.showRejection(node)) {\n <span class=\"cngx-stepper__rejection-icon\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.rejection() ?? defaultRejection;\n context: slotContext.rejectionContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n @if (slotContext.isStepBusy(node)) {\n <span class=\"cngx-stepper__busy-spinner\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.busySpinner() ?? defaultBusySpinner;\n context: slotContext.busySpinnerContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n <span class=\"cngx-sr-only\" [id]=\"stepDescriptorId(node)\">{{ announcement.statusPhrase(node) }}</span>\n</ng-template>\n\n<ng-template #defaultIndicator let-position>\n <span class=\"cngx-stepper__indicator-glyph\">{{ position }}</span>\n</ng-template>\n<ng-template #defaultBadge>{{ glyphs.errorBadge }}</ng-template>\n<ng-template #defaultBusySpinner></ng-template>\n<ng-template #defaultRejection>{{ glyphs.rejectionIcon }}</ng-template>\n<ng-template #defaultGroupHeader let-group=\"group\">\n <span class=\"cngx-stepper__group-label\">{{ group.label() }}</span>\n</ng-template>\n", styles: ["@layer cngx.tokens{@property --cngx-step-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-step-strip-padding{syntax: \"*\"; inherits: false; initial-value: .5rem 0;}@property --cngx-step-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-step-padding-inline{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-step-padding-compact{syntax: \"*\"; inherits: false; initial-value: .375rem .5rem;}@property --cngx-step-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .55;}@property --cngx-step-focus-ring{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.66 .19 50);}@property --cngx-step-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 3px;}@property --cngx-step-indicator-size{syntax: \"*\"; inherits: false; initial-value: 1.75rem;}@property --cngx-step-group-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-step-group-indent{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-step-badge-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-step-error-badge-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-step-error-badge-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-badge-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-step-badge-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}@property --cngx-step-rejection-outline-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-step-rejection-outline-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.62 .15 60);}@property --cngx-step-rejection-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-step-rejection-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-step-rejection-icon-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-step-rejection-icon-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.62 .15 60);}@property --cngx-step-rejection-icon-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-rejection-icon-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-step-rejection-icon-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}@property --cngx-step-distance{syntax: \"<number>\"; inherits: false; initial-value: 0;}@property --cngx-step-shrink-weight{syntax: \"<number>\"; inherits: false; initial-value: 20;}@property --cngx-step-collapsed-min{syntax: \"*\"; inherits: false; initial-value: 3.25rem;}@property --cngx-step-collapsed-label-min{syntax: \"*\"; inherits: false; initial-value: 2ch;}@property --cngx-step-active-label-min{syntax: \"*\"; inherits: false; initial-value: 4rem;}@property --cngx-step-active-label-max{syntax: \"*\"; inherits: false; initial-value: 60cqi;}@property --cngx-stepper-group-chip-padding{syntax: \"*\"; inherits: true; initial-value: .125rem .5rem;}@property --cngx-stepper-group-chip-border-width{syntax: \"<length>\"; inherits: true; initial-value: 1px;}@property --cngx-stepper-group-chip-radius{syntax: \"<length>\"; inherits: true; initial-value: 999px;}@property --cngx-stepper-group-chip-font-size{syntax: \"*\"; inherits: true; initial-value: .8125em;}@property --cngx-stepper-group-chip-line-height{syntax: \"<number>\"; inherits: true; initial-value: 1.25;}}@layer cngx.components{cngx-stepper{display:block;container-type:inline-size;container-name:cngx-stepper}.cngx-stepper__strip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:var(--cngx-step-gap, .5rem);padding:var(--cngx-step-strip-padding, .5rem 0);overflow-x:auto;overflow-y:hidden}.cngx-stepper__step{display:inline-flex;align-items:center;gap:var(--cngx-step-gap, .5rem);padding:var(--cngx-step-padding, .5rem .75rem);border:0;background:transparent;cursor:pointer;font:inherit;text-align:start;white-space:nowrap}.cngx-stepper__step[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-step-disabled-opacity, .55)}.cngx-stepper__step--static{cursor:default;pointer-events:none}.cngx-stepper__step:focus-visible{outline:var(--cngx-step-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-step-focus-offset, 3px)}.cngx-stepper__indicator{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-indicator-size, 1.75rem);height:var(--cngx-step-indicator-size, 1.75rem);border-radius:50%;flex:0 0 auto}.cngx-stepper__label{flex:1 1 auto;min-width:0}cngx-stepper[data-density-auto] .cngx-stepper__step{min-width:var(--cngx-step-collapsed-min, 3.25rem);flex-shrink:calc(1 + var(--cngx-step-distance, 0) * var(--cngx-step-shrink-weight, 20))}cngx-stepper[data-density-auto] .cngx-stepper__step[aria-current=step]{flex-shrink:.25}cngx-stepper[data-density-auto] .cngx-stepper__step[aria-current=step] .cngx-stepper__label{min-width:var(--cngx-step-active-label-min, 4rem);max-width:var(--cngx-step-active-label-max, 60cqi)}cngx-stepper[data-density-auto] .cngx-stepper__label{max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cngx-stepper__panels{display:block}.cngx-stepper__panel{display:block;padding:var(--cngx-step-padding, .5rem .75rem)}@container cngx-stepper (max-width: 600px){.cngx-stepper__panel{padding:var(--cngx-step-padding-compact, .375rem .5rem)}}.cngx-stepper__panel[hidden]{display:none}.cngx-stepper__group-header{display:inline-flex;align-items:center;align-self:center;padding:var(--cngx-stepper-group-chip-padding, .125rem .5rem);border:var(--cngx-stepper-group-chip-border-width, 1px) solid var(--cngx-stepper-group-chip-border, color-mix(in srgb, currentColor 22%, transparent));border-radius:var(--cngx-stepper-group-chip-radius, 999px);background:var(--cngx-stepper-group-chip-bg, color-mix(in srgb, currentColor 6%, transparent));color:var(--cngx-stepper-group-chip-color, inherit);font-weight:var(--cngx-step-group-font-weight, 600);font-size:var(--cngx-stepper-group-chip-font-size, .8125em);line-height:var(--cngx-stepper-group-chip-line-height, 1.25)}.cngx-stepper__group-summary{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem);padding:var(--cngx-stepper-group-summary-padding, 0 .4em);min-width:var(--cngx-stepper-group-summary-size, 1.3em);height:var(--cngx-stepper-group-summary-size, 1.3em);border-radius:var(--cngx-stepper-group-summary-radius, 999px);font-size:var(--cngx-stepper-group-summary-font-size, .75em);font-weight:var(--cngx-stepper-group-summary-font-weight, 600);line-height:1;background:var( --cngx-stepper-group-summary-bg, color-mix(in srgb, currentColor 12%, transparent) );color:var(--cngx-stepper-group-summary-color, inherit)}.cngx-stepper__group-summary--status{min-width:0;width:var(--cngx-stepper-group-summary-dot-size, .6em);height:var(--cngx-stepper-group-summary-dot-size, .6em);padding:0;background:var(--cngx-stepper-group-summary-dot-color, currentColor)}.cngx-stepper__badge{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-badge-size, 1.25rem);height:var(--cngx-step-badge-size, 1.25rem);border-radius:50%;background:var(--cngx-step-error-badge-color, oklch(.45 .15 25));color:var(--cngx-step-error-badge-text-color, oklch(1 0 0));font-size:var(--cngx-step-badge-font-size, .75em);font-weight:var(--cngx-step-badge-font-weight, 700);flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-stepper__step--rejected{outline:var(--cngx-step-rejection-outline-width, 1px) solid var(--cngx-step-rejection-outline-color, oklch(.62 .15 60));outline-offset:var(--cngx-step-rejection-outline-offset, 2px);background:var(--cngx-step-rejection-bg, transparent)}.cngx-stepper__status-pill{display:none}.cngx-stepper__rejection-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-rejection-icon-size, 1.25rem);height:var(--cngx-step-rejection-icon-size, 1.25rem);border-radius:50%;background:var(--cngx-step-rejection-icon-bg, oklch(.62 .15 60));color:var(--cngx-step-rejection-icon-color, oklch(1 0 0));font-size:var(--cngx-step-rejection-icon-font-size, .75em);font-weight:var(--cngx-step-rejection-icon-font-weight, 700);flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}cngx-stepper[data-orientation=horizontal] .cngx-stepper__step[data-step-depth=\"1\"],cngx-stepper[data-orientation=horizontal] .cngx-stepper__group-header[data-step-depth=\"1\"]{margin-inline-start:var(--cngx-step-group-indent, 1.5rem)}cngx-stepper[data-orientation=vertical] .cngx-stepper__strip{flex-direction:column;flex-wrap:nowrap;overflow-x:hidden;overflow-y:auto}cngx-stepper[data-orientation=vertical]{display:grid;grid-template-columns:minmax(8rem,max-content) 1fr;gap:var(--cngx-step-gap, .5rem);align-items:start}cngx-stepper[data-orientation=vertical] .cngx-stepper__step[data-step-depth=\"1\"],cngx-stepper[data-orientation=vertical] .cngx-stepper__group-header[data-step-depth=\"1\"]{padding-inline-start:calc(var(--cngx-step-padding-inline, .75rem) + var(--cngx-step-group-indent, 1.5rem))}@media(prefers-reduced-motion:reduce){.cngx-stepper__step,.cngx-stepper__indicator{transition:none!important}}}\n", "@layer cngx.tokens{@property --cngx-step-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-step-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-step-indicator-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 10%,transparent);}@property --cngx-step-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-step-indicator-font-size{syntax: \"*\"; inherits: false; initial-value: .85em;}@property --cngx-step-indicator-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-step-indicator-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-indicator-disabled-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 5%,transparent);}@property --cngx-step-completed-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-errored-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-step-active-fill{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-hover-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-busy-spinner-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-step-busy-spinner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-stepper-group-chip-border{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 22%,transparent);}@property --cngx-stepper-group-chip-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 6%,transparent);}@property --cngx-stepper-group-chip-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-stepper-group-chip-active-border{syntax: \"*\"; inherits: true;}@property --cngx-stepper-group-chip-active-bg{syntax: \"*\"; inherits: true;}@property --cngx-stepper-group-chip-active-color{syntax: \"*\"; inherits: true;}}@layer cngx.components{@scope(.cngx-stepper){:scope{color:var(--cngx-step-color, currentColor);background:var(--cngx-step-bg, transparent)}.cngx-stepper__indicator{position:relative;background:var(--cngx-step-indicator-bg, color-mix(in srgb, currentColor 10%, transparent));color:var(--cngx-step-indicator-color, currentColor);font-size:var(--cngx-step-indicator-font-size, .85em);font-weight:var(--cngx-step-indicator-font-weight, 600);transition:background-color .12s ease}.cngx-stepper__indicator .cngx-stepper__badge{position:absolute;top:-8px;right:-8px;margin-inline-start:0}.cngx-stepper__indicator[data-state=success]{background:var(--cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)));color:var(--cngx-step-indicator-active-color, oklch(1 0 0))}.cngx-stepper__indicator[data-state=success]:has(.cngx-stepper__indicator-glyph):before{content:\"\\2713\";font-weight:700}.cngx-stepper__indicator[data-state=success] .cngx-stepper__indicator-glyph{display:none}.cngx-stepper__indicator[data-state=error]{background:transparent;color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));box-shadow:inset 0 0 0 2px var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-stepper__indicator[data-state=disabled]{background:var( --cngx-step-indicator-disabled-bg, color-mix(in srgb, currentColor 5%, transparent) )}.cngx-stepper__step[aria-current=step] .cngx-stepper__indicator{background:var(--cngx-step-active-color, var(--cngx-step-active-fill));color:var(--cngx-step-indicator-active-color, oklch(1 0 0))}.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{background:var( --cngx-step-pending-color, var(--cngx-step-active-color, var(--cngx-step-active-fill)) );animation:cngx-stepper-pulse 1.2s ease-in-out infinite}.cngx-stepper__busy-spinner{display:inline-block;width:var(--cngx-step-busy-spinner-size, .875rem);height:var(--cngx-step-busy-spinner-size, .875rem);border-radius:50%;border:2px solid var(--cngx-step-busy-spinner-color, currentColor);border-top-color:transparent;animation:cngx-stepper-spin .8s linear infinite;flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-stepper__error-summary{display:flex;flex-direction:column;gap:var(--cngx-step-error-gap, .25rem);padding:var(--cngx-step-error-summary-padding, .25rem 0 0)}.cngx-stepper__error-summary-item{margin:0;font-size:var(--cngx-step-error-font-size, .85rem);line-height:var(--cngx-step-error-line-height, 1.4);color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));overflow-wrap:anywhere}.cngx-stepper__error-summary-step{font-weight:var(--cngx-step-error-summary-step-weight, 600);margin-inline-end:var(--cngx-step-error-summary-step-gap, .375rem)}.cngx-stepper__busy-spinner:not(:empty){width:auto;height:auto;border:0;border-radius:0;animation:none}.cngx-stepper__step:hover:not([aria-disabled=true]){background:var(--cngx-step-hover-bg, color-mix(in srgb, currentColor 8%, transparent));cursor:pointer}@media(prefers-reduced-motion:reduce){.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator,.cngx-stepper__busy-spinner{animation:none}}}}@layer cngx.tokens{@property --cngx-step-linear-dot-fill{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-status-pill-bg-upcoming{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 6%,transparent);}@property --cngx-step-status-pill-bg-in-progress{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-status-pill-bg-done{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-status-pill-bg-errored{syntax: \"*\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-step-status-pill-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-chevron-tile-active{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-chevron-tile-completed{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,oklch(.5 .15 145) 80%,transparent);}@property --cngx-step-chevron-tile-errored{syntax: \"*\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-step-chevron-tile-upcoming-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 12%,transparent);}@property --cngx-step-chevron-tile-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-pill-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 999px;}@property --cngx-step-pill-segment-rail-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 6%,transparent);}@property --cngx-step-pill-segment-fill-active{syntax: \"*\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-pill-segment-fill-completed{syntax: \"*\"; inherits: true; initial-value: transparent;}@property --cngx-step-pill-segment-card-shadow{syntax: \"*\"; inherits: true; initial-value: 0 1px 2px color-mix(in srgb,currentColor 12%,transparent),0 1px 1px color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-connector-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 35%,transparent);}@property --cngx-step-connector-completed-color{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-connector-errored-color{syntax: \"*\"; inherits: true; initial-value: oklch(.55 .18 25);}@property --cngx-step-connector-pending-color{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-connector-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-step-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-step-chips-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-step-chips-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 999px;}@property --cngx-step-chips-padding-inline{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-step-chips-padding-block{syntax: \"*\"; inherits: false; initial-value: .4rem;}@property --cngx-step-chips-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-chips-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 65%,transparent);}@property --cngx-step-chips-color-active{syntax: \"*\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-chips-bg-completed{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,oklch(.5 .15 145) 12%,transparent);}@property --cngx-step-chips-color-completed{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-breadcrumb-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-step-breadcrumb-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 6px;}@property --cngx-step-breadcrumb-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 48%,transparent);}@property --cngx-step-breadcrumb-color-active{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 92%,transparent);}@property --cngx-step-breadcrumb-color-completed{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 82%,transparent);}@property --cngx-step-breadcrumb-fill-active{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 9%,transparent);}@property --cngx-step-breadcrumb-check-color{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}}@layer cngx.skins{@scope(.cngx-stepper[data-skin=linear-minimal]){.cngx-stepper__indicator{width:.5rem;height:.5rem;border-radius:50%;background:transparent;border:1px solid color-mix(in srgb,currentColor 35%,transparent);transition:background-color .12s ease,border-color .12s ease}.cngx-stepper__indicator .cngx-stepper__indicator-glyph{display:none}.cngx-stepper__step[aria-current=step] .cngx-stepper__indicator{background:var(--cngx-step-linear-dot-fill, var(--cngx-step-active-fill, currentColor));border-color:var(--cngx-step-linear-dot-fill, var(--cngx-step-active-fill, currentColor))}.cngx-stepper__indicator[data-state=success]{background:var(--cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)));border-color:var( --cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)) )}.cngx-stepper__indicator[data-state=success]:before{content:none}.cngx-stepper__indicator[data-state=error]{width:auto;height:auto;background:transparent;border:0}.cngx-stepper__indicator[data-state=error] .cngx-stepper__badge{position:static;margin-inline-start:0}.cngx-stepper__step{position:relative}.cngx-stepper__step+.cngx-stepper__step:before{content:\"\";position:absolute;left:calc(-1 * var(--cngx-step-gap, .5rem));top:50%;width:var(--cngx-step-gap, .5rem);height:0;border-top:1px dashed color-mix(in srgb,currentColor 35%,transparent);transform:translateY(-50%)}}@scope(.cngx-stepper[data-skin=linear-minimal][data-orientation=vertical]){.cngx-stepper__step+.cngx-stepper__step:before{left:calc(var(--cngx-step-indicator-size, 1.75rem) / 2);top:calc(-1 * var(--cngx-step-gap, .5rem));width:1px;height:var(--cngx-step-gap, .5rem);border-top:0;border-left:2px solid color-mix(in srgb,currentColor 35%,transparent);transform:none}}@scope(.cngx-stepper[data-skin=classic][data-connectors=true]){.cngx-stepper__strip{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:0}.cngx-stepper__step{position:relative;flex:1 1 0;min-width:0;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:.5rem}.cngx-stepper__indicator,.cngx-stepper__label{position:relative;z-index:1}.cngx-stepper__label{white-space:normal}.cngx-stepper__busy-spinner{display:none}.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{color:var(--cngx-step-indicator-active-color, oklch(1 0 0));animation:cngx-step-connectors-pending-pulse 1.2s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{animation:none}}.cngx-stepper__rejection-icon{position:absolute;top:calc(.5rem + var(--cngx-step-indicator-size, 1.75rem) / 2);left:50%;transform:translate(-50%,-50%);margin:0;z-index:2}.cngx-stepper__step--rejected{outline:none}.cngx-stepper__step--rejected .cngx-stepper__label{color:var(--cngx-step-connector-errored-color)}.cngx-stepper__rejection-icon{background:var(--cngx-step-connector-errored-color)}.cngx-stepper__step[data-state=success] .cngx-stepper__rejection-icon{display:none}.cngx-stepper__step[data-state=success].cngx-stepper__step--rejected{outline:none}.cngx-stepper__step+.cngx-stepper__step:before{content:\"\";position:absolute;left:calc(-50% + var(--cngx-step-indicator-size, 1.75rem) / 2 + var(--cngx-step-connector-inset, 6px));width:calc(100% - var(--cngx-step-indicator-size, 1.75rem) - 2 * var(--cngx-step-connector-inset, 6px));top:calc(.5rem + var(--cngx-step-indicator-size, 1.75rem) / 2);height:var(--cngx-step-connector-width, 2px);background-color:var(--cngx-step-connector-color);transform:translateY(-50%);z-index:0}.cngx-stepper__step[data-state=success]+.cngx-stepper__step:before{background-color:var(--cngx-step-connector-completed-color)}.cngx-stepper__step+.cngx-stepper__step[aria-busy=true]:before{background-color:var(--cngx-step-connector-pending-color)}.cngx-stepper__step+.cngx-stepper__step.cngx-stepper__step--rejected:before{background-color:var(--cngx-step-connector-errored-color)}}@scope(.cngx-stepper[data-skin=classic][data-connectors=true][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:stretch}.cngx-stepper__step{flex:0 0 auto;flex-direction:row;align-items:center;justify-content:flex-start;text-align:start;min-height:calc(var(--cngx-step-indicator-size, 1.75rem) + 2 * var(--cngx-step-connector-inset, 6px) + 2rem)}.cngx-stepper__label{white-space:nowrap}.cngx-stepper__step+.cngx-stepper__step:before{left:calc(.75rem + var(--cngx-step-indicator-size, 1.75rem) / 2 - var(--cngx-step-connector-width, 2px) / 2);width:var(--cngx-step-connector-width, 2px);top:calc(-50% + var(--cngx-step-indicator-size, 1.75rem) / 2 + var(--cngx-step-connector-inset, 6px));height:calc(100% - var(--cngx-step-indicator-size, 1.75rem) - 2 * var(--cngx-step-connector-inset, 6px));transform:none}}@scope(.cngx-stepper[data-skin=stripe-status-rich]){.cngx-stepper__step{flex-direction:column;align-items:center;gap:.375rem}.cngx-stepper__status-pill{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:999px;font-size:.7em;font-weight:600;letter-spacing:.02em;background:var(--cngx-step-status-pill-bg-upcoming);color:color-mix(in srgb,currentColor 80%,transparent);text-transform:none}.cngx-stepper__step[aria-current=step] .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-in-progress);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-done);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]) .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-errored);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}}@scope(.cngx-stepper[data-skin=stripe-status-rich][data-orientation=vertical]){.cngx-stepper__step{flex-direction:row;align-items:center;gap:var(--cngx-step-gap, .5rem);justify-content:flex-start}.cngx-stepper__status-pill{margin-inline-start:auto}}@scope(.cngx-stepper[data-skin=path-chevron]){.cngx-stepper__strip{gap:.125rem}.cngx-stepper__step{flex:1 1 0;clip-path:polygon(0 0,calc(100% - .75rem) 0,100% 50%,calc(100% - .75rem) 100%,0 100%,.75rem 50%);padding-inline:calc(var(--cngx-step-padding-inline, .75rem) + .75rem);justify-content:center;text-align:center;background:var( --cngx-step-chevron-tile-upcoming-bg, color-mix(in srgb, currentColor 12%, transparent) );color:color-mix(in srgb,currentColor 80%,transparent);border:0;transition:background-color .12s ease,color .12s ease}.cngx-stepper__step .cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step:first-child{clip-path:polygon(0 0,calc(100% - .75rem) 0,100% 50%,calc(100% - .75rem) 100%,0 100%)}.cngx-stepper__step:last-child{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,.75rem 50%)}.cngx-stepper__step:only-child{clip-path:none}.cngx-stepper__step[aria-current=step]{background:var(--cngx-step-chevron-tile-active);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=success]){background:var(--cngx-step-chevron-tile-completed);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){background:var(--cngx-step-chevron-tile-errored);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]) .cngx-stepper__label:before{content:var(--cngx-step-chevron-error-glyph, \"!\");margin-inline-end:.4rem;font-weight:700}.cngx-stepper__indicator{display:none}.cngx-stepper__indicator[data-state=success]{display:inline-flex;background:transparent;width:auto;height:auto;padding:0;border:0}}@scope(.cngx-stepper[data-skin=path-chevron][data-orientation=vertical]){.cngx-stepper__strip{gap:0}.cngx-stepper__step{clip-path:polygon(0 0,50% var(--cngx-step-chevron-vertical-notch, .55rem),100% 0,100% calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)),50% 100%,0 calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)));padding-block:calc(var(--cngx-step-chevron-vertical-notch, .55rem) + .5rem);min-height:var(--cngx-step-chevron-vertical-min-height, 3.25rem)}.cngx-stepper__step+.cngx-stepper__step{margin-block-start:calc(-1 * var(--cngx-step-chevron-vertical-notch, .55rem) + var(--cngx-step-chevron-vertical-divider, .25rem))}.cngx-stepper__step .cngx-stepper__label{min-width:0;overflow-wrap:anywhere;line-height:1.3;text-align:center}.cngx-stepper__step .cngx-stepper__indicator{display:none}.cngx-stepper__step:first-child{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)),50% 100%,0 calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)))}.cngx-stepper__step:last-child{clip-path:polygon(0 0,50% var(--cngx-step-chevron-vertical-notch, .55rem),100% 0,100% 100%,0 100%)}}@scope(.cngx-stepper[data-skin=pill-segment]){.cngx-stepper__strip{gap:.25rem;padding:.25rem;border-radius:var(--cngx-step-pill-radius, 999px);background:var(--cngx-step-pill-segment-rail-bg);border:0}.cngx-stepper__step{flex:1 1 0;justify-content:center;gap:.5rem;background:transparent;border-radius:9999px;color:color-mix(in srgb,currentColor 60%,transparent);transition:background-color .12s ease,color .12s ease,box-shadow .12s ease}.cngx-stepper__step .cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step[aria-current=step]{background:var(--cngx-step-pill-segment-fill-active);color:var(--cngx-step-pill-segment-color-active, currentColor);box-shadow:var(--cngx-step-pill-segment-card-shadow)}.cngx-stepper__step[aria-current=step] .cngx-stepper__indicator{background:var( --cngx-step-pill-segment-indicator-active-bg, var(--cngx-step-active-color, var(--cngx-step-active-fill)) );color:var( --cngx-step-pill-segment-indicator-active-color, var(--cngx-step-indicator-active-color, oklch(1 0 0)) )}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){background:var(--cngx-step-pill-segment-fill-completed, transparent);color:color-mix(in srgb,currentColor 85%,transparent)}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-stepper__indicator{width:var(--cngx-step-pill-indicator-size, 1.375rem);height:var(--cngx-step-pill-indicator-size, 1.375rem);font-size:.72rem;flex:0 0 auto}.cngx-stepper__step:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-stepper__step[aria-current=step]:focus-visible{box-shadow:var(--cngx-step-pill-segment-card-shadow),inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}@scope(.cngx-stepper[data-skin=pill-segment][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:stretch;border-radius:16px}.cngx-stepper__step{justify-content:flex-start;align-items:center;text-align:start;border-radius:12px;padding-block:var(--cngx-step-pill-vertical-padding-block, 1.125rem);min-height:var(--cngx-step-pill-vertical-min-height, 3.75rem)}.cngx-stepper__step .cngx-stepper__label{min-width:0;overflow-wrap:anywhere;line-height:1.3}}@scope(.cngx-stepper[data-skin=chips]){.cngx-stepper__strip{gap:var(--cngx-step-chips-gap, .5rem);padding:0;background:transparent;border:0;flex-wrap:wrap}.cngx-stepper__step{gap:.375rem;padding-inline:var(--cngx-step-chips-padding-inline, .875rem);padding-block:var(--cngx-step-chips-padding-block, .4rem);border-radius:var(--cngx-step-chips-radius, 999px);background:var(--cngx-step-chips-bg, color-mix(in srgb, currentColor 8%, transparent));color:var(--cngx-step-chips-color, color-mix(in srgb, currentColor 65%, transparent));border:0;transition:background-color .12s ease,color .12s ease}.cngx-stepper__step[aria-current=step]{background:var( --cngx-step-chips-fill-active, var(--cngx-color-primary, oklch(.66 .19 50)) );color:var(--cngx-step-chips-color-active, oklch(1 0 0))}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){background:var( --cngx-step-chips-bg-completed, color-mix(in srgb, var(--cngx-color-success, oklch(.5 .15 145)) 12%, transparent) );color:var(--cngx-step-chips-color-completed, var(--cngx-color-success, oklch(.5 .15 145)))}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__label:before{content:\"\\2713\";margin-inline-end:.3rem;font-weight:600}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){background:var( --cngx-step-chips-bg-errored, var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25))) );color:var(--cngx-step-chips-color-errored, var(--cngx-color-on-danger, oklch(1 0 0)))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]) .cngx-stepper__label:before{content:var(--cngx-step-chips-error-glyph, \"!\");margin-inline-end:.3rem;font-weight:700}.cngx-stepper__indicator,.cngx-stepper__status-pill{display:none}.cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}@scope(.cngx-stepper[data-skin=chips][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:flex-start}.cngx-stepper__step{width:100%;justify-content:flex-start}}@scope(.cngx-stepper[data-skin=breadcrumb]){.cngx-stepper__strip{gap:var(--cngx-step-breadcrumb-gap, .5rem);padding:0;background:transparent;border:0;flex-wrap:wrap;align-items:center}.cngx-stepper__step{gap:.25rem;padding:0;background:transparent;border:0;color:var(--cngx-step-breadcrumb-color, color-mix(in srgb, currentColor 48%, transparent));transition:color .12s ease}.cngx-stepper__step:not(:last-child):after{content:var(--cngx-step-breadcrumb-separator, \"\\203a\");margin-inline-start:var(--cngx-step-breadcrumb-gap, .5rem);color:color-mix(in srgb,currentColor 30%,transparent);font-weight:400}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){color:var( --cngx-step-breadcrumb-color-completed, color-mix(in srgb, currentColor 82%, transparent) );cursor:pointer}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__label:after{content:\"\\2713\";margin-inline-start:.3rem;color:var( --cngx-step-breadcrumb-check-color, var(--cngx-color-success, oklch(.5 .15 145)) );font-weight:600}.cngx-stepper__step[aria-current=step]{color:var( --cngx-step-breadcrumb-color-active, color-mix(in srgb, currentColor 92%, transparent) );font-weight:600}.cngx-stepper__step[aria-current=step] .cngx-stepper__label{background:var( --cngx-step-breadcrumb-fill-active, color-mix(in srgb, currentColor 9%, transparent) );padding-inline:.5rem;padding-block:.2rem;border-radius:var(--cngx-step-breadcrumb-radius, 6px)}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){color:var( --cngx-step-breadcrumb-color-errored, var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25))) );font-weight:600}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]) .cngx-stepper__label:after{content:var(--cngx-step-breadcrumb-error-glyph, \"!\");margin-inline-start:.3rem;font-weight:700;color:var( --cngx-step-breadcrumb-error-glyph-color, var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25))) )}.cngx-stepper__indicator,.cngx-stepper__status-pill{display:none}.cngx-stepper__step:focus-visible{outline:0;border-radius:var(--cngx-step-breadcrumb-radius, 6px);box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}}@keyframes cngx-stepper-spin{to{transform:rotate(360deg)}}@keyframes cngx-stepper-pulse{0%,to{opacity:1}50%{opacity:.6}}@keyframes cngx-step-connectors-pending-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.12)}}.cngx-stepper[data-skin=path-chevron] .cngx-stepper__step:focus-visible{outline:0!important;outline-offset:0!important;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-stepper__mobile-text{display:inline-block;font:inherit;color:inherit}.cngx-stepper[data-mobile-indicator-position=bottom]{display:flex;flex-direction:column}.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-text,.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-dots,.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-text--caption{order:2}.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__panels{order:1}.cngx-stepper__mobile-dots{display:flex;justify-content:center;align-items:center;gap:var(--cngx-dot-step-gap, .5rem)}.cngx-stepper__mobile-text--caption{display:block;text-align:center;font-size:.8125rem;color:color-mix(in srgb,currentColor 70%,transparent);margin-block-start:.5rem}.cngx-stepper__mobile-dot{position:relative;display:inline-block;width:var(--cngx-dot-step-size, .625rem);height:var(--cngx-dot-step-size, .625rem);padding:0;border:0;border-radius:50%;background:var(--cngx-dot-step-upcoming-bg, color-mix(in srgb, currentColor 18%, transparent));cursor:pointer;transition:background .15s ease-out,transform .15s ease-out}.cngx-stepper__mobile-dot[aria-disabled=true]{cursor:not-allowed}.cngx-stepper__mobile-dot--static{cursor:default;pointer-events:none}.cngx-stepper__mobile-dot--completed{background:var(--cngx-dot-step-completed-fill, var(--cngx-step-completed-color, currentColor))}.cngx-stepper__mobile-dot--active{background:var(--cngx-dot-step-active-fill, var(--cngx-step-active-fill, currentColor));transform:scale(1.25)}.cngx-stepper__mobile-dot[data-state=error]{background:var(--cngx-step-errored-color, currentColor)}.cngx-stepper__mobile-dot--error:after{content:var(--cngx-dot-step-error-glyph, \"!\");position:absolute;inset:0;display:grid;place-items:center;font-size:var(--cngx-dot-step-error-glyph-size, .5rem);font-weight:700;line-height:1;color:var(--cngx-dot-step-error-glyph-color, var(--cngx-color-on-danger, white))}.cngx-stepper__mobile-error{display:flex;width:fit-content;align-items:center;gap:var(--cngx-step-mobile-error-gap, .375rem);margin-block-start:var(--cngx-step-mobile-error-margin-top, .25rem);font-size:var(--cngx-step-mobile-error-font-size, .8125rem);color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-stepper__mobile-error-glyph{flex:none;display:inline-grid;place-items:center;width:var(--cngx-step-mobile-error-glyph-size, 1.1em);height:var(--cngx-step-mobile-error-glyph-size, 1.1em);border-radius:50%;background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));color:var(--cngx-step-mobile-error-glyph-color, var(--cngx-color-on-danger, white));font-size:.75em;font-weight:700;line-height:1}@media(prefers-reduced-motion:reduce){.cngx-stepper__mobile-dot{transition:none}}.cngx-stepper__group-header--collapsed{opacity:var(--cngx-stepper-collapsed-group-opacity, .65)}.cngx-stepper__group-header--navigable{cursor:pointer}.cngx-stepper__group-header--active{border-color:var(--cngx-stepper-group-chip-active-border, var(--cngx-color-primary, oklch(.55 .18 264)));background:var( --cngx-stepper-group-chip-active-bg, color-mix(in srgb, var(--cngx-color-primary, oklch(.55 .18 264)) 14%, transparent) );color:var(--cngx-stepper-group-chip-active-color, var(--cngx-color-primary, oklch(.55 .18 264)))}@media(prefers-reduced-motion:no-preference){.cngx-stepper__group-header{transition:opacity var(--cngx-stepper-collapse-duration, .16s) var(--cngx-stepper-collapse-easing, ease),background-color var(--cngx-stepper-collapse-duration, .16s) var(--cngx-stepper-collapse-easing, ease),border-color var(--cngx-stepper-collapse-duration, .16s) var(--cngx-stepper-collapse-easing, ease),color var(--cngx-stepper-collapse-duration, .16s) var(--cngx-stepper-collapse-easing, ease)}}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-rail-bg: oklch(.24 .005 240);--cngx-step-indicator-active-color: oklch(.98 0 0);--cngx-step-pill-segment-card-shadow: 0 1px 2px color-mix(in srgb, oklch(0 0 0) 55%, transparent)}@layer cngx.tokens{:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-fill-active: oklch(.4 .008 240)}}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step{color:color-mix(in srgb,oklch(1 0 0) 60%,transparent)}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step[aria-current=step]{color:#f8f8f8}@media(prefers-color-scheme:dark){:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-rail-bg: oklch(.24 .005 240);--cngx-step-indicator-active-color: oklch(.98 0 0);--cngx-step-pill-segment-card-shadow: 0 1px 2px color-mix(in srgb, oklch(0 0 0) 55%, transparent)}@layer cngx.tokens{:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-fill-active: oklch(.4 .008 240)}}:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step{color:color-mix(in srgb,oklch(1 0 0) 60%,transparent)}:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step[aria-current=step]{color:#f8f8f8}}.cngx-stepper__group-summary--status[data-state=success]{background:var(--cngx-step-completed-color, var(--cngx-color-success, oklch(.55 .13 150)))}.cngx-stepper__group-summary--status[data-state=error]{background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.55 .18 25)))}.cngx-stepper__group-summary--status[data-state=pending]{background:var(--cngx-step-pending-color, var(--cngx-step-active-color, currentColor))}.cngx-stepper[data-density-auto] .cngx-stepper__label{flex:1 1 auto;min-width:0}.cngx-stepper[data-density-auto] .cngx-stepper__strip{overflow-x:clip;flex-wrap:nowrap}.cngx-stepper[data-density-auto][data-skin=stripe-status-rich] .cngx-stepper__status-pill{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cngx-stepper[data-density-auto][data-skin=path-chevron] .cngx-stepper__step,.cngx-stepper[data-density-auto][data-skin=pill-segment] .cngx-stepper__step{flex-grow:1;flex-basis:auto;flex-shrink:calc(1 + var(--cngx-step-distance, 0) * var(--cngx-step-shrink-weight, 20));min-width:var(--cngx-step-collapsed-min, 3.25rem)}.cngx-stepper[data-density-auto][data-skin=path-chevron] .cngx-stepper__step[aria-current=step],.cngx-stepper[data-density-auto][data-skin=pill-segment] .cngx-stepper__step[aria-current=step]{flex-shrink:.25}.cngx-stepper[data-density-auto][data-skin=path-chevron] .cngx-stepper__label,.cngx-stepper[data-density-auto][data-skin=pill-segment] .cngx-stepper__label{flex:1 1 auto}.cngx-stepper[data-density-auto][data-skin=path-chevron] .cngx-stepper__step:not([aria-current=step]) .cngx-stepper__label,.cngx-stepper[data-density-auto][data-skin=chips] .cngx-stepper__step:not([aria-current=step]) .cngx-stepper__label,.cngx-stepper[data-density-auto][data-skin=breadcrumb] .cngx-stepper__step:not([aria-current=step]) .cngx-stepper__label{min-width:var(--cngx-step-collapsed-label-min, 2ch)}.cngx-stepper[data-density-auto][data-skin=chips] .cngx-stepper__step{padding-inline:var(--cngx-step-chips-density-padding-inline, .45rem)}@media(prefers-reduced-motion:no-preference){.cngx-stepper[data-density-auto] .cngx-stepper__step{transition:--cngx-step-distance var(--cngx-stepper-density-transition, .24s) ease,flex-shrink var(--cngx-stepper-density-transition, .24s) ease,background-color .12s ease,color .12s ease,box-shadow .12s ease}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }, { kind: "directive", type: CngxRovingItem, selector: "[cngxRovingItem]", inputs: ["cngxRovingItemDisabled"], exportAs: ["cngxRovingItem"] }, { kind: "component", type: CngxStepperCount, selector: "cngx-stepper-count", inputs: ["live", "format", "host"] }, { kind: "directive", type: CngxSwipe, selector: "[cngxSwipe]", inputs: ["threshold", "axis", "enabled"], outputs: ["swiped"], exportAs: ["cngxSwipe"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
174
377
|
}
|
|
175
378
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxStepper, decorators: [{
|
|
176
379
|
type: Component,
|
|
@@ -198,6 +401,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
198
401
|
'[attr.aria-roledescription]': 'stepperRoleDescription()',
|
|
199
402
|
'[attr.aria-orientation]': 'presenter.orientation()',
|
|
200
403
|
'[attr.data-orientation]': 'presenter.orientation()',
|
|
404
|
+
'[attr.data-density]': 'stripDensity()',
|
|
405
|
+
'[attr.data-density-auto]': "isDensityAuto() ? '' : null",
|
|
201
406
|
'[attr.data-skin]': 'hostAttrs.resolvedSkin()',
|
|
202
407
|
'[attr.data-connectors]': "hostAttrs.resolvedConnectors() ? 'true' : null",
|
|
203
408
|
'[attr.data-mobile-indicator-position]': 'hostAttrs.resolvedMobileIndicatorPosition()',
|
|
@@ -206,8 +411,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
206
411
|
'[attr.aria-busy]': 'isCommitting() ? "true" : null',
|
|
207
412
|
'[class.cngx-stepper]': 'true',
|
|
208
413
|
'(keydown)': 'handleStripKeyDown($event)',
|
|
209
|
-
}, template: "@if (flatSteps().length === 0) {\n @let emptyTpl = templates.empty();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n} @else if (displayMode() === 'text') {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text\" [live]=\"false\" />\n\n <div\n class=\"cngx-stepper__panels\"\n [class.cngx-stepper__panels--swipeable]=\"swipeNav.swipeEnabled()\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n} @else if (displayMode() === 'dots') {\n <div class=\"cngx-stepper__mobile-dots\">\n @for (node of stepsOnly(); track node.id; let i = $index) {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__mobile-dot\"\n [class.cngx-stepper__mobile-dot--active]=\"slotContext.isActive(node)\"\n [class.cngx-stepper__mobile-dot--completed]=\"i < activeStepIndex()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-label]=\"i18n.selectedStep(node.label(), i + 1, stepsOnly().length)\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n ></button>\n }\n </div>\n @if (showStepCount()) {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text cngx-stepper__mobile-text--caption\" [live]=\"false\" />\n }\n\n <div\n class=\"cngx-stepper__panels\"\n [class.cngx-stepper__panels--swipeable]=\"swipeNav.swipeEnabled()\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n} @else {\n <div class=\"cngx-stepper__strip\" role=\"presentation\">\n @for (node of flatSteps(); track node.id) {\n @if (node.kind === 'group') {\n <div\n class=\"cngx-stepper__group-header\"\n role=\"group\"\n [attr.aria-roledescription]=\"groupRoleDescription()\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n templates.groupHeader() ?? defaultGroupHeader;\n context: slotContext.groupHeaderContextFor(node)\n \"\n ></ng-container>\n <span class=\"cngx-sr-only\" [id]=\"stepDescriptorId(node)\">{{ announcement.groupStatusPhrase(node) }}</span>\n </div>\n } @else {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__step\"\n [class.cngx-stepper__step--rejected]=\"slotContext.showRejection(node)\"\n [id]=\"stepHeaderId(node)\"\n [attr.tabindex]=\"slotContext.isActive(node) ? '0' : '-1'\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-controls]=\"stepPanelId(node)\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"slotContext.isStepBusy(node) ? 'true' : null\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n >\n <span\n class=\"cngx-stepper__indicator\"\n aria-hidden=\"true\"\n [attr.data-state]=\"node.state()\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n templates.indicator() ?? defaultIndicator;\n context: slotContext.indicatorContextFor(node)\n \"\n ></ng-container>\n @if (slotContext.showErrorBadge(node)) {\n <span class=\"cngx-stepper__badge\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.badge() ?? defaultBadge;\n context: slotContext.badgeContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n </span>\n <span class=\"cngx-stepper__label\">\n @let labelTpl = labelTemplateFor(node.id);\n @if (labelTpl) {\n <ng-container\n *ngTemplateOutlet=\"labelTpl; context: slotContext.stepLabelContextFor(node)\"\n ></ng-container>\n } @else {\n {{ node.label() }}\n }\n </span>\n <span class=\"cngx-stepper__status-pill\" aria-hidden=\"true\">{{ statusLabelFor(node) }}</span>\n @if (slotContext.showRejection(node)) {\n <span class=\"cngx-stepper__rejection-icon\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.rejection() ?? defaultRejection;\n context: slotContext.rejectionContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n @if (slotContext.isStepBusy(node)) {\n <span class=\"cngx-stepper__busy-spinner\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.busySpinner() ?? defaultBusySpinner;\n context: slotContext.busySpinnerContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n <span class=\"cngx-sr-only\" [id]=\"stepDescriptorId(node)\">{{ announcement.statusPhrase(node) }}</span>\n </button>\n }\n }\n </div>\n\n <div class=\"cngx-stepper__panels\">\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n}\n\n<!--\n Footer slot - placed OUTSIDE the display-mode @if/@else so it projects\n at view-creation time (content children register after the empty branch\n is active, so an in-branch <ng-content> would be discarded and never\n re-project). Renders after the panels in every mode.\n-->\n<ng-content select=\"cngx-stepper-footer, [cngxStepperFooter]\"></ng-content>\n\n<span class=\"cngx-stepper__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcement.liveAnnouncement()\n}}</span>\n\n<ng-template #defaultIndicator let-position>\n <span class=\"cngx-stepper__indicator-glyph\">{{ position }}</span>\n</ng-template>\n<ng-template #defaultBadge>{{ glyphs.errorBadge }}</ng-template>\n<ng-template #defaultBusySpinner></ng-template>\n<ng-template #defaultRejection>{{ glyphs.rejectionIcon }}</ng-template>\n<ng-template #defaultGroupHeader let-group=\"group\">\n <span class=\"cngx-stepper__group-label\">{{ group.label() }}</span>\n</ng-template>\n", styles: ["@layer cngx.tokens{@property --cngx-step-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-step-strip-padding{syntax: \"*\"; inherits: false; initial-value: .5rem 0;}@property --cngx-step-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-step-padding-inline{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-step-padding-compact{syntax: \"*\"; inherits: false; initial-value: .375rem .5rem;}@property --cngx-step-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .55;}@property --cngx-step-focus-ring{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.66 .19 50);}@property --cngx-step-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 3px;}@property --cngx-step-indicator-size{syntax: \"*\"; inherits: false; initial-value: 1.75rem;}@property --cngx-step-group-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-step-group-indent{syntax: \"*\"; inherits: false; initial-value: 1.5rem;}@property --cngx-step-badge-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-step-error-badge-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-step-error-badge-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-badge-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-step-badge-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}@property --cngx-step-rejection-outline-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-step-rejection-outline-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.62 .15 60);}@property --cngx-step-rejection-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-step-rejection-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-step-rejection-icon-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-step-rejection-icon-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.62 .15 60);}@property --cngx-step-rejection-icon-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-rejection-icon-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-step-rejection-icon-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}}@layer cngx.components{cngx-stepper{display:block;container-type:inline-size;container-name:cngx-stepper}.cngx-stepper__strip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:var(--cngx-step-gap, .5rem);padding:var(--cngx-step-strip-padding, .5rem 0);overflow-x:auto;overflow-y:hidden}.cngx-stepper__step{display:inline-flex;align-items:center;gap:var(--cngx-step-gap, .5rem);padding:var(--cngx-step-padding, .5rem .75rem);border:0;background:transparent;cursor:pointer;font:inherit;text-align:start;white-space:nowrap}.cngx-stepper__step[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-step-disabled-opacity, .55)}.cngx-stepper__step:focus-visible{outline:var(--cngx-step-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-step-focus-offset, 3px)}.cngx-stepper__indicator{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-indicator-size, 1.75rem);height:var(--cngx-step-indicator-size, 1.75rem);border-radius:50%;flex:0 0 auto}.cngx-stepper__label{flex:1 1 auto;min-width:0}.cngx-stepper__panels{display:block}.cngx-stepper__panels--swipeable{touch-action:pan-y}.cngx-stepper__panel{display:block;padding:var(--cngx-step-padding, .5rem .75rem)}@container cngx-stepper (max-width: 600px){.cngx-stepper__panel{padding:var(--cngx-step-padding-compact, .375rem .5rem)}}.cngx-stepper__panel[hidden]{display:none}.cngx-stepper__group-header{display:inline-flex;align-items:center;padding:var(--cngx-step-padding, .5rem .75rem);font-weight:var(--cngx-step-group-font-weight, 600)}.cngx-stepper__badge{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-badge-size, 1.25rem);height:var(--cngx-step-badge-size, 1.25rem);border-radius:50%;background:var(--cngx-step-error-badge-color, oklch(.45 .15 25));color:var(--cngx-step-error-badge-text-color, oklch(1 0 0));font-size:var(--cngx-step-badge-font-size, .75em);font-weight:var(--cngx-step-badge-font-weight, 700);flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-stepper__step--rejected{outline:var(--cngx-step-rejection-outline-width, 1px) solid var(--cngx-step-rejection-outline-color, oklch(.62 .15 60));outline-offset:var(--cngx-step-rejection-outline-offset, 2px);background:var(--cngx-step-rejection-bg, transparent)}.cngx-stepper__status-pill{display:none}.cngx-stepper__rejection-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-rejection-icon-size, 1.25rem);height:var(--cngx-step-rejection-icon-size, 1.25rem);border-radius:50%;background:var(--cngx-step-rejection-icon-bg, oklch(.62 .15 60));color:var(--cngx-step-rejection-icon-color, oklch(1 0 0));font-size:var(--cngx-step-rejection-icon-font-size, .75em);font-weight:var(--cngx-step-rejection-icon-font-weight, 700);flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}cngx-stepper[data-orientation=horizontal] .cngx-stepper__step[data-step-depth=\"1\"],cngx-stepper[data-orientation=horizontal] .cngx-stepper__group-header[data-step-depth=\"1\"]{margin-inline-start:var(--cngx-step-group-indent, 1.5rem)}cngx-stepper[data-orientation=vertical] .cngx-stepper__strip{flex-direction:column;flex-wrap:nowrap;overflow-x:hidden;overflow-y:auto}cngx-stepper[data-orientation=vertical]{display:grid;grid-template-columns:minmax(8rem,max-content) 1fr;gap:var(--cngx-step-gap, .5rem);align-items:start}cngx-stepper[data-orientation=vertical] .cngx-stepper__step[data-step-depth=\"1\"],cngx-stepper[data-orientation=vertical] .cngx-stepper__group-header[data-step-depth=\"1\"]{padding-inline-start:calc(var(--cngx-step-padding-inline, .75rem) + var(--cngx-step-group-indent, 1.5rem))}@media(prefers-reduced-motion:reduce){.cngx-stepper__step,.cngx-stepper__indicator{transition:none!important}}}\n", "@layer cngx.tokens{@property --cngx-step-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-step-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-step-indicator-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,currentColor 10%,transparent);}@property --cngx-step-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-step-indicator-font-size{syntax: \"*\"; inherits: false; initial-value: .85em;}@property --cngx-step-indicator-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-step-indicator-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-indicator-disabled-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,currentColor 5%,transparent);}@property --cngx-step-completed-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.5 .15 145);}@property --cngx-step-errored-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-step-active-fill{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-hover-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-busy-spinner-size{syntax: \"<length>\"; inherits: false; initial-value: .875rem;}@property --cngx-step-busy-spinner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}}@layer cngx.components{@scope(.cngx-stepper){:scope{color:var(--cngx-step-color, currentColor);background:var(--cngx-step-bg, transparent)}.cngx-stepper__indicator{position:relative;background:var(--cngx-step-indicator-bg, color-mix(in srgb, currentColor 10%, transparent));color:var(--cngx-step-indicator-color, currentColor);font-size:var(--cngx-step-indicator-font-size, .85em);font-weight:var(--cngx-step-indicator-font-weight, 600);transition:background-color .12s ease}.cngx-stepper__indicator .cngx-stepper__badge{position:absolute;top:-8px;right:-8px;margin-inline-start:0}.cngx-stepper__indicator[data-state=success]{background:var(--cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)));color:var(--cngx-step-indicator-active-color, oklch(1 0 0))}.cngx-stepper__indicator[data-state=success]:has(.cngx-stepper__indicator-glyph):before{content:\"\\2713\";font-weight:700}.cngx-stepper__indicator[data-state=success] .cngx-stepper__indicator-glyph{display:none}.cngx-stepper__indicator[data-state=error]{background:transparent;color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));box-shadow:inset 0 0 0 1px var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-stepper__indicator[data-state=disabled]{background:var( --cngx-step-indicator-disabled-bg, color-mix(in srgb, currentColor 5%, transparent) )}.cngx-stepper__step[aria-current=step] .cngx-stepper__indicator{background:var(--cngx-step-active-color, var(--cngx-step-active-fill));color:var(--cngx-step-indicator-active-color, oklch(1 0 0))}.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{background:var(--cngx-step-pending-color, var(--cngx-step-active-color, var(--cngx-step-active-fill)));animation:cngx-stepper-pulse 1.2s ease-in-out infinite}.cngx-stepper__busy-spinner{display:inline-block;width:var(--cngx-step-busy-spinner-size, .875rem);height:var(--cngx-step-busy-spinner-size, .875rem);border-radius:50%;border:2px solid var(--cngx-step-busy-spinner-color, currentColor);border-top-color:transparent;animation:cngx-stepper-spin .8s linear infinite;flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-stepper__busy-spinner:not(:empty){width:auto;height:auto;border:0;border-radius:0;animation:none}.cngx-stepper__step:hover:not([aria-disabled=true]){background:var(--cngx-step-hover-bg, color-mix(in srgb, currentColor 8%, transparent));cursor:pointer}@media(prefers-reduced-motion:reduce){.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator,.cngx-stepper__busy-spinner{animation:none}}}}@layer cngx.tokens{@property --cngx-step-linear-dot-fill{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-status-pill-bg-upcoming{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,currentColor 6%,transparent);}@property --cngx-step-status-pill-bg-in-progress{syntax: \"*\"; inherits: false; initial-value: oklch(.66 .19 50);}@property --cngx-step-status-pill-bg-done{syntax: \"*\"; inherits: false; initial-value: oklch(.5 .15 145);}@property --cngx-step-status-pill-bg-errored{syntax: \"*\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-step-status-pill-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-chevron-tile-active{syntax: \"*\"; inherits: false; initial-value: oklch(.66 .19 50);}@property --cngx-step-chevron-tile-completed{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,oklch(.5 .15 145) 80%,transparent);}@property --cngx-step-chevron-tile-errored{syntax: \"*\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-step-chevron-tile-upcoming-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in srgb,currentColor 12%,transparent);}@property --cngx-step-chevron-tile-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-pill-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 999px;}@property --cngx-step-pill-segment-rail-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 6%,transparent);}@property --cngx-step-pill-segment-fill-active{syntax: \"*\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-pill-segment-fill-completed{syntax: \"*\"; inherits: true; initial-value: transparent;}@property --cngx-step-pill-segment-card-shadow{syntax: \"*\"; inherits: true; initial-value: 0 1px 2px color-mix(in srgb,currentColor 12%,transparent),0 1px 1px color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-connector-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 35%,transparent);}@property --cngx-step-connector-completed-color{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-connector-errored-color{syntax: \"*\"; inherits: true; initial-value: oklch(.55 .18 25);}@property --cngx-step-connector-pending-color{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-connector-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-step-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-step-chips-gap{syntax: \"<length-percentage>\"; inherits: false; initial-value: .5rem;}@property --cngx-step-chips-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 999px;}@property --cngx-step-chips-padding-inline{syntax: \"<length-percentage>\"; inherits: false; initial-value: .875rem;}@property --cngx-step-chips-padding-block{syntax: \"<length-percentage>\"; inherits: false; initial-value: .4rem;}@property --cngx-step-chips-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-chips-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 65%,transparent);}@property --cngx-step-chips-color-active{syntax: \"*\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-chips-bg-completed{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,oklch(.5 .15 145) 12%,transparent);}@property --cngx-step-chips-color-completed{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-breadcrumb-gap{syntax: \"<length-percentage>\"; inherits: false; initial-value: .5rem;}@property --cngx-step-breadcrumb-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 6px;}@property --cngx-step-breadcrumb-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 48%,transparent);}@property --cngx-step-breadcrumb-color-active{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 92%,transparent);}@property --cngx-step-breadcrumb-color-completed{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 82%,transparent);}@property --cngx-step-breadcrumb-fill-active{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 9%,transparent);}@property --cngx-step-breadcrumb-check-color{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}}@layer cngx.skins{@scope(.cngx-stepper[data-skin=linear-minimal]){.cngx-stepper__indicator{width:.5rem;height:.5rem;border-radius:50%;background:transparent;border:1px solid color-mix(in srgb,currentColor 35%,transparent);transition:background-color .12s ease,border-color .12s ease}.cngx-stepper__indicator .cngx-stepper__indicator-glyph{display:none}.cngx-stepper__step[aria-current=step] .cngx-stepper__indicator{background:var( --cngx-step-linear-dot-fill, var(--cngx-step-active-fill, currentColor) );border-color:var( --cngx-step-linear-dot-fill, var(--cngx-step-active-fill, currentColor) )}.cngx-stepper__indicator[data-state=success]{background:var( --cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)) );border-color:var( --cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)) )}.cngx-stepper__indicator[data-state=success]:before{content:none}.cngx-stepper__indicator[data-state=error]{background:var( --cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)) );border-color:var( --cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)) )}.cngx-stepper__step{position:relative}.cngx-stepper__step+.cngx-stepper__step:before{content:\"\";position:absolute;left:calc(-1 * var(--cngx-step-gap, .5rem));top:50%;width:var(--cngx-step-gap, .5rem);height:0;border-top:1px dashed color-mix(in srgb,currentColor 35%,transparent);transform:translateY(-50%)}}@scope(.cngx-stepper[data-skin=linear-minimal][data-orientation=vertical]){.cngx-stepper__step+.cngx-stepper__step:before{left:calc(var(--cngx-step-indicator-size, 1.75rem) / 2);top:calc(-1 * var(--cngx-step-gap, .5rem));width:1px;height:var(--cngx-step-gap, .5rem);border-top:0;border-left:2px solid color-mix(in srgb,currentColor 35%,transparent);transform:none}}@scope(.cngx-stepper[data-skin=classic][data-connectors=true]){.cngx-stepper__strip{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:0}.cngx-stepper__step{position:relative;flex:1 1 0;min-width:0;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:.5rem}.cngx-stepper__indicator,.cngx-stepper__label{position:relative;z-index:1}.cngx-stepper__label{white-space:normal}.cngx-stepper__busy-spinner{display:none}.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{color:var(--cngx-step-indicator-active-color, oklch(1 0 0));animation:cngx-step-connectors-pending-pulse 1.2s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{animation:none}}.cngx-stepper__rejection-icon{position:absolute;top:calc(.5rem + var(--cngx-step-indicator-size, 1.75rem) / 2);left:50%;transform:translate(-50%,-50%);margin:0;z-index:2}.cngx-stepper__step--rejected{outline:none}.cngx-stepper__step--rejected .cngx-stepper__label{color:var(--cngx-step-connector-errored-color)}.cngx-stepper__rejection-icon{background:var(--cngx-step-connector-errored-color)}.cngx-stepper__step[data-state=success] .cngx-stepper__rejection-icon{display:none}.cngx-stepper__step[data-state=success].cngx-stepper__step--rejected{outline:none}.cngx-stepper__step+.cngx-stepper__step:before{content:\"\";position:absolute;left:calc(-50% + var(--cngx-step-indicator-size, 1.75rem) / 2 + var(--cngx-step-connector-inset, 6px));width:calc(100% - var(--cngx-step-indicator-size, 1.75rem) - 2 * var(--cngx-step-connector-inset, 6px));top:calc(.5rem + var(--cngx-step-indicator-size, 1.75rem) / 2);height:var(--cngx-step-connector-width, 2px);background-color:var(--cngx-step-connector-color);transform:translateY(-50%);z-index:0}.cngx-stepper__step[data-state=success]+.cngx-stepper__step:before{background-color:var(--cngx-step-connector-completed-color)}.cngx-stepper__step+.cngx-stepper__step[aria-busy=true]:before{background-color:var(--cngx-step-connector-pending-color)}.cngx-stepper__step+.cngx-stepper__step.cngx-stepper__step--rejected:before{background-color:var(--cngx-step-connector-errored-color)}}@scope(.cngx-stepper[data-skin=classic][data-connectors=true][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:stretch}.cngx-stepper__step{flex:0 0 auto;flex-direction:row;align-items:center;justify-content:flex-start;text-align:start;min-height:calc(var(--cngx-step-indicator-size, 1.75rem) + 2 * var(--cngx-step-connector-inset, 6px) + 2rem)}.cngx-stepper__label{white-space:nowrap}.cngx-stepper__step+.cngx-stepper__step:before{left:calc(.75rem + var(--cngx-step-indicator-size, 1.75rem) / 2 - var(--cngx-step-connector-width, 2px) / 2);width:var(--cngx-step-connector-width, 2px);top:calc(-50% + var(--cngx-step-indicator-size, 1.75rem) / 2 + var(--cngx-step-connector-inset, 6px));height:calc(100% - var(--cngx-step-indicator-size, 1.75rem) - 2 * var(--cngx-step-connector-inset, 6px));transform:none}}@scope(.cngx-stepper[data-skin=stripe-status-rich]){.cngx-stepper__step{flex-direction:column;align-items:center;gap:.375rem}.cngx-stepper__status-pill{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:999px;font-size:.7em;font-weight:600;letter-spacing:.02em;background:var(--cngx-step-status-pill-bg-upcoming);color:color-mix(in srgb,currentColor 80%,transparent);text-transform:none}.cngx-stepper__step[aria-current=step] .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-in-progress);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-done);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]) .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-errored);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}}@scope(.cngx-stepper[data-skin=stripe-status-rich][data-orientation=vertical]){.cngx-stepper__step{flex-direction:row;align-items:center;gap:var(--cngx-step-gap, .5rem);justify-content:flex-start}.cngx-stepper__status-pill{margin-inline-start:auto}}@scope(.cngx-stepper[data-skin=path-chevron]){.cngx-stepper__strip{gap:.125rem}.cngx-stepper__step{flex:1 1 0;clip-path:polygon(0 0,calc(100% - .75rem) 0,100% 50%,calc(100% - .75rem) 100%,0 100%,.75rem 50%);padding-inline:calc(var(--cngx-step-padding-inline, .75rem) + .75rem);justify-content:center;text-align:center;background:var(--cngx-step-chevron-tile-upcoming-bg, color-mix(in srgb, currentColor 12%, transparent));color:color-mix(in srgb,currentColor 80%,transparent);border:0;transition:background-color .12s ease,color .12s ease}.cngx-stepper__step .cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step:first-child{clip-path:polygon(0 0,calc(100% - .75rem) 0,100% 50%,calc(100% - .75rem) 100%,0 100%)}.cngx-stepper__step:last-child{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,.75rem 50%)}.cngx-stepper__step:only-child{clip-path:none}.cngx-stepper__step[aria-current=step]{background:var(--cngx-step-chevron-tile-active);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=success]){background:var(--cngx-step-chevron-tile-completed);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){background:var(--cngx-step-chevron-tile-errored);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__indicator{display:none}.cngx-stepper__indicator[data-state=success]{display:inline-flex;background:transparent;width:auto;height:auto;padding:0;border:0}}@scope(.cngx-stepper[data-skin=path-chevron][data-orientation=vertical]){.cngx-stepper__strip{gap:0}.cngx-stepper__step{clip-path:polygon(0 0,50% var(--cngx-step-chevron-vertical-notch, .55rem),100% 0,100% calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)),50% 100%,0 calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)));padding-block:calc(var(--cngx-step-chevron-vertical-notch, .55rem) + .5rem);min-height:var(--cngx-step-chevron-vertical-min-height, 3.25rem)}.cngx-stepper__step+.cngx-stepper__step{margin-block-start:calc(-1 * var(--cngx-step-chevron-vertical-notch, .55rem) + var(--cngx-step-chevron-vertical-divider, .25rem))}.cngx-stepper__step .cngx-stepper__label{min-width:0;overflow-wrap:anywhere;line-height:1.3;text-align:center}.cngx-stepper__step .cngx-stepper__indicator{display:none}.cngx-stepper__step:first-child{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)),50% 100%,0 calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)))}.cngx-stepper__step:last-child{clip-path:polygon(0 0,50% var(--cngx-step-chevron-vertical-notch, .55rem),100% 0,100% 100%,0 100%)}}@scope(.cngx-stepper[data-skin=pill-segment]){.cngx-stepper__strip{gap:.25rem;padding:.25rem;border-radius:var(--cngx-step-pill-radius, 999px);background:var(--cngx-step-pill-segment-rail-bg);border:0}.cngx-stepper__step{flex:1 1 0;justify-content:center;gap:.5rem;background:transparent;border-radius:9999px;color:color-mix(in srgb,currentColor 60%,transparent);transition:background-color .12s ease,color .12s ease,box-shadow .12s ease}.cngx-stepper__step .cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step[aria-current=step]{background:var(--cngx-step-pill-segment-fill-active);color:currentColor;box-shadow:var(--cngx-step-pill-segment-card-shadow)}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){background:var(--cngx-step-pill-segment-fill-completed, transparent);color:color-mix(in srgb,currentColor 85%,transparent)}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-stepper__indicator{width:var(--cngx-step-pill-indicator-size, 1.375rem);height:var(--cngx-step-pill-indicator-size, 1.375rem);font-size:.72rem;flex:0 0 auto}.cngx-stepper__step:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-stepper__step[aria-current=step]:focus-visible{box-shadow:var(--cngx-step-pill-segment-card-shadow),inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}@scope(.cngx-stepper[data-skin=pill-segment][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:stretch;border-radius:16px}.cngx-stepper__step{justify-content:flex-start;align-items:center;text-align:start;border-radius:12px;padding-block:var(--cngx-step-pill-vertical-padding-block, 1.125rem);min-height:var(--cngx-step-pill-vertical-min-height, 3.75rem)}.cngx-stepper__step .cngx-stepper__label{min-width:0;overflow-wrap:anywhere;line-height:1.3}}@scope(.cngx-stepper[data-skin=chips]){.cngx-stepper__strip{gap:var(--cngx-step-chips-gap, .5rem);padding:0;background:transparent;border:0;flex-wrap:wrap}.cngx-stepper__step{gap:.375rem;padding-inline:var(--cngx-step-chips-padding-inline, .875rem);padding-block:var(--cngx-step-chips-padding-block, .4rem);border-radius:var(--cngx-step-chips-radius, 999px);background:var(--cngx-step-chips-bg, color-mix(in srgb, currentColor 8%, transparent));color:var(--cngx-step-chips-color, color-mix(in srgb, currentColor 65%, transparent));border:0;transition:background-color .12s ease,color .12s ease}.cngx-stepper__step[aria-current=step]{background:var(--cngx-step-chips-fill-active, var(--cngx-color-primary, oklch(.66 .19 50)));color:var(--cngx-step-chips-color-active, oklch(1 0 0))}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){background:var( --cngx-step-chips-bg-completed, color-mix(in srgb, var(--cngx-color-success, oklch(.5 .15 145)) 12%, transparent) );color:var(--cngx-step-chips-color-completed, var(--cngx-color-success, oklch(.5 .15 145)))}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__label:before{content:\"\\2713\";margin-inline-end:.3rem;font-weight:600}.cngx-stepper__indicator,.cngx-stepper__status-pill{display:none}.cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}@scope(.cngx-stepper[data-skin=chips][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:flex-start}.cngx-stepper__step{width:100%;justify-content:flex-start}}@scope(.cngx-stepper[data-skin=breadcrumb]){.cngx-stepper__strip{gap:var(--cngx-step-breadcrumb-gap, .5rem);padding:0;background:transparent;border:0;flex-wrap:wrap;align-items:center}.cngx-stepper__step{gap:.25rem;padding:0;background:transparent;border:0;color:var(--cngx-step-breadcrumb-color, color-mix(in srgb, currentColor 48%, transparent));transition:color .12s ease}.cngx-stepper__step:not(:last-child):after{content:var(--cngx-step-breadcrumb-separator, \"\\203a\");margin-inline-start:var(--cngx-step-breadcrumb-gap, .5rem);color:color-mix(in srgb,currentColor 30%,transparent);font-weight:400}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){color:var(--cngx-step-breadcrumb-color-completed, color-mix(in srgb, currentColor 82%, transparent));cursor:pointer}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__label:after{content:\"\\2713\";margin-inline-start:.3rem;color:var(--cngx-step-breadcrumb-check-color, var(--cngx-color-success, oklch(.5 .15 145)));font-weight:600}.cngx-stepper__step[aria-current=step]{color:var(--cngx-step-breadcrumb-color-active, color-mix(in srgb, currentColor 92%, transparent));font-weight:600}.cngx-stepper__step[aria-current=step] .cngx-stepper__label{background:var(--cngx-step-breadcrumb-fill-active, color-mix(in srgb, currentColor 9%, transparent));padding-inline:.5rem;padding-block:.2rem;border-radius:var(--cngx-step-breadcrumb-radius, 6px)}.cngx-stepper__indicator,.cngx-stepper__status-pill{display:none}.cngx-stepper__step:focus-visible{outline:0;border-radius:var(--cngx-step-breadcrumb-radius, 6px);box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}}@keyframes cngx-stepper-spin{to{transform:rotate(360deg)}}@keyframes cngx-stepper-pulse{0%,to{opacity:1}50%{opacity:.6}}@keyframes cngx-step-connectors-pending-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.12)}}.cngx-stepper[data-skin=path-chevron] .cngx-stepper__step:focus-visible{outline:0!important;outline-offset:0!important;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-stepper__mobile-text{display:inline-block;font:inherit;color:inherit}.cngx-stepper[data-mobile-indicator-position=bottom]{display:flex;flex-direction:column}.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-text,.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-dots,.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-text--caption{order:2}.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__panels{order:1}.cngx-stepper__mobile-dots{display:flex;justify-content:center;align-items:center;gap:var(--cngx-dot-step-gap, .5rem)}.cngx-stepper__mobile-text--caption{display:block;text-align:center;font-size:.8125rem;color:color-mix(in srgb,currentColor 70%,transparent);margin-block-start:.5rem}.cngx-stepper__mobile-dot{display:inline-block;width:var(--cngx-dot-step-size, .625rem);height:var(--cngx-dot-step-size, .625rem);padding:0;border:0;border-radius:50%;background:var(--cngx-dot-step-upcoming-bg, color-mix(in srgb, currentColor 18%, transparent));cursor:pointer;transition:background .15s ease-out,transform .15s ease-out}.cngx-stepper__mobile-dot[aria-disabled=true]{cursor:not-allowed}.cngx-stepper__mobile-dot--completed{background:var(--cngx-dot-step-completed-fill, var(--cngx-step-completed-color, currentColor))}.cngx-stepper__mobile-dot--active{background:var(--cngx-dot-step-active-fill, var(--cngx-step-active-fill, currentColor));transform:scale(1.25)}.cngx-stepper__mobile-dot[data-state=error]{background:var(--cngx-step-errored-color, currentColor)}@media(prefers-reduced-motion:reduce){.cngx-stepper__mobile-dot{transition:none}}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-rail-bg: oklch(.24 .005 240);--cngx-step-pill-segment-fill-active: oklch(.4 .008 240);--cngx-step-indicator-active-color: oklch(.98 0 0);--cngx-step-pill-segment-card-shadow: 0 1px 2px color-mix(in srgb, oklch(0 0 0) 55%, transparent)}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step{color:color-mix(in srgb,oklch(1 0 0) 60%,transparent)}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step[aria-current=step]{color:#f8f8f8}@media(prefers-color-scheme:dark){:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-rail-bg: oklch(.24 .005 240);--cngx-step-pill-segment-fill-active: oklch(.4 .008 240);--cngx-step-indicator-active-color: oklch(.98 0 0);--cngx-step-pill-segment-card-shadow: 0 1px 2px color-mix(in srgb, oklch(0 0 0) 55%, transparent)}:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step{color:color-mix(in srgb,oklch(1 0 0) 60%,transparent)}:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step[aria-current=step]{color:#f8f8f8}}\n"] }]
|
|
210
|
-
}], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], skin: [{ type: i0.Input, args: [{ isSignal: true, alias: "skin", required: false }] }], connectors: [{ type: i0.Input, args: [{ isSignal: true, alias: "connectors", required: false }] }], showStepCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "showStepCount", required: false }] }], mobileIndicatorPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileIndicatorPosition", required: false }] }], stepDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CngxStep), { ...{ descendants: true }, isSignal: true }] }], indicatorSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepIndicator), { isSignal: true }] }], badgeSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepBadge), { isSignal: true }] }], busySpinnerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepBusySpinner), { isSignal: true }] }], rejectionSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepRejection), { isSignal: true }] }], groupHeaderSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepGroupHeader), { isSignal: true }] }], emptySlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepperEmpty), { isSignal: true }] }] } });
|
|
414
|
+
}, template: "@if (flatSteps().length === 0) {\n @let emptyTpl = templates.empty();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n} @else if (displayMode() === 'text') {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text\" [live]=\"false\" />\n @if (stateView.hasAnyError()) {\n <span class=\"cngx-stepper__mobile-error\" role=\"status\" data-state=\"error\">\n <span class=\"cngx-stepper__mobile-error-glyph\" aria-hidden=\"true\">{{ glyphs.errorBadge }}</span>\n <span class=\"cngx-stepper__mobile-error-text\">{{ mobileErrorSummary() }}</span>\n </span>\n }\n\n <div\n class=\"cngx-stepper__panels\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n} @else if (displayMode() === 'dots') {\n <!--\n In 'none' mode the dots are inert list-item indicators (footer-only\n navigation); otherwise they are roving-tabindex buttons.\n -->\n <div\n class=\"cngx-stepper__mobile-dots\"\n [attr.role]=\"resolvedHeaderNavigation() === 'none' ? 'list' : null\"\n >\n @for (node of stepsOnly(); track node.id; let i = $index) {\n @if (resolvedHeaderNavigation() === 'none') {\n <span\n role=\"listitem\"\n class=\"cngx-stepper__mobile-dot cngx-stepper__mobile-dot--static\"\n [class.cngx-stepper__mobile-dot--active]=\"slotContext.isActive(node)\"\n [class.cngx-stepper__mobile-dot--completed]=\"i < activeStepIndex()\"\n [class.cngx-stepper__mobile-dot--error]=\"stateView.hasError(node)\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-label]=\"mobileDotAriaLabel(node, i)\"\n [attr.data-state]=\"mobileDotState(node)\"\n ></span>\n } @else {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__mobile-dot\"\n [class.cngx-stepper__mobile-dot--active]=\"slotContext.isActive(node)\"\n [class.cngx-stepper__mobile-dot--completed]=\"i < activeStepIndex()\"\n [class.cngx-stepper__mobile-dot--error]=\"stateView.hasError(node)\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-label]=\"mobileDotAriaLabel(node, i)\"\n [attr.data-state]=\"mobileDotState(node)\"\n [attr.aria-disabled]=\"headerAriaDisabled(node)\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n ></button>\n }\n }\n </div>\n @if (stateView.hasAnyError()) {\n <span class=\"cngx-stepper__mobile-error\" role=\"status\" data-state=\"error\">\n <span class=\"cngx-stepper__mobile-error-glyph\" aria-hidden=\"true\">{{ glyphs.errorBadge }}</span>\n <span class=\"cngx-stepper__mobile-error-text\">{{ mobileErrorSummary() }}</span>\n </span>\n }\n @if (showStepCount()) {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text cngx-stepper__mobile-text--caption\" [live]=\"false\" />\n }\n\n <div\n class=\"cngx-stepper__panels\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n} @else {\n <!--\n In 'none' mode the inert headers are list items, so the strip is a\n semantic list; otherwise it is a presentational container of\n roving-tabindex buttons.\n -->\n <div\n class=\"cngx-stepper__strip\"\n [attr.role]=\"resolvedHeaderNavigation() === 'none' ? 'list' : 'presentation'\"\n >\n @for (node of visibleStripNodes(); track node.id) {\n @if (node.kind === 'group') {\n <div\n class=\"cngx-stepper__group-header\"\n role=\"group\"\n [attr.aria-roledescription]=\"groupRoleDescription()\"\n [class.cngx-stepper__group-header--collapsed]=\"isGroupCollapsed(node)\"\n [class.cngx-stepper__group-header--active]=\"groupNavigation.isActive(node)\"\n [class.cngx-stepper__group-header--navigable]=\"groupNavigation.isNavigable(node)\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n (click)=\"groupNavigation.select(node)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n templates.groupHeader() ?? defaultGroupHeader;\n context: slotContext.groupHeaderContextFor(node)\n \"\n ></ng-container>\n @if (groupSummary.text(node); as summary) {\n <span class=\"cngx-stepper__group-summary\" [attr.data-state]=\"node.state()\" aria-hidden=\"true\">{{ summary }}</span>\n } @else if (groupSummary.showStatus(node)) {\n <span\n class=\"cngx-stepper__group-summary cngx-stepper__group-summary--status\"\n [attr.data-state]=\"node.state()\"\n aria-hidden=\"true\"\n ></span>\n }\n @if (groupSummary.srText(node); as srSummary) {\n <span class=\"cngx-sr-only\">{{ srSummary }}</span>\n }\n <span class=\"cngx-sr-only\" [id]=\"stepDescriptorId(node)\">{{ announcement.groupStatusPhrase(node) }}</span>\n </div>\n } @else if (resolvedHeaderNavigation() === 'none') {\n <!--\n Inert label header (headerNavigation 'none'): pure step\n indicator, no <button>, no cngxRovingItem, no (click), no\n tabindex. Footer is the sole navigation control. aria-current\n + status retained (Pillar 2).\n -->\n <span\n class=\"cngx-stepper__step cngx-stepper__step--static\"\n role=\"listitem\"\n [class.cngx-stepper__step--rejected]=\"slotContext.showRejection(node)\"\n [style.--cngx-step-distance]=\"isDensityAuto() ? stepDistanceOf(node) : null\"\n [id]=\"stepHeaderId(node)\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"slotContext.isStepBusy(node) ? 'true' : null\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n >\n <ng-container *ngTemplateOutlet=\"stepHeaderInner; context: { $implicit: node }\"></ng-container>\n </span>\n } @else {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__step\"\n [class.cngx-stepper__step--rejected]=\"slotContext.showRejection(node)\"\n [style.--cngx-step-distance]=\"isDensityAuto() ? stepDistanceOf(node) : null\"\n [id]=\"stepHeaderId(node)\"\n [attr.tabindex]=\"slotContext.isActive(node) ? '0' : '-1'\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-controls]=\"stepPanelId(node)\"\n [attr.aria-disabled]=\"headerAriaDisabled(node)\"\n [attr.aria-busy]=\"slotContext.isStepBusy(node) ? 'true' : null\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n >\n <ng-container *ngTemplateOutlet=\"stepHeaderInner; context: { $implicit: node }\"></ng-container>\n </button>\n }\n }\n </div>\n\n <!--\n Error messages live on their own row BELOW the strip, not inline in a\n step. A free-text message inside a horizontal/column strip item widens\n the shrink-to-fit step and tears the row; below the strip it has full\n width and wraps. Only steps with a real reason ([error] string or an\n aggregator label) appear - the bare 'errored' state is already carried\n by the indicator + badge, so it adds no text-only noise here.\n -->\n @if (stepErrorEntries().length) {\n <div class=\"cngx-stepper__error-summary\">\n @for (entry of stepErrorEntries(); track entry.id) {\n <p class=\"cngx-stepper__error-summary-item\" data-state=\"error\">\n @if (templates.stepError(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: entry.context\"></ng-container>\n } @else {\n <span class=\"cngx-stepper__error-summary-step\">{{ entry.label }}</span>\n <span class=\"cngx-stepper__error-summary-text\">{{ entry.message }}</span>\n }\n </p>\n }\n </div>\n }\n\n <div class=\"cngx-stepper__panels\">\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"stepHeaderId(node)\"\n [attr.aria-describedby]=\"stepDescriptorId(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n}\n\n<!--\n Footer slot - placed OUTSIDE the display-mode @if/@else so it projects\n at view-creation time (content children register after the empty branch\n is active, so an in-branch <ng-content> would be discarded and never\n re-project). Renders after the panels in every mode.\n-->\n<ng-content select=\"cngx-stepper-footer, [cngxStepperFooter]\"></ng-content>\n\n<span class=\"cngx-stepper__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcement.liveAnnouncement()\n}}</span>\n\n<!--\n Shared strip-header body. Rendered identically by the focusable\n <button> ('visited') and the inert <span> ('none') branches so the\n indicator / badge / label / status / rejection / busy markup has a\n single source (Pillar 3). ngTemplateOutlet projects inline - no\n wrapper element is added, so the 'visited' DOM is unchanged.\n-->\n<ng-template #stepHeaderInner let-node>\n <span class=\"cngx-stepper__indicator\" aria-hidden=\"true\" [attr.data-state]=\"node.state()\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.indicator() ?? defaultIndicator;\n context: slotContext.indicatorContextFor(node)\n \"\n ></ng-container>\n @if (slotContext.showErrorBadge(node)) {\n <span class=\"cngx-stepper__badge\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.badge() ?? defaultBadge;\n context: slotContext.badgeContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n </span>\n <span class=\"cngx-stepper__label\">\n @let labelTpl = labelTemplateFor(node.id);\n @if (labelTpl) {\n <ng-container\n *ngTemplateOutlet=\"labelTpl; context: slotContext.stepLabelContextFor(node)\"\n ></ng-container>\n } @else {\n {{ node.label() }}\n }\n </span>\n <span class=\"cngx-stepper__status-pill\" aria-hidden=\"true\">{{ statusLabelFor(node) }}</span>\n @if (slotContext.showRejection(node)) {\n <span class=\"cngx-stepper__rejection-icon\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.rejection() ?? defaultRejection;\n context: slotContext.rejectionContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n @if (slotContext.isStepBusy(node)) {\n <span class=\"cngx-stepper__busy-spinner\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.busySpinner() ?? defaultBusySpinner;\n context: slotContext.busySpinnerContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n <span class=\"cngx-sr-only\" [id]=\"stepDescriptorId(node)\">{{ announcement.statusPhrase(node) }}</span>\n</ng-template>\n\n<ng-template #defaultIndicator let-position>\n <span class=\"cngx-stepper__indicator-glyph\">{{ position }}</span>\n</ng-template>\n<ng-template #defaultBadge>{{ glyphs.errorBadge }}</ng-template>\n<ng-template #defaultBusySpinner></ng-template>\n<ng-template #defaultRejection>{{ glyphs.rejectionIcon }}</ng-template>\n<ng-template #defaultGroupHeader let-group=\"group\">\n <span class=\"cngx-stepper__group-label\">{{ group.label() }}</span>\n</ng-template>\n", styles: ["@layer cngx.tokens{@property --cngx-step-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-step-strip-padding{syntax: \"*\"; inherits: false; initial-value: .5rem 0;}@property --cngx-step-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-step-padding-inline{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-step-padding-compact{syntax: \"*\"; inherits: false; initial-value: .375rem .5rem;}@property --cngx-step-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .55;}@property --cngx-step-focus-ring{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.66 .19 50);}@property --cngx-step-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 3px;}@property --cngx-step-indicator-size{syntax: \"*\"; inherits: false; initial-value: 1.75rem;}@property --cngx-step-group-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-step-group-indent{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-step-badge-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-step-error-badge-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-step-error-badge-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-badge-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-step-badge-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}@property --cngx-step-rejection-outline-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-step-rejection-outline-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.62 .15 60);}@property --cngx-step-rejection-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-step-rejection-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-step-rejection-icon-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-step-rejection-icon-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.62 .15 60);}@property --cngx-step-rejection-icon-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-rejection-icon-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-step-rejection-icon-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}@property --cngx-step-distance{syntax: \"<number>\"; inherits: false; initial-value: 0;}@property --cngx-step-shrink-weight{syntax: \"<number>\"; inherits: false; initial-value: 20;}@property --cngx-step-collapsed-min{syntax: \"*\"; inherits: false; initial-value: 3.25rem;}@property --cngx-step-collapsed-label-min{syntax: \"*\"; inherits: false; initial-value: 2ch;}@property --cngx-step-active-label-min{syntax: \"*\"; inherits: false; initial-value: 4rem;}@property --cngx-step-active-label-max{syntax: \"*\"; inherits: false; initial-value: 60cqi;}@property --cngx-stepper-group-chip-padding{syntax: \"*\"; inherits: true; initial-value: .125rem .5rem;}@property --cngx-stepper-group-chip-border-width{syntax: \"<length>\"; inherits: true; initial-value: 1px;}@property --cngx-stepper-group-chip-radius{syntax: \"<length>\"; inherits: true; initial-value: 999px;}@property --cngx-stepper-group-chip-font-size{syntax: \"*\"; inherits: true; initial-value: .8125em;}@property --cngx-stepper-group-chip-line-height{syntax: \"<number>\"; inherits: true; initial-value: 1.25;}}@layer cngx.components{cngx-stepper{display:block;container-type:inline-size;container-name:cngx-stepper}.cngx-stepper__strip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:var(--cngx-step-gap, .5rem);padding:var(--cngx-step-strip-padding, .5rem 0);overflow-x:auto;overflow-y:hidden}.cngx-stepper__step{display:inline-flex;align-items:center;gap:var(--cngx-step-gap, .5rem);padding:var(--cngx-step-padding, .5rem .75rem);border:0;background:transparent;cursor:pointer;font:inherit;text-align:start;white-space:nowrap}.cngx-stepper__step[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-step-disabled-opacity, .55)}.cngx-stepper__step--static{cursor:default;pointer-events:none}.cngx-stepper__step:focus-visible{outline:var(--cngx-step-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-step-focus-offset, 3px)}.cngx-stepper__indicator{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-indicator-size, 1.75rem);height:var(--cngx-step-indicator-size, 1.75rem);border-radius:50%;flex:0 0 auto}.cngx-stepper__label{flex:1 1 auto;min-width:0}cngx-stepper[data-density-auto] .cngx-stepper__step{min-width:var(--cngx-step-collapsed-min, 3.25rem);flex-shrink:calc(1 + var(--cngx-step-distance, 0) * var(--cngx-step-shrink-weight, 20))}cngx-stepper[data-density-auto] .cngx-stepper__step[aria-current=step]{flex-shrink:.25}cngx-stepper[data-density-auto] .cngx-stepper__step[aria-current=step] .cngx-stepper__label{min-width:var(--cngx-step-active-label-min, 4rem);max-width:var(--cngx-step-active-label-max, 60cqi)}cngx-stepper[data-density-auto] .cngx-stepper__label{max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cngx-stepper__panels{display:block}.cngx-stepper__panel{display:block;padding:var(--cngx-step-padding, .5rem .75rem)}@container cngx-stepper (max-width: 600px){.cngx-stepper__panel{padding:var(--cngx-step-padding-compact, .375rem .5rem)}}.cngx-stepper__panel[hidden]{display:none}.cngx-stepper__group-header{display:inline-flex;align-items:center;align-self:center;padding:var(--cngx-stepper-group-chip-padding, .125rem .5rem);border:var(--cngx-stepper-group-chip-border-width, 1px) solid var(--cngx-stepper-group-chip-border, color-mix(in srgb, currentColor 22%, transparent));border-radius:var(--cngx-stepper-group-chip-radius, 999px);background:var(--cngx-stepper-group-chip-bg, color-mix(in srgb, currentColor 6%, transparent));color:var(--cngx-stepper-group-chip-color, inherit);font-weight:var(--cngx-step-group-font-weight, 600);font-size:var(--cngx-stepper-group-chip-font-size, .8125em);line-height:var(--cngx-stepper-group-chip-line-height, 1.25)}.cngx-stepper__group-summary{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem);padding:var(--cngx-stepper-group-summary-padding, 0 .4em);min-width:var(--cngx-stepper-group-summary-size, 1.3em);height:var(--cngx-stepper-group-summary-size, 1.3em);border-radius:var(--cngx-stepper-group-summary-radius, 999px);font-size:var(--cngx-stepper-group-summary-font-size, .75em);font-weight:var(--cngx-stepper-group-summary-font-weight, 600);line-height:1;background:var( --cngx-stepper-group-summary-bg, color-mix(in srgb, currentColor 12%, transparent) );color:var(--cngx-stepper-group-summary-color, inherit)}.cngx-stepper__group-summary--status{min-width:0;width:var(--cngx-stepper-group-summary-dot-size, .6em);height:var(--cngx-stepper-group-summary-dot-size, .6em);padding:0;background:var(--cngx-stepper-group-summary-dot-color, currentColor)}.cngx-stepper__badge{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-badge-size, 1.25rem);height:var(--cngx-step-badge-size, 1.25rem);border-radius:50%;background:var(--cngx-step-error-badge-color, oklch(.45 .15 25));color:var(--cngx-step-error-badge-text-color, oklch(1 0 0));font-size:var(--cngx-step-badge-font-size, .75em);font-weight:var(--cngx-step-badge-font-weight, 700);flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-stepper__step--rejected{outline:var(--cngx-step-rejection-outline-width, 1px) solid var(--cngx-step-rejection-outline-color, oklch(.62 .15 60));outline-offset:var(--cngx-step-rejection-outline-offset, 2px);background:var(--cngx-step-rejection-bg, transparent)}.cngx-stepper__status-pill{display:none}.cngx-stepper__rejection-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-step-rejection-icon-size, 1.25rem);height:var(--cngx-step-rejection-icon-size, 1.25rem);border-radius:50%;background:var(--cngx-step-rejection-icon-bg, oklch(.62 .15 60));color:var(--cngx-step-rejection-icon-color, oklch(1 0 0));font-size:var(--cngx-step-rejection-icon-font-size, .75em);font-weight:var(--cngx-step-rejection-icon-font-weight, 700);flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}cngx-stepper[data-orientation=horizontal] .cngx-stepper__step[data-step-depth=\"1\"],cngx-stepper[data-orientation=horizontal] .cngx-stepper__group-header[data-step-depth=\"1\"]{margin-inline-start:var(--cngx-step-group-indent, 1.5rem)}cngx-stepper[data-orientation=vertical] .cngx-stepper__strip{flex-direction:column;flex-wrap:nowrap;overflow-x:hidden;overflow-y:auto}cngx-stepper[data-orientation=vertical]{display:grid;grid-template-columns:minmax(8rem,max-content) 1fr;gap:var(--cngx-step-gap, .5rem);align-items:start}cngx-stepper[data-orientation=vertical] .cngx-stepper__step[data-step-depth=\"1\"],cngx-stepper[data-orientation=vertical] .cngx-stepper__group-header[data-step-depth=\"1\"]{padding-inline-start:calc(var(--cngx-step-padding-inline, .75rem) + var(--cngx-step-group-indent, 1.5rem))}@media(prefers-reduced-motion:reduce){.cngx-stepper__step,.cngx-stepper__indicator{transition:none!important}}}\n", "@layer cngx.tokens{@property --cngx-step-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-step-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-step-indicator-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 10%,transparent);}@property --cngx-step-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-step-indicator-font-size{syntax: \"*\"; inherits: false; initial-value: .85em;}@property --cngx-step-indicator-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 600;}@property --cngx-step-indicator-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-indicator-disabled-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 5%,transparent);}@property --cngx-step-completed-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-errored-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-step-active-fill{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-hover-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-busy-spinner-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-step-busy-spinner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-stepper-group-chip-border{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 22%,transparent);}@property --cngx-stepper-group-chip-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 6%,transparent);}@property --cngx-stepper-group-chip-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-stepper-group-chip-active-border{syntax: \"*\"; inherits: true;}@property --cngx-stepper-group-chip-active-bg{syntax: \"*\"; inherits: true;}@property --cngx-stepper-group-chip-active-color{syntax: \"*\"; inherits: true;}}@layer cngx.components{@scope(.cngx-stepper){:scope{color:var(--cngx-step-color, currentColor);background:var(--cngx-step-bg, transparent)}.cngx-stepper__indicator{position:relative;background:var(--cngx-step-indicator-bg, color-mix(in srgb, currentColor 10%, transparent));color:var(--cngx-step-indicator-color, currentColor);font-size:var(--cngx-step-indicator-font-size, .85em);font-weight:var(--cngx-step-indicator-font-weight, 600);transition:background-color .12s ease}.cngx-stepper__indicator .cngx-stepper__badge{position:absolute;top:-8px;right:-8px;margin-inline-start:0}.cngx-stepper__indicator[data-state=success]{background:var(--cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)));color:var(--cngx-step-indicator-active-color, oklch(1 0 0))}.cngx-stepper__indicator[data-state=success]:has(.cngx-stepper__indicator-glyph):before{content:\"\\2713\";font-weight:700}.cngx-stepper__indicator[data-state=success] .cngx-stepper__indicator-glyph{display:none}.cngx-stepper__indicator[data-state=error]{background:transparent;color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));box-shadow:inset 0 0 0 2px var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-stepper__indicator[data-state=disabled]{background:var( --cngx-step-indicator-disabled-bg, color-mix(in srgb, currentColor 5%, transparent) )}.cngx-stepper__step[aria-current=step] .cngx-stepper__indicator{background:var(--cngx-step-active-color, var(--cngx-step-active-fill));color:var(--cngx-step-indicator-active-color, oklch(1 0 0))}.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{background:var( --cngx-step-pending-color, var(--cngx-step-active-color, var(--cngx-step-active-fill)) );animation:cngx-stepper-pulse 1.2s ease-in-out infinite}.cngx-stepper__busy-spinner{display:inline-block;width:var(--cngx-step-busy-spinner-size, .875rem);height:var(--cngx-step-busy-spinner-size, .875rem);border-radius:50%;border:2px solid var(--cngx-step-busy-spinner-color, currentColor);border-top-color:transparent;animation:cngx-stepper-spin .8s linear infinite;flex:0 0 auto;margin-inline-start:var(--cngx-step-gap, .5rem)}.cngx-stepper__error-summary{display:flex;flex-direction:column;gap:var(--cngx-step-error-gap, .25rem);padding:var(--cngx-step-error-summary-padding, .25rem 0 0)}.cngx-stepper__error-summary-item{margin:0;font-size:var(--cngx-step-error-font-size, .85rem);line-height:var(--cngx-step-error-line-height, 1.4);color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));overflow-wrap:anywhere}.cngx-stepper__error-summary-step{font-weight:var(--cngx-step-error-summary-step-weight, 600);margin-inline-end:var(--cngx-step-error-summary-step-gap, .375rem)}.cngx-stepper__busy-spinner:not(:empty){width:auto;height:auto;border:0;border-radius:0;animation:none}.cngx-stepper__step:hover:not([aria-disabled=true]){background:var(--cngx-step-hover-bg, color-mix(in srgb, currentColor 8%, transparent));cursor:pointer}@media(prefers-reduced-motion:reduce){.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator,.cngx-stepper__busy-spinner{animation:none}}}}@layer cngx.tokens{@property --cngx-step-linear-dot-fill{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-status-pill-bg-upcoming{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 6%,transparent);}@property --cngx-step-status-pill-bg-in-progress{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-status-pill-bg-done{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-status-pill-bg-errored{syntax: \"*\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-step-status-pill-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-chevron-tile-active{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-chevron-tile-completed{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,oklch(.5 .15 145) 80%,transparent);}@property --cngx-step-chevron-tile-errored{syntax: \"*\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-step-chevron-tile-upcoming-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 12%,transparent);}@property --cngx-step-chevron-tile-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-pill-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 999px;}@property --cngx-step-pill-segment-rail-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 6%,transparent);}@property --cngx-step-pill-segment-fill-active{syntax: \"*\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-pill-segment-fill-completed{syntax: \"*\"; inherits: true; initial-value: transparent;}@property --cngx-step-pill-segment-card-shadow{syntax: \"*\"; inherits: true; initial-value: 0 1px 2px color-mix(in srgb,currentColor 12%,transparent),0 1px 1px color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-connector-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 35%,transparent);}@property --cngx-step-connector-completed-color{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-connector-errored-color{syntax: \"*\"; inherits: true; initial-value: oklch(.55 .18 25);}@property --cngx-step-connector-pending-color{syntax: \"*\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-step-connector-inset{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-step-connector-width{syntax: \"<length>\"; inherits: true; initial-value: 2px;}@property --cngx-step-chips-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-step-chips-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 999px;}@property --cngx-step-chips-padding-inline{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-step-chips-padding-block{syntax: \"*\"; inherits: false; initial-value: .4rem;}@property --cngx-step-chips-bg{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 8%,transparent);}@property --cngx-step-chips-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 65%,transparent);}@property --cngx-step-chips-color-active{syntax: \"*\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-step-chips-bg-completed{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,oklch(.5 .15 145) 12%,transparent);}@property --cngx-step-chips-color-completed{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-step-breadcrumb-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-step-breadcrumb-radius{syntax: \"<length-percentage>\"; inherits: false; initial-value: 6px;}@property --cngx-step-breadcrumb-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 48%,transparent);}@property --cngx-step-breadcrumb-color-active{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 92%,transparent);}@property --cngx-step-breadcrumb-color-completed{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 82%,transparent);}@property --cngx-step-breadcrumb-fill-active{syntax: \"*\"; inherits: true; initial-value: color-mix(in srgb,currentColor 9%,transparent);}@property --cngx-step-breadcrumb-check-color{syntax: \"*\"; inherits: true; initial-value: oklch(.5 .15 145);}}@layer cngx.skins{@scope(.cngx-stepper[data-skin=linear-minimal]){.cngx-stepper__indicator{width:.5rem;height:.5rem;border-radius:50%;background:transparent;border:1px solid color-mix(in srgb,currentColor 35%,transparent);transition:background-color .12s ease,border-color .12s ease}.cngx-stepper__indicator .cngx-stepper__indicator-glyph{display:none}.cngx-stepper__step[aria-current=step] .cngx-stepper__indicator{background:var(--cngx-step-linear-dot-fill, var(--cngx-step-active-fill, currentColor));border-color:var(--cngx-step-linear-dot-fill, var(--cngx-step-active-fill, currentColor))}.cngx-stepper__indicator[data-state=success]{background:var(--cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)));border-color:var( --cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)) )}.cngx-stepper__indicator[data-state=success]:before{content:none}.cngx-stepper__indicator[data-state=error]{width:auto;height:auto;background:transparent;border:0}.cngx-stepper__indicator[data-state=error] .cngx-stepper__badge{position:static;margin-inline-start:0}.cngx-stepper__step{position:relative}.cngx-stepper__step+.cngx-stepper__step:before{content:\"\";position:absolute;left:calc(-1 * var(--cngx-step-gap, .5rem));top:50%;width:var(--cngx-step-gap, .5rem);height:0;border-top:1px dashed color-mix(in srgb,currentColor 35%,transparent);transform:translateY(-50%)}}@scope(.cngx-stepper[data-skin=linear-minimal][data-orientation=vertical]){.cngx-stepper__step+.cngx-stepper__step:before{left:calc(var(--cngx-step-indicator-size, 1.75rem) / 2);top:calc(-1 * var(--cngx-step-gap, .5rem));width:1px;height:var(--cngx-step-gap, .5rem);border-top:0;border-left:2px solid color-mix(in srgb,currentColor 35%,transparent);transform:none}}@scope(.cngx-stepper[data-skin=classic][data-connectors=true]){.cngx-stepper__strip{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:0}.cngx-stepper__step{position:relative;flex:1 1 0;min-width:0;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:.5rem}.cngx-stepper__indicator,.cngx-stepper__label{position:relative;z-index:1}.cngx-stepper__label{white-space:normal}.cngx-stepper__busy-spinner{display:none}.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{color:var(--cngx-step-indicator-active-color, oklch(1 0 0));animation:cngx-step-connectors-pending-pulse 1.2s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.cngx-stepper__step[aria-busy=true] .cngx-stepper__indicator{animation:none}}.cngx-stepper__rejection-icon{position:absolute;top:calc(.5rem + var(--cngx-step-indicator-size, 1.75rem) / 2);left:50%;transform:translate(-50%,-50%);margin:0;z-index:2}.cngx-stepper__step--rejected{outline:none}.cngx-stepper__step--rejected .cngx-stepper__label{color:var(--cngx-step-connector-errored-color)}.cngx-stepper__rejection-icon{background:var(--cngx-step-connector-errored-color)}.cngx-stepper__step[data-state=success] .cngx-stepper__rejection-icon{display:none}.cngx-stepper__step[data-state=success].cngx-stepper__step--rejected{outline:none}.cngx-stepper__step+.cngx-stepper__step:before{content:\"\";position:absolute;left:calc(-50% + var(--cngx-step-indicator-size, 1.75rem) / 2 + var(--cngx-step-connector-inset, 6px));width:calc(100% - var(--cngx-step-indicator-size, 1.75rem) - 2 * var(--cngx-step-connector-inset, 6px));top:calc(.5rem + var(--cngx-step-indicator-size, 1.75rem) / 2);height:var(--cngx-step-connector-width, 2px);background-color:var(--cngx-step-connector-color);transform:translateY(-50%);z-index:0}.cngx-stepper__step[data-state=success]+.cngx-stepper__step:before{background-color:var(--cngx-step-connector-completed-color)}.cngx-stepper__step+.cngx-stepper__step[aria-busy=true]:before{background-color:var(--cngx-step-connector-pending-color)}.cngx-stepper__step+.cngx-stepper__step.cngx-stepper__step--rejected:before{background-color:var(--cngx-step-connector-errored-color)}}@scope(.cngx-stepper[data-skin=classic][data-connectors=true][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:stretch}.cngx-stepper__step{flex:0 0 auto;flex-direction:row;align-items:center;justify-content:flex-start;text-align:start;min-height:calc(var(--cngx-step-indicator-size, 1.75rem) + 2 * var(--cngx-step-connector-inset, 6px) + 2rem)}.cngx-stepper__label{white-space:nowrap}.cngx-stepper__step+.cngx-stepper__step:before{left:calc(.75rem + var(--cngx-step-indicator-size, 1.75rem) / 2 - var(--cngx-step-connector-width, 2px) / 2);width:var(--cngx-step-connector-width, 2px);top:calc(-50% + var(--cngx-step-indicator-size, 1.75rem) / 2 + var(--cngx-step-connector-inset, 6px));height:calc(100% - var(--cngx-step-indicator-size, 1.75rem) - 2 * var(--cngx-step-connector-inset, 6px));transform:none}}@scope(.cngx-stepper[data-skin=stripe-status-rich]){.cngx-stepper__step{flex-direction:column;align-items:center;gap:.375rem}.cngx-stepper__status-pill{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:999px;font-size:.7em;font-weight:600;letter-spacing:.02em;background:var(--cngx-step-status-pill-bg-upcoming);color:color-mix(in srgb,currentColor 80%,transparent);text-transform:none}.cngx-stepper__step[aria-current=step] .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-in-progress);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-done);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]) .cngx-stepper__status-pill{background:var(--cngx-step-status-pill-bg-errored);color:var(--cngx-step-status-pill-color, oklch(1 0 0))}}@scope(.cngx-stepper[data-skin=stripe-status-rich][data-orientation=vertical]){.cngx-stepper__step{flex-direction:row;align-items:center;gap:var(--cngx-step-gap, .5rem);justify-content:flex-start}.cngx-stepper__status-pill{margin-inline-start:auto}}@scope(.cngx-stepper[data-skin=path-chevron]){.cngx-stepper__strip{gap:.125rem}.cngx-stepper__step{flex:1 1 0;clip-path:polygon(0 0,calc(100% - .75rem) 0,100% 50%,calc(100% - .75rem) 100%,0 100%,.75rem 50%);padding-inline:calc(var(--cngx-step-padding-inline, .75rem) + .75rem);justify-content:center;text-align:center;background:var( --cngx-step-chevron-tile-upcoming-bg, color-mix(in srgb, currentColor 12%, transparent) );color:color-mix(in srgb,currentColor 80%,transparent);border:0;transition:background-color .12s ease,color .12s ease}.cngx-stepper__step .cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step:first-child{clip-path:polygon(0 0,calc(100% - .75rem) 0,100% 50%,calc(100% - .75rem) 100%,0 100%)}.cngx-stepper__step:last-child{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,.75rem 50%)}.cngx-stepper__step:only-child{clip-path:none}.cngx-stepper__step[aria-current=step]{background:var(--cngx-step-chevron-tile-active);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=success]){background:var(--cngx-step-chevron-tile-completed);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){background:var(--cngx-step-chevron-tile-errored);color:var(--cngx-step-chevron-tile-color, oklch(1 0 0))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]) .cngx-stepper__label:before{content:var(--cngx-step-chevron-error-glyph, \"!\");margin-inline-end:.4rem;font-weight:700}.cngx-stepper__indicator{display:none}.cngx-stepper__indicator[data-state=success]{display:inline-flex;background:transparent;width:auto;height:auto;padding:0;border:0}}@scope(.cngx-stepper[data-skin=path-chevron][data-orientation=vertical]){.cngx-stepper__strip{gap:0}.cngx-stepper__step{clip-path:polygon(0 0,50% var(--cngx-step-chevron-vertical-notch, .55rem),100% 0,100% calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)),50% 100%,0 calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)));padding-block:calc(var(--cngx-step-chevron-vertical-notch, .55rem) + .5rem);min-height:var(--cngx-step-chevron-vertical-min-height, 3.25rem)}.cngx-stepper__step+.cngx-stepper__step{margin-block-start:calc(-1 * var(--cngx-step-chevron-vertical-notch, .55rem) + var(--cngx-step-chevron-vertical-divider, .25rem))}.cngx-stepper__step .cngx-stepper__label{min-width:0;overflow-wrap:anywhere;line-height:1.3;text-align:center}.cngx-stepper__step .cngx-stepper__indicator{display:none}.cngx-stepper__step:first-child{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)),50% 100%,0 calc(100% - var(--cngx-step-chevron-vertical-notch, .55rem)))}.cngx-stepper__step:last-child{clip-path:polygon(0 0,50% var(--cngx-step-chevron-vertical-notch, .55rem),100% 0,100% 100%,0 100%)}}@scope(.cngx-stepper[data-skin=pill-segment]){.cngx-stepper__strip{gap:.25rem;padding:.25rem;border-radius:var(--cngx-step-pill-radius, 999px);background:var(--cngx-step-pill-segment-rail-bg);border:0}.cngx-stepper__step{flex:1 1 0;justify-content:center;gap:.5rem;background:transparent;border-radius:9999px;color:color-mix(in srgb,currentColor 60%,transparent);transition:background-color .12s ease,color .12s ease,box-shadow .12s ease}.cngx-stepper__step .cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step[aria-current=step]{background:var(--cngx-step-pill-segment-fill-active);color:var(--cngx-step-pill-segment-color-active, currentColor);box-shadow:var(--cngx-step-pill-segment-card-shadow)}.cngx-stepper__step[aria-current=step] .cngx-stepper__indicator{background:var( --cngx-step-pill-segment-indicator-active-bg, var(--cngx-step-active-color, var(--cngx-step-active-fill)) );color:var( --cngx-step-pill-segment-indicator-active-color, var(--cngx-step-indicator-active-color, oklch(1 0 0)) )}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){background:var(--cngx-step-pill-segment-fill-completed, transparent);color:color-mix(in srgb,currentColor 85%,transparent)}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-stepper__indicator{width:var(--cngx-step-pill-indicator-size, 1.375rem);height:var(--cngx-step-pill-indicator-size, 1.375rem);font-size:.72rem;flex:0 0 auto}.cngx-stepper__step:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-stepper__step[aria-current=step]:focus-visible{box-shadow:var(--cngx-step-pill-segment-card-shadow),inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}@scope(.cngx-stepper[data-skin=pill-segment][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:stretch;border-radius:16px}.cngx-stepper__step{justify-content:flex-start;align-items:center;text-align:start;border-radius:12px;padding-block:var(--cngx-step-pill-vertical-padding-block, 1.125rem);min-height:var(--cngx-step-pill-vertical-min-height, 3.75rem)}.cngx-stepper__step .cngx-stepper__label{min-width:0;overflow-wrap:anywhere;line-height:1.3}}@scope(.cngx-stepper[data-skin=chips]){.cngx-stepper__strip{gap:var(--cngx-step-chips-gap, .5rem);padding:0;background:transparent;border:0;flex-wrap:wrap}.cngx-stepper__step{gap:.375rem;padding-inline:var(--cngx-step-chips-padding-inline, .875rem);padding-block:var(--cngx-step-chips-padding-block, .4rem);border-radius:var(--cngx-step-chips-radius, 999px);background:var(--cngx-step-chips-bg, color-mix(in srgb, currentColor 8%, transparent));color:var(--cngx-step-chips-color, color-mix(in srgb, currentColor 65%, transparent));border:0;transition:background-color .12s ease,color .12s ease}.cngx-stepper__step[aria-current=step]{background:var( --cngx-step-chips-fill-active, var(--cngx-color-primary, oklch(.66 .19 50)) );color:var(--cngx-step-chips-color-active, oklch(1 0 0))}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){background:var( --cngx-step-chips-bg-completed, color-mix(in srgb, var(--cngx-color-success, oklch(.5 .15 145)) 12%, transparent) );color:var(--cngx-step-chips-color-completed, var(--cngx-color-success, oklch(.5 .15 145)))}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__label:before{content:\"\\2713\";margin-inline-end:.3rem;font-weight:600}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){background:var( --cngx-step-chips-bg-errored, var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25))) );color:var(--cngx-step-chips-color-errored, var(--cngx-color-on-danger, oklch(1 0 0)))}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]) .cngx-stepper__label:before{content:var(--cngx-step-chips-error-glyph, \"!\");margin-inline-end:.3rem;font-weight:700}.cngx-stepper__indicator,.cngx-stepper__status-pill{display:none}.cngx-stepper__label{flex:0 0 auto}.cngx-stepper__step:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}@scope(.cngx-stepper[data-skin=chips][data-orientation=vertical]){.cngx-stepper__strip{flex-direction:column;align-items:flex-start}.cngx-stepper__step{width:100%;justify-content:flex-start}}@scope(.cngx-stepper[data-skin=breadcrumb]){.cngx-stepper__strip{gap:var(--cngx-step-breadcrumb-gap, .5rem);padding:0;background:transparent;border:0;flex-wrap:wrap;align-items:center}.cngx-stepper__step{gap:.25rem;padding:0;background:transparent;border:0;color:var(--cngx-step-breadcrumb-color, color-mix(in srgb, currentColor 48%, transparent));transition:color .12s ease}.cngx-stepper__step:not(:last-child):after{content:var(--cngx-step-breadcrumb-separator, \"\\203a\");margin-inline-start:var(--cngx-step-breadcrumb-gap, .5rem);color:color-mix(in srgb,currentColor 30%,transparent);font-weight:400}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]){color:var( --cngx-step-breadcrumb-color-completed, color-mix(in srgb, currentColor 82%, transparent) );cursor:pointer}.cngx-stepper__step:not([aria-current=step]):has(.cngx-stepper__indicator[data-state=success]) .cngx-stepper__label:after{content:\"\\2713\";margin-inline-start:.3rem;color:var( --cngx-step-breadcrumb-check-color, var(--cngx-color-success, oklch(.5 .15 145)) );font-weight:600}.cngx-stepper__step[aria-current=step]{color:var( --cngx-step-breadcrumb-color-active, color-mix(in srgb, currentColor 92%, transparent) );font-weight:600}.cngx-stepper__step[aria-current=step] .cngx-stepper__label{background:var( --cngx-step-breadcrumb-fill-active, color-mix(in srgb, currentColor 9%, transparent) );padding-inline:.5rem;padding-block:.2rem;border-radius:var(--cngx-step-breadcrumb-radius, 6px)}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]){color:var( --cngx-step-breadcrumb-color-errored, var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25))) );font-weight:600}.cngx-stepper__step:has(.cngx-stepper__indicator[data-state=error]) .cngx-stepper__label:after{content:var(--cngx-step-breadcrumb-error-glyph, \"!\");margin-inline-start:.3rem;font-weight:700;color:var( --cngx-step-breadcrumb-error-glyph-color, var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25))) )}.cngx-stepper__indicator,.cngx-stepper__status-pill{display:none}.cngx-stepper__step:focus-visible{outline:0;border-radius:var(--cngx-step-breadcrumb-radius, 6px);box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}}}@keyframes cngx-stepper-spin{to{transform:rotate(360deg)}}@keyframes cngx-stepper-pulse{0%,to{opacity:1}50%{opacity:.6}}@keyframes cngx-step-connectors-pending-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.12)}}.cngx-stepper[data-skin=path-chevron] .cngx-stepper__step:focus-visible{outline:0!important;outline-offset:0!important;box-shadow:inset 0 0 0 2px var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-stepper__mobile-text{display:inline-block;font:inherit;color:inherit}.cngx-stepper[data-mobile-indicator-position=bottom]{display:flex;flex-direction:column}.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-text,.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-dots,.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__mobile-text--caption{order:2}.cngx-stepper[data-mobile-indicator-position=bottom] .cngx-stepper__panels{order:1}.cngx-stepper__mobile-dots{display:flex;justify-content:center;align-items:center;gap:var(--cngx-dot-step-gap, .5rem)}.cngx-stepper__mobile-text--caption{display:block;text-align:center;font-size:.8125rem;color:color-mix(in srgb,currentColor 70%,transparent);margin-block-start:.5rem}.cngx-stepper__mobile-dot{position:relative;display:inline-block;width:var(--cngx-dot-step-size, .625rem);height:var(--cngx-dot-step-size, .625rem);padding:0;border:0;border-radius:50%;background:var(--cngx-dot-step-upcoming-bg, color-mix(in srgb, currentColor 18%, transparent));cursor:pointer;transition:background .15s ease-out,transform .15s ease-out}.cngx-stepper__mobile-dot[aria-disabled=true]{cursor:not-allowed}.cngx-stepper__mobile-dot--static{cursor:default;pointer-events:none}.cngx-stepper__mobile-dot--completed{background:var(--cngx-dot-step-completed-fill, var(--cngx-step-completed-color, currentColor))}.cngx-stepper__mobile-dot--active{background:var(--cngx-dot-step-active-fill, var(--cngx-step-active-fill, currentColor));transform:scale(1.25)}.cngx-stepper__mobile-dot[data-state=error]{background:var(--cngx-step-errored-color, currentColor)}.cngx-stepper__mobile-dot--error:after{content:var(--cngx-dot-step-error-glyph, \"!\");position:absolute;inset:0;display:grid;place-items:center;font-size:var(--cngx-dot-step-error-glyph-size, .5rem);font-weight:700;line-height:1;color:var(--cngx-dot-step-error-glyph-color, var(--cngx-color-on-danger, white))}.cngx-stepper__mobile-error{display:flex;width:fit-content;align-items:center;gap:var(--cngx-step-mobile-error-gap, .375rem);margin-block-start:var(--cngx-step-mobile-error-margin-top, .25rem);font-size:var(--cngx-step-mobile-error-font-size, .8125rem);color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-stepper__mobile-error-glyph{flex:none;display:inline-grid;place-items:center;width:var(--cngx-step-mobile-error-glyph-size, 1.1em);height:var(--cngx-step-mobile-error-glyph-size, 1.1em);border-radius:50%;background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));color:var(--cngx-step-mobile-error-glyph-color, var(--cngx-color-on-danger, white));font-size:.75em;font-weight:700;line-height:1}@media(prefers-reduced-motion:reduce){.cngx-stepper__mobile-dot{transition:none}}.cngx-stepper__group-header--collapsed{opacity:var(--cngx-stepper-collapsed-group-opacity, .65)}.cngx-stepper__group-header--navigable{cursor:pointer}.cngx-stepper__group-header--active{border-color:var(--cngx-stepper-group-chip-active-border, var(--cngx-color-primary, oklch(.55 .18 264)));background:var( --cngx-stepper-group-chip-active-bg, color-mix(in srgb, var(--cngx-color-primary, oklch(.55 .18 264)) 14%, transparent) );color:var(--cngx-stepper-group-chip-active-color, var(--cngx-color-primary, oklch(.55 .18 264)))}@media(prefers-reduced-motion:no-preference){.cngx-stepper__group-header{transition:opacity var(--cngx-stepper-collapse-duration, .16s) var(--cngx-stepper-collapse-easing, ease),background-color var(--cngx-stepper-collapse-duration, .16s) var(--cngx-stepper-collapse-easing, ease),border-color var(--cngx-stepper-collapse-duration, .16s) var(--cngx-stepper-collapse-easing, ease),color var(--cngx-stepper-collapse-duration, .16s) var(--cngx-stepper-collapse-easing, ease)}}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-rail-bg: oklch(.24 .005 240);--cngx-step-indicator-active-color: oklch(.98 0 0);--cngx-step-pill-segment-card-shadow: 0 1px 2px color-mix(in srgb, oklch(0 0 0) 55%, transparent)}@layer cngx.tokens{:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-fill-active: oklch(.4 .008 240)}}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step{color:color-mix(in srgb,oklch(1 0 0) 60%,transparent)}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step[aria-current=step]{color:#f8f8f8}@media(prefers-color-scheme:dark){:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-rail-bg: oklch(.24 .005 240);--cngx-step-indicator-active-color: oklch(.98 0 0);--cngx-step-pill-segment-card-shadow: 0 1px 2px color-mix(in srgb, oklch(0 0 0) 55%, transparent)}@layer cngx.tokens{:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment]{--cngx-step-pill-segment-fill-active: oklch(.4 .008 240)}}:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step{color:color-mix(in srgb,oklch(1 0 0) 60%,transparent)}:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper[data-skin=pill-segment] .cngx-stepper__step[aria-current=step]{color:#f8f8f8}}.cngx-stepper__group-summary--status[data-state=success]{background:var(--cngx-step-completed-color, var(--cngx-color-success, oklch(.55 .13 150)))}.cngx-stepper__group-summary--status[data-state=error]{background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.55 .18 25)))}.cngx-stepper__group-summary--status[data-state=pending]{background:var(--cngx-step-pending-color, var(--cngx-step-active-color, currentColor))}.cngx-stepper[data-density-auto] .cngx-stepper__label{flex:1 1 auto;min-width:0}.cngx-stepper[data-density-auto] .cngx-stepper__strip{overflow-x:clip;flex-wrap:nowrap}.cngx-stepper[data-density-auto][data-skin=stripe-status-rich] .cngx-stepper__status-pill{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cngx-stepper[data-density-auto][data-skin=path-chevron] .cngx-stepper__step,.cngx-stepper[data-density-auto][data-skin=pill-segment] .cngx-stepper__step{flex-grow:1;flex-basis:auto;flex-shrink:calc(1 + var(--cngx-step-distance, 0) * var(--cngx-step-shrink-weight, 20));min-width:var(--cngx-step-collapsed-min, 3.25rem)}.cngx-stepper[data-density-auto][data-skin=path-chevron] .cngx-stepper__step[aria-current=step],.cngx-stepper[data-density-auto][data-skin=pill-segment] .cngx-stepper__step[aria-current=step]{flex-shrink:.25}.cngx-stepper[data-density-auto][data-skin=path-chevron] .cngx-stepper__label,.cngx-stepper[data-density-auto][data-skin=pill-segment] .cngx-stepper__label{flex:1 1 auto}.cngx-stepper[data-density-auto][data-skin=path-chevron] .cngx-stepper__step:not([aria-current=step]) .cngx-stepper__label,.cngx-stepper[data-density-auto][data-skin=chips] .cngx-stepper__step:not([aria-current=step]) .cngx-stepper__label,.cngx-stepper[data-density-auto][data-skin=breadcrumb] .cngx-stepper__step:not([aria-current=step]) .cngx-stepper__label{min-width:var(--cngx-step-collapsed-label-min, 2ch)}.cngx-stepper[data-density-auto][data-skin=chips] .cngx-stepper__step{padding-inline:var(--cngx-step-chips-density-padding-inline, .45rem)}@media(prefers-reduced-motion:no-preference){.cngx-stepper[data-density-auto] .cngx-stepper__step{transition:--cngx-step-distance var(--cngx-stepper-density-transition, .24s) ease,flex-shrink var(--cngx-stepper-density-transition, .24s) ease,background-color .12s ease,color .12s ease,box-shadow .12s ease}}\n"] }]
|
|
415
|
+
}], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], skin: [{ type: i0.Input, args: [{ isSignal: true, alias: "skin", required: false }] }], connectors: [{ type: i0.Input, args: [{ isSignal: true, alias: "connectors", required: false }] }], headerNavigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerNavigation", required: false }] }], showStepCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "showStepCount", required: false }] }], mobileIndicatorPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "mobileIndicatorPosition", required: false }] }], stepDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CngxStep), { ...{ descendants: true }, isSignal: true }] }], indicatorSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepIndicator), { isSignal: true }] }], badgeSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepBadge), { isSignal: true }] }], busySpinnerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepBusySpinner), { isSignal: true }] }], rejectionSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepRejection), { isSignal: true }] }], errorSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepError), { isSignal: true }] }], groupHeaderSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepGroupHeader), { isSignal: true }] }], emptySlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxStepperEmpty), { isSignal: true }] }] } });
|
|
211
416
|
|
|
212
417
|
/**
|
|
213
418
|
* Progress-Bar stepper variant. Thin Level-4 organism composing
|
|
@@ -227,6 +432,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
227
432
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/progress-bar-stepper.component.ts
|
|
228
433
|
* @since 0.1.0
|
|
229
434
|
* @relatedTo CngxStepperPresenter, CngxProgress, CngxDotStepper, CngxTextStepper
|
|
435
|
+
* @playground Material theme coverage across variants ./examples/material-theme-coverage/variants-coverage.component.ts
|
|
230
436
|
* <example-url>http://localhost:4200/#/ui/stepper/progress-bar/onboarding-flow</example-url>
|
|
231
437
|
*/
|
|
232
438
|
class CngxProgressBarStepper {
|
|
@@ -236,6 +442,13 @@ class CngxProgressBarStepper {
|
|
|
236
442
|
showStepCount = input(false, ...(ngDevMode ? [{ debugName: "showStepCount" }] : /* istanbul ignore next */ []));
|
|
237
443
|
presenter = inject(CNGX_STEPPER_HOST);
|
|
238
444
|
i18n = injectStepperI18n();
|
|
445
|
+
/** Shared per-step/aggregate state derivations - the single error source. */
|
|
446
|
+
stateView = createStepperStateView({
|
|
447
|
+
presenter: this.presenter,
|
|
448
|
+
stepsOnly: this.presenter.stepsOnly,
|
|
449
|
+
});
|
|
450
|
+
/** Default error glyph for the error caption. */
|
|
451
|
+
errorGlyph = CNGX_STEPPER_GLYPHS.errorBadge;
|
|
239
452
|
/** Total step count (group nodes excluded). */
|
|
240
453
|
totalSteps = computed(() => this.presenter.stepsOnly().length, ...(ngDevMode ? [{ debugName: "totalSteps" }] : /* istanbul ignore next */ []));
|
|
241
454
|
/** 1-based active position used in the caption format. */
|
|
@@ -259,8 +472,14 @@ class CngxProgressBarStepper {
|
|
|
259
472
|
return Math.max(0, Math.min(100, (this.presenter.activeStepIndex() / denominator) * 100));
|
|
260
473
|
}, ...(ngDevMode ? [{ debugName: "completedPercent" }] : /* istanbul ignore next */ []));
|
|
261
474
|
captionText = computed(() => this.i18n.textStepperFormat(this.currentStep(), this.totalSteps()), ...(ngDevMode ? [{ debugName: "captionText" }] : /* istanbul ignore next */ []));
|
|
475
|
+
/**
|
|
476
|
+
* Aggregate error caption. A single errored step names itself
|
|
477
|
+
* (`"Payment: Errored"`), several collapse to the i18n count phrase.
|
|
478
|
+
* Read only when `stateView.hasAnyError()` gates the template.
|
|
479
|
+
*/
|
|
480
|
+
errorText = computed(() => resolveStepperErrorSummary(this.stateView, this.presenter.stepsOnly, this.i18n, (node) => node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0]), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
262
481
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxProgressBarStepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
263
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxProgressBarStepper, isStandalone: true, selector: "cngx-progress-bar-stepper", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, showStepCount: { classPropertyName: "showStepCount", publicName: "showStepCount", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.aria-roledescription": "\"stepper\"", "attr.aria-label": "ariaLabel()", "attr.aria-labelledby": "ariaLabelledBy()" }, classAttribute: "cngx-progress-bar-stepper" }, exportAs: ["cngxProgressBarStepper"], hostDirectives: [{ directive: i1.CngxStepperPresenter, inputs: ["activeStepIndex", "activeStepIndex", "linear", "linear"], outputs: ["activeStepIndexChange", "activeStepIndexChange"] }], ngImport: i0, template: "<cngx-progress\n class=\"cngx-progress-bar-stepper__bar\"\n [progress]=\"completedPercent()\"\n [label]=\"captionText()\"\n></cngx-progress>\n@if (showStepCount()) {\n <cngx-stepper-count class=\"cngx-progress-bar-stepper__caption\" [live]=\"false\" />\n}\n", styles: [".cngx-progress-bar-stepper{display:flex;flex-direction:column;gap:var(--cngx-progress-bar-stepper-gap, .375rem);width:100%;--cngx-progress-color: var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-progress-bar-stepper__bar{display:block;width:100%}.cngx-progress-bar-stepper__caption{font-size:var(--cngx-progress-bar-stepper-caption-font-size, .8125rem);color:var(--cngx-progress-bar-stepper-caption-color, currentColor);opacity:var(--cngx-progress-bar-stepper-caption-opacity, .75)}\n"], dependencies: [{ kind: "component", type: CngxProgress, selector: "cngx-progress", inputs: ["state", "progress", "variant", "showLabel", "label"] }, { kind: "component", type: CngxStepperCount, selector: "cngx-stepper-count", inputs: ["live", "format", "host"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
482
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxProgressBarStepper, isStandalone: true, selector: "cngx-progress-bar-stepper", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, showStepCount: { classPropertyName: "showStepCount", publicName: "showStepCount", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.aria-roledescription": "\"stepper\"", "attr.aria-label": "ariaLabel()", "attr.aria-labelledby": "ariaLabelledBy()", "attr.data-state": "stateView.hasAnyError() ? \"error\" : null", "attr.aria-invalid": "stateView.hasAnyError() ? \"true\" : null" }, classAttribute: "cngx-progress-bar-stepper" }, exportAs: ["cngxProgressBarStepper"], hostDirectives: [{ directive: i1.CngxStepperPresenter, inputs: ["activeStepIndex", "activeStepIndex", "linear", "linear"], outputs: ["activeStepIndexChange", "activeStepIndexChange"] }], ngImport: i0, template: "<cngx-progress\n class=\"cngx-progress-bar-stepper__bar\"\n [progress]=\"completedPercent()\"\n [label]=\"captionText()\"\n></cngx-progress>\n@if (showStepCount()) {\n <cngx-stepper-count class=\"cngx-progress-bar-stepper__caption\" [live]=\"false\" />\n}\n@if (stateView.hasAnyError()) {\n <span class=\"cngx-progress-bar-stepper__error\" role=\"status\" data-state=\"error\">\n <span class=\"cngx-progress-bar-stepper__error-glyph\" aria-hidden=\"true\">{{ errorGlyph }}</span>\n <span class=\"cngx-progress-bar-stepper__error-text\">{{ errorText() }}</span>\n </span>\n}\n", styles: [".cngx-progress-bar-stepper{display:flex;flex-direction:column;gap:var(--cngx-progress-bar-stepper-gap, .375rem);width:100%;--cngx-progress-color: var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-progress-bar-stepper__bar{display:block;width:100%}.cngx-progress-bar-stepper__caption{font-size:var(--cngx-progress-bar-stepper-caption-font-size, .8125rem);color:var(--cngx-progress-bar-stepper-caption-color, currentColor);opacity:var(--cngx-progress-bar-stepper-caption-opacity, .75)}.cngx-progress-bar-stepper[data-state=error]{--cngx-progress-color: var( --cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)) )}.cngx-progress-bar-stepper__error{display:inline-flex;align-items:center;gap:var(--cngx-progress-bar-stepper-error-gap, .375rem);font-size:var(--cngx-progress-bar-stepper-error-font-size, .8125rem);color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-progress-bar-stepper__error-glyph{flex:none;display:inline-grid;place-items:center;width:var(--cngx-progress-bar-stepper-error-glyph-size, 1.1em);height:var(--cngx-progress-bar-stepper-error-glyph-size, 1.1em);border-radius:50%;background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));color:var(--cngx-progress-bar-stepper-error-glyph-color, var(--cngx-color-on-danger, white));font-size:.75em;font-weight:700;line-height:1}\n"], dependencies: [{ kind: "component", type: CngxProgress, selector: "cngx-progress", inputs: ["state", "progress", "variant", "showLabel", "label"] }, { kind: "component", type: CngxStepperCount, selector: "cngx-stepper-count", inputs: ["live", "format", "host"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
264
483
|
}
|
|
265
484
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxProgressBarStepper, decorators: [{
|
|
266
485
|
type: Component,
|
|
@@ -276,7 +495,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
276
495
|
'[attr.aria-roledescription]': '"stepper"',
|
|
277
496
|
'[attr.aria-label]': 'ariaLabel()',
|
|
278
497
|
'[attr.aria-labelledby]': 'ariaLabelledBy()',
|
|
279
|
-
|
|
498
|
+
'[attr.data-state]': 'stateView.hasAnyError() ? "error" : null',
|
|
499
|
+
'[attr.aria-invalid]': 'stateView.hasAnyError() ? "true" : null',
|
|
500
|
+
}, template: "<cngx-progress\n class=\"cngx-progress-bar-stepper__bar\"\n [progress]=\"completedPercent()\"\n [label]=\"captionText()\"\n></cngx-progress>\n@if (showStepCount()) {\n <cngx-stepper-count class=\"cngx-progress-bar-stepper__caption\" [live]=\"false\" />\n}\n@if (stateView.hasAnyError()) {\n <span class=\"cngx-progress-bar-stepper__error\" role=\"status\" data-state=\"error\">\n <span class=\"cngx-progress-bar-stepper__error-glyph\" aria-hidden=\"true\">{{ errorGlyph }}</span>\n <span class=\"cngx-progress-bar-stepper__error-text\">{{ errorText() }}</span>\n </span>\n}\n", styles: [".cngx-progress-bar-stepper{display:flex;flex-direction:column;gap:var(--cngx-progress-bar-stepper-gap, .375rem);width:100%;--cngx-progress-color: var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-progress-bar-stepper__bar{display:block;width:100%}.cngx-progress-bar-stepper__caption{font-size:var(--cngx-progress-bar-stepper-caption-font-size, .8125rem);color:var(--cngx-progress-bar-stepper-caption-color, currentColor);opacity:var(--cngx-progress-bar-stepper-caption-opacity, .75)}.cngx-progress-bar-stepper[data-state=error]{--cngx-progress-color: var( --cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)) )}.cngx-progress-bar-stepper__error{display:inline-flex;align-items:center;gap:var(--cngx-progress-bar-stepper-error-gap, .375rem);font-size:var(--cngx-progress-bar-stepper-error-font-size, .8125rem);color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-progress-bar-stepper__error-glyph{flex:none;display:inline-grid;place-items:center;width:var(--cngx-progress-bar-stepper-error-glyph-size, 1.1em);height:var(--cngx-progress-bar-stepper-error-glyph-size, 1.1em);border-radius:50%;background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));color:var(--cngx-progress-bar-stepper-error-glyph-color, var(--cngx-color-on-danger, white));font-size:.75em;font-weight:700;line-height:1}\n"] }]
|
|
280
501
|
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], showStepCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "showStepCount", required: false }] }] } });
|
|
281
502
|
|
|
282
503
|
/**
|
|
@@ -309,7 +530,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
309
530
|
* @since 0.1.0
|
|
310
531
|
* @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxTextStepper
|
|
311
532
|
* <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/mobile-carousel</example-url>
|
|
312
|
-
* <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/icon-dots-via-code-cngxdotstepperdot-code</example-url>
|
|
313
533
|
*/
|
|
314
534
|
class CngxDotStepper {
|
|
315
535
|
ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
|
|
@@ -321,11 +541,25 @@ class CngxDotStepper {
|
|
|
321
541
|
swipeNav = inject(CngxStepperSwipeNav, { host: true });
|
|
322
542
|
stepNodes = this.presenter.stepsOnly;
|
|
323
543
|
activeIndex = computed(() => this.presenter.activeStepIndex(), ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
544
|
+
/** Shared per-step/aggregate state derivations - the single error source. */
|
|
545
|
+
stateView = createStepperStateView({
|
|
546
|
+
presenter: this.presenter,
|
|
547
|
+
stepsOnly: this.stepNodes,
|
|
548
|
+
});
|
|
549
|
+
/** Default error glyph for the aggregate error line. */
|
|
550
|
+
errorGlyph = CNGX_STEPPER_GLYPHS.errorBadge;
|
|
551
|
+
/**
|
|
552
|
+
* Aggregate error line. The dot row only colours the errored dot, so
|
|
553
|
+
* the real reason (the `[error]` string / aggregator label) needs a
|
|
554
|
+
* text surface; this is it. Falls back to the count phrase for
|
|
555
|
+
* multiple errors.
|
|
556
|
+
*/
|
|
557
|
+
errorText = computed(() => resolveStepperErrorSummary(this.stateView, this.stepNodes, this.i18n, (node) => node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0]), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
324
558
|
dotSlot = contentChild(CngxDotStepperDot, ...(ngDevMode ? [{ debugName: "dotSlot" }] : /* istanbul ignore next */ []));
|
|
325
559
|
/**
|
|
326
560
|
* Resolved dot-body template cascade: per-instance `*cngxDotStepperDot`
|
|
327
561
|
* directive > `CNGX_STEPPER_CONFIG.templates.dotStepperDot` > `null`
|
|
328
|
-
* (built-in empty body). Pillar 1
|
|
562
|
+
* (built-in empty body). Pillar 1 - resolution is a `computed`, not
|
|
329
563
|
* manual sync.
|
|
330
564
|
*/
|
|
331
565
|
resolvedDotTemplate = computed(() => this.dotSlot()?.templateRef ?? this.config.templates?.dotStepperDot ?? null, ...(ngDevMode ? [{ debugName: "resolvedDotTemplate" }] : /* istanbul ignore next */ []));
|
|
@@ -335,8 +569,17 @@ class CngxDotStepper {
|
|
|
335
569
|
isCompleted(index) {
|
|
336
570
|
return index < this.activeIndex();
|
|
337
571
|
}
|
|
572
|
+
/**
|
|
573
|
+
* Resolved `data-state` for the dot: `'error'` whenever the unified error
|
|
574
|
+
* view fires (covers commit rejection and the error aggregator, not just a
|
|
575
|
+
* literal `state === 'error'`), otherwise the raw step status.
|
|
576
|
+
*/
|
|
577
|
+
dotState(node) {
|
|
578
|
+
return this.stateView.hasError(node) ? 'error' : node.state();
|
|
579
|
+
}
|
|
338
580
|
ariaLabelFor(node, index) {
|
|
339
|
-
|
|
581
|
+
const base = this.i18n.selectedStep(node.label(), index + 1, this.stepNodes().length);
|
|
582
|
+
return this.stateView.hasError(node) ? `${base}: ${this.i18n.statusLabels.errored}` : base;
|
|
340
583
|
}
|
|
341
584
|
/** Build the slot context for `*cngxDotStepperDot`. */
|
|
342
585
|
dotContextFor(node, index) {
|
|
@@ -375,7 +618,7 @@ class CngxDotStepper {
|
|
|
375
618
|
}
|
|
376
619
|
}
|
|
377
620
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxDotStepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
378
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxDotStepper, isStandalone: true, selector: "cngx-dot-stepper", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group", "tabindex": "0" }, listeners: { "keydown": "handleKeyDown($event)" }, properties: { "attr.aria-roledescription": "i18n.stepIndicatorRoleDescription", "attr.aria-label": "ariaLabel()", "attr.aria-labelledby": "ariaLabelledBy()" }, classAttribute: "cngx-dot-stepper" }, queries: [{ propertyName: "dotSlot", first: true, predicate: CngxDotStepperDot, descendants: true, isSignal: true }], exportAs: ["cngxDotStepper"], hostDirectives: [{ directive: i1.CngxStepperPresenter, inputs: ["activeStepIndex", "activeStepIndex", "linear", "linear"], outputs: ["activeStepIndexChange", "activeStepIndexChange"] }, { directive: i1.CngxStepperSwipeNav, inputs: ["mobileSwipe", "mobileSwipe"] }], ngImport: i0, template: "<div\n class=\"cngx-dot-stepper__row\"\n
|
|
621
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxDotStepper, isStandalone: true, selector: "cngx-dot-stepper", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group", "tabindex": "0" }, listeners: { "keydown": "handleKeyDown($event)" }, properties: { "attr.aria-roledescription": "i18n.stepIndicatorRoleDescription", "attr.aria-label": "ariaLabel()", "attr.aria-labelledby": "ariaLabelledBy()", "attr.aria-invalid": "stateView.hasAnyError() ? \"true\" : null" }, classAttribute: "cngx-dot-stepper" }, queries: [{ propertyName: "dotSlot", first: true, predicate: CngxDotStepperDot, descendants: true, isSignal: true }], exportAs: ["cngxDotStepper"], hostDirectives: [{ directive: i1.CngxStepperPresenter, inputs: ["activeStepIndex", "activeStepIndex", "linear", "linear"], outputs: ["activeStepIndexChange", "activeStepIndexChange"] }, { directive: i1.CngxStepperSwipeNav, inputs: ["mobileSwipe", "mobileSwipe"] }], ngImport: i0, template: "<div\n class=\"cngx-dot-stepper__row\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n>\n @for (node of stepNodes(); track node.id; let i = $index) {\n @let dotTpl = resolvedDotTemplate();\n <span\n class=\"cngx-dot-stepper__dot\"\n role=\"img\"\n [class.cngx-dot-stepper__dot--active]=\"isActive(node, i)\"\n [class.cngx-dot-stepper__dot--completed]=\"i < activeIndex()\"\n [class.cngx-dot-stepper__dot--error]=\"stateView.hasError(node)\"\n [attr.aria-current]=\"isActive(node, i) ? 'step' : null\"\n [attr.aria-label]=\"ariaLabelFor(node, i)\"\n [attr.data-state]=\"dotState(node)\"\n >\n @if (dotTpl) {\n <ng-container *ngTemplateOutlet=\"dotTpl; context: dotContextFor(node, i)\" />\n }\n </span>\n }\n</div>\n\n@if (stateView.hasAnyError()) {\n <span class=\"cngx-dot-stepper__error\" role=\"status\" data-state=\"error\">\n <span class=\"cngx-dot-stepper__error-glyph\" aria-hidden=\"true\">{{ errorGlyph }}</span>\n <span class=\"cngx-dot-stepper__error-text\">{{ errorText() }}</span>\n </span>\n}\n", styles: ["@layer cngx.tokens{@property --cngx-dot-step-size{syntax: \"*\"; inherits: true; initial-value: .625rem;}@property --cngx-dot-step-gap{syntax: \"*\"; inherits: true; initial-value: .5rem;}@property --cngx-dot-step-active-fill{syntax: \"*\"; inherits: true; initial-value: var(--cngx-step-active-fill, oklch(.66 .19 50));}@property --cngx-dot-step-completed-fill{syntax: \"*\"; inherits: true; initial-value: var(--cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)));}@property --cngx-dot-step-upcoming-bg{syntax: \"*\"; inherits: true; initial-value: var(--cngx-step-indicator-bg, color-mix(in srgb, currentColor 18%, transparent));}}.cngx-dot-stepper{display:inline-flex;align-items:center;flex-wrap:wrap;justify-self:start;align-self:start;width:max-content}.cngx-dot-stepper:focus-visible{outline:2px solid var(--cngx-color-primary, oklch(.66 .19 50));outline-offset:var(--cngx-step-focus-offset, 3px);border-radius:var(--cngx-dot-step-focus-radius, .375rem)}.cngx-dot-stepper__row{display:inline-flex;align-items:center;gap:var(--cngx-dot-step-gap, .5rem)}.cngx-dot-stepper__dot{position:relative;display:inline-block;width:var(--cngx-dot-step-size, .625rem);height:var(--cngx-dot-step-size, .625rem);border-radius:50%;background:var(--cngx-dot-step-upcoming-bg, color-mix(in srgb, currentColor 18%, transparent));transition:background .15s ease-out,transform .15s ease-out}.cngx-dot-stepper__dot--completed{background:var(--cngx-dot-step-completed-fill, var(--cngx-color-success, oklch(.5 .15 145)))}.cngx-dot-stepper__dot--active{background:var(--cngx-dot-step-active-fill, oklch(.66 .19 50));transform:scale(1.25)}.cngx-dot-stepper__dot[data-state=error]{background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-dot-stepper__dot--error:after{content:var(--cngx-dot-step-error-glyph, \"!\");position:absolute;inset:0;display:grid;place-items:center;font-size:var(--cngx-dot-step-error-glyph-size, .5rem);font-weight:700;line-height:1;color:var(--cngx-dot-step-error-glyph-color, var(--cngx-color-on-danger, white))}.cngx-dot-stepper__dot:not(:empty){width:auto;height:auto;background:transparent;border-radius:0}.cngx-dot-stepper__error{flex-basis:100%;display:inline-flex;align-items:center;gap:var(--cngx-dot-stepper-error-gap, .375rem);margin-block-start:var(--cngx-dot-stepper-error-margin, .5rem);font-size:var(--cngx-dot-stepper-error-font-size, .8125rem);color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-dot-stepper__error-glyph{flex:none;display:inline-grid;place-items:center;width:var(--cngx-dot-stepper-error-glyph-size, 1.1em);height:var(--cngx-dot-stepper-error-glyph-size, 1.1em);border-radius:50%;background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));color:var(--cngx-dot-stepper-error-glyph-color, var(--cngx-color-on-danger, white));font-size:.75em;font-weight:700}@media(prefers-reduced-motion:reduce){.cngx-dot-stepper__dot{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxSwipe, selector: "[cngxSwipe]", inputs: ["threshold", "axis", "enabled"], outputs: ["swiped"], exportAs: ["cngxSwipe"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
379
622
|
}
|
|
380
623
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxDotStepper, decorators: [{
|
|
381
624
|
type: Component,
|
|
@@ -396,8 +639,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
396
639
|
'[attr.aria-roledescription]': 'i18n.stepIndicatorRoleDescription',
|
|
397
640
|
'[attr.aria-label]': 'ariaLabel()',
|
|
398
641
|
'[attr.aria-labelledby]': 'ariaLabelledBy()',
|
|
642
|
+
'[attr.aria-invalid]': 'stateView.hasAnyError() ? "true" : null',
|
|
399
643
|
'(keydown)': 'handleKeyDown($event)',
|
|
400
|
-
}, template: "<div\n class=\"cngx-dot-stepper__row\"\n
|
|
644
|
+
}, template: "<div\n class=\"cngx-dot-stepper__row\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n>\n @for (node of stepNodes(); track node.id; let i = $index) {\n @let dotTpl = resolvedDotTemplate();\n <span\n class=\"cngx-dot-stepper__dot\"\n role=\"img\"\n [class.cngx-dot-stepper__dot--active]=\"isActive(node, i)\"\n [class.cngx-dot-stepper__dot--completed]=\"i < activeIndex()\"\n [class.cngx-dot-stepper__dot--error]=\"stateView.hasError(node)\"\n [attr.aria-current]=\"isActive(node, i) ? 'step' : null\"\n [attr.aria-label]=\"ariaLabelFor(node, i)\"\n [attr.data-state]=\"dotState(node)\"\n >\n @if (dotTpl) {\n <ng-container *ngTemplateOutlet=\"dotTpl; context: dotContextFor(node, i)\" />\n }\n </span>\n }\n</div>\n\n@if (stateView.hasAnyError()) {\n <span class=\"cngx-dot-stepper__error\" role=\"status\" data-state=\"error\">\n <span class=\"cngx-dot-stepper__error-glyph\" aria-hidden=\"true\">{{ errorGlyph }}</span>\n <span class=\"cngx-dot-stepper__error-text\">{{ errorText() }}</span>\n </span>\n}\n", styles: ["@layer cngx.tokens{@property --cngx-dot-step-size{syntax: \"*\"; inherits: true; initial-value: .625rem;}@property --cngx-dot-step-gap{syntax: \"*\"; inherits: true; initial-value: .5rem;}@property --cngx-dot-step-active-fill{syntax: \"*\"; inherits: true; initial-value: var(--cngx-step-active-fill, oklch(.66 .19 50));}@property --cngx-dot-step-completed-fill{syntax: \"*\"; inherits: true; initial-value: var(--cngx-step-completed-color, var(--cngx-color-success, oklch(.5 .15 145)));}@property --cngx-dot-step-upcoming-bg{syntax: \"*\"; inherits: true; initial-value: var(--cngx-step-indicator-bg, color-mix(in srgb, currentColor 18%, transparent));}}.cngx-dot-stepper{display:inline-flex;align-items:center;flex-wrap:wrap;justify-self:start;align-self:start;width:max-content}.cngx-dot-stepper:focus-visible{outline:2px solid var(--cngx-color-primary, oklch(.66 .19 50));outline-offset:var(--cngx-step-focus-offset, 3px);border-radius:var(--cngx-dot-step-focus-radius, .375rem)}.cngx-dot-stepper__row{display:inline-flex;align-items:center;gap:var(--cngx-dot-step-gap, .5rem)}.cngx-dot-stepper__dot{position:relative;display:inline-block;width:var(--cngx-dot-step-size, .625rem);height:var(--cngx-dot-step-size, .625rem);border-radius:50%;background:var(--cngx-dot-step-upcoming-bg, color-mix(in srgb, currentColor 18%, transparent));transition:background .15s ease-out,transform .15s ease-out}.cngx-dot-stepper__dot--completed{background:var(--cngx-dot-step-completed-fill, var(--cngx-color-success, oklch(.5 .15 145)))}.cngx-dot-stepper__dot--active{background:var(--cngx-dot-step-active-fill, oklch(.66 .19 50));transform:scale(1.25)}.cngx-dot-stepper__dot[data-state=error]{background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-dot-stepper__dot--error:after{content:var(--cngx-dot-step-error-glyph, \"!\");position:absolute;inset:0;display:grid;place-items:center;font-size:var(--cngx-dot-step-error-glyph-size, .5rem);font-weight:700;line-height:1;color:var(--cngx-dot-step-error-glyph-color, var(--cngx-color-on-danger, white))}.cngx-dot-stepper__dot:not(:empty){width:auto;height:auto;background:transparent;border-radius:0}.cngx-dot-stepper__error{flex-basis:100%;display:inline-flex;align-items:center;gap:var(--cngx-dot-stepper-error-gap, .375rem);margin-block-start:var(--cngx-dot-stepper-error-margin, .5rem);font-size:var(--cngx-dot-stepper-error-font-size, .8125rem);color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-dot-stepper__error-glyph{flex:none;display:inline-grid;place-items:center;width:var(--cngx-dot-stepper-error-glyph-size, 1.1em);height:var(--cngx-dot-stepper-error-glyph-size, 1.1em);border-radius:50%;background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));color:var(--cngx-dot-stepper-error-glyph-color, var(--cngx-color-on-danger, white));font-size:.75em;font-weight:700}@media(prefers-reduced-motion:reduce){.cngx-dot-stepper__dot{transition:none}}\n"] }]
|
|
401
645
|
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], dotSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxDotStepperDot), { isSignal: true }] }] } });
|
|
402
646
|
|
|
403
647
|
/**
|
|
@@ -423,6 +667,13 @@ class CngxTextStepper {
|
|
|
423
667
|
presenter = inject(CNGX_STEPPER_HOST);
|
|
424
668
|
i18n = injectStepperI18n();
|
|
425
669
|
stepNodes = this.presenter.stepsOnly;
|
|
670
|
+
/** Shared per-step/aggregate state derivations - the single error source. */
|
|
671
|
+
stateView = createStepperStateView({
|
|
672
|
+
presenter: this.presenter,
|
|
673
|
+
stepsOnly: this.stepNodes,
|
|
674
|
+
});
|
|
675
|
+
/** Default error glyph for the error sub-line. */
|
|
676
|
+
errorGlyph = CNGX_STEPPER_GLYPHS.errorBadge;
|
|
426
677
|
totalSteps = computed(() => this.stepNodes().length, ...(ngDevMode ? [{ debugName: "totalSteps" }] : /* istanbul ignore next */ []));
|
|
427
678
|
currentStep = computed(() => {
|
|
428
679
|
const total = this.totalSteps();
|
|
@@ -443,8 +694,15 @@ class CngxTextStepper {
|
|
|
443
694
|
}
|
|
444
695
|
return `${base}: ${node.label()}`;
|
|
445
696
|
}, ...(ngDevMode ? [{ debugName: "stepText" }] : /* istanbul ignore next */ []));
|
|
697
|
+
/**
|
|
698
|
+
* Aggregate error sub-line text. A single errored step names itself
|
|
699
|
+
* (`"Payment: Errored"`), several collapse to the i18n count phrase
|
|
700
|
+
* (`"2 errors"`). Empty when no step errored - the template gates on
|
|
701
|
+
* `stateView.hasAnyError()`, so this is only read when non-empty.
|
|
702
|
+
*/
|
|
703
|
+
errorText = computed(() => resolveStepperErrorSummary(this.stateView, this.stepNodes, this.i18n, (node) => node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0]), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
446
704
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTextStepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
447
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
705
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxTextStepper, isStandalone: true, selector: "cngx-text-stepper", inputs: { showCurrentLabel: { classPropertyName: "showCurrentLabel", publicName: "showCurrentLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-invalid": "stateView.hasAnyError() ? \"true\" : null" }, classAttribute: "cngx-text-stepper" }, exportAs: ["cngxTextStepper"], hostDirectives: [{ directive: i1.CngxStepperPresenter, inputs: ["activeStepIndex", "activeStepIndex", "linear", "linear"], outputs: ["activeStepIndexChange", "activeStepIndexChange"] }], ngImport: i0, template: "<span class=\"cngx-text-stepper__text\" aria-live=\"polite\">{{ stepText() }}</span>\n@if (stateView.hasAnyError()) {\n <span class=\"cngx-text-stepper__error\" role=\"status\" data-state=\"error\">\n <span class=\"cngx-text-stepper__error-glyph\" aria-hidden=\"true\">{{ errorGlyph }}</span>\n <span class=\"cngx-text-stepper__error-text\">{{ errorText() }}</span>\n </span>\n}\n", styles: [".cngx-text-stepper{display:inline-flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--cngx-text-step-gap, .5rem)}.cngx-text-stepper__text{font:inherit;color:inherit}.cngx-text-stepper__error{flex-basis:100%;display:inline-flex;align-items:center;gap:var(--cngx-text-step-error-gap, .375rem);margin-top:var(--cngx-text-step-error-margin-top, .25rem);font:inherit;font-size:var(--cngx-text-step-error-font-size, .875em);color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-text-stepper__error-glyph{flex:none;display:inline-grid;place-items:center;width:var(--cngx-text-step-error-glyph-size, 1.1em);height:var(--cngx-text-step-error-glyph-size, 1.1em);border-radius:50%;background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));color:var(--cngx-text-step-error-glyph-color, var(--cngx-color-on-danger, white));font-size:.75em;font-weight:700;line-height:1}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
448
706
|
}
|
|
449
707
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTextStepper, decorators: [{
|
|
450
708
|
type: Component,
|
|
@@ -456,24 +714,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
456
714
|
},
|
|
457
715
|
], host: {
|
|
458
716
|
class: 'cngx-text-stepper',
|
|
459
|
-
|
|
717
|
+
'[attr.aria-invalid]': 'stateView.hasAnyError() ? "true" : null',
|
|
718
|
+
}, template: "<span class=\"cngx-text-stepper__text\" aria-live=\"polite\">{{ stepText() }}</span>\n@if (stateView.hasAnyError()) {\n <span class=\"cngx-text-stepper__error\" role=\"status\" data-state=\"error\">\n <span class=\"cngx-text-stepper__error-glyph\" aria-hidden=\"true\">{{ errorGlyph }}</span>\n <span class=\"cngx-text-stepper__error-text\">{{ errorText() }}</span>\n </span>\n}\n", styles: [".cngx-text-stepper{display:inline-flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--cngx-text-step-gap, .5rem)}.cngx-text-stepper__text{font:inherit;color:inherit}.cngx-text-stepper__error{flex-basis:100%;display:inline-flex;align-items:center;gap:var(--cngx-text-step-error-gap, .375rem);margin-top:var(--cngx-text-step-error-margin-top, .25rem);font:inherit;font-size:var(--cngx-text-step-error-font-size, .875em);color:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)))}.cngx-text-stepper__error-glyph{flex:none;display:inline-grid;place-items:center;width:var(--cngx-text-step-error-glyph-size, 1.1em);height:var(--cngx-text-step-error-glyph-size, 1.1em);border-radius:50%;background:var(--cngx-step-errored-color, var(--cngx-color-danger, oklch(.45 .15 25)));color:var(--cngx-text-step-error-glyph-color, var(--cngx-color-on-danger, white));font-size:.75em;font-weight:700;line-height:1}\n"] }]
|
|
460
719
|
}], propDecorators: { showCurrentLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentLabel", required: false }] }] } });
|
|
461
720
|
|
|
462
721
|
/**
|
|
463
|
-
* Navigation action-bar molecule for the stepper family.
|
|
464
|
-
* regions - start (Back), center (progress hint), end (Continue / Finish)
|
|
465
|
-
*
|
|
466
|
-
* drops inside.
|
|
722
|
+
* Navigation action-bar molecule for the stepper family. \
|
|
723
|
+
* Lays out three regions - **start** (Back), **center** (progress hint), **end** (Continue / Finish). \
|
|
724
|
+
* Wires the {@link CNGX_STEPPER_HOST} for any nav atoms a consumer drops inside.
|
|
467
725
|
*
|
|
468
|
-
* Resolves its host like `CngxStepperCount
|
|
469
|
-
* for placement outside the stepper tree, falling back to the ambient
|
|
726
|
+
* **Resolves its host like `CngxStepperCount`:** \
|
|
727
|
+
* An explicit `[host]` input for placement outside the stepper tree, falling back to the ambient
|
|
470
728
|
* host injected from an ancestor `<cngx-stepper>` / `<cngx-mat-stepper>`
|
|
471
729
|
* (`skipSelf`, so the footer reads the real presenter rather than its own
|
|
472
|
-
* re-provided proxy).
|
|
730
|
+
* re-provided proxy). \
|
|
731
|
+
* It then re-provides `CNGX_STEPPER_HOST` as a live
|
|
473
732
|
* {@link createStepperHostProxy} over the resolved host, so child
|
|
474
733
|
* `[cngxStepperPrevious]` / `[cngxStepperNext]` atoms resolve it
|
|
475
734
|
* ambiently whether the footer is nested or used standalone with
|
|
476
|
-
* `[host]`.
|
|
735
|
+
* `[host]`. \
|
|
736
|
+
* `providers` (not `viewProviders`) carries the proxy to the
|
|
477
737
|
* consumer-projected button content. With no host at all, the proxy's
|
|
478
738
|
* neutral set renders the nav buttons disabled.
|
|
479
739
|
*
|
|
@@ -529,7 +789,7 @@ class CngxStepperFooter {
|
|
|
529
789
|
<div class="cngx-stepper-footer__end">
|
|
530
790
|
<ng-content select="[cngxStepperFooterEnd]" />
|
|
531
791
|
</div>
|
|
532
|
-
`, isInline: true, styles: [".cngx-stepper-footer{display:flex;align-items:center;flex-wrap:wrap;gap:var(--cngx-stepper-footer-gap, .75rem);margin-block-start:var(--cngx-stepper-footer-margin-block-start, 1rem);padding-block:var(--cngx-stepper-footer-padding-block, .75rem);padding-inline:var(--cngx-stepper-footer-padding-inline, 0);border-block-start:var(--cngx-stepper-footer-border-width, 1px) var(--cngx-stepper-footer-border-style, solid) var(--cngx-stepper-footer-border-color,
|
|
792
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-stepper-footer-gap{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-stepper-footer-region-gap{syntax: \"*\"; inherits: true; initial-value: .5rem;}@property --cngx-stepper-footer-margin-block-start{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-stepper-footer-padding-block{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-stepper-footer-padding-inline{syntax: \"<length>\"; inherits: false; initial-value: 0;}@property --cngx-stepper-footer-border-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-stepper-footer-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --cngx-stepper-footer-border-color{syntax: \"<color>\"; inherits: false; initial-value: #e0e0e0;}@property --cngx-stepper-footer-center-basis{syntax: \"*\"; inherits: true; initial-value: auto;}@property --cngx-stepper-footer-center-color{syntax: \"*\"; inherits: true;}}.cngx-stepper-footer{display:flex;align-items:center;flex-wrap:wrap;gap:var(--cngx-stepper-footer-gap, .75rem);margin-block-start:var(--cngx-stepper-footer-margin-block-start, 1rem);padding-block:var(--cngx-stepper-footer-padding-block, .75rem);padding-inline:var(--cngx-stepper-footer-padding-inline, 0);border-block-start:var(--cngx-stepper-footer-border-width, 1px) var(--cngx-stepper-footer-border-style, solid) var(--cngx-stepper-footer-border-color, #e0e0e0)}.cngx-stepper-footer__start,.cngx-stepper-footer__center,.cngx-stepper-footer__end{display:flex;align-items:center;flex-wrap:wrap;gap:var(--cngx-stepper-footer-region-gap, .5rem)}.cngx-stepper-footer__start{justify-content:flex-start}.cngx-stepper-footer__center{flex:1 1 var(--cngx-stepper-footer-center-basis, auto);justify-content:center;text-align:center;color:var(--cngx-stepper-footer-center-color, inherit)}.cngx-stepper-footer__end{margin-inline-start:auto;justify-content:flex-end}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper-footer{--cngx-stepper-footer-border-color: color-mix(in srgb, oklch(1 0 0) 16%, transparent)}@media(prefers-color-scheme:dark){:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper-footer{--cngx-stepper-footer-border-color: color-mix(in srgb, oklch(1 0 0) 16%, transparent)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
533
793
|
}
|
|
534
794
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxStepperFooter, decorators: [{
|
|
535
795
|
type: Component,
|
|
@@ -549,7 +809,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
549
809
|
<div class="cngx-stepper-footer__end">
|
|
550
810
|
<ng-content select="[cngxStepperFooterEnd]" />
|
|
551
811
|
</div>
|
|
552
|
-
`, styles: [".cngx-stepper-footer{display:flex;align-items:center;flex-wrap:wrap;gap:var(--cngx-stepper-footer-gap, .75rem);margin-block-start:var(--cngx-stepper-footer-margin-block-start, 1rem);padding-block:var(--cngx-stepper-footer-padding-block, .75rem);padding-inline:var(--cngx-stepper-footer-padding-inline, 0);border-block-start:var(--cngx-stepper-footer-border-width, 1px) var(--cngx-stepper-footer-border-style, solid) var(--cngx-stepper-footer-border-color,
|
|
812
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-stepper-footer-gap{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-stepper-footer-region-gap{syntax: \"*\"; inherits: true; initial-value: .5rem;}@property --cngx-stepper-footer-margin-block-start{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-stepper-footer-padding-block{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-stepper-footer-padding-inline{syntax: \"<length>\"; inherits: false; initial-value: 0;}@property --cngx-stepper-footer-border-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-stepper-footer-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --cngx-stepper-footer-border-color{syntax: \"<color>\"; inherits: false; initial-value: #e0e0e0;}@property --cngx-stepper-footer-center-basis{syntax: \"*\"; inherits: true; initial-value: auto;}@property --cngx-stepper-footer-center-color{syntax: \"*\"; inherits: true;}}.cngx-stepper-footer{display:flex;align-items:center;flex-wrap:wrap;gap:var(--cngx-stepper-footer-gap, .75rem);margin-block-start:var(--cngx-stepper-footer-margin-block-start, 1rem);padding-block:var(--cngx-stepper-footer-padding-block, .75rem);padding-inline:var(--cngx-stepper-footer-padding-inline, 0);border-block-start:var(--cngx-stepper-footer-border-width, 1px) var(--cngx-stepper-footer-border-style, solid) var(--cngx-stepper-footer-border-color, #e0e0e0)}.cngx-stepper-footer__start,.cngx-stepper-footer__center,.cngx-stepper-footer__end{display:flex;align-items:center;flex-wrap:wrap;gap:var(--cngx-stepper-footer-region-gap, .5rem)}.cngx-stepper-footer__start{justify-content:flex-start}.cngx-stepper-footer__center{flex:1 1 var(--cngx-stepper-footer-center-basis, auto);justify-content:center;text-align:center;color:var(--cngx-stepper-footer-center-color, inherit)}.cngx-stepper-footer__end{margin-inline-start:auto;justify-content:flex-end}:where(:root[data-color-scheme=dark],:root.dark) .cngx-stepper-footer{--cngx-stepper-footer-border-color: color-mix(in srgb, oklch(1 0 0) 16%, transparent)}@media(prefers-color-scheme:dark){:where(:root:not([data-color-scheme=light]):not(.light)) .cngx-stepper-footer{--cngx-stepper-footer-border-color: color-mix(in srgb, oklch(1 0 0) 16%, transparent)}}\n"] }]
|
|
553
813
|
}], propDecorators: { host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: false }] }] } });
|
|
554
814
|
|
|
555
815
|
/**
|
|
@@ -620,7 +880,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
620
880
|
/**
|
|
621
881
|
* @module @cngx/ui/stepper
|
|
622
882
|
*
|
|
623
|
-
* Level-4 organism
|
|
883
|
+
* Level-4 organism - CNGX-standard `<cngx-stepper>` skin over the
|
|
624
884
|
* Level-2 `CngxStepperPresenter` from `@cngx/common/stepper`.
|
|
625
885
|
* Composes presenter + roving tabindex + focus restore + live
|
|
626
886
|
* region via `hostDirectives`. Material consumers reach for
|