@kelvininc/ui-components
Version:
Kelvin UI Components
42 lines (41 loc) • 1.6 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { IWizardFooter } from '../wizard-footer/wizard-footer.types';
import { IWizardHeader } from '../wizard-header/wizard-header.types';
import { IWizard, IWizardEvents, IWizardStep, StepState } from './wizard.types';
export declare class KvWizard implements IWizard, IWizardEvents {
/** @inheritdoc */
steps: IWizardStep[];
/** @inheritdoc */
currentStep: number;
/** @inheritdoc */
currentStepState?: StepState;
/** @inheritdoc */
showHeader: boolean;
/** @inheritdoc */
showStepBar: boolean;
/** @inheritdoc */
disabled: boolean;
/** @inheritdoc */
completeBtnLabel?: string;
/** @inheritdoc */
goToStep: EventEmitter<number>;
/** @inheritdoc */
completeClick: EventEmitter<void>;
/** @inheritdoc */
cancelClick: EventEmitter<void>;
/** Internal header state */
currentHeader: IWizardHeader;
/** Internal footer state */
currentFooter: IWizardFooter;
/** Watch the `steps` property and update internal state accordingly */
stepsChangeHandler(newValue: IWizardStep[]): void;
/** Watch the `currentStep` property and update internal state accordingly */
currentStepChangeHandler(newValue: number): void;
/** Watch the `currentStepState` property and update internal state accordingly */
hasErrorStepChangeHandler(newValue: StepState): void;
componentWillLoad(): void;
onPrevClick: () => void;
onNextClick: () => void;
onStepClick: ({ detail }: CustomEvent<number>) => void;
render(): any;
}