From 3c9537314225312cefa464fd63ecbd8ec6b340a7 Mon Sep 17 00:00:00 2001 From: Daniel Battaglia Date: Thu, 21 Dec 2023 13:42:06 +0100 Subject: [PATCH 1/2] fix(): add form wizard models to public api --- projects/lib/src/public-api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/lib/src/public-api.ts b/projects/lib/src/public-api.ts index 853da6d..a3f67d8 100644 --- a/projects/lib/src/public-api.ts +++ b/projects/lib/src/public-api.ts @@ -36,3 +36,4 @@ export * from './form/form-config' export * from './form/form-control-visibility-handler' export * from './form/form-util' export * from './form/form-wrapper' +export * from './form/form-wizard/models' From d48b0f9bd0544b4b05afa0dd23c61b0bee7bc788 Mon Sep 17 00:00:00 2001 From: Daniel Battaglia Date: Thu, 21 Dec 2023 13:41:28 +0100 Subject: [PATCH 2/2] fix(): workaround for steps in wizard overview not hidden due to ds bug also see https://github.com/baloise/design-system/issues/1246 --- .../form-wizard/wizard-overview/wizard-overview.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/lib/src/form/form-wizard/wizard-overview/wizard-overview.component.ts b/projects/lib/src/form/form-wizard/wizard-overview/wizard-overview.component.ts index 21085d9..5e54dee 100644 --- a/projects/lib/src/form/form-wizard/wizard-overview/wizard-overview.component.ts +++ b/projects/lib/src/form/form-wizard/wizard-overview/wizard-overview.component.ts @@ -16,7 +16,9 @@ export class WizardOverviewComponent implements OnInit { @Input() set steps(steps: WizardStep[]) { - this._steps = steps + // TODO: remove when https://github.com/baloise/design-system/issues/1246 is resolved + // step.filter() was added as a workaround to fix an issue introduced with Design System 15.0.2 + this._steps = steps.filter(s => s.visible && s.enabled) } ngOnInit(): void {