// eslint-disable-next-line @typescript-eslint/no-unused-vars namespace OSFramework.OSUI.Patterns.Wizard { /** * Class that represents the custom configurations received by Wizard. */ export class WizardConfig extends AbstractConfiguration { /** Stacks the steps vertically. */ public IsVertical: boolean; /** Interactive lets users navigate by clicking steps; ProgressOnly makes steps read-only indicators. */ public StepBehavior: Enum.StepBehavior; /** * Method that will check if a given property (key) value is the type expected! * * @param key property name * @param value value to be set */ public validateDefault(key: string, value: unknown): unknown { let validatedValue = undefined; switch (key) { case Enum.Properties.IsVertical: validatedValue = this.validateBoolean(value as boolean, false); break; case Enum.Properties.StepBehavior: validatedValue = this.validateInRange( value, Enum.StepBehavior.Interactive, Enum.StepBehavior.ProgressOnly ); break; } return validatedValue ?? super.validateDefault(key, value); } } }