import { StylableComponent } from "@wm/components/base"; import { AfterContentInit, AfterViewChecked, AfterViewInit, Injector, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core'; import { DynamicComponentRefProvider } from '@wm/core'; import { WizardStepComponent } from "./wizard-step/wizard-step.component"; import * as i0 from "@angular/core"; export declare class WizardComponent extends StylableComponent implements OnInit, AfterContentInit, AfterViewInit, AfterViewChecked, OnDestroy { static initializeProps: void; steps: QueryList; wizardAction: TemplateRef; message: { caption: string; type: string; }; currentStep: WizardStepComponent; stepClass: string; class: any; name: any; private readonly promiseResolverFn; actionsalignment: any; cancelable: any; enablenext: any; wizContext: any; cancelbtnlabel: any; donebtnlabel: any; previousbtnlabel: any; nextbtnlabel: any; defaultstep: any; fieldDefs: any; type: any; nodatamessage: any; private dynamicComponentProvider; private _dynamicContext; private dynamicStepIndex; dynamicWizard: any; defaultstepindex: any; private _isFirstLoad; autoActivation: boolean; private stepsSubscription; get hasPrevStep(): boolean; get hasNextStep(): boolean; get showDoneBtn(): boolean; get enablePrev(): boolean; get enableNext(): boolean; get enableDone(): boolean; /** * returns current step index of the Wizard's current step */ get currentStepIndex(): number; /** * returns weather the current step is first step or not */ get isFirstStep(): boolean; /** * returns weather the current step is last step or not */ get isLastStep(): boolean; constructor(inj: Injector, dynamicComponentProvider: DynamicComponentRefProvider, contexts: Array, explicitContext: any); /** * This method is used to register the dynamic steps. * After all steps are initialzed, update the querylist manually based on index. * @param stepRef - refrence of the wizardstep */ registerDynamicStep(stepRef: any): void; /** * This method is to add the wizard step dynamically * @param wizardSteps - list of wizardsteps */ addStep(wizardSteps: any): any[]; /** * This method is to remove the wizard step * @param step - index or name of the step */ removeStep(step: number | string): void; /** * returns next valid step. the index passed is also checked if its valid step * @param index * @returns {WizardStepComponent} */ private getNextValidStepFormIndex; /** * returns previous valid step. the index passed is also checked if its valid step * @param index * @returns {WizardStepComponent} */ private getPreviousValidStepFormIndex; /** * returns current step index value. * @returns {number} */ private getCurrentStepIndex; /** * returns stepRef when index is passed. * @param {number} index * @returns {WizardStepComponent} */ private getStepRefByIndex; /** * returns the index value of the step. * @param {WizardStepComponent} wizardStep * @returns {number} */ private getStepIndexByRef; /** * gets stepRef by searching on the name property. * @param {string} name * @returns {WizardStepComponent} */ private getStepRefByName; /** * sets default step as current step if configured * or finds first valid step and set it as current step. * @param {WizardStepComponent} step */ private setDefaultStep; /** * Selects the associated step when the wizard header is clicked. * @param $event * @param {WizardStepComponent} currentStep */ private onWizardHeaderClick; private isPromise; private handleNext; next(eventName?: string): void; private extendNextFn; prev(): void; private extendPrevFn; skip(): void; /** * Navigates to the given step based on step name or step index * This will work only if the step is already in done state * @param step */ gotoStep(step: string | number): void; done(): void; cancel(): void; addMoreText(): void; readMoreSubtitle(): void; private _isFirstStep; private _isLastStep; private onDataChange; private updateStepFocus; onPropertyChange(key: string, nv: any, ov?: any): void; ngAfterContentInit(): void; private isSelectableStep; private getSelectableStepBeforeIndex; private getSelectableStepAfterIndex; getWidgets(widgteName: string, index?: number): any[]; ngAfterViewInit(): void; ngAfterViewChecked(): void; getActiveStepIndex(): number; onkeydown(event: any): void; getSelectedStepIndex(): number; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }