import * as _angular_core from '@angular/core'; import { ElementRef } from '@angular/core'; import * as _siemens_element_translate_ng_translate from '@siemens/element-translate-ng/translate'; import { TranslatableString } from '@siemens/element-translate-ng/translate'; declare class SiWizardStepComponent { /** @internal */ readonly elementRef: ElementRef; /** * Heading displayed for the wizard step. * * @defaultValue '' */ readonly heading: _angular_core.InputSignal; /** * Whether the step is valid and allows navigation to subsequent steps. * * @defaultValue true */ readonly isValid: _angular_core.InputSignalWithTransform; /** * Whether the wizard navigates to the next step after emitting `next`. * * @defaultValue true */ readonly isNextNavigable: _angular_core.InputSignalWithTransform; /** * Whether the step is shown as failed in the wizard navigation. * * @defaultValue false */ readonly failed: _angular_core.InputSignalWithTransform; /** Emits when the user navigates forward from this step. */ readonly next: _angular_core.OutputEmitterRef; /** Emits when the user navigates back from this step. */ readonly back: _angular_core.OutputEmitterRef; /** Emits when the user completes the wizard from this step. */ readonly save: _angular_core.OutputEmitterRef; /** * Whether this step is currently active or not. * @defaultValue false */ readonly isActive: _angular_core.WritableSignal; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } interface StepItem { index: number; step: SiWizardStepComponent; } interface StepMetadata { canActivate: boolean; stateClass: string; ariaDisabled: 'true' | 'false'; ariaCurrent: 'step' | 'false'; icon: string; } declare class SiWizardComponent { /** em-based multipliers relative to the step title font-size. */ private static readonly minStepWidthEm; private static readonly maxStepWidthEm; private static readonly defaultStepWidthEm; private static readonly fallbackFontSize; /** Fixed horizontal padding of the step title (px-6 = 2 × 16px). */ private static readonly stepPadding; private readonly translateService; private readonly textMeasureService; private readonly focusTrapFactory; private readonly injector; protected readonly containerSteps: _angular_core.Signal | undefined>; protected readonly nextButton: _angular_core.Signal | undefined>; protected readonly saveButton: _angular_core.Signal | undefined>; /** * Description of back button. * * @defaultValue * ``` * t(() => $localize`:@@SI_WIZARD.BACK:Back`) * ``` */ readonly backText: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Description of next button. * * @defaultValue * ``` * t(() => $localize`:@@SI_WIZARD.NEXT:Next`) * ``` */ readonly nextText: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Hide the navigation buttons previous/next. * * @defaultValue false */ readonly hideNavigation: _angular_core.InputSignalWithTransform; /** * Description of save button. * * @defaultValue * ``` * t(() => $localize`:@@SI_WIZARD.SAVE:Save`) * ``` */ readonly saveText: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Hide the save button. * * @defaultValue false */ readonly hideSave: _angular_core.InputSignalWithTransform; /** * Text shown if you complete the wizard. * * @defaultValue * ``` * t(() => $localize`:@@SI_WIZARD.COMPLETED:Wizard completed!`) * ``` */ readonly completionText: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Description of cancel button. * * @defaultValue * ``` * t(() => $localize`:@@SI_WIZARD.CANCEL:Cancel`) * ``` */ readonly cancelText: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; /** * Show the cancel button * * @defaultValue false */ readonly hasCancel: _angular_core.InputSignalWithTransform; /** * Display a predefined page by the end of the wizard. * * @defaultValue false */ readonly enableCompletionPage: _angular_core.InputSignalWithTransform; /** * Define how many milliseconds the completion page is visible. * * @defaultValue 3000 */ readonly completionPageVisibleTime: _angular_core.InputSignal; /** * Class name of icon shown for current and upcoming steps. * * @defaultValue 'elementNotChecked' */ readonly stepIcon: _angular_core.InputSignal; /** * Class name of icon shown for the active step. * * @defaultValue 'elementRadioChecked' */ readonly stepActiveIcon: _angular_core.InputSignal; /** * Class name of icon shown when a step was completed. * * @defaultValue 'elementCheckedFilled' */ readonly stepCompletedIcon: _angular_core.InputSignal; /** * Class name of icon shown when a step had an error. * * @defaultValue 'elementWarningFilled' */ readonly stepFailedIcon: _angular_core.InputSignal; /** * Set the orientation of the wizard to vertical. * * @defaultValue false */ readonly verticalLayout: _angular_core.InputSignalWithTransform; /** * Set false to show navigation buttons in footer instead of inline. * * @defaultValue false */ readonly inlineNavigation: _angular_core.InputSignalWithTransform; /** * Use number representation for steps. * * @defaultValue false */ readonly showStepNumbers: _angular_core.InputSignalWithTransform; /** * Set to true to display a divider between the steps and the content in the vertical * * @defaultValue false */ readonly showVerticalDivider: _angular_core.InputSignalWithTransform; /** Set the wizard step container min size in vertical layout. */ readonly verticalMinSize: _angular_core.InputSignal; /** Set the wizard step container max size in vertical layout. */ readonly verticalMaxSize: _angular_core.InputSignal; /** Callback function triggered after the wizard has been completed. */ readonly completionAction: _angular_core.OutputEmitterRef; /** Callback function triggered if the wizard has been canceled. */ readonly wizardCancel: _angular_core.OutputEmitterRef; /** Get the current step wizard step index. */ get index(): number; /** Get number of wizard steps. */ get stepCount(): number; /** Get current visible wizard step. */ get currentStep(): SiWizardStepComponent | undefined; protected readonly steps: _angular_core.Signal; protected readonly visibleSteps: _angular_core.WritableSignal; protected readonly showCompletionPage: _angular_core.WritableSignal; /** The list of visible steps. */ protected readonly activeSteps: _angular_core.Signal; private readonly headingKeys; private readonly maxStepWidth; private readonly _index; private readonly _currentStep; protected readonly icons: Record<"elementNotChecked" | "elementRadioChecked" | "elementCheckedFilled" | "elementWarningFilled" | "elementCancel" | "elementChecked" | "elementLeft4" | "elementRight4", string>; protected readonly stepsMetadata: _angular_core.Signal; constructor(); protected activateStep(event: Event, stepIndex: number): void; private getStateClass; /** * Go to the next wizard step. * @param delta - optional number of steps to move forward. */ next(delta?: number): void; private getState; /** * Go to the previous wizard step. * @param delta - optional number of steps to move backwards. */ back(delta?: number): void; /** Triggers the save action to complete the wizard. */ save(): void; private activate; private focusStepContent; private focusNavigationButton; private measureMaxTextWidth; protected updateVisibleSteps(): void; private calculateVisibleStepCount; private computeVisibleSteps; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class SiWizardModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { SiWizardComponent, SiWizardModule, SiWizardStepComponent };