@4sh/ui-kit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE +7 -0
- package/README.md +229 -0
- package/fesm2022/4sh-ui-kit-forms.mjs +501 -0
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-motion.mjs +155 -0
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-overlay.mjs +61 -0
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-theming.mjs +120 -0
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-types.mjs +12 -0
- package/fesm2022/4sh-ui-kit-types.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-accordion.mjs +244 -0
- package/fesm2022/4sh-ui-kit-ui-accordion.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-alert.mjs +160 -0
- package/fesm2022/4sh-ui-kit-ui-alert.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs +926 -0
- package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs +34 -0
- package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-avatar.mjs +122 -0
- package/fesm2022/4sh-ui-kit-ui-avatar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-badge.mjs +95 -0
- package/fesm2022/4sh-ui-kit-ui-badge.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs +190 -0
- package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-button-split.mjs +151 -0
- package/fesm2022/4sh-ui-kit-ui-button-split.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-button.mjs +222 -0
- package/fesm2022/4sh-ui-kit-ui-button.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-card.mjs +164 -0
- package/fesm2022/4sh-ui-kit-ui-card.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-checkbox.mjs +118 -0
- package/fesm2022/4sh-ui-kit-ui-checkbox.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-chip.mjs +205 -0
- package/fesm2022/4sh-ui-kit-ui-chip.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-context-menu.mjs +219 -0
- package/fesm2022/4sh-ui-kit-ui-context-menu.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-datepicker.mjs +1508 -0
- package/fesm2022/4sh-ui-kit-ui-datepicker.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-drawer.mjs +300 -0
- package/fesm2022/4sh-ui-kit-ui-drawer.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-empty-state.mjs +148 -0
- package/fesm2022/4sh-ui-kit-ui-empty-state.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-field.mjs +102 -0
- package/fesm2022/4sh-ui-kit-ui-field.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-file-upload.mjs +568 -0
- package/fesm2022/4sh-ui-kit-ui-file-upload.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-helper.mjs +85 -0
- package/fesm2022/4sh-ui-kit-ui-helper.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-icon.mjs +98 -0
- package/fesm2022/4sh-ui-kit-ui-icon.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-image.mjs +201 -0
- package/fesm2022/4sh-ui-kit-ui-image.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-group.mjs +119 -0
- package/fesm2022/4sh-ui-kit-ui-input-group.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-mask.mjs +125 -0
- package/fesm2022/4sh-ui-kit-ui-input-mask.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-number.mjs +234 -0
- package/fesm2022/4sh-ui-kit-ui-input-number.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-otp.mjs +288 -0
- package/fesm2022/4sh-ui-kit-ui-input-otp.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-tags.mjs +679 -0
- package/fesm2022/4sh-ui-kit-ui-input-tags.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input.mjs +121 -0
- package/fesm2022/4sh-ui-kit-ui-input.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-label.mjs +61 -0
- package/fesm2022/4sh-ui-kit-ui-label.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-link.mjs +147 -0
- package/fesm2022/4sh-ui-kit-ui-link.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-menu.mjs +484 -0
- package/fesm2022/4sh-ui-kit-ui-menu.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-modal.mjs +555 -0
- package/fesm2022/4sh-ui-kit-ui-modal.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-nudger.mjs +168 -0
- package/fesm2022/4sh-ui-kit-ui-nudger.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-paginator.mjs +245 -0
- package/fesm2022/4sh-ui-kit-ui-paginator.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-popover.mjs +296 -0
- package/fesm2022/4sh-ui-kit-ui-popover.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs +124 -0
- package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-radio.mjs +92 -0
- package/fesm2022/4sh-ui-kit-ui-radio.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-rating.mjs +185 -0
- package/fesm2022/4sh-ui-kit-ui-rating.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-read-only.mjs +146 -0
- package/fesm2022/4sh-ui-kit-ui-read-only.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-segment-control.mjs +386 -0
- package/fesm2022/4sh-ui-kit-ui-segment-control.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-select.mjs +868 -0
- package/fesm2022/4sh-ui-kit-ui-select.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-separator.mjs +77 -0
- package/fesm2022/4sh-ui-kit-ui-separator.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-sidebar.mjs +577 -0
- package/fesm2022/4sh-ui-kit-ui-sidebar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-skeleton.mjs +81 -0
- package/fesm2022/4sh-ui-kit-ui-skeleton.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-slider.mjs +340 -0
- package/fesm2022/4sh-ui-kit-ui-slider.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-spinner.mjs +132 -0
- package/fesm2022/4sh-ui-kit-ui-spinner.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-stepper.mjs +389 -0
- package/fesm2022/4sh-ui-kit-ui-stepper.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-table.mjs +1406 -0
- package/fesm2022/4sh-ui-kit-ui-table.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-tabs.mjs +503 -0
- package/fesm2022/4sh-ui-kit-ui-tabs.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-tag.mjs +84 -0
- package/fesm2022/4sh-ui-kit-ui-tag.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-textarea.mjs +119 -0
- package/fesm2022/4sh-ui-kit-ui-textarea.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-toast.mjs +424 -0
- package/fesm2022/4sh-ui-kit-ui-toast.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-toggle.mjs +120 -0
- package/fesm2022/4sh-ui-kit-ui-toggle.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-tooltip.mjs +445 -0
- package/fesm2022/4sh-ui-kit-ui-tooltip.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit.mjs +16 -0
- package/fesm2022/4sh-ui-kit.mjs.map +1 -0
- package/package.json +287 -0
- package/styles/base/_base.scss +19 -0
- package/styles/base/_motion.scss +144 -0
- package/styles/base/_typography.scss +99 -0
- package/styles/generated/_tokens-breakpoint.scss +8 -0
- package/styles/generated/_tokens-metrics.scss +37 -0
- package/styles/generated/_tokens-primitives.scss +284 -0
- package/styles/generated/_tokens-responsive.scss +99 -0
- package/styles/generated/_tokens-semantics.scss +1274 -0
- package/styles/generated/_tokens-styles.scss +35 -0
- package/styles/generated/_tokens-transitions.scss +11 -0
- package/styles/generated/_tokens-typography.scss +14 -0
- package/styles/generated/_tokens.scss +10 -0
- package/styles/index.scss +25 -0
- package/styles/settings/_ui-config.scss +67 -0
- package/styles/utils/_functions.scss +67 -0
- package/styles/utils/_helpers.scss +129 -0
- package/styles/utils/_mixins.scss +186 -0
- package/styles/utils/_motion.scss +47 -0
- package/styles/utils/_overlay.scss +26 -0
- package/styles/utils.scss +15 -0
- package/styles.css +1 -0
- package/types/4sh-ui-kit-forms.d.ts +259 -0
- package/types/4sh-ui-kit-motion.d.ts +111 -0
- package/types/4sh-ui-kit-overlay.d.ts +31 -0
- package/types/4sh-ui-kit-theming.d.ts +54 -0
- package/types/4sh-ui-kit-types.d.ts +13 -0
- package/types/4sh-ui-kit-ui-accordion.d.ts +140 -0
- package/types/4sh-ui-kit-ui-alert.d.ts +89 -0
- package/types/4sh-ui-kit-ui-autocomplete.d.ts +411 -0
- package/types/4sh-ui-kit-ui-avatar-group.d.ts +17 -0
- package/types/4sh-ui-kit-ui-avatar.d.ts +55 -0
- package/types/4sh-ui-kit-ui-badge.d.ts +38 -0
- package/types/4sh-ui-kit-ui-breadcrumb.d.ts +131 -0
- package/types/4sh-ui-kit-ui-button-split.d.ts +102 -0
- package/types/4sh-ui-kit-ui-button.d.ts +91 -0
- package/types/4sh-ui-kit-ui-card.d.ts +102 -0
- package/types/4sh-ui-kit-ui-checkbox.d.ts +54 -0
- package/types/4sh-ui-kit-ui-chip.d.ts +114 -0
- package/types/4sh-ui-kit-ui-context-menu.d.ts +105 -0
- package/types/4sh-ui-kit-ui-datepicker.d.ts +539 -0
- package/types/4sh-ui-kit-ui-drawer.d.ts +147 -0
- package/types/4sh-ui-kit-ui-empty-state.d.ts +93 -0
- package/types/4sh-ui-kit-ui-field.d.ts +53 -0
- package/types/4sh-ui-kit-ui-file-upload.d.ts +268 -0
- package/types/4sh-ui-kit-ui-helper.d.ts +46 -0
- package/types/4sh-ui-kit-ui-icon.d.ts +69 -0
- package/types/4sh-ui-kit-ui-image.d.ts +88 -0
- package/types/4sh-ui-kit-ui-input-group.d.ts +54 -0
- package/types/4sh-ui-kit-ui-input-mask.d.ts +63 -0
- package/types/4sh-ui-kit-ui-input-number.d.ts +96 -0
- package/types/4sh-ui-kit-ui-input-otp.d.ts +130 -0
- package/types/4sh-ui-kit-ui-input-tags.d.ts +350 -0
- package/types/4sh-ui-kit-ui-input.d.ts +78 -0
- package/types/4sh-ui-kit-ui-label.d.ts +36 -0
- package/types/4sh-ui-kit-ui-link.d.ts +72 -0
- package/types/4sh-ui-kit-ui-menu.d.ts +235 -0
- package/types/4sh-ui-kit-ui-modal.d.ts +241 -0
- package/types/4sh-ui-kit-ui-nudger.d.ts +79 -0
- package/types/4sh-ui-kit-ui-paginator.d.ts +150 -0
- package/types/4sh-ui-kit-ui-popover.d.ts +125 -0
- package/types/4sh-ui-kit-ui-progress-bar.d.ts +82 -0
- package/types/4sh-ui-kit-ui-radio.d.ts +44 -0
- package/types/4sh-ui-kit-ui-rating.d.ts +90 -0
- package/types/4sh-ui-kit-ui-read-only.d.ts +70 -0
- package/types/4sh-ui-kit-ui-segment-control.d.ts +184 -0
- package/types/4sh-ui-kit-ui-select.d.ts +392 -0
- package/types/4sh-ui-kit-ui-separator.d.ts +43 -0
- package/types/4sh-ui-kit-ui-sidebar.d.ts +358 -0
- package/types/4sh-ui-kit-ui-skeleton.d.ts +52 -0
- package/types/4sh-ui-kit-ui-slider.d.ts +127 -0
- package/types/4sh-ui-kit-ui-spinner.d.ts +67 -0
- package/types/4sh-ui-kit-ui-stepper.d.ts +220 -0
- package/types/4sh-ui-kit-ui-table.d.ts +570 -0
- package/types/4sh-ui-kit-ui-tabs.d.ts +225 -0
- package/types/4sh-ui-kit-ui-tag.d.ts +46 -0
- package/types/4sh-ui-kit-ui-textarea.d.ts +61 -0
- package/types/4sh-ui-kit-ui-toast.d.ts +247 -0
- package/types/4sh-ui-kit-ui-toggle.d.ts +67 -0
- package/types/4sh-ui-kit-ui-tooltip.d.ts +167 -0
- package/types/4sh-ui-kit.d.ts +4 -0
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { model, input, booleanAttribute, inject, computed, Component, contentChild, signal, effect, numberAttribute, output, contentChildren, forwardRef } from '@angular/core';
|
|
3
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
5
|
+
|
|
6
|
+
/** Process-wide counter for unique step/panel ids (aria wiring). */
|
|
7
|
+
let nextUid = 0;
|
|
8
|
+
/**
|
|
9
|
+
* ui-step , a single step header inside a {@link UiStepList} (horizontal) or a
|
|
10
|
+
* {@link UiStepItem} (vertical).
|
|
11
|
+
*
|
|
12
|
+
* Renders a real native `<button role="tab">` with a numbered marker and its
|
|
13
|
+
* title. Every enabled header is a natural tab stop, so `Tab` walks through the
|
|
14
|
+
* headers and `Enter`/`Space` activate the focused one (native button
|
|
15
|
+
* behaviour , no custom key handling). The progression state (upcoming /
|
|
16
|
+
* active / completed) is derived by the container from the active value; colours
|
|
17
|
+
* come entirely from the `navigation.*` / `informative.*` design tokens.
|
|
18
|
+
*
|
|
19
|
+
* Declared before {@link UiStepper} so the container's content query can
|
|
20
|
+
* reference it without a temporal-dead-zone error at class-definition time.
|
|
21
|
+
*/
|
|
22
|
+
class UiStep {
|
|
23
|
+
constructor() {
|
|
24
|
+
/** Identifier of this step (matched against the container `value`). */
|
|
25
|
+
this.value = model(undefined, /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
27
|
+
/** Disable the step (not activatable, skipped by keyboard focus). */
|
|
28
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
29
|
+
/** Icon name overriding the numbered marker (any state). */
|
|
30
|
+
this.icon = input(/* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
32
|
+
/** Accessible name override (falls back to the projected title). */
|
|
33
|
+
this.ariaLabel = input(/* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
35
|
+
/** @ignore Parent container (owns the active state + progression). */
|
|
36
|
+
this.stepper = inject(UiStepper);
|
|
37
|
+
/** @ignore Progression state of this step. */
|
|
38
|
+
this.state = computed(() => this.stepper.stepState(this.value()), /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
40
|
+
/** @ignore 1-based position of this step (shown in the marker). */
|
|
41
|
+
this.number = computed(() => this.stepper.stepNumber(this.value()), /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "number" }] : /* istanbul ignore next */ []));
|
|
43
|
+
/** @ignore Whether a trailing separator is drawn (horizontal, not the last step). */
|
|
44
|
+
this.showSeparator = computed(() => this.stepper.orientation() === 'horizontal' && !this.stepper.isLast(this.value()), /* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [{ debugName: "showSeparator" }] : /* istanbul ignore next */ []));
|
|
46
|
+
/** @ignore The separator bridges to the next step once this one is completed. */
|
|
47
|
+
this.separatorCompleted = computed(() => this.state() === 'completed', /* @ts-ignore */
|
|
48
|
+
...(ngDevMode ? [{ debugName: "separatorCompleted" }] : /* istanbul ignore next */ []));
|
|
49
|
+
/** @ignore Last step in the sequence (no trailing growth in the horizontal strip). */
|
|
50
|
+
this.isLastStep = computed(() => this.stepper.isLast(this.value()), /* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [{ debugName: "isLastStep" }] : /* istanbul ignore next */ []));
|
|
52
|
+
/**
|
|
53
|
+
* @ignore Disabled when explicitly set, or , in `linear` mode , when the step
|
|
54
|
+
* lies ahead of the active one (you cannot skip forward).
|
|
55
|
+
*/
|
|
56
|
+
this.isDisabled = computed(() => this.disabled() || (this.stepper.linear() && this.state() === 'upcoming'), /* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
58
|
+
/** @ignore Glyph shown in the marker: own icon, else the completed icon, else the number. */
|
|
59
|
+
this.markerIcon = computed(() => {
|
|
60
|
+
if (this.icon())
|
|
61
|
+
return this.icon();
|
|
62
|
+
if (this.state() === 'completed')
|
|
63
|
+
return this.stepper.completedIcon() ?? null;
|
|
64
|
+
return null;
|
|
65
|
+
}, /* @ts-ignore */
|
|
66
|
+
...(ngDevMode ? [{ debugName: "markerIcon" }] : /* istanbul ignore next */ []));
|
|
67
|
+
}
|
|
68
|
+
/** @ignore */
|
|
69
|
+
onClick(event) {
|
|
70
|
+
const value = this.value();
|
|
71
|
+
if (this.isDisabled() || value === undefined)
|
|
72
|
+
return;
|
|
73
|
+
this.stepper.updateValue(value, event);
|
|
74
|
+
}
|
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStep, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiStep, isStandalone: true, selector: "ui-step", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class._active": "state() === 'active'", "class._completed": "state() === 'completed'", "class._vertical": "stepper.orientation() === 'vertical'", "class._disabled": "isDisabled()", "class._last": "isLastStep()" }, classAttribute: "ui-step" }, ngImport: i0, template: "<button\n #stepBtn\n type=\"button\"\n role=\"tab\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"state() === 'active'\"\n [attr.aria-current]=\"state() === 'active' ? 'step' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"isDisabled()\"\n [attr.tabindex]=\"isDisabled() ? null : stepper.tabindex()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"ui-step-marker\" aria-hidden=\"true\">\n @if (markerIcon(); as name) {\n <ui-icon [name]=\"name\" size=\"default\" />\n } @else {\n {{ number() }}\n }\n </span>\n <span class=\"ui-step-title\"><ng-content /></span>\n</button>\n\n@if (showSeparator()) {\n <span class=\"ui-step-separator\" aria-hidden=\"true\" [class._completed]=\"separatorCompleted()\"></span>\n}\n", styles: [":host{display:flex;flex:1 1 0;align-items:flex-start;min-width:0}:host._last{flex:0 0 auto}.ui-step-header{display:inline-flex;flex-direction:column;align-items:center;gap:var(--units-sm);flex:0 0 auto;margin:0;padding:0;border:0;background:transparent;cursor:pointer;text-align:center}.ui-step-header:disabled{cursor:not-allowed}.ui-step-header:focus-visible{outline:none}.ui-step-marker{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:2.75rem;height:2.75rem;flex:0 0 auto;border:var(--stroke-sm) solid var(--navigation-high-stroke-default);border-radius:var(--radius-full);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--size-typography-text-default);line-height:1;transition:color var(--transition-default) var(--transition-easeinout),background-color var(--transition-default) var(--transition-easeinout),border-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-step-title{width:0;display:flex;justify-content:center;white-space:nowrap;color:var(--navigation-high-content-default);font-family:var(--fontfamily-title);font-size:var(--size-typography-title-sm);line-height:1.2;transition:color var(--transition-default) var(--transition-easeinout)}.ui-step-header:focus-visible .ui-step-marker{box-shadow:0 0 0 var(--units-2xs) var(--global-border-focus)}.ui-step-separator{flex:1 1 auto;min-width:var(--units-lg);height:0;margin:calc(2.75rem / 2 - var(--stroke-default) / 2) var(--units-sm) 0;border-top:var(--stroke-default) solid var(--global-border-default);transition:border-color var(--transition-default) var(--transition-easeinout)}.ui-step-separator._completed{border-top-color:var(--navigation-high-stroke-default)}:host._active .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-active);color:var(--informative-defaulthigh-content-default)}:host._active .ui-step-title{color:var(--global-text-default);font-weight:var(--weight-bold)}:host._completed .ui-step-marker{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default)}.ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-hover);border-color:var(--navigation-high-stroke-hover);color:var(--navigation-high-content-hover)}.ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--informative-defaulthigh-surface-hover);border-color:var(--informative-defaulthigh-stroke-hover);color:var(--informative-defaulthigh-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-defaultlow-content-default)}:host._disabled .ui-step-marker{background-color:var(--navigation-high-surface-disabled);border-color:var(--navigation-high-stroke-disabled);color:var(--navigation-high-content-disabled)}:host._disabled .ui-step-title{color:var(--navigation-high-content-disabled)}:host._vertical{display:block}:host._vertical .ui-step-header{flex-direction:row;align-items:center;gap:var(--units-sm);width:100%;text-align:left}:host._vertical .ui-step-title{width:auto;display:block;white-space:normal}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
77
|
+
}
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStep, decorators: [{
|
|
79
|
+
type: Component,
|
|
80
|
+
args: [{ selector: 'ui-step', imports: [UiIcon], host: {
|
|
81
|
+
class: 'ui-step',
|
|
82
|
+
'[class._active]': "state() === 'active'",
|
|
83
|
+
'[class._completed]': "state() === 'completed'",
|
|
84
|
+
'[class._vertical]': "stepper.orientation() === 'vertical'",
|
|
85
|
+
'[class._disabled]': 'isDisabled()',
|
|
86
|
+
'[class._last]': 'isLastStep()',
|
|
87
|
+
}, template: "<button\n #stepBtn\n type=\"button\"\n role=\"tab\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"state() === 'active'\"\n [attr.aria-current]=\"state() === 'active' ? 'step' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"isDisabled()\"\n [attr.tabindex]=\"isDisabled() ? null : stepper.tabindex()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"ui-step-marker\" aria-hidden=\"true\">\n @if (markerIcon(); as name) {\n <ui-icon [name]=\"name\" size=\"default\" />\n } @else {\n {{ number() }}\n }\n </span>\n <span class=\"ui-step-title\"><ng-content /></span>\n</button>\n\n@if (showSeparator()) {\n <span class=\"ui-step-separator\" aria-hidden=\"true\" [class._completed]=\"separatorCompleted()\"></span>\n}\n", styles: [":host{display:flex;flex:1 1 0;align-items:flex-start;min-width:0}:host._last{flex:0 0 auto}.ui-step-header{display:inline-flex;flex-direction:column;align-items:center;gap:var(--units-sm);flex:0 0 auto;margin:0;padding:0;border:0;background:transparent;cursor:pointer;text-align:center}.ui-step-header:disabled{cursor:not-allowed}.ui-step-header:focus-visible{outline:none}.ui-step-marker{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:2.75rem;height:2.75rem;flex:0 0 auto;border:var(--stroke-sm) solid var(--navigation-high-stroke-default);border-radius:var(--radius-full);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--size-typography-text-default);line-height:1;transition:color var(--transition-default) var(--transition-easeinout),background-color var(--transition-default) var(--transition-easeinout),border-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-step-title{width:0;display:flex;justify-content:center;white-space:nowrap;color:var(--navigation-high-content-default);font-family:var(--fontfamily-title);font-size:var(--size-typography-title-sm);line-height:1.2;transition:color var(--transition-default) var(--transition-easeinout)}.ui-step-header:focus-visible .ui-step-marker{box-shadow:0 0 0 var(--units-2xs) var(--global-border-focus)}.ui-step-separator{flex:1 1 auto;min-width:var(--units-lg);height:0;margin:calc(2.75rem / 2 - var(--stroke-default) / 2) var(--units-sm) 0;border-top:var(--stroke-default) solid var(--global-border-default);transition:border-color var(--transition-default) var(--transition-easeinout)}.ui-step-separator._completed{border-top-color:var(--navigation-high-stroke-default)}:host._active .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-active);color:var(--informative-defaulthigh-content-default)}:host._active .ui-step-title{color:var(--global-text-default);font-weight:var(--weight-bold)}:host._completed .ui-step-marker{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default)}.ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-hover);border-color:var(--navigation-high-stroke-hover);color:var(--navigation-high-content-hover)}.ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--navigation-high-surface-active);border-color:var(--navigation-high-stroke-hover)}:host._active .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-highlightlow-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--informative-defaulthigh-surface-hover);border-color:var(--informative-defaulthigh-stroke-hover);color:var(--informative-defaulthigh-content-hover)}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--informative-defaultlow-content-default)}:host._disabled .ui-step-marker{background-color:var(--navigation-high-surface-disabled);border-color:var(--navigation-high-stroke-disabled);color:var(--navigation-high-content-disabled)}:host._disabled .ui-step-title{color:var(--navigation-high-content-disabled)}:host._vertical{display:block}:host._vertical .ui-step-header{flex-direction:row;align-items:center;gap:var(--units-sm);width:100%;text-align:left}:host._vertical .ui-step-title{width:auto;display:block;white-space:normal}\n"] }]
|
|
88
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
89
|
+
/**
|
|
90
|
+
* ui-step-panel , the content region tied to a {@link UiStep} by shared `value`.
|
|
91
|
+
*
|
|
92
|
+
* The panel stays mounted but is `hidden` (and skipped by assistive tech) when
|
|
93
|
+
* inactive, so its state is preserved. With `lazy` the content is rendered only
|
|
94
|
+
* once the panel is first activated; wrap expensive content in a
|
|
95
|
+
* `<ng-template #content>` so it initialises lazily.
|
|
96
|
+
*/
|
|
97
|
+
class UiStepPanel {
|
|
98
|
+
constructor() {
|
|
99
|
+
/** Identifier of this panel (matched against the step of the same `value`). */
|
|
100
|
+
this.value = model(undefined, /* @ts-ignore */
|
|
101
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
102
|
+
/** Render this panel's content only once it is first activated (overrides the group default). */
|
|
103
|
+
this.lazy = input(undefined, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: (v) => (v == null ? undefined : booleanAttribute(v)) });
|
|
104
|
+
/** Optional lazy content template (`<ng-template #content>`). */
|
|
105
|
+
this.content = contentChild('content', /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
107
|
+
/** @ignore Parent container (active state + group `lazy` default). */
|
|
108
|
+
this.stepper = inject(UiStepper);
|
|
109
|
+
/** @ignore */
|
|
110
|
+
this.active = computed(() => this.stepper.isActive(this.value()), /* @ts-ignore */
|
|
111
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
112
|
+
/** @ignore Panel-level `lazy` overrides the group default when explicitly set. */
|
|
113
|
+
this.isLazy = computed(() => this.lazy() ?? this.stepper.lazy(), /* @ts-ignore */
|
|
114
|
+
...(ngDevMode ? [{ debugName: "isLazy" }] : /* istanbul ignore next */ []));
|
|
115
|
+
/** @ignore Sticks once the panel has been activated at least once. */
|
|
116
|
+
this.hasRendered = signal(false, /* @ts-ignore */
|
|
117
|
+
...(ngDevMode ? [{ debugName: "hasRendered" }] : /* istanbul ignore next */ []));
|
|
118
|
+
/** @ignore Eager panels always render; lazy ones only after first activation. */
|
|
119
|
+
this.shouldRender = computed(() => !this.isLazy() || this.hasRendered() || this.active(), /* @ts-ignore */
|
|
120
|
+
...(ngDevMode ? [{ debugName: "shouldRender" }] : /* istanbul ignore next */ []));
|
|
121
|
+
effect(() => {
|
|
122
|
+
if (this.active())
|
|
123
|
+
this.hasRendered.set(true);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStepPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
127
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiStepPanel, isStandalone: true, selector: "ui-step-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "tabpanel" }, properties: { "id": "stepper.panelId(value())", "attr.aria-labelledby": "stepper.stepId(value())", "attr.tabindex": "active() ? 0 : null", "attr.inert": "active() ? null : ''", "class._active": "active()" }, classAttribute: "ui-step-panel" }, queries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
128
|
+
<ng-template #defaultContent><ng-content /></ng-template>
|
|
129
|
+
<div class="ui-step-panel-collapse" [class._open]="active()" [class._no-motion]="!stepper.motion()">
|
|
130
|
+
<div class="ui-step-panel-inner">
|
|
131
|
+
<div class="ui-step-panel-body">
|
|
132
|
+
@if (shouldRender()) {
|
|
133
|
+
<ng-container [ngTemplateOutlet]="content() ?? defaultContent" />
|
|
134
|
+
}
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
`, isInline: true, styles: [":host{display:block;color:var(--global-text-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);line-height:1.5;outline:none}.ui-step-panel-collapse{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-step-panel-collapse._open{grid-template-rows:1fr;opacity:1}.ui-step-panel-collapse._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-step-panel-collapse{transition-duration:.01ms}}:root[data-motion=off] .ui-step-panel-collapse{transition-duration:.01ms}.ui-step-panel-inner{overflow:hidden;min-height:0}.ui-step-panel-body{padding:var(--units-default) 0}:host-context(.ui-stepper._vertical){margin-left:calc(2.75rem + var(--units-sm))}:host-context(.ui-stepper._vertical) .ui-step-panel-body{padding:var(--units-sm) 0 var(--units-md)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
139
|
+
}
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStepPanel, decorators: [{
|
|
141
|
+
type: Component,
|
|
142
|
+
args: [{ selector: 'ui-step-panel', imports: [NgTemplateOutlet], template: `
|
|
143
|
+
<ng-template #defaultContent><ng-content /></ng-template>
|
|
144
|
+
<div class="ui-step-panel-collapse" [class._open]="active()" [class._no-motion]="!stepper.motion()">
|
|
145
|
+
<div class="ui-step-panel-inner">
|
|
146
|
+
<div class="ui-step-panel-body">
|
|
147
|
+
@if (shouldRender()) {
|
|
148
|
+
<ng-container [ngTemplateOutlet]="content() ?? defaultContent" />
|
|
149
|
+
}
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
`, host: {
|
|
154
|
+
class: 'ui-step-panel',
|
|
155
|
+
role: 'tabpanel',
|
|
156
|
+
'[id]': 'stepper.panelId(value())',
|
|
157
|
+
'[attr.aria-labelledby]': 'stepper.stepId(value())',
|
|
158
|
+
'[attr.tabindex]': 'active() ? 0 : null',
|
|
159
|
+
'[attr.inert]': "active() ? null : ''",
|
|
160
|
+
'[class._active]': 'active()',
|
|
161
|
+
}, styles: [":host{display:block;color:var(--global-text-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);line-height:1.5;outline:none}.ui-step-panel-collapse{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-step-panel-collapse._open{grid-template-rows:1fr;opacity:1}.ui-step-panel-collapse._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-step-panel-collapse{transition-duration:.01ms}}:root[data-motion=off] .ui-step-panel-collapse{transition-duration:.01ms}.ui-step-panel-inner{overflow:hidden;min-height:0}.ui-step-panel-body{padding:var(--units-default) 0}:host-context(.ui-stepper._vertical){margin-left:calc(2.75rem + var(--units-sm))}:host-context(.ui-stepper._vertical) .ui-step-panel-body{padding:var(--units-sm) 0 var(--units-md)}\n"] }]
|
|
162
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], content: [{ type: i0.ContentChild, args: ['content', { isSignal: true }] }] } });
|
|
163
|
+
/**
|
|
164
|
+
* ui-step-list , the horizontal strip of {@link UiStep} headers.
|
|
165
|
+
*
|
|
166
|
+
* Owns the WAI-ARIA `role="tablist"`. Focus moves through the headers with
|
|
167
|
+
* `Tab` (each enabled header is a native tab stop); activation is `Enter` /
|
|
168
|
+
* `Space` (native `<button>`). Use it on its own , without panels , for a plain
|
|
169
|
+
* progress indicator ("steps only").
|
|
170
|
+
*/
|
|
171
|
+
class UiStepList {
|
|
172
|
+
constructor() {
|
|
173
|
+
/** Accessible name for the step list (recommended). */
|
|
174
|
+
this.ariaLabel = input(/* @ts-ignore */
|
|
175
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
176
|
+
}
|
|
177
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStepList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
178
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: UiStepList, isStandalone: true, selector: "ui-step-list", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tablist", "aria-orientation": "horizontal" }, properties: { "attr.aria-label": "ariaLabel() || null" }, classAttribute: "ui-step-list" }, ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:flex;flex-direction:row;align-items:flex-start;width:100%;min-width:0}\n"] }); }
|
|
179
|
+
}
|
|
180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStepList, decorators: [{
|
|
181
|
+
type: Component,
|
|
182
|
+
args: [{ selector: 'ui-step-list', template: '<ng-content />', host: {
|
|
183
|
+
class: 'ui-step-list',
|
|
184
|
+
role: 'tablist',
|
|
185
|
+
'aria-orientation': 'horizontal',
|
|
186
|
+
'[attr.aria-label]': 'ariaLabel() || null',
|
|
187
|
+
}, styles: [":host{display:flex;flex-direction:row;align-items:flex-start;width:100%;min-width:0}\n"] }]
|
|
188
|
+
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
189
|
+
/**
|
|
190
|
+
* ui-step-panels , thin wrapper grouping the {@link UiStepPanel}s below the
|
|
191
|
+
* horizontal step list.
|
|
192
|
+
*/
|
|
193
|
+
class UiStepPanels {
|
|
194
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStepPanels, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
195
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: UiStepPanels, isStandalone: true, selector: "ui-step-panels", host: { classAttribute: "ui-step-panels" }, ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:block;width:100%}\n"] }); }
|
|
196
|
+
}
|
|
197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStepPanels, decorators: [{
|
|
198
|
+
type: Component,
|
|
199
|
+
args: [{ selector: 'ui-step-panels', template: '<ng-content />', host: { class: 'ui-step-panels' }, styles: [":host{display:block;width:100%}\n"] }]
|
|
200
|
+
}] });
|
|
201
|
+
/**
|
|
202
|
+
* ui-step-item , vertical wrapper pairing a {@link UiStep} with its
|
|
203
|
+
* {@link UiStepPanel}. Carries the shared `value` and propagates it to both
|
|
204
|
+
* children, so the vertical markup stays terse. The connector rail is drawn by
|
|
205
|
+
* the item itself, alongside the panel.
|
|
206
|
+
*/
|
|
207
|
+
class UiStepItem {
|
|
208
|
+
constructor() {
|
|
209
|
+
/** Identifier shared by the wrapped step and panel. */
|
|
210
|
+
this.value = input.required(/* @ts-ignore */
|
|
211
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
212
|
+
/** @ignore Parent container. */
|
|
213
|
+
this.stepper = inject(UiStepper);
|
|
214
|
+
/** @ignore Wrapped step (value propagated from this item). */
|
|
215
|
+
this.step = contentChild(UiStep, /* @ts-ignore */
|
|
216
|
+
...(ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []));
|
|
217
|
+
/** @ignore Wrapped panel (value propagated from this item). */
|
|
218
|
+
this.panel = contentChild(UiStepPanel, /* @ts-ignore */
|
|
219
|
+
...(ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []));
|
|
220
|
+
/** @ignore Progression state (drives the connector colour). */
|
|
221
|
+
this.state = computed(() => this.stepper.stepState(this.value()), /* @ts-ignore */
|
|
222
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
223
|
+
/** @ignore Last item hides its connector rail. */
|
|
224
|
+
this.isLast = computed(() => this.stepper.isLast(this.value()), /* @ts-ignore */
|
|
225
|
+
...(ngDevMode ? [{ debugName: "isLast" }] : /* istanbul ignore next */ []));
|
|
226
|
+
// Propagate the item value down to the wrapped step and panel.
|
|
227
|
+
effect(() => {
|
|
228
|
+
this.step()?.value.set(this.value());
|
|
229
|
+
this.panel()?.value.set(this.value());
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStepItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
233
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: UiStepItem, isStandalone: true, selector: "ui-step-item", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class._active": "state() === 'active'", "class._completed": "state() === 'completed'", "class._last": "isLast()" }, classAttribute: "ui-step-item" }, queries: [{ propertyName: "step", first: true, predicate: UiStep, descendants: true, isSignal: true }, { propertyName: "panel", first: true, predicate: UiStepPanel, descendants: true, isSignal: true }], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:block;position:relative;padding-bottom:var(--units-lg)}:host._last{padding-bottom:0}:host:not(._last):before{content:\"\";position:absolute;left:calc(2.75rem / 2 - var(--stroke-default) / 2);top:calc(2.75rem + var(--units-xs));bottom:0;width:var(--stroke-default);background-color:var(--global-border-default)}:host._completed:not(._last):before{background-color:var(--navigation-high-stroke-default)}\n"] }); }
|
|
234
|
+
}
|
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStepItem, decorators: [{
|
|
236
|
+
type: Component,
|
|
237
|
+
args: [{ selector: 'ui-step-item', template: '<ng-content />', host: {
|
|
238
|
+
class: 'ui-step-item',
|
|
239
|
+
'[class._active]': "state() === 'active'",
|
|
240
|
+
'[class._completed]': "state() === 'completed'",
|
|
241
|
+
'[class._last]': 'isLast()',
|
|
242
|
+
}, styles: [":host{display:block;position:relative;padding-bottom:var(--units-lg)}:host._last{padding-bottom:0}:host:not(._last):before{content:\"\";position:absolute;left:calc(2.75rem / 2 - var(--stroke-default) / 2);top:calc(2.75rem + var(--units-xs));bottom:0;width:var(--stroke-default);background-color:var(--global-border-default)}:host._completed:not(._last):before{background-color:var(--navigation-high-stroke-default)}\n"] }]
|
|
243
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], step: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiStep), { isSignal: true }] }], panel: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiStepPanel), { isSignal: true }] }] } });
|
|
244
|
+
/**
|
|
245
|
+
* ui-stepper , headless container guiding a user through a numbered, multi-step
|
|
246
|
+
* progression (wizard). Composition API mirroring `ui-tabs`.
|
|
247
|
+
*
|
|
248
|
+
* Two layouts. **Horizontal**: a `ui-step-list` of `ui-step` headers on top and
|
|
249
|
+
* a `ui-step-panels` holding one `ui-step-panel` per step below (each step and
|
|
250
|
+
* its panel paired by `value`). **Vertical**: each `ui-step-item` wraps a
|
|
251
|
+
* `ui-step` and its `ui-step-panel`, so the panel appears directly beneath its
|
|
252
|
+
* header. With `linear`, steps ahead of the active one are disabled , advance by
|
|
253
|
+
* setting `value` (e.g. a "Next" button in the panel). Every colour/metric comes
|
|
254
|
+
* from the `navigation.*` / `informative.*` design tokens; the active panel
|
|
255
|
+
* fades in via the shared motion system (reduced-motion aware).
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* ```html
|
|
259
|
+
* <ui-stepper [(value)]="active">
|
|
260
|
+
* <ui-step-list ariaLabel="Étapes">
|
|
261
|
+
* <ui-step [value]="1">Compte</ui-step>
|
|
262
|
+
* <ui-step [value]="2">Profil</ui-step>
|
|
263
|
+
* <ui-step [value]="3">Confirmation</ui-step>
|
|
264
|
+
* </ui-step-list>
|
|
265
|
+
* <ui-step-panels>
|
|
266
|
+
* <ui-step-panel [value]="1">…</ui-step-panel>
|
|
267
|
+
* <ui-step-panel [value]="2">…</ui-step-panel>
|
|
268
|
+
* <ui-step-panel [value]="3">…</ui-step-panel>
|
|
269
|
+
* </ui-step-panels>
|
|
270
|
+
* </ui-stepper>
|
|
271
|
+
* ```
|
|
272
|
+
*/
|
|
273
|
+
class UiStepper {
|
|
274
|
+
constructor() {
|
|
275
|
+
/** Value of the active step (two-way). `undefined` = no active step. */
|
|
276
|
+
this.value = model(undefined, /* @ts-ignore */
|
|
277
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
278
|
+
/** Layout axis: `horizontal` (list on top, panels below) or `vertical`. */
|
|
279
|
+
this.orientation = input('horizontal', /* @ts-ignore */
|
|
280
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
281
|
+
/** When `true`, steps ahead of the active one are disabled (no skipping forward). */
|
|
282
|
+
this.linear = input(false, { ...(ngDevMode ? { debugName: "linear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
283
|
+
/** Group default: render an inactive panel's content only once it is first activated. */
|
|
284
|
+
this.lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
285
|
+
/** Animate the active panel transition (reduced-motion always wins). */
|
|
286
|
+
this.motion = input(true, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
287
|
+
/** Icon shown in the marker of completed steps (falls back to the step number). */
|
|
288
|
+
this.completedIcon = input(/* @ts-ignore */
|
|
289
|
+
...(ngDevMode ? [undefined, { debugName: "completedIcon" }] : /* istanbul ignore next */ []));
|
|
290
|
+
/** Accessible name for the container (used as `aria-label` in vertical layout). */
|
|
291
|
+
this.ariaLabel = input(/* @ts-ignore */
|
|
292
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
293
|
+
/** Tabindex applied to each enabled step header. */
|
|
294
|
+
this.tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
295
|
+
/** Fired whenever the active step changes (user click / keyboard). */
|
|
296
|
+
this.stepChange = output();
|
|
297
|
+
/** @ignore Unique id root for aria wiring between steps and panels. */
|
|
298
|
+
this.id = `ui-stepper-${nextUid++}`;
|
|
299
|
+
/** @ignore All steps projected under this container, in DOM order. */
|
|
300
|
+
this.steps = contentChildren(forwardRef(() => UiStep), { ...(ngDevMode ? { debugName: "steps" } : /* istanbul ignore next */ {}), descendants: true });
|
|
301
|
+
/** @ignore Ordered step values (the progression sequence). */
|
|
302
|
+
this.orderedValues = computed(() => this.steps().map((s) => s.value()), /* @ts-ignore */
|
|
303
|
+
...(ngDevMode ? [{ debugName: "orderedValues" }] : /* istanbul ignore next */ []));
|
|
304
|
+
/** @ignore Index of the active step in the ordered sequence (-1 when none). */
|
|
305
|
+
this.activeIndex = computed(() => this.orderedValues().indexOf(this.value()), /* @ts-ignore */
|
|
306
|
+
...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
307
|
+
}
|
|
308
|
+
/** @ignore id of the step header for a given value. */
|
|
309
|
+
stepId(value) {
|
|
310
|
+
return `${this.id}-step-${value}`;
|
|
311
|
+
}
|
|
312
|
+
/** @ignore id of the panel for a given value. */
|
|
313
|
+
panelId(value) {
|
|
314
|
+
return `${this.id}-panel-${value}`;
|
|
315
|
+
}
|
|
316
|
+
/** @ignore Whether the given value is the active step. */
|
|
317
|
+
isActive(value) {
|
|
318
|
+
return value !== undefined && this.value() === value;
|
|
319
|
+
}
|
|
320
|
+
/** @ignore 1-based position of a step in the progression (0 when unknown). */
|
|
321
|
+
stepNumber(value) {
|
|
322
|
+
return this.orderedValues().indexOf(value) + 1;
|
|
323
|
+
}
|
|
324
|
+
/** @ignore Whether the given value is the last step in the sequence. */
|
|
325
|
+
isLast(value) {
|
|
326
|
+
const values = this.orderedValues();
|
|
327
|
+
return values.length > 0 && values[values.length - 1] === value;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* @ignore Progression state of a step: before the active one → `completed`,
|
|
331
|
+
* the active one → `active`, after it → `upcoming`.
|
|
332
|
+
*/
|
|
333
|
+
stepState(value) {
|
|
334
|
+
const index = this.orderedValues().indexOf(value);
|
|
335
|
+
const active = this.activeIndex();
|
|
336
|
+
if (index === -1 || active === -1)
|
|
337
|
+
return 'upcoming';
|
|
338
|
+
if (index < active)
|
|
339
|
+
return 'completed';
|
|
340
|
+
if (index === active)
|
|
341
|
+
return 'active';
|
|
342
|
+
return 'upcoming';
|
|
343
|
+
}
|
|
344
|
+
/** @ignore Activate a step (no-op if already active); emits `stepChange`. */
|
|
345
|
+
updateValue(value, event) {
|
|
346
|
+
if (this.value() === value)
|
|
347
|
+
return;
|
|
348
|
+
this.value.set(value);
|
|
349
|
+
this.stepChange.emit({ value, originalEvent: event });
|
|
350
|
+
}
|
|
351
|
+
/** Activate the next step in the sequence (respects the sequence bounds). */
|
|
352
|
+
next() {
|
|
353
|
+
const values = this.orderedValues();
|
|
354
|
+
const target = values[this.activeIndex() + 1];
|
|
355
|
+
if (target !== undefined)
|
|
356
|
+
this.updateValue(target);
|
|
357
|
+
}
|
|
358
|
+
/** Activate the previous step in the sequence. */
|
|
359
|
+
prev() {
|
|
360
|
+
const values = this.orderedValues();
|
|
361
|
+
const index = this.activeIndex();
|
|
362
|
+
if (index > 0)
|
|
363
|
+
this.updateValue(values[index - 1]);
|
|
364
|
+
}
|
|
365
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStepper, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
366
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: UiStepper, isStandalone: true, selector: "ui-stepper", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, completedIcon: { classPropertyName: "completedIcon", publicName: "completedIcon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", stepChange: "stepChange" }, host: { properties: { "class._vertical": "orientation() === 'vertical'", "attr.role": "orientation() === 'vertical' ? 'tablist' : null", "attr.aria-orientation": "orientation() === 'vertical' ? 'vertical' : null", "attr.aria-label": "orientation() === 'vertical' ? (ariaLabel() || null) : null", "attr.id": "id" }, classAttribute: "ui-stepper" }, queries: [{ propertyName: "steps", predicate: i0.forwardRef(() => UiStep), descendants: true, isSignal: true }], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:block;width:100%}\n"] }); }
|
|
367
|
+
}
|
|
368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiStepper, decorators: [{
|
|
369
|
+
type: Component,
|
|
370
|
+
args: [{ selector: 'ui-stepper', template: '<ng-content />', host: {
|
|
371
|
+
class: 'ui-stepper',
|
|
372
|
+
'[class._vertical]': "orientation() === 'vertical'",
|
|
373
|
+
'[attr.role]': "orientation() === 'vertical' ? 'tablist' : null",
|
|
374
|
+
'[attr.aria-orientation]': "orientation() === 'vertical' ? 'vertical' : null",
|
|
375
|
+
'[attr.aria-label]': "orientation() === 'vertical' ? (ariaLabel() || null) : null",
|
|
376
|
+
'[attr.id]': 'id',
|
|
377
|
+
}, styles: [":host{display:block;width:100%}\n"] }]
|
|
378
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], linear: [{ type: i0.Input, args: [{ isSignal: true, alias: "linear", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], completedIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "completedIcon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], stepChange: [{ type: i0.Output, args: ["stepChange"] }], steps: [{ type: i0.ContentChildren, args: [forwardRef(() => UiStep), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
379
|
+
|
|
380
|
+
/*
|
|
381
|
+
* Public API Surface of ui-kit/ui-stepper
|
|
382
|
+
*/
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Generated bundle index. Do not edit.
|
|
386
|
+
*/
|
|
387
|
+
|
|
388
|
+
export { UiStep, UiStepItem, UiStepList, UiStepPanel, UiStepPanels, UiStepper };
|
|
389
|
+
//# sourceMappingURL=4sh-ui-kit-ui-stepper.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-ui-stepper.mjs","sources":["../../../projects/ui-kit/ui-stepper/src/lib/ui-stepper.ts","../../../projects/ui-kit/ui-stepper/src/lib/ui-step.html","../../../projects/ui-kit/ui-stepper/src/public-api.ts","../../../projects/ui-kit/ui-stepper/src/4sh-ui-kit-ui-stepper.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n contentChildren,\n effect,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon } from '@4sh/ui-kit/ui-icon';\n\n/** Identifier of a step / panel pair (matched against the container `value`). */\nexport type UiStepValue = string | number;\n/** Layout axis of the stepper. */\nexport type UiStepperOrientation = 'horizontal' | 'vertical';\n/** Progression state of a single step, derived from the active step. */\nexport type UiStepState = 'upcoming' | 'active' | 'completed';\n\n/** Payload emitted when the active step changes. */\nexport interface UiStepperChangeEvent {\n /** Value of the step that became active. */\n value: UiStepValue;\n /** Originating DOM event (click / keyboard), when triggered by the user. */\n originalEvent?: Event;\n}\n\n/** Process-wide counter for unique step/panel ids (aria wiring). */\nlet nextUid = 0;\n\n/**\n * ui-step , a single step header inside a {@link UiStepList} (horizontal) or a\n * {@link UiStepItem} (vertical).\n *\n * Renders a real native `<button role=\"tab\">` with a numbered marker and its\n * title. Every enabled header is a natural tab stop, so `Tab` walks through the\n * headers and `Enter`/`Space` activate the focused one (native button\n * behaviour , no custom key handling). The progression state (upcoming /\n * active / completed) is derived by the container from the active value; colours\n * come entirely from the `navigation.*` / `informative.*` design tokens.\n *\n * Declared before {@link UiStepper} so the container's content query can\n * reference it without a temporal-dead-zone error at class-definition time.\n */\n@Component({\n selector: 'ui-step',\n imports: [UiIcon],\n templateUrl: './ui-step.html',\n styleUrl: './ui-step.scss',\n host: {\n class: 'ui-step',\n '[class._active]': \"state() === 'active'\",\n '[class._completed]': \"state() === 'completed'\",\n '[class._vertical]': \"stepper.orientation() === 'vertical'\",\n '[class._disabled]': 'isDisabled()',\n '[class._last]': 'isLastStep()',\n },\n})\nexport class UiStep {\n /** Identifier of this step (matched against the container `value`). */\n value = model<UiStepValue | undefined>(undefined);\n /** Disable the step (not activatable, skipped by keyboard focus). */\n disabled = input(false, { transform: booleanAttribute });\n /** Icon name overriding the numbered marker (any state). */\n icon = input<string>();\n /** Accessible name override (falls back to the projected title). */\n ariaLabel = input<string>();\n\n /** @ignore Parent container (owns the active state + progression). */\n protected readonly stepper = inject(UiStepper);\n\n /** @ignore Progression state of this step. */\n readonly state = computed<UiStepState>(() => this.stepper.stepState(this.value()));\n\n /** @ignore 1-based position of this step (shown in the marker). */\n protected readonly number = computed(() => this.stepper.stepNumber(this.value()));\n\n /** @ignore Whether a trailing separator is drawn (horizontal, not the last step). */\n protected readonly showSeparator = computed(\n () => this.stepper.orientation() === 'horizontal' && !this.stepper.isLast(this.value()),\n );\n\n /** @ignore The separator bridges to the next step once this one is completed. */\n protected readonly separatorCompleted = computed(() => this.state() === 'completed');\n\n /** @ignore Last step in the sequence (no trailing growth in the horizontal strip). */\n protected readonly isLastStep = computed(() => this.stepper.isLast(this.value()));\n\n /**\n * @ignore Disabled when explicitly set, or , in `linear` mode , when the step\n * lies ahead of the active one (you cannot skip forward).\n */\n readonly isDisabled = computed(\n () => this.disabled() || (this.stepper.linear() && this.state() === 'upcoming'),\n );\n\n /** @ignore Glyph shown in the marker: own icon, else the completed icon, else the number. */\n protected readonly markerIcon = computed(() => {\n if (this.icon()) return this.icon()!;\n if (this.state() === 'completed') return this.stepper.completedIcon() ?? null;\n return null;\n });\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n const value = this.value();\n if (this.isDisabled() || value === undefined) return;\n this.stepper.updateValue(value, event);\n }\n}\n\n/**\n * ui-step-panel , the content region tied to a {@link UiStep} by shared `value`.\n *\n * The panel stays mounted but is `hidden` (and skipped by assistive tech) when\n * inactive, so its state is preserved. With `lazy` the content is rendered only\n * once the panel is first activated; wrap expensive content in a\n * `<ng-template #content>` so it initialises lazily.\n */\n@Component({\n selector: 'ui-step-panel',\n imports: [NgTemplateOutlet],\n template: `\n <ng-template #defaultContent><ng-content /></ng-template>\n <div class=\"ui-step-panel-collapse\" [class._open]=\"active()\" [class._no-motion]=\"!stepper.motion()\">\n <div class=\"ui-step-panel-inner\">\n <div class=\"ui-step-panel-body\">\n @if (shouldRender()) {\n <ng-container [ngTemplateOutlet]=\"content() ?? defaultContent\" />\n }\n </div>\n </div>\n </div>\n `,\n styleUrl: './ui-step-panel.scss',\n host: {\n class: 'ui-step-panel',\n role: 'tabpanel',\n '[id]': 'stepper.panelId(value())',\n '[attr.aria-labelledby]': 'stepper.stepId(value())',\n '[attr.tabindex]': 'active() ? 0 : null',\n '[attr.inert]': \"active() ? null : ''\",\n '[class._active]': 'active()',\n },\n})\nexport class UiStepPanel {\n /** Identifier of this panel (matched against the step of the same `value`). */\n value = model<UiStepValue | undefined>(undefined);\n /** Render this panel's content only once it is first activated (overrides the group default). */\n lazy = input<boolean, unknown>(undefined, { transform: (v) => (v == null ? undefined : booleanAttribute(v)) });\n\n /** Optional lazy content template (`<ng-template #content>`). */\n protected readonly content = contentChild<TemplateRef<unknown>>('content');\n\n /** @ignore Parent container (active state + group `lazy` default). */\n protected readonly stepper = inject(UiStepper);\n\n /** @ignore */\n protected readonly active = computed(() => this.stepper.isActive(this.value()));\n /** @ignore Panel-level `lazy` overrides the group default when explicitly set. */\n private readonly isLazy = computed(() => this.lazy() ?? this.stepper.lazy());\n /** @ignore Sticks once the panel has been activated at least once. */\n private readonly hasRendered = signal(false);\n\n constructor() {\n effect(() => {\n if (this.active()) this.hasRendered.set(true);\n });\n }\n\n /** @ignore Eager panels always render; lazy ones only after first activation. */\n protected readonly shouldRender = computed(\n () => !this.isLazy() || this.hasRendered() || this.active(),\n );\n}\n\n/**\n * ui-step-list , the horizontal strip of {@link UiStep} headers.\n *\n * Owns the WAI-ARIA `role=\"tablist\"`. Focus moves through the headers with\n * `Tab` (each enabled header is a native tab stop); activation is `Enter` /\n * `Space` (native `<button>`). Use it on its own , without panels , for a plain\n * progress indicator (\"steps only\").\n */\n@Component({\n selector: 'ui-step-list',\n template: '<ng-content />',\n styleUrl: './ui-step-list.scss',\n host: {\n class: 'ui-step-list',\n role: 'tablist',\n 'aria-orientation': 'horizontal',\n '[attr.aria-label]': 'ariaLabel() || null',\n },\n})\nexport class UiStepList {\n /** Accessible name for the step list (recommended). */\n ariaLabel = input<string>();\n}\n\n/**\n * ui-step-panels , thin wrapper grouping the {@link UiStepPanel}s below the\n * horizontal step list.\n */\n@Component({\n selector: 'ui-step-panels',\n template: '<ng-content />',\n styles: `\n :host {\n display: block;\n width: 100%;\n }\n `,\n host: { class: 'ui-step-panels' },\n})\nexport class UiStepPanels {}\n\n/**\n * ui-step-item , vertical wrapper pairing a {@link UiStep} with its\n * {@link UiStepPanel}. Carries the shared `value` and propagates it to both\n * children, so the vertical markup stays terse. The connector rail is drawn by\n * the item itself, alongside the panel.\n */\n@Component({\n selector: 'ui-step-item',\n template: '<ng-content />',\n styleUrl: './ui-step-item.scss',\n host: {\n class: 'ui-step-item',\n '[class._active]': \"state() === 'active'\",\n '[class._completed]': \"state() === 'completed'\",\n '[class._last]': 'isLast()',\n },\n})\nexport class UiStepItem {\n /** Identifier shared by the wrapped step and panel. */\n value = input.required<UiStepValue>();\n\n /** @ignore Parent container. */\n protected readonly stepper = inject(UiStepper);\n\n /** @ignore Wrapped step (value propagated from this item). */\n private readonly step = contentChild(UiStep);\n /** @ignore Wrapped panel (value propagated from this item). */\n private readonly panel = contentChild(UiStepPanel);\n\n /** @ignore Progression state (drives the connector colour). */\n protected readonly state = computed<UiStepState>(() => this.stepper.stepState(this.value()));\n /** @ignore Last item hides its connector rail. */\n protected readonly isLast = computed(() => this.stepper.isLast(this.value()));\n\n constructor() {\n // Propagate the item value down to the wrapped step and panel.\n effect(() => {\n this.step()?.value.set(this.value());\n this.panel()?.value.set(this.value());\n });\n }\n}\n\n/**\n * ui-stepper , headless container guiding a user through a numbered, multi-step\n * progression (wizard). Composition API mirroring `ui-tabs`.\n *\n * Two layouts. **Horizontal**: a `ui-step-list` of `ui-step` headers on top and\n * a `ui-step-panels` holding one `ui-step-panel` per step below (each step and\n * its panel paired by `value`). **Vertical**: each `ui-step-item` wraps a\n * `ui-step` and its `ui-step-panel`, so the panel appears directly beneath its\n * header. With `linear`, steps ahead of the active one are disabled , advance by\n * setting `value` (e.g. a \"Next\" button in the panel). Every colour/metric comes\n * from the `navigation.*` / `informative.*` design tokens; the active panel\n * fades in via the shared motion system (reduced-motion aware).\n *\n * @example\n * ```html\n * <ui-stepper [(value)]=\"active\">\n * <ui-step-list ariaLabel=\"Étapes\">\n * <ui-step [value]=\"1\">Compte</ui-step>\n * <ui-step [value]=\"2\">Profil</ui-step>\n * <ui-step [value]=\"3\">Confirmation</ui-step>\n * </ui-step-list>\n * <ui-step-panels>\n * <ui-step-panel [value]=\"1\">…</ui-step-panel>\n * <ui-step-panel [value]=\"2\">…</ui-step-panel>\n * <ui-step-panel [value]=\"3\">…</ui-step-panel>\n * </ui-step-panels>\n * </ui-stepper>\n * ```\n */\n@Component({\n selector: 'ui-stepper',\n template: '<ng-content />',\n styles: `\n :host {\n display: block;\n width: 100%;\n }\n `,\n host: {\n class: 'ui-stepper',\n '[class._vertical]': \"orientation() === 'vertical'\",\n '[attr.role]': \"orientation() === 'vertical' ? 'tablist' : null\",\n '[attr.aria-orientation]': \"orientation() === 'vertical' ? 'vertical' : null\",\n '[attr.aria-label]': \"orientation() === 'vertical' ? (ariaLabel() || null) : null\",\n '[attr.id]': 'id',\n },\n})\nexport class UiStepper {\n /** Value of the active step (two-way). `undefined` = no active step. */\n value = model<UiStepValue | undefined>(undefined);\n /** Layout axis: `horizontal` (list on top, panels below) or `vertical`. */\n orientation = input<UiStepperOrientation>('horizontal');\n /** When `true`, steps ahead of the active one are disabled (no skipping forward). */\n linear = input(false, { transform: booleanAttribute });\n /** Group default: render an inactive panel's content only once it is first activated. */\n lazy = input(false, { transform: booleanAttribute });\n /** Animate the active panel transition (reduced-motion always wins). */\n motion = input(true, { transform: booleanAttribute });\n /** Icon shown in the marker of completed steps (falls back to the step number). */\n completedIcon = input<string>();\n /** Accessible name for the container (used as `aria-label` in vertical layout). */\n ariaLabel = input<string>();\n /** Tabindex applied to each enabled step header. */\n tabindex = input(0, { transform: numberAttribute });\n\n /** Fired whenever the active step changes (user click / keyboard). */\n stepChange = output<UiStepperChangeEvent>();\n\n /** @ignore Unique id root for aria wiring between steps and panels. */\n readonly id = `ui-stepper-${nextUid++}`;\n\n /** @ignore All steps projected under this container, in DOM order. */\n private readonly steps = contentChildren(forwardRef(() => UiStep), { descendants: true });\n\n /** @ignore Ordered step values (the progression sequence). */\n private readonly orderedValues = computed(() => this.steps().map((s) => s.value()));\n\n /** @ignore Index of the active step in the ordered sequence (-1 when none). */\n private readonly activeIndex = computed(() => this.orderedValues().indexOf(this.value()));\n\n /** @ignore id of the step header for a given value. */\n stepId(value: UiStepValue | undefined): string {\n return `${this.id}-step-${value}`;\n }\n /** @ignore id of the panel for a given value. */\n panelId(value: UiStepValue | undefined): string {\n return `${this.id}-panel-${value}`;\n }\n\n /** @ignore Whether the given value is the active step. */\n isActive(value: UiStepValue | undefined): boolean {\n return value !== undefined && this.value() === value;\n }\n\n /** @ignore 1-based position of a step in the progression (0 when unknown). */\n stepNumber(value: UiStepValue | undefined): number {\n return this.orderedValues().indexOf(value) + 1;\n }\n\n /** @ignore Whether the given value is the last step in the sequence. */\n isLast(value: UiStepValue | undefined): boolean {\n const values = this.orderedValues();\n return values.length > 0 && values[values.length - 1] === value;\n }\n\n /**\n * @ignore Progression state of a step: before the active one → `completed`,\n * the active one → `active`, after it → `upcoming`.\n */\n stepState(value: UiStepValue | undefined): UiStepState {\n const index = this.orderedValues().indexOf(value);\n const active = this.activeIndex();\n if (index === -1 || active === -1) return 'upcoming';\n if (index < active) return 'completed';\n if (index === active) return 'active';\n return 'upcoming';\n }\n\n /** @ignore Activate a step (no-op if already active); emits `stepChange`. */\n updateValue(value: UiStepValue, event?: Event): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.stepChange.emit({ value, originalEvent: event });\n }\n\n /** Activate the next step in the sequence (respects the sequence bounds). */\n next(): void {\n const values = this.orderedValues();\n const target = values[this.activeIndex() + 1];\n if (target !== undefined) this.updateValue(target);\n }\n\n /** Activate the previous step in the sequence. */\n prev(): void {\n const values = this.orderedValues();\n const index = this.activeIndex();\n if (index > 0) this.updateValue(values[index - 1]!);\n }\n}\n","<button\n #stepBtn\n type=\"button\"\n role=\"tab\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"state() === 'active'\"\n [attr.aria-current]=\"state() === 'active' ? 'step' : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"isDisabled()\"\n [attr.tabindex]=\"isDisabled() ? null : stepper.tabindex()\"\n (click)=\"onClick($event)\"\n>\n <span class=\"ui-step-marker\" aria-hidden=\"true\">\n @if (markerIcon(); as name) {\n <ui-icon [name]=\"name\" size=\"default\" />\n } @else {\n {{ number() }}\n }\n </span>\n <span class=\"ui-step-title\"><ng-content /></span>\n</button>\n\n@if (showSeparator()) {\n <span class=\"ui-step-separator\" aria-hidden=\"true\" [class._completed]=\"separatorCompleted()\"></span>\n}\n","/*\n * Public API Surface of ui-kit/ui-stepper\n */\n\nexport * from './lib/ui-stepper';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAkCA;AACA,IAAI,OAAO,GAAG,CAAC;AAEf;;;;;;;;;;;;;AAaG;MAeU,MAAM,CAAA;AAdnB,IAAA,WAAA,GAAA;;QAgBE,IAAA,CAAA,KAAK,GAAG,KAAK,CAA0B,SAAS;kFAAC;;QAEjD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,QAAA,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