import { Style } from "cmf.core/src/domain/metadata/style"; import { EventEmitter } from "@angular/core"; import Cmf from "cmf.lbos"; /** Interface definitions and Bags */ import { WizardStepDef } from "../wizardStep/wizardStepDef"; import { ResultMessageBag } from "../resultMessage/resultMessageBag"; import { ResultEventArgs } from "../resultMessage/resultType"; /** * Wizard POJO that is used to distribute to all sub components of the wizard: header, body and footer. */ export declare class WizardBag implements Style { /** * Validation context used for validating each step */ validationContext: string; /** * Wizard steps */ steps: Array; /** * Wizard visible steps (has some logic which is not desirable) */ readonly visibleSteps: Array; /** * The current step index of the wizard */ currentIndex: number; /** * Just a placeholder to trigger observable tasks */ indexTransient: number; /** * If the wizard is invalidated */ isInvalidated: boolean; title: string; iconClass: string; /** * Footer actions */ isBackEnable: boolean; isNextEnable: boolean; isFinishEnable: boolean; isCancelEnable: boolean; isCloseEnable: boolean; isFinishPrimaryAction: boolean; finishActionName: string; cancelActionName: string; /** * When the finish action is first called, this flag will be activated, it tells the wizard the finish was already attempted and therefore can be re-attempted at every step * if an error occurred */ isFinishEnabled: boolean; /** * Defines if the wizard should refresh after close */ closeWithoutRefresh: boolean; /** * Wizard finish callback */ onWizardFinishCallback: (result: boolean) => void; /** * Wizard Result messages */ resultMessages: Array; /** * When the wizard is finished, this property will contain the results. * This can be checked to discover if the wizard was successful and which messages were returned. */ results: ResultEventArgs; /** * Invalidation event where all interested parties. In this case, the wizard receiver is the most relevant interested in this event. * The intention is to be notified if some logic inside steps force the wizard to be invalidated */ wizardInvalidateEvent: EventEmitter>; /** * This method allows overriding the input for the transaction of a transaction wizard */ overrideTransactionInput: (input: Cmf.Foundation.BusinessOrchestration.BaseInput) => Promise; /** * Sends out any result messages - invalidates the wizard */ invalidateWizard(resultMessages: Array): void; }