UNPKG

@nova-ui/bits

Version:

SolarWinds Nova Framework

85 lines (84 loc) 2.97 kB
import { EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from "@angular/core"; import { IWizardSelectionEvent, IWizardStepComponent } from "./public-api"; import { IBusyConfig } from "../busy/public-api"; import * as i0 from "@angular/core"; /** * Component that provides wizard step functionality. */ export declare class WizardStepComponent implements IWizardStepComponent, OnInit, OnChanges { /** * Template for step. */ stepTemplate: TemplateRef<any>; /** * Check is form inside step valid. */ stepControl?: boolean; /** * The title of the step. */ title: string; /** * A more compact form of the title (ex: "EULA"). */ shortTitle?: string; /** * The description of the step. */ description?: string; /** * Default:'Next'. Text for the Next button. */ nextText: string; /** * Hide step */ hidden: boolean; /** * Disables step */ disabled?: boolean; /** * Evaluated when the step is entered. */ enter: EventEmitter<void | IWizardSelectionEvent>; /** * Evaluated when validity of the step is changed. */ valid: EventEmitter<boolean>; /** * Evaluated when the step is exited. */ exit: EventEmitter<void | IWizardSelectionEvent>; /** * Evaluated when trying to go to the next step. */ next: EventEmitter<void | IWizardSelectionEvent>; /** * * Options for busy state. Default: no busy state, with clear empty busy component when set to true */ busyConfig: IBusyConfig; visited: boolean; active: boolean; complete: boolean; icon: string; iconColor: string; inputsList: string[]; constructor(); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; /** * Set flags for step entering and emits enter event */ enterStep: (event?: IWizardSelectionEvent) => void; /** * Set flags for step exiting and emits exit event */ exitStep: (event?: IWizardSelectionEvent) => void; nextStep: (event?: IWizardSelectionEvent) => void; applyEnteringStep: () => void; applyExitingStep: () => void; static ɵfac: i0.ɵɵFactoryDeclaration<WizardStepComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<WizardStepComponent, "nui-wizard-step", never, { "stepTemplate": { "alias": "stepTemplate"; "required": false; }; "stepControl": { "alias": "stepControl"; "required": false; }; "title": { "alias": "title"; "required": false; }; "shortTitle": { "alias": "shortTitle"; "required": false; }; "description": { "alias": "description"; "required": false; }; "nextText": { "alias": "nextText"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "enter": "enter"; "valid": "valid"; "exit": "exit"; "next": "next"; }, never, never, false, never>; }