@wavemaker-ai/app-ng-runtime 12.1.1-rc.352 → 12.1.2-rc.353
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-task/bundles/index.umd.js +153 -139
- package/build-task/fesm2022/index.mjs +154 -141
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/build-task/types/index-rolldown-runtime-C25Le4-w.d.ts +1 -0
- package/build-task/types/index.d.ts +41 -37
- package/components/base/bundles/index.umd.js +16 -9
- package/components/base/fesm2022/index.mjs +18 -11
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/basic/audio/bundles/index.umd.js +2 -8
- package/components/basic/audio/fesm2022/index.mjs +3 -9
- package/components/basic/audio/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/bundles/index.umd.js +101 -65
- package/components/containers/wizard/fesm2022/index.mjs +99 -62
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/types/index.d.ts +79 -5
- package/components/containers/wizardstepper/bundles/index.umd.js +237 -0
- package/components/containers/wizardstepper/fesm2022/index.mjs +215 -0
- package/components/containers/wizardstepper/fesm2022/index.mjs.map +1 -0
- package/components/containers/wizardstepper/package.json +19 -0
- package/components/containers/wizardstepper/types/index.d.ts +71 -0
- package/components/data/list/bundles/index.umd.js +4 -0
- package/components/data/list/fesm2022/index.mjs +4 -0
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/types/index.d.ts +1 -0
- package/components/data/pagination/bundles/index.umd.js +26 -8
- package/components/data/pagination/fesm2022/index.mjs +24 -5
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/types/index.d.ts +5 -3
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/core/bundles/index.umd.js +20 -14
- package/core/fesm2022/index.mjs +23 -17
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/types/index.d.ts +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +20 -15
- package/runtime/base/fesm2022/index.mjs +52 -46
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/runtime/base/types/index.d.ts +23 -21
- package/runtime/dynamic/bundles/index.umd.js +6 -1
- package/runtime/dynamic/fesm2022/index.mjs +6 -1
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- package/variables/bundles/index.umd.js +13 -13
- package/variables/fesm2022/index.mjs +18 -18
- package/variables/fesm2022/index.mjs.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["registerProps","registerProps","DEFAULT_CLS","WIDGET_CONFIG","registerProps","i1","registerProps"],"sources":["../../../../../projects/components/widgets/containers/wizard/src/wizard.props.ts","../../../../../projects/components/widgets/containers/wizard/src/wizard-step/wizard-step.props.ts","../../../../../projects/components/widgets/containers/wizard/src/wizard-step/wizard-step.component.ts","../../../../../projects/components/widgets/containers/wizard/src/wizard.component.ts","../../../../../projects/components/widgets/containers/wizard/src/wizard.component.html","../../../../../projects/components/widgets/containers/wizard/src/wizard-action/wizard-action.props.ts","../../../../../projects/components/widgets/containers/wizard/src/wizard-action/wizard-action.directive.ts"],"sourcesContent":["import {PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register} from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-wizard',\n new Map(\n [\n ['actionsalignment', {value: 'right', ...PROP_STRING}],\n ['cancelable', {value: true, ...PROP_BOOLEAN}],\n ['cancelbtnlabel', {value: 'Cancel', ...PROP_STRING}],\n ['class', {value: 'classic', ...PROP_STRING}],\n ['dataset', PROP_ANY],\n ['defaultstep', {value: 'none', ...PROP_STRING}],\n ['defaultstepindex', {value: 0, ...PROP_NUMBER}],\n ['donebtnlabel', {value: 'Done', ...PROP_STRING}],\n ['enablenext', {value: false, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['nextbtnlabel', {value: 'Next', ...PROP_STRING}],\n ['nodatamessage', {value: 'No Data Found', ... PROP_STRING}],\n ['previousbtnlabel', {value: 'Previous', ...PROP_STRING}],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['stepstyle', {value: 'auto', ...PROP_STRING}],\n ['type', PROP_STRING]\n ]\n )\n );\n};\n","import {PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register} from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-wizardstep',\n new Map(\n [\n ['class', PROP_STRING],\n ['content', PROP_STRING],\n ['doneiconclass', {value: 'wi wi-done', ...PROP_STRING}],\n ['doneiconurl', PROP_STRING],\n ['dynamicStepIndex', PROP_NUMBER], // internal property\n ['enableskip', {value: false, ...PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-person', ...PROP_STRING}],\n ['iconurl', PROP_STRING],\n ['isdynamic', PROP_STRING], // internal property\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['subtitle', PROP_STRING],\n ['title', {value: 'Step Title', ...PROP_STRING}]\n ]\n )\n );\n};\n","import {\n AfterViewInit,\n Component,\n ContentChildren,\n HostBinding,\n Inject,\n Injector,\n OnDestroy,\n OnInit,\n Optional,\n Self, ChangeDetectionStrategy\n} from \"@angular/core\";\nimport {\n getCurrentWidgets,\n IWidgetConfig,\n provideAsWidgetRef,\n RedrawableDirective,\n StylableComponent\n} from \"@wm/components/base\";\nimport {NgForm} from \"@angular/forms\";\nimport {registerProps} from \"./wizard-step.props\";\nimport {App, noop} from \"@wm/core\";\nimport {WizardComponent} from \"../wizard.component\";\n\nconst DEFAULT_CLS = 'app-wizard-step-content';\n\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-wizardstep',\n hostClass: DEFAULT_CLS,\n};\n\nconst enum STEP_STATUS {\n CURRENT = 1,\n DISABLED,\n COMPLETED\n}\n\n@Component({\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n selector: 'form[wmWizardStep]',\n template: `<ng-content partial-container-target></ng-content>`,\n providers: [\n provideAsWidgetRef(WizardStepComponent),\n NgForm\n ],\n exportAs: 'wmWizardStep'\n})\nexport class WizardStepComponent extends StylableComponent implements OnInit, AfterViewInit, OnDestroy {\n static readonly initializeProps = registerProps();\n\n public show: boolean;\n public name: string;\n public enableskip: any;\n public disablenext: boolean;\n public disabledone: boolean;\n public disableprevious: boolean;\n public isInitialized: boolean;\n private readonly isdynamic: boolean;\n public $lazyLoad = noop;\n isDone: boolean = false;\n nextCBInProgress: boolean = false;\n prevCBInProgress: boolean = false;\n\n private status: STEP_STATUS = STEP_STATUS.DISABLED;\n private wizardComponent: WizardComponent;\n private readonly _currentWizardWidgets ={}\n\n // reference to the components which needs a redraw(eg, grid, chart) when the height of this component changes\n @ContentChildren(RedrawableDirective, {descendants: true}) reDrawableComponents;\n public isPrism: boolean = false;\n\n @HostBinding('class.active')\n get activeClass() {\n return this.isPrism && this.active;\n }\n\n @HostBinding('class.current')\n get currentClass() {\n return !this.isPrism && this.active;\n }\n \n get isCurrent() {\n return this.active;\n }\n\n /**\n * along with the wizard form , also validate the forms\n * if there are any inside the wizard\n * @returns {boolean}\n */\n public get isValid() {\n return (this.ngForm.valid || this.ngForm.disabled) && this.areEmbeddedFormsValid();\n }\n\n /**\n * get all the forms inside the wizard if any and validate\n * @returns {boolean}\n */\n private areEmbeddedFormsValid() {\n for (const form of this.getAllEmbeddedForms()) {\n if (form.widget?.ngform && !form.widget.ngform.valid) {\n return false;\n }\n }\n return true;\n }\n\n private getAllEmbeddedForms() {\n return this.$element.find('form');\n }\n\n public get enableNext() {\n return !this.disablenext;\n }\n\n public get enableDone() {\n return !this.disabledone;\n }\n\n public get enablePrev() {\n return !this.disableprevious;\n }\n\n public set active(nv: boolean) {\n const isActive = this.active;\n this.status = STEP_STATUS.CURRENT;\n if (nv && !isActive) {\n this.redrawChildren();\n }\n }\n\n public get active(): boolean {\n return this.status === STEP_STATUS.CURRENT;\n }\n\n public set done(nv: boolean) {\n if (nv) {\n this.status = STEP_STATUS.COMPLETED;\n }\n }\n\n public get done(): boolean {\n return this.status === STEP_STATUS.COMPLETED;\n }\n\n public set disabled(nv: boolean) {\n if (nv) {\n this.status = STEP_STATUS.DISABLED;\n }\n }\n\n public get disabled(): boolean {\n return this.status === STEP_STATUS.DISABLED;\n }\n\n constructor(inj: Injector, @Self() private readonly ngForm: NgForm, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n // If we inject directly as a param in the constructor, getting circular dependency error in unit testcases\n this.wizardComponent = this.inj.get(WizardComponent);\n this.isPrism = !!this.inj.get(App, null)?.isPrism;\n }\n\n public invokeNextCB(index: number): boolean | Promise<boolean> {\n return this.invokeEventCallback('next', {currentStep: this, stepIndex: index});\n }\n\n public invokePrevCB(index: number): boolean | Promise<boolean> {\n return this.invokeEventCallback('prev', {currentStep: this, stepIndex: index});\n }\n\n public invokeSkipCB(index: number): boolean | Promise<boolean> {\n return this.invokeEventCallback('skip', {currentStep: this, stepIndex: index});\n }\n\n // redraw all the projected components which are projected.\n private redrawChildren() {\n setTimeout(() => {\n if (this.reDrawableComponents) {\n this.reDrawableComponents.forEach(c => c.redraw());\n }\n if ((this as any).wizardComponent) {\n const stepIndex = (this as any).wizardComponent.getCurrentStepIndex();\n this.invokeEventCallback('load', { stepIndex });\n }\n }, 100);\n }\n\n public remove() {\n if (this.active) {\n this === this.wizardComponent.steps.last ? this.wizardComponent.prev() : this.wizardComponent.next();\n }\n const availablePanes = this.wizardComponent.steps.toArray();\n availablePanes.splice((this as any).wizardComponent.getStepIndexByRef(this), 1);\n this.wizardComponent.steps.reset([...availablePanes]);\n this.nativeElement.remove();\n }\n\n get currentWizardWidgets() {\n return getCurrentWidgets(this.nativeElement, this._currentWizardWidgets);\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'content') {\n setTimeout(() => this.$lazyLoad(), 100);\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n ngOnInit() {\n super.ngOnInit();\n }\n\n ngAfterViewInit() {\n super.ngAfterViewInit();\n if (this.isdynamic) {\n this.wizardComponent.registerDynamicStep(this);\n }\n }\n\n ngOnDestroy() {\n // MEMORY LEAK FIX: Clear redrawable components references\n if (this.reDrawableComponents) {\n this.reDrawableComponents.reset([]);\n }\n\n // MEMORY LEAK FIX: Clear wizard component reference\n this.wizardComponent = null;\n\n // Call parent ngOnDestroy (StylableComponent → BaseComponent)\n // This will clear the context and unregister the widget\n super.ngOnDestroy();\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {\n APPLY_STYLES_TYPE,\n Context,\n createArrayFrom,\n IWidgetConfig,\n provideAsWidgetRef,\n StylableComponent,\n styler,\n TextContentDirective,\n WmAppIconComponent\n} from \"@wm/components/base\";\nimport {\n AfterContentInit,\n AfterViewChecked,\n AfterViewInit,\n Component,\n ContentChild,\n ContentChildren,\n Inject,\n Injector,\n OnDestroy,\n OnInit,\n Optional,\n QueryList,\n Self,\n TemplateRef, ChangeDetectionStrategy\n} from '@angular/core';\n\nimport {DynamicComponentRefProvider, isDefined, noop} from '@wm/core';\n\nimport {registerProps} from './wizard.props';\n\nimport {WizardStepComponent} from \"./wizard-step/wizard-step.component\";\nimport {find, findIndex, forEach, get, indexOf, isArray, isNumber, isString} from \"lodash-es\";\n\n/**\n * Header row shape for icon/tab-stepper helpers. Uses this instead of `WizardStepComponent` on\n * those parameters so TypeScript/ng-packagr does not hit a circular resolution order\n * (wizard-step imports WizardComponent).\n */\ntype WizardStepHeaderModel = {\n isDone: boolean;\n iconclass?: string;\n iconurl?: string;\n doneiconclass?: string;\n doneiconurl?: string;\n};\n\nconst DEFAULT_CLS = 'app-wizard panel clearfix';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-wizard',\n hostClass: DEFAULT_CLS\n};\n\n@Component({\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CommonModule, TextContentDirective, WmAppIconComponent],\n selector: 'div[wmWizard]',\n templateUrl: './wizard.component.html',\n providers: [\n provideAsWidgetRef(WizardComponent),\n {provide: Context, useFactory: () => { return {} }, multi: true}\n ],\n exportAs: 'wmWizard'\n})\nexport class WizardComponent extends StylableComponent implements OnInit, AfterContentInit, AfterViewInit, AfterViewChecked, OnDestroy {\n static readonly initializeProps = registerProps();\n\n @ContentChildren(WizardStepComponent) steps: QueryList<WizardStepComponent>;\n @ContentChild('wizardAction', { read: TemplateRef, descendants: false }) wizardAction: TemplateRef<any>;\n\n public message: {caption: string, type: string};\n public currentStep: WizardStepComponent;\n\n public stepClass: string;\n public class;\n public name;\n private readonly promiseResolverFn: Function;\n public actionsalignment: any;\n public cancelable: any;\n public enablenext: any;\n public wizContext: any;\n public cancelbtnlabel: any;\n public donebtnlabel: any;\n public previousbtnlabel: any;\n public nextbtnlabel: any;\n public defaultstep;\n public fieldDefs;\n public type;\n public nodatamessage;\n private readonly dynamicComponentProvider;\n private _dynamicContext;\n private dynamicStepIndex;\n public dynamicWizard;\n public defaultstepindex;\n private _isFirstLoad: boolean = true;\n public autoActivation:boolean;\n private stepsSubscription: any; // MEMORY LEAK FIX: Store subscription for cleanup\n\n get hasPrevStep(): boolean {\n return !this._isFirstStep(this.currentStep);\n }\n\n get hasNextStep(): boolean {\n return !this._isLastStep(this.currentStep);\n }\n\n get showDoneBtn(): boolean {\n if (!this.currentStep) {\n return false;\n }\n return !this.hasNextStep && this.currentStep.enableDone;\n }\n\n get enablePrev(): boolean {\n if (!this.currentStep) {\n return false;\n }\n return this.currentStep.enablePrev;\n }\n\n get enableNext(): boolean {\n if (!this.currentStep) {\n return false;\n }\n return this.enablenext ? true : (this.currentStep.enableNext && this.currentStep.isValid);\n }\n\n /**\n * Step header icons (iconclass / doneiconclass): same rules as iconstepper, plus tabstepper\n * (e.g. wizard-tabstepper, tabstepper, tabstepper_vertical). Uses class property + host className\n * so preview stays correct when the DOM is updated before the bound property.\n */\n private wizardHostClassString(): string {\n const fromProp = typeof this.class === 'string' ? this.class : '';\n const rawDom = this.nativeElement?.className;\n const fromDom =\n typeof rawDom === 'string' ? rawDom : (rawDom as { baseVal?: string })?.baseVal || '';\n return `${fromProp} ${fromDom}`.trim();\n }\n\n get showWizardStepIcons(): boolean {\n const c = this.wizardHostClassString();\n if (!c) {\n return false;\n }\n return c.includes('iconstepper') || c.includes('tabstepper');\n }\n\n /** Tab layout only (not icon stepper): omit icon column when step has no icon. */\n get isTabStepperWizard(): boolean {\n const c = this.wizardHostClassString();\n return c.includes('tabstepper') && !c.includes('iconstepper');\n }\n\n /** Default matches wm-wizardstep props; used for icon stepper when iconclass is empty. */\n stepIconClassOrDefault(step: WizardStepHeaderModel): string {\n const c = step?.iconclass || step?.iconurl;\n return typeof c === 'string' && c.trim() ? c.trim() : 'wi wi-person';\n }\n\n hasNonEmptyIconClass(step: WizardStepHeaderModel): boolean {\n const ic = step?.iconclass || step?.iconurl;\n return typeof ic === 'string' && ic.trim() !== '';\n }\n\n /**\n * Primary `app-icon` for icon/tab stepper: only when `iconclass` is set (no default glyph for icon stepper).\n * When `doneiconclass` is set, the done row is shown instead of this primary icon.\n */\n shouldShowPrimaryStepIcon(step: WizardStepHeaderModel): boolean {\n if (!step || !this.showWizardStepIcons) {\n return false;\n }\n if (!step.isDone) {\n return this.hasNonEmptyIconClass(step);\n }\n const d = step.doneiconclass;\n const hasDone = typeof d === 'string' && d.trim() !== '';\n if (hasDone) {\n return false;\n }\n return this.hasNonEmptyIconClass(step);\n }\n\n /**\n * Tab stepper: no `wizard-step-number` when the step is done but `doneiconclass` is empty.\n * Icon stepper: omit the wrapper when there is no primary icon and no done icon to show.\n * Other layouts: keep the wrapper (numbers, dots, etc.).\n */\n shouldRenderWizardStepNumberSpan(step: WizardStepHeaderModel): boolean {\n if (!this.showWizardStepIcons) {\n return true;\n }\n if (this.isTabStepperWizard) {\n if (step.isDone && !this.hasNonEmptyDoneIconClass(step)) {\n return false;\n }\n return (\n this.shouldShowPrimaryStepIcon(step) ||\n (step.isDone && this.hasNonEmptyDoneIconClass(step))\n );\n }\n if (this.wizardHostClassString().includes('iconstepper')) {\n return (\n this.shouldShowPrimaryStepIcon(step) ||\n (step.isDone && this.hasNonEmptyDoneIconClass(step))\n );\n }\n return true;\n }\n\n /** Avoid `String()` in templates (strict mode treats it as a component property). */\n hasNonEmptyDoneIconClass(step: WizardStepHeaderModel): boolean {\n const d = step?.doneiconclass || step?.doneiconurl;\n return typeof d === 'string' && d.trim() !== '';\n }\n\n get enableDone(): boolean {\n if (!this.currentStep) {\n return false;\n }\n return this.currentStep.enableDone && this.currentStep.isValid;\n }\n\n /**\n * returns current step index of the Wizard's current step\n */\n get currentStepIndex() {\n return this.getStepIndexByRef(this.currentStep);\n }\n\n /**\n * returns weather the current step is first step or not\n */\n get isFirstStep(): boolean {\n return this._isFirstStep(this.currentStep);\n }\n\n /**\n * returns weather the current step is last step or not\n */\n get isLastStep(): boolean {\n return this._isLastStep(this.currentStep);\n }\n\n constructor(inj: Injector, dynamicComponentProvider: DynamicComponentRefProvider, @Self() @Inject(Context) contexts: Array<any>, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n let resolveFn: Function = noop;\n\n super(inj, WIDGET_CONFIG, explicitContext, new Promise(res => resolveFn = res));\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SHELL);\n\n this.promiseResolverFn = resolveFn;\n\n // initialize the message object with default values\n this.message = {\n caption: '',\n type: ''\n };\n this.wizContext = contexts[0];\n this.dynamicComponentProvider = dynamicComponentProvider;\n this.dynamicWizard = [];\n this.dynamicStepIndex = 0;\n }\n\n /**\n * This method is used to register the dynamic steps.\n * After all steps are initialzed, update the querylist manually based on index.\n * @param stepRef - refrence of the wizardstep\n */\n public registerDynamicStep(stepRef) {\n this.dynamicWizard.push(stepRef);\n const isLastStep = this.dynamicWizard.length === this.dynamicStepIndex;\n if (isLastStep) {\n for (let i = 0; i < this.dynamicWizard.length; i++) {\n const newStepRef = find(this.dynamicWizard, step => step.dynamicStepIndex === i);\n const isStepAlreadyExist = find(this.steps.toArray(), newStepRef);\n if (!isStepAlreadyExist) {\n this.steps.reset([...this.steps.toArray(), newStepRef]);\n if (newStepRef.active) {\n setTimeout(() => {\n newStepRef.select();\n }, 20);\n }\n }\n }\n }\n }\n\n /**\n * This method is to add the wizard step dynamically\n * @param wizardSteps - list of wizardsteps\n */\n public addStep(wizardSteps) {\n if (!isArray(wizardSteps)) {\n wizardSteps = [wizardSteps];\n }\n const stepNamesList = [];\n forEach(wizardSteps, (step, index) => {\n const isStepAlreadyCreated = find(this.steps.toArray(), {name: step.name});\n const isStepNameExist = indexOf(stepNamesList, step.name);\n // If user tries to add wizardstep with the same name which is already exists then do not create the step\n if (isStepAlreadyCreated || isStepNameExist > 0) {\n console.warn(`The wizard step with name ${step.name} already exists`);\n return;\n }\n\n let paramMarkup = '';\n let propsTmpl = '';\n this.dynamicStepIndex++;\n const name = step.name ? step.name : `wizardstep${this.steps.toArray().length + (index + 1)}`;\n stepNamesList.push(name);\n const partialParams = get(step, 'params');\n\n forEach(step, (value, key) => {\n if (key !== 'params') {\n propsTmpl = `${propsTmpl} ${key}=\"${value}\"`;\n }\n });\n\n forEach(partialParams, (value, key) => {\n paramMarkup = `${paramMarkup} <wm-param name=\"${key}\" value=\"${value}\"></wm-param>`;\n });\n const markup = `<wm-wizardstep dynamicStepIndex=\"${this.dynamicStepIndex - 1}\" isdynamic=\"true\" name=\"${name}\" ${propsTmpl}>\n ${paramMarkup}\n </wm-wizardstep>`;\n\n if (!this._dynamicContext) {\n this._dynamicContext = Object.create(this.viewParent);\n this._dynamicContext[this.getAttr('wmWizard')] = this;\n }\n\n this.dynamicComponentProvider.addComponent(this.getNativeElement().querySelector('.app-wizard-body'), markup, this._dynamicContext, {inj: this.inj});\n\n });\n return stepNamesList;\n }\n\n /**\n * This method is to remove the wizard step\n * @param step - index or name of the step\n */\n public removeStep(step: number | string) {\n const stepRef = isString(step) ? this.getStepRefByName(step) : isNumber(step)\n ? this.getStepRefByIndex(step) : null;\n stepRef ? stepRef.remove() : console.warn(`Could not find step with name or index '${step}' to remove`);\n }\n\n /**\n * returns next valid step. the index passed is also checked if its valid step\n * @param index\n * @returns {WizardStepComponent}\n */\n private getNextValidStepFormIndex(index: number): WizardStepComponent {\n for (let i = index; i < this.steps.length; i++) {\n const step = this.getStepRefByIndex(i);\n if (step.show) {\n return step;\n }\n }\n }\n\n /**\n * returns previous valid step. the index passed is also checked if its valid step\n * @param index\n * @returns {WizardStepComponent}\n */\n private getPreviousValidStepFormIndex(index: number): WizardStepComponent {\n for (let i = index; i >= 0; i--) {\n const step = this.getStepRefByIndex(i);\n if (step.show) {\n return step;\n }\n }\n }\n\n /**\n * returns current step index value.\n * @returns {number}\n */\n private getCurrentStepIndex(): number {\n return this.getStepIndexByRef(this.currentStep);\n }\n\n /**\n * returns stepRef when index is passed.\n * @param {number} index\n * @returns {WizardStepComponent}\n */\n private getStepRefByIndex(index: number): WizardStepComponent {\n return this.steps.toArray()[index];\n }\n\n /**\n * returns the index value of the step.\n * @param {WizardStepComponent} wizardStep\n * @returns {number}\n */\n private getStepIndexByRef(wizardStep: WizardStepComponent): number {\n return this.steps.toArray().indexOf(wizardStep);\n }\n\n /**\n * gets stepRef by searching on the name property.\n * @param {string} name\n * @returns {WizardStepComponent}\n */\n private getStepRefByName(name: string): WizardStepComponent {\n return this.steps.find(step => step.name === name);\n }\n\n /**\n * sets default step as current step if configured\n * or finds first valid step and set it as current step.\n * @param {WizardStepComponent} step\n */\n private setDefaultStep(step: WizardStepComponent) {\n // If the default step has show true then only update the currentStep\n if (step?.show) {\n this.currentStep = step;\n step.active = true;\n step.isInitialized = true;\n // Mark all previous step status COMPLETED\n let index = this.getStepIndexByRef(step) - 1;\n while (index >= 0) {\n const prevStep = this.getStepRefByIndex(index);\n prevStep.done = true;\n prevStep.isInitialized = true;\n index--;\n }\n } else {\n // set next valid step as current step\n step = this.getNextValidStepFormIndex(0);\n if (step) {\n this.setDefaultStep(step);\n }\n }\n this.addMoreText();\n }\n\n /**\n * Selects the associated step when the wizard header is clicked.\n * @param $event\n * @param {WizardStepComponent} currentStep\n */\n private onWizardHeaderClick($event: Event, currentStep: WizardStepComponent) {\n // select the step if it's status is done\n if (currentStep.done) {\n // set all the next steps status as disabled and previous steps as done\n this.steps.forEach((step, index) => {\n if (index < this.getStepIndexByRef(currentStep)) {\n step.done = true;\n step.isDone = true;\n } else {\n step.disabled = true;\n step.isDone = false;\n }\n });\n // set the selected step as current step and make it active\n this.currentStep = currentStep;\n this.currentStep.active = true;\n this.addMoreText();\n }\n }\n\n private readonly isPromise = (obj) => obj instanceof Promise || (obj !== null && typeof obj === 'object' && typeof obj.then === 'function' && typeof obj.catch === 'function');\n\n // Method to navigate to next step\n\n private handleNext(value: boolean | Promise<boolean>, currentStep, currentStepIndex) {\n if (this.isPromise(value)) {\n (value as Promise<boolean>).then(response => {\n this.currentStep.nextCBInProgress = false;\n if (response === false) {\n return;\n }\n this.extendNextFn(currentStep, currentStepIndex);\n }, err => {\n this.currentStep.nextCBInProgress = false;\n })\n } else {\n this.currentStep.nextCBInProgress = false;\n if (value === false) {\n return;\n }\n this.extendNextFn(currentStep, currentStepIndex);\n }\n }\n\n public next(eventName: string = 'next') {\n if (this.currentStep.nextCBInProgress) {\n return;\n }\n\n const currentStep = this.currentStep;\n const currentStepIndex = this.getCurrentStepIndex();\n\n // abort if onSkip method returns false\n if (eventName === 'skip') {\n this.currentStep.nextCBInProgress = true;\n const response = currentStep.invokeSkipCB(currentStepIndex);\n this.handleNext(response, currentStep, currentStepIndex);\n } else if (this.currentStep.isValid && eventName === 'next') {\n this.currentStep.nextCBInProgress = true;\n const response = currentStep.invokeNextCB(currentStepIndex);\n this.handleNext(response, currentStep, currentStepIndex);\n } else if (this.enablenext && !this.currentStep.isValid){\n Array.from((<any>this).currentStep.getAllEmbeddedForms())?.forEach((form:any) => {\n form.widget.highlightInvalidFields();\n });\n const invalidFormInputElement = this.currentStep.nativeElement?.querySelector(\"input.ng-invalid\") as HTMLInputElement;\n invalidFormInputElement?.focus();\n\n }\n }\n\n private extendNextFn(currentStep, currentStepIndex) {\n const nextStep: WizardStepComponent = this.getNextValidStepFormIndex(currentStepIndex + 1);\n // If there are any steps which has show then only change state of current step else remain same\n if (nextStep) {\n nextStep.isInitialized = true;\n currentStep.isDone = true;\n currentStep.done = true;\n nextStep.active = true;\n this.currentStep = nextStep;\n // Remove 'active' class from all wizard steps in header\n const allStepItems = this.nativeElement.querySelectorAll('li[data-stepid]');\n allStepItems.forEach((el: Element) => {\n el.classList.remove('active');\n const anchor = el.querySelector('a');\n if (anchor) {\n anchor.setAttribute('tabindex', '-1');\n }\n });\n // Add 'active' to next step header item\n const newStepLi = this.nativeElement.querySelector(`li[data-stepid=\"${nextStep.widgetId}\"]`);\n const newStepAnchor = newStepLi?.querySelector('a') as HTMLElement;\n if (newStepLi && newStepAnchor) {\n newStepLi.classList.add('active');\n newStepAnchor.setAttribute('tabindex', '0');\n newStepAnchor.focus();\n }\n this.updateStepFocus();\n }\n this.addMoreText();\n }\n // Method to navigate to previous step\n public prev() {\n if (this.currentStep.prevCBInProgress) {\n return;\n }\n\n const currentStep = this.currentStep;\n const currentStepIndex = this.getCurrentStepIndex();\n\n this.currentStep.prevCBInProgress = true;\n // abort if onPrev method returns false.\n const response = currentStep.invokePrevCB(currentStepIndex);\n if (this.isPromise(response)) {\n (response as Promise<boolean>).then( response => {\n this.currentStep.prevCBInProgress = false;\n if (response === false) {\n return;\n }\n this.extendPrevFn(currentStep, currentStepIndex);\n }, err => {\n this.currentStep.prevCBInProgress = false;\n });\n } else {\n this.currentStep.prevCBInProgress = false;\n if (response === false) {\n return;\n }\n this.extendPrevFn(currentStep, currentStepIndex);\n }\n }\n\n private extendPrevFn(currentStep, currentStepIndex){\n const prevStep: WizardStepComponent = this.getPreviousValidStepFormIndex(currentStepIndex - 1);\n\n // If there are any steps which has show then only change state of current step else remain same\n if (prevStep) {\n currentStep.isDone = false;\n currentStep.disabled = true;\n prevStep.active = true;\n this.currentStep = prevStep;\n // Remove 'active' class from all steps\n const allStepItems = this.nativeElement.querySelectorAll('li[data-stepid]');\n allStepItems.forEach((el: Element) => {\n el.classList.remove('active');\n const anchor = el.querySelector('a');\n if (anchor) {\n anchor.setAttribute('tabindex', '-1');\n }\n });\n // Apply 'active' to prev step\n const prevStepLi = this.nativeElement.querySelector(`li[data-stepid=\"${prevStep.widgetId}\"]`);\n const prevStepAnchor = prevStepLi?.querySelector('a') as HTMLElement;\n if (prevStepLi && prevStepAnchor) {\n prevStepLi.classList.add('active');\n prevStepAnchor.setAttribute('tabindex', '0');\n prevStepAnchor.focus();\n }\n this.updateStepFocus();\n }\n this.addMoreText();\n }\n\n public skip() {\n this.next('skip');\n }\n\n /**\n * Navigates to the given step based on step name or step index\n * This will work only if the step is already in done state\n * @param step\n */\n public gotoStep(step: string | number) {\n let gotoStepIndex: number;\n if (isString(step)) {\n gotoStepIndex = this.steps.toArray().map(step => step.name).indexOf(step);\n if (gotoStepIndex === -1) {\n console.error(`Could not find step '${step}'`);\n return;\n }\n } else if (isNumber(step) && step >= 0) {\n gotoStepIndex = step;\n } else {\n console.error(\"Invalid step name or index provided\");\n return;\n }\n\n const gotoStep: WizardStepComponent = this.getStepRefByIndex(gotoStepIndex);\n\n if (gotoStep?.show) {\n this.onWizardHeaderClick(event, gotoStep);\n } else {\n console.error(\"The gotoStep function cannot navigate to hidden steps\");\n }\n }\n\n // Method to invoke on-Done event on wizard\n public done() {\n this.currentStep.isDone = true;\n this.invokeEventCallback('done', {steps: this.steps.toArray()});\n }\n // Method to invoke on-Cancel event on wizard\n public cancel () {\n this.invokeEventCallback('cancel', {steps: this.steps.toArray()});\n }\n public addMoreText(){\n setTimeout(() => {\n\n\n const newWindowWidth = $(window).width();\n if(newWindowWidth < 768){\n $(\".app-wizard-step.active .subtitle-wrapper .step-title\").css({\"height\":\"auto\",\"display\":\"block\"});\n const subtitleTextLength = $(\".app-wizard-step.active .subtitle-wrapper .step-title\").height();\n $(\".read_more\").css(\"display\",\"none\");\n $(\".app-wizard-step.active .subtitle-wrapper\").removeClass(\"readmore_subtitle\");\n\n if(subtitleTextLength>44){\n $(\".app-wizard-step.active .subtitle-wrapper .step-title\").css({\"height\":\"44px\",\"display\":\"-webkit-box\"});\n $(\".app-wizard-step.active .read_more\").css(\"display\",\"block\");\n $(\".app-wizard-step.finished .read_more\").css(\"display\",\"none\");\n $(\".app-wizard-step.default .read_more\").css(\"display\",\"none\");\n $(\".app-wizard-step>a\").css(\"height\",\"100px\")\n }\n }\n });\n\n }\n public readMoreSubtitle(){\n $(\".app-wizard-step.active .subtitle-wrapper\").addClass(\"readmore_subtitle\");\n $(\".app-wizard-step.active .read_more\").css(\"display\",\"none\");\n $(document).on(\"mouseup\",function(e:any)\n {\n const container = $(\".subtitle-wrapper\");\n // if the target of the click isn't the container nor a descendant of the container\n if (!container.is(e.target) && container.has(e.target).length === 0)\n {\n $(\".app-wizard-step.active .subtitle-wrapper\").removeClass(\"readmore_subtitle\");\n $(\".app-wizard-step.active .read_more\").css(\"display\",\"block\");\n $(document).off(\"mouseup\");\n }\n });\n }\n\n private _isFirstStep(stepRef: WizardStepComponent) {\n return this.steps.first === stepRef;\n }\n\n private _isLastStep(stepRef: WizardStepComponent) {\n return this.steps.last === stepRef;\n }\n\n private onDataChange(newVal) {\n this.fieldDefs = createArrayFrom(newVal);\n }\n\n private updateStepFocus() {\n setTimeout(() => {\n const currentStepElement = this.nativeElement.querySelector(\".app-wizard-heading li.active a\") as HTMLElement;\n currentStepElement?.focus();\n });\n }\n\n // Define the property change handler. This Method will be triggered when there is a change in the widget property\n onPropertyChange(key: string, nv: any, ov?: any) {\n // Monitoring changes for properties and accordingly handling respective changes\n\n if (key === 'stepstyle') {\n this.stepClass = nv === 'justified' ? 'nav-justified' : '';\n } else if (key === 'dataset') {\n this.onDataChange(nv);\n } else if (key === 'defaultstep') {\n this.setDefaultStep(this.getStepRefByName(nv));\n } else if (key === 'actionsalignment') {\n this.nativeElement.querySelector('div.app-wizard-actions')?.classList.replace(ov, nv);\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n ngAfterContentInit() {\n super.ngAfterContentInit();\n this.promiseResolverFn();\n this.wizContext.hasNextStep = () => this.hasNextStep;\n this.wizContext.hasPreviousStep = () => this.hasPrevStep;\n this.wizContext.hasNoNextStep = () => this.showDoneBtn;\n this.wizContext.cancelable = () => this.cancelable;\n this.wizContext.skippable = () => this.currentStep?.enableskip;\n this.wizContext.next = () => this.next();\n this.wizContext.previous = () => this.prev();\n this.wizContext.done = () => this.done();\n this.wizContext.cancel = () => this.cancel();\n this.wizContext.skip = () => this.skip();\n this.wizContext.nextbtnlabel = () => this.nextbtnlabel;\n this.wizContext.previousbtnlabel = () => this.previousbtnlabel;\n this.wizContext.donebtnlabel = () => this.donebtnlabel;\n this.wizContext.cancelbtnlabel = () => this.cancelbtnlabel;\n this.wizContext.actionsalignment = () => this.actionsalignment;\n this.wizContext.disableNext = () => !this.enableNext;\n this.wizContext.disablePrevious = () => !this.enablePrev;\n this.wizContext.disableDone = () => !this.enableDone;\n\n // MEMORY LEAK FIX: Store subscription for cleanup\n this.stepsSubscription = this.steps.changes.subscribe( () => {\n if (this.steps.length > 1 && this.type === 'dynamic' && this._isFirstLoad) {\n this.setDefaultStep(this.getStepRefByIndex(this.defaultstepindex));\n this._isFirstLoad = false;\n }\n });\n }\n private isSelectableStep(stepRef: WizardStepComponent): boolean {\n return stepRef.show && !stepRef.disabled;\n }\n private getSelectableStepBeforeIndex(index: number): WizardStepComponent {\n for (let i = index - 1; i >= 0; i--) {\n const step = this.getStepRefByIndex(i);\n if (this.isSelectableStep(step)) {\n return step;\n }\n }\n if (index === 0) {\n const step = this.getStepRefByIndex(this.steps.length - 1);\n if (this.isSelectableStep(step)) {\n return step;\n }\n }\n }\n private getSelectableStepAfterIndex(index: number): WizardStepComponent {\n for (let i = index + 1; i < this.steps.length; i++) {\n const step = this.getStepRefByIndex(i);\n if (this.isSelectableStep(step)) {\n return step;\n }\n }\n if (index === this.steps.length - 1) {\n const step = this.getStepRefByIndex(0);\n if (this.isSelectableStep(step)) {\n return step;\n }\n }\n }\n\n public getWidgets(widgteName: string, index?: number) {\n let $target;\n const retVal = [];\n\n if (!widgteName) {\n return;\n }\n\n if (!isDefined(index)) {\n forEach(this.steps.toArray(), (el) => {\n $target = get(el.currentWizardWidgets, widgteName);\n if ($target) {\n retVal.push($target);\n }\n });\n\n return retVal;\n }\n index = +index || 0;\n\n $target = get(this.steps.toArray(), index);\n\n if ($target) {\n return [get($target.currentWizardWidgets, widgteName)];\n }\n }\n\n\n ngAfterViewInit() {\n super.ngAfterViewInit();\n styler(\n this.nativeElement.querySelector('.panel-body') as HTMLElement,\n this,\n APPLY_STYLES_TYPE.INNER_SHELL\n );\n setTimeout(() => { if($(window).width()<768) {\n $(\".app-wizard\").removeClass(\"vertical\");\n }\n });\n }\n ngAfterViewChecked() {\n this.nativeElement.querySelectorAll('div.app-wizard-actions').forEach(el => el?.classList.add(this.actionsalignment));\n this.nativeElement.querySelectorAll('div.app-wizard-actions-right').forEach(el => el?.classList.remove('app-container'));\n }\n public getActiveStepIndex(): number {\n return findIndex(this.steps.toArray(), {isCurrent: true});\n }\n onkeydown(event) {\n let newStep;\n switch (event.key) {\n case 'ArrowLeft':\n case 'ArrowUp':\n event.preventDefault();\n newStep = this.autoActivation ? null : this.getSelectableStepBeforeIndex(this.getSelectedStepIndex());\n break;\n\n case 'ArrowRight':\n case 'ArrowDown':\n event.preventDefault();\n newStep = this.autoActivation ? null : this.getSelectableStepAfterIndex(this.getSelectedStepIndex());\n break;\n case 'Enter':\n case ' ':\n case 'Spacebar':\n event.preventDefault();\n setTimeout(() => {\n const activeElement = this.nativeElement.querySelector('li.active');\n const stepLi = activeElement.closest('li[data-stepid]');\n const isInWizardHeader = activeElement.closest('.app-wizard-heading');\n\n if (stepLi && isInWizardHeader) {\n const stepId = stepLi.getAttribute('data-stepid');\n const stepIndex = this.steps.toArray().findIndex(step => step.widgetId === stepId);\n const currentStep = this.steps.toArray()[stepIndex];\n\n if (currentStep && currentStep !== this.currentStep) {\n this.onWizardHeaderClick(event, currentStep);\n\n // Update tabindex for accessibility\n const allStepItems = this.nativeElement.querySelectorAll('li[data-stepid]');\n allStepItems.forEach((el: Element) => {\n (el as HTMLElement).setAttribute('tabindex', '-1');\n });\n\n const stepAnchor = stepLi.querySelector('a');\n if (stepAnchor) {\n stepAnchor.setAttribute('tabindex', '0');\n stepAnchor.focus();\n }\n }\n }\n }, 0);\n break;\n default:\n return;\n }\n if (newStep) {\n this.nativeElement.querySelector('li.active')?.classList.remove('active');\n this.nativeElement.querySelector(`li[data-stepid=\"${newStep.widgetId}\"]`)?.classList.add('active');\n const stepLi = this.nativeElement.querySelector(\".app-wizard-heading li.active a\") as HTMLElement;\n const allStepItems = this.nativeElement.querySelectorAll('li[data-stepid] a');\n allStepItems.forEach((el: Element) => {\n (el as HTMLElement).setAttribute('tabindex', '-1');\n });\n (stepLi).setAttribute('tabindex', '0');\n stepLi?.focus();\n }\n }\n getSelectedStepIndex() {\n const index = this.steps.toArray().findIndex(step =>\n this.nativeElement.querySelector(`li[data-stepid=\"${step.widgetId}\"]`)?.classList.contains(\"active\"));\n return index >= 0 ? index : this.getActiveStepIndex();\n }\n\n ngOnDestroy() {\n // MEMORY LEAK FIX: Unsubscribe from steps changes\n if (this.stepsSubscription) {\n this.stepsSubscription.unsubscribe();\n this.stepsSubscription = null;\n }\n\n // MEMORY LEAK FIX: Remove jQuery event handlers\n $(document).off(\"mouseup\");\n\n // MEMORY LEAK FIX: Clear wizard context to release references to step data\n if (this.wizContext) {\n Object.keys(this.wizContext).forEach(key => {\n delete this.wizContext[key];\n });\n this.wizContext = null;\n }\n\n // MEMORY LEAK FIX: Clear dynamic context\n if (this._dynamicContext) {\n Object.keys(this._dynamicContext).forEach(key => {\n delete this._dynamicContext[key];\n });\n this._dynamicContext = null;\n }\n\n // MEMORY LEAK FIX: Clear dynamic wizard array\n if (this.dynamicWizard) {\n this.dynamicWizard = [];\n }\n\n // MEMORY LEAK FIX: Clear current step reference\n this.currentStep = null;\n\n super.ngOnDestroy();\n }\n}\n","<div class=\"app-wizard-heading\">\n <ul class=\"app-wizard-steps nav nav-pills {{stepClass}}\">\n @for (step of steps; track step; let i = $index) {\n <li class=\"app-wizard-step\" [hidden]=\"!step.show\"\n [ngClass]=\"{finished: step.done, active: step.active, default: step.disabled}\"\n (click)=\"onWizardHeaderClick($event, step)\" [attr.data-stepid]=\"step.widgetId\">\n <a href=\"javascript:void(0)\" [attr.aria-current]=\"step.active ? 'step' : null\"\n [attr.aria-disabled]=\"step.disabled\" [attr.aria-label]='step.subtitle ? \"step \" + (i + 1) + \" \" + step.title + \" \" + step.subtitle : \"step \" + (i + 1) + \" \" + step.title' [attr.title]= \"step.title\"\n [ngClass]=\"{'title-center-align':class && class.includes('classic') && !step.subtitle}\" [tabindex]=\"step.active ? '0' : '-1'\" (keydown)=\"onkeydown($event)\">\n @if (class && class.includes('classic')) {\n <span class=\"arrow\"></span>\n }\n @if (shouldRenderWizardStepNumberSpan(step)) {\n <span class=\"wizard-step-number\">\n @if (class && class.includes('number') && !step.isDone && !showWizardStepIcons) {\n <span class=\"count\">{{i+1}}</span>\n }\n @if (class && (class.includes('dottedstepper') || class.includes('text-inline') && !showWizardStepIcons) && !step.isDone) {\n <i class=\"dottedstepper\"></i>\n }\n @if (class && (class.includes('dottedstepper') || class.includes('number')) && step.isDone) {\n <i class=\"app-icon wi wi-done\"></i>\n }\n @if (shouldShowPrimaryStepIcon(step)) {\n <wm-app-icon [iconclass]=\"stepIconClassOrDefault(step)\" [iconurl]=\"step.iconurl\"></wm-app-icon>\n }\n @if (showWizardStepIcons && step.isDone && hasNonEmptyDoneIconClass(step)) {\n <wm-app-icon [iconclass]=\"step.doneiconclass\" [iconurl]=\"step.doneiconurl\"></wm-app-icon>\n }\n </span>\n }\n <span class=\"title-wrapper\">\n @if (class && class.includes('text-inline')) {\n <span>{{'0' + (i+1)}}</span>\n }\n <span class=\"step-title\" [textContent]=\"step.title\"></span>\n </span>\n @if (step.subtitle) {\n <span class=\"subtitle-wrapper\" [attr.title]=\"step.subtitle\">\n <span class=\"step-title\" [textContent]=\"step.subtitle\"></span>\n <a class=\"read_more\" (click)=\"readMoreSubtitle()\" style=\"display:none\">more</a>\n </span>\n }\n </a>\n </li>\n }\n </ul>\n</div>\n@if (type !== 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if (message.caption) {\n <p wmMessage caption.bind=\"message.caption\" type.bind=\"message.type\"></p>\n }\n <ng-content ngProjectAs=\"form[wmWizardStep]\"></ng-content>\n</div>\n}\n@if (type === 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if(!fieldDefs?.length) {\n <div>{{nodatamessage}}</div>\n }\n <ng-content select=\"div[wmRepeatTemplate]\"></ng-content>\n</div>\n}\n@if(fieldDefs && fieldDefs.length || type !== 'dynamic') {\n <ng-container *ngTemplateOutlet=\"wizardAction\"></ng-container>\n}\n","import { PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-wizardaction',\n new Map([\n ['class', PROP_STRING],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}]\n ])\n );\n};\n","import {Directive, Inject, Injector, Optional} from '@angular/core';\nimport { BaseComponent, IWidgetConfig, provideAsWidgetRef } from '@wm/components/base';\nimport {registerProps} from \"./wizard-action.props\";\n\nconst WIDGET_INFO: IWidgetConfig = {\n widgetType: 'wm-wizardaction',\n hostClass: 'app-wizard-actions panel-footer '\n};\n\n@Directive({\n standalone: true,\n selector: 'div[wmWizardAction]',\n providers: [\n provideAsWidgetRef(WizardActionDirective)\n ],\n exportAs: 'wmWizardAction',\n})\nexport class WizardActionDirective extends BaseComponent {\n static readonly initializeProps = registerProps();\n\n constructor(inj: Injector, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_INFO, explicitContext);\n }\n}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AA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAGQ,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA;EARjC,MAAA;EAAU,MAAA,CAAA;GACT,YAAY;GACV,UAAU;GACV,WAAW,CACP,mBAAkB,qBAAA,CACrB;GACD,UAAU;EACb,CAAA;;;;;GAI+B,MAAA;GAAO,MAAA,CAAA,kBAAkB;E,KAAG,MAAA,S"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["registerProps","registerProps","DEFAULT_CLS","WIDGET_CONFIG","registerProps","i1","registerProps"],"sources":["../../../../../projects/components/widgets/containers/wizard/src/wizard.props.ts","../../../../../projects/components/widgets/containers/wizard/src/wizard-step/wizard-step.props.ts","../../../../../projects/components/widgets/containers/wizard/src/wizard-step/wizard-step.component.ts","../../../../../projects/components/widgets/containers/wizard/src/wizard.component.ts","../../../../../projects/components/widgets/containers/wizard/src/wizard.component.html","../../../../../projects/components/widgets/containers/wizard/src/wizard-action/wizard-action.props.ts","../../../../../projects/components/widgets/containers/wizard/src/wizard-action/wizard-action.directive.ts"],"sourcesContent":["import {PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register} from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-wizard',\n new Map(\n [\n ['actionsalignment', {value: 'right', ...PROP_STRING}],\n ['cancelable', {value: true, ...PROP_BOOLEAN}],\n ['cancelbtnlabel', {value: 'Cancel', ...PROP_STRING}],\n ['class', {value: 'classic', ...PROP_STRING}],\n ['dataset', PROP_ANY],\n ['defaultstep', {value: 'none', ...PROP_STRING}],\n ['defaultstepindex', {value: 0, ...PROP_NUMBER}],\n ['donebtnlabel', {value: 'Done', ...PROP_STRING}],\n ['enablenext', {value: false, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['nextbtnlabel', {value: 'Next', ...PROP_STRING}],\n ['nodatamessage', {value: 'No Data Found', ... PROP_STRING}],\n ['previousbtnlabel', {value: 'Previous', ...PROP_STRING}],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['stepstyle', {value: 'auto', ...PROP_STRING}],\n ['type', PROP_STRING]\n ]\n )\n );\n};\n","import {PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register} from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-wizardstep',\n new Map(\n [\n ['class', PROP_STRING],\n ['content', PROP_STRING],\n ['doneiconclass', {value: 'wi wi-done', ...PROP_STRING}],\n ['doneiconurl', PROP_STRING],\n ['dynamicStepIndex', PROP_NUMBER], // internal property\n ['enableskip', {value: false, ...PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-person', ...PROP_STRING}],\n ['iconurl', PROP_STRING],\n ['isdynamic', PROP_STRING], // internal property\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['subtitle', PROP_STRING],\n ['title', {value: 'Step Title', ...PROP_STRING}]\n ]\n )\n );\n};\n","import {\n AfterViewInit,\n Component,\n ContentChildren,\n HostBinding,\n Inject,\n Injector,\n OnDestroy,\n OnInit,\n Optional,\n Self, ChangeDetectionStrategy\n} from \"@angular/core\";\nimport {\n getCurrentWidgets,\n IWidgetConfig,\n provideAsWidgetRef,\n RedrawableDirective,\n StylableComponent\n} from \"@wm/components/base\";\nimport {NgForm} from \"@angular/forms\";\nimport {registerProps} from \"./wizard-step.props\";\nimport {App, noop} from \"@wm/core\";\nimport {WizardComponent} from \"../wizard.component\";\n\nconst DEFAULT_CLS = 'app-wizard-step-content';\n\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-wizardstep',\n hostClass: DEFAULT_CLS,\n};\n\nconst enum STEP_STATUS {\n CURRENT = 1,\n DISABLED,\n COMPLETED\n}\n\n@Component({\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n selector: 'form[wmWizardStep]',\n template: `<ng-content partial-container-target></ng-content>`,\n providers: [\n provideAsWidgetRef(WizardStepComponent),\n NgForm\n ],\n exportAs: 'wmWizardStep'\n})\nexport class WizardStepComponent extends StylableComponent implements OnInit, AfterViewInit, OnDestroy {\n static readonly initializeProps = registerProps();\n\n public show: boolean;\n public name: string;\n public enableskip: any;\n public disablenext: boolean;\n public disabledone: boolean;\n public disableprevious: boolean;\n public isInitialized: boolean;\n private readonly isdynamic: boolean;\n public $lazyLoad = noop;\n isDone: boolean = false;\n nextCBInProgress: boolean = false;\n prevCBInProgress: boolean = false;\n\n private status: STEP_STATUS = STEP_STATUS.DISABLED;\n private wizardComponent: WizardComponent;\n private readonly _currentWizardWidgets ={}\n\n // reference to the components which needs a redraw(eg, grid, chart) when the height of this component changes\n @ContentChildren(RedrawableDirective, {descendants: true}) reDrawableComponents;\n public isPrism: boolean = false;\n\n @HostBinding('class.active')\n get activeClass() {\n return this.isPrism && this.active;\n }\n\n @HostBinding('class.current')\n get currentClass() {\n return !this.isPrism && this.active;\n }\n\n // Matches react runtime: non-active step content carries the `hidden` attribute.\n // `show` is folded in because this binding overrides base component's `hidden = !show`.\n @HostBinding('hidden')\n get isHidden() {\n return !this.active || this.show === false;\n }\n\n get isCurrent() {\n return this.active;\n }\n\n /**\n * along with the wizard form , also validate the forms\n * if there are any inside the wizard\n * @returns {boolean}\n */\n public get isValid() {\n return (this.ngForm.valid || this.ngForm.disabled) && this.areEmbeddedFormsValid();\n }\n\n /**\n * get all the forms inside the wizard if any and validate\n * @returns {boolean}\n */\n private areEmbeddedFormsValid() {\n for (const form of this.getAllEmbeddedForms()) {\n if (form.widget?.ngform && !form.widget.ngform.valid) {\n return false;\n }\n }\n return true;\n }\n\n private getAllEmbeddedForms() {\n return this.$element.find('form');\n }\n\n public get enableNext() {\n return !this.disablenext;\n }\n\n public get enableDone() {\n return !this.disabledone;\n }\n\n public get enablePrev() {\n return !this.disableprevious;\n }\n\n public set active(nv: boolean) {\n const isActive = this.active;\n this.status = STEP_STATUS.CURRENT;\n if (nv && !isActive) {\n this.redrawChildren();\n }\n }\n\n public get active(): boolean {\n return this.status === STEP_STATUS.CURRENT;\n }\n\n public set done(nv: boolean) {\n if (nv) {\n this.status = STEP_STATUS.COMPLETED;\n }\n }\n\n public get done(): boolean {\n return this.status === STEP_STATUS.COMPLETED;\n }\n\n public set disabled(nv: boolean) {\n if (nv) {\n this.status = STEP_STATUS.DISABLED;\n }\n }\n\n public get disabled(): boolean {\n return this.status === STEP_STATUS.DISABLED;\n }\n\n constructor(inj: Injector, @Self() private readonly ngForm: NgForm, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n // If we inject directly as a param in the constructor, getting circular dependency error in unit testcases\n this.wizardComponent = this.inj.get(WizardComponent);\n this.isPrism = !!this.inj.get(App, null)?.isPrism;\n }\n\n public invokeNextCB(index: number): boolean | Promise<boolean> {\n return this.invokeEventCallback('next', {currentStep: this, stepIndex: index});\n }\n\n public invokePrevCB(index: number): boolean | Promise<boolean> {\n return this.invokeEventCallback('prev', {currentStep: this, stepIndex: index});\n }\n\n public invokeSkipCB(index: number): boolean | Promise<boolean> {\n return this.invokeEventCallback('skip', {currentStep: this, stepIndex: index});\n }\n\n // redraw all the projected components which are projected.\n private redrawChildren() {\n setTimeout(() => {\n if (this.reDrawableComponents) {\n this.reDrawableComponents.forEach(c => c.redraw());\n }\n if ((this as any).wizardComponent) {\n const stepIndex = (this as any).wizardComponent.getCurrentStepIndex();\n this.invokeEventCallback('load', { stepIndex });\n }\n }, 100);\n }\n\n public remove() {\n if (this.active) {\n this === this.wizardComponent.steps.last ? this.wizardComponent.prev() : this.wizardComponent.next();\n }\n const availablePanes = this.wizardComponent.steps.toArray();\n availablePanes.splice((this as any).wizardComponent.getStepIndexByRef(this), 1);\n this.wizardComponent.steps.reset([...availablePanes]);\n this.nativeElement.remove();\n }\n\n get currentWizardWidgets() {\n return getCurrentWidgets(this.nativeElement, this._currentWizardWidgets);\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'content') {\n setTimeout(() => this.$lazyLoad(), 100);\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n ngOnInit() {\n super.ngOnInit();\n }\n\n ngAfterViewInit() {\n super.ngAfterViewInit();\n if (this.isdynamic) {\n this.wizardComponent.registerDynamicStep(this);\n }\n }\n\n ngOnDestroy() {\n // MEMORY LEAK FIX: Clear redrawable components references\n if (this.reDrawableComponents) {\n this.reDrawableComponents.reset([]);\n }\n\n // MEMORY LEAK FIX: Clear wizard component reference\n this.wizardComponent = null;\n\n // Call parent ngOnDestroy (StylableComponent → BaseComponent)\n // This will clear the context and unregister the widget\n super.ngOnDestroy();\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {\n APPLY_STYLES_TYPE,\n Context,\n createArrayFrom,\n IWidgetConfig,\n provideAsWidgetRef,\n StylableComponent,\n styler,\n TextContentDirective,\n WmAppIconComponent\n} from \"@wm/components/base\";\nimport {\n AfterContentChecked,\n AfterContentInit,\n AfterViewChecked,\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n Inject,\n Injector,\n OnDestroy,\n OnInit,\n Optional,\n QueryList,\n Self,\n TemplateRef, ChangeDetectionStrategy\n} from '@angular/core';\n\nimport {DynamicComponentRefProvider, isDefined, noop} from '@wm/core';\nimport {WizardStepperComponent} from '@wm/components/containers/wizardstepper';\n\nimport {registerProps} from './wizard.props';\n\nimport {WizardStepComponent} from \"./wizard-step/wizard-step.component\";\nimport {find, findIndex, forEach, get, indexOf, isArray, isNumber, isString} from \"lodash-es\";\n\n/**\n * Header row shape for icon/tab-stepper helpers. Uses this instead of `WizardStepComponent` on\n * those parameters so TypeScript/ng-packagr does not hit a circular resolution order\n * (wizard-step imports WizardComponent).\n */\ntype WizardStepHeaderModel = {\n isDone: boolean;\n iconclass?: string;\n iconurl?: string;\n doneiconclass?: string;\n doneiconurl?: string;\n};\n\nconst DEFAULT_CLS = 'app-wizard panel clearfix';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-wizard',\n hostClass: DEFAULT_CLS\n};\n\n@Component({\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CommonModule, TextContentDirective, WmAppIconComponent, WizardStepperComponent],\n selector: 'div[wmWizard]',\n templateUrl: './wizard.component.html',\n providers: [\n provideAsWidgetRef(WizardComponent),\n {provide: Context, useFactory: () => { return {} }, multi: true}\n ],\n exportAs: 'wmWizard'\n})\nexport class WizardComponent extends StylableComponent implements OnInit, AfterContentInit, AfterContentChecked, AfterViewInit, AfterViewChecked, OnDestroy {\n static readonly initializeProps = registerProps();\n\n @ContentChildren(WizardStepComponent) steps: QueryList<WizardStepComponent>;\n @ContentChild('wizardAction', { read: TemplateRef, descendants: false }) wizardAction: TemplateRef<any>;\n /**\n * Explicitly authored `<wm-wizardstepper>` child, if the page markup has one (mirrors how\n * `wm-wizardstep`/`wm-wizardaction` are authored, projected, and selectable on canvas).\n */\n @ContentChild(WizardStepperComponent, { descendants: false }) explicitHeader: WizardStepperComponent;\n\n public message: {caption: string, type: string};\n public currentStep: WizardStepComponent;\n\n public stepClass: string;\n public class;\n public name;\n private readonly promiseResolverFn: Function;\n public actionsalignment: any;\n public cancelable: any;\n public enablenext: any;\n public wizContext: any;\n public cancelbtnlabel: any;\n public donebtnlabel: any;\n public previousbtnlabel: any;\n public nextbtnlabel: any;\n public defaultstep;\n public fieldDefs;\n public type;\n public nodatamessage;\n private readonly dynamicComponentProvider;\n private _dynamicContext;\n private dynamicStepIndex;\n public dynamicWizard;\n public defaultstepindex;\n private _isFirstLoad: boolean = true;\n public autoActivation:boolean;\n private stepsSubscription: any; // MEMORY LEAK FIX: Store subscription for cleanup\n\n get hasPrevStep(): boolean {\n return !this._isFirstStep(this.currentStep);\n }\n\n get hasNextStep(): boolean {\n return !this._isLastStep(this.currentStep);\n }\n\n get showDoneBtn(): boolean {\n if (!this.currentStep) {\n return false;\n }\n return !this.hasNextStep && this.currentStep.enableDone;\n }\n\n get enablePrev(): boolean {\n if (!this.currentStep) {\n return false;\n }\n return this.currentStep.enablePrev;\n }\n\n get enableNext(): boolean {\n if (!this.currentStep) {\n return false;\n }\n return this.enablenext ? true : (this.currentStep.enableNext && this.currentStep.isValid);\n }\n\n /**\n * Step header icons (iconclass / doneiconclass): same rules as iconstepper, plus tabstepper\n * (e.g. wizard-tabstepper, tabstepper, tabstepper_vertical). Uses class property + host className\n * so preview stays correct when the DOM is updated before the bound property.\n *\n * Since 002-stepper-header-widget, the appearance variant (number/iconstepper/dottedstepper/\n * ...) is set on the standalone `wm-wizardstepper`'s OWN class, not this wizard's — but this\n * string still gates the template conditionals (`showWizardStepIcons`, `isTabStepperWizard`,\n * `shouldRenderWizardStepNumberSpan`) and `wizContext.getWizardClass()` that decide which\n * per-variant content (digit/dot/icon) the header renders. When a header widget is bound\n * (nested `explicitHeader`, or standalone-by-reference), its class is the SOLE source for\n * these checks — NOT merged with this wizard's own `class`/DOM className. Studio's `wm-wizard`\n * drag-drop templates and its own (separate, legacy) appearance/variant palette still stamp a\n * `wizard-*` class directly onto the wizard element itself; if that stale token were merged in\n * alongside the header's current one, switching the header's appearance (e.g. number ->\n * dottedstepper) would leave both substrings present and fire BOTH variants' content\n * conditionals at once.\n */\n private wizardHostClassString(): string {\n const header = this.explicitHeader || this.resolveStandaloneHeader();\n return header && typeof header.class === 'string' ? header.class : '';\n }\n\n private resolveStandaloneHeader(): WizardStepperComponent | undefined {\n const widgets = (this.viewParent as any)?.Widgets;\n if (!widgets) {\n return undefined;\n }\n return Object.keys(widgets)\n .map(key => widgets[key])\n .find(w => w && w.widgetType === 'wm-wizardstepper' && w.wizardname === this.name);\n }\n\n get showWizardStepIcons(): boolean {\n const c = this.wizardHostClassString();\n if (!c) {\n return false;\n }\n return c.includes('iconstepper') || c.includes('tabstepper');\n }\n\n /** Tab layout only (not icon stepper): omit icon column when step has no icon. */\n get isTabStepperWizard(): boolean {\n const c = this.wizardHostClassString();\n return c.includes('tabstepper') && !c.includes('iconstepper');\n }\n\n /** Default matches wm-wizardstep props; used for icon stepper when iconclass is empty. */\n stepIconClassOrDefault(step: WizardStepHeaderModel): string {\n const c = step?.iconclass || step?.iconurl;\n return typeof c === 'string' && c.trim() ? c.trim() : 'wi wi-person';\n }\n\n hasNonEmptyIconClass(step: WizardStepHeaderModel): boolean {\n const ic = step?.iconclass || step?.iconurl;\n return typeof ic === 'string' && ic.trim() !== '';\n }\n\n /**\n * Primary `app-icon` for icon/tab stepper: only when `iconclass` is set (no default glyph for icon stepper).\n * When `doneiconclass` is set, the done row is shown instead of this primary icon.\n */\n shouldShowPrimaryStepIcon(step: WizardStepHeaderModel): boolean {\n if (!step || !this.showWizardStepIcons) {\n return false;\n }\n if (!step.isDone) {\n return this.hasNonEmptyIconClass(step);\n }\n const d = step.doneiconclass;\n const hasDone = typeof d === 'string' && d.trim() !== '';\n if (hasDone) {\n return false;\n }\n return this.hasNonEmptyIconClass(step);\n }\n\n /**\n * Tab stepper: no `wizard-step-number` when the step is done but `doneiconclass` is empty.\n * Icon stepper: omit the wrapper when there is no primary icon and no done icon to show.\n * Other layouts: keep the wrapper (numbers, dots, etc.).\n */\n shouldRenderWizardStepNumberSpan(step: WizardStepHeaderModel): boolean {\n if (!this.showWizardStepIcons) {\n return true;\n }\n if (this.isTabStepperWizard) {\n if (step.isDone && !this.hasNonEmptyDoneIconClass(step)) {\n return false;\n }\n return (\n this.shouldShowPrimaryStepIcon(step) ||\n (step.isDone && this.hasNonEmptyDoneIconClass(step))\n );\n }\n if (this.wizardHostClassString().includes('iconstepper')) {\n return (\n this.shouldShowPrimaryStepIcon(step) ||\n (step.isDone && this.hasNonEmptyDoneIconClass(step))\n );\n }\n return true;\n }\n\n /** Avoid `String()` in templates (strict mode treats it as a component property). */\n hasNonEmptyDoneIconClass(step: WizardStepHeaderModel): boolean {\n const d = step?.doneiconclass || step?.doneiconurl;\n return typeof d === 'string' && d.trim() !== '';\n }\n\n get enableDone(): boolean {\n if (!this.currentStep) {\n return false;\n }\n return this.currentStep.enableDone && this.currentStep.isValid;\n }\n\n /**\n * returns current step index of the Wizard's current step\n */\n get currentStepIndex() {\n return this.getStepIndexByRef(this.currentStep);\n }\n\n /**\n * returns weather the current step is first step or not\n */\n get isFirstStep(): boolean {\n return this._isFirstStep(this.currentStep);\n }\n\n /**\n * returns weather the current step is last step or not\n */\n get isLastStep(): boolean {\n return this._isLastStep(this.currentStep);\n }\n\n constructor(inj: Injector, dynamicComponentProvider: DynamicComponentRefProvider, @Self() @Inject(Context) contexts: Array<any>, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n let resolveFn: Function = noop;\n\n super(inj, WIDGET_CONFIG, explicitContext, new Promise(res => resolveFn = res));\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SHELL);\n\n this.promiseResolverFn = resolveFn;\n\n // initialize the message object with default values\n this.message = {\n caption: '',\n type: ''\n };\n this.wizContext = contexts[0];\n this.dynamicComponentProvider = dynamicComponentProvider;\n this.dynamicWizard = [];\n this.dynamicStepIndex = 0;\n }\n\n /**\n * This method is used to register the dynamic steps.\n * After all steps are initialzed, update the querylist manually based on index.\n * @param stepRef - refrence of the wizardstep\n */\n public registerDynamicStep(stepRef) {\n this.dynamicWizard.push(stepRef);\n const isLastStep = this.dynamicWizard.length === this.dynamicStepIndex;\n if (isLastStep) {\n for (let i = 0; i < this.dynamicWizard.length; i++) {\n const newStepRef = find(this.dynamicWizard, step => step.dynamicStepIndex === i);\n const isStepAlreadyExist = find(this.steps.toArray(), newStepRef);\n if (!isStepAlreadyExist) {\n this.steps.reset([...this.steps.toArray(), newStepRef]);\n if (newStepRef.active) {\n setTimeout(() => {\n newStepRef.select();\n }, 20);\n }\n }\n }\n }\n }\n\n /**\n * This method is to add the wizard step dynamically\n * @param wizardSteps - list of wizardsteps\n */\n public addStep(wizardSteps) {\n if (!isArray(wizardSteps)) {\n wizardSteps = [wizardSteps];\n }\n const stepNamesList = [];\n forEach(wizardSteps, (step, index) => {\n const isStepAlreadyCreated = find(this.steps.toArray(), {name: step.name});\n const isStepNameExist = indexOf(stepNamesList, step.name);\n // If user tries to add wizardstep with the same name which is already exists then do not create the step\n if (isStepAlreadyCreated || isStepNameExist > 0) {\n console.warn(`The wizard step with name ${step.name} already exists`);\n return;\n }\n\n let paramMarkup = '';\n let propsTmpl = '';\n this.dynamicStepIndex++;\n const name = step.name ? step.name : `wizardstep${this.steps.toArray().length + (index + 1)}`;\n stepNamesList.push(name);\n const partialParams = get(step, 'params');\n\n forEach(step, (value, key) => {\n if (key !== 'params') {\n propsTmpl = `${propsTmpl} ${key}=\"${value}\"`;\n }\n });\n\n forEach(partialParams, (value, key) => {\n paramMarkup = `${paramMarkup} <wm-param name=\"${key}\" value=\"${value}\"></wm-param>`;\n });\n const markup = `<wm-wizardstep dynamicStepIndex=\"${this.dynamicStepIndex - 1}\" isdynamic=\"true\" name=\"${name}\" ${propsTmpl}>\n ${paramMarkup}\n </wm-wizardstep>`;\n\n if (!this._dynamicContext) {\n this._dynamicContext = Object.create(this.viewParent);\n this._dynamicContext[this.getAttr('wmWizard')] = this;\n }\n\n this.dynamicComponentProvider.addComponent(this.getNativeElement().querySelector('.app-wizard-body'), markup, this._dynamicContext, {inj: this.inj});\n\n });\n return stepNamesList;\n }\n\n /**\n * This method is to remove the wizard step\n * @param step - index or name of the step\n */\n public removeStep(step: number | string) {\n const stepRef = isString(step) ? this.getStepRefByName(step) : isNumber(step)\n ? this.getStepRefByIndex(step) : null;\n stepRef ? stepRef.remove() : console.warn(`Could not find step with name or index '${step}' to remove`);\n }\n\n /**\n * returns next valid step. the index passed is also checked if its valid step\n * @param index\n * @returns {WizardStepComponent}\n */\n private getNextValidStepFormIndex(index: number): WizardStepComponent {\n for (let i = index; i < this.steps.length; i++) {\n const step = this.getStepRefByIndex(i);\n if (step.show) {\n return step;\n }\n }\n }\n\n /**\n * returns previous valid step. the index passed is also checked if its valid step\n * @param index\n * @returns {WizardStepComponent}\n */\n private getPreviousValidStepFormIndex(index: number): WizardStepComponent {\n for (let i = index; i >= 0; i--) {\n const step = this.getStepRefByIndex(i);\n if (step.show) {\n return step;\n }\n }\n }\n\n /**\n * returns current step index value.\n * @returns {number}\n */\n private getCurrentStepIndex(): number {\n return this.getStepIndexByRef(this.currentStep);\n }\n\n /**\n * returns stepRef when index is passed.\n * @param {number} index\n * @returns {WizardStepComponent}\n */\n private getStepRefByIndex(index: number): WizardStepComponent {\n return this.steps.toArray()[index];\n }\n\n /**\n * returns the index value of the step.\n * @param {WizardStepComponent} wizardStep\n * @returns {number}\n */\n private getStepIndexByRef(wizardStep: WizardStepComponent): number {\n return this.steps.toArray().indexOf(wizardStep);\n }\n\n /**\n * gets stepRef by searching on the name property.\n * @param {string} name\n * @returns {WizardStepComponent}\n */\n private getStepRefByName(name: string): WizardStepComponent {\n return this.steps.find(step => step.name === name);\n }\n\n /**\n * sets default step as current step if configured\n * or finds first valid step and set it as current step.\n * @param {WizardStepComponent} step\n */\n private setDefaultStep(step: WizardStepComponent) {\n // If the default step has show true then only update the currentStep\n if (step?.show) {\n this.currentStep = step;\n step.active = true;\n step.isInitialized = true;\n // Mark all previous step status COMPLETED\n let index = this.getStepIndexByRef(step) - 1;\n while (index >= 0) {\n const prevStep = this.getStepRefByIndex(index);\n prevStep.done = true;\n prevStep.isInitialized = true;\n index--;\n }\n } else {\n // set next valid step as current step\n step = this.getNextValidStepFormIndex(0);\n if (step) {\n this.setDefaultStep(step);\n }\n }\n this.addMoreText();\n }\n\n /**\n * Selects the associated step when the wizard stepper is clicked.\n * @param $event\n * @param {WizardStepComponent} currentStep\n */\n private onWizardStepperClick($event: Event, currentStep: WizardStepComponent) {\n // select the step if it's status is done\n if (currentStep.done) {\n // set all the next steps status as disabled and previous steps as done\n this.steps.forEach((step, index) => {\n if (index < this.getStepIndexByRef(currentStep)) {\n step.done = true;\n step.isDone = true;\n } else {\n step.disabled = true;\n step.isDone = false;\n }\n });\n // set the selected step as current step and make it active\n this.currentStep = currentStep;\n this.currentStep.active = true;\n this.addMoreText();\n }\n }\n\n private readonly isPromise = (obj) => obj instanceof Promise || (obj !== null && typeof obj === 'object' && typeof obj.then === 'function' && typeof obj.catch === 'function');\n\n // Method to navigate to next step\n\n private handleNext(value: boolean | Promise<boolean>, currentStep, currentStepIndex) {\n if (this.isPromise(value)) {\n (value as Promise<boolean>).then(response => {\n this.currentStep.nextCBInProgress = false;\n if (response === false) {\n return;\n }\n this.extendNextFn(currentStep, currentStepIndex);\n }, err => {\n this.currentStep.nextCBInProgress = false;\n })\n } else {\n this.currentStep.nextCBInProgress = false;\n if (value === false) {\n return;\n }\n this.extendNextFn(currentStep, currentStepIndex);\n }\n }\n\n public next(eventName: string = 'next') {\n if (this.currentStep.nextCBInProgress) {\n return;\n }\n\n const currentStep = this.currentStep;\n const currentStepIndex = this.getCurrentStepIndex();\n\n // abort if onSkip method returns false\n if (eventName === 'skip') {\n this.currentStep.nextCBInProgress = true;\n const response = currentStep.invokeSkipCB(currentStepIndex);\n this.handleNext(response, currentStep, currentStepIndex);\n } else if (this.currentStep.isValid && eventName === 'next') {\n this.currentStep.nextCBInProgress = true;\n const response = currentStep.invokeNextCB(currentStepIndex);\n this.handleNext(response, currentStep, currentStepIndex);\n } else if (this.enablenext && !this.currentStep.isValid){\n Array.from((<any>this).currentStep.getAllEmbeddedForms())?.forEach((form:any) => {\n form.widget.highlightInvalidFields();\n });\n const invalidFormInputElement = this.currentStep.nativeElement?.querySelector(\"input.ng-invalid\") as HTMLInputElement;\n invalidFormInputElement?.focus();\n\n }\n }\n\n private extendNextFn(currentStep, currentStepIndex) {\n const nextStep: WizardStepComponent = this.getNextValidStepFormIndex(currentStepIndex + 1);\n // If there are any steps which has show then only change state of current step else remain same\n if (nextStep) {\n nextStep.isInitialized = true;\n currentStep.isDone = true;\n currentStep.done = true;\n nextStep.active = true;\n this.currentStep = nextStep;\n // Remove 'active' class from all wizard steps in header\n const allStepItems = this.nativeElement.querySelectorAll('li[data-stepid]');\n allStepItems.forEach((el: Element) => {\n el.classList.remove('active');\n const anchor = el.querySelector('a');\n if (anchor) {\n anchor.setAttribute('tabindex', '-1');\n }\n });\n // Add 'active' to next step header item\n const newStepLi = this.nativeElement.querySelector(`li[data-stepid=\"${nextStep.widgetId}\"]`);\n const newStepAnchor = newStepLi?.querySelector('a') as HTMLElement;\n if (newStepLi && newStepAnchor) {\n newStepLi.classList.add('active');\n newStepAnchor.setAttribute('tabindex', '0');\n newStepAnchor.focus();\n }\n this.updateStepFocus();\n }\n this.addMoreText();\n }\n // Method to navigate to previous step\n public prev() {\n if (this.currentStep.prevCBInProgress) {\n return;\n }\n\n const currentStep = this.currentStep;\n const currentStepIndex = this.getCurrentStepIndex();\n\n this.currentStep.prevCBInProgress = true;\n // abort if onPrev method returns false.\n const response = currentStep.invokePrevCB(currentStepIndex);\n if (this.isPromise(response)) {\n (response as Promise<boolean>).then( response => {\n this.currentStep.prevCBInProgress = false;\n if (response === false) {\n return;\n }\n this.extendPrevFn(currentStep, currentStepIndex);\n }, err => {\n this.currentStep.prevCBInProgress = false;\n });\n } else {\n this.currentStep.prevCBInProgress = false;\n if (response === false) {\n return;\n }\n this.extendPrevFn(currentStep, currentStepIndex);\n }\n }\n\n private extendPrevFn(currentStep, currentStepIndex){\n const prevStep: WizardStepComponent = this.getPreviousValidStepFormIndex(currentStepIndex - 1);\n\n // If there are any steps which has show then only change state of current step else remain same\n if (prevStep) {\n currentStep.isDone = false;\n currentStep.disabled = true;\n prevStep.active = true;\n this.currentStep = prevStep;\n // Remove 'active' class from all steps\n const allStepItems = this.nativeElement.querySelectorAll('li[data-stepid]');\n allStepItems.forEach((el: Element) => {\n el.classList.remove('active');\n const anchor = el.querySelector('a');\n if (anchor) {\n anchor.setAttribute('tabindex', '-1');\n }\n });\n // Apply 'active' to prev step\n const prevStepLi = this.nativeElement.querySelector(`li[data-stepid=\"${prevStep.widgetId}\"]`);\n const prevStepAnchor = prevStepLi?.querySelector('a') as HTMLElement;\n if (prevStepLi && prevStepAnchor) {\n prevStepLi.classList.add('active');\n prevStepAnchor.setAttribute('tabindex', '0');\n prevStepAnchor.focus();\n }\n this.updateStepFocus();\n }\n this.addMoreText();\n }\n\n public skip() {\n this.next('skip');\n }\n\n /**\n * Navigates to the given step based on step name or step index\n * This will work only if the step is already in done state\n * @param step\n */\n public gotoStep(step: string | number) {\n let gotoStepIndex: number;\n if (isString(step)) {\n gotoStepIndex = this.steps.toArray().map(step => step.name).indexOf(step);\n if (gotoStepIndex === -1) {\n console.error(`Could not find step '${step}'`);\n return;\n }\n } else if (isNumber(step) && step >= 0) {\n gotoStepIndex = step;\n } else {\n console.error(\"Invalid step name or index provided\");\n return;\n }\n\n const gotoStep: WizardStepComponent = this.getStepRefByIndex(gotoStepIndex);\n\n if (gotoStep?.show) {\n this.onWizardStepperClick(event, gotoStep);\n } else {\n console.error(\"The gotoStep function cannot navigate to hidden steps\");\n }\n }\n\n // Method to invoke on-Done event on wizard\n public done() {\n this.currentStep.isDone = true;\n this.invokeEventCallback('done', {steps: this.steps.toArray()});\n }\n // Method to invoke on-Cancel event on wizard\n public cancel () {\n this.invokeEventCallback('cancel', {steps: this.steps.toArray()});\n }\n public addMoreText(){\n setTimeout(() => {\n\n\n const newWindowWidth = $(window).width();\n if(newWindowWidth < 768){\n $(\".app-wizard-step.active .subtitle-wrapper .step-title\").css({\"height\":\"auto\",\"display\":\"block\"});\n const subtitleTextLength = $(\".app-wizard-step.active .subtitle-wrapper .step-title\").height();\n $(\".read_more\").css(\"display\",\"none\");\n $(\".app-wizard-step.active .subtitle-wrapper\").removeClass(\"readmore_subtitle\");\n\n if(subtitleTextLength>44){\n $(\".app-wizard-step.active .subtitle-wrapper .step-title\").css({\"height\":\"44px\",\"display\":\"-webkit-box\"});\n $(\".app-wizard-step.active .read_more\").css(\"display\",\"block\");\n $(\".app-wizard-step.finished .read_more\").css(\"display\",\"none\");\n $(\".app-wizard-step.default .read_more\").css(\"display\",\"none\");\n $(\".app-wizard-step>a\").css(\"height\",\"100px\")\n }\n }\n });\n\n }\n public readMoreSubtitle(){\n $(\".app-wizard-step.active .subtitle-wrapper\").addClass(\"readmore_subtitle\");\n $(\".app-wizard-step.active .read_more\").css(\"display\",\"none\");\n $(document).on(\"mouseup\",function(e:any)\n {\n const container = $(\".subtitle-wrapper\");\n // if the target of the click isn't the container nor a descendant of the container\n if (!container.is(e.target) && container.has(e.target).length === 0)\n {\n $(\".app-wizard-step.active .subtitle-wrapper\").removeClass(\"readmore_subtitle\");\n $(\".app-wizard-step.active .read_more\").css(\"display\",\"block\");\n $(document).off(\"mouseup\");\n }\n });\n }\n\n private _isFirstStep(stepRef: WizardStepComponent) {\n return this.steps.first === stepRef;\n }\n\n private _isLastStep(stepRef: WizardStepComponent) {\n return this.steps.last === stepRef;\n }\n\n private onDataChange(newVal) {\n this.fieldDefs = createArrayFrom(newVal);\n }\n\n private updateStepFocus() {\n setTimeout(() => {\n const currentStepElement = this.nativeElement.querySelector(\".app-wizard-heading li.active a\") as HTMLElement;\n currentStepElement?.focus();\n });\n }\n\n // Define the property change handler. This Method will be triggered when there is a change in the widget property\n onPropertyChange(key: string, nv: any, ov?: any) {\n // Monitoring changes for properties and accordingly handling respective changes\n\n if (key === 'stepstyle') {\n this.stepClass = nv === 'justified' ? 'nav-justified' : '';\n } else if (key === 'dataset') {\n this.onDataChange(nv);\n } else if (key === 'defaultstep') {\n this.setDefaultStep(this.getStepRefByName(nv));\n } else if (key === 'actionsalignment') {\n this.nativeElement.querySelector('div.app-wizard-actions')?.classList.replace(ov, nv);\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n ngAfterContentInit() {\n super.ngAfterContentInit();\n this.promiseResolverFn();\n // See `syncNestedHeaderVerticalClass()`'s doc comment: `promiseResolverFn()` above\n // schedules `initWidget()`'s one-time read of the host `class` DOM attribute as a\n // microtask (a `.then()` already attached in the constructor). Queuing our own class\n // application as a FRESH microtask here runs it strictly AFTER that one (microtasks are\n // FIFO), so it can never race that one-time read.\n Promise.resolve().then(() => {\n this.nestedHeaderVerticalClassReady = true;\n this.syncNestedHeaderVerticalClass();\n });\n this.wizContext.hasNextStep = () => this.hasNextStep;\n this.wizContext.hasPreviousStep = () => this.hasPrevStep;\n this.wizContext.hasNoNextStep = () => this.showDoneBtn;\n this.wizContext.cancelable = () => this.cancelable;\n this.wizContext.skippable = () => this.currentStep?.enableskip;\n this.wizContext.next = () => this.next();\n this.wizContext.previous = () => this.prev();\n this.wizContext.done = () => this.done();\n this.wizContext.cancel = () => this.cancel();\n this.wizContext.skip = () => this.skip();\n this.wizContext.nextbtnlabel = () => this.nextbtnlabel;\n this.wizContext.previousbtnlabel = () => this.previousbtnlabel;\n this.wizContext.donebtnlabel = () => this.donebtnlabel;\n this.wizContext.cancelbtnlabel = () => this.cancelbtnlabel;\n this.wizContext.actionsalignment = () => this.actionsalignment;\n this.wizContext.disableNext = () => !this.enableNext;\n this.wizContext.disablePrevious = () => !this.enablePrev;\n this.wizContext.disableDone = () => !this.enableDone;\n\n // Wizard-header decoupling seam (002-stepper-header-widget): the header reads the live\n // `steps` QueryList reference (mutations via `.reset()` on the same instance stay visible)\n // and proxies through these functions instead of importing WizardComponent directly,\n // so `@wm/components/containers/wizardstepper` has no dependency on this package.\n this.wizContext.steps = this.steps;\n this.wizContext.getWizardClass = () => this.wizardHostClassString();\n this.wizContext.getStepClass = () => this.stepClass;\n this.wizContext.onHeaderClick = (event: Event, step: WizardStepComponent) => this.onWizardStepperClick(event, step);\n this.wizContext.onHeaderKeyDown = (event: KeyboardEvent) => this.onkeydown(event);\n this.wizContext.shouldRenderStepNumberSpan = (step: WizardStepHeaderModel) => this.shouldRenderWizardStepNumberSpan(step);\n this.wizContext.shouldShowPrimaryStepIcon = (step: WizardStepHeaderModel) => this.shouldShowPrimaryStepIcon(step);\n this.wizContext.hasNonEmptyDoneIconClass = (step: WizardStepHeaderModel) => this.hasNonEmptyDoneIconClass(step);\n this.wizContext.stepIconClassOrDefault = (step: WizardStepHeaderModel) => this.stepIconClassOrDefault(step);\n this.wizContext.showWizardStepIcons = () => this.showWizardStepIcons;\n this.wizContext.isTabStepperWizard = () => this.isTabStepperWizard;\n this.wizContext.readMoreSubtitle = () => this.readMoreSubtitle();\n\n // MEMORY LEAK FIX: Store subscription for cleanup\n this.stepsSubscription = this.steps.changes.subscribe( () => {\n if (this.steps.length > 1 && this.type === 'dynamic' && this._isFirstLoad) {\n this.setDefaultStep(this.getStepRefByIndex(this.defaultstepindex));\n this._isFirstLoad = false;\n }\n });\n\n // Standalone-by-reference headers (US2/T037/T040): `this.name` and this wizard's entry\n // in `viewParent.Widgets` are populated by the `initPromise`-deferred `setInitProps()`/\n // `initWidget()` call (see the constructor and `base.component.ts`), which resolves via\n // a MICROTASK scheduled by `this.promiseResolverFn()` just above — i.e., strictly AFTER\n // this synchronous `detectChanges()` pass returns, not during it. Angular does not\n // automatically re-check bindings just because a value changed after the fact, so\n // WITHOUT this, `hasExternalHeader` below (and a standalone header's own `wizContext`\n // read elsewhere) would be evaluated against a `name`/registry that hasn't landed yet on\n // the very first render, in an environment with no automatic subsequent CD tick (a bare\n // TestBed harness, or possibly Studio's canvas pipeline — an ordinary bootstrapped\n // Angular app self-corrects via its own zone-driven `ApplicationRef.tick()`, but this\n // must not depend on that). A `setTimeout` macrotask is guaranteed by the JS event loop\n // to run only after ALL pending microtasks (including the one above) have drained,\n // so forcing one more check here is sufficient regardless of the host environment.\n setTimeout(() => {\n const cdr = this.inj.get(ChangeDetectorRef, null);\n if (cdr && !(cdr as any).destroyed) {\n cdr.detectChanges();\n }\n });\n }\n private isSelectableStep(stepRef: WizardStepComponent): boolean {\n return stepRef.show && !stepRef.disabled;\n }\n private getSelectableStepBeforeIndex(index: number): WizardStepComponent {\n for (let i = index - 1; i >= 0; i--) {\n const step = this.getStepRefByIndex(i);\n if (this.isSelectableStep(step)) {\n return step;\n }\n }\n if (index === 0) {\n const step = this.getStepRefByIndex(this.steps.length - 1);\n if (this.isSelectableStep(step)) {\n return step;\n }\n }\n }\n private getSelectableStepAfterIndex(index: number): WizardStepComponent {\n for (let i = index + 1; i < this.steps.length; i++) {\n const step = this.getStepRefByIndex(i);\n if (this.isSelectableStep(step)) {\n return step;\n }\n }\n if (index === this.steps.length - 1) {\n const step = this.getStepRefByIndex(0);\n if (this.isSelectableStep(step)) {\n return step;\n }\n }\n }\n\n public getWidgets(widgteName: string, index?: number) {\n let $target;\n const retVal = [];\n\n if (!widgteName) {\n return;\n }\n\n if (!isDefined(index)) {\n forEach(this.steps.toArray(), (el) => {\n $target = get(el.currentWizardWidgets, widgteName);\n if ($target) {\n retVal.push($target);\n }\n });\n\n return retVal;\n }\n index = +index || 0;\n\n $target = get(this.steps.toArray(), index);\n\n if ($target) {\n return [get($target.currentWizardWidgets, widgteName)];\n }\n }\n\n\n ngAfterViewInit() {\n super.ngAfterViewInit();\n styler(\n this.nativeElement.querySelector('.panel-body') as HTMLElement,\n this,\n APPLY_STYLES_TYPE.INNER_SHELL\n );\n setTimeout(() => { if($(window).width()<768) {\n $(\".app-wizard\").removeClass(\"vertical\");\n }\n });\n }\n ngAfterViewChecked() {\n this.nativeElement.querySelectorAll('div.app-wizard-actions').forEach(el => el?.classList.add(this.actionsalignment));\n this.nativeElement.querySelectorAll('div.app-wizard-actions-right').forEach(el => el?.classList.remove('app-container'));\n }\n public getActiveStepIndex(): number {\n return findIndex(this.steps.toArray(), {isCurrent: true});\n }\n onkeydown(event) {\n let newStep;\n switch (event.key) {\n case 'ArrowLeft':\n case 'ArrowUp':\n event.preventDefault();\n newStep = this.autoActivation ? null : this.getSelectableStepBeforeIndex(this.getSelectedStepIndex());\n break;\n\n case 'ArrowRight':\n case 'ArrowDown':\n event.preventDefault();\n newStep = this.autoActivation ? null : this.getSelectableStepAfterIndex(this.getSelectedStepIndex());\n break;\n case 'Enter':\n case ' ':\n case 'Spacebar':\n event.preventDefault();\n setTimeout(() => {\n const activeElement = this.nativeElement.querySelector('li.active');\n const stepLi = activeElement?.closest('li[data-stepid]');\n const isInWizardStepper = activeElement?.closest('.app-wizard-heading');\n\n if (stepLi && isInWizardStepper) {\n const stepId = stepLi.getAttribute('data-stepid');\n const stepIndex = this.steps.toArray().findIndex(step => step.widgetId === stepId);\n const currentStep = this.steps.toArray()[stepIndex];\n\n if (currentStep && currentStep !== this.currentStep) {\n this.onWizardStepperClick(event, currentStep);\n\n // Update tabindex for accessibility\n const allStepItems = this.nativeElement.querySelectorAll('li[data-stepid]');\n allStepItems.forEach((el: Element) => {\n (el as HTMLElement).setAttribute('tabindex', '-1');\n });\n\n const stepAnchor = stepLi.querySelector('a');\n if (stepAnchor) {\n stepAnchor.setAttribute('tabindex', '0');\n stepAnchor.focus();\n }\n }\n }\n }, 0);\n break;\n default:\n return;\n }\n if (newStep) {\n this.nativeElement.querySelector('li.active')?.classList.remove('active');\n this.nativeElement.querySelector(`li[data-stepid=\"${newStep.widgetId}\"]`)?.classList.add('active');\n const stepLi = this.nativeElement.querySelector(\".app-wizard-heading li.active a\") as HTMLElement;\n const allStepItems = this.nativeElement.querySelectorAll('li[data-stepid] a');\n allStepItems.forEach((el: Element) => {\n (el as HTMLElement).setAttribute('tabindex', '-1');\n });\n stepLi?.setAttribute('tabindex', '0');\n stepLi?.focus();\n }\n }\n getSelectedStepIndex() {\n const index = this.steps.toArray().findIndex(step =>\n this.nativeElement.querySelector(`li[data-stepid=\"${step.widgetId}\"]`)?.classList.contains(\"active\"));\n return index >= 0 ? index : this.getActiveStepIndex();\n }\n\n /**\n * Standalone-by-reference headers (002-stepper-header-widget, US2): whether some\n * `wm-wizardstepper` elsewhere on the page has its `wizardname` pointing at this wizard —\n * distinguishes an externally-bound header from a nested one (`explicitHeader`), so this\n * wizard's own class/state helpers know which header is authoritative.\n *\n * Deliberately a stateless getter that scans the shared `Widgets` registry on every read,\n * rather than an imperative register/unregister handshake: this component's OWN\n * registration into `viewParent.Widgets` is itself DEFERRED (see the `initPromise` passed to\n * `super()` above — registration only completes once `ngAfterContentInit` resolves it),\n * which fires strictly after `ngOnInit`. A header's one-shot `ngOnInit`-time \"register with\n * my wizard\" call would therefore always run before this wizard exists in the registry,\n * regardless of which one is declared first in markup — and there is no reliable later hook\n * to retry from. Scanning at READ time sidesteps the ordering question entirely: whatever\n * has registered into `Widgets` by the time this getter is actually evaluated is correct,\n * the same principle already relied on for `wizContext` resolution in\n * `wizardstepper.component.ts`.\n */\n get hasExternalHeader(): boolean {\n const widgets = (this.viewParent as any)?.Widgets;\n if (!widgets) {\n return false;\n }\n // Exclude `explicitHeader` by NAME, not reference: `Widgets[name]` holds the widget's\n // `WidgetProxyProvider` Proxy (see `base.component.ts#createProxy`), which is never\n // `===` to the raw component instance Angular's `@ContentChild` resolves — a nested\n // header is often ALSO authored with a `wizardname` pointing at its own parent\n // (redundant self-reference for robust 002-style association), and without this\n // exclusion that self-reference makes a nested header indistinguishable from a\n // genuinely standalone one bound by reference, permanently short-circuiting\n // `isNestedHeaderVertical` to false below.\n const explicitHeaderName = this.explicitHeader?.name;\n return Object.keys(widgets).some(key => {\n const w = widgets[key];\n return w && (!explicitHeaderName || w.name !== explicitHeaderName) && w.widgetType === 'wm-wizardstepper' && w.wizardname === this.name;\n });\n }\n\n /**\n * Restores the pre-002 vertical layout for a nested header (contracts/wizard-\n * header-class-hook.md): reflects the active header's `wizardstepper-vertical` class token onto\n * this wizard's host so `wizard.less`'s `.app-wizard.wizardstepper-vertical` grid rule fires\n * again. The token is `wizardstepper-`-prefixed because direction is a wizardstepper-only token\n * (wizard.json defines no variantGroups); it pairs with `wizardstepper-horizontal`.\n *\n * Reads the explicitly-authored nested header's (`explicitHeader`) own `class`.\n *\n * Never derived from a STANDALONE header — the explicit `hasExternalHeader` check\n * structurally guarantees FR-005/FR-006.\n */\n get isNestedHeaderVertical(): boolean {\n if (this.hasExternalHeader) {\n return false;\n }\n const headerClass = this.explicitHeader?.class;\n return !!headerClass?.includes('wizardstepper-vertical');\n }\n\n /**\n * Deliberately NOT a `@HostBinding` (contracts/wizard-header-class-hook.md's rule is\n * behavioral, not tied to that mechanism): Angular evaluates a component's own host bindings\n * SYNCHRONOUSLY, in the same change-detection pass as `ngAfterContentInit`/\n * `ngAfterContentChecked`, but `this.promiseResolverFn()` (called at the top of\n * `ngAfterContentInit`) only *schedules* `initWidget()` -> `processAttrs()` -> a one-time\n * read of the host element's CURRENT `class` DOM attribute into `this.class` (see\n * `setInitProps()` in `base.component.ts`) as a MICROTASK -- `.then()` callbacks never run\n * synchronously even on an already-resolved promise. A `@HostBinding`, or any synchronous\n * mutation of this same attribute from `ngAfterContentInit`/`ngAfterContentChecked`, would\n * therefore land BEFORE that one-time read on the very first change-detection pass,\n * permanently baking `wizardstepper-vertical` into `this.class` whenever a nested header starts out\n * vertical on first render -- a direct R7 violation. `nestedHeaderVerticalClassReady` gates\n * `ngAfterContentChecked` until the microtask queued alongside `promiseResolverFn()` (FIFO\n * order guarantees it runs after `initWidget()`'s) has actually flipped it, so the very first\n * class application always happens after `this.class` is safely captured; every subsequent\n * change-detection pass is unconditionally safe since that one-time read has already fired.\n */\n private nestedHeaderVerticalClassReady = false;\n\n private syncNestedHeaderVerticalClass(): void {\n this.nativeElement.classList.toggle('wizardstepper-vertical', this.isNestedHeaderVertical);\n }\n\n ngAfterContentChecked() {\n if (this.nestedHeaderVerticalClassReady) {\n this.syncNestedHeaderVerticalClass();\n }\n }\n\n ngOnDestroy() {\n // MEMORY LEAK FIX: Unsubscribe from steps changes\n if (this.stepsSubscription) {\n this.stepsSubscription.unsubscribe();\n this.stepsSubscription = null;\n }\n\n // MEMORY LEAK FIX: Remove jQuery event handlers\n $(document).off(\"mouseup\");\n\n // MEMORY LEAK FIX: Clear wizard context to release references to step data\n if (this.wizContext) {\n Object.keys(this.wizContext).forEach(key => {\n delete this.wizContext[key];\n });\n this.wizContext = null;\n }\n\n // MEMORY LEAK FIX: Clear dynamic context\n if (this._dynamicContext) {\n Object.keys(this._dynamicContext).forEach(key => {\n delete this._dynamicContext[key];\n });\n this._dynamicContext = null;\n }\n\n // MEMORY LEAK FIX: Clear dynamic wizard array\n if (this.dynamicWizard) {\n this.dynamicWizard = [];\n }\n\n // MEMORY LEAK FIX: Clear current step reference\n this.currentStep = null;\n\n super.ngOnDestroy();\n }\n}\n","<!--\n 002-stepper-header-widget: the header is the standalone `wm-wizardstepper` widget. The page\n markup authors one explicitly (as a child, same as wm-wizardstep/wm-wizardaction), and it is\n projected here, selectable/movable on canvas like any other widget. See wizard.component.ts\n ngAfterContentInit for the wizContext handshake this component reads from.\n-->\n<ng-content select=\"div[wmWizardStepper]\"></ng-content>\n@if (type !== 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if (message.caption) {\n <p wmMessage caption.bind=\"message.caption\" type.bind=\"message.type\"></p>\n }\n <ng-content ngProjectAs=\"form[wmWizardStep]\"></ng-content>\n</div>\n}\n@if (type === 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if(!fieldDefs?.length) {\n <div>{{nodatamessage}}</div>\n }\n <ng-content select=\"div[wmRepeatTemplate]\"></ng-content>\n</div>\n}\n@if(fieldDefs && fieldDefs.length || type !== 'dynamic') {\n <ng-container *ngTemplateOutlet=\"wizardAction\"></ng-container>\n}\n","import { PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-wizardaction',\n new Map([\n ['class', PROP_STRING],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}]\n ])\n );\n};\n","import {Directive, Inject, Injector, Optional} from '@angular/core';\nimport { BaseComponent, IWidgetConfig, provideAsWidgetRef } from '@wm/components/base';\nimport {registerProps} from \"./wizard-action.props\";\n\nconst WIDGET_INFO: IWidgetConfig = {\n widgetType: 'wm-wizardaction',\n hostClass: 'app-wizard-actions panel-footer '\n};\n\n@Directive({\n standalone: true,\n selector: 'div[wmWizardAction]',\n providers: [\n provideAsWidgetRef(WizardActionDirective)\n ],\n exportAs: 'wmWizardAction',\n})\nexport class WizardActionDirective extends BaseComponent {\n static readonly initializeProps = registerProps();\n\n constructor(inj: Injector, @Inject('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AAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAqB,MAAA,CAAA,EAAA,OAAA,GAAA,SAAA,GAAA;IAAA,OAGK;IAAkB,UAAA;GAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAH5C;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAqB,cAAA;GAAA,UAAA;GAAA,WALnB,CACP,mBAAmB,qBAAqB,CAC3C;GAAA,UAAA,CAAA,gBAAA;GAAA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAGQ,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA;EARjC,MAAA;EAAU,MAAA,CAAA;GACT,YAAY;GACV,UAAU;GACV,WAAW,CACP,mBAAkB,qBAAA,CACrB;GACD,UAAU;EACb,CAAA;;;;;GAI+B,MAAA;GAAO,MAAA,CAAA,kBAAkB;E,KAAG,MAAA,S"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseComponent, StylableComponent } from "@wm/components/base";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import { AfterContentInit, AfterViewChecked, AfterViewInit, Injector, OnDestroy, OnInit, QueryList, TemplateRef } from "@angular/core";
|
|
3
|
+
import { AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, Injector, OnDestroy, OnInit, QueryList, TemplateRef } from "@angular/core";
|
|
4
4
|
import { DynamicComponentRefProvider } from "@wm/core";
|
|
5
|
+
import { WizardStepperComponent } from "@wm/components/containers/wizardstepper";
|
|
5
6
|
import { NgForm } from "@angular/forms";
|
|
6
7
|
export declare class WizardStepComponent extends StylableComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
7
8
|
private readonly ngForm;
|
|
@@ -25,6 +26,7 @@ export declare class WizardStepComponent extends StylableComponent implements On
|
|
|
25
26
|
isPrism: boolean;
|
|
26
27
|
get activeClass(): boolean;
|
|
27
28
|
get currentClass(): boolean;
|
|
29
|
+
get isHidden(): boolean;
|
|
28
30
|
get isCurrent(): boolean;
|
|
29
31
|
/**
|
|
30
32
|
* along with the wizard form , also validate the forms
|
|
@@ -77,10 +79,15 @@ type WizardStepHeaderModel = {
|
|
|
77
79
|
doneiconclass?: string;
|
|
78
80
|
doneiconurl?: string;
|
|
79
81
|
};
|
|
80
|
-
export declare class WizardComponent extends StylableComponent implements OnInit, AfterContentInit, AfterViewInit, AfterViewChecked, OnDestroy {
|
|
82
|
+
export declare class WizardComponent extends StylableComponent implements OnInit, AfterContentInit, AfterContentChecked, AfterViewInit, AfterViewChecked, OnDestroy {
|
|
81
83
|
static readonly initializeProps: void;
|
|
82
84
|
steps: QueryList<WizardStepComponent>;
|
|
83
85
|
wizardAction: TemplateRef<any>;
|
|
86
|
+
/**
|
|
87
|
+
* Explicitly authored `<wm-wizardstepper>` child, if the page markup has one (mirrors how
|
|
88
|
+
* `wm-wizardstep`/`wm-wizardaction` are authored, projected, and selectable on canvas).
|
|
89
|
+
*/
|
|
90
|
+
explicitHeader: WizardStepperComponent;
|
|
84
91
|
message: {
|
|
85
92
|
caption: string;
|
|
86
93
|
type: string;
|
|
@@ -119,8 +126,22 @@ export declare class WizardComponent extends StylableComponent implements OnInit
|
|
|
119
126
|
* Step header icons (iconclass / doneiconclass): same rules as iconstepper, plus tabstepper
|
|
120
127
|
* (e.g. wizard-tabstepper, tabstepper, tabstepper_vertical). Uses class property + host className
|
|
121
128
|
* so preview stays correct when the DOM is updated before the bound property.
|
|
129
|
+
*
|
|
130
|
+
* Since 002-stepper-header-widget, the appearance variant (number/iconstepper/dottedstepper/
|
|
131
|
+
* ...) is set on the standalone `wm-wizardstepper`'s OWN class, not this wizard's — but this
|
|
132
|
+
* string still gates the template conditionals (`showWizardStepIcons`, `isTabStepperWizard`,
|
|
133
|
+
* `shouldRenderWizardStepNumberSpan`) and `wizContext.getWizardClass()` that decide which
|
|
134
|
+
* per-variant content (digit/dot/icon) the header renders. When a header widget is bound
|
|
135
|
+
* (nested `explicitHeader`, or standalone-by-reference), its class is the SOLE source for
|
|
136
|
+
* these checks — NOT merged with this wizard's own `class`/DOM className. Studio's `wm-wizard`
|
|
137
|
+
* drag-drop templates and its own (separate, legacy) appearance/variant palette still stamp a
|
|
138
|
+
* `wizard-*` class directly onto the wizard element itself; if that stale token were merged in
|
|
139
|
+
* alongside the header's current one, switching the header's appearance (e.g. number ->
|
|
140
|
+
* dottedstepper) would leave both substrings present and fire BOTH variants' content
|
|
141
|
+
* conditionals at once.
|
|
122
142
|
*/
|
|
123
143
|
private wizardHostClassString;
|
|
144
|
+
private resolveStandaloneHeader;
|
|
124
145
|
get showWizardStepIcons(): boolean;
|
|
125
146
|
/** Tab layout only (not icon stepper): omit icon column when step has no icon. */
|
|
126
147
|
get isTabStepperWizard(): boolean;
|
|
@@ -212,11 +233,11 @@ export declare class WizardComponent extends StylableComponent implements OnInit
|
|
|
212
233
|
*/
|
|
213
234
|
private setDefaultStep;
|
|
214
235
|
/**
|
|
215
|
-
* Selects the associated step when the wizard
|
|
236
|
+
* Selects the associated step when the wizard stepper is clicked.
|
|
216
237
|
* @param $event
|
|
217
238
|
* @param {WizardStepComponent} currentStep
|
|
218
239
|
*/
|
|
219
|
-
private
|
|
240
|
+
private onWizardStepperClick;
|
|
220
241
|
private readonly isPromise;
|
|
221
242
|
private handleNext;
|
|
222
243
|
next(eventName?: string): void;
|
|
@@ -249,13 +270,66 @@ export declare class WizardComponent extends StylableComponent implements OnInit
|
|
|
249
270
|
getActiveStepIndex(): number;
|
|
250
271
|
onkeydown(event: any): void;
|
|
251
272
|
getSelectedStepIndex(): number;
|
|
273
|
+
/**
|
|
274
|
+
* Standalone-by-reference headers (002-stepper-header-widget, US2): whether some
|
|
275
|
+
* `wm-wizardstepper` elsewhere on the page has its `wizardname` pointing at this wizard —
|
|
276
|
+
* distinguishes an externally-bound header from a nested one (`explicitHeader`), so this
|
|
277
|
+
* wizard's own class/state helpers know which header is authoritative.
|
|
278
|
+
*
|
|
279
|
+
* Deliberately a stateless getter that scans the shared `Widgets` registry on every read,
|
|
280
|
+
* rather than an imperative register/unregister handshake: this component's OWN
|
|
281
|
+
* registration into `viewParent.Widgets` is itself DEFERRED (see the `initPromise` passed to
|
|
282
|
+
* `super()` above — registration only completes once `ngAfterContentInit` resolves it),
|
|
283
|
+
* which fires strictly after `ngOnInit`. A header's one-shot `ngOnInit`-time "register with
|
|
284
|
+
* my wizard" call would therefore always run before this wizard exists in the registry,
|
|
285
|
+
* regardless of which one is declared first in markup — and there is no reliable later hook
|
|
286
|
+
* to retry from. Scanning at READ time sidesteps the ordering question entirely: whatever
|
|
287
|
+
* has registered into `Widgets` by the time this getter is actually evaluated is correct,
|
|
288
|
+
* the same principle already relied on for `wizContext` resolution in
|
|
289
|
+
* `wizardstepper.component.ts`.
|
|
290
|
+
*/
|
|
291
|
+
get hasExternalHeader(): boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Restores the pre-002 vertical layout for a nested header (contracts/wizard-
|
|
294
|
+
* header-class-hook.md): reflects the active header's `wizardstepper-vertical` class token onto
|
|
295
|
+
* this wizard's host so `wizard.less`'s `.app-wizard.wizardstepper-vertical` grid rule fires
|
|
296
|
+
* again. The token is `wizardstepper-`-prefixed because direction is a wizardstepper-only token
|
|
297
|
+
* (wizard.json defines no variantGroups); it pairs with `wizardstepper-horizontal`.
|
|
298
|
+
*
|
|
299
|
+
* Reads the explicitly-authored nested header's (`explicitHeader`) own `class`.
|
|
300
|
+
*
|
|
301
|
+
* Never derived from a STANDALONE header — the explicit `hasExternalHeader` check
|
|
302
|
+
* structurally guarantees FR-005/FR-006.
|
|
303
|
+
*/
|
|
304
|
+
get isNestedHeaderVertical(): boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Deliberately NOT a `@HostBinding` (contracts/wizard-header-class-hook.md's rule is
|
|
307
|
+
* behavioral, not tied to that mechanism): Angular evaluates a component's own host bindings
|
|
308
|
+
* SYNCHRONOUSLY, in the same change-detection pass as `ngAfterContentInit`/
|
|
309
|
+
* `ngAfterContentChecked`, but `this.promiseResolverFn()` (called at the top of
|
|
310
|
+
* `ngAfterContentInit`) only *schedules* `initWidget()` -> `processAttrs()` -> a one-time
|
|
311
|
+
* read of the host element's CURRENT `class` DOM attribute into `this.class` (see
|
|
312
|
+
* `setInitProps()` in `base.component.ts`) as a MICROTASK -- `.then()` callbacks never run
|
|
313
|
+
* synchronously even on an already-resolved promise. A `@HostBinding`, or any synchronous
|
|
314
|
+
* mutation of this same attribute from `ngAfterContentInit`/`ngAfterContentChecked`, would
|
|
315
|
+
* therefore land BEFORE that one-time read on the very first change-detection pass,
|
|
316
|
+
* permanently baking `wizardstepper-vertical` into `this.class` whenever a nested header starts out
|
|
317
|
+
* vertical on first render -- a direct R7 violation. `nestedHeaderVerticalClassReady` gates
|
|
318
|
+
* `ngAfterContentChecked` until the microtask queued alongside `promiseResolverFn()` (FIFO
|
|
319
|
+
* order guarantees it runs after `initWidget()`'s) has actually flipped it, so the very first
|
|
320
|
+
* class application always happens after `this.class` is safely captured; every subsequent
|
|
321
|
+
* change-detection pass is unconditionally safe since that one-time read has already fired.
|
|
322
|
+
*/
|
|
323
|
+
private nestedHeaderVerticalClassReady;
|
|
324
|
+
private syncNestedHeaderVerticalClass;
|
|
325
|
+
ngAfterContentChecked(): void;
|
|
252
326
|
ngOnDestroy(): void;
|
|
253
327
|
static ɵfac: i0.ɵɵFactoryDeclaration<WizardComponent, [null, null, {
|
|
254
328
|
self: true;
|
|
255
329
|
}, {
|
|
256
330
|
optional: true;
|
|
257
331
|
}]>;
|
|
258
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WizardComponent, "div[wmWizard]", ["wmWizard"], {}, {}, ["wizardAction", "steps"], ["*", "div[wmRepeatTemplate]"], true, never>;
|
|
332
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WizardComponent, "div[wmWizard]", ["wmWizard"], {}, {}, ["wizardAction", "explicitHeader", "steps"], ["div[wmWizardStepper]", "*", "div[wmRepeatTemplate]"], true, never>;
|
|
259
333
|
}
|
|
260
334
|
export declare class WizardActionDirective extends BaseComponent {
|
|
261
335
|
static readonly initializeProps: void;
|