@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,220 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/** Identifier of a step / panel pair (matched against the container `value`). */
|
|
5
|
+
type UiStepValue = string | number;
|
|
6
|
+
/** Layout axis of the stepper. */
|
|
7
|
+
type UiStepperOrientation = 'horizontal' | 'vertical';
|
|
8
|
+
/** Progression state of a single step, derived from the active step. */
|
|
9
|
+
type UiStepState = 'upcoming' | 'active' | 'completed';
|
|
10
|
+
/** Payload emitted when the active step changes. */
|
|
11
|
+
interface UiStepperChangeEvent {
|
|
12
|
+
/** Value of the step that became active. */
|
|
13
|
+
value: UiStepValue;
|
|
14
|
+
/** Originating DOM event (click / keyboard), when triggered by the user. */
|
|
15
|
+
originalEvent?: Event;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* ui-step , a single step header inside a {@link UiStepList} (horizontal) or a
|
|
19
|
+
* {@link UiStepItem} (vertical).
|
|
20
|
+
*
|
|
21
|
+
* Renders a real native `<button role="tab">` with a numbered marker and its
|
|
22
|
+
* title. Every enabled header is a natural tab stop, so `Tab` walks through the
|
|
23
|
+
* headers and `Enter`/`Space` activate the focused one (native button
|
|
24
|
+
* behaviour , no custom key handling). The progression state (upcoming /
|
|
25
|
+
* active / completed) is derived by the container from the active value; colours
|
|
26
|
+
* come entirely from the `navigation.*` / `informative.*` design tokens.
|
|
27
|
+
*
|
|
28
|
+
* Declared before {@link UiStepper} so the container's content query can
|
|
29
|
+
* reference it without a temporal-dead-zone error at class-definition time.
|
|
30
|
+
*/
|
|
31
|
+
declare class UiStep {
|
|
32
|
+
/** Identifier of this step (matched against the container `value`). */
|
|
33
|
+
value: _angular_core.ModelSignal<UiStepValue | undefined>;
|
|
34
|
+
/** Disable the step (not activatable, skipped by keyboard focus). */
|
|
35
|
+
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
36
|
+
/** Icon name overriding the numbered marker (any state). */
|
|
37
|
+
icon: _angular_core.InputSignal<string | undefined>;
|
|
38
|
+
/** Accessible name override (falls back to the projected title). */
|
|
39
|
+
ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
40
|
+
/** @ignore Parent container (owns the active state + progression). */
|
|
41
|
+
protected readonly stepper: UiStepper;
|
|
42
|
+
/** @ignore Progression state of this step. */
|
|
43
|
+
readonly state: _angular_core.Signal<UiStepState>;
|
|
44
|
+
/** @ignore 1-based position of this step (shown in the marker). */
|
|
45
|
+
protected readonly number: _angular_core.Signal<number>;
|
|
46
|
+
/** @ignore Whether a trailing separator is drawn (horizontal, not the last step). */
|
|
47
|
+
protected readonly showSeparator: _angular_core.Signal<boolean>;
|
|
48
|
+
/** @ignore The separator bridges to the next step once this one is completed. */
|
|
49
|
+
protected readonly separatorCompleted: _angular_core.Signal<boolean>;
|
|
50
|
+
/** @ignore Last step in the sequence (no trailing growth in the horizontal strip). */
|
|
51
|
+
protected readonly isLastStep: _angular_core.Signal<boolean>;
|
|
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
|
+
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
57
|
+
/** @ignore Glyph shown in the marker: own icon, else the completed icon, else the number. */
|
|
58
|
+
protected readonly markerIcon: _angular_core.Signal<string | null>;
|
|
59
|
+
/** @ignore */
|
|
60
|
+
protected onClick(event: MouseEvent): void;
|
|
61
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiStep, never>;
|
|
62
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStep, "ui-step", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*"], true, never>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* ui-step-panel , the content region tied to a {@link UiStep} by shared `value`.
|
|
66
|
+
*
|
|
67
|
+
* The panel stays mounted but is `hidden` (and skipped by assistive tech) when
|
|
68
|
+
* inactive, so its state is preserved. With `lazy` the content is rendered only
|
|
69
|
+
* once the panel is first activated; wrap expensive content in a
|
|
70
|
+
* `<ng-template #content>` so it initialises lazily.
|
|
71
|
+
*/
|
|
72
|
+
declare class UiStepPanel {
|
|
73
|
+
/** Identifier of this panel (matched against the step of the same `value`). */
|
|
74
|
+
value: _angular_core.ModelSignal<UiStepValue | undefined>;
|
|
75
|
+
/** Render this panel's content only once it is first activated (overrides the group default). */
|
|
76
|
+
lazy: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
77
|
+
/** Optional lazy content template (`<ng-template #content>`). */
|
|
78
|
+
protected readonly content: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
79
|
+
/** @ignore Parent container (active state + group `lazy` default). */
|
|
80
|
+
protected readonly stepper: UiStepper;
|
|
81
|
+
/** @ignore */
|
|
82
|
+
protected readonly active: _angular_core.Signal<boolean>;
|
|
83
|
+
/** @ignore Panel-level `lazy` overrides the group default when explicitly set. */
|
|
84
|
+
private readonly isLazy;
|
|
85
|
+
/** @ignore Sticks once the panel has been activated at least once. */
|
|
86
|
+
private readonly hasRendered;
|
|
87
|
+
constructor();
|
|
88
|
+
/** @ignore Eager panels always render; lazy ones only after first activation. */
|
|
89
|
+
protected readonly shouldRender: _angular_core.Signal<boolean>;
|
|
90
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiStepPanel, never>;
|
|
91
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStepPanel, "ui-step-panel", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["content"], ["*"], true, never>;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* ui-step-list , the horizontal strip of {@link UiStep} headers.
|
|
95
|
+
*
|
|
96
|
+
* Owns the WAI-ARIA `role="tablist"`. Focus moves through the headers with
|
|
97
|
+
* `Tab` (each enabled header is a native tab stop); activation is `Enter` /
|
|
98
|
+
* `Space` (native `<button>`). Use it on its own , without panels , for a plain
|
|
99
|
+
* progress indicator ("steps only").
|
|
100
|
+
*/
|
|
101
|
+
declare class UiStepList {
|
|
102
|
+
/** Accessible name for the step list (recommended). */
|
|
103
|
+
ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
104
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiStepList, never>;
|
|
105
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStepList, "ui-step-list", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* ui-step-panels , thin wrapper grouping the {@link UiStepPanel}s below the
|
|
109
|
+
* horizontal step list.
|
|
110
|
+
*/
|
|
111
|
+
declare class UiStepPanels {
|
|
112
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiStepPanels, never>;
|
|
113
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStepPanels, "ui-step-panels", never, {}, {}, never, ["*"], true, never>;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* ui-step-item , vertical wrapper pairing a {@link UiStep} with its
|
|
117
|
+
* {@link UiStepPanel}. Carries the shared `value` and propagates it to both
|
|
118
|
+
* children, so the vertical markup stays terse. The connector rail is drawn by
|
|
119
|
+
* the item itself, alongside the panel.
|
|
120
|
+
*/
|
|
121
|
+
declare class UiStepItem {
|
|
122
|
+
/** Identifier shared by the wrapped step and panel. */
|
|
123
|
+
value: _angular_core.InputSignal<UiStepValue>;
|
|
124
|
+
/** @ignore Parent container. */
|
|
125
|
+
protected readonly stepper: UiStepper;
|
|
126
|
+
/** @ignore Wrapped step (value propagated from this item). */
|
|
127
|
+
private readonly step;
|
|
128
|
+
/** @ignore Wrapped panel (value propagated from this item). */
|
|
129
|
+
private readonly panel;
|
|
130
|
+
/** @ignore Progression state (drives the connector colour). */
|
|
131
|
+
protected readonly state: _angular_core.Signal<UiStepState>;
|
|
132
|
+
/** @ignore Last item hides its connector rail. */
|
|
133
|
+
protected readonly isLast: _angular_core.Signal<boolean>;
|
|
134
|
+
constructor();
|
|
135
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiStepItem, never>;
|
|
136
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStepItem, "ui-step-item", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, ["step", "panel"], ["*"], true, never>;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* ui-stepper , headless container guiding a user through a numbered, multi-step
|
|
140
|
+
* progression (wizard). Composition API mirroring `ui-tabs`.
|
|
141
|
+
*
|
|
142
|
+
* Two layouts. **Horizontal**: a `ui-step-list` of `ui-step` headers on top and
|
|
143
|
+
* a `ui-step-panels` holding one `ui-step-panel` per step below (each step and
|
|
144
|
+
* its panel paired by `value`). **Vertical**: each `ui-step-item` wraps a
|
|
145
|
+
* `ui-step` and its `ui-step-panel`, so the panel appears directly beneath its
|
|
146
|
+
* header. With `linear`, steps ahead of the active one are disabled , advance by
|
|
147
|
+
* setting `value` (e.g. a "Next" button in the panel). Every colour/metric comes
|
|
148
|
+
* from the `navigation.*` / `informative.*` design tokens; the active panel
|
|
149
|
+
* fades in via the shared motion system (reduced-motion aware).
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```html
|
|
153
|
+
* <ui-stepper [(value)]="active">
|
|
154
|
+
* <ui-step-list ariaLabel="Étapes">
|
|
155
|
+
* <ui-step [value]="1">Compte</ui-step>
|
|
156
|
+
* <ui-step [value]="2">Profil</ui-step>
|
|
157
|
+
* <ui-step [value]="3">Confirmation</ui-step>
|
|
158
|
+
* </ui-step-list>
|
|
159
|
+
* <ui-step-panels>
|
|
160
|
+
* <ui-step-panel [value]="1">…</ui-step-panel>
|
|
161
|
+
* <ui-step-panel [value]="2">…</ui-step-panel>
|
|
162
|
+
* <ui-step-panel [value]="3">…</ui-step-panel>
|
|
163
|
+
* </ui-step-panels>
|
|
164
|
+
* </ui-stepper>
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
declare class UiStepper {
|
|
168
|
+
/** Value of the active step (two-way). `undefined` = no active step. */
|
|
169
|
+
value: _angular_core.ModelSignal<UiStepValue | undefined>;
|
|
170
|
+
/** Layout axis: `horizontal` (list on top, panels below) or `vertical`. */
|
|
171
|
+
orientation: _angular_core.InputSignal<UiStepperOrientation>;
|
|
172
|
+
/** When `true`, steps ahead of the active one are disabled (no skipping forward). */
|
|
173
|
+
linear: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
174
|
+
/** Group default: render an inactive panel's content only once it is first activated. */
|
|
175
|
+
lazy: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
176
|
+
/** Animate the active panel transition (reduced-motion always wins). */
|
|
177
|
+
motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
178
|
+
/** Icon shown in the marker of completed steps (falls back to the step number). */
|
|
179
|
+
completedIcon: _angular_core.InputSignal<string | undefined>;
|
|
180
|
+
/** Accessible name for the container (used as `aria-label` in vertical layout). */
|
|
181
|
+
ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
182
|
+
/** Tabindex applied to each enabled step header. */
|
|
183
|
+
tabindex: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
184
|
+
/** Fired whenever the active step changes (user click / keyboard). */
|
|
185
|
+
stepChange: _angular_core.OutputEmitterRef<UiStepperChangeEvent>;
|
|
186
|
+
/** @ignore Unique id root for aria wiring between steps and panels. */
|
|
187
|
+
readonly id: string;
|
|
188
|
+
/** @ignore All steps projected under this container, in DOM order. */
|
|
189
|
+
private readonly steps;
|
|
190
|
+
/** @ignore Ordered step values (the progression sequence). */
|
|
191
|
+
private readonly orderedValues;
|
|
192
|
+
/** @ignore Index of the active step in the ordered sequence (-1 when none). */
|
|
193
|
+
private readonly activeIndex;
|
|
194
|
+
/** @ignore id of the step header for a given value. */
|
|
195
|
+
stepId(value: UiStepValue | undefined): string;
|
|
196
|
+
/** @ignore id of the panel for a given value. */
|
|
197
|
+
panelId(value: UiStepValue | undefined): string;
|
|
198
|
+
/** @ignore Whether the given value is the active step. */
|
|
199
|
+
isActive(value: UiStepValue | undefined): boolean;
|
|
200
|
+
/** @ignore 1-based position of a step in the progression (0 when unknown). */
|
|
201
|
+
stepNumber(value: UiStepValue | undefined): number;
|
|
202
|
+
/** @ignore Whether the given value is the last step in the sequence. */
|
|
203
|
+
isLast(value: UiStepValue | undefined): boolean;
|
|
204
|
+
/**
|
|
205
|
+
* @ignore Progression state of a step: before the active one → `completed`,
|
|
206
|
+
* the active one → `active`, after it → `upcoming`.
|
|
207
|
+
*/
|
|
208
|
+
stepState(value: UiStepValue | undefined): UiStepState;
|
|
209
|
+
/** @ignore Activate a step (no-op if already active); emits `stepChange`. */
|
|
210
|
+
updateValue(value: UiStepValue, event?: Event): void;
|
|
211
|
+
/** Activate the next step in the sequence (respects the sequence bounds). */
|
|
212
|
+
next(): void;
|
|
213
|
+
/** Activate the previous step in the sequence. */
|
|
214
|
+
prev(): void;
|
|
215
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiStepper, never>;
|
|
216
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStepper, "ui-stepper", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "completedIcon": { "alias": "completedIcon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "stepChange": "stepChange"; }, ["steps"], ["*"], true, never>;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export { UiStep, UiStepItem, UiStepList, UiStepPanel, UiStepPanels, UiStepper };
|
|
220
|
+
export type { UiStepState, UiStepValue, UiStepperChangeEvent, UiStepperOrientation };
|