{"version":3,"file":"allianz-ng-aquila-progress-stepper.mjs","names":["i1"],"sources":["../../../projects/ng-aquila/src/progress-stepper/progress-stepper.component.ts","../../../projects/ng-aquila/src/progress-stepper/progress-stepper.component.html","../../../projects/ng-aquila/src/progress-stepper/buttons.ts","../../../projects/ng-aquila/src/progress-stepper/multi/multi-step-group.component.ts","../../../projects/ng-aquila/src/progress-stepper/multi/multi-step-group.component.html","../../../projects/ng-aquila/src/progress-stepper/progress-stepper-intl.ts","../../../projects/ng-aquila/src/progress-stepper/multi/multi-step-item.component.ts","../../../projects/ng-aquila/src/progress-stepper/multi/multi-step-item.component.html","../../../projects/ng-aquila/src/progress-stepper/multi/multi-step.component.ts","../../../projects/ng-aquila/src/progress-stepper/multi/multi-step.component.html","../../../projects/ng-aquila/src/progress-stepper/progress/progress.component.ts","../../../projects/ng-aquila/src/progress-stepper/progress/progress.component.html","../../../projects/ng-aquila/src/progress-stepper/single/single-step.component.ts","../../../projects/ng-aquila/src/progress-stepper/single/single-step.component.html","../../../projects/ng-aquila/src/progress-stepper/progress-stepper.module.ts"],"sourcesContent":["import { ErrorStateMatcher } from '@allianz/ng-aquila/utils';\nimport { CdkStep, CdkStepHeader, CdkStepper } from '@angular/cdk/stepper';\nimport {\n  AfterContentInit,\n  ChangeDetectionStrategy,\n  ChangeDetectorRef,\n  Component,\n  ContentChildren,\n  Directive,\n  forwardRef,\n  inject,\n  input,\n  OnChanges,\n  OnDestroy,\n  QueryList,\n} from '@angular/core';\nimport { FormControl, FormGroupDirective, NgForm } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil, takeWhile } from 'rxjs/operators';\n\n// We need to reference steps in stepper and stepper in steps. To prevent circular depenedency errors\n// Provide both components in a single file. Otherwise we would have to introduce interface/abstract classes\n// shared between both implementations.\n\n@Component({\n  selector: 'nx-step',\n  templateUrl: 'progress-stepper.component.html',\n  exportAs: 'nxStep',\n  providers: [{ provide: ErrorStateMatcher, useExisting: NxStepComponent }],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  standalone: true,\n})\nexport class NxStepComponent extends CdkStep implements ErrorStateMatcher, OnChanges, OnDestroy {\n  readonly stepper = inject<NxProgressStepperDirective>(\n    forwardRef(() => NxProgressStepperDirective),\n  );\n  private readonly _errorStateMatcher = inject(ErrorStateMatcher, { skipSelf: true });\n\n  constructor() {\n    super();\n\n    this.interacted = false;\n  }\n\n  private _stepControl: any;\n\n  /** The top level abstract control of the step. */\n  stepControl: any;\n\n  private isInteracted!: boolean;\n\n  readonly _destroyed = new Subject<void>();\n\n  wasCompleted = false;\n\n  /** Custom error state matcher that checks for validity of the step form. */\n  isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {\n    const originalErrorState = this._errorStateMatcher.isErrorState(control, form);\n\n    // Checks for the validity of a step form that is not submitted or touched,\n    // e.g when the user directly clicks the \"next\" button or directly on the step\n    const customErrorState = !!(control?.invalid && this.interacted);\n    return originalErrorState || customErrorState;\n  }\n\n  ngOnChanges(): void {\n    // We can't use the `changes: SimpleChanges` as a parameter here\n    // because CdkStep only defines the ngOnChanges() method.\n    super.ngOnChanges();\n\n    if (this.stepControl !== this._stepControl) {\n      this._stepControl = this.stepControl;\n\n      // If a step control changes its state, the stepper needs to update.\n      if (this._stepControl) {\n        this._stepControl.statusChanges\n          .pipe(\n            takeWhile(() => this._stepControl === this.stepControl),\n            takeUntil(this._destroyed),\n          )\n          .subscribe((status: any) => {\n            if (this.wasCompleted && status === 'DISABLED') {\n              this.stepper._stateChanged();\n            } else {\n              this.wasCompleted = status === 'VALID';\n              this.stepper._stateChanged();\n            }\n          });\n      }\n    }\n\n    if (this.interacted !== this.isInteracted) {\n      this.isInteracted = this.interacted;\n      if (this.stepper) {\n        this.stepper._stateChanged();\n      }\n    }\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n}\n\n/** @docs-private */\n@Directive({\n  selector: '[nxProgressStepper]',\n  exportAs: 'nxProgressStepper',\n  standalone: true,\n  providers: [{ provide: CdkStepper, useExisting: NxProgressStepperDirective }],\n})\nexport class NxProgressStepperDirective extends CdkStepper implements AfterContentInit {\n  // Do not initialize with an empty QueryList or the hasNext() function produces\n  // wrong results on init\n  /** Full list of steps inside the stepper, including inside nested steppers */\n  @ContentChildren(NxStepComponent, { descendants: true }) _steps!: QueryList<NxStepComponent>;\n\n  /** Steps that belong to the current stepper, excluding ones from nested steppers. */\n  readonly steps: QueryList<NxStepComponent> = new QueryList<NxStepComponent>();\n\n  _stepHeader = new QueryList<CdkStepHeader>();\n\n  /** Sets the label on the left side showing the current step label. Used for mobile viewports. */\n  readonly currentStepLabel = input<string>();\n\n  private readonly _cdr = inject(ChangeDetectorRef);\n\n  ngAfterContentInit(): void {\n    super.ngAfterContentInit();\n    // Mark the component for change detection whenever the content children query changes\n    this.steps.changes.pipe(takeUntil(this._destroyed)).subscribe(() => {\n      this._stateChanged();\n    });\n\n    // If a step control changes its state, the stepper needs to update.\n    this.steps\n      .filter((s) => !!s.stepControl)\n      .forEach((step) => {\n        step.stepControl.statusChanges.pipe(takeUntil(step._destroyed)).subscribe(() => {\n          this._stateChanged();\n        });\n      });\n\n    // we need to defer change detection that the nxStepperNext and NxStepperPrevious buttons\n    // can run change detection again, because they are initialized before the stepper content\n    Promise.resolve().then(() => {\n      this._cdr.detectChanges();\n    });\n  }\n\n  /** @docs-private */\n  get hasPrevious() {\n    return this.selectedIndex - 1 >= 0;\n  }\n\n  /** @docs-private */\n  get hasNext() {\n    return this.selectedIndex + 1 < this.count;\n  }\n\n  /** @docs-private */\n  get count() {\n    return this.steps ? this.steps.length : 0;\n  }\n\n  /** @docs-private */\n  get currentStep(): NxStepComponent | null {\n    if (this.count === 0 || this.selectedIndex === -1 || !this.steps) {\n      return null;\n    }\n\n    const steps = this.steps.toArray();\n    return steps[this.selectedIndex];\n  }\n\n  /** @docs-private */\n  get nextStep(): NxStepComponent | null {\n    if (this.selectedIndex + 1 >= this.steps.length) {\n      return null;\n    }\n\n    return this.steps.toArray()[this.selectedIndex + 1];\n  }\n\n  /** @docs-private */\n  get currentLabel() {\n    const step = this.currentStep;\n    if (!step) {\n      return '';\n    }\n\n    const label = step.stepLabel || step.label;\n\n    const currentStepLabel = this.currentStepLabel();\n    return currentStepLabel && label\n      ? `${currentStepLabel} ${this.selectedIndex + 1}/${this.count}: ${label}`\n      : '';\n  }\n}\n","<ng-template><ng-content></ng-content></ng-template>\n","import { CdkStepper, CdkStepperNext, CdkStepperPrevious } from '@angular/cdk/stepper';\nimport { ChangeDetectorRef, Directive, DoCheck, inject } from '@angular/core';\n\nimport { NxProgressStepperDirective } from './progress-stepper.component';\n\n@Directive({\n  selector: 'button[nxStepperNext]',\n  host: {\n    '[type]': 'type',\n    '[disabled]': 'disabled',\n  },\n  inputs: ['type'],\n  providers: [{ provide: CdkStepper, useExisting: NxProgressStepperDirective }],\n  standalone: true,\n})\nexport class NxStepperNextDirective extends CdkStepperNext implements DoCheck {\n  /** @docs-private */\n  disabled = false;\n\n  private readonly _cdr = inject(ChangeDetectorRef);\n\n  /**\n   * Implemented to prevent changed after checked error after stepper init.\n   * When the stepper initializes the directive is checked first before\n   * the stepper can check its content thus it doesn't know about it's children yet\n   * so _stepper.hasNext returns false and disables the buttons. In the same CD cycle\n   * after the stepper has checked its contents the button needs to be enabled resulting\n   * in the error.\n   */\n  ngDoCheck(): void {\n    const stepper = this._stepper as any as NxProgressStepperDirective;\n    if (this.disabled !== !stepper.hasNext) {\n      this.disabled = !stepper.hasNext;\n      this._cdr.markForCheck();\n    }\n  }\n}\n\n@Directive({\n  selector: 'button[nxStepperPrevious]',\n  host: {\n    '[type]': 'type',\n    '[disabled]': '!stepper.hasPrevious',\n  },\n  inputs: ['type'],\n  providers: [{ provide: CdkStepper, useExisting: NxProgressStepperDirective }],\n  standalone: true,\n})\nexport class NxStepperPreviousDirective extends CdkStepperPrevious {\n  get stepper(): NxProgressStepperDirective {\n    return this._stepper as NxProgressStepperDirective;\n  }\n}\n","import {\n  ChangeDetectionStrategy,\n  ChangeDetectorRef,\n  Component,\n  ContentChildren,\n  Input,\n  QueryList,\n} from '@angular/core';\n\nimport { NxStepComponent } from '../progress-stepper.component';\n\n@Component({\n  templateUrl: './multi-step-group.component.html',\n  selector: 'nx-step-group',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  standalone: true,\n})\nexport class NxMultiStepperGroupComponent {\n  /** @docs-private */\n  @ContentChildren(NxStepComponent, { descendants: true }) steps!: QueryList<NxStepComponent>;\n\n  /** Sets the label of a group that is shown to the user. */\n  @Input() set label(value: string) {\n    this._label = value;\n    this._cdr.markForCheck();\n  }\n  get label(): string {\n    return this._label;\n  }\n  private _label!: string;\n\n  constructor(private readonly _cdr: ChangeDetectorRef) {}\n}\n","<ng-template><ng-content></ng-content></ng-template>\n","import { Injectable, signal } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class NxProgressStepperIntl {\n  /** Prefix announced before a completed step's label */\n  readonly completedLabel = signal('Completed: ');\n\n  /** Prefix announced before the current step's label */\n  readonly currentLabel = signal('Current: ');\n\n  /** Prefix announced before the label of a step that is neither completed nor current */\n  readonly notCompletedLabel = signal('Not completed: ');\n}\n","import { NxIconModule } from '@allianz/ng-aquila/icon';\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { CdkStepHeader, CdkStepLabel } from '@angular/cdk/stepper';\nimport {\n  AfterViewInit,\n  ChangeDetectionStrategy,\n  ChangeDetectorRef,\n  Component,\n  inject,\n  Input,\n  input,\n  OnDestroy,\n} from '@angular/core';\n\nimport { NxMultiStepperDirection } from '../progress-stepper.models';\nimport { NxProgressStepperIntl } from '../progress-stepper-intl';\n\n/** @docs-private */\n@Component({\n  selector: 'nx-multi-step-item',\n  templateUrl: './multi-step-item.component.html',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  styleUrls: ['./multi-step-item.component.scss'],\n  host: {\n    '[class.nx-multi-step-item--vertical]': 'direction === \"vertical\"',\n    '[class.is-selected]': 'selected',\n    '[class.is-completed]': 'completed',\n    '[class.is-active]': 'active',\n    '[class.is-disabled]': 'disabled',\n    '[class.is-last]': 'last',\n    '[attr.aria-disabled]': 'disabled ? \"true\" : null',\n    role: 'tab',\n    '[attr.aria-controls]': 'ariaControls',\n    '[attr.aria-selected]': 'selected',\n    '[attr.aria-label]': '_stateLabel() + label()',\n  },\n  imports: [NxIconModule],\n})\nexport class NxMultiStepItemComponent extends CdkStepHeader implements OnDestroy, AfterViewInit {\n  /** The direction of the step */\n  @Input() set direction(value: NxMultiStepperDirection) {\n    this._direction = value;\n    this._cdr.markForCheck();\n  }\n  get direction(): NxMultiStepperDirection {\n    return this._direction;\n  }\n  private _direction: NxMultiStepperDirection = 'horizontal';\n\n  /** The label of the step. */\n  readonly label = input.required<CdkStepLabel | string>();\n\n  /** Sets the selected step. */\n  @Input() set selected(value: BooleanInput) {\n    this._selected = coerceBooleanProperty(value);\n    this._cdr.markForCheck();\n  }\n  get selected(): boolean {\n    return this._selected;\n  }\n  private _selected!: boolean;\n\n  /** Sets the active step. */\n  @Input() set active(value: BooleanInput) {\n    this._active = coerceBooleanProperty(value);\n    this._cdr.markForCheck();\n  }\n  get active(): boolean {\n    return this._active;\n  }\n  private _active!: boolean;\n\n  @Input() set disabled(value: BooleanInput) {\n    this._disabled = coerceBooleanProperty(value);\n    this._cdr.markForCheck();\n  }\n  get disabled(): boolean {\n    return this._disabled;\n  }\n  private _disabled!: boolean;\n\n  /** Sets the last step. */\n  @Input() set last(value: BooleanInput) {\n    this._last = coerceBooleanProperty(value);\n    this._cdr.markForCheck();\n  }\n  get last(): boolean {\n    return this._last;\n  }\n  private _last!: boolean;\n\n  /** Sets the step completed. */\n  @Input() set completed(value: BooleanInput) {\n    this._completed = coerceBooleanProperty(value);\n    this._cdr.markForCheck();\n  }\n  get completed(): boolean {\n    return this._completed;\n  }\n  private _completed!: boolean;\n\n  /** Sets the step was completed. */\n  @Input() set wasCompleted(value: BooleanInput) {\n    this._wasCompleted = coerceBooleanProperty(value);\n  }\n  get wasCompleted(): boolean {\n    return this._wasCompleted;\n  }\n  private _wasCompleted!: boolean;\n\n  @Input() set ariaControls(value: string) {\n    this._ariaControls = value;\n  }\n  get ariaControls() {\n    return this._ariaControls;\n  }\n  private _ariaControls!: string;\n\n  private readonly _cdr = inject(ChangeDetectorRef);\n  private readonly _focusMonitor = inject(FocusMonitor);\n  private readonly _intl = inject(NxProgressStepperIntl);\n\n  // Same condition as the checkmark in the template.\n  protected _stateLabel(): string {\n    if (this.selected) {\n      return this._intl.currentLabel();\n    }\n    if (this.wasCompleted || (this.completed && !this.disabled)) {\n      return this._intl.completedLabel();\n    }\n    return this._intl.notCompletedLabel();\n  }\n\n  ngAfterViewInit(): void {\n    this._focusMonitor.monitor(this._elementRef);\n  }\n\n  ngOnDestroy(): void {\n    this._focusMonitor.stopMonitoring(this._elementRef);\n  }\n}\n","<div class=\"label-box\">\n  <div class=\"dot\">\n    @if (selected) {\n      <div class=\"small-dot\"></div>\n    }\n    @if ((wasCompleted && !selected) || (completed && !disabled && !selected)) {\n      <nx-icon name=\"check\"></nx-icon>\n    }\n  </div>\n  @if (direction === 'vertical') {\n    <div class=\"label\" [attr.label]=\"label()\">{{ label() }}</div>\n  }\n</div>\n\n@if (!last) {\n  <div class=\"line\"></div>\n}\n","import { CdkStepper } from '@angular/cdk/stepper';\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\nimport {\n  AfterContentInit,\n  AfterViewChecked,\n  ChangeDetectionStrategy,\n  Component,\n  ContentChildren,\n  Input,\n  OnDestroy,\n  QueryList,\n  ViewChildren,\n} from '@angular/core';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { NxProgressStepperDirective, NxStepComponent } from '../progress-stepper.component';\nimport { NxMultiStepperDirection } from '../progress-stepper.models';\nimport { NxMultiStepperGroupComponent } from './multi-step-group.component';\nimport { NxMultiStepItemComponent } from './multi-step-item.component';\n\n@Component({\n  selector: 'nx-multi-stepper',\n  templateUrl: './multi-step.component.html',\n  styleUrls: ['../progress-stepper.component.scss', './multi-step.component.scss'],\n  providers: [\n    { provide: NxProgressStepperDirective, useExisting: NxMultiStepperComponent },\n    { provide: CdkStepper, useExisting: NxProgressStepperDirective },\n  ],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  host: {\n    '[class.nx-multi-stepper--vertical]': 'direction === \"vertical\"',\n  },\n  imports: [NxMultiStepItemComponent, NgClass, NgTemplateOutlet],\n})\nexport class NxMultiStepperComponent\n  extends NxProgressStepperDirective\n  implements OnDestroy, AfterContentInit, AfterViewChecked\n{\n  /**\n   * We need to set the `_stepHeader` property as `ViewChildren` here as it is a `ContentChildren` query in the CDK.\n   */\n  @ViewChildren(NxMultiStepItemComponent) _stepHeader!: QueryList<NxMultiStepItemComponent>;\n\n  /** @docs-private */\n  @ContentChildren(NxMultiStepperGroupComponent, { descendants: true })\n  groups!: QueryList<NxMultiStepperGroupComponent>;\n\n  /** Sets the direction of the multi stepper. */\n  @Input() set direction(value: NxMultiStepperDirection) {\n    this._direction = value;\n  }\n  get direction(): NxMultiStepperDirection {\n    return this._direction;\n  }\n  private _direction: NxMultiStepperDirection = 'horizontal';\n\n  ngAfterViewChecked(): void {\n    // the _keyManager is currently private in the CdkStepper and the CDK/Material way\n    // is to create to separate components for the vertical and horizontal stepper with no\n    // possibility to change it during runtime\n    // opened a ticket: https://github.com/angular/components/issues/21874\n    // for now the quick solution is the hacky way to access the private property\n\n    this['_keyManager'].withVerticalOrientation(this._direction === 'vertical'); // workaround: accessing private class member\n  }\n\n  ngAfterContentInit(): void {\n    super.ngAfterContentInit();\n\n    if (this.groups.length) {\n      this.steps.reset(this._stepsInGroups);\n      this.steps.notifyOnChanges();\n    }\n\n    this.groups.changes.pipe(takeUntil(this._destroyed)).subscribe(() => {\n      this.steps.reset(this._stepsInGroups);\n      this.steps.notifyOnChanges();\n    });\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n  }\n\n  _stepDisabled(index: number): boolean {\n    const steps = this.steps.toArray();\n\n    if (this.linear && index >= 0) {\n      return steps.slice(0, index).some((step) => {\n        const control = step.stepControl;\n        const isIncomplete = control\n          ? control.invalid || control.pending || !step.interacted\n          : !step.completed;\n        return isIncomplete && !step.optional;\n      });\n    }\n\n    return false;\n  }\n\n  private get _stepsInGroups(): NxStepComponent[] {\n    if (this.groups.length) {\n      return this.groups.reduce<NxStepComponent[]>(\n        (steps, group) => steps.concat(group.steps.toArray()),\n        [],\n      );\n    }\n\n    return [];\n  }\n\n  // Returns the index of a certain step\n  _getIndex(step: NxStepComponent): number {\n    return this.steps.toArray().indexOf(step);\n  }\n\n  _isGroupActive(groupIndex: number) {\n    return this.selectedIndex >= this.getGroupItemIndex(groupIndex);\n  }\n\n  _isGroupDisabled(groupIndex: number) {\n    return this._stepDisabled(this.getGroupItemIndex(groupIndex));\n  }\n\n  private getGroupItemIndex(groupIndex: number): number {\n    let count = 0;\n    const groups = this.groups.toArray();\n\n    for (let i = 0; i < groupIndex; i++) {\n      count += groups[i].steps.length;\n    }\n\n    return count;\n  }\n}\n","@if (direction === 'horizontal') {\n  <span class=\"nx-progress-stepper__title\">\n    <ng-content select=\"nx-label\"></ng-content>\n  </span>\n}\n\n<div class=\"nx-multi-stepper__items\" role=\"tablist\">\n  @if (groups.length === 0 || direction === 'horizontal') {\n    @for (step of steps; track step; let i = $index; let isLast = $last; let isFirst = $first) {\n      <nx-multi-step-item\n        (click)=\"!_stepDisabled(i) && step.select()\"\n        (keydown)=\"_onKeydown($event)\"\n        [last]=\"isLast\"\n        [tabindex]=\"_getFocusIndex() === i ? 0 : -1\"\n        [label]=\"step.stepLabel || step.label\"\n        [completed]=\"step.completed || step.wasCompleted\"\n        [selected]=\"selectedIndex === i\"\n        [active]=\"selectedIndex > i\"\n        [disabled]=\"_stepDisabled(i)\"\n        [direction]=\"direction\"\n        [ariaControls]=\"_getStepContentId(i)\"\n        [wasCompleted]=\"step.wasCompleted\"\n      >\n      </nx-multi-step-item>\n    }\n  } @else {\n    @for (group of groups; track group; let i = $index) {\n      <div class=\"nx-multi-stepper__group\">\n        <div\n          class=\"nx-multi-stepper__group-label\"\n          [class.is-active]=\"_isGroupActive(i)\"\n          [class.is-disabled]=\"_isGroupDisabled(i)\"\n        >\n          {{ group.label }}\n        </div>\n        <div class=\"nx-multi-stepper__group-items\">\n          @for (step of group.steps; track step; let isLast = $last) {\n            <nx-multi-step-item\n              (click)=\"!_stepDisabled(_getIndex(step)) && step.select()\"\n              (keydown)=\"_onKeydown($event)\"\n              [tabindex]=\"_getFocusIndex() === _getIndex(step) ? 0 : -1\"\n              [last]=\"isLast\"\n              [label]=\"step.stepLabel || step.label\"\n              [completed]=\"step.completed || step.wasCompleted\"\n              [selected]=\"selectedIndex === _getIndex(step)\"\n              [active]=\"selectedIndex > _getIndex(step)\"\n              [disabled]=\"_stepDisabled(_getIndex(step))\"\n              [direction]=\"direction\"\n              [wasCompleted]=\"step.wasCompleted\"\n              [ariaControls]=\"_getStepContentId(i)\"\n            >\n            </nx-multi-step-item>\n          }\n        </div>\n      </div>\n    }\n  }\n</div>\n\n@if (direction === 'horizontal') {\n  <div class=\"labels-container\">\n    @for (step of steps; track step; let i = $index) {\n      <div\n        class=\"label\"\n        tabindex=\"-1\"\n        [attr.aria-controls]=\"_getStepContentId(i)\"\n        [ngClass]=\"{ 'is-disabled': _stepDisabled(i), 'is-selected': selectedIndex === i }\"\n        (click)=\"!_stepDisabled(i) && step.select()\"\n      >\n        <span>{{ step.label }}</span>\n      </div>\n    }\n  </div>\n}\n\n<div class=\"nx-progress-stepper__mobile-label\">\n  {{ currentLabel }}\n</div>\n\n@for (step of steps; track step; let i = $index) {\n  <div\n    class=\"nx-progress-stepper__content\"\n    role=\"tabpanel\"\n    [id]=\"_getStepContentId(i)\"\n    [attr.aria-label]=\"currentLabel\"\n    [attr.aria-expanded]=\"selectedIndex === i\"\n  >\n    <ng-container [ngTemplateOutlet]=\"step.content\"></ng-container>\n  </div>\n}\n","import { NxProgressbarModule } from '@allianz/ng-aquila/progressbar';\nimport { clamp } from '@allianz/ng-aquila/utils';\nimport { CdkStepper } from '@angular/cdk/stepper';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n  ChangeDetectionStrategy,\n  Component,\n  inject,\n  Input,\n  input,\n  numberAttribute,\n} from '@angular/core';\n\nimport { NxProgressStepperDirective } from '../progress-stepper.component';\nimport { NxProgressStepperIntl } from '../progress-stepper-intl';\n\n@Component({\n  selector: 'nx-progress-stepper',\n  templateUrl: 'progress.component.html',\n  styleUrls: ['../progress-stepper.component.scss', './progress.component.scss'],\n  providers: [\n    { provide: NxProgressStepperDirective, useExisting: NxProgressStepperComponent },\n    { provide: CdkStepper, useExisting: NxProgressStepperDirective },\n  ],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxProgressbarModule, NgTemplateOutlet],\n})\nexport class NxProgressStepperComponent extends NxProgressStepperDirective {\n  private readonly _intl = inject(NxProgressStepperIntl);\n\n  /** Overrides the `aria-label` of the nx-progressbar. Defaults to \"Progress\" */\n  readonly progressbarAriaLabel = input<string | undefined>('Progress');\n\n  /** Sets the `aria-labelledby` of the nx-progressbar */\n  readonly progressbarAriaLabeledBy = input<string>();\n\n  /** Sets the current value/progress of the progress bar. */\n  @Input({ transform: numberAttribute }) set progress(value: number) {\n    this._progress = clamp(value || 0);\n  }\n  get progress(): number {\n    return this._progress;\n  }\n  private _progress = 0;\n\n  // Same condition as the `--inactive` class in the template.\n  protected _stateLabel(index: number): string {\n    if (index === this.selectedIndex) {\n      return this._intl.currentLabel();\n    }\n    return this.steps.get(index)?.completed\n      ? this._intl.completedLabel()\n      : this._intl.notCompletedLabel();\n  }\n}\n","<span class=\"nx-progress-stepper__title\">\n  <ng-content select=\"nx-label\"></ng-content>\n</span>\n\n<div class=\"nx-subprogress__items\">\n  @for (step of steps; track step; let i = $index) {\n    <div\n      [class.nx-subprogress__item--inactive]=\"selectedIndex !== i && !step.completed\"\n      [attr.aria-disabled]=\"selectedIndex !== i && !step.completed\"\n      [class.nx-subprogress__item--selected]=\"selectedIndex === i\"\n      class=\"nx-subprogress__item\"\n    >\n      <div class=\"nx-subprogress__counter\">\n        <div class=\"nx-subprogress__number\">\n          {{ i + 1 }}\n        </div>\n      </div>\n      <div class=\"nx-subprogress__label\">\n        <span class=\"nx-visually-hidden\">{{ _stateLabel(i) }}</span>{{\n          step.stepLabel || step.label\n        }}\n      </div>\n      @if (selectedIndex === i) {\n        <div class=\"nx-subprogress__progress\">\n          <nx-progressbar\n            [value]=\"progress\"\n            [ariaLabel]=\"progressbarAriaLabel()\"\n            [ariaLabelledBy]=\"progressbarAriaLabeledBy()\"\n          ></nx-progressbar>\n        </div>\n      }\n    </div>\n  }\n</div>\n\n<div class=\"nx-progress-stepper__mobile-label\">\n  {{ currentLabel }}\n</div>\n\n@for (step of steps; track step; let i = $index) {\n  <div\n    class=\"nx-progress-stepper__content\"\n    role=\"tabpanel\"\n    [id]=\"_getStepContentId(i)\"\n    [attr.aria-label]=\"currentLabel\"\n    [attr.aria-expanded]=\"selectedIndex === i\"\n  >\n    <ng-container [ngTemplateOutlet]=\"step.content\"></ng-container>\n  </div>\n}\n","import { NxProgressbarModule } from '@allianz/ng-aquila/progressbar';\nimport { CdkStepper } from '@angular/cdk/stepper';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input, input } from '@angular/core';\n\nimport { NxProgressStepperDirective } from '../progress-stepper.component';\n\n@Component({\n  selector: 'nx-single-stepper',\n  templateUrl: './single-step.component.html',\n  styleUrls: ['../progress-stepper.component.scss', './single-step.component.scss'],\n  providers: [\n    { provide: NxProgressStepperDirective, useExisting: NxSingleStepperComponent },\n    { provide: CdkStepper, useExisting: NxProgressStepperDirective },\n  ],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxProgressbarModule, NgTemplateOutlet],\n})\nexport class NxSingleStepperComponent extends NxProgressStepperDirective {\n  /** Sets the label on the right showing the next step. */\n  @Input('nextLabel') set rightLabel(v) {\n    this._rightLabel = v;\n  }\n  get rightLabel(): string {\n    return this._rightLabel;\n  }\n  private _rightLabel = 'Next step:';\n\n  /** Overrides the `aria-label` of the nx-progressbar. Defaults to \"Progress\" */\n  readonly progressbarAriaLabel = input<string | undefined>('Progress');\n\n  /** Sets the `aria-labelledby` of the nx-progressbar */\n  readonly progressbarAriaLabeledBy = input<string>();\n\n  /** @docs-private */\n  get progress() {\n    return (this.selectedIndex + 1) / this.count;\n  }\n\n  /** @docs-private */\n  get currentLabel() {\n    const step = this.currentStep;\n    const label = step!.stepLabel || step!.label;\n\n    return `\n    ${this.currentStepLabel()} ${this.selectedIndex + 1}/${this.count}: ${label}\n    `;\n  }\n\n  /** @docs-private */\n  get nextLabel() {\n    const step = this.nextStep;\n\n    if (step) {\n      const label = step.stepLabel || step.label;\n\n      return `\n        ${this.rightLabel} ${label}\n      `;\n    }\n\n    return null;\n  }\n}\n","<div class=\"nx-single-step-container\">\n  <span class=\"nx-progress-stepper__title\">\n    <ng-content select=\"nx-label\"></ng-content>\n  </span>\n\n  <nx-progressbar\n    [value]=\"progress\"\n    [ariaLabel]=\"progressbarAriaLabel()\"\n    [ariaLabelledBy]=\"progressbarAriaLabeledBy()\"\n  ></nx-progressbar>\n\n  <div class=\"nx-single-step__infos\">\n    <div class=\"nx-single-step__current\">\n      {{ currentLabel }}\n    </div>\n    <div class=\"nx-single-step__next\">\n      {{ nextLabel }}\n    </div>\n  </div>\n\n  <div class=\"nx-progress-stepper__mobile-label\">\n    {{ currentLabel }}\n  </div>\n</div>\n\n@for (step of steps; track step; let i = $index) {\n  <div\n    class=\"nx-progress-stepper__content\"\n    role=\"tabpanel\"\n    [id]=\"_getStepContentId(i)\"\n    [attr.aria-label]=\"currentLabel\"\n    [attr.aria-expanded]=\"selectedIndex === i\"\n  >\n    <ng-container [ngTemplateOutlet]=\"step.content\"></ng-container>\n  </div>\n}\n","import { NxLabelModule } from '@allianz/ng-aquila/base';\nimport { NxIconModule } from '@allianz/ng-aquila/icon';\nimport { NxProgressbarModule } from '@allianz/ng-aquila/progressbar';\nimport { CdkStepperModule } from '@angular/cdk/stepper';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NxStepperNextDirective, NxStepperPreviousDirective } from './buttons';\nimport { NxMultiStepperComponent } from './multi/multi-step.component';\nimport { NxMultiStepperGroupComponent } from './multi/multi-step-group.component';\nimport { NxMultiStepItemComponent } from './multi/multi-step-item.component';\nimport { NxProgressStepperComponent } from './progress/progress.component';\nimport { NxProgressStepperDirective, NxStepComponent } from './progress-stepper.component';\nimport { NxSingleStepperComponent } from './single/single-step.component';\n\n@NgModule({\n  imports: [\n    CommonModule,\n    CdkStepperModule,\n    NxIconModule,\n    NxProgressbarModule,\n    NxLabelModule,\n    NxProgressStepperDirective,\n    NxMultiStepperComponent,\n    NxStepComponent,\n    NxStepperNextDirective,\n    NxStepperPreviousDirective,\n    NxProgressStepperComponent,\n    NxSingleStepperComponent,\n    NxMultiStepItemComponent,\n    NxMultiStepperGroupComponent,\n  ],\n  exports: [\n    NxProgressStepperDirective,\n    NxSingleStepperComponent,\n    NxProgressStepperComponent,\n    NxMultiStepperComponent,\n    NxStepComponent,\n    NxStepperNextDirective,\n    NxStepperPreviousDirective,\n    NxMultiStepperGroupComponent,\n  ],\n})\nexport class NxProgressStepperModule {}\n"],"mappings":";;;;;;;;;;;;;;AAgCA,IAAa,kBAAb,MAAa,wBAAwB,QAAO;CAM1C,cAAA;EACE,MAAK;EANE,KAAA,UAAU,OACjB,iBAAiB,0BAA0B,CAAC;EAE7B,KAAA,qBAAqB,OAAO,mBAAmB,EAAE,UAAU,KAAI,CAAE;EAezE,KAAA,aAAa,IAAI,QAAO;EAEjC,KAAA,eAAe;EAZb,KAAK,aAAa;CACpB;CAcA,aAAa,SAA6B,MAAwC;EAChF,MAAM,qBAAqB,KAAK,mBAAmB,aAAa,SAAS,IAAI;EAI7E,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