@4sh/ui-kit 0.12.1 → 0.14.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.
Files changed (56) hide show
  1. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +2 -2
  2. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  3. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +26 -2
  4. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +6 -0
  6. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +14 -0
  8. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +2 -2
  10. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1 -1
  12. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +2 -2
  14. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +7 -0
  16. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +4 -2
  18. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +75 -15
  20. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +2 -2
  22. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +2 -2
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +2 -2
  28. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +5 -3
  30. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +2 -2
  32. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +6 -0
  34. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +101 -10
  36. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +4 -1
  38. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  39. package/mcp/data/component-api.json +11710 -0
  40. package/mcp/data/text-search-docs.json +111 -71
  41. package/mcp/data/ui-config.json +6984 -379
  42. package/mcp/index.js +24 -2
  43. package/mcp/package.json +1 -1
  44. package/package.json +1 -1
  45. package/styles/component-vars.scss +13 -1
  46. package/styles/utils/_mixins.scss +9 -10
  47. package/types/4sh-ui-kit-actions-ui-button.d.ts +24 -0
  48. package/types/4sh-ui-kit-actions-ui-link.d.ts +6 -0
  49. package/types/4sh-ui-kit-base-ui-image.d.ts +14 -0
  50. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +7 -0
  51. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +2 -0
  52. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +47 -15
  53. package/types/4sh-ui-kit-forms-ui-select.d.ts +3 -1
  54. package/types/4sh-ui-kit-informative-ui-badge.d.ts +6 -0
  55. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +42 -3
  56. package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -0
@@ -7,16 +7,22 @@ import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
7
7
  */
8
8
  class UiBadge {
9
9
  constructor() {
10
+ /** Text content (counter or short label). Absent with no icon: the badge is a dot. */
10
11
  this.value = input(/* @ts-ignore */
11
12
  ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
13
+ /** Feedback level (colour family). */
12
14
  this.level = input('default', /* @ts-ignore */
13
15
  ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
16
+ /** Intensity: `high` (strong) or `low` (subtle). */
14
17
  this.subLevel = input('high', /* @ts-ignore */
15
18
  ...(ngDevMode ? [{ debugName: "subLevel" }] : /* istanbul ignore next */ []));
19
+ /** Badge size. */
16
20
  this.size = input('default', /* @ts-ignore */
17
21
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
22
+ /** FontAwesome icon name, shown before the text. */
18
23
  this.icon = input(/* @ts-ignore */
19
24
  ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
25
+ /** Accessible name, recommended for an icon-only badge or an ambiguous counter. */
20
26
  this.ariaLabel = input(/* @ts-ignore */
21
27
  ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
22
28
  /** @ignore There is text here */
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-badge.mjs","sources":["../../../projects/ui-kit/informative/ui-badge/src/lib/ui-badge.ts","../../../projects/ui-kit/informative/ui-badge/src/lib/ui-badge.html","../../../projects/ui-kit/informative/ui-badge/src/public-api.ts","../../../projects/ui-kit/informative/ui-badge/src/4sh-ui-kit-informative-ui-badge.ts"],"sourcesContent":["import { Component, computed, effect, input, isDevMode } from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type BadgeSize = 'default' | 'small' | 'large';\n\n/**\n * ui-badge — small status / count indicator.\n */\n@Component({\n selector: 'ui-badge',\n imports: [UiIcon],\n templateUrl: './ui-badge.html',\n styleUrl: './ui-badge.scss',\n})\nexport class UiBadge {\n value = input<string | number>();\n level = input<UiFeedbackLevel>('default');\n subLevel = input<UiSubLevel>('high');\n size = input<BadgeSize>('default');\n icon = input<string>();\n ariaLabel = input<string>();\n\n constructor() {\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.ariaLabel()) {\n console.warn('[ui-badge] Icon-only badge has no accessible name: provide `ariaLabel`.');\n }\n });\n }\n }\n\n /** @ignore There is text here */\n protected readonly hasText = computed(() => {\n const v = this.value();\n return v !== undefined && v !== null && String(v).length > 0;\n });\n\n /** @ignore There is an icon. */\n protected readonly hasIcon = computed(() => !!this.icon());\n\n /** @ignore Icon only (no text). */\n protected readonly isIconOnly = computed(() => this.hasIcon() && !this.hasText());\n\n /** @ignore Dot: no text and no icon. */\n protected readonly isDot = computed(() => !this.hasIcon() && !this.hasText());\n\n /**\n * @ignore Single glyph: a lone icon, or a single character (counter \"1\", symbol \"★\").\n */\n protected readonly isSingle = computed(() => {\n if (this.hasIcon()) return !this.hasText();\n return Array.from(String(this.value() ?? '').trim()).length === 1;\n });\n\n /** @ignore Bullet: Neither text nor icon. */\n protected readonly iconSize = computed<UiIconSize>(() => {\n switch (this.size()) {\n case 'small':\n return 'sm';\n case 'large':\n return 'lg';\n default:\n return 'md';\n }\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-badge', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isDot()) c.push('_dot');\n else if (this.isSingle()) c.push('_single');\n return c.join(' ');\n });\n}\n","<span [class]=\"classes()\" [attr.role]=\"ariaLabel() ? 'img' : null\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-badge-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasText()) {\n <span class=\"ui-badge-label\">{{ value() }}</span>\n }\n</span>\n","/*\n * Public API Surface of ui-kit/ui-badge\n */\n\nexport * from './lib/ui-badge';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAMA;;AAEG;MAOU,OAAO,CAAA;AAQlB,IAAA,WAAA,GAAA;AAPA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAmB;QAChC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;QACzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;QACpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAY,SAAS;iFAAC;AAClC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;AACtB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAaR,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;AACzC,YAAA,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE;AACtB,YAAA,OAAO,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC;QAC9D,CAAC;oFAAC;;QAGiB,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE;oFAAC;;AAGvC,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;uFAAC;;AAG9D,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,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AAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECfpB,gUAQA,EAAA,MAAA,EAAA,CAAA,2sIAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDGY,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIL,OAAO,EAAA,UAAA,EAAA,CAAA;kBANnB,SAAS;+BACE,UAAU,EAAA,OAAA,EACX,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,gUAAA,EAAA,MAAA,EAAA,CAAA,2sIAAA,CAAA,EAAA;;;AEXnB;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-badge.mjs","sources":["../../../projects/ui-kit/informative/ui-badge/src/lib/ui-badge.ts","../../../projects/ui-kit/informative/ui-badge/src/lib/ui-badge.html","../../../projects/ui-kit/informative/ui-badge/src/public-api.ts","../../../projects/ui-kit/informative/ui-badge/src/4sh-ui-kit-informative-ui-badge.ts"],"sourcesContent":["import { Component, computed, effect, input, isDevMode } from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type BadgeSize = 'default' | 'small' | 'large';\n\n/**\n * ui-badge — small status / count indicator.\n */\n@Component({\n selector: 'ui-badge',\n imports: [UiIcon],\n templateUrl: './ui-badge.html',\n styleUrl: './ui-badge.scss',\n})\nexport class UiBadge {\n /** Text content (counter or short label). Absent with no icon: the badge is a dot. */\n value = input<string | number>();\n /** Feedback level (colour family). */\n level = input<UiFeedbackLevel>('default');\n /** Intensity: `high` (strong) or `low` (subtle). */\n subLevel = input<UiSubLevel>('high');\n /** Badge size. */\n size = input<BadgeSize>('default');\n /** FontAwesome icon name, shown before the text. */\n icon = input<string>();\n /** Accessible name, recommended for an icon-only badge or an ambiguous counter. */\n ariaLabel = input<string>();\n\n constructor() {\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.ariaLabel()) {\n console.warn('[ui-badge] Icon-only badge has no accessible name: provide `ariaLabel`.');\n }\n });\n }\n }\n\n /** @ignore There is text here */\n protected readonly hasText = computed(() => {\n const v = this.value();\n return v !== undefined && v !== null && String(v).length > 0;\n });\n\n /** @ignore There is an icon. */\n protected readonly hasIcon = computed(() => !!this.icon());\n\n /** @ignore Icon only (no text). */\n protected readonly isIconOnly = computed(() => this.hasIcon() && !this.hasText());\n\n /** @ignore Dot: no text and no icon. */\n protected readonly isDot = computed(() => !this.hasIcon() && !this.hasText());\n\n /**\n * @ignore Single glyph: a lone icon, or a single character (counter \"1\", symbol \"★\").\n */\n protected readonly isSingle = computed(() => {\n if (this.hasIcon()) return !this.hasText();\n return Array.from(String(this.value() ?? '').trim()).length === 1;\n });\n\n /** @ignore Bullet: Neither text nor icon. */\n protected readonly iconSize = computed<UiIconSize>(() => {\n switch (this.size()) {\n case 'small':\n return 'sm';\n case 'large':\n return 'lg';\n default:\n return 'md';\n }\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-badge', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isDot()) c.push('_dot');\n else if (this.isSingle()) c.push('_single');\n return c.join(' ');\n });\n}\n","<span [class]=\"classes()\" [attr.role]=\"ariaLabel() ? 'img' : null\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-badge-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasText()) {\n <span class=\"ui-badge-label\">{{ value() }}</span>\n }\n</span>\n","/*\n * Public API Surface of ui-kit/ui-badge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A,IAAA,EDGY,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIL,OAAO,EAAA,UAAA,EAAA,CAAA;kBANnB,SAAS;+BACE,UAAU,EAAA,OAAA,EACX,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,gUAAA,EAAA,MAAA,EAAA,CAAA,2sIAAA,CAAA,EAAA;;;AEXnB;;AAEG;;ACFH;;AAEG;;"}
@@ -1,5 +1,5 @@
1
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';
2
+ import { model, input, booleanAttribute, inject, ElementRef, viewChild, computed, Component, contentChild, signal, effect, contentChildren, afterRenderEffect, numberAttribute, output, forwardRef } from '@angular/core';
3
3
  import { NgTemplateOutlet } from '@angular/common';
4
4
  import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
5
5
 
@@ -34,6 +34,11 @@ class UiStep {
34
34
  ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
35
35
  /** @ignore Parent container (owns the active state + progression). */
36
36
  this.stepper = inject(UiStepper);
37
+ /** @ignore */
38
+ this.host = inject(ElementRef);
39
+ /** @ignore Title text, measured by the scrollable strip (it overflows the marker). */
40
+ this.titleEl = viewChild.required('title', /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "titleEl" }] : /* istanbul ignore next */ []));
37
42
  /** @ignore Progression state of this step. */
38
43
  this.state = computed(() => this.stepper.stepState(this.value()), /* @ts-ignore */
39
44
  ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
@@ -72,8 +77,17 @@ class UiStep {
72
77
  return;
73
78
  this.stepper.updateValue(value, event);
74
79
  }
80
+ /**
81
+ * @ignore Horizontal extent of the step, in viewport px: its own box (marker and
82
+ * trailing connector) united with its title, which overflows the marker on both sides.
83
+ */
84
+ extent() {
85
+ const own = this.host.nativeElement.getBoundingClientRect();
86
+ const title = this.titleEl().nativeElement.getBoundingClientRect();
87
+ return { left: Math.min(own.left, title.left), right: Math.max(own.right, title.right) };
88
+ }
75
89
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiStep, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
76
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", 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: "<!-- Horizontal: a real tab in the stepper's own tablist (role=\"tab\" + aria-selected).\n Vertical: the panel sits right under its header inside the same ui-step-item, so the\n stepper cannot be a tablist there without a tab containing its own tabpanel \u2014 invalid ARIA.\n Vertical drops the tab semantics for the accordion pattern instead (aria-expanded, no role),\n matching how ui-step-panel switches its own role the same way (see below). -->\n<button\n #stepBtn\n type=\"button\"\n [attr.role]=\"stepper.orientation() === 'vertical' ? null : 'tab'\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"stepper.orientation() === 'vertical' ? null : state() === 'active'\"\n [attr.aria-expanded]=\"stepper.orientation() === 'vertical' ? state() === 'active' : null\"\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\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></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:var(--ui-stepper-marker-size, 2.75rem);height:var(--ui-stepper-marker-size, 2.75rem);flex:0 0 auto;border:var(--ui-stepper-marker-stroke-width, var(--stroke-sm)) solid var(--ui-stepper-marker-stroke, var(--navigation-high-stroke-default));border-radius:var(--radius-full);background-color:var(--ui-stepper-marker-surface, var(--navigation-high-surface-default));color:var(--ui-stepper-marker-color, var(--navigation-high-content-default));font-family:var(--ui-stepper-marker-font-family, var(--fontfamily-base));font-weight:var(--ui-stepper-marker-weight, var(--weight-bold));font-size:var(--size-typography-text-default);line-height:1;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-title{width:0;display:flex;justify-content:center;white-space:nowrap;color:var(--ui-stepper-title-color, var(--navigation-high-content-default));font-family:var(--ui-stepper-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);line-height:1.2;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-header:focus-visible .ui-step-marker{box-shadow:0 0 0 var(--ui-stepper-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-stepper-marker-focus-ring-color, var(--global-border-focus))}.ui-step-separator{flex:1 1 auto;min-width:var(--units-lg);height:0;margin:calc(var(--ui-stepper-marker-size, 2.75rem) / 2 - var(--ui-stepper-separator-stroke-width, var(--stroke-default)) / 2) var(--units-sm) 0;border-top:var(--ui-stepper-separator-stroke-width, var(--stroke-default)) solid var(--ui-stepper-separator-stroke, var(--global-border-default));transition:border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-separator._completed{border-top-color:var(--ui-stepper-separator-stroke-completed, var(--navigation-high-stroke-default))}:host._active .ui-step-marker{background-color:var(--ui-stepper-marker-surface-active, var(--navigation-high-surface-active));border-color:var(--ui-stepper-marker-stroke-active, var(--navigation-high-stroke-active));color:var(--ui-stepper-marker-color-active, var(--informative-defaulthigh-content-default))}:host._active .ui-step-title{color:var(--ui-stepper-title-color-active, var(--global-text-default));font-weight:var(--ui-stepper-title-weight, var(--weight-bold))}:host._completed .ui-step-marker{background-color:var(--ui-stepper-marker-surface-completed, var(--informative-defaulthigh-surface-default));color:var(--ui-stepper-marker-color-completed, var(--informative-defaulthigh-content-default))}.ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-hover, var(--navigation-high-surface-hover));border-color:var(--ui-stepper-marker-stroke-hover, var(--navigation-high-stroke-hover));color:var(--ui-stepper-marker-color-hover, var(--navigation-high-content-hover))}.ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-hover, var(--informative-highlightlow-content-hover))}:host._active .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-active-hover, var(--navigation-high-surface-active));border-color:var(--ui-stepper-marker-stroke-hover, var(--navigation-high-stroke-hover))}:host._active .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-hover, var(--informative-highlightlow-content-hover))}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-completed-hover, var(--informative-defaulthigh-surface-hover));border-color:var(--ui-stepper-marker-stroke-completed-hover, var(--informative-defaulthigh-stroke-hover));color:var(--ui-stepper-marker-color-completed-hover, var(--informative-defaulthigh-content-hover))}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-completed-hover, var(--informative-defaultlow-content-default))}:host._disabled .ui-step-marker{background-color:var(--ui-stepper-marker-surface-disabled, var(--navigation-high-surface-disabled));border-color:var(--ui-stepper-marker-stroke-disabled, var(--navigation-high-stroke-disabled));color:var(--ui-stepper-marker-color-disabled, var(--navigation-high-content-disabled))}:host._disabled .ui-step-title{color:var(--ui-stepper-title-color-disabled, 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"] }] }); }
90
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", 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()", "class._scrollable": "stepper.isScrollable()" }, classAttribute: "ui-step" }, viewQueries: [{ propertyName: "titleEl", first: true, predicate: ["title"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Horizontal: a real tab in the stepper's own tablist (role=\"tab\" + aria-selected).\n Vertical: the panel sits right under its header inside the same ui-step-item, so the\n stepper cannot be a tablist there without a tab containing its own tabpanel \u2014 invalid ARIA.\n Vertical drops the tab semantics for the accordion pattern instead (aria-expanded, no role),\n matching how ui-step-panel switches its own role the same way (see below). -->\n<button\n #stepBtn\n type=\"button\"\n [attr.role]=\"stepper.orientation() === 'vertical' ? null : 'tab'\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"stepper.orientation() === 'vertical' ? null : state() === 'active'\"\n [attr.aria-expanded]=\"stepper.orientation() === 'vertical' ? state() === 'active' : null\"\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\">\n <span #title class=\"ui-step-title-text\"><ng-content /></span>\n </span>\n</button>\n\n@if (showSeparator()) {\n <span\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></span>\n}\n", styles: [":host{display:flex;flex:1 1 0;align-items:flex-start;min-width:0}:host._scrollable{flex:1 0 var(--ui-stepper-step-min-width, 7.5rem);padding-block:var(--ui-stepper-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs)))}: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:var(--ui-stepper-marker-size, 2.75rem);height:var(--ui-stepper-marker-size, 2.75rem);flex:0 0 auto;border:var(--ui-stepper-marker-stroke-width, var(--stroke-sm)) solid var(--ui-stepper-marker-stroke, var(--navigation-high-stroke-default));border-radius:var(--radius-full);background-color:var(--ui-stepper-marker-surface, var(--navigation-high-surface-default));color:var(--ui-stepper-marker-color, var(--navigation-high-content-default));font-family:var(--ui-stepper-marker-font-family, var(--fontfamily-base));font-weight:var(--ui-stepper-marker-weight, var(--weight-bold));font-size:var(--size-typography-text-default);line-height:1;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-title{width:0;display:flex;justify-content:center;white-space:nowrap;color:var(--ui-stepper-title-color, var(--navigation-high-content-default));font-family:var(--ui-stepper-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);line-height:1.2;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-header:focus-visible .ui-step-marker{box-shadow:0 0 0 var(--ui-stepper-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-stepper-marker-focus-ring-color, var(--global-border-focus))}.ui-step-separator{flex:1 1 auto;min-width:var(--units-lg);height:0;margin:calc(var(--ui-stepper-marker-size, 2.75rem) / 2 - var(--ui-stepper-separator-stroke-width, var(--stroke-default)) / 2) var(--units-sm) 0;border-top:var(--ui-stepper-separator-stroke-width, var(--stroke-default)) solid var(--ui-stepper-separator-stroke, var(--global-border-default));transition:border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-separator._completed{border-top-color:var(--ui-stepper-separator-stroke-completed, var(--navigation-high-stroke-default))}:host._active .ui-step-marker{background-color:var(--ui-stepper-marker-surface-active, var(--navigation-high-surface-active));border-color:var(--ui-stepper-marker-stroke-active, var(--navigation-high-stroke-active));color:var(--ui-stepper-marker-color-active, var(--informative-defaulthigh-content-default))}:host._active .ui-step-title{color:var(--ui-stepper-title-color-active, var(--global-text-default));font-weight:var(--ui-stepper-title-weight, var(--weight-bold))}:host._completed .ui-step-marker{background-color:var(--ui-stepper-marker-surface-completed, var(--informative-defaulthigh-surface-default));color:var(--ui-stepper-marker-color-completed, var(--informative-defaulthigh-content-default))}.ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-hover, var(--navigation-high-surface-hover));border-color:var(--ui-stepper-marker-stroke-hover, var(--navigation-high-stroke-hover));color:var(--ui-stepper-marker-color-hover, var(--navigation-high-content-hover))}.ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-hover, var(--informative-highlightlow-content-hover))}:host._active .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-active-hover, var(--navigation-high-surface-active));border-color:var(--ui-stepper-marker-stroke-hover, var(--navigation-high-stroke-hover))}:host._active .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-hover, var(--informative-highlightlow-content-hover))}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-completed-hover, var(--informative-defaulthigh-surface-hover));border-color:var(--ui-stepper-marker-stroke-completed-hover, var(--informative-defaulthigh-stroke-hover));color:var(--ui-stepper-marker-color-completed-hover, var(--informative-defaulthigh-content-hover))}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-completed-hover, var(--informative-defaultlow-content-default))}:host._disabled .ui-step-marker{background-color:var(--ui-stepper-marker-surface-disabled, var(--navigation-high-surface-disabled));border-color:var(--ui-stepper-marker-stroke-disabled, var(--navigation-high-stroke-disabled));color:var(--ui-stepper-marker-color-disabled, var(--navigation-high-content-disabled))}:host._disabled .ui-step-title{color:var(--ui-stepper-title-color-disabled, 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
91
  }
78
92
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiStep, decorators: [{
79
93
  type: Component,
@@ -84,8 +98,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
84
98
  '[class._vertical]': "stepper.orientation() === 'vertical'",
85
99
  '[class._disabled]': 'isDisabled()',
86
100
  '[class._last]': 'isLastStep()',
87
- }, template: "<!-- Horizontal: a real tab in the stepper's own tablist (role=\"tab\" + aria-selected).\n Vertical: the panel sits right under its header inside the same ui-step-item, so the\n stepper cannot be a tablist there without a tab containing its own tabpanel \u2014 invalid ARIA.\n Vertical drops the tab semantics for the accordion pattern instead (aria-expanded, no role),\n matching how ui-step-panel switches its own role the same way (see below). -->\n<button\n #stepBtn\n type=\"button\"\n [attr.role]=\"stepper.orientation() === 'vertical' ? null : 'tab'\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"stepper.orientation() === 'vertical' ? null : state() === 'active'\"\n [attr.aria-expanded]=\"stepper.orientation() === 'vertical' ? state() === 'active' : null\"\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\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></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:var(--ui-stepper-marker-size, 2.75rem);height:var(--ui-stepper-marker-size, 2.75rem);flex:0 0 auto;border:var(--ui-stepper-marker-stroke-width, var(--stroke-sm)) solid var(--ui-stepper-marker-stroke, var(--navigation-high-stroke-default));border-radius:var(--radius-full);background-color:var(--ui-stepper-marker-surface, var(--navigation-high-surface-default));color:var(--ui-stepper-marker-color, var(--navigation-high-content-default));font-family:var(--ui-stepper-marker-font-family, var(--fontfamily-base));font-weight:var(--ui-stepper-marker-weight, var(--weight-bold));font-size:var(--size-typography-text-default);line-height:1;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-title{width:0;display:flex;justify-content:center;white-space:nowrap;color:var(--ui-stepper-title-color, var(--navigation-high-content-default));font-family:var(--ui-stepper-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);line-height:1.2;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-header:focus-visible .ui-step-marker{box-shadow:0 0 0 var(--ui-stepper-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-stepper-marker-focus-ring-color, var(--global-border-focus))}.ui-step-separator{flex:1 1 auto;min-width:var(--units-lg);height:0;margin:calc(var(--ui-stepper-marker-size, 2.75rem) / 2 - var(--ui-stepper-separator-stroke-width, var(--stroke-default)) / 2) var(--units-sm) 0;border-top:var(--ui-stepper-separator-stroke-width, var(--stroke-default)) solid var(--ui-stepper-separator-stroke, var(--global-border-default));transition:border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-separator._completed{border-top-color:var(--ui-stepper-separator-stroke-completed, var(--navigation-high-stroke-default))}:host._active .ui-step-marker{background-color:var(--ui-stepper-marker-surface-active, var(--navigation-high-surface-active));border-color:var(--ui-stepper-marker-stroke-active, var(--navigation-high-stroke-active));color:var(--ui-stepper-marker-color-active, var(--informative-defaulthigh-content-default))}:host._active .ui-step-title{color:var(--ui-stepper-title-color-active, var(--global-text-default));font-weight:var(--ui-stepper-title-weight, var(--weight-bold))}:host._completed .ui-step-marker{background-color:var(--ui-stepper-marker-surface-completed, var(--informative-defaulthigh-surface-default));color:var(--ui-stepper-marker-color-completed, var(--informative-defaulthigh-content-default))}.ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-hover, var(--navigation-high-surface-hover));border-color:var(--ui-stepper-marker-stroke-hover, var(--navigation-high-stroke-hover));color:var(--ui-stepper-marker-color-hover, var(--navigation-high-content-hover))}.ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-hover, var(--informative-highlightlow-content-hover))}:host._active .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-active-hover, var(--navigation-high-surface-active));border-color:var(--ui-stepper-marker-stroke-hover, var(--navigation-high-stroke-hover))}:host._active .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-hover, var(--informative-highlightlow-content-hover))}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-completed-hover, var(--informative-defaulthigh-surface-hover));border-color:var(--ui-stepper-marker-stroke-completed-hover, var(--informative-defaulthigh-stroke-hover));color:var(--ui-stepper-marker-color-completed-hover, var(--informative-defaulthigh-content-hover))}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-completed-hover, var(--informative-defaultlow-content-default))}:host._disabled .ui-step-marker{background-color:var(--ui-stepper-marker-surface-disabled, var(--navigation-high-surface-disabled));border-color:var(--ui-stepper-marker-stroke-disabled, var(--navigation-high-stroke-disabled));color:var(--ui-stepper-marker-color-disabled, var(--navigation-high-content-disabled))}:host._disabled .ui-step-title{color:var(--ui-stepper-title-color-disabled, 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 }] }] } });
101
+ '[class._scrollable]': 'stepper.isScrollable()',
102
+ }, template: "<!-- Horizontal: a real tab in the stepper's own tablist (role=\"tab\" + aria-selected).\n Vertical: the panel sits right under its header inside the same ui-step-item, so the\n stepper cannot be a tablist there without a tab containing its own tabpanel \u2014 invalid ARIA.\n Vertical drops the tab semantics for the accordion pattern instead (aria-expanded, no role),\n matching how ui-step-panel switches its own role the same way (see below). -->\n<button\n #stepBtn\n type=\"button\"\n [attr.role]=\"stepper.orientation() === 'vertical' ? null : 'tab'\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"stepper.orientation() === 'vertical' ? null : state() === 'active'\"\n [attr.aria-expanded]=\"stepper.orientation() === 'vertical' ? state() === 'active' : null\"\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\">\n <span #title class=\"ui-step-title-text\"><ng-content /></span>\n </span>\n</button>\n\n@if (showSeparator()) {\n <span\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></span>\n}\n", styles: [":host{display:flex;flex:1 1 0;align-items:flex-start;min-width:0}:host._scrollable{flex:1 0 var(--ui-stepper-step-min-width, 7.5rem);padding-block:var(--ui-stepper-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs)))}: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:var(--ui-stepper-marker-size, 2.75rem);height:var(--ui-stepper-marker-size, 2.75rem);flex:0 0 auto;border:var(--ui-stepper-marker-stroke-width, var(--stroke-sm)) solid var(--ui-stepper-marker-stroke, var(--navigation-high-stroke-default));border-radius:var(--radius-full);background-color:var(--ui-stepper-marker-surface, var(--navigation-high-surface-default));color:var(--ui-stepper-marker-color, var(--navigation-high-content-default));font-family:var(--ui-stepper-marker-font-family, var(--fontfamily-base));font-weight:var(--ui-stepper-marker-weight, var(--weight-bold));font-size:var(--size-typography-text-default);line-height:1;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-title{width:0;display:flex;justify-content:center;white-space:nowrap;color:var(--ui-stepper-title-color, var(--navigation-high-content-default));font-family:var(--ui-stepper-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);line-height:1.2;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-header:focus-visible .ui-step-marker{box-shadow:0 0 0 var(--ui-stepper-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-stepper-marker-focus-ring-color, var(--global-border-focus))}.ui-step-separator{flex:1 1 auto;min-width:var(--units-lg);height:0;margin:calc(var(--ui-stepper-marker-size, 2.75rem) / 2 - var(--ui-stepper-separator-stroke-width, var(--stroke-default)) / 2) var(--units-sm) 0;border-top:var(--ui-stepper-separator-stroke-width, var(--stroke-default)) solid var(--ui-stepper-separator-stroke, var(--global-border-default));transition:border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-step-separator._completed{border-top-color:var(--ui-stepper-separator-stroke-completed, var(--navigation-high-stroke-default))}:host._active .ui-step-marker{background-color:var(--ui-stepper-marker-surface-active, var(--navigation-high-surface-active));border-color:var(--ui-stepper-marker-stroke-active, var(--navigation-high-stroke-active));color:var(--ui-stepper-marker-color-active, var(--informative-defaulthigh-content-default))}:host._active .ui-step-title{color:var(--ui-stepper-title-color-active, var(--global-text-default));font-weight:var(--ui-stepper-title-weight, var(--weight-bold))}:host._completed .ui-step-marker{background-color:var(--ui-stepper-marker-surface-completed, var(--informative-defaulthigh-surface-default));color:var(--ui-stepper-marker-color-completed, var(--informative-defaulthigh-content-default))}.ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-hover, var(--navigation-high-surface-hover));border-color:var(--ui-stepper-marker-stroke-hover, var(--navigation-high-stroke-hover));color:var(--ui-stepper-marker-color-hover, var(--navigation-high-content-hover))}.ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-hover, var(--informative-highlightlow-content-hover))}:host._active .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-active-hover, var(--navigation-high-surface-active));border-color:var(--ui-stepper-marker-stroke-hover, var(--navigation-high-stroke-hover))}:host._active .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-hover, var(--informative-highlightlow-content-hover))}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-marker{background-color:var(--ui-stepper-marker-surface-completed-hover, var(--informative-defaulthigh-surface-hover));border-color:var(--ui-stepper-marker-stroke-completed-hover, var(--informative-defaulthigh-stroke-hover));color:var(--ui-stepper-marker-color-completed-hover, var(--informative-defaulthigh-content-hover))}:host._completed .ui-step-header:hover:not(:disabled) .ui-step-title{color:var(--ui-stepper-title-color-completed-hover, var(--informative-defaultlow-content-default))}:host._disabled .ui-step-marker{background-color:var(--ui-stepper-marker-surface-disabled, var(--navigation-high-surface-disabled));border-color:var(--ui-stepper-marker-stroke-disabled, var(--navigation-high-stroke-disabled));color:var(--ui-stepper-marker-color-disabled, var(--navigation-high-content-disabled))}:host._disabled .ui-step-title{color:var(--ui-stepper-title-color-disabled, 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"] }]
103
+ }], 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 }] }], titleEl: [{ type: i0.ViewChild, args: ['title', { isSignal: true }] }] } });
89
104
  /**
90
105
  * ui-step-panel , the content region tied to a {@link UiStep} by shared `value`.
91
106
  *
@@ -178,16 +193,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
178
193
  * Owns the WAI-ARIA `role="tablist"`. Focus moves through the headers with
179
194
  * `Tab` (each enabled header is a native tab stop); activation is `Enter` /
180
195
  * `Space` (native `<button>`). Use it on its own , without panels , for a plain
181
- * progress indicator ("steps only").
196
+ * progress indicator ("steps only"). When the container is `scrollable`, the
197
+ * list itself is the scroll viewport and keeps the active step in view.
182
198
  */
183
199
  class UiStepList {
184
200
  constructor() {
185
201
  /** Accessible name for the step list (recommended). */
186
202
  this.ariaLabel = input(/* @ts-ignore */
187
203
  ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
204
+ /** @ignore Parent container (active value + `scrollable` option). */
205
+ this.stepper = inject(UiStepper);
206
+ /** @ignore The scroll viewport, when `scrollable`. */
207
+ this.host = inject(ElementRef);
208
+ /** @ignore Steps projected into this list, in DOM order. */
209
+ this.steps = contentChildren(UiStep, /* @ts-ignore */
210
+ ...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
211
+ /** @ignore Bumped by the ResizeObserver: a new width may clip the active step. */
212
+ this.resizeTick = signal(0, /* @ts-ignore */
213
+ ...(ngDevMode ? [{ debugName: "resizeTick" }] : /* istanbul ignore next */ []));
214
+ /** @ignore Whether the strip has been measured once (the first reveal does not animate). */
215
+ this.settled = false;
216
+ // Observe the strip only while it scrolls. The guard also keeps consumers' jsdom
217
+ // unit tests working: jsdom has no ResizeObserver.
218
+ afterRenderEffect((onCleanup) => {
219
+ if (!this.stepper.isScrollable() || typeof ResizeObserver === 'undefined')
220
+ return;
221
+ const ro = new ResizeObserver(() => this.resizeTick.update((v) => v + 1));
222
+ ro.observe(this.host.nativeElement);
223
+ onCleanup(() => ro.disconnect());
224
+ });
225
+ // Keep the active step in view: on activation, on first layout and on resize.
226
+ afterRenderEffect(() => {
227
+ this.resizeTick();
228
+ if (!this.stepper.isScrollable())
229
+ return;
230
+ const value = this.stepper.value();
231
+ const step = this.steps().find((s) => s.value() === value);
232
+ if (!step)
233
+ return;
234
+ // Only a change of step animates: the first reveal and a resize jump straight there.
235
+ const animate = this.settled && this.shownValue !== value;
236
+ if (this.reveal(step, animate)) {
237
+ this.settled = true;
238
+ this.shownValue = value;
239
+ }
240
+ });
241
+ }
242
+ /**
243
+ * @ignore Scroll the strip by the minimum that brings the step fully into view, nothing
244
+ * when it already is. Measured against the strip itself: unlike `scrollIntoView()`, it
245
+ * never scrolls the page. Returns `false` while the strip is not laid out yet.
246
+ */
247
+ reveal(step, animate) {
248
+ const strip = this.host.nativeElement;
249
+ const width = strip.clientWidth;
250
+ if (width === 0)
251
+ return false;
252
+ const origin = strip.getBoundingClientRect().left + strip.clientLeft;
253
+ const { left, right } = step.extent();
254
+ const start = left - origin;
255
+ const end = right - origin;
256
+ let delta = 0;
257
+ if (start < -1) {
258
+ delta = start; // clipped at the start edge: align its start.
259
+ }
260
+ else if (end > width + 1) {
261
+ delta = Math.min(end - width, start); // clipped at the end: align its end, keep its start.
262
+ }
263
+ if (delta !== 0) {
264
+ // `auto` defers to the CSS `scroll-behavior`: smooth, or instant under reduced motion
265
+ // and `[motion]="false"`.
266
+ strip.scrollTo({ left: strip.scrollLeft + delta, behavior: animate ? 'auto' : 'instant' });
267
+ }
268
+ return true;
188
269
  }
189
270
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiStepList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
190
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", 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"] }); }
271
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", 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", "class._scrollable": "stepper.isScrollable()", "class._no-motion": "!stepper.motion()" }, classAttribute: "ui-step-list" }, queries: [{ propertyName: "steps", predicate: UiStep, isSignal: true }], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:flex;flex-direction:row;align-items:flex-start;width:100%;min-width:0}:host._scrollable{box-sizing:border-box;overflow-x:auto;overflow-y:hidden;padding-inline:calc((var(--ui-stepper-step-min-width, 7.5rem) - var(--ui-stepper-marker-size, 2.75rem)) / 2);scroll-behavior:smooth;scrollbar-width:none}:host._scrollable::-webkit-scrollbar{display:none}@media(prefers-reduced-motion:reduce){:host._scrollable{scroll-behavior:auto}}:root[data-motion=off] :host._scrollable{scroll-behavior:auto}:host._scrollable._no-motion{scroll-behavior:auto}\n"] }); }
191
272
  }
192
273
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiStepList, decorators: [{
193
274
  type: Component,
@@ -196,8 +277,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
196
277
  role: 'tablist',
197
278
  'aria-orientation': 'horizontal',
198
279
  '[attr.aria-label]': 'ariaLabel() || null',
199
- }, styles: [":host{display:flex;flex-direction:row;align-items:flex-start;width:100%;min-width:0}\n"] }]
200
- }], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
280
+ '[class._scrollable]': 'stepper.isScrollable()',
281
+ '[class._no-motion]': '!stepper.motion()',
282
+ }, styles: [":host{display:flex;flex-direction:row;align-items:flex-start;width:100%;min-width:0}:host._scrollable{box-sizing:border-box;overflow-x:auto;overflow-y:hidden;padding-inline:calc((var(--ui-stepper-step-min-width, 7.5rem) - var(--ui-stepper-marker-size, 2.75rem)) / 2);scroll-behavior:smooth;scrollbar-width:none}:host._scrollable::-webkit-scrollbar{display:none}@media(prefers-reduced-motion:reduce){:host._scrollable{scroll-behavior:auto}}:root[data-motion=off] :host._scrollable{scroll-behavior:auto}:host._scrollable._no-motion{scroll-behavior:auto}\n"] }]
283
+ }], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], steps: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => UiStep), { isSignal: true }] }] } });
201
284
  /**
202
285
  * ui-step-panels , thin wrapper grouping the {@link UiStepPanel}s below the
203
286
  * horizontal step list.
@@ -294,6 +377,11 @@ class UiStepper {
294
377
  this.linear = input(false, { ...(ngDevMode ? { debugName: "linear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
295
378
  /** Group default: render an inactive panel's content only once it is first activated. */
296
379
  this.lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
380
+ /**
381
+ * Horizontal only: steps keep a minimum width and the step list scrolls instead of
382
+ * squeezing them, following the active step.
383
+ */
384
+ this.scrollable = input(false, { ...(ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
297
385
  /** Animate the active panel transition (reduced-motion always wins). */
298
386
  this.motion = input(true, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
299
387
  /** Icon shown in the marker of completed steps (falls back to the step number). */
@@ -314,6 +402,9 @@ class UiStepper {
314
402
  * progress indicator (see `UiStepList` doc) has none at all: `aria-controls` must not point
315
403
  * at an id that resolves to nothing. */
316
404
  this.panels = contentChildren(forwardRef(() => UiStepPanel), { ...(ngDevMode ? { debugName: "panels" } : /* istanbul ignore next */ {}), descendants: true });
405
+ /** @ignore `scrollable` applies to the horizontal strip only. */
406
+ this.isScrollable = computed(() => this.scrollable() && this.orientation() === 'horizontal', /* @ts-ignore */
407
+ ...(ngDevMode ? [{ debugName: "isScrollable" }] : /* istanbul ignore next */ []));
317
408
  /** @ignore Ordered step values (the progression sequence). */
318
409
  this.orderedValues = computed(() => this.steps().map((s) => s.value()), /* @ts-ignore */
319
410
  ...(ngDevMode ? [{ debugName: "orderedValues" }] : /* istanbul ignore next */ []));
@@ -380,7 +471,7 @@ class UiStepper {
380
471
  this.updateValue(values[index - 1]);
381
472
  }
382
473
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiStepper, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
383
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", 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' ? 'group' : 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 }, { propertyName: "panels", predicate: i0.forwardRef(() => UiStepPanel), descendants: true, isSignal: true }], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:block;width:100%}\n"] }); }
474
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", 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 }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", 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' ? 'group' : 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 }, { propertyName: "panels", predicate: i0.forwardRef(() => UiStepPanel), descendants: true, isSignal: true }], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:block;width:100%}\n"] }); }
384
475
  }
385
476
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiStepper, decorators: [{
386
477
  type: Component,
@@ -395,7 +486,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
395
486
  '[attr.aria-label]': "orientation() === 'vertical' ? (ariaLabel() || null) : null",
396
487
  '[attr.id]': 'id',
397
488
  }, styles: [":host{display:block;width:100%}\n"] }]
398
- }], 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 }] }], panels: [{ type: i0.ContentChildren, args: [forwardRef(() => UiStepPanel), { ...{ descendants: true }, isSignal: true }] }] } });
489
+ }], 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 }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", 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 }] }], panels: [{ type: i0.ContentChildren, args: [forwardRef(() => UiStepPanel), { ...{ descendants: true }, isSignal: true }] }] } });
399
490
 
400
491
  /*
401
492
  * Public API Surface of ui-kit/ui-stepper
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-navigation-ui-stepper.mjs","sources":["../../../projects/ui-kit/navigation/ui-stepper/src/lib/ui-stepper.ts","../../../projects/ui-kit/navigation/ui-stepper/src/lib/ui-step.html","../../../projects/ui-kit/navigation/ui-stepper/src/public-api.ts","../../../projects/ui-kit/navigation/ui-stepper/src/4sh-ui-kit-navigation-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/base/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\n class=\"ui-step-panel-collapse\"\n [class._open]=\"active()\"\n [class._no-motion]=\"!stepper.motion()\"\n >\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 // Horizontal: a real tabpanel, owned by the stepper's tablist (see ui-step.html).\n // Vertical: role=\"region\" instead — matching its header's accordion pattern\n // (ui-accordion-panel uses the same role+aria-labelledby pairing) — a tabpanel\n // with no tablist ancestor is invalid ARIA, and the vertical layout has none.\n '[attr.role]': \"stepper.orientation() === 'vertical' ? 'region' : '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, {\n transform: (v) => (v == null ? undefined : booleanAttribute(v)),\n });\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 // Vertical interleaves each step's panel right under its own header (ui-step-item),\n // so the container cannot be a tablist there — a tab containing its own tabpanel is\n // invalid ARIA. role=\"group\" instead: same accessible name, no tab semantics implied\n // (headers/panels switch to the accordion pattern too, see ui-step.html/ui-step-panel).\n '[attr.role]': \"orientation() === 'vertical' ? 'group' : 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(\n forwardRef(() => UiStep),\n { descendants: true },\n );\n /** @ignore All panels projected under this container — a stepper used as a plain \"steps only\"\n * progress indicator (see `UiStepList` doc) has none at all: `aria-controls` must not point\n * at an id that resolves to nothing. */\n private readonly panels = contentChildren(\n forwardRef(() => UiStepPanel),\n { descendants: true },\n );\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 — `null` when that panel is not actually\n * rendered (see `panels` above), so the step omits `aria-controls` rather than dangle it. */\n panelId(value: UiStepValue | undefined): string | null {\n return this.panels().some((p) => p.value() === value) ? `${this.id}-panel-${value}` : null;\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","<!-- Horizontal: a real tab in the stepper's own tablist (role=\"tab\" + aria-selected).\n Vertical: the panel sits right under its header inside the same ui-step-item, so the\n stepper cannot be a tablist there without a tab containing its own tabpanel — invalid ARIA.\n Vertical drops the tab semantics for the accordion pattern instead (aria-expanded, no role),\n matching how ui-step-panel switches its own role the same way (see below). -->\n<button\n #stepBtn\n type=\"button\"\n [attr.role]=\"stepper.orientation() === 'vertical' ? null : 'tab'\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"stepper.orientation() === 'vertical' ? null : state() === 'active'\"\n [attr.aria-expanded]=\"stepper.orientation() === 'vertical' ? state() === 'active' : null\"\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\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></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,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAGR,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC;;AAGrC,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAc,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;kFAAC;;AAG/D,QAAA,IAAA,CAAA,MAAM,GAAG,QAAQ,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,GAC7B,EAAE,WAAW,EAAE,IAAI,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEzWzB;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-navigation-ui-stepper.mjs","sources":["../../../projects/ui-kit/navigation/ui-stepper/src/lib/ui-stepper.ts","../../../projects/ui-kit/navigation/ui-stepper/src/lib/ui-step.html","../../../projects/ui-kit/navigation/ui-stepper/src/public-api.ts","../../../projects/ui-kit/navigation/ui-stepper/src/4sh-ui-kit-navigation-ui-stepper.ts"],"sourcesContent":["import {\n afterRenderEffect,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n contentChildren,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon } from '@4sh/ui-kit/base/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 '[class._scrollable]': 'stepper.isScrollable()',\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 /** @ignore */\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** @ignore Title text, measured by the scrollable strip (it overflows the marker). */\n private readonly titleEl = viewChild.required<ElementRef<HTMLElement>>('title');\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 * @ignore Horizontal extent of the step, in viewport px: its own box (marker and\n * trailing connector) united with its title, which overflows the marker on both sides.\n */\n extent(): { left: number; right: number } {\n const own = this.host.nativeElement.getBoundingClientRect();\n const title = this.titleEl().nativeElement.getBoundingClientRect();\n return { left: Math.min(own.left, title.left), right: Math.max(own.right, title.right) };\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\n class=\"ui-step-panel-collapse\"\n [class._open]=\"active()\"\n [class._no-motion]=\"!stepper.motion()\"\n >\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 // Horizontal: a real tabpanel, owned by the stepper's tablist (see ui-step.html).\n // Vertical: role=\"region\" instead — matching its header's accordion pattern\n // (ui-accordion-panel uses the same role+aria-labelledby pairing) — a tabpanel\n // with no tablist ancestor is invalid ARIA, and the vertical layout has none.\n '[attr.role]': \"stepper.orientation() === 'vertical' ? 'region' : '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, {\n transform: (v) => (v == null ? undefined : booleanAttribute(v)),\n });\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\"). When the container is `scrollable`, the\n * list itself is the scroll viewport and keeps the active step in view.\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 '[class._scrollable]': 'stepper.isScrollable()',\n '[class._no-motion]': '!stepper.motion()',\n },\n})\nexport class UiStepList {\n /** Accessible name for the step list (recommended). */\n ariaLabel = input<string>();\n\n /** @ignore Parent container (active value + `scrollable` option). */\n protected readonly stepper = inject(UiStepper);\n /** @ignore The scroll viewport, when `scrollable`. */\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** @ignore Steps projected into this list, in DOM order. */\n private readonly steps = contentChildren(UiStep);\n /** @ignore Bumped by the ResizeObserver: a new width may clip the active step. */\n private readonly resizeTick = signal(0);\n /** @ignore Whether the strip has been measured once (the first reveal does not animate). */\n private settled = false;\n /** @ignore Value of the step the strip last brought into view. */\n private shownValue: UiStepValue | undefined;\n\n constructor() {\n // Observe the strip only while it scrolls. The guard also keeps consumers' jsdom\n // unit tests working: jsdom has no ResizeObserver.\n afterRenderEffect((onCleanup) => {\n if (!this.stepper.isScrollable() || typeof ResizeObserver === 'undefined') return;\n const ro = new ResizeObserver(() => this.resizeTick.update((v) => v + 1));\n ro.observe(this.host.nativeElement);\n onCleanup(() => ro.disconnect());\n });\n\n // Keep the active step in view: on activation, on first layout and on resize.\n afterRenderEffect(() => {\n this.resizeTick();\n if (!this.stepper.isScrollable()) return;\n const value = this.stepper.value();\n const step = this.steps().find((s) => s.value() === value);\n if (!step) return;\n // Only a change of step animates: the first reveal and a resize jump straight there.\n const animate = this.settled && this.shownValue !== value;\n if (this.reveal(step, animate)) {\n this.settled = true;\n this.shownValue = value;\n }\n });\n }\n\n /**\n * @ignore Scroll the strip by the minimum that brings the step fully into view, nothing\n * when it already is. Measured against the strip itself: unlike `scrollIntoView()`, it\n * never scrolls the page. Returns `false` while the strip is not laid out yet.\n */\n private reveal(step: UiStep, animate: boolean): boolean {\n const strip = this.host.nativeElement;\n const width = strip.clientWidth;\n if (width === 0) return false;\n const origin = strip.getBoundingClientRect().left + strip.clientLeft;\n const { left, right } = step.extent();\n const start = left - origin;\n const end = right - origin;\n\n let delta = 0;\n if (start < -1) {\n delta = start; // clipped at the start edge: align its start.\n } else if (end > width + 1) {\n delta = Math.min(end - width, start); // clipped at the end: align its end, keep its start.\n }\n if (delta !== 0) {\n // `auto` defers to the CSS `scroll-behavior`: smooth, or instant under reduced motion\n // and `[motion]=\"false\"`.\n strip.scrollTo({ left: strip.scrollLeft + delta, behavior: animate ? 'auto' : 'instant' });\n }\n return true;\n }\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 // Vertical interleaves each step's panel right under its own header (ui-step-item),\n // so the container cannot be a tablist there — a tab containing its own tabpanel is\n // invalid ARIA. role=\"group\" instead: same accessible name, no tab semantics implied\n // (headers/panels switch to the accordion pattern too, see ui-step.html/ui-step-panel).\n '[attr.role]': \"orientation() === 'vertical' ? 'group' : 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 /**\n * Horizontal only: steps keep a minimum width and the step list scrolls instead of\n * squeezing them, following the active step.\n */\n scrollable = 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(\n forwardRef(() => UiStep),\n { descendants: true },\n );\n /** @ignore All panels projected under this container — a stepper used as a plain \"steps only\"\n * progress indicator (see `UiStepList` doc) has none at all: `aria-controls` must not point\n * at an id that resolves to nothing. */\n private readonly panels = contentChildren(\n forwardRef(() => UiStepPanel),\n { descendants: true },\n );\n\n /** @ignore `scrollable` applies to the horizontal strip only. */\n readonly isScrollable = computed(() => this.scrollable() && this.orientation() === 'horizontal');\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 — `null` when that panel is not actually\n * rendered (see `panels` above), so the step omits `aria-controls` rather than dangle it. */\n panelId(value: UiStepValue | undefined): string | null {\n return this.panels().some((p) => p.value() === value) ? `${this.id}-panel-${value}` : null;\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","<!-- Horizontal: a real tab in the stepper's own tablist (role=\"tab\" + aria-selected).\n Vertical: the panel sits right under its header inside the same ui-step-item, so the\n stepper cannot be a tablist there without a tab containing its own tabpanel — invalid ARIA.\n Vertical drops the tab semantics for the accordion pattern instead (aria-expanded, no role),\n matching how ui-step-panel switches its own role the same way (see below). -->\n<button\n #stepBtn\n type=\"button\"\n [attr.role]=\"stepper.orientation() === 'vertical' ? null : 'tab'\"\n class=\"ui-step-header\"\n [id]=\"stepper.stepId(value())\"\n [attr.aria-controls]=\"stepper.panelId(value())\"\n [attr.aria-selected]=\"stepper.orientation() === 'vertical' ? null : state() === 'active'\"\n [attr.aria-expanded]=\"stepper.orientation() === 'vertical' ? state() === 'active' : null\"\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\">\n <span #title class=\"ui-step-title-text\"><ng-content /></span>\n </span>\n</button>\n\n@if (showSeparator()) {\n <span\n class=\"ui-step-separator\"\n aria-hidden=\"true\"\n [class._completed]=\"separatorCompleted()\"\n ></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":";;;;;AAqCA;AACA,IAAI,OAAO,GAAG,CAAC;AAEf;;;;;;;;;;;;;AAaG;MAgBU,MAAM,CAAA;AAfnB,IAAA,WAAA,GAAA;;QAiBE,IAAA,CAAA,KAAK,GAAG,KAAK,CAA0B,SAAS;kFAAC;;QAEjD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAGR,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC;;AAE7B,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC;;AAElD,QAAA,IAAA,CAAA,OAAO,GAAG,SAAS,CAAC,QAAQ,CAA0B,OAAO;oFAAC;;AAGtE,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAc,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;kFAAC;;AAG/D,QAAA,IAAA,CAAA,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CA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