@cngx/ui 0.1.0-rc.8 → 0.3.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 (108) hide show
  1. package/README.md +118 -59
  2. package/action-button/README.md +170 -53
  3. package/breadcrumb/README.md +5 -6
  4. package/collection/README.md +1 -1
  5. package/command-palette/README.md +9 -5
  6. package/data-grid-accordion/README.md +1 -1
  7. package/empty-state/README.md +2 -3
  8. package/feedback/README.md +1 -1
  9. package/fesm2022/cngx-ui-a11y.mjs +13 -23
  10. package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
  11. package/fesm2022/cngx-ui-accordion.mjs +55 -60
  12. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-action-button.mjs +220 -339
  14. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
  16. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  17. package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
  18. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
  19. package/fesm2022/cngx-ui-collection.mjs +28 -34
  20. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  21. package/fesm2022/cngx-ui-command-palette.mjs +29 -51
  22. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
  23. package/fesm2022/cngx-ui-context-menu.mjs +138 -89
  24. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  27. package/fesm2022/cngx-ui-empty-state.mjs +17 -44
  28. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  29. package/fesm2022/cngx-ui-feedback.mjs +648 -495
  30. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  31. package/fesm2022/cngx-ui-layout.mjs +17 -13
  32. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  33. package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
  34. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  35. package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
  36. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  37. package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
  38. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  39. package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
  40. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  41. package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
  42. package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
  43. package/fesm2022/cngx-ui-overlay.mjs +9 -10
  44. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  45. package/fesm2022/cngx-ui-paginator.mjs +212 -188
  46. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  47. package/fesm2022/cngx-ui-sidenav.mjs +872 -721
  48. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  49. package/fesm2022/cngx-ui-skeleton.mjs +17 -19
  50. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  51. package/fesm2022/cngx-ui-speak.mjs +21 -74
  52. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  53. package/fesm2022/cngx-ui-stat-card.mjs +39 -62
  54. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
  55. package/fesm2022/cngx-ui-stepper.mjs +259 -130
  56. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  57. package/fesm2022/cngx-ui-tabs.mjs +148 -50
  58. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  59. package/fesm2022/cngx-ui-timeline.mjs +48 -32
  60. package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
  61. package/fesm2022/cngx-ui-toc.mjs +59 -48
  62. package/fesm2022/cngx-ui-toc.mjs.map +1 -1
  63. package/fesm2022/cngx-ui.mjs +5 -5
  64. package/fesm2022/cngx-ui.mjs.map +1 -1
  65. package/mat-tabs/README.md +57 -19
  66. package/mat-tabs/styles/mat-tabs.css +285 -163
  67. package/nav-rail/README.md +325 -0
  68. package/package.json +37 -8
  69. package/paginator/README.md +10 -0
  70. package/schematics/collection.json +9 -0
  71. package/schematics/ng-add/index.js +9 -0
  72. package/schematics/ng-add/schema.json +96 -0
  73. package/schematics/package.json +3 -0
  74. package/sidenav/README.md +150 -55
  75. package/skeleton/README.md +1 -1
  76. package/speak/README.md +1 -2
  77. package/stepper/README.md +20 -5
  78. package/tabs/README.md +13 -0
  79. package/timeline/README.md +1 -1
  80. package/toc/README.md +1 -1
  81. package/types/cngx-ui-a11y.d.ts +20 -38
  82. package/types/cngx-ui-accordion.d.ts +46 -71
  83. package/types/cngx-ui-action-button.d.ts +113 -151
  84. package/types/cngx-ui-breadcrumb.d.ts +60 -85
  85. package/types/cngx-ui-chart-panel.d.ts +22 -40
  86. package/types/cngx-ui-collection.d.ts +30 -43
  87. package/types/cngx-ui-command-palette.d.ts +40 -64
  88. package/types/cngx-ui-context-menu.d.ts +109 -48
  89. package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
  90. package/types/cngx-ui-empty-state.d.ts +18 -8
  91. package/types/cngx-ui-feedback.d.ts +275 -292
  92. package/types/cngx-ui-layout.d.ts +4 -12
  93. package/types/cngx-ui-mat-accordion.d.ts +5 -5
  94. package/types/cngx-ui-mat-paginator.d.ts +4 -10
  95. package/types/cngx-ui-mat-stepper.d.ts +5 -10
  96. package/types/cngx-ui-mat-tabs.d.ts +86 -89
  97. package/types/cngx-ui-nav-rail.d.ts +416 -0
  98. package/types/cngx-ui-overlay.d.ts +4 -13
  99. package/types/cngx-ui-paginator.d.ts +186 -161
  100. package/types/cngx-ui-sidenav.d.ts +557 -437
  101. package/types/cngx-ui-skeleton.d.ts +7 -13
  102. package/types/cngx-ui-speak.d.ts +40 -24
  103. package/types/cngx-ui-stat-card.d.ts +45 -36
  104. package/types/cngx-ui-stepper.d.ts +205 -84
  105. package/types/cngx-ui-tabs.d.ts +104 -28
  106. package/types/cngx-ui-timeline.d.ts +31 -51
  107. package/types/cngx-ui-toc.d.ts +43 -54
  108. package/types/cngx-ui.d.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"cngx-ui-stepper.mjs","sources":["../../../projects/ui/stepper/stepper-error-line.component.ts","../../../projects/ui/stepper/stepper.component.ts","../../../projects/ui/stepper/stepper.component.html","../../../projects/ui/stepper/progress-bar-stepper.component.ts","../../../projects/ui/stepper/progress-bar-stepper.component.html","../../../projects/ui/stepper/dot-stepper.component.ts","../../../projects/ui/stepper/dot-stepper.component.html","../../../projects/ui/stepper/text-stepper.component.ts","../../../projects/ui/stepper/text-stepper.component.html","../../../projects/ui/stepper/footer/stepper-footer.component.ts","../../../projects/ui/stepper/footer/stepper-footer-regions.ts","../../../projects/ui/stepper/public-api.ts","../../../projects/ui/stepper/cngx-ui-stepper.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation, input } from '@angular/core';\n\nimport { CNGX_STEPPER_GLYPHS } from '@cngx/common/stepper';\n\n/**\n * Shared aggregate error line for the stepper variants and the parent\n * organism's mobile-collapse branches - the single source of the\n * `role=\"status\"` glyph + text markup. Each call site keeps its own\n * BEM block via `[block]` because the shipped CSS keys off the\n * per-variant class names.\n *\n * Always mounted: a live region inserted together with its content is\n * not reliably announced, so call sites bind `[text]` (empty when no\n * error) instead of `@if`-gating the element. While empty the host is\n * clipped out of flow (no flex-gap slot, still in the accessibility\n * tree) and carries no `data-state`.\n *\n * Internal - not exported from the entry's public API; the visible\n * surface stays the per-variant class contract.\n *\n * @internal\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector -- attribute selector by design (keeps the shipped <span> error-line DOM)\n selector: 'span[cngxStepperErrorLine]',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: `\n @if (text()) {\n <span [class]=\"block() + '-glyph'\" aria-hidden=\"true\">{{ glyph }}</span>\n <span [class]=\"block() + '-text'\">{{ text() }}</span>\n }\n `,\n styles: `\n [cngxStepperErrorLine]:not([data-state='error']) {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n `,\n host: {\n role: 'status',\n '[attr.data-state]': \"text() ? 'error' : null\",\n '[class]': 'block()',\n },\n})\nexport class CngxStepperErrorLine {\n /** BEM block class of the owning variant, e.g. `cngx-dot-stepper__error`. */\n readonly block = input.required<string>();\n\n /** Resolved aggregate error phrase; empty string keeps the region quiet. */\n readonly text = input.required<string>();\n\n protected readonly glyph = CNGX_STEPPER_GLYPHS.errorBadge;\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n contentChildren,\n DestroyRef,\n ElementRef,\n inject,\n Injector,\n input,\n type Signal,\n type TemplateRef,\n untracked,\n} from '@angular/core';\nimport { injectDirection } from '@cngx/core';\n\nimport {\n CngxFocusRestore,\n CngxLiveRegion,\n CngxRovingItem,\n CngxRovingTabindex,\n} from '@cngx/common/a11y';\nimport { CngxSwipe } from '@cngx/common/interactive';\nimport {\n CNGX_STEP_PANEL_HOST,\n createStepperDisplayMode,\n createStepperGroupSummary,\n createStepperGroupNavigation,\n createStripDensity,\n injectStepperCollapse,\n CngxStep,\n STEPPER_DEFAULT_DENSITY_BREAKPOINTS,\n CngxStepBadge,\n CngxStepBusySpinner,\n type CngxStepContentContext,\n CngxStepError,\n type CngxStepErrorContext,\n CngxStepGroupHeader,\n CngxStepIndicator,\n type CngxStepLabelContext,\n CngxStepperEmpty,\n CngxStepperPresenter,\n type CngxStepperHeaderNavigation,\n type CngxStepperMobileIndicatorPosition,\n type CngxStepperSkin,\n CngxStepRejection,\n CNGX_STEPPER_GLYPHS,\n CNGX_STEPPER_HOST,\n CngxStepperCount,\n createStepperAccname,\n createStepperAnnouncementBuilders,\n createStepperHostAttrs,\n createStepperPanelRefs,\n createStepperSlotContextBuilders,\n createStepperStateView,\n createStepperStripKeyboardNav,\n createStepperTemplateBindings,\n resolveStepperErrorSummary,\n CngxStepperSwipeNav,\n resolveStepperStatusLabel,\n injectStepperConfig,\n injectStepperI18n,\n type CngxStepNode,\n type CngxStepPanelHost,\n type CngxStepperI18n,\n} from '@cngx/common/stepper';\nimport {\n CNGX_DIRECTIVE_BY_ID_MAP_FACTORY,\n CNGX_ORGANISM_SCROLL_SYNC_FACTORY,\n} from '@cngx/common/tabs';\nimport { coerceBooleanProperty, coerceSignal } from '@cngx/core/utils';\n\nimport { CngxStepperErrorLine } from './stepper-error-line.component';\n\n/**\n * Stepper organism. Composes `CngxStepperPresenter` with\n * `CngxRovingTabindex` and `CngxFocusRestore` via `hostDirectives`;\n * forwards `activeStepIndex`/`linear`/`orientation`/`commitAction`/\n * `commitMode` to the presenter. Material twin lives in\n * `@cngx/ui/mat-stepper`. ARIA attrs are in the `computed()` graph.\n *\n * @category ui/stepper\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/stepper.component.ts\n * @since 0.1.0\n * @relatedTo CngxStepperPresenter, CngxStep, CngxRovingTabindex, CngxFocusRestore, CngxLiveRegion\n * @slot cngxStepIndicator Replaces the per-step number or check glyph in the header.\n * @slot cngxStepBadge Extra marker beside a step label, e.g. an optional or count badge.\n * @slot cngxStepBusySpinner Replaces the busy affordance shown while a step commits.\n * @slot cngxStepError Renders the failure surface on a step whose commit was rejected.\n * @slot cngxStepRejection Renders the reason a rolled-back step was refused.\n * @slot cngxStepGroupHeader Replaces the header a step group renders above its steps.\n * @slot cngxStepperEmpty Renders when no step is projected at all.\n * @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-horizontal/three-step-wizard</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-vertical/vertical-sidebar-layout</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-linear/linear-gating-with-completion-checkboxes</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-mobile-collapse/dots-collapse</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/linear-minimal</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/stripe-status-rich</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/path-chevron</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/pill-segment</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/chips</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/breadcrumb</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/all-skins-side-by-side</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/material-theme-coverage</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/linear-minimal-vertical</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/stripe-status-rich-vertical</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/path-chevron-vertical</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/pill-segment-vertical</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-skins/chips-vertical</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-density/flat-steps-auto-density</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-density/density-across-skins</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-density/distance-weighted-collapse</example-url>\n */\n@Component({\n selector: 'cngx-stepper',\n exportAs: 'cngxStepper',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n NgTemplateOutlet,\n CngxLiveRegion,\n CngxRovingItem,\n CngxStepperCount,\n CngxStepperErrorLine,\n CngxSwipe,\n ],\n styleUrls: ['./styles/stepper-base.css', './stepper.component.css'],\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: CngxStepperPresenter,\n inputs: ['activeStepIndex', 'linear', 'orientation', 'commitAction', 'commitMode'],\n outputs: ['activeStepIndexChange'],\n },\n {\n directive: CngxRovingTabindex,\n inputs: ['orientation'],\n },\n {\n directive: CngxStepperSwipeNav,\n inputs: ['mobileSwipe'],\n },\n { directive: CngxFocusRestore },\n // CngxLiveRegion not composed: its role=\"status\" would clobber the\n // host's role=\"group\". Template mounts a dedicated <span cngxLiveRegion>\n // bound to liveAnnouncement instead.\n ],\n providers: [{ provide: CNGX_STEP_PANEL_HOST, useExisting: CngxStepper }],\n templateUrl: './stepper.component.html',\n host: {\n class: 'cngx-stepper',\n role: 'group',\n '[attr.aria-roledescription]': 'stepperRoleDescription()',\n '[attr.aria-orientation]': 'presenter.orientation()',\n '[attr.data-orientation]': 'presenter.orientation()',\n '[attr.data-strip-density]': 'stripDensity()',\n '[attr.data-density-auto]': \"isDensityAuto() ? '' : null\",\n '[attr.data-skin]': 'hostAttrs.resolvedSkin()',\n '[attr.data-connectors]': \"hostAttrs.resolvedConnectors() ? 'true' : null\",\n '[attr.data-mobile-indicator-position]': 'hostAttrs.resolvedMobileIndicatorPosition()',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n '[attr.aria-labelledby]': 'ariaLabelledBy()',\n '[attr.aria-busy]': 'isCommitting() ? \"true\" : null',\n '[class.cngx-stepper]': 'true',\n '(keydown)': 'handleStripKeyDown($event)',\n },\n})\nexport class CngxStepper implements CngxStepPanelHost {\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n readonly ariaLabelledBy = input<string | undefined>(undefined, { alias: 'aria-labelledby' });\n\n /** Per-instance skin override; flips `[data-skin]`, structure/ARIA unchanged. */\n readonly skin = input<CngxStepperSkin | undefined>(undefined);\n\n /** Opt the classic skin into the connector-rail presentation. Off by default, classic-scoped. */\n readonly connectors = input<boolean | undefined, unknown>(undefined, {\n transform: (v) => (v === undefined ? undefined : coerceBooleanProperty(v)),\n });\n\n /**\n * Per-instance header-navigation policy. `'none'` renders inert label\n * headers (footer-only navigation); `'visited'` keeps them as\n * focusable buttons gated by `linear`. Cascade: Input ?? config ??\n * `'visited'`.\n */\n readonly headerNavigation = input<CngxStepperHeaderNavigation | undefined>(undefined);\n\n /**\n * Opt-in `Step N of M` caption under the mobile `'dots'` row. In\n * the `'text'` collapse branch the count IS the indicator and is\n * always rendered; this input only gates the supplemental caption\n * that sits next to the dot row.\n */\n readonly showStepCount = input<boolean>(false);\n\n readonly mobileIndicatorPosition = input<CngxStepperMobileIndicatorPosition | undefined>(\n undefined,\n );\n\n /** Stepper-host contract; exposed so external `<cngx-stepper-count>` / bridge consumers can `[host]=\"s.presenter\"` via `#s=\"cngxStepper\"`. */\n readonly presenter = inject(CNGX_STEPPER_HOST);\n protected readonly i18n = injectStepperI18n();\n protected readonly config = injectStepperConfig();\n private readonly hostElement: HTMLElement =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly injector = inject(Injector);\n private readonly stepDirectives = contentChildren(CngxStep, { descendants: true });\n\n private readonly indicatorSlot = contentChild(CngxStepIndicator);\n private readonly badgeSlot = contentChild(CngxStepBadge);\n private readonly busySpinnerSlot = contentChild(CngxStepBusySpinner);\n private readonly rejectionSlot = contentChild(CngxStepRejection);\n private readonly errorSlot = contentChild(CngxStepError);\n private readonly groupHeaderSlot = contentChild(CngxStepGroupHeader);\n private readonly emptySlot = contentChild(CngxStepperEmpty);\n\n /** Default-template glyph source - read by `#defaultBadge` / `#defaultRejection` outlets. */\n protected readonly glyphs = CNGX_STEPPER_GLYPHS;\n\n /**\n * Template cascade (indicator/badge/busySpinner/rejection/stepError/\n * groupHeader/empty). Resolution: per-instance slot directive →\n * `CNGX_STEPPER_CONFIG.templates.<key>` → `null` (built-in default).\n */\n protected readonly templates = createStepperTemplateBindings({\n indicatorSlot: this.indicatorSlot,\n badgeSlot: this.badgeSlot,\n busySpinnerSlot: this.busySpinnerSlot,\n rejectionSlot: this.rejectionSlot,\n errorSlot: this.errorSlot,\n groupHeaderSlot: this.groupHeaderSlot,\n emptySlot: this.emptySlot,\n config: this.config,\n });\n\n protected readonly displayMode = createStepperDisplayMode(\n injectStepperCollapse(this.hostElement),\n () => this.config.mobileCollapse,\n );\n\n /**\n * Space-driven density rung for the classic strip, measured off the\n * host element's own width via {@link createStripDensity}. `'full'`\n * under the `'comfortable'` default. Drives `[data-strip-density]` (the\n * strip-overflow rung, distinct from the global `[data-density]` spacing\n * swap so strip degradation never re-scales component spacing).\n */\n protected readonly stripDensity = createStripDensity({\n element: this.hostElement,\n stepCount: () => this.presenter.stepCount(),\n density: () => this.config.density,\n breakpoints: () => this.config.densityBreakpoints ?? STEPPER_DEFAULT_DENSITY_BREAKPOINTS,\n destroyRef: inject(DestroyRef),\n });\n\n /**\n * `true` when `density: 'auto'` is active. Drives `[data-density-auto]`,\n * which makes the strip absorb a too-narrow container by shrinking +\n * ellipsis-truncating labels in flow rather than growing a horizontal\n * scrollbar - so no rung ever overflows, independent of how the px\n * thresholds resolve.\n */\n protected readonly isDensityAuto = computed<boolean>(() => this.config.density === 'auto');\n\n constructor() {\n // Scroll active step into view via the swappable scroll-sync factory.\n inject(CNGX_ORGANISM_SCROLL_SYNC_FACTORY)({\n activeId: this.presenter.activeStepId,\n hostElement: this.hostElement,\n injector: this.injector,\n });\n }\n\n private readonly fallbackLabels = coerceSignal(this.config.fallbackLabels);\n\n /** Stepper landmark role-description with config + i18n cascade. */\n protected readonly stepperRoleDescription = computed<string>(\n () => this.fallbackLabels()?.stepRoleDescription ?? this.i18n().stepperLabel,\n );\n\n /** Resolved skin / connectors / mobile-indicator host attrs (Level-2 cascade helper). */\n protected readonly hostAttrs = createStepperHostAttrs({\n skin: this.skin,\n connectors: this.connectors,\n mobileIndicatorPosition: this.mobileIndicatorPosition,\n config: this.config,\n });\n\n /**\n * Resolved header-navigation policy. Cascade mirrors `skin` /\n * `connectors`: per-instance Input ?? config ?? `'visited'`.\n */\n protected readonly resolvedHeaderNavigation = computed<CngxStepperHeaderNavigation>(\n () => this.headerNavigation() ?? this.config.headerNavigation ?? 'visited',\n );\n\n /**\n * Real error reason for a step, or `null`. A reason is the direct\n * `[error]` string or the first `errorAggregator` label.\n */\n private stepErrorMessageOf(node: CngxStepNode): string | null {\n return node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0] ?? null;\n }\n\n /**\n * Errored steps that carry a real message, rendered as a row BELOW the\n * strip (full width, wraps) rather than inline in a step - a free-text\n * message inside a strip item widens the shrink-to-fit step and tears\n * the row. Empty when no step has a real reason.\n */\n protected readonly stepErrorEntries = computed<\n readonly { id: string; label: string; message: string; context: CngxStepErrorContext }[]\n >(\n () =>\n // The message row sits below the strip, so it has room on every\n // skin - the bare 'errored' state still rides each skin's own\n // indicator / badge / tile.\n this.stepsOnly()\n .filter((node) => node.kind === 'step' && this.stepErrorMessageOf(node) !== null)\n .map((node) => ({\n id: node.id,\n label: node.label(),\n message: this.stepErrorMessageOf(node)!,\n context: this.slotContext.stepErrorContextFor(node),\n })),\n {\n equal: (a, b) =>\n a.length === b.length && a.every((e, i) => e.id === b[i].id && e.message === b[i].message),\n },\n );\n\n /** Mobile-swipe navigation host directive (Level-2 composition). */\n protected readonly swipeNav = inject(CngxStepperSwipeNav, { host: true });\n\n protected statusLabelFor = (node: CngxStepNode): string =>\n resolveStepperStatusLabel(node, this.i18n(), this.slotContext.isActive(node));\n\n /** Mobile-dot `data-state`: unified error (rejection + aggregator) over the raw status. */\n protected mobileDotState(node: CngxStepNode): string {\n return this.stateView.hasError(node) ? 'error' : node.state();\n }\n\n /** Mobile-dot `aria-label`, appending the errored status when the dot has an error. */\n protected mobileDotAriaLabel(node: CngxStepNode, index: number): string {\n const base = this.i18n().selectedStep(node.label(), index + 1, this.stepsOnly().length);\n return this.stateView.hasError(node) ? withErroredStatus(base, this.i18n()) : base;\n }\n protected readonly groupRoleDescription = computed<string>(\n () => this.fallbackLabels()?.groupRoleDescription ?? this.i18n().groupRoleDescription,\n );\n\n /**\n * `true` when a rendered strip group header is folded under the\n * focus-driven policy: `groupCollapse === 'expand-active'`, the group\n * has children, and it does not hold the active step. Drives the\n * `--collapsed` visual de-emphasis. Reads `activeGroupId` reactively,\n * never a one-shot write.\n *\n * The fold is a density optimisation, not a disclosure widget:\n * collapse is focus-driven (no toggle control), so the header carries\n * no `aria-expanded` - an unsupported pairing on `role=\"group\"`\n * (ARIA 1.2) that would also imply a false disclosure affordance.\n * A collapsed header does offer a pointer shortcut into the group (see\n * {@link handleGroupHeaderClick}), but that selects the group's first\n * step rather than expanding it in place, so it stays navigation, not\n * disclosure. Keyboard users reach the same steps via the documented\n * arrow-key contract, which already steps into a collapsed group.\n */\n protected isGroupCollapsed(node: CngxStepNode): boolean {\n if (node.kind !== 'group' || this.config.groupCollapse !== 'expand-active') {\n return false;\n }\n if (node.children.length === 0) {\n return false;\n }\n return this.presenter.activeGroupId() !== node.id;\n }\n\n /**\n * Collapsed-group summary view (`groupCollapseSummary`). Level-2 factory\n * keeps the count/progress/status derivation out of the organism; the\n * template reads `groupSummary.text(node)` / `.showStatus(node)` /\n * `.srText(node)` on collapsed group headers.\n */\n protected readonly groupSummary = createStepperGroupSummary({\n summaryMode: () => this.config.groupCollapseSummary,\n isCollapsed: (node) => this.isGroupCollapsed(node),\n i18n: this.i18n,\n });\n\n /**\n * Collapsed-group pointer-navigation view. `isNavigable` drives the\n * `--navigable` cursor cue; `select` is the header click handler that\n * enters the branch at its first reachable step. Level-2 factory.\n */\n protected readonly groupNavigation = createStepperGroupNavigation({\n presenter: this.presenter,\n isCollapsed: (node) => this.isGroupCollapsed(node),\n navigationEnabled: () => this.resolvedHeaderNavigation() !== 'none',\n });\n\n /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */\n protected readonly resolvedAriaLabel = createStepperAccname({\n ariaLabel: this.ariaLabel,\n ariaLabelledBy: this.ariaLabelledBy,\n config: this.config,\n i18n: this.i18n,\n });\n\n // O(1) labelTemplateFor/contentTemplateFor lookup. Structural equal on\n // id-set + directive identity stops cascade on shape-stable re-emits.\n private readonly stepDirectiveById = inject(CNGX_DIRECTIVE_BY_ID_MAP_FACTORY)({\n source: this.stepDirectives,\n });\n\n readonly flatSteps: Signal<readonly CngxStepNode[]> = this.presenter.flatSteps;\n readonly activeStepIndex: Signal<number> = this.presenter.activeStepIndex;\n readonly activeStepId: Signal<string | null> = this.presenter.activeStepId;\n protected readonly stepsOnly: Signal<readonly CngxStepNode[]> = this.presenter.stepsOnly;\n\n /**\n * Strip projection honouring the focus-driven group-collapse policy.\n * Drives the classic strip `@for`; collapsed groups contribute their\n * header node alone. Sourced from the presenter, never re-derived here\n * (host-token contract). Panels still render every step via\n * {@link stepsOnly}, so collapsed steps keep their panel ids in the DOM.\n */\n protected readonly visibleStripNodes: Signal<readonly CngxStepNode[]> =\n this.presenter.visibleStripNodes;\n\n /**\n * Distance of a step from the active one, published per-step as\n * `--cngx-step-distance` under `density: 'auto'`. Drives the\n * distance-weighted label budget so the step furthest from the active\n * one collapses first. `flatIndex` is `-1` for group nodes, but only\n * step nodes carry the binding. Pure derived data - no layout read.\n */\n protected stepDistanceOf(node: CngxStepNode): number {\n return Math.abs(node.flatIndex - this.activeStepIndex());\n }\n\n /** Per-step predicates + slot-context builders (Level-2 factory). */\n protected readonly slotContext = createStepperSlotContextBuilders({\n presenter: this.presenter,\n stepsOnly: this.stepsOnly,\n i18n: this.i18n,\n isGroupCollapsed: (node) => this.isGroupCollapsed(node),\n });\n\n /**\n * Shared state view - feeds the mobile-collapse `text` / `dots` branches,\n * which otherwise rendered only `Step N of M` (text) or `node.state()`\n * (dots) and dropped the per-step error the desktop branch shows.\n */\n protected readonly stateView = createStepperStateView({\n presenter: this.presenter,\n stepsOnly: this.stepsOnly,\n });\n\n /**\n * Aggregate error phrase for the mobile-collapse text branch. Feeds the\n * real reason (the `[error]` string / aggregator label) through the\n * resolver so the collapsed view shows \"Card declined\", not the generic\n * \"errored\" status word - the strip's per-step row is not on screen in\n * collapsed mode, so this line is the only error surface.\n */\n protected readonly mobileErrorSummary = computed<string>(() =>\n resolveStepperErrorSummary(\n this.stateView,\n this.stepsOnly,\n untracked(() => this.i18n()),\n (node) => this.stepErrorMessageOf(node) ?? undefined,\n ),\n );\n\n /** Commit-in-flight flag - drives the host `aria-busy` binding.*/\n protected readonly isCommitting = computed<boolean>(\n () => this.presenter.commitState.status() === 'pending',\n );\n\n protected stepHeaderId = (node: CngxStepNode): string => `${node.id}-header`;\n protected stepPanelId = (node: CngxStepNode): string => `${node.id}-panel`;\n\n /**\n * Live-region + per-step + group SR phrase builders (Level-2 factory);\n * also owns the descriptor-span id scheme and the gated\n * `aria-describedby` reference the template binds directly.\n */\n protected readonly announcement = createStepperAnnouncementBuilders({\n presenter: this.presenter,\n stepsOnly: this.stepsOnly,\n i18n: this.i18n,\n });\n\n /**\n * Mode-aware panel naming (Level-2 factory): header-less panels\n * self-name and drop the describedby ref instead of dangling.\n */\n protected readonly panelRefs = createStepperPanelRefs({\n displayMode: this.displayMode,\n visibleStripNodes: this.visibleStripNodes,\n headerIdFor: (node) => this.stepHeaderId(node),\n describedByFor: (node) => this.announcement.describedBy(node),\n });\n\n protected handleHeaderClick(node: CngxStepNode): void {\n // Inert headers in 'none' mode: the footer is the sole control.\n if (this.resolvedHeaderNavigation() === 'none') {\n return;\n }\n // No-op when the header is not reachable - disabled, linear-blocked,\n // or a commit is in flight. The reachability gate (which now includes\n // `busy()`) is the single source, so a mid-commit click cannot\n // supersede the pending transition.\n if (node.kind !== 'step' || !this.isHeaderReachable(node)) {\n return;\n }\n this.presenter.select(node.flatIndex);\n }\n\n /**\n * `true` when the step header at `node` may be navigated to right now:\n * structurally reachable (`canNavigateTo` - not disabled, not\n * linear-blocked) AND not while a commit is in flight (`busy()`). The\n * busy gate mirrors the footer nav atoms, which disable on\n * `!canGo* || busy()` - so the strip and the footer lock together\n * during an async transition instead of letting a header click\n * supersede the pending commit. Reads the host contract, never the\n * presenter's private linear-block check.\n */\n protected isHeaderReachable(node: CngxStepNode): boolean {\n return this.presenter.canNavigateTo(node.flatIndex) && !this.presenter.busy();\n }\n\n /**\n * `'true'` on a header that cannot be navigated to, `null` otherwise.\n * Folds two channels into one binding: a `disabled` step and a\n * linear-unreachable step both read as `aria-disabled`, so the gate is\n * announced rather than silently ignored. The header stays focusable\n * per the ARIA composite-widget disabled-focusable rule. In\n * `'visited'` + `linear=false` this is byte-identical to the\n * prior `node.disabled()`-only binding, since `canNavigateTo` returns\n * `true` for every enabled step when linear is off.\n */\n protected headerAriaDisabled(node: CngxStepNode): 'true' | null {\n return this.isHeaderReachable(node) ? null : 'true';\n }\n\n /** Strip-scoped arrow-key handler. See {@link createStepperStripKeyboardNav}. */\n protected readonly handleStripKeyDown = createStepperStripKeyboardNav({\n presenter: this.presenter,\n hostElement: this.hostElement,\n direction: injectDirection(),\n stepButtonIdFor: (id) => `${id}-header`,\n // Defers the post-move focus to afterNextRender so arrow-key\n // navigation across a collapsed group boundary lands on the target\n // button after the strip re-renders its node set.\n injector: this.injector,\n // Off in 'none' mode (inert labels) and while a commit is in flight,\n // so arrow-key navigation locks with the headers + footer during an\n // async transition.\n enabled: () => this.resolvedHeaderNavigation() !== 'none' && !this.presenter.busy(),\n });\n\n /**\n * Clear the presenter's `lastFailedIndex`. Lets template-ref consumers\n * (`#s=\"cngxStepper\"`) dismiss the rejection decoration without injecting\n * {@link CNGX_STEPPER_HOST}.\n */\n clearLastFailed(): void {\n this.presenter.clearLastFailed();\n }\n\n // CngxStepPanelHost contract - O(1) via the pre-built map.\n labelTemplateFor(id: string): TemplateRef<CngxStepLabelContext> | null {\n return this.stepDirectiveById().get(id)?.labelTemplate()?.templateRef ?? null;\n }\n\n contentTemplateFor(id: string): TemplateRef<CngxStepContentContext> | null {\n return this.stepDirectiveById().get(id)?.contentTemplate()?.templateRef ?? null;\n }\n}\n\n/** @internal `\"<base>: Errored\"`, joined through the `stepWithDetail` message. */\nfunction withErroredStatus(base: string, i18n: CngxStepperI18n): string {\n return i18n.stepWithDetail(base, i18n.statusLabels.errored);\n}\n","@if (flatSteps().length === 0) {\n @let emptyTpl = templates.empty();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n} @else if (displayMode() === 'text') {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text\" [live]=\"false\" />\n <span cngxStepperErrorLine block=\"cngx-stepper__mobile-error\" [text]=\"mobileErrorSummary()\"></span>\n\n <ng-container *ngTemplateOutlet=\"stepPanels\"></ng-container>\n} @else if (displayMode() === 'dots') {\n <!--\n In 'none' mode the dots are inert list-item indicators (footer-only\n navigation); otherwise they are roving-tabindex buttons.\n -->\n <div\n class=\"cngx-stepper__mobile-dots\"\n [attr.role]=\"resolvedHeaderNavigation() === 'none' ? 'list' : null\"\n >\n @for (node of stepsOnly(); track node.id; let i = $index) {\n @if (resolvedHeaderNavigation() === 'none') {\n <span\n role=\"listitem\"\n class=\"cngx-stepper__mobile-dot cngx-stepper__mobile-dot--static\"\n [class.cngx-stepper__mobile-dot--active]=\"slotContext.isActive(node)\"\n [class.cngx-stepper__mobile-dot--completed]=\"i < activeStepIndex()\"\n [class.cngx-stepper__mobile-dot--error]=\"stateView.hasError(node)\"\n [id]=\"stepHeaderId(node)\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-label]=\"mobileDotAriaLabel(node, i)\"\n [attr.data-state]=\"mobileDotState(node)\"\n ></span>\n } @else {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__mobile-dot\"\n [class.cngx-stepper__mobile-dot--active]=\"slotContext.isActive(node)\"\n [class.cngx-stepper__mobile-dot--completed]=\"i < activeStepIndex()\"\n [class.cngx-stepper__mobile-dot--error]=\"stateView.hasError(node)\"\n [id]=\"stepHeaderId(node)\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-controls]=\"stepPanelId(node)\"\n [attr.aria-label]=\"mobileDotAriaLabel(node, i)\"\n [attr.data-state]=\"mobileDotState(node)\"\n [attr.aria-disabled]=\"headerAriaDisabled(node)\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n ></button>\n }\n }\n </div>\n <span cngxStepperErrorLine block=\"cngx-stepper__mobile-error\" [text]=\"mobileErrorSummary()\"></span>\n @if (showStepCount()) {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text cngx-stepper__mobile-text--caption\" [live]=\"false\" />\n }\n\n <ng-container *ngTemplateOutlet=\"stepPanels\"></ng-container>\n} @else {\n <!--\n In 'none' mode the inert headers are list items, so the strip is a\n semantic list; otherwise it is a presentational container of\n roving-tabindex buttons.\n -->\n <div\n class=\"cngx-stepper__strip\"\n [attr.role]=\"resolvedHeaderNavigation() === 'none' ? 'list' : 'presentation'\"\n >\n @for (node of visibleStripNodes(); track node.id) {\n @if (node.kind === 'group') {\n <div\n class=\"cngx-stepper__group-header\"\n role=\"group\"\n [attr.aria-roledescription]=\"groupRoleDescription()\"\n [class.cngx-stepper__group-header--collapsed]=\"isGroupCollapsed(node)\"\n [class.cngx-stepper__group-header--active]=\"groupNavigation.isActive(node)\"\n [class.cngx-stepper__group-header--navigable]=\"groupNavigation.isNavigable(node)\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-describedby]=\"announcement.describedBy(node)\"\n (click)=\"groupNavigation.select(node)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n templates.groupHeader() ?? defaultGroupHeader;\n context: slotContext.groupHeaderContextFor(node)\n \"\n ></ng-container>\n @if (groupSummary.text(node); as summary) {\n <span class=\"cngx-stepper__group-summary\" [attr.data-state]=\"node.state()\" aria-hidden=\"true\">{{ summary }}</span>\n } @else if (groupSummary.showStatus(node)) {\n <span\n class=\"cngx-stepper__group-summary cngx-stepper__group-summary--status\"\n [attr.data-state]=\"node.state()\"\n aria-hidden=\"true\"\n ></span>\n }\n @if (groupSummary.srText(node); as srSummary) {\n <span class=\"cngx-sr-only\">{{ srSummary }}</span>\n }\n <span class=\"cngx-sr-only\" [id]=\"announcement.descriptorId(node)\">{{ announcement.groupStatusPhrase(node) }}</span>\n </div>\n } @else if (resolvedHeaderNavigation() === 'none') {\n <!--\n Inert label header (headerNavigation 'none'): pure step\n indicator, no <button>, no cngxRovingItem, no (click), no\n tabindex. Footer is the sole navigation control. aria-current\n + status retained (Pillar 2).\n -->\n <span\n class=\"cngx-stepper__step cngx-stepper__step--static\"\n role=\"listitem\"\n [class.cngx-stepper__step--rejected]=\"slotContext.showRejection(node)\"\n [style.--cngx-step-distance]=\"isDensityAuto() ? stepDistanceOf(node) : null\"\n [id]=\"stepHeaderId(node)\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"slotContext.isStepBusy(node) ? 'true' : null\"\n [attr.aria-describedby]=\"announcement.describedBy(node)\"\n >\n <ng-container *ngTemplateOutlet=\"stepHeaderInner; context: { $implicit: node }\"></ng-container>\n </span>\n } @else {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__step\"\n [class.cngx-stepper__step--rejected]=\"slotContext.showRejection(node)\"\n [style.--cngx-step-distance]=\"isDensityAuto() ? stepDistanceOf(node) : null\"\n [id]=\"stepHeaderId(node)\"\n [attr.tabindex]=\"slotContext.isActive(node) ? '0' : '-1'\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-controls]=\"stepPanelId(node)\"\n [attr.aria-disabled]=\"headerAriaDisabled(node)\"\n [attr.aria-busy]=\"slotContext.isStepBusy(node) ? 'true' : null\"\n [attr.aria-describedby]=\"announcement.describedBy(node)\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n >\n <ng-container *ngTemplateOutlet=\"stepHeaderInner; context: { $implicit: node }\"></ng-container>\n </button>\n }\n }\n </div>\n\n <!--\n Error messages live on their own row BELOW the strip, not inline in a\n step. A free-text message inside a horizontal/column strip item widens\n the shrink-to-fit step and tears the row; below the strip it has full\n width and wraps. Only steps with a real reason ([error] string or an\n aggregator label) appear - the bare 'errored' state is already carried\n by the indicator + badge, so it adds no text-only noise here.\n -->\n @if (stepErrorEntries().length) {\n <div class=\"cngx-stepper__error-summary\">\n @for (entry of stepErrorEntries(); track entry.id) {\n <p class=\"cngx-stepper__error-summary-item\" data-state=\"error\">\n @if (templates.stepError(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: entry.context\"></ng-container>\n } @else {\n <span class=\"cngx-stepper__error-summary-step\">{{ entry.label }}</span>\n <span class=\"cngx-stepper__error-summary-text\">{{ entry.message }}</span>\n }\n </p>\n }\n </div>\n }\n\n <ng-container *ngTemplateOutlet=\"stepPanels\"></ng-container>\n}\n\n<!--\n Footer slot - placed OUTSIDE the display-mode @if/@else so it projects\n at view-creation time (content children register after the empty branch\n is active, so an in-branch <ng-content> would be discarded and never\n re-project). Renders after the panels in every mode.\n-->\n<ng-content select=\"cngx-stepper-footer, [cngxStepperFooter]\"></ng-content>\n\n<span class=\"cngx-stepper__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcement.liveAnnouncement()\n}}</span>\n\n<!--\n Shared panel block for all three display modes (Pillar 3 - one\n source instead of three drifting copies). Mode differences are\n derived, not duplicated: panelLabelledBy/panelAriaLabel/\n panelDescribedBy resolve the naming per mode (text has no header\n element, classic only renders headers the group-collapse policy\n exposes, dots always renders one per step); the collapsed branches\n additionally mount the descriptor span inside the panel because the\n classic descriptor spans live inside the strip headers. Swipe is\n composed once and disabled in classic - the directive is inert\n with [enabled]=false.\n-->\n<ng-template #stepPanels>\n <div\n class=\"cngx-stepper__panels\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"displayMode() !== 'classic' && swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"panelRefs.labelledBy(node)\"\n [attr.aria-label]=\"panelRefs.ariaLabel(node)\"\n [attr.aria-describedby]=\"panelRefs.describedBy(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @if (displayMode() !== 'classic') {\n <span class=\"cngx-sr-only\" [id]=\"announcement.descriptorId(node)\">{{ announcement.statusPhrase(node) }}</span>\n }\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n</ng-template>\n\n<!--\n Shared strip-header body. Rendered identically by the focusable\n <button> ('visited') and the inert <span> ('none') branches so the\n indicator / badge / label / status / rejection / busy markup has a\n single source (Pillar 3). ngTemplateOutlet projects inline - no\n wrapper element is added, so the 'visited' DOM is unchanged.\n-->\n<ng-template #stepHeaderInner let-node>\n <span class=\"cngx-stepper__indicator\" aria-hidden=\"true\" [attr.data-state]=\"node.state()\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.indicator() ?? defaultIndicator;\n context: slotContext.indicatorContextFor(node)\n \"\n ></ng-container>\n @if (slotContext.showErrorBadge(node)) {\n <span class=\"cngx-stepper__badge\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.badge() ?? defaultBadge;\n context: slotContext.badgeContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n </span>\n <span class=\"cngx-stepper__label\">\n @let labelTpl = labelTemplateFor(node.id);\n @if (labelTpl) {\n <ng-container\n *ngTemplateOutlet=\"labelTpl; context: slotContext.stepLabelContextFor(node)\"\n ></ng-container>\n } @else {\n {{ node.label() }}\n }\n </span>\n <span class=\"cngx-stepper__status-pill\" aria-hidden=\"true\">{{ statusLabelFor(node) }}</span>\n @if (slotContext.showRejection(node)) {\n <span class=\"cngx-stepper__rejection-icon\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.rejection() ?? defaultRejection;\n context: slotContext.rejectionContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n @if (slotContext.isStepBusy(node)) {\n <span class=\"cngx-stepper__busy-spinner\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.busySpinner() ?? defaultBusySpinner;\n context: slotContext.busySpinnerContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n <span class=\"cngx-sr-only\" [id]=\"announcement.descriptorId(node)\">{{ announcement.headerStatusPhrase(node) }}</span>\n</ng-template>\n\n<ng-template #defaultIndicator let-position>\n <span class=\"cngx-stepper__indicator-glyph\">{{ position }}</span>\n</ng-template>\n<ng-template #defaultBadge>{{ glyphs.errorBadge }}</ng-template>\n<ng-template #defaultBusySpinner></ng-template>\n<ng-template #defaultRejection>{{ glyphs.rejectionIcon }}</ng-template>\n<ng-template #defaultGroupHeader let-group=\"group\">\n <span class=\"cngx-stepper__group-label\">{{ group.label() }}</span>\n</ng-template>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n inject,\n input,\n type TemplateRef,\n untracked,\n} from '@angular/core';\n\nimport {\n CngxStepperCount,\n CngxStepperEmpty,\n CngxStepperPresenter,\n CNGX_STEPPER_HOST,\n createStepperAccname,\n createStepperStateView,\n injectStepperConfig,\n injectStepperI18n,\n resolveStepperErrorSummary,\n type CngxStepNode,\n} from '@cngx/common/stepper';\nimport { coerceSignal } from '@cngx/core/utils';\nimport { CngxProgress } from '@cngx/ui/feedback';\n\nimport { CngxStepperErrorLine } from './stepper-error-line.component';\n\n/**\n * Progress-Bar stepper variant. Thin Level-4 organism composing\n * `CngxStepperPresenter` via `hostDirectives` and rendering the\n * existing `<cngx-progress>` primitive as the visual bar instead of\n * reinventing `<div role=\"progressbar\">`. Material consumers inherit\n * Material progress styling through `CngxProgress` automatically.\n *\n * `completedPercent()` is `computed` from `presenter.activeStepIndex()`\n * and the count of step nodes in `presenter.flatSteps()`. Optional\n * `[showStepCount]` adds a `Step N of M` caption sourced from\n * `CngxStepperI18n.textStepperFormat`. Accname and\n * `aria-roledescription` resolve through the same config + i18n\n * cascades as `<cngx-stepper>`; a step-less flow renders the\n * `CNGX_STEPPER_CONFIG` empty-template cascade instead of the bar.\n *\n * @category ui/stepper\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/progress-bar-stepper.component.ts\n * @since 0.1.0\n * @relatedTo CngxStepperPresenter, CngxProgress, CngxDotStepper, CngxTextStepper\n * @slot cngxStepperEmpty Renders when no step is projected at all.\n * @playground Material theme coverage across variants ./examples/material-theme-coverage/variants-coverage.component.ts\n * <example-url>http://localhost:4200/#/ui/stepper/progress-bar/onboarding-flow</example-url>\n */\n@Component({\n selector: 'cngx-progress-bar-stepper',\n exportAs: 'cngxProgressBarStepper',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxProgress, CngxStepperCount, CngxStepperErrorLine, NgTemplateOutlet],\n hostDirectives: [\n {\n directive: CngxStepperPresenter,\n inputs: ['activeStepIndex', 'linear'],\n outputs: ['activeStepIndexChange'],\n },\n ],\n templateUrl: './progress-bar-stepper.component.html',\n styleUrl: './progress-bar-stepper.component.css',\n host: {\n class: 'cngx-progress-bar-stepper',\n role: 'group',\n '[attr.aria-roledescription]': 'stepperRoleDescription()',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n '[attr.aria-labelledby]': 'ariaLabelledBy()',\n '[attr.data-state]': 'stateView.hasAnyError() ? \"error\" : null',\n '[attr.aria-invalid]': 'stateView.hasAnyError() ? \"true\" : null',\n },\n})\nexport class CngxProgressBarStepper {\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n readonly ariaLabelledBy = input<string | undefined>(undefined, { alias: 'aria-labelledby' });\n\n /** Render a `Step N of M` caption below the bar. Off by default. */\n readonly showStepCount = input<boolean>(false);\n\n protected readonly presenter = inject(CNGX_STEPPER_HOST);\n protected readonly i18n = injectStepperI18n();\n protected readonly config = injectStepperConfig();\n\n /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */\n protected readonly resolvedAriaLabel = createStepperAccname({\n ariaLabel: this.ariaLabel,\n ariaLabelledBy: this.ariaLabelledBy,\n config: this.config,\n i18n: this.i18n,\n });\n\n private readonly fallbackLabels = coerceSignal(this.config.fallbackLabels);\n\n /** Landmark role-description with config + i18n cascade, mirroring `<cngx-stepper>`. */\n protected readonly stepperRoleDescription = computed<string>(\n () => this.fallbackLabels()?.stepRoleDescription ?? this.i18n().stepperLabel,\n );\n\n private readonly emptySlot = contentChild(CngxStepperEmpty);\n\n /**\n * Empty-state cascade mirroring `<cngx-stepper>`: per-instance\n * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.\n * Gates the whole bar so a step-less flow shows the placeholder\n * instead of a full bar captioned `Step 0 of 0`.\n */\n protected readonly resolvedEmptyTemplate = computed<TemplateRef<void> | null>(\n () => this.emptySlot()?.templateRef ?? this.config.templates?.empty ?? null,\n );\n\n /** Shared per-step/aggregate state derivations - the single error source. */\n protected readonly stateView = createStepperStateView({\n presenter: this.presenter,\n stepsOnly: this.presenter.stepsOnly,\n });\n\n /** Total step count (group nodes excluded). */\n protected readonly totalSteps = computed<number>(() => this.presenter.stepsOnly().length);\n\n /** 1-based active position used in the caption format. */\n protected readonly currentStep = computed<number>(() => {\n const total = this.totalSteps();\n if (total === 0) {\n return 0;\n }\n return Math.min(this.presenter.activeStepIndex() + 1, total);\n });\n\n /**\n * Completion percentage 0-100. `(active / max(total - 1, 1)) * 100`\n * so the final step renders the bar full.\n */\n protected readonly completedPercent = computed<number>(() => {\n const total = this.totalSteps();\n if (total === 0) {\n return 0;\n }\n const denominator = Math.max(total - 1, 1);\n return Math.max(0, Math.min(100, (this.presenter.activeStepIndex() / denominator) * 100));\n });\n\n protected readonly captionText = computed<string>(() =>\n this.i18n().textStepperFormat(this.currentStep(), this.totalSteps()),\n );\n\n /**\n * Aggregate error caption. A single errored step names itself\n * (`\"Payment: Errored\"`), several collapse to the i18n count phrase.\n * Read only when `stateView.hasAnyError()` gates the template.\n */\n protected readonly errorText = computed<string>(() =>\n resolveStepperErrorSummary(\n this.stateView,\n this.presenter.stepsOnly,\n untracked(() => this.i18n()),\n (node: CngxStepNode) =>\n node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0],\n ),\n );\n}\n","@if (totalSteps() === 0) {\n @let emptyTpl = resolvedEmptyTemplate();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n} @else {\n <cngx-progress\n class=\"cngx-progress-bar-stepper__bar\"\n [progress]=\"completedPercent()\"\n [label]=\"captionText()\"\n ></cngx-progress>\n @if (showStepCount()) {\n <cngx-stepper-count class=\"cngx-progress-bar-stepper__caption\" [live]=\"false\" />\n }\n}\n<!-- Outside the zero-step gate: the status region must pre-exist its content to announce. -->\n<span cngxStepperErrorLine block=\"cngx-progress-bar-stepper__error\" [text]=\"errorText()\"></span>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n inject,\n input,\n type Signal,\n type TemplateRef,\n untracked,\n} from '@angular/core';\n\nimport {\n CngxDotStepperDot,\n type CngxDotStepperDotContext,\n CngxStepperEmpty,\n CngxStepperPresenter,\n CngxStepperSwipeNav,\n CNGX_STEPPER_HOST,\n createStepperAccname,\n createStepperStateView,\n injectStepperConfig,\n injectStepperI18n,\n resolveStepperErrorSummary,\n type CngxStepNode,\n} from '@cngx/common/stepper';\nimport { CngxSwipe } from '@cngx/common/interactive';\nimport { injectDirection, resolveInlineStep } from '@cngx/core';\n\nimport { CngxStepperErrorLine } from './stepper-error-line.component';\n\n/**\n * Dot stepper variant. Mobile-first sequential-flow indicator. Renders\n * one labelled `<span role=\"img\">` per step (a name-permitting role, so\n * each dot announces \"Step N of M: label\") inside a\n * `<div role=\"group\" aria-roledescription=\"step indicator\">`. The active\n * dot carries `aria-current=\"step\"` per the W3C APG step-indicator\n * pattern (NOT `role=\"tablist\"` / `role=\"tab\"` - those are reserved\n * for parallel content panels, not sequential flow).\n *\n * Tap-to-select is intentionally NOT wired on individual dots: under\n * the APG pattern each dot is a label, not a button, and attaching\n * `(click)` to `role=\"img\"` conflates two ARIA contracts. Navigation\n * is offered uniformly via three modalities owned by the host element:\n * arrow / Home / End keys, the composed `CngxStepperSwipeNav` dot-row\n * gesture, and the two-way `[(activeStepIndex)]` binding for\n * external buttons. Consumers wanting per-dot tap-to-jump compose the\n * parent `<cngx-stepper>` (whose mobile-collapse `dots` branch\n * renders each dot as a `<button>`).\n *\n * Theming flows through new `--cngx-dot-step-*` custom properties whose\n * defaults cascade through `var(--cngx-step-active-fill, ...)`, so the\n * Phase A active-fill chain reaches the dot variant without duplication.\n *\n * @category ui/stepper\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/dot-stepper.component.ts\n * @since 0.1.0\n * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxTextStepper\n * @slot cngxDotStepperDot Replaces one dot; gets its index and active state.\n * @slot cngxStepperEmpty Renders when no step is projected at all.\n * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/mobile-carousel</example-url>\n */\n@Component({\n selector: 'cngx-dot-stepper',\n exportAs: 'cngxDotStepper',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NgTemplateOutlet, CngxStepperErrorLine, CngxSwipe],\n hostDirectives: [\n {\n directive: CngxStepperPresenter,\n inputs: ['activeStepIndex', 'linear'],\n outputs: ['activeStepIndexChange'],\n },\n {\n directive: CngxStepperSwipeNav,\n inputs: ['mobileSwipe'],\n },\n ],\n templateUrl: './dot-stepper.component.html',\n styleUrl: './dot-stepper.component.css',\n host: {\n class: 'cngx-dot-stepper',\n role: 'group',\n // Not tab-reachable while step-less: an empty focus stop that only\n // announces the accname over no content is noise, not navigation.\n '[attr.tabindex]': \"stepNodes().length === 0 ? null : '0'\",\n '[attr.aria-roledescription]': 'i18n().stepIndicatorRoleDescription',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n '[attr.aria-labelledby]': 'ariaLabelledBy()',\n '[attr.aria-invalid]': 'stateView.hasAnyError() ? \"true\" : null',\n '(keydown)': 'handleKeyDown($event)',\n },\n})\nexport class CngxDotStepper {\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n readonly ariaLabelledBy = input<string | undefined>(undefined, { alias: 'aria-labelledby' });\n\n protected readonly presenter = inject(CNGX_STEPPER_HOST);\n protected readonly i18n = injectStepperI18n();\n protected readonly config = injectStepperConfig();\n\n /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */\n protected readonly resolvedAriaLabel = createStepperAccname({\n ariaLabel: this.ariaLabel,\n ariaLabelledBy: this.ariaLabelledBy,\n config: this.config,\n i18n: this.i18n,\n });\n /** Mobile-swipe routing surface composed via hostDirectives. */\n protected readonly swipeNav = inject(CngxStepperSwipeNav, { host: true });\n\n /** Document writing direction - flips the inline next/previous arrows under `rtl` (APG). */\n private readonly direction = injectDirection();\n\n protected readonly stepNodes: Signal<readonly CngxStepNode[]> = this.presenter.stepsOnly;\n protected readonly activeIndex = computed<number>(() => this.presenter.activeStepIndex());\n\n /** Shared per-step/aggregate state derivations - the single error source. */\n protected readonly stateView = createStepperStateView({\n presenter: this.presenter,\n stepsOnly: this.stepNodes,\n });\n\n /**\n * Aggregate error line. The dot row only colours the errored dot, so\n * the real reason (the `[error]` string / aggregator label) needs a\n * text surface; this is it. Falls back to the count phrase for\n * multiple errors.\n */\n protected readonly errorText = computed<string>(() =>\n resolveStepperErrorSummary(\n this.stateView,\n this.stepNodes,\n untracked(() => this.i18n()),\n (node) => node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0],\n ),\n );\n\n private readonly dotSlot = contentChild(CngxDotStepperDot);\n private readonly emptySlot = contentChild(CngxStepperEmpty);\n\n /**\n * Empty-state cascade mirroring `<cngx-stepper>`: per-instance\n * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.\n * Gates the dot row so a step-less flow shows the placeholder\n * instead of an empty group.\n */\n protected readonly resolvedEmptyTemplate = computed<TemplateRef<void> | null>(\n () => this.emptySlot()?.templateRef ?? this.config.templates?.empty ?? null,\n );\n\n /**\n * Resolved dot-body template cascade: per-instance `*cngxDotStepperDot`\n * directive > `CNGX_STEPPER_CONFIG.templates.dotStepperDot` > `null`\n * (built-in empty body). Pillar 1 - resolution is a `computed`, not\n * manual sync.\n */\n protected readonly resolvedDotTemplate = computed<TemplateRef<CngxDotStepperDotContext> | null>(\n () => this.dotSlot()?.templateRef ?? this.config.templates?.dotStepperDot ?? null,\n );\n\n protected isActive(node: CngxStepNode, index: number): boolean {\n return index === this.activeIndex() && node.kind === 'step';\n }\n\n protected isCompleted(index: number): boolean {\n return index < this.activeIndex();\n }\n\n /**\n * Resolved `data-state` for the dot: `'error'` whenever the unified error\n * view fires (covers commit rejection and the error aggregator, not just a\n * literal `state === 'error'`), otherwise the raw step status.\n */\n protected dotState(node: CngxStepNode): string {\n return this.stateView.hasError(node) ? 'error' : node.state();\n }\n\n protected ariaLabelFor(node: CngxStepNode, index: number): string {\n const i18n = this.i18n();\n const base = i18n.selectedStep(node.label(), index + 1, this.stepNodes().length);\n return this.stateView.hasError(node)\n ? i18n.stepWithDetail(base, i18n.statusLabels.errored)\n : base;\n }\n\n /** Build the slot context for `*cngxDotStepperDot`. */\n protected dotContextFor(node: CngxStepNode, index: number): CngxDotStepperDotContext {\n return {\n $implicit: index,\n index,\n node,\n active: this.isActive(node, index),\n completed: this.isCompleted(index),\n };\n }\n\n protected handleKeyDown(event: KeyboardEvent): void {\n // Linear mode is enforced by the presenter, not by silencing the\n // keyboard. `selectNext` routes through `presenter.select()` which\n // refuses jumps over incomplete steps; `selectPrevious` is the\n // ungated direct back-move. `Home` is always a back-move; `End`\n // routes through `select()` and is gated when intermediate steps\n // are incomplete. Disabling the whole handler in linear mode\n // killed back-nav too, which is the inverse of the W3C APG\n // step-indicator pattern (read-back should always be reachable).\n // The inline pair (ArrowLeft/ArrowRight) flips under rtl via the kernel;\n // the block pair (ArrowUp/ArrowDown) and Home/End never flip.\n const inlineStep = resolveInlineStep(event.key, this.direction());\n const isNext = inlineStep === 1 || event.key === 'ArrowDown';\n const isPrev = inlineStep === -1 || event.key === 'ArrowUp';\n if (isNext) {\n event.preventDefault();\n this.presenter.selectNext();\n } else if (isPrev) {\n event.preventDefault();\n this.presenter.selectPrevious();\n } else if (event.key === 'Home') {\n event.preventDefault();\n this.presenter.select(0);\n } else if (event.key === 'End') {\n event.preventDefault();\n this.presenter.select(this.stepNodes().length - 1);\n }\n }\n}\n","@if (stepNodes().length === 0) {\n @let emptyTpl = resolvedEmptyTemplate();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n} @else {\n <div\n class=\"cngx-dot-stepper__row\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepNodes(); track node.id; let i = $index) {\n @let dotTpl = resolvedDotTemplate();\n <span\n class=\"cngx-dot-stepper__dot\"\n role=\"img\"\n [class.cngx-dot-stepper__dot--active]=\"isActive(node, i)\"\n [class.cngx-dot-stepper__dot--completed]=\"i < activeIndex()\"\n [class.cngx-dot-stepper__dot--error]=\"stateView.hasError(node)\"\n [attr.aria-current]=\"isActive(node, i) ? 'step' : null\"\n [attr.aria-label]=\"ariaLabelFor(node, i)\"\n [attr.data-state]=\"dotState(node)\"\n >\n @if (dotTpl) {\n <ng-container *ngTemplateOutlet=\"dotTpl; context: dotContextFor(node, i)\" />\n }\n </span>\n }\n </div>\n}\n\n<span cngxStepperErrorLine block=\"cngx-dot-stepper__error\" [text]=\"errorText()\"></span>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n inject,\n input,\n type Signal,\n type TemplateRef,\n untracked,\n} from '@angular/core';\n\nimport {\n CngxStepperEmpty,\n CngxStepperPresenter,\n CNGX_STEPPER_HOST,\n createStepperStateView,\n injectStepperConfig,\n injectStepperI18n,\n resolveStepperErrorSummary,\n type CngxStepNode,\n} from '@cngx/common/stepper';\n\nimport { CngxStepperErrorLine } from './stepper-error-line.component';\n\n/**\n * Text stepper variant. Smallest possible stepper: an always-mounted\n * `<span aria-live=\"polite\">` driven by the presenter (empty while no\n * step is projected, so a live load never announces `Step 0 of 0`).\n * Renders `Step N of M` by default (sourced from\n * `CngxStepperI18n.textStepperFormat`); optional `[showCurrentLabel]`\n * appends the active step's label next to the count. A step-less flow\n * renders the `CNGX_STEPPER_CONFIG` empty-template cascade instead.\n * Material consumers inherit surrounding text styling via CSS\n * inheritance, no theme bridge required.\n *\n * @category ui/stepper\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/text-stepper.component.ts\n * @since 0.1.0\n * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxDotStepper\n * @slot cngxStepperEmpty Renders when no step is projected at all.\n * <example-url>http://localhost:4200/#/ui/stepper/text-stepper/inline-progress</example-url>\n */\n@Component({\n selector: 'cngx-text-stepper',\n exportAs: 'cngxTextStepper',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NgTemplateOutlet, CngxStepperErrorLine],\n hostDirectives: [\n {\n directive: CngxStepperPresenter,\n inputs: ['activeStepIndex', 'linear'],\n outputs: ['activeStepIndexChange'],\n },\n ],\n templateUrl: './text-stepper.component.html',\n styleUrl: './text-stepper.component.css',\n host: {\n class: 'cngx-text-stepper',\n '[attr.aria-invalid]': 'stateView.hasAnyError() ? \"true\" : null',\n },\n})\nexport class CngxTextStepper {\n /** Append the active step's label to the count text. Off by default. */\n readonly showCurrentLabel = input<boolean>(false);\n\n protected readonly presenter = inject(CNGX_STEPPER_HOST);\n protected readonly i18n = injectStepperI18n();\n protected readonly config = injectStepperConfig();\n\n private readonly emptySlot = contentChild(CngxStepperEmpty);\n\n /**\n * Empty-state cascade mirroring `<cngx-stepper>`: per-instance\n * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.\n * Rendered next to the (empty) live span so a step-less flow shows\n * the placeholder instead of a bare `Step 0 of 0` count.\n */\n protected readonly resolvedEmptyTemplate = computed<TemplateRef<void> | null>(\n () => this.emptySlot()?.templateRef ?? this.config.templates?.empty ?? null,\n );\n\n protected readonly stepNodes: Signal<readonly CngxStepNode[]> = this.presenter.stepsOnly;\n\n /** Shared per-step/aggregate state derivations - the single error source. */\n protected readonly stateView = createStepperStateView({\n presenter: this.presenter,\n stepsOnly: this.stepNodes,\n });\n\n protected readonly totalSteps = computed<number>(() => this.stepNodes().length);\n\n protected readonly currentStep = computed<number>(() => {\n const total = this.totalSteps();\n if (total === 0) {\n return 0;\n }\n return Math.min(this.presenter.activeStepIndex() + 1, total);\n });\n\n protected readonly stepText = computed<string>(() => {\n const total = this.totalSteps();\n // Empty at zero steps: the always-mounted live span must not\n // announce a nonsensical 'Step 0 of 0'.\n if (total === 0) {\n return '';\n }\n // Live region: copy and the step label (which a consumer may translate)\n // are read untracked so a language switch does not re-speak the\n // caption; the next step change speaks the new language.\n const current = this.currentStep();\n const base = untracked(() => this.i18n().textStepperFormat(current, total));\n if (!this.showCurrentLabel()) {\n return base;\n }\n const idx = this.presenter.activeStepIndex();\n const node = this.stepNodes()[idx];\n if (!node) {\n return base;\n }\n return untracked(() => this.i18n().stepWithDetail(base, node.label()));\n });\n\n /**\n * Aggregate error sub-line text. A single errored step names itself\n * (`\"Payment: Errored\"`), several collapse to the i18n count phrase\n * (`\"2 errors\"`). Empty when no step errored - the template gates on\n * `stateView.hasAnyError()`, so this is only read when non-empty.\n */\n protected readonly errorText = computed<string>(() =>\n resolveStepperErrorSummary(\n this.stateView,\n this.stepNodes,\n untracked(() => this.i18n()),\n (node: CngxStepNode) =>\n node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0],\n ),\n );\n}\n","<!--\n Count span and error line stay mounted in every state: a live region\n inserted together with its content is not reliably announced, so\n zero-step / no-error states empty the text instead of removing the\n element. Both are clipped out of flow while empty.\n-->\n<span\n class=\"cngx-text-stepper__text\"\n aria-live=\"polite\"\n [attr.data-empty]=\"stepText() ? null : ''\"\n >{{ stepText() }}</span\n>\n@if (totalSteps() === 0) {\n @let emptyTpl = resolvedEmptyTemplate();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n}\n<span cngxStepperErrorLine block=\"cngx-text-stepper__error\" [text]=\"errorText()\"></span>\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {\n CNGX_STEPPER_HOST,\n createStepperHostProxy,\n type CngxStepperHost,\n} from '@cngx/common/stepper';\n\n/**\n * Navigation action-bar molecule for the stepper family. \\\n * Lays out three regions - **start** (Back), **center** (progress hint), **end** (Continue / Finish). \\\n * Wires the {@link CNGX_STEPPER_HOST} for any nav atoms a consumer drops inside.\n *\n * **Resolves its host like `CngxStepperCount`:** \\\n * An explicit `[host]` input for placement outside the stepper tree, falling back to the ambient\n * host injected from an ancestor `<cngx-stepper>` / `<cngx-mat-stepper>`\n * (`skipSelf`, so the footer reads the real presenter rather than its own\n * re-provided proxy). \\\n * It then re-provides `CNGX_STEPPER_HOST` as a live\n * {@link createStepperHostProxy} over the resolved host, so child\n * `[cngxStepperPrevious]` / `[cngxStepperNext]` atoms resolve it\n * ambiently whether the footer is nested or used standalone with\n * `[host]`. \\\n * `providers` (not `viewProviders`) carries the proxy to the\n * consumer-projected button content. With no host at all, the proxy's\n * neutral set renders the nav buttons disabled.\n *\n * ```html\n * <cngx-stepper #s=\"cngxStepper\"> … </cngx-stepper>\n * <cngx-stepper-footer [host]=\"s.presenter\">\n * <button cngxStepperFooterStart cngxStepperPrevious>Back</button>\n * <cngx-stepper-count cngxStepperFooterCenter />\n * <button cngxStepperFooterEnd cngxStepperNext>Continue</button>\n * </cngx-stepper-footer>\n * ```\n *\n * @category ui/stepper\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/footer/stepper-footer.component.ts\n * @since 0.1.0\n * @relatedTo CngxStepper, CngxStepperPrevious, CngxStepperNext, CngxStepperComplete, CngxStepperCount\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/back-continue</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/save-draft-extra-button</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/footer-with-progress-center</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/percent-complete-center</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/segmented-progress-center</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/complete-finish-button</example-url>\n * <example-url>http://localhost:4200/#/ui/stepper/stepper-footer/async-commit-status</example-url>\n */\n@Component({\n selector: 'cngx-stepper-footer',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxStepperFooter',\n host: { class: 'cngx-stepper-footer' },\n providers: [\n {\n provide: CNGX_STEPPER_HOST,\n useFactory: (footer: CngxStepperFooter) =>\n createStepperHostProxy(() => footer.resolvedHost()),\n deps: [CngxStepperFooter],\n },\n ],\n template: `\n <div class=\"cngx-stepper-footer__start\">\n <ng-content select=\"[cngxStepperFooterStart]\" />\n </div>\n <div class=\"cngx-stepper-footer__center\">\n <ng-content select=\"[cngxStepperFooterCenter]\" />\n </div>\n <div class=\"cngx-stepper-footer__end\">\n <ng-content select=\"[cngxStepperFooterEnd]\" />\n </div>\n `,\n styleUrl: './stepper-footer.css',\n})\nexport class CngxStepperFooter {\n /**\n * Explicit stepper-host reference for placement *outside* the stepper\n * tree (`[host]=\"s.presenter\"`). When unset, the ambient\n * {@link CNGX_STEPPER_HOST} from an ancestor stepper is used.\n */\n readonly host = input<CngxStepperHost | null>(null);\n\n // `skipSelf` so this never resolves the proxy this component itself\n // provides - it reads the ancestor stepper's presenter.\n private readonly injectedHost = inject(CNGX_STEPPER_HOST, { optional: true, skipSelf: true });\n\n /** Resolved host: explicit input wins, else the ambient ancestor host. */\n readonly resolvedHost = computed<CngxStepperHost | null>(() => this.host() ?? this.injectedHost);\n}\n","import { Directive } from '@angular/core';\n\n/**\n * Marker for the footer's leading region (inline-start). Place on the\n * element you want in the start slot - typically a Back control.\n *\n * ```html\n * <button cngxStepperFooterStart cngxStepperPrevious>Back</button>\n * ```\n *\n * @category ui/stepper\n * @since 0.1.0\n * @relatedTo CngxStepperFooter, CngxStepperFooterCenter, CngxStepperFooterEnd\n */\n@Directive({\n selector: '[cngxStepperFooterStart]',\n standalone: true,\n host: { class: 'cngx-stepper-footer__slot' },\n})\nexport class CngxStepperFooterStart {}\n\n/**\n * Marker for the footer's center region - a progress hint, a\n * `<cngx-stepper-count>`, or a \"50% complete\" caption.\n *\n * @category ui/stepper\n * @since 0.1.0\n * @relatedTo CngxStepperFooter, CngxStepperFooterStart, CngxStepperFooterEnd\n */\n@Directive({\n selector: '[cngxStepperFooterCenter]',\n standalone: true,\n host: { class: 'cngx-stepper-footer__slot' },\n})\nexport class CngxStepperFooterCenter {}\n\n/**\n * Marker for the footer's trailing region (inline-end) - typically a\n * Continue / Finish control, optionally preceded by a \"Save draft\".\n *\n * @category ui/stepper\n * @since 0.1.0\n * @relatedTo CngxStepperFooter, CngxStepperFooterStart, CngxStepperFooterCenter\n */\n@Directive({\n selector: '[cngxStepperFooterEnd]',\n standalone: true,\n host: { class: 'cngx-stepper-footer__slot' },\n})\nexport class CngxStepperFooterEnd {}\n","/**\n * @module @cngx/ui/stepper\n *\n * Level-4 organism - CNGX-standard `<cngx-stepper>` skin over the\n * Level-2 `CngxStepperPresenter` from `@cngx/common/stepper`.\n * Composes presenter + roving tabindex + focus restore + live\n * region via `hostDirectives`. Material consumers reach for\n * `@cngx/ui/mat-stepper` instead.\n */\n\nexport { CngxStepper } from './stepper.component';\nexport { CngxProgressBarStepper } from './progress-bar-stepper.component';\nexport { CngxDotStepper } from './dot-stepper.component';\nexport { CngxTextStepper } from './text-stepper.component';\nexport { CngxStepperFooter } from './footer/stepper-footer.component';\nexport {\n CngxStepperFooterStart,\n CngxStepperFooterCenter,\n CngxStepperFooterEnd,\n} from './footer/stepper-footer-regions';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAIA;;;;;;;;;;;;;;;;;AAiBG;MAgCU,oBAAoB,CAAA;;AAEtB,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;AAGhC,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,0EAAU;AAErB,IAAA,KAAK,GAAG,mBAAmB,CAAC,UAAU;uGAP9C,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,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,EAAA,wBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,2BAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBALhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,2BAA2B,EAAE;AAC7C,iBAAA;;;AChDD;;;;;;;;AAQG;;ACRH;;AAEG;;;;"}
1
+ {"version":3,"file":"cngx-ui-stepper.mjs","sources":["../../../projects/ui/stepper/stepper-error-line.component.ts","../../../projects/ui/stepper/stepper.component.ts","../../../projects/ui/stepper/stepper.component.html","../../../projects/ui/stepper/progress-bar-stepper.component.ts","../../../projects/ui/stepper/progress-bar-stepper.component.html","../../../projects/ui/stepper/dot-stepper.component.ts","../../../projects/ui/stepper/dot-stepper.component.html","../../../projects/ui/stepper/text-stepper.component.ts","../../../projects/ui/stepper/text-stepper.component.html","../../../projects/ui/stepper/footer/stepper-footer.component.ts","../../../projects/ui/stepper/footer/stepper-footer-regions.ts","../../../projects/ui/stepper/public-api.ts","../../../projects/ui/stepper/cngx-ui-stepper.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n input,\n} from '@angular/core';\n\nimport { CngxIconSvg } from '@cngx/common/display';\nimport { CNGX_ICON_ALERT, CNGX_ICON_BAN } from '@cngx/utils';\n\n/**\n * Shared aggregate error line for the stepper variants and the parent\n * organism's mobile-collapse branches - the single source of the\n * `role=\"status\"` glyph + text markup. Each call site keeps its own\n * BEM block via `[block]` because the shipped CSS keys off the\n * per-variant class names.\n *\n * Always mounted: a live region inserted together with its content is\n * not reliably announced, so call sites bind `[text]` (empty when no\n * error) instead of `@if`-gating the element. While empty the host is\n * clipped out of flow (no flex-gap slot, still in the accessibility\n * tree) and carries no `data-state`.\n *\n * Internal - not exported from the entry's public API; the visible\n * surface stays the per-variant class contract.\n *\n * @internal\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector -- attribute selector by design (keeps the shipped <span> error-line DOM)\n selector: 'span[cngxStepperErrorLine]',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxIconSvg],\n template: `\n @if (text()) {\n <span [class]=\"block() + '-glyph'\" aria-hidden=\"true\"\n ><svg [cngxIconSvg]=\"icon()\"></svg\n ></span>\n <span [class]=\"block() + '-text'\">{{ text() }}</span>\n }\n `,\n styles: `\n [cngxStepperErrorLine]:not([data-state='error']) {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n\n /* Standalone icon, no disc, painted in the line's text colour. The box\n rounds to 12px next to every default line font (13 to 14px; the 0.75rem\n micro floor, the em term only grows it with a larger font), where it\n selects the 12-grid micro drawing and sits at cap height. The stroke\n width reaches the 24-grid path only, once the box passes 14px.\n --cngx-icon-svg-micro-floor: 0px lets a smaller line font shrink it. */\n [cngxStepperErrorLine] .cngx-icon-svg {\n --cngx-icon-svg-size: max(0.85em, var(--cngx-icon-svg-micro-floor, 0.75rem));\n --cngx-icon-svg-stroke-width: 2;\n }\n `,\n host: {\n role: 'status',\n '[attr.data-state]': \"text() ? 'error' : null\",\n '[attr.data-reason]': \"text() && reason() === 'refused' ? 'refused' : null\",\n '[class]': 'block()',\n },\n})\nexport class CngxStepperErrorLine {\n /** BEM block class of the owning variant, e.g. `cngx-dot-stepper__error`. */\n readonly block = input.required<string>();\n\n /** Resolved aggregate error phrase; empty string keeps the region quiet. */\n readonly text = input.required<string>();\n\n /**\n * `'refused'` when every marked step is a refused commit: the line then\n * wears the refused glyph and the `data-reason=\"refused\"` hook. Any error\n * keeps the error glyph.\n */\n readonly reason = input<'refused' | null>(null);\n\n protected readonly icon = computed(() =>\n this.reason() === 'refused' ? CNGX_ICON_BAN : CNGX_ICON_ALERT,\n );\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n contentChildren,\n ElementRef,\n inject,\n Injector,\n input,\n type Signal,\n type TemplateRef,\n untracked,\n} from '@angular/core';\nimport { injectDirection } from '@cngx/core';\n\nimport {\n CngxFocusRestore,\n CngxLiveRegion,\n CngxRovingItem,\n CngxRovingTabindex,\n} from '@cngx/common/a11y';\nimport { CngxIconSvg } from '@cngx/common/display';\nimport { CngxSwipe } from '@cngx/common/interactive';\nimport {\n CNGX_STEP_PANEL_HOST,\n createStepperDisplayMode,\n createStepperGroupSummary,\n createStepperGroupNavigation,\n injectStepperCollapse,\n CngxStep,\n CngxStepBadge,\n CngxStepBusySpinner,\n type CngxStepContentContext,\n CngxStepError,\n type CngxStepErrorContext,\n CngxStepGroupHeader,\n CngxStepIndicator,\n type CngxStepLabelContext,\n CngxStepperEmpty,\n CngxDotStepperDot,\n CngxStepperPresenter,\n type CngxStepperHeaderNavigation,\n type CngxStepperMobileIndicatorPosition,\n type CngxStepperSkin,\n CngxStepRejection,\n CNGX_STEPPER_HOST,\n CNGX_STEPPER_LANGUAGE_EN,\n CngxStepperCount,\n createStepperAccname,\n createStepperAnnouncementBuilders,\n createStepperHostAttrs,\n createStepperPanelRefs,\n createStepperSlotContextBuilders,\n createStepperStateView,\n createStepperStripKeyboardNav,\n createStepperTemplateBindings,\n resolveStepperErrorSummary,\n CngxStepperSwipeNav,\n resolveStepperStatusLabel,\n injectStepperConfig,\n injectStepperI18n,\n type CngxStepNode,\n type CngxStepPanelHost,\n type CngxStepperI18n,\n type CngxStepperStateView,\n} from '@cngx/common/stepper';\nimport {\n CNGX_DIRECTIVE_BY_ID_MAP_FACTORY,\n CNGX_ORGANISM_SCROLL_SYNC_FACTORY,\n} from '@cngx/common/tabs';\nimport { coerceBooleanProperty, coerceSignal } from '@cngx/core/utils';\nimport {\n CNGX_ICON_ALERT,\n CNGX_ICON_BAN,\n CNGX_ICON_CHECK,\n CNGX_ICON_EXCLAMATION,\n} from '@cngx/utils';\n\nimport { CngxStepperErrorLine } from './stepper-error-line.component';\n\n/** Icon data the stepper's default templates draw. */\nconst STEPPER_ICONS = {\n alert: CNGX_ICON_ALERT,\n ban: CNGX_ICON_BAN,\n check: CNGX_ICON_CHECK,\n exclamation: CNGX_ICON_EXCLAMATION,\n} as const;\n\n/**\n * Stepper organism. Composes `CngxStepperPresenter` with\n * `CngxRovingTabindex` and `CngxFocusRestore` via `hostDirectives`;\n * forwards `activeStepIndex`/`linear`/`orientation`/`commitAction`/\n * `commitMode` to the presenter. Material twin lives in\n * `@cngx/ui/mat-stepper`. ARIA attrs are in the `computed()` graph.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/stepper.component.ts\n * @since 0.3.0\n * @relatedTo CngxStepperPresenter, CngxStep, CngxRovingTabindex, CngxFocusRestore, CngxLiveRegion\n * @slot cngxStepIndicator Replaces the per-step number or check glyph in the header.\n * @slot cngxStepBadge Extra marker beside a step label, e.g. an optional or count badge.\n * @slot cngxStepBusySpinner Replaces the busy affordance shown while a step commits.\n * @slot cngxStepError Renders the failure surface on a step whose commit was rejected.\n * @slot cngxStepRejection Renders the reason a rolled-back step was refused.\n * @slot cngxStepGroupHeader Replaces the header a step group renders above its steps.\n * @slot cngxStepperEmpty Renders when no step is projected at all.\n * @slot cngxDotStepperDot Replaces the body of each dot in the dots mobile-collapse branch.\n * @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts\n * <example-url>/#/ui/stepper/stepper-horizontal/three-step-wizard</example-url>\n * <example-url>/#/ui/stepper/stepper-vertical/vertical-sidebar-layout</example-url>\n * <example-url>/#/ui/stepper/stepper-linear/linear-gating-with-completion-checkboxes</example-url>\n * <example-url>/#/ui/stepper/stepper-mobile-collapse/dots-collapse</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/linear-minimal</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/stripe-status-rich</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/path-chevron</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/pill-segment</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/chips</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/breadcrumb</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/all-skins-side-by-side</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/material-theme-coverage</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/linear-minimal-vertical</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/stripe-status-rich-vertical</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/path-chevron-vertical</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/pill-segment-vertical</example-url>\n * <example-url>/#/ui/stepper/stepper-skins/chips-vertical</example-url>\n * <example-url>/#/ui/stepper/stepper-density/flat-steps-auto-density</example-url>\n * <example-url>/#/ui/stepper/stepper-density/density-across-skins</example-url>\n * <example-url>/#/ui/stepper/stepper-density/distance-weighted-collapse</example-url>\n * @axis level organism\n */\n@Component({\n selector: 'cngx-stepper',\n exportAs: 'cngxStepper',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n NgTemplateOutlet,\n CngxLiveRegion,\n CngxRovingItem,\n CngxStepperCount,\n CngxIconSvg,\n CngxStepperErrorLine,\n CngxSwipe,\n ],\n styleUrls: ['./styles/stepper-base.css', './stepper.component.css'],\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: CngxStepperPresenter,\n inputs: ['activeStepIndex', 'linear', 'orientation', 'commitAction', 'commitMode'],\n outputs: ['activeStepIndexChange'],\n },\n {\n directive: CngxRovingTabindex,\n inputs: ['orientation'],\n },\n {\n directive: CngxStepperSwipeNav,\n inputs: ['mobileSwipe'],\n },\n { directive: CngxFocusRestore },\n // CngxLiveRegion not composed: its role=\"status\" would clobber the\n // host's role=\"group\". Template mounts a dedicated <span cngxLiveRegion>\n // bound to liveAnnouncement instead.\n ],\n providers: [{ provide: CNGX_STEP_PANEL_HOST, useExisting: CngxStepper }],\n templateUrl: './stepper.component.html',\n host: {\n class: 'cngx-stepper',\n role: 'group',\n '[attr.aria-roledescription]': 'stepperRoleDescription()',\n '[attr.aria-orientation]': 'presenter.orientation()',\n '[attr.data-orientation]': 'presenter.orientation()',\n '[attr.data-density-auto]': \"isDensityAuto() ? '' : null\",\n '[attr.data-skin]': 'hostAttrs.resolvedSkin()',\n '[attr.data-connectors]': \"hostAttrs.resolvedConnectors() ? 'true' : null\",\n '[attr.data-mobile-indicator-position]': 'hostAttrs.resolvedMobileIndicatorPosition()',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n '[attr.aria-labelledby]': 'ariaLabelledBy()',\n '[attr.aria-busy]': 'isCommitting() ? \"true\" : null',\n '[class.cngx-stepper]': 'true',\n '(keydown)': 'handleStripKeyDown($event)',\n },\n})\nexport class CngxStepper implements CngxStepPanelHost {\n /**\n * Accessible name of the stepper host, bound as `[aria-label]`. Resolution order: this input,\n * then the `stepperLabel` string of the stepper i18n bundle. Ignored while a non-empty\n * `[aria-labelledby]` is set.\n */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n /**\n * Id reference list naming the stepper host, bound as `[aria-labelledby]`. A non-empty value\n * is written to the host and suppresses the `aria-label` cascade, so the host carries no\n * `aria-label` at all.\n */\n readonly ariaLabelledBy = input<string | undefined>(undefined, { alias: 'aria-labelledby' });\n\n /** Per-instance skin override; flips `[data-skin]`, structure/ARIA unchanged. */\n readonly skin = input<CngxStepperSkin | undefined>(undefined);\n\n /** Opt the classic skin into the connector-rail presentation. Off by default, classic-scoped. */\n readonly connectors = input<boolean | undefined, unknown>(undefined, {\n transform: (v) => (v === undefined ? undefined : coerceBooleanProperty(v)),\n });\n\n /**\n * Per-instance header-navigation policy. `'none'` renders inert label\n * headers (footer-only navigation); `'visited'` keeps them as\n * focusable buttons gated by `linear`. Cascade: Input ?? config ??\n * `'visited'`.\n */\n readonly headerNavigation = input<CngxStepperHeaderNavigation | undefined>(undefined);\n\n /**\n * Opt-in `Step N of M` caption under the mobile `'dots'` row. In\n * the `'text'` collapse branch the count IS the indicator and is\n * always rendered; this input only gates the supplemental caption\n * that sits next to the dot row.\n */\n readonly showStepCount = input<boolean>(false);\n\n /**\n * Places the mobile-collapse indicator (the dots row or the step text) above or below the\n * panels, as `'top'` or `'bottom'`. Resolution order: this input, then `mobileIndicatorPosition`\n * from the stepper config, then `'top'`. The result is written to `data-mobile-indicator-position`,\n * and `'bottom'` reorders the host through CSS; the classic strip layout has no indicator to move.\n */\n readonly mobileIndicatorPosition = input<CngxStepperMobileIndicatorPosition | undefined>(\n undefined,\n );\n\n /** Stepper-host contract; exposed so external `<cngx-stepper-count>` / bridge consumers can `[host]=\"s.presenter\"` via `#s=\"cngxStepper\"`. */\n readonly presenter = inject(CNGX_STEPPER_HOST);\n protected readonly i18n = injectStepperI18n();\n protected readonly config = injectStepperConfig();\n private readonly hostElement: HTMLElement =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly injector = inject(Injector);\n private readonly stepDirectives = contentChildren(CngxStep, { descendants: true });\n\n private readonly indicatorSlot = contentChild(CngxStepIndicator);\n private readonly badgeSlot = contentChild(CngxStepBadge);\n private readonly busySpinnerSlot = contentChild(CngxStepBusySpinner);\n private readonly rejectionSlot = contentChild(CngxStepRejection);\n private readonly errorSlot = contentChild(CngxStepError);\n private readonly groupHeaderSlot = contentChild(CngxStepGroupHeader);\n private readonly emptySlot = contentChild(CngxStepperEmpty);\n private readonly dotSlot = contentChild(CngxDotStepperDot);\n\n /** Default-template icons: badge, rejection, done checks and mobile-dot marks. */\n protected readonly icons = STEPPER_ICONS;\n\n /**\n * Template cascade (indicator/badge/busySpinner/rejection/stepError/\n * groupHeader/empty). Resolution: per-instance slot directive →\n * `CNGX_STEPPER_CONFIG.templates.<key>` → `null` (built-in default).\n */\n protected readonly templates = createStepperTemplateBindings({\n indicatorSlot: this.indicatorSlot,\n badgeSlot: this.badgeSlot,\n busySpinnerSlot: this.busySpinnerSlot,\n rejectionSlot: this.rejectionSlot,\n errorSlot: this.errorSlot,\n groupHeaderSlot: this.groupHeaderSlot,\n emptySlot: this.emptySlot,\n dotSlot: this.dotSlot,\n config: this.config,\n });\n\n protected readonly displayMode = createStepperDisplayMode(\n injectStepperCollapse(this.hostElement),\n () => this.config.mobileCollapse,\n );\n\n /**\n * `true` when `density: 'auto'` is active. Drives `[data-density-auto]`,\n * which makes the strip absorb a too-narrow container by shrinking +\n * ellipsis-truncating labels in flow rather than growing a horizontal\n * scrollbar - so no rung ever overflows, independent of how the px\n * thresholds resolve.\n */\n protected readonly isDensityAuto = computed<boolean>(() => this.config.density === 'auto');\n\n constructor() {\n // Scroll active step into view via the swappable scroll-sync factory.\n inject(CNGX_ORGANISM_SCROLL_SYNC_FACTORY)({\n activeId: this.presenter.activeStepId,\n hostElement: this.hostElement,\n injector: this.injector,\n });\n }\n\n private readonly fallbackLabels = coerceSignal(this.config.fallbackLabels);\n\n /**\n * Stepper landmark role-description: config `fallbackLabels`, then the\n * library default. Never the stepper name, which is the accessible name.\n */\n protected readonly stepperRoleDescription = computed<string>(\n () =>\n this.fallbackLabels()?.stepRoleDescription ?? CNGX_STEPPER_LANGUAGE_EN.stepRoleDescription,\n );\n\n /** Resolved skin / connectors / mobile-indicator host attrs (Level-2 cascade helper). */\n protected readonly hostAttrs = createStepperHostAttrs({\n skin: this.skin,\n connectors: this.connectors,\n mobileIndicatorPosition: this.mobileIndicatorPosition,\n config: this.config,\n });\n\n /**\n * Resolved header-navigation policy. Cascade mirrors `skin` /\n * `connectors`: per-instance Input ?? config ?? `'visited'`.\n */\n protected readonly resolvedHeaderNavigation = computed<CngxStepperHeaderNavigation>(\n () => this.headerNavigation() ?? this.config.headerNavigation ?? 'visited',\n );\n\n /**\n * Real error reason for a step, or `null`. A reason is the direct\n * `[error]` string or the first `errorAggregator` label.\n */\n private stepErrorMessageOf(node: CngxStepNode): string | null {\n return node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0] ?? null;\n }\n\n /**\n * Errored steps that carry a real message, rendered as a row BELOW the\n * strip (full width, wraps) rather than inline in a step - a free-text\n * message inside a strip item widens the shrink-to-fit step and tears\n * the row. Empty when no step has a real reason.\n */\n protected readonly stepErrorEntries = computed<\n readonly { id: string; label: string; message: string; context: CngxStepErrorContext }[]\n >(\n () =>\n // The message row sits below the strip, so it has room on every\n // skin - the bare 'errored' state still rides each skin's own\n // indicator / badge / tile.\n this.stepsOnly()\n .filter((node) => node.kind === 'step' && this.stepErrorMessageOf(node) !== null)\n .map((node) => ({\n id: node.id,\n label: node.label(),\n message: this.stepErrorMessageOf(node)!,\n context: this.slotContext.stepErrorContextFor(node),\n })),\n {\n equal: (a, b) =>\n a.length === b.length && a.every((e, i) => e.id === b[i].id && e.message === b[i].message),\n },\n );\n\n /** Mobile-swipe navigation host directive (Level-2 composition). */\n protected readonly swipeNav = inject(CngxStepperSwipeNav, { host: true });\n\n protected statusLabelFor = (node: CngxStepNode): string =>\n resolveStepperStatusLabel(\n node,\n this.i18n(),\n this.slotContext.isActive(node),\n this.stateView.rejectionReason(node),\n );\n\n /** Mobile-dot `data-state`: the error marker (rejection + aggregator) over the raw status. */\n protected mobileDotState(node: CngxStepNode): string {\n return this.stateView.hasErrorMarker(node) ? 'error' : node.state();\n }\n\n /**\n * Mobile-dot `aria-label`, appending the errored status when the dot has\n * an error, or the refused status when its step change was refused.\n */\n protected mobileDotAriaLabel(node: CngxStepNode, index: number): string {\n const base = this.i18n().selectedStep(node.label(), index + 1, this.stepsOnly().length);\n return withMarkerStatus(this.stateView, node, this.i18n(), base);\n }\n protected readonly groupRoleDescription = computed<string>(\n () => this.fallbackLabels()?.groupRoleDescription ?? this.i18n().groupRoleDescription,\n );\n\n /**\n * `true` when a rendered strip group header is folded under the\n * focus-driven policy: `groupCollapse === 'expand-active'`, the group\n * has children, and it does not hold the active step. Drives the\n * `--collapsed` visual de-emphasis. Reads `activeGroupId` reactively,\n * never a one-shot write.\n *\n * The fold is a density optimisation, not a disclosure widget:\n * collapse is focus-driven (no toggle control), so the header carries\n * no `aria-expanded` - an unsupported pairing on `role=\"group\"`\n * (ARIA 1.2) that would also imply a false disclosure affordance.\n * A collapsed header does offer a pointer shortcut into the group (see\n * {@link handleGroupHeaderClick}), but that selects the group's first\n * step rather than expanding it in place, so it stays navigation, not\n * disclosure. Keyboard users reach the same steps via the documented\n * arrow-key contract, which already steps into a collapsed group.\n */\n protected isGroupCollapsed(node: CngxStepNode): boolean {\n if (node.kind !== 'group' || this.config.groupCollapse !== 'expand-active') {\n return false;\n }\n if (node.children.length === 0) {\n return false;\n }\n return this.presenter.activeGroupId() !== node.id;\n }\n\n /**\n * Collapsed-group summary view (`groupCollapseSummary`). Level-2 factory\n * keeps the count/progress/status derivation out of the organism; the\n * template reads `groupSummary.text(node)` / `.showStatus(node)` /\n * `.srText(node)` on collapsed group headers.\n */\n protected readonly groupSummary = createStepperGroupSummary({\n summaryMode: () => this.config.groupCollapseSummary,\n isCollapsed: (node) => this.isGroupCollapsed(node),\n i18n: this.i18n,\n });\n\n /**\n * Collapsed-group pointer-navigation view. `isNavigable` drives the\n * `--navigable` cursor cue; `select` is the header click handler that\n * enters the branch at its first reachable step. Level-2 factory.\n */\n protected readonly groupNavigation = createStepperGroupNavigation({\n presenter: this.presenter,\n isCollapsed: (node) => this.isGroupCollapsed(node),\n navigationEnabled: () => this.resolvedHeaderNavigation() !== 'none',\n });\n\n /** Shared accname cascade (input → `i18n.stepperLabel`). */\n protected readonly resolvedAriaLabel = createStepperAccname({\n ariaLabel: this.ariaLabel,\n ariaLabelledBy: this.ariaLabelledBy,\n i18n: this.i18n,\n });\n\n // O(1) labelTemplateFor/contentTemplateFor lookup. Structural equal on\n // id-set + directive identity stops cascade on shape-stable re-emits.\n private readonly stepDirectiveById = inject(CNGX_DIRECTIVE_BY_ID_MAP_FACTORY)({\n source: this.stepDirectives,\n });\n\n readonly flatSteps: Signal<readonly CngxStepNode[]> = this.presenter.flatSteps;\n readonly activeStepIndex: Signal<number> = this.presenter.activeStepIndex;\n readonly activeStepId: Signal<string | null> = this.presenter.activeStepId;\n protected readonly stepsOnly: Signal<readonly CngxStepNode[]> = this.presenter.stepsOnly;\n\n /**\n * Strip projection honouring the focus-driven group-collapse policy.\n * Drives the classic strip `@for`; collapsed groups contribute their\n * header node alone. Sourced from the presenter, never re-derived here\n * (host-token contract). Panels still render every step via\n * {@link stepsOnly}, so collapsed steps keep their panel ids in the DOM.\n */\n protected readonly visibleStripNodes: Signal<readonly CngxStepNode[]> =\n this.presenter.visibleStripNodes;\n\n /**\n * Distance of a step from the active one, published per-step as\n * `--cngx-step-distance` under `density: 'auto'`. Drives the\n * distance-weighted label budget so the step furthest from the active\n * one collapses first. `flatIndex` is `-1` for group nodes, but only\n * step nodes carry the binding. Pure derived data - no layout read.\n */\n protected stepDistanceOf(node: CngxStepNode): number {\n return Math.abs(node.flatIndex - this.activeStepIndex());\n }\n\n /** Per-step predicates + slot-context builders (Level-2 factory). */\n protected readonly slotContext = createStepperSlotContextBuilders({\n presenter: this.presenter,\n stepsOnly: this.stepsOnly,\n i18n: this.i18n,\n isGroupCollapsed: (node) => this.isGroupCollapsed(node),\n });\n\n /**\n * Shared state view - feeds the mobile-collapse `text` / `dots` branches,\n * which otherwise rendered only `Step N of M` (text) or `node.state()`\n * (dots) and dropped the per-step error the desktop branch shows.\n */\n protected readonly stateView = createStepperStateView({\n presenter: this.presenter,\n stepsOnly: this.stepsOnly,\n });\n\n /**\n * Aggregate error phrase for the mobile-collapse text branch. Feeds the\n * real reason (the `[error]` string / aggregator label) through the\n * resolver so the collapsed view shows \"Card declined\", not the generic\n * \"errored\" status word - the strip's per-step row is not on screen in\n * collapsed mode, so this line is the only error surface.\n */\n protected readonly mobileErrorSummary = computed<string>(() =>\n resolveStepperErrorSummary(\n this.stateView,\n this.stepsOnly,\n untracked(() => this.i18n()),\n (node) => this.stepErrorMessageOf(node) ?? undefined,\n ),\n );\n\n /** Commit-in-flight flag - drives the host `aria-busy` binding.*/\n protected readonly isCommitting = computed<boolean>(\n () => this.presenter.commitState.status() === 'pending',\n );\n\n protected stepHeaderId = (node: CngxStepNode): string => `${node.id}-header`;\n protected stepPanelId = (node: CngxStepNode): string => `${node.id}-panel`;\n\n /**\n * Live-region + per-step + group SR phrase builders (Level-2 factory);\n * also owns the descriptor-span id scheme and the gated\n * `aria-describedby` reference the template binds directly.\n */\n protected readonly announcement = createStepperAnnouncementBuilders({\n presenter: this.presenter,\n stepsOnly: this.stepsOnly,\n i18n: this.i18n,\n });\n\n /**\n * Mode-aware panel naming (Level-2 factory): header-less panels\n * self-name and drop the describedby ref instead of dangling.\n */\n protected readonly panelRefs = createStepperPanelRefs({\n displayMode: this.displayMode,\n visibleStripNodes: this.visibleStripNodes,\n headerIdFor: (node) => this.stepHeaderId(node),\n describedByFor: (node) => this.announcement.describedBy(node),\n });\n\n protected handleHeaderClick(node: CngxStepNode): void {\n // Inert headers in 'none' mode: the footer is the sole control.\n if (this.resolvedHeaderNavigation() === 'none') {\n return;\n }\n // No-op when the header is not reachable - disabled, linear-blocked,\n // or a commit or the finish run is in flight. The reachability gate\n // (`busy()` included) is the single source, so a mid-commit click\n // cannot supersede the pending transition.\n if (node.kind !== 'step' || !this.isHeaderReachable(node)) {\n return;\n }\n this.presenter.select(node.flatIndex);\n }\n\n /**\n * `true` when the step header at `node` may be navigated to right now:\n * structurally reachable (`canNavigateTo` - not disabled, not\n * linear-blocked) AND not while a commit or the finish run is in flight\n * (`busy()`). The\n * busy gate mirrors the footer nav atoms, which disable on\n * `!canGo* || busy()` - so the strip and the footer lock together\n * during an async transition instead of letting a header click\n * supersede the pending commit. Reads the host contract, never the\n * presenter's private linear-block check.\n */\n protected isHeaderReachable(node: CngxStepNode): boolean {\n return this.presenter.canNavigateTo(node.flatIndex) && !this.presenter.busy();\n }\n\n /**\n * `'true'` on a header that cannot be navigated to, `null` otherwise.\n * Folds two channels into one binding: a `disabled` step and a\n * linear-unreachable step both read as `aria-disabled`, so the gate is\n * announced rather than silently ignored. The header stays focusable\n * per the ARIA composite-widget disabled-focusable rule. In\n * `'visited'` + `linear=false` this is byte-identical to the\n * prior `node.disabled()`-only binding, since `canNavigateTo` returns\n * `true` for every enabled step when linear is off.\n */\n protected headerAriaDisabled(node: CngxStepNode): 'true' | null {\n return this.isHeaderReachable(node) ? null : 'true';\n }\n\n /** Strip-scoped arrow-key handler. See {@link createStepperStripKeyboardNav}. */\n protected readonly handleStripKeyDown = createStepperStripKeyboardNav({\n presenter: this.presenter,\n hostElement: this.hostElement,\n direction: injectDirection(),\n stepButtonIdFor: (id) => `${id}-header`,\n // Defers the post-move focus to afterNextRender so arrow-key\n // navigation across a collapsed group boundary lands on the target\n // button after the strip re-renders its node set.\n injector: this.injector,\n // Off in 'none' mode (inert labels) and while a commit is in flight,\n // so arrow-key navigation locks with the headers + footer during an\n // async transition.\n enabled: () => this.resolvedHeaderNavigation() !== 'none' && !this.presenter.busy(),\n });\n\n /**\n * Clear the presenter's `lastFailedIndex`. Lets template-ref consumers\n * (`#s=\"cngxStepper\"`) dismiss the rejection decoration without injecting\n * {@link CNGX_STEPPER_HOST}.\n */\n clearLastFailed(): void {\n this.presenter.clearLastFailed();\n }\n\n // CngxStepPanelHost contract - O(1) via the pre-built map.\n /**\n * Returns the `*cngxStepLabel` template of the step with the given id, or `null` when no step has\n * that id or the step supplies none. Implements `CngxStepPanelHost.labelTemplateFor`; the stepper\n * template calls it per header and renders the default label text on `null`.\n */\n labelTemplateFor(id: string): TemplateRef<CngxStepLabelContext> | null {\n return this.stepDirectiveById().get(id)?.labelTemplate()?.templateRef ?? null;\n }\n\n /**\n * Returns the `*cngxStepContent` template of the step with the given id, or `null` when no step\n * has that id or the step supplies none. Implements `CngxStepPanelHost.contentTemplateFor`; the\n * stepper template calls it per panel and renders no body on `null`.\n */\n contentTemplateFor(id: string): TemplateRef<CngxStepContentContext> | null {\n return this.stepDirectiveById().get(id)?.contentTemplate()?.templateRef ?? null;\n }\n}\n\n/**\n * @internal `\"<base>: Errored\"` for an error, `\"<base>: Not allowed\"` for a\n * refused step change, joined through the `stepWithDetail` message; `base`\n * unchanged for an unmarked step.\n */\nfunction withMarkerStatus(\n view: CngxStepperStateView,\n node: CngxStepNode,\n i18n: CngxStepperI18n,\n base: string,\n): string {\n if (view.hasError(node)) {\n return i18n.stepWithDetail(base, i18n.statusLabels.errored);\n }\n return view.isRefused(node) ? i18n.stepWithDetail(base, i18n.statusLabels.refused) : base;\n}\n","@if (flatSteps().length === 0) {\n @let emptyTpl = templates.empty();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n} @else if (displayMode() === 'text') {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text\" [live]=\"false\" />\n <span\n cngxStepperErrorLine\n block=\"cngx-stepper__mobile-error\"\n [text]=\"mobileErrorSummary()\"\n [reason]=\"stateView.refusalOnly() ? 'refused' : null\"\n ></span>\n\n <ng-container *ngTemplateOutlet=\"stepPanels\"></ng-container>\n} @else if (displayMode() === 'dots') {\n <!--\n In 'none' mode the dots are inert list-item indicators (footer-only\n navigation); otherwise they are roving-tabindex buttons. The dot body\n is decoration: the shell's aria-label names the step, so the projected\n template renders inside an aria-hidden wrapper.\n -->\n <div\n class=\"cngx-stepper__mobile-dots\"\n [attr.role]=\"resolvedHeaderNavigation() === 'none' ? 'list' : null\"\n >\n @for (node of stepsOnly(); track node.id; let i = $index) {\n @if (resolvedHeaderNavigation() === 'none') {\n <span\n role=\"listitem\"\n class=\"cngx-stepper__mobile-dot cngx-stepper__mobile-dot--static\"\n [class.cngx-stepper__mobile-dot--active]=\"slotContext.isActive(node)\"\n [class.cngx-stepper__mobile-dot--completed]=\"i < activeStepIndex()\"\n [class.cngx-stepper__mobile-dot--error]=\"stateView.hasErrorMarker(node)\"\n [id]=\"stepHeaderId(node)\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-label]=\"mobileDotAriaLabel(node, i)\"\n [attr.data-state]=\"mobileDotState(node)\"\n [attr.data-reason]=\"stateView.rejectionReason(node)\"\n >\n @if (templates.dot(); as dotTpl) {\n <span class=\"cngx-stepper__mobile-dot-body\" aria-hidden=\"true\">\n <ng-container *ngTemplateOutlet=\"dotTpl; context: slotContext.dotContextFor(node)\" />\n </span>\n }\n @if (stateView.hasErrorMarker(node)) {\n <svg\n class=\"cngx-stepper__mobile-dot-glyph\"\n [cngxIconSvg]=\"\n stateView.rejectionReason(node) === 'refused' ? icons.ban : icons.exclamation\n \"\n ></svg>\n }\n </span>\n } @else {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__mobile-dot\"\n [class.cngx-stepper__mobile-dot--active]=\"slotContext.isActive(node)\"\n [class.cngx-stepper__mobile-dot--completed]=\"i < activeStepIndex()\"\n [class.cngx-stepper__mobile-dot--error]=\"stateView.hasErrorMarker(node)\"\n [id]=\"stepHeaderId(node)\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-controls]=\"stepPanelId(node)\"\n [attr.aria-label]=\"mobileDotAriaLabel(node, i)\"\n [attr.data-state]=\"mobileDotState(node)\"\n [attr.data-reason]=\"stateView.rejectionReason(node)\"\n [attr.aria-disabled]=\"headerAriaDisabled(node)\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n >\n @if (templates.dot(); as dotTpl) {\n <span class=\"cngx-stepper__mobile-dot-body\" aria-hidden=\"true\">\n <ng-container *ngTemplateOutlet=\"dotTpl; context: slotContext.dotContextFor(node)\" />\n </span>\n }\n @if (stateView.hasErrorMarker(node)) {\n <svg\n class=\"cngx-stepper__mobile-dot-glyph\"\n [cngxIconSvg]=\"\n stateView.rejectionReason(node) === 'refused' ? icons.ban : icons.exclamation\n \"\n ></svg>\n }\n </button>\n }\n }\n </div>\n <span\n cngxStepperErrorLine\n block=\"cngx-stepper__mobile-error\"\n [text]=\"mobileErrorSummary()\"\n [reason]=\"stateView.refusalOnly() ? 'refused' : null\"\n ></span>\n @if (showStepCount()) {\n <cngx-stepper-count class=\"cngx-stepper__mobile-text cngx-stepper__mobile-text--caption\" [live]=\"false\" />\n }\n\n <ng-container *ngTemplateOutlet=\"stepPanels\"></ng-container>\n} @else {\n <!--\n In 'none' mode the inert headers are list items, so the strip is a\n semantic list; otherwise it is a presentational container of\n roving-tabindex buttons.\n -->\n <div\n class=\"cngx-stepper__strip\"\n [attr.role]=\"resolvedHeaderNavigation() === 'none' ? 'list' : 'presentation'\"\n >\n @for (node of visibleStripNodes(); track node.id) {\n @if (node.kind === 'group') {\n <div\n class=\"cngx-stepper__group-header\"\n role=\"group\"\n [attr.aria-roledescription]=\"groupRoleDescription()\"\n [class.cngx-stepper__group-header--collapsed]=\"isGroupCollapsed(node)\"\n [class.cngx-stepper__group-header--active]=\"groupNavigation.isActive(node)\"\n [class.cngx-stepper__group-header--navigable]=\"groupNavigation.isNavigable(node)\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-describedby]=\"announcement.describedBy(node)\"\n (click)=\"groupNavigation.select(node)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n templates.groupHeader() ?? defaultGroupHeader;\n context: slotContext.groupHeaderContextFor(node)\n \"\n ></ng-container>\n @if (groupSummary.text(node); as summary) {\n <span class=\"cngx-stepper__group-summary\" [attr.data-state]=\"node.state()\" aria-hidden=\"true\">{{ summary }}</span>\n } @else if (groupSummary.showStatus(node)) {\n <span\n class=\"cngx-stepper__group-summary cngx-stepper__group-summary--status\"\n [attr.data-state]=\"node.state()\"\n aria-hidden=\"true\"\n ></span>\n }\n @if (groupSummary.srText(node); as srSummary) {\n <span class=\"cngx-sr-only\">{{ srSummary }}</span>\n }\n <span class=\"cngx-sr-only\" [id]=\"announcement.descriptorId(node)\">{{ announcement.groupStatusPhrase(node) }}</span>\n </div>\n } @else if (resolvedHeaderNavigation() === 'none') {\n <!--\n Inert label header (headerNavigation 'none'): pure step\n indicator, no <button>, no cngxRovingItem, no (click), no\n tabindex. Footer is the sole navigation control. aria-current\n + status retained (Pillar 2).\n -->\n <span\n class=\"cngx-stepper__step cngx-stepper__step--static\"\n role=\"listitem\"\n [class.cngx-stepper__step--rejected]=\"slotContext.showRejection(node)\"\n [attr.data-reason]=\"stateView.rejectionReason(node)\"\n [style.--cngx-step-distance]=\"isDensityAuto() ? stepDistanceOf(node) : null\"\n [id]=\"stepHeaderId(node)\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-disabled]=\"node.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"slotContext.isStepBusy(node) ? 'true' : null\"\n [attr.aria-describedby]=\"announcement.describedBy(node)\"\n >\n <ng-container *ngTemplateOutlet=\"stepHeaderInner; context: { $implicit: node }\"></ng-container>\n </span>\n } @else {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-stepper__step\"\n [class.cngx-stepper__step--rejected]=\"slotContext.showRejection(node)\"\n [attr.data-reason]=\"stateView.rejectionReason(node)\"\n [style.--cngx-step-distance]=\"isDensityAuto() ? stepDistanceOf(node) : null\"\n [id]=\"stepHeaderId(node)\"\n [attr.tabindex]=\"slotContext.isActive(node) ? '0' : '-1'\"\n [attr.data-step-depth]=\"node.depth\"\n [attr.data-state]=\"node.state()\"\n [attr.aria-current]=\"slotContext.isActive(node) ? 'step' : null\"\n [attr.aria-controls]=\"stepPanelId(node)\"\n [attr.aria-disabled]=\"headerAriaDisabled(node)\"\n [attr.aria-busy]=\"slotContext.isStepBusy(node) ? 'true' : null\"\n [attr.aria-describedby]=\"announcement.describedBy(node)\"\n [cngxRovingItemDisabled]=\"node.disabled()\"\n (click)=\"handleHeaderClick(node)\"\n >\n <ng-container *ngTemplateOutlet=\"stepHeaderInner; context: { $implicit: node }\"></ng-container>\n </button>\n }\n }\n </div>\n\n <!--\n Error messages live on their own row BELOW the strip, not inline in a\n step. A free-text message inside a horizontal/column strip item widens\n the shrink-to-fit step and tears the row; below the strip it has full\n width and wraps. Only steps with a real reason ([error] string or an\n aggregator label) appear - the bare 'errored' state is already carried\n by the indicator + badge, so it adds no text-only noise here.\n -->\n @if (stepErrorEntries().length) {\n <div class=\"cngx-stepper__error-summary\">\n @for (entry of stepErrorEntries(); track entry.id) {\n <p class=\"cngx-stepper__error-summary-item\" data-state=\"error\">\n @if (templates.stepError(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: entry.context\"></ng-container>\n } @else {\n <span class=\"cngx-stepper__error-summary-step\">{{ entry.label }}</span>\n <span class=\"cngx-stepper__error-summary-text\">{{ entry.message }}</span>\n }\n </p>\n }\n </div>\n }\n\n <ng-container *ngTemplateOutlet=\"stepPanels\"></ng-container>\n}\n\n<!--\n Footer slot - placed OUTSIDE the display-mode @if/@else so it projects\n at view-creation time (content children register after the empty branch\n is active, so an in-branch <ng-content> would be discarded and never\n re-project). Renders after the panels in every mode.\n-->\n<ng-content select=\"cngx-stepper-footer, [cngxStepperFooter]\"></ng-content>\n\n<span class=\"cngx-stepper__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcement.liveAnnouncement()\n}}</span>\n\n<!--\n Shared panel block for all three display modes (Pillar 3 - one\n source instead of three drifting copies). Mode differences are\n derived, not duplicated: panelLabelledBy/panelAriaLabel/\n panelDescribedBy resolve the naming per mode (text has no header\n element, classic only renders headers the group-collapse policy\n exposes, dots always renders one per step); the collapsed branches\n additionally mount the descriptor span inside the panel because the\n classic descriptor spans live inside the strip headers. Swipe is\n composed once and disabled in classic - the directive is inert\n with [enabled]=false.\n-->\n<ng-template #stepPanels>\n <div\n class=\"cngx-stepper__panels\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"displayMode() !== 'classic' && swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepsOnly(); track node.id) {\n <div\n class=\"cngx-stepper__panel\"\n role=\"region\"\n [id]=\"stepPanelId(node)\"\n [attr.aria-labelledby]=\"panelRefs.labelledBy(node)\"\n [attr.aria-label]=\"panelRefs.ariaLabel(node)\"\n [attr.aria-describedby]=\"panelRefs.describedBy(node)\"\n [hidden]=\"!slotContext.isActive(node)\"\n >\n @if (displayMode() !== 'classic') {\n <span class=\"cngx-sr-only\" [id]=\"announcement.descriptorId(node)\">{{ announcement.statusPhrase(node) }}</span>\n }\n @let contentTpl = contentTemplateFor(node.id);\n @if (contentTpl) {\n <ng-container\n *ngTemplateOutlet=\"contentTpl; context: slotContext.stepContentContextFor(node)\"\n ></ng-container>\n }\n </div>\n }\n </div>\n</ng-template>\n\n<!--\n Shared strip-header body. Rendered identically by the focusable\n <button> ('visited') and the inert <span> ('none') branches so the\n indicator / label / badge / status / rejection / busy markup has a\n single source (Pillar 3). ngTemplateOutlet projects inline - no\n wrapper element is added, so the 'visited' DOM is unchanged.\n-->\n<ng-template #stepHeaderInner let-node>\n <span class=\"cngx-stepper__indicator\" aria-hidden=\"true\" [attr.data-state]=\"node.state()\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.indicator() ?? defaultIndicator;\n context: slotContext.indicatorContextFor(node)\n \"\n ></ng-container>\n </span>\n <span class=\"cngx-stepper__label\">\n @let labelTpl = labelTemplateFor(node.id);\n @if (labelTpl) {\n <ng-container\n *ngTemplateOutlet=\"labelTpl; context: slotContext.stepLabelContextFor(node)\"\n ></ng-container>\n } @else {\n {{ node.label() }}\n }\n </span>\n @if (node.state() === 'success') {\n <span class=\"cngx-stepper__done-icon\" aria-hidden=\"true\"\n ><svg [cngxIconSvg]=\"icons.check\"></svg\n ></span>\n }\n @if (slotContext.showErrorBadge(node)) {\n <span class=\"cngx-stepper__badge\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.badge() ?? defaultBadge;\n context: slotContext.badgeContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n <span class=\"cngx-stepper__status-pill\" aria-hidden=\"true\">{{ statusLabelFor(node) }}</span>\n @if (slotContext.showRejection(node)) {\n <span\n class=\"cngx-stepper__rejection-icon\"\n aria-hidden=\"true\"\n [attr.data-reason]=\"stateView.rejectionReason(node)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n templates.rejection() ?? defaultRejection;\n context: slotContext.rejectionContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n @if (slotContext.isStepBusy(node)) {\n <span class=\"cngx-stepper__busy-spinner\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"\n templates.busySpinner() ?? defaultBusySpinner;\n context: slotContext.busySpinnerContextFor(node)\n \"\n ></ng-container>\n </span>\n }\n <span class=\"cngx-sr-only\" [id]=\"announcement.descriptorId(node)\">{{ announcement.headerStatusPhrase(node) }}</span>\n</ng-template>\n\n<ng-template #defaultIndicator let-position let-status=\"status\">\n @if (status === 'success') {\n <svg class=\"cngx-stepper__indicator-check\" [cngxIconSvg]=\"icons.check\"></svg>\n }\n <span class=\"cngx-stepper__indicator-glyph\">{{ position }}</span>\n</ng-template>\n<ng-template #defaultBadge><svg [cngxIconSvg]=\"icons.alert\"></svg></ng-template>\n<ng-template #defaultBusySpinner></ng-template>\n<ng-template #defaultRejection let-reason=\"reason\"\n ><svg [cngxIconSvg]=\"reason === 'refused' ? icons.ban : icons.alert\"></svg\n></ng-template>\n<ng-template #defaultGroupHeader let-group=\"group\">\n <span class=\"cngx-stepper__group-label\">{{ group.label() }}</span>\n</ng-template>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n inject,\n input,\n type TemplateRef,\n untracked,\n} from '@angular/core';\n\nimport {\n CngxStepperCount,\n CngxStepperEmpty,\n CngxStepperPresenter,\n CNGX_STEPPER_HOST,\n CNGX_STEPPER_LANGUAGE_EN,\n createStepperAccname,\n createStepperStateView,\n injectStepperConfig,\n injectStepperI18n,\n resolveStepperErrorSummary,\n type CngxStepNode,\n} from '@cngx/common/stepper';\nimport { coerceSignal } from '@cngx/core/utils';\nimport { CngxProgress } from '@cngx/ui/feedback';\n\nimport { CngxStepperErrorLine } from './stepper-error-line.component';\n\n/**\n * Progress-Bar stepper variant. Thin Level-4 organism composing\n * `CngxStepperPresenter` via `hostDirectives` and rendering the\n * existing `<cngx-progress>` primitive as the visual bar instead of\n * reinventing `<div role=\"progressbar\">`. Material consumers inherit\n * Material progress styling through `CngxProgress` automatically.\n *\n * `completedPercent()` is `computed` from `presenter.activeStepIndex()`\n * and the count of step nodes in `presenter.flatSteps()`. Optional\n * `[showStepCount]` adds a `Step N of M` caption sourced from\n * `CngxStepperI18n.textStepperFormat`. Accname and\n * `aria-roledescription` resolve through the same config + i18n\n * cascades as `<cngx-stepper>`; a step-less flow renders the\n * `CNGX_STEPPER_CONFIG` empty-template cascade instead of the bar.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/progress-bar-stepper.component.ts\n * @since 0.3.0\n * @relatedTo CngxStepperPresenter, CngxProgress, CngxDotStepper, CngxTextStepper\n * @slot cngxStepperEmpty Renders when no step is projected at all.\n * @playground Material theme coverage across variants ./examples/material-theme-coverage/variants-coverage.component.ts\n * <example-url>/#/ui/stepper/progress-bar/onboarding-flow</example-url>\n * @axis level organism\n */\n@Component({\n selector: 'cngx-progress-bar-stepper',\n exportAs: 'cngxProgressBarStepper',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxProgress, CngxStepperCount, CngxStepperErrorLine, NgTemplateOutlet],\n hostDirectives: [\n {\n directive: CngxStepperPresenter,\n inputs: ['activeStepIndex', 'linear'],\n outputs: ['activeStepIndexChange'],\n },\n ],\n templateUrl: './progress-bar-stepper.component.html',\n styleUrl: './progress-bar-stepper.component.css',\n host: {\n class: 'cngx-progress-bar-stepper',\n role: 'group',\n '[attr.aria-roledescription]': 'stepperRoleDescription()',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n '[attr.aria-labelledby]': 'ariaLabelledBy()',\n '[attr.data-state]': 'stateView.hasAnyErrorMarker() ? \"error\" : null',\n '[attr.data-reason]': 'stateView.refusalOnly() ? \"refused\" : null',\n '[attr.aria-invalid]': 'stateView.hasAnyError() ? \"true\" : null',\n },\n})\nexport class CngxProgressBarStepper {\n /**\n * Accessible name of the stepper host, bound as `[aria-label]`. Resolution order: this input,\n * then the `stepperLabel` string of the stepper i18n bundle. Ignored while a non-empty\n * `[aria-labelledby]` is set.\n */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n /**\n * Id reference list naming the stepper host, bound as `[aria-labelledby]`. A non-empty value\n * is written to the host and suppresses the `aria-label` cascade, so the host carries no\n * `aria-label` at all.\n */\n readonly ariaLabelledBy = input<string | undefined>(undefined, { alias: 'aria-labelledby' });\n\n /** Render a `Step N of M` caption below the bar. Off by default. */\n readonly showStepCount = input<boolean>(false);\n\n protected readonly presenter = inject(CNGX_STEPPER_HOST);\n protected readonly i18n = injectStepperI18n();\n protected readonly config = injectStepperConfig();\n\n /** Shared accname cascade (input → `i18n.stepperLabel`). */\n protected readonly resolvedAriaLabel = createStepperAccname({\n ariaLabel: this.ariaLabel,\n ariaLabelledBy: this.ariaLabelledBy,\n i18n: this.i18n,\n });\n\n private readonly fallbackLabels = coerceSignal(this.config.fallbackLabels);\n\n /**\n * Landmark role-description mirroring `<cngx-stepper>`: config\n * `fallbackLabels`, then the library default, never the stepper name.\n */\n protected readonly stepperRoleDescription = computed<string>(\n () =>\n this.fallbackLabels()?.stepRoleDescription ?? CNGX_STEPPER_LANGUAGE_EN.stepRoleDescription,\n );\n\n private readonly emptySlot = contentChild(CngxStepperEmpty);\n\n /**\n * Empty-state cascade mirroring `<cngx-stepper>`: per-instance\n * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.\n * Gates the whole bar so a step-less flow shows the placeholder\n * instead of a full bar captioned `Step 0 of 0`.\n */\n protected readonly resolvedEmptyTemplate = computed<TemplateRef<void> | null>(\n () => this.emptySlot()?.templateRef ?? this.config.templates?.empty ?? null,\n );\n\n /** Shared per-step/aggregate state derivations - the single error source. */\n protected readonly stateView = createStepperStateView({\n presenter: this.presenter,\n stepsOnly: this.presenter.stepsOnly,\n });\n\n /** Total step count (group nodes excluded). */\n protected readonly totalSteps = computed<number>(() => this.presenter.stepsOnly().length);\n\n /** 1-based active position used in the caption format. */\n protected readonly currentStep = computed<number>(() => {\n const total = this.totalSteps();\n if (total === 0) {\n return 0;\n }\n return Math.min(this.presenter.activeStepIndex() + 1, total);\n });\n\n /**\n * Completion percentage 0-100. `(active / max(total - 1, 1)) * 100`\n * so the final step renders the bar full.\n */\n protected readonly completedPercent = computed<number>(() => {\n const total = this.totalSteps();\n if (total === 0) {\n return 0;\n }\n const denominator = Math.max(total - 1, 1);\n return Math.max(0, Math.min(100, (this.presenter.activeStepIndex() / denominator) * 100));\n });\n\n protected readonly captionText = computed<string>(() =>\n this.i18n().textStepperFormat(this.currentStep(), this.totalSteps()),\n );\n\n /**\n * Aggregate error caption. A single marked step names itself\n * (`\"Payment: Errored\"`, or `\"Payment: Not allowed\"` for a refused step\n * change), several collapse to the i18n count phrase. Empty when no step\n * is marked, which keeps the error line quiet.\n */\n protected readonly errorText = computed<string>(() =>\n resolveStepperErrorSummary(\n this.stateView,\n this.presenter.stepsOnly,\n untracked(() => this.i18n()),\n (node: CngxStepNode) =>\n node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0],\n ),\n );\n}\n","@if (totalSteps() === 0) {\n @let emptyTpl = resolvedEmptyTemplate();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n} @else {\n <cngx-progress\n class=\"cngx-progress-bar-stepper__bar\"\n [progress]=\"completedPercent()\"\n [label]=\"captionText()\"\n ></cngx-progress>\n @if (showStepCount()) {\n <cngx-stepper-count class=\"cngx-progress-bar-stepper__caption\" [live]=\"false\" />\n }\n}\n<!-- Outside the zero-step gate: the status region must pre-exist its content to announce. -->\n<span\n cngxStepperErrorLine\n block=\"cngx-progress-bar-stepper__error\"\n [text]=\"errorText()\"\n [reason]=\"stateView.refusalOnly() ? 'refused' : null\"\n></span>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n inject,\n input,\n type Signal,\n type TemplateRef,\n untracked,\n} from '@angular/core';\n\nimport {\n CngxDotStepperDot,\n type CngxDotStepperDotContext,\n CngxStepperEmpty,\n CngxStepperPresenter,\n CngxStepperSwipeNav,\n CNGX_STEPPER_HOST,\n createStepperAccname,\n createStepperStateView,\n injectStepperConfig,\n injectStepperI18n,\n resolveStepperErrorSummary,\n type CngxStepNode,\n} from '@cngx/common/stepper';\nimport { CngxIconSvg } from '@cngx/common/display';\nimport { CngxSwipe } from '@cngx/common/interactive';\nimport { injectDirection, resolveInlineStep } from '@cngx/core';\nimport { CNGX_ICON_BAN, CNGX_ICON_EXCLAMATION } from '@cngx/utils';\n\nimport { CngxStepperErrorLine } from './stepper-error-line.component';\n\n/**\n * Dot stepper variant. Mobile-first sequential-flow indicator. Renders\n * one labelled `<span role=\"img\">` per step (a name-permitting role, so\n * each dot announces \"Step N of M: label\") inside a\n * `<div role=\"group\" aria-roledescription=\"step indicator\">`. The active\n * dot carries `aria-current=\"step\"` per the W3C APG step-indicator\n * pattern (NOT `role=\"tablist\"` / `role=\"tab\"` - those are reserved\n * for parallel content panels, not sequential flow).\n *\n * Tap-to-select is intentionally NOT wired on individual dots: under\n * the APG pattern each dot is a label, not a button, and attaching\n * `(click)` to `role=\"img\"` conflates two ARIA contracts. Navigation\n * is offered uniformly via three modalities owned by the host element:\n * arrow / Home / End keys, the composed `CngxStepperSwipeNav` dot-row\n * gesture, and the two-way `[(activeStepIndex)]` binding for\n * external buttons. Consumers wanting per-dot tap-to-jump compose the\n * parent `<cngx-stepper>` (whose mobile-collapse `dots` branch\n * renders each dot as a `<button>`).\n *\n * Theming flows through new `--cngx-dot-step-*` custom properties whose\n * defaults cascade through `var(--cngx-step-active-fill, ...)`, so the\n * Phase A active-fill chain reaches the dot variant without duplication.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/dot-stepper.component.ts\n * @since 0.3.0\n * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxTextStepper\n * @slot cngxDotStepperDot Replaces one dot; gets its index and active state.\n * @slot cngxStepperEmpty Renders when no step is projected at all.\n * <example-url>/#/ui/stepper/dot-stepper/mobile-carousel</example-url>\n * @axis level organism\n */\n@Component({\n selector: 'cngx-dot-stepper',\n exportAs: 'cngxDotStepper',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NgTemplateOutlet, CngxIconSvg, CngxStepperErrorLine, CngxSwipe],\n hostDirectives: [\n {\n directive: CngxStepperPresenter,\n inputs: ['activeStepIndex', 'linear'],\n outputs: ['activeStepIndexChange'],\n },\n {\n directive: CngxStepperSwipeNav,\n inputs: ['mobileSwipe'],\n },\n ],\n templateUrl: './dot-stepper.component.html',\n styleUrl: './dot-stepper.component.css',\n host: {\n class: 'cngx-dot-stepper',\n role: 'group',\n // Not tab-reachable while step-less: an empty focus stop that only\n // announces the accname over no content is noise, not navigation.\n '[attr.tabindex]': \"stepNodes().length === 0 ? null : '0'\",\n '[attr.aria-roledescription]': 'i18n().stepIndicatorRoleDescription',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n '[attr.aria-labelledby]': 'ariaLabelledBy()',\n '[attr.aria-invalid]': 'stateView.hasAnyError() ? \"true\" : null',\n '(keydown)': 'handleKeyDown($event)',\n },\n})\nexport class CngxDotStepper {\n /**\n * Accessible name of the stepper host, bound as `[aria-label]`. Resolution order: this input,\n * then the `stepperLabel` string of the stepper i18n bundle. Ignored while a non-empty\n * `[aria-labelledby]` is set.\n */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n /**\n * Id reference list naming the stepper host, bound as `[aria-labelledby]`. A non-empty value\n * is written to the host and suppresses the `aria-label` cascade, so the host carries no\n * `aria-label` at all.\n */\n readonly ariaLabelledBy = input<string | undefined>(undefined, { alias: 'aria-labelledby' });\n\n protected readonly presenter = inject(CNGX_STEPPER_HOST);\n protected readonly i18n = injectStepperI18n();\n protected readonly config = injectStepperConfig();\n\n /** Shared accname cascade (input → `i18n.stepperLabel`). */\n protected readonly resolvedAriaLabel = createStepperAccname({\n ariaLabel: this.ariaLabel,\n ariaLabelledBy: this.ariaLabelledBy,\n i18n: this.i18n,\n });\n /** Mobile-swipe routing surface composed via hostDirectives. */\n protected readonly swipeNav = inject(CngxStepperSwipeNav, { host: true });\n\n /** Document writing direction - flips the inline next/previous arrows under `rtl` (APG). */\n private readonly direction = injectDirection();\n\n /** Error marks drawn over an errored (alert) or refused (ban) dot. */\n protected readonly exclamationIcon = CNGX_ICON_EXCLAMATION;\n protected readonly banIcon = CNGX_ICON_BAN;\n\n protected readonly stepNodes: Signal<readonly CngxStepNode[]> = this.presenter.stepsOnly;\n protected readonly activeIndex = computed<number>(() => this.presenter.activeStepIndex());\n\n /** Shared per-step/aggregate state derivations - the single error source. */\n protected readonly stateView = createStepperStateView({\n presenter: this.presenter,\n stepsOnly: this.stepNodes,\n });\n\n /**\n * Aggregate error line. The dot row only colours the errored dot, so\n * the real reason (the `[error]` string / aggregator label) needs a\n * text surface; this is it. Falls back to the count phrase for\n * multiple errors.\n */\n protected readonly errorText = computed<string>(() =>\n resolveStepperErrorSummary(\n this.stateView,\n this.stepNodes,\n untracked(() => this.i18n()),\n (node) => node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0],\n ),\n );\n\n private readonly dotSlot = contentChild(CngxDotStepperDot);\n private readonly emptySlot = contentChild(CngxStepperEmpty);\n\n /**\n * Empty-state cascade mirroring `<cngx-stepper>`: per-instance\n * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.\n * Gates the dot row so a step-less flow shows the placeholder\n * instead of an empty group.\n */\n protected readonly resolvedEmptyTemplate = computed<TemplateRef<void> | null>(\n () => this.emptySlot()?.templateRef ?? this.config.templates?.empty ?? null,\n );\n\n /**\n * Resolved dot-body template cascade: per-instance `*cngxDotStepperDot`\n * directive > `CNGX_STEPPER_CONFIG.templates.dotStepperDot` > `null`\n * (built-in empty body). Pillar 1 - resolution is a `computed`, not\n * manual sync.\n */\n protected readonly resolvedDotTemplate = computed<TemplateRef<CngxDotStepperDotContext> | null>(\n () => this.dotSlot()?.templateRef ?? this.config.templates?.dotStepperDot ?? null,\n );\n\n protected isActive(node: CngxStepNode, index: number): boolean {\n return index === this.activeIndex() && node.kind === 'step';\n }\n\n protected isCompleted(index: number): boolean {\n return index < this.activeIndex();\n }\n\n /**\n * Resolved `data-state` for the dot: `'error'` whenever the error marker\n * fires (covers a commit rejection of either kind and the error\n * aggregator, not just a literal `state === 'error'`), otherwise the raw\n * step status.\n */\n protected dotState(node: CngxStepNode): string {\n return this.stateView.hasErrorMarker(node) ? 'error' : node.state();\n }\n\n protected ariaLabelFor(node: CngxStepNode, index: number): string {\n const i18n = this.i18n();\n const base = i18n.selectedStep(node.label(), index + 1, this.stepNodes().length);\n if (this.stateView.hasError(node)) {\n return i18n.stepWithDetail(base, i18n.statusLabels.errored);\n }\n if (this.stateView.isRefused(node)) {\n return i18n.stepWithDetail(base, i18n.statusLabels.refused);\n }\n return base;\n }\n\n /** Build the slot context for `*cngxDotStepperDot`. */\n protected dotContextFor(node: CngxStepNode, index: number): CngxDotStepperDotContext {\n return {\n $implicit: index,\n index,\n node,\n active: this.isActive(node, index),\n completed: this.isCompleted(index),\n };\n }\n\n protected handleKeyDown(event: KeyboardEvent): void {\n // Linear mode is enforced by the presenter, not by silencing the\n // keyboard. `selectNext` routes through `presenter.select()` which\n // refuses jumps over incomplete steps; `selectPrevious` is the\n // ungated direct back-move. `Home` is always a back-move; `End`\n // routes through `select()` and is gated when intermediate steps\n // are incomplete. Disabling the whole handler in linear mode\n // killed back-nav too, which is the inverse of the W3C APG\n // step-indicator pattern (read-back should always be reachable).\n // The inline pair (ArrowLeft/ArrowRight) flips under rtl via the kernel;\n // the block pair (ArrowUp/ArrowDown) and Home/End never flip.\n const inlineStep = resolveInlineStep(event.key, this.direction());\n const isNext = inlineStep === 1 || event.key === 'ArrowDown';\n const isPrev = inlineStep === -1 || event.key === 'ArrowUp';\n if (isNext) {\n event.preventDefault();\n this.presenter.selectNext();\n } else if (isPrev) {\n event.preventDefault();\n this.presenter.selectPrevious();\n } else if (event.key === 'Home') {\n event.preventDefault();\n this.presenter.select(0);\n } else if (event.key === 'End') {\n event.preventDefault();\n this.presenter.select(this.stepNodes().length - 1);\n }\n }\n}\n","@if (stepNodes().length === 0) {\n @let emptyTpl = resolvedEmptyTemplate();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n} @else {\n <div\n class=\"cngx-dot-stepper__row\"\n cngxSwipe\n axis=\"x\"\n [enabled]=\"swipeNav.swipeEnabled()\"\n (swiped)=\"swipeNav.handleSwipe($event)\"\n >\n @for (node of stepNodes(); track node.id; let i = $index) {\n @let dotTpl = resolvedDotTemplate();\n <!--\n The cell stacks the error mark over the dot. The dot itself stays\n :empty without a consumer slot, which the chrome-strip rule keys off.\n -->\n <span class=\"cngx-dot-stepper__cell\">\n <span\n class=\"cngx-dot-stepper__dot\"\n role=\"img\"\n [class.cngx-dot-stepper__dot--active]=\"isActive(node, i)\"\n [class.cngx-dot-stepper__dot--completed]=\"i < activeIndex()\"\n [class.cngx-dot-stepper__dot--error]=\"stateView.hasErrorMarker(node)\"\n [attr.aria-current]=\"isActive(node, i) ? 'step' : null\"\n [attr.aria-label]=\"ariaLabelFor(node, i)\"\n [attr.data-state]=\"dotState(node)\"\n [attr.data-reason]=\"stateView.rejectionReason(node)\"\n >\n @if (dotTpl) {\n <ng-container *ngTemplateOutlet=\"dotTpl; context: dotContextFor(node, i)\" />\n }\n </span>\n @if (stateView.hasErrorMarker(node)) {\n <svg\n class=\"cngx-dot-stepper__dot-glyph\"\n [cngxIconSvg]=\"stateView.rejectionReason(node) === 'refused' ? banIcon : exclamationIcon\"\n ></svg>\n }\n </span>\n }\n </div>\n}\n\n<span\n cngxStepperErrorLine\n block=\"cngx-dot-stepper__error\"\n [text]=\"errorText()\"\n [reason]=\"stateView.refusalOnly() ? 'refused' : null\"\n></span>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n inject,\n input,\n type Signal,\n type TemplateRef,\n untracked,\n} from '@angular/core';\n\nimport {\n CngxStepperEmpty,\n CngxStepperPresenter,\n CNGX_STEPPER_HOST,\n createStepperStateView,\n injectStepperConfig,\n injectStepperI18n,\n resolveStepperErrorSummary,\n type CngxStepNode,\n} from '@cngx/common/stepper';\n\nimport { CngxStepperErrorLine } from './stepper-error-line.component';\n\n/**\n * Text stepper variant. Smallest possible stepper: an always-mounted\n * `<span aria-live=\"polite\">` driven by the presenter (empty while no\n * step is projected, so a live load never announces `Step 0 of 0`).\n * Renders `Step N of M` by default (sourced from\n * `CngxStepperI18n.textStepperFormat`); optional `[showCurrentLabel]`\n * appends the active step's label next to the count. A step-less flow\n * renders the `CNGX_STEPPER_CONFIG` empty-template cascade instead.\n * Material consumers inherit surrounding text styling via CSS\n * inheritance, no theme bridge required.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/text-stepper.component.ts\n * @since 0.3.0\n * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxDotStepper\n * @slot cngxStepperEmpty Renders when no step is projected at all.\n * <example-url>/#/ui/stepper/text-stepper/inline-progress</example-url>\n * @axis level organism\n */\n@Component({\n selector: 'cngx-text-stepper',\n exportAs: 'cngxTextStepper',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NgTemplateOutlet, CngxStepperErrorLine],\n hostDirectives: [\n {\n directive: CngxStepperPresenter,\n inputs: ['activeStepIndex', 'linear'],\n outputs: ['activeStepIndexChange'],\n },\n ],\n templateUrl: './text-stepper.component.html',\n styleUrl: './text-stepper.component.css',\n host: {\n class: 'cngx-text-stepper',\n '[attr.aria-invalid]': 'stateView.hasAnyError() ? \"true\" : null',\n },\n})\nexport class CngxTextStepper {\n /** Append the active step's label to the count text. Off by default. */\n readonly showCurrentLabel = input<boolean>(false);\n\n protected readonly presenter = inject(CNGX_STEPPER_HOST);\n protected readonly i18n = injectStepperI18n();\n protected readonly config = injectStepperConfig();\n\n private readonly emptySlot = contentChild(CngxStepperEmpty);\n\n /**\n * Empty-state cascade mirroring `<cngx-stepper>`: per-instance\n * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.\n * Rendered next to the (empty) live span so a step-less flow shows\n * the placeholder instead of a bare `Step 0 of 0` count.\n */\n protected readonly resolvedEmptyTemplate = computed<TemplateRef<void> | null>(\n () => this.emptySlot()?.templateRef ?? this.config.templates?.empty ?? null,\n );\n\n protected readonly stepNodes: Signal<readonly CngxStepNode[]> = this.presenter.stepsOnly;\n\n /** Shared per-step/aggregate state derivations - the single error source. */\n protected readonly stateView = createStepperStateView({\n presenter: this.presenter,\n stepsOnly: this.stepNodes,\n });\n\n protected readonly totalSteps = computed<number>(() => this.stepNodes().length);\n\n protected readonly currentStep = computed<number>(() => {\n const total = this.totalSteps();\n if (total === 0) {\n return 0;\n }\n return Math.min(this.presenter.activeStepIndex() + 1, total);\n });\n\n protected readonly stepText = computed<string>(() => {\n const total = this.totalSteps();\n // Empty at zero steps: the always-mounted live span must not\n // announce a nonsensical 'Step 0 of 0'.\n if (total === 0) {\n return '';\n }\n // Live region: copy and the step label (which a consumer may translate)\n // are read untracked so a language switch does not re-speak the\n // caption; the next step change speaks the new language.\n const current = this.currentStep();\n const base = untracked(() => this.i18n().textStepperFormat(current, total));\n if (!this.showCurrentLabel()) {\n return base;\n }\n const idx = this.presenter.activeStepIndex();\n const node = this.stepNodes()[idx];\n if (!node) {\n return base;\n }\n return untracked(() => this.i18n().stepWithDetail(base, node.label()));\n });\n\n /**\n * Aggregate error sub-line text. A single marked step names itself\n * (`\"Payment: Errored\"`, or `\"Payment: Not allowed\"` for a refused step\n * change), several collapse to the i18n count phrase (`\"2 errors\"`).\n * Empty when no step is marked, which keeps the error line quiet.\n */\n protected readonly errorText = computed<string>(() =>\n resolveStepperErrorSummary(\n this.stateView,\n this.stepNodes,\n untracked(() => this.i18n()),\n (node: CngxStepNode) =>\n node.errorMessage?.() ?? node.errorAggregator?.()?.errorLabels?.()?.[0],\n ),\n );\n}\n","<!--\n Count span and error line stay mounted in every state: a live region\n inserted together with its content is not reliably announced, so\n zero-step / no-error states empty the text instead of removing the\n element. Both are clipped out of flow while empty.\n-->\n<span\n class=\"cngx-text-stepper__text\"\n aria-live=\"polite\"\n [attr.data-empty]=\"stepText() ? null : ''\"\n >{{ stepText() }}</span\n>\n@if (totalSteps() === 0) {\n @let emptyTpl = resolvedEmptyTemplate();\n @if (emptyTpl) {\n <ng-container *ngTemplateOutlet=\"emptyTpl\"></ng-container>\n }\n}\n<span\n cngxStepperErrorLine\n block=\"cngx-text-stepper__error\"\n [text]=\"errorText()\"\n [reason]=\"stateView.refusalOnly() ? 'refused' : null\"\n></span>\n","import {\n afterEveryRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n DOCUMENT,\n ElementRef,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { CNGX_FOCUSABLE_SELECTOR } from '@cngx/common/a11y';\nimport {\n CNGX_STEPPER_HOST,\n createStepperHostProxy,\n type CngxStepperHost,\n} from '@cngx/common/stepper';\n\nconst REGIONS =\n '.cngx-stepper-footer__start, .cngx-stepper-footer__center, .cngx-stepper-footer__end';\n\n/**\n * Navigation action-bar molecule for the stepper family. \\\n * Lays out three regions - **start** (Back), **center** (progress hint), **end** (Continue / Finish). \\\n * Wires the {@link CNGX_STEPPER_HOST} for any nav atoms a consumer drops inside.\n *\n * **Resolves its host like `CngxStepperCount`:** \\\n * An explicit `[host]` input for placement outside the stepper tree, falling back to the ambient\n * host injected from an ancestor `<cngx-stepper>` / `<cngx-mat-stepper>`\n * (`skipSelf`, so the footer reads the real presenter rather than its own\n * re-provided proxy). \\\n * It then re-provides `CNGX_STEPPER_HOST` as a live\n * {@link createStepperHostProxy} over the resolved host, so child\n * `[cngxStepperPrevious]` / `[cngxStepperNext]` atoms resolve it\n * ambiently whether the footer is nested or used standalone with\n * `[host]`. \\\n * `providers` (not `viewProviders`) carries the proxy to the\n * consumer-projected button content. With no host at all, the proxy's\n * neutral set renders the nav buttons disabled.\n *\n * **Keeps focus in a region when its control is replaced:** \\\n * When the focused control of a region leaves the DOM (Continue swapped\n * for Finish by an `@if`) and focus fell to `body`, the footer focuses\n * the first focusable control of the same region after that render. Focus\n * the user had already moved out of the footer stays where it is.\n *\n * ```html\n * <cngx-stepper #s=\"cngxStepper\"> … </cngx-stepper>\n * <cngx-stepper-footer [host]=\"s.presenter\">\n * <button cngxStepperFooterStart cngxStepperPrevious>Back</button>\n * <cngx-stepper-count cngxStepperFooterCenter />\n * <button cngxStepperFooterEnd cngxStepperNext>Continue</button>\n * </cngx-stepper-footer>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/footer/stepper-footer.component.ts\n * @since 0.3.0\n * @relatedTo CngxStepper, CngxStepperPrevious, CngxStepperNext, CngxStepperComplete, CngxStepperCount\n * <example-url>/#/ui/stepper/stepper-footer/back-continue</example-url>\n * <example-url>/#/ui/stepper/stepper-footer/save-draft-extra-button</example-url>\n * <example-url>/#/ui/stepper/stepper-footer/footer-with-progress-center</example-url>\n * <example-url>/#/ui/stepper/stepper-footer/percent-complete-center</example-url>\n * <example-url>/#/ui/stepper/stepper-footer/segmented-progress-center</example-url>\n * <example-url>/#/ui/stepper/stepper-footer/complete-finish-button</example-url>\n * <example-url>/#/ui/stepper/stepper-footer/async-commit-status</example-url>\n * @axis level molecule\n */\n@Component({\n selector: 'cngx-stepper-footer',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxStepperFooter',\n host: {\n class: 'cngx-stepper-footer',\n '(focusin)': 'trackFocus($event)',\n '(focusout)': 'forgetFocus($event)',\n },\n providers: [\n {\n provide: CNGX_STEPPER_HOST,\n useFactory: (footer: CngxStepperFooter) =>\n createStepperHostProxy(() => footer.resolvedHost()),\n deps: [CngxStepperFooter],\n },\n ],\n template: `\n <div class=\"cngx-stepper-footer__start\">\n <ng-content select=\"[cngxStepperFooterStart]\" />\n </div>\n <div class=\"cngx-stepper-footer__center\">\n <ng-content select=\"[cngxStepperFooterCenter]\" />\n </div>\n <div class=\"cngx-stepper-footer__end\">\n <ng-content select=\"[cngxStepperFooterEnd]\" />\n </div>\n `,\n styleUrl: './stepper-footer.css',\n})\nexport class CngxStepperFooter {\n /**\n * Explicit stepper-host reference for placement *outside* the stepper\n * tree (`[host]=\"s.presenter\"`). When unset, the ambient\n * {@link CNGX_STEPPER_HOST} from an ancestor stepper is used.\n */\n readonly host = input<CngxStepperHost | null>(null);\n\n // `skipSelf` so this never resolves the proxy this component itself\n // provides - it reads the ancestor stepper's presenter.\n private readonly injectedHost = inject(CNGX_STEPPER_HOST, { optional: true, skipSelf: true });\n\n /** Resolved host: explicit input wins, else the ambient ancestor host. */\n readonly resolvedHost = computed<CngxStepperHost | null>(() => this.host() ?? this.injectedHost);\n\n private readonly hostEl = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly document = inject(DOCUMENT);\n\n // Firefox, WebKit and jsdom fire no focusout when a focused node is\n // removed, so the last focused control is tracked on focusin and checked\n // after each render instead.\n private lastFocus: { readonly control: HTMLElement; readonly region: HTMLElement } | null = null;\n\n constructor() {\n afterEveryRender(() => this.restoreFocus());\n }\n\n /** @internal */\n protected trackFocus(event: FocusEvent): void {\n this.lastFocus = null;\n const control = event.target;\n if (!(control instanceof HTMLElement)) {\n return;\n }\n const region = control.closest<HTMLElement>(REGIONS);\n if (region?.parentElement === this.hostEl) {\n this.lastFocus = { control, region };\n }\n }\n\n /** @internal */\n protected forgetFocus(event: FocusEvent): void {\n const last = this.lastFocus;\n if (event.target !== last?.control || !last) {\n return;\n }\n // Chromium also fires focusout when the focused control is removed; the\n // render hook restores that case in the same tick, before this check. A\n // control still rendered here means the user moved focus out.\n queueMicrotask(() => {\n if (this.lastFocus === last && last.control.isConnected) {\n this.lastFocus = null;\n }\n });\n }\n\n private restoreFocus(): void {\n const last = this.lastFocus;\n if (!last || last.control.isConnected) {\n return;\n }\n this.lastFocus = null;\n if (this.document.activeElement !== this.document.body) {\n return;\n }\n last.region.querySelector<HTMLElement>(CNGX_FOCUSABLE_SELECTOR)?.focus();\n }\n}\n","import { Directive } from '@angular/core';\n\n/**\n * Marker for the footer's leading region (inline-start). Place on the\n * element you want in the start slot - typically a Back control.\n *\n * ```html\n * <button cngxStepperFooterStart cngxStepperPrevious>Back</button>\n * ```\n *\n * @since 0.3.0\n * @relatedTo CngxStepperFooter, CngxStepperFooterCenter, CngxStepperFooterEnd\n */\n@Directive({\n selector: '[cngxStepperFooterStart]',\n standalone: true,\n host: { class: 'cngx-stepper-footer__slot' },\n})\nexport class CngxStepperFooterStart {}\n\n/**\n * Marker for the footer's center region - a progress hint, a\n * `<cngx-stepper-count>`, or a \"50% complete\" caption.\n *\n * @since 0.3.0\n * @relatedTo CngxStepperFooter, CngxStepperFooterStart, CngxStepperFooterEnd\n */\n@Directive({\n selector: '[cngxStepperFooterCenter]',\n standalone: true,\n host: { class: 'cngx-stepper-footer__slot' },\n})\nexport class CngxStepperFooterCenter {}\n\n/**\n * Marker for the footer's trailing region (inline-end) - typically a\n * Continue / Finish control, optionally preceded by a \"Save draft\".\n *\n * @since 0.3.0\n * @relatedTo CngxStepperFooter, CngxStepperFooterStart, CngxStepperFooterCenter\n */\n@Directive({\n selector: '[cngxStepperFooterEnd]',\n standalone: true,\n host: { class: 'cngx-stepper-footer__slot' },\n})\nexport class CngxStepperFooterEnd {}\n","/**\n * @module `@cngx/ui/stepper`\n *\n * Level-4 organism - CNGX-standard `<cngx-stepper>` skin over the\n * Level-2 `CngxStepperPresenter` from `@cngx/common/stepper`.\n * Composes presenter + roving tabindex + focus restore + live\n * region via `hostDirectives`. Material consumers reach for\n * `@cngx/ui/mat-stepper` instead.\n */\n\nexport { CngxStepper } from './stepper.component';\nexport { CngxProgressBarStepper } from './progress-bar-stepper.component';\nexport { CngxDotStepper } from './dot-stepper.component';\nexport { CngxTextStepper } from './text-stepper.component';\nexport { CngxStepperFooter } from './footer/stepper-footer.component';\nexport {\n CngxStepperFooterStart,\n CngxStepperFooterCenter,\n CngxStepperFooterEnd,\n} from './footer/stepper-footer-regions';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;AAiBG;MA+CU,oBAAoB,CAAA;;AAEtB,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;AAGhC,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,0EAAU;AAExC;;;;AAIG;AACM,IAAA,MAAM,GAAG,KAAK,CAAmB,IAAI,6EAAC;IAE5B,IAAI,GAAG,QAAQ,CAAC,MACjC,IAAI,CAAC,MAAM,EAAE,KAAK,SAAS,GAAG,aAAa,GAAG,eAAe,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAC9D;uGAhBU,oBAAoB,EAAA,IAAA,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