import * as i0 from '@angular/core'; import { AfterViewInit, QueryList, EventEmitter } from '@angular/core'; import { Subject } from 'rxjs'; import * as i1 from '@odx/angular'; /** * WizardStepComponent represents an individual step within a wizard navigation sequence. It can be configured * to display icons, listen for user interactions, and indicate various states such as active, passed, or valid. * This component interacts with the WizardComponent to manage the step progression and visibility. * * Has host directives WithTabIndex and WithDisabledState. * * @see {WithTabIndex} * @see {WithDisabledState} */ declare class WizardStepComponent { readonly element: i0.ElementRef; /** * Emitted when the step is chosen by the user, indicating that the step should be activated. * * @emits {WizardStepComponent} The chosen step. */ readonly stepChosen$: Subject; /** * Indicates if this step was the last one interacted with in the wizard sequence. * * @type {boolean} */ isLastTouched: boolean; /** * Indicates if this step is currently active. * * @type {boolean} */ active: boolean; /** * Indicates if this step has been passed in the navigation sequence. * * @type {boolean} */ passed: boolean; /** * Controls the visibility of this step in the UI. * * @type {boolean} */ visible: boolean; /** * Indicates if this step is valid and can be progressed to. * * @type {boolean} * @default false */ valid: boolean; /** * Indicates if this step has been touched by the user. * * @type {boolean} */ touched: boolean; /** * Sets the validation state of this step. * * @param {boolean} state - The new validation state. */ setValid(state: boolean): void; protected chooseStep(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * WizardComponent manages a series of steps, providing functionality for navigating forwards and backwards * through the steps. It dynamically adjusts the visibility of steps based on the available space and current active step. * The component supports both horizontal and vertical orientations and responds to changes in its container size. */ declare class WizardComponent implements AfterViewInit { private readonly destroyed; private readonly renderer; private readonly responsive$; private visibleStepCapacity; private readonly dottedLineStart; private readonly dottedLineEnd; private readonly windowRef; protected readonly steps: QueryList; readonly activeStep: i0.WritableSignal; readonly element: i0.ElementRef; /** * Indicates if the wizard layout should be vertical. When true, the wizard orientation changes to vertical. * * @type {boolean} * @default false */ vertical: boolean; /** * Indicates whether the wizard component is responsive * and hides the steps that do not fit in the available space. */ set responsive(value: boolean); /** * Event emitted when the active step changes, providing the index of the new active step. * * @emits {number} */ activeStepChanged: EventEmitter; ngAfterViewInit(): void; /** * Navigates to the next step in the wizard. */ nextStep(): void; /** * Navigates to the previous step in the wizard. */ previousStep(): void; /** * Sets the active step valid. */ setActiveStepValid(): void; /** * Sets the validity of a step at the specified index. * * @param {number} stepIndex - Index of the step to set validity. * @param {boolean} valid - Whether the step should be valid or not. */ setStepValid(stepIndex: number, valid: boolean): void; /** * Returns whether the step at the specified index is valid. * * @param {number} stepIndex - Index of the step to check validity. * @returns {boolean} - Whether the step is valid or not. */ isStepValid(stepIndex: number): boolean; /** * Returns whether the current active step is valid. * * @returns {boolean} - Whether the current step is valid or not. */ isCurrentStepValid(): boolean; private calculateVisibleStepCapacity; private getStyleFromCSS; private setActiveStep; private subscribeToStepSelection; private changeStepHandler; private setHiddenSteps; private hideOverflowSteps; private updateDottedLines; private isActiveStepOrNeighbour; private setDottedLineActive; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_vertical: unknown; static ngAcceptInputType_responsive: unknown; } declare class WizardModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { WizardComponent, WizardModule, WizardStepComponent };