/** Bags */ import { ResultMessageBag } from "../resultMessage/resultMessageBag"; /** * The Wizard step definition interface. */ export interface WizardStepDef { /** * The id of the wizard step */ id?: string; /** * The title of the wizard step */ mainTitle: string; /** * The subtitle of the wizard step */ subtitle?: string; /** * Indicates if the step is optional or not. When the step is not mandatory for finishing the flow. */ isOptional?: boolean; /** * If the step shouldn't even be displayed (due to context) */ isHidden?: boolean; /** * Indicates if the is the current one */ isActive?: boolean; /** * Indicates if the step was already validated */ isValidated?: boolean; /** * When the step was already visited and the user can jump to it from previous steps */ isVisited?: boolean; /** * Stores all the messages that prevent this step from being validated */ resultMessages?: Array; /** * Custom attribute */ customAttribute?: string; /** * Step validation function. This context may be an action? for now a simple string is enough */ validate?(actionId: string): Promise; }