@fundamental-ngx/platform 0.46.0-rc.2 → 0.46.0-rc.21
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/esm2022/approval-flow/approval-flow-add-node/approval-flow-add-node.component.mjs +1 -1
- package/esm2022/approval-flow/approval-flow.component.mjs +3 -3
- package/esm2022/form/auto-complete/auto-complete.directive.mjs +4 -3
- package/esm2022/form/auto-complete/auto-complete.module.mjs +4 -6
- package/esm2022/form/checkbox/checkbox.module.mjs +5 -8
- package/esm2022/form/checkbox-group/checkbox-group.module.mjs +5 -7
- package/esm2022/form/combobox/combobox/combobox.component.mjs +36 -14
- package/esm2022/form/combobox/combobox-mobile/combobox/combobox-mobile.component.mjs +19 -4
- package/esm2022/form/combobox/combobox-mobile/combobox-mobile.module.mjs +4 -9
- package/esm2022/form/combobox/combobox.module.mjs +5 -51
- package/esm2022/form/combobox/commons/base-combobox.mjs +9 -1
- package/esm2022/form/form-generator/form-generator/form-generator.component.mjs +3 -3
- package/esm2022/form/form-group/fdp-form.module.mjs +10 -42
- package/esm2022/form/form-group/form-field/form-field.component.mjs +47 -12
- package/esm2022/form/form-group/form-field-error/form-field-error-description.directive.mjs +4 -3
- package/esm2022/form/form-group/form-field-error/form-field-error-heading.directive.mjs +4 -3
- package/esm2022/form/form-group/form-field-error/form-field-error.directive.mjs +4 -3
- package/esm2022/form/form-group/form-field-extras/form-field-extras.component.mjs +3 -3
- package/esm2022/form/form-group/form-field-group/form-field-group.component.mjs +3 -3
- package/esm2022/form/form-group/form-group-header/form-group-header.component.mjs +8 -6
- package/esm2022/form/form-group/form-group.component.mjs +25 -10
- package/esm2022/form/form-group/pipes/field-group-row-value.pipe.mjs +6 -3
- package/esm2022/form/input/fdp-input.module.mjs +5 -11
- package/esm2022/form/input/input.component.mjs +5 -4
- package/esm2022/form/input-group/addon-body.component.mjs +6 -4
- package/esm2022/form/input-group/addon.component.mjs +4 -4
- package/esm2022/form/input-group/input-group.component.mjs +9 -10
- package/esm2022/form/input-group/input-group.module.mjs +5 -29
- package/esm2022/form/input-group/input.component.mjs +4 -3
- package/esm2022/form/input-message-group-with-template/input-message-group-with-template.component.mjs +5 -5
- package/esm2022/form/multi-combobox/commons/base-multi-combobox.mjs +9 -1
- package/esm2022/form/multi-combobox/multi-combobox/multi-combobox.component.mjs +44 -19
- package/esm2022/form/multi-combobox/multi-combobox-mobile/multi-combobox/multi-combobox-mobile.component.mjs +24 -5
- package/esm2022/form/multi-combobox/multi-combobox-mobile/multi-combobox-mobile.module.mjs +4 -10
- package/esm2022/form/multi-combobox/multi-combobox.module.mjs +5 -65
- package/esm2022/form/multi-input/multi-input-mobile/multi-input-mobile.component.mjs +11 -7
- package/esm2022/form/multi-input/multi-input-mobile/multi-input-mobile.module.mjs +4 -9
- package/esm2022/form/multi-input/multi-input.component.mjs +39 -20
- package/esm2022/form/multi-input/multi-input.module.mjs +5 -51
- package/esm2022/form/platform-file-uploader/platform-file-uploader.component.mjs +6 -5
- package/esm2022/form/platform-file-uploader/platform-file-uploader.module.mjs +5 -11
- package/esm2022/form/radio-group/radio/radio.component.mjs +10 -9
- package/esm2022/form/radio-group/radio-group.component.mjs +6 -6
- package/esm2022/form/radio-group/radio-group.module.mjs +5 -32
- package/esm2022/form/select/option/option.component.mjs +6 -3
- package/esm2022/form/select/select/select.component.mjs +20 -11
- package/esm2022/form/select/select.module.mjs +5 -54
- package/esm2022/form/step-input/number/number-step-input.component.mjs +25 -14
- package/esm2022/form/step-input/step-input-control.directive.mjs +4 -3
- package/esm2022/form/step-input/step-input-decrement.directive.mjs +4 -3
- package/esm2022/form/step-input/step-input-increment.directive.mjs +4 -3
- package/esm2022/form/step-input/step-input.module.mjs +13 -35
- package/esm2022/form/switch/switch/switch.component.mjs +4 -3
- package/esm2022/form/switch/switch.module.mjs +5 -11
- package/esm2022/form/text-area/text-area.component.mjs +12 -11
- package/esm2022/form/text-area/text-area.module.mjs +5 -32
- package/esm2022/form/time-picker/time-picker.component.mjs +5 -5
- package/esm2022/form/time-picker/time-picker.module.mjs +5 -11
- package/esm2022/list/list.component.mjs +3 -3
- package/esm2022/search-field/search-field.component.mjs +3 -3
- package/esm2022/settings-generator/controls/theme-selector-list/theme-selector-list.component.mjs +18 -9
- package/esm2022/settings-generator/layouts/settings-generator-sidebar-layout/settings-generator-sidebar-icon/settings-generator-sidebar-icon.component.mjs +8 -5
- package/esm2022/settings-generator/layouts/settings-generator-sidebar-layout/settings-generator-sidebar-layout.component.mjs +18 -10
- package/esm2022/settings-generator/settings-generator-content/settings-generator-content.component.mjs +22 -10
- package/esm2022/settings-generator/settings-generator-content/settings-generator-section/settings-generator-section.component.mjs +5 -6
- package/esm2022/settings-generator/settings-generator.component.mjs +3 -3
- package/esm2022/settings-generator/settings-generator.module.mjs +12 -54
- package/esm2022/shared/form/base.input.mjs +43 -13
- package/esm2022/shared/form/form-field.mjs +1 -1
- package/esm2022/slider/slider.component.mjs +4 -4
- package/esm2022/smart-filter-bar/components/smart-filter-bar-conditions-dialog/smart-filter-bar-conditions-dialog.component.mjs +3 -3
- package/esm2022/smart-filter-bar/components/smart-filter-bar-settings-dialog/smart-filter-bar-settings-dialog.component.mjs +3 -3
- package/esm2022/split-menu-button/split-menu-button.component.mjs +3 -3
- package/esm2022/table/components/table-cell-header-popover/table-cell-header-popover.component.mjs +3 -3
- package/esm2022/table/components/table-p13-dialog/filtering/filter-rule.component.mjs +1 -1
- package/esm2022/table/components/table-p13-dialog/grouping/grouping.component.mjs +1 -1
- package/esm2022/table/components/table-p13-dialog/sorting/sorting.component.mjs +2 -2
- package/esm2022/table/components/table-p13-dialog/table-p13-dialog.component.mjs +11 -11
- package/esm2022/table/components/table-row/table-row.component.mjs +3 -3
- package/esm2022/table/components/table-toolbar/table-toolbar.component.mjs +5 -5
- package/esm2022/table/components/table-toolbar/table-toolbar.mjs +1 -1
- package/esm2022/table/table.component.mjs +14 -5
- package/esm2022/upload-collection/upload-collection/upload-collection.component.mjs +3 -3
- package/esm2022/value-help-dialog/components/define-tab/define-tab.component.mjs +1 -1
- package/esm2022/value-help-dialog/components/select-tab/select-tab.component.mjs +3 -3
- package/esm2022/variant-management/components/manage-variants-dialog/manage-variants-dialog.component.mjs +1 -1
- package/esm2022/wizard-generator/components/dialog-wizard-generator/dialog-wizard-generator.component.mjs +41 -18
- package/esm2022/wizard-generator/components/wizard-body/wizard-body.component.mjs +20 -8
- package/esm2022/wizard-generator/components/wizard-generator/wizard-generator.component.mjs +10 -8
- package/esm2022/wizard-generator/components/wizard-generator-step/wizard-generator-step.component.mjs +5 -5
- package/esm2022/wizard-generator/components/wizard-summary-step/wizard-summary-section/wizard-summary-section.component.mjs +12 -9
- package/esm2022/wizard-generator/components/wizard-summary-step/wizard-summary-step.component.mjs +5 -5
- package/esm2022/wizard-generator/directives/wizard-generator-finish-button.directive.mjs +4 -3
- package/esm2022/wizard-generator/directives/wizard-generator-go-next-button.directive.mjs +4 -3
- package/esm2022/wizard-generator/directives/wizard-generator-review-button.directive.mjs +4 -3
- package/esm2022/wizard-generator/directives/wizard-generator-summary-step.directive.mjs +4 -3
- package/esm2022/wizard-generator/wizard-generator.module.mjs +13 -56
- package/fesm2022/fundamental-ngx-platform-approval-flow.mjs +3 -3
- package/fesm2022/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-form.mjs +541 -635
- package/fesm2022/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-list.mjs +2 -2
- package/fesm2022/fundamental-ngx-platform-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-search-field.mjs +2 -2
- package/fesm2022/fundamental-ngx-platform-search-field.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-settings-generator.mjs +69 -80
- package/fesm2022/fundamental-ngx-platform-settings-generator.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-shared.mjs +42 -12
- package/fesm2022/fundamental-ngx-platform-shared.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-slider.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs +4 -4
- package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-split-menu-button.mjs +2 -2
- package/fesm2022/fundamental-ngx-platform-split-menu-button.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-table.mjs +423 -414
- package/fesm2022/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-upload-collection.mjs +2 -2
- package/fesm2022/fundamental-ngx-platform-upload-collection.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs +3 -3
- package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-variant-management.mjs +1 -1
- package/fesm2022/fundamental-ngx-platform-variant-management.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-wizard-generator.mjs +226 -228
- package/fesm2022/fundamental-ngx-platform-wizard-generator.mjs.map +1 -1
- package/form/auto-complete/auto-complete.directive.d.ts +1 -1
- package/form/auto-complete/auto-complete.module.d.ts +1 -2
- package/form/checkbox/checkbox.module.d.ts +2 -5
- package/form/checkbox-group/checkbox-group.module.d.ts +2 -4
- package/form/combobox/combobox/combobox.component.d.ts +1 -1
- package/form/combobox/combobox-mobile/combobox/combobox-mobile.component.d.ts +1 -1
- package/form/combobox/combobox-mobile/combobox-mobile.module.d.ts +1 -5
- package/form/combobox/combobox.module.d.ts +1 -12
- package/form/combobox/commons/base-combobox.d.ts +2 -0
- package/form/form-group/fdp-form.module.d.ts +1 -9
- package/form/form-group/form-field/form-field.component.d.ts +12 -3
- package/form/form-group/form-field-error/form-field-error-description.directive.d.ts +1 -1
- package/form/form-group/form-field-error/form-field-error-heading.directive.d.ts +1 -1
- package/form/form-group/form-field-error/form-field-error.directive.d.ts +1 -1
- package/form/form-group/form-field-extras/form-field-extras.component.d.ts +1 -1
- package/form/form-group/form-field-group/form-field-group.component.d.ts +1 -1
- package/form/form-group/form-group-header/form-group-header.component.d.ts +1 -1
- package/form/form-group/form-group.component.d.ts +1 -1
- package/form/form-group/pipes/field-group-row-value.pipe.d.ts +1 -1
- package/form/input/fdp-input.module.d.ts +1 -6
- package/form/input/input.component.d.ts +1 -1
- package/form/input-group/addon-body.component.d.ts +1 -1
- package/form/input-group/addon.component.d.ts +1 -1
- package/form/input-group/input-group.component.d.ts +1 -1
- package/form/input-group/input-group.module.d.ts +1 -5
- package/form/input-group/input.component.d.ts +1 -1
- package/form/input-message-group-with-template/input-message-group-with-template.component.d.ts +1 -1
- package/form/multi-combobox/commons/base-multi-combobox.d.ts +2 -0
- package/form/multi-combobox/multi-combobox/multi-combobox.component.d.ts +1 -1
- package/form/multi-combobox/multi-combobox-mobile/multi-combobox/multi-combobox-mobile.component.d.ts +1 -1
- package/form/multi-combobox/multi-combobox-mobile/multi-combobox-mobile.module.d.ts +1 -6
- package/form/multi-combobox/multi-combobox.module.d.ts +1 -15
- package/form/multi-input/multi-input-mobile/multi-input-mobile.component.d.ts +1 -1
- package/form/multi-input/multi-input-mobile/multi-input-mobile.module.d.ts +1 -5
- package/form/multi-input/multi-input.component.d.ts +1 -1
- package/form/multi-input/multi-input.module.d.ts +1 -11
- package/form/platform-file-uploader/platform-file-uploader.component.d.ts +1 -1
- package/form/platform-file-uploader/platform-file-uploader.module.d.ts +1 -6
- package/form/radio-group/radio/radio.component.d.ts +1 -1
- package/form/radio-group/radio-group.component.d.ts +1 -1
- package/form/radio-group/radio-group.module.d.ts +1 -7
- package/form/select/option/option.component.d.ts +1 -1
- package/form/select/select/select.component.d.ts +3 -1
- package/form/select/select.module.d.ts +1 -12
- package/form/step-input/number/number-step-input.component.d.ts +1 -1
- package/form/step-input/step-input-control.directive.d.ts +1 -1
- package/form/step-input/step-input-decrement.directive.d.ts +1 -1
- package/form/step-input/step-input-increment.directive.d.ts +1 -1
- package/form/step-input/step-input.module.d.ts +1 -7
- package/form/switch/switch/switch.component.d.ts +1 -1
- package/form/switch/switch.module.d.ts +1 -6
- package/form/text-area/text-area.component.d.ts +1 -1
- package/form/text-area/text-area.module.d.ts +1 -7
- package/form/time-picker/time-picker.component.d.ts +1 -1
- package/form/time-picker/time-picker.module.d.ts +1 -6
- package/fundamental-ngx-platform-v0.46.0-rc.21.tgz +0 -0
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/settings-generator/controls/theme-selector-list/theme-selector-list.component.d.ts +2 -2
- package/settings-generator/layouts/settings-generator-sidebar-layout/settings-generator-sidebar-icon/settings-generator-sidebar-icon.component.d.ts +1 -1
- package/settings-generator/layouts/settings-generator-sidebar-layout/settings-generator-sidebar-layout.component.d.ts +1 -1
- package/settings-generator/settings-generator-content/settings-generator-content.component.d.ts +1 -1
- package/settings-generator/settings-generator-content/settings-generator-section/settings-generator-section.component.d.ts +1 -1
- package/settings-generator/settings-generator.component.d.ts +1 -1
- package/settings-generator/settings-generator.module.d.ts +9 -20
- package/shared/form/base.input.d.ts +42 -27
- package/shared/form/form-field.d.ts +22 -7
- package/table/components/table-p13-dialog/table-p13-dialog.component.d.ts +7 -7
- package/table/components/table-toolbar/table-toolbar.component.d.ts +3 -3
- package/table/components/table-toolbar/table-toolbar.d.ts +4 -1
- package/table/table.component.d.ts +9 -3
- package/wizard-generator/components/dialog-wizard-generator/dialog-wizard-generator.component.d.ts +5 -4
- package/wizard-generator/components/wizard-body/wizard-body.component.d.ts +1 -1
- package/wizard-generator/components/wizard-generator/wizard-generator.component.d.ts +1 -1
- package/wizard-generator/components/wizard-generator-step/wizard-generator-step.component.d.ts +1 -1
- package/wizard-generator/components/wizard-summary-step/wizard-summary-section/wizard-summary-section.component.d.ts +1 -1
- package/wizard-generator/components/wizard-summary-step/wizard-summary-step.component.d.ts +1 -1
- package/wizard-generator/directives/wizard-generator-finish-button.directive.d.ts +1 -1
- package/wizard-generator/directives/wizard-generator-go-next-button.directive.d.ts +1 -1
- package/wizard-generator/directives/wizard-generator-review-button.directive.d.ts +1 -1
- package/wizard-generator/directives/wizard-generator-summary-step.directive.d.ts +1 -1
- package/wizard-generator/wizard-generator.module.d.ts +12 -24
- package/fundamental-ngx-platform-v0.46.0-rc.2.tgz +0 -0
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter, Directive, Input, Output, Component,
|
|
2
|
+
import { Injectable, EventEmitter, Directive, Input, Output, Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChildren, inject, ViewChild, TemplateRef, ContentChild, NgModule } from '@angular/core';
|
|
3
3
|
import { Subject, BehaviorSubject, of, firstValueFrom } from 'rxjs';
|
|
4
4
|
import { take, map, debounceTime, takeUntil, finalize, filter } from 'rxjs/operators';
|
|
5
5
|
import { cloneDeep, uniq, mergeWith, concat } from 'lodash-es';
|
|
6
6
|
import * as i2 from '@fundamental-ngx/platform/form';
|
|
7
7
|
import { FormGeneratorComponent, FormGeneratorService, FORM_GENERATOR_ITEM_CONFIG, FORM_GENERATOR_CONFIG, PlatformFormGeneratorModule } from '@fundamental-ngx/platform/form';
|
|
8
|
-
import * as
|
|
9
|
-
import { isFunction, selectStrategy,
|
|
10
|
-
import * as i3$
|
|
11
|
-
import { ContentDensityMode } from '@fundamental-ngx/core/content-density';
|
|
12
|
-
import * as i2$
|
|
8
|
+
import * as i6 from '@fundamental-ngx/cdk/utils';
|
|
9
|
+
import { isFunction, selectStrategy, InitialFocusDirective, RepeatDirective } from '@fundamental-ngx/cdk/utils';
|
|
10
|
+
import * as i3$1 from '@fundamental-ngx/core/content-density';
|
|
11
|
+
import { ContentDensityMode, ContentDensityDirective } from '@fundamental-ngx/core/content-density';
|
|
12
|
+
import * as i2$3 from '@fundamental-ngx/core/dialog';
|
|
13
13
|
import { DialogModule } from '@fundamental-ngx/core/dialog';
|
|
14
|
-
import * as
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import * as
|
|
18
|
-
import { TitleModule } from '@fundamental-ngx/core/title';
|
|
19
|
-
import * as i5$1 from '@fundamental-ngx/platform/button';
|
|
20
|
-
import { PlatformButtonModule } from '@fundamental-ngx/platform/button';
|
|
21
|
-
import * as i4$2 from '@fundamental-ngx/core/wizard';
|
|
14
|
+
import * as i8 from '@fundamental-ngx/core/message-box';
|
|
15
|
+
import { MessageBoxService, MessageBoxModule } from '@fundamental-ngx/core/message-box';
|
|
16
|
+
import { NgFor, NgIf, NgTemplateOutlet } from '@angular/common';
|
|
17
|
+
import * as i2$2 from '@fundamental-ngx/core/wizard';
|
|
22
18
|
import { WizardModule } from '@fundamental-ngx/core/wizard';
|
|
23
|
-
import
|
|
24
|
-
import
|
|
19
|
+
import * as i5 from '@fundamental-ngx/core/title';
|
|
20
|
+
import { TitleComponent } from '@fundamental-ngx/core/title';
|
|
21
|
+
import * as i1 from '@fundamental-ngx/core/layout-grid';
|
|
25
22
|
import { LayoutGridModule } from '@fundamental-ngx/core/layout-grid';
|
|
26
|
-
import * as
|
|
23
|
+
import * as i2$1 from '@fundamental-ngx/core/form';
|
|
27
24
|
import { FormLabelModule } from '@fundamental-ngx/core/form';
|
|
28
|
-
import * as
|
|
25
|
+
import * as i3 from '@fundamental-ngx/platform/link';
|
|
29
26
|
import { PlatformLinkModule } from '@fundamental-ngx/platform/link';
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import
|
|
33
|
-
import
|
|
27
|
+
import { FdTranslatePipe } from '@fundamental-ngx/i18n';
|
|
28
|
+
import { isFunction as isFunction$1 } from '@fundamental-ngx/platform/shared';
|
|
29
|
+
import * as i4 from '@fundamental-ngx/platform/button';
|
|
30
|
+
import { PlatformButtonModule } from '@fundamental-ngx/platform/button';
|
|
31
|
+
import { CdkScrollable } from '@angular/cdk/overlay';
|
|
32
|
+
import { ScrollbarDirective } from '@fundamental-ngx/core/scrollbar';
|
|
33
|
+
import * as i3$2 from '@fundamental-ngx/core/bar';
|
|
34
|
+
import { BarModule } from '@fundamental-ngx/core/bar';
|
|
35
|
+
import * as i3$3 from '@fundamental-ngx/core/skeleton';
|
|
34
36
|
import { SkeletonModule } from '@fundamental-ngx/core/skeleton';
|
|
35
37
|
|
|
36
38
|
var WizardGeneratorRefreshStrategy;
|
|
@@ -811,6 +813,145 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
811
813
|
type: Output
|
|
812
814
|
}] } });
|
|
813
815
|
|
|
816
|
+
class WizardSummarySectionComponent {
|
|
817
|
+
constructor() {
|
|
818
|
+
/**
|
|
819
|
+
* Emits when step edit button clicked.
|
|
820
|
+
*/
|
|
821
|
+
this.editStep = new EventEmitter();
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* @hidden
|
|
825
|
+
* @description Sets current step on wizard.
|
|
826
|
+
* @param event Mouse click event to prevent.
|
|
827
|
+
*/
|
|
828
|
+
_editStep(event) {
|
|
829
|
+
event.preventDefault();
|
|
830
|
+
this.editStep.emit(this.step.id);
|
|
831
|
+
}
|
|
832
|
+
/** @hidden */
|
|
833
|
+
_trackFn(_, form) {
|
|
834
|
+
return form.id;
|
|
835
|
+
}
|
|
836
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardSummarySectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
837
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: WizardSummarySectionComponent, isStandalone: true, selector: "fdp-wizard-summary-section", inputs: { step: "step" }, outputs: { editStep: "editStep" }, ngImport: i0, template: "<ng-container *ngFor=\"let group of step.forms; trackBy: _trackFn\">\n <h4 fd-title [headerSize]=\"4\">{{ group.title }}</h4>\n <fd-layout-grid [style.margin-bottom.rem]=\"2\">\n <div fdLayoutGridRow>\n <div [fdLayoutGridCol]=\"4\" [colMd]=\"2\" [colLg]=\"2\" [colXl]=\"2\">\n <div *ngFor=\"let item of group.items\">\n <label fd-form-label> {{ item.label }}: </label>\n </div>\n </div>\n <div [fdLayoutGridCol]=\"4\" [colMd]=\"5\" [colLg]=\"5\" [colXl]=\"5\">\n <div *ngFor=\"let item of group.items\">\n <label fd-form-label>\n {{ item.value || '-' }}\n </label>\n </div>\n </div>\n <div [fdLayoutGridCol]=\"1\" [colMd]=\"5\" [colLg]=\"5\" [colXl]=\"5\">\n <fdp-link href=\"#\" (click)=\"_editStep($event)\">\n {{ 'platformWizardGenerator.summarySectionEditStep' | fdTranslate }}\n </fdp-link>\n </div>\n </div>\n </fd-layout-grid>\n</ng-container>\n", dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "ngmodule", type: LayoutGridModule }, { kind: "component", type: i1.LayoutGridComponent, selector: "fd-layout-grid, [fdLayoutGrid]", inputs: ["class", "noGap", "noHorizontalGap", "noVerticalGap"] }, { kind: "directive", type: i1.LayoutGridColDirective, selector: "[fd-layout-grid-col], [fdLayoutGridCol]", inputs: ["fdLayoutGridCol", "colGrow", "colMd", "colLg", "colXl", "colOffset", "colOffsetMd", "colOffsetLg", "colOffsetXl", "class"] }, { kind: "directive", type: i1.LayoutGridRowDirective, selector: "[fd-layout-grid-row], [fdLayoutGridRow]" }, { kind: "ngmodule", type: FormLabelModule }, { kind: "component", type: i2$1.FormLabelComponent, selector: "[fd-form-label]", inputs: ["required", "colon", "alignLabelEnd", "inlineHelpContent", "inlineHelpGlyph", "inlineHelpTriggers", "inlineHelpBodyPlacement", "inlineHelpPlacement", "inlineHelpLabel", "id"] }, { kind: "ngmodule", type: PlatformLinkModule }, { kind: "component", type: i3.LinkComponent, selector: "fdp-link", inputs: ["href", "target", "linkType", "type", "inverted", "title", "hreflang", "download", "media", "rel", "truncate"], outputs: ["click"] }, { kind: "pipe", type: FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
838
|
+
}
|
|
839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardSummarySectionComponent, decorators: [{
|
|
840
|
+
type: Component,
|
|
841
|
+
args: [{ selector: 'fdp-wizard-summary-section', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [NgFor, TitleComponent, LayoutGridModule, FormLabelModule, PlatformLinkModule, FdTranslatePipe], template: "<ng-container *ngFor=\"let group of step.forms; trackBy: _trackFn\">\n <h4 fd-title [headerSize]=\"4\">{{ group.title }}</h4>\n <fd-layout-grid [style.margin-bottom.rem]=\"2\">\n <div fdLayoutGridRow>\n <div [fdLayoutGridCol]=\"4\" [colMd]=\"2\" [colLg]=\"2\" [colXl]=\"2\">\n <div *ngFor=\"let item of group.items\">\n <label fd-form-label> {{ item.label }}: </label>\n </div>\n </div>\n <div [fdLayoutGridCol]=\"4\" [colMd]=\"5\" [colLg]=\"5\" [colXl]=\"5\">\n <div *ngFor=\"let item of group.items\">\n <label fd-form-label>\n {{ item.value || '-' }}\n </label>\n </div>\n </div>\n <div [fdLayoutGridCol]=\"1\" [colMd]=\"5\" [colLg]=\"5\" [colXl]=\"5\">\n <fdp-link href=\"#\" (click)=\"_editStep($event)\">\n {{ 'platformWizardGenerator.summarySectionEditStep' | fdTranslate }}\n </fdp-link>\n </div>\n </div>\n </fd-layout-grid>\n</ng-container>\n" }]
|
|
842
|
+
}], propDecorators: { step: [{
|
|
843
|
+
type: Input
|
|
844
|
+
}], editStep: [{
|
|
845
|
+
type: Output
|
|
846
|
+
}] } });
|
|
847
|
+
|
|
848
|
+
class WizardSummaryStepComponent {
|
|
849
|
+
/**
|
|
850
|
+
* @description Summary step status.
|
|
851
|
+
*/
|
|
852
|
+
set status(status) {
|
|
853
|
+
if (status === 'current') {
|
|
854
|
+
this._wizardGeneratorService.getWizardFormValue(true).then((forms) => {
|
|
855
|
+
this._submittedForms = forms;
|
|
856
|
+
this._wizardSteps = this._wizardGeneratorService.items.filter((i) => this._submittedForms[i.id] !== undefined);
|
|
857
|
+
this._formatWizardValue().then(() => {
|
|
858
|
+
this._shouldRender = true;
|
|
859
|
+
this._cd.detectChanges();
|
|
860
|
+
});
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
else {
|
|
864
|
+
this._shouldRender = false;
|
|
865
|
+
}
|
|
866
|
+
this._cd.detectChanges();
|
|
867
|
+
}
|
|
868
|
+
/** @hidden */
|
|
869
|
+
constructor(_wizardGeneratorService, _formGeneratorService, _cd) {
|
|
870
|
+
this._wizardGeneratorService = _wizardGeneratorService;
|
|
871
|
+
this._formGeneratorService = _formGeneratorService;
|
|
872
|
+
this._cd = _cd;
|
|
873
|
+
/**
|
|
874
|
+
* Formatted wizard value with steps and their forms.
|
|
875
|
+
*/
|
|
876
|
+
this.formattedWizardValue = [];
|
|
877
|
+
/**
|
|
878
|
+
* @hidden
|
|
879
|
+
*/
|
|
880
|
+
this._shouldRender = false;
|
|
881
|
+
/** @hidden */
|
|
882
|
+
this._editStepFn = (stepId) => this.editStep(stepId);
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Opens defined step for editing.
|
|
886
|
+
* @param stepId Defined step ID.
|
|
887
|
+
*/
|
|
888
|
+
editStep(stepId) {
|
|
889
|
+
this._wizardGeneratorService.editStep(stepId);
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* @hidden
|
|
893
|
+
* @param index
|
|
894
|
+
* @returns step index
|
|
895
|
+
*/
|
|
896
|
+
_trackFn(_, step) {
|
|
897
|
+
return step.id;
|
|
898
|
+
}
|
|
899
|
+
/** @hidden */
|
|
900
|
+
async _formatWizardValue() {
|
|
901
|
+
this.formattedWizardValue = [];
|
|
902
|
+
for (const step of this._wizardSteps) {
|
|
903
|
+
const component = this._wizardGeneratorService.stepsComponents.get(step.id);
|
|
904
|
+
const componentForms = component?.getVisibleForms();
|
|
905
|
+
if (!componentForms) {
|
|
906
|
+
continue;
|
|
907
|
+
}
|
|
908
|
+
const formattedStepValue = await this._formatStepValue(componentForms, step);
|
|
909
|
+
this.formattedWizardValue.push({
|
|
910
|
+
id: step.id,
|
|
911
|
+
name: step.name,
|
|
912
|
+
title: step.title,
|
|
913
|
+
forms: formattedStepValue
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
/** @hidden */
|
|
918
|
+
async _formatStepValue(componentForms, step) {
|
|
919
|
+
const formattedStepValue = [];
|
|
920
|
+
for (const formGroup of step.formGroups ?? []) {
|
|
921
|
+
const formId = formGroup.id;
|
|
922
|
+
const form = componentForms[formId];
|
|
923
|
+
// Form might be skipped due to conditional rendering
|
|
924
|
+
if (!form) {
|
|
925
|
+
continue;
|
|
926
|
+
}
|
|
927
|
+
const formattedFormValue = await this._formGeneratorService.getFormValue(form.form, true);
|
|
928
|
+
const formattedForm = {
|
|
929
|
+
title: form.title,
|
|
930
|
+
id: formId,
|
|
931
|
+
items: Object.keys(this._submittedForms[step.id][formId]).map((key) => {
|
|
932
|
+
const formItem = this._formGeneratorService.getFormControl(form.form, key).formItem;
|
|
933
|
+
return {
|
|
934
|
+
label: formItem.message,
|
|
935
|
+
value: formattedFormValue[key]
|
|
936
|
+
};
|
|
937
|
+
})
|
|
938
|
+
};
|
|
939
|
+
formattedStepValue.push(formattedForm);
|
|
940
|
+
}
|
|
941
|
+
return formattedStepValue;
|
|
942
|
+
}
|
|
943
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardSummaryStepComponent, deps: [{ token: WizardGeneratorService }, { token: i2.FormGeneratorService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
944
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: WizardSummaryStepComponent, isStandalone: true, selector: "fdp-wizard-summary-step", inputs: { status: "status", customSummaryStepTemplate: "customSummaryStepTemplate" }, ngImport: i0, template: "<ng-container *ngIf=\"_shouldRender\">\n <ng-template #defaultsummaryStepTemplate>\n <ng-container *ngFor=\"let step of formattedWizardValue; trackBy: _trackFn\">\n <fdp-wizard-summary-section [step]=\"step\" (editStep)=\"editStep($event)\"></fdp-wizard-summary-section>\n </ng-container>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"customSummaryStepTemplate || defaultsummaryStepTemplate\"\n [ngTemplateOutletContext]=\"{ steps: formattedWizardValue, editStep: _editStepFn }\"\n ></ng-template>\n</ng-container>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: WizardSummarySectionComponent, selector: "fdp-wizard-summary-section", inputs: ["step"], outputs: ["editStep"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
945
|
+
}
|
|
946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardSummaryStepComponent, decorators: [{
|
|
947
|
+
type: Component,
|
|
948
|
+
args: [{ selector: 'fdp-wizard-summary-step', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [NgIf, NgFor, WizardSummarySectionComponent, NgTemplateOutlet], template: "<ng-container *ngIf=\"_shouldRender\">\n <ng-template #defaultsummaryStepTemplate>\n <ng-container *ngFor=\"let step of formattedWizardValue; trackBy: _trackFn\">\n <fdp-wizard-summary-section [step]=\"step\" (editStep)=\"editStep($event)\"></fdp-wizard-summary-section>\n </ng-container>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"customSummaryStepTemplate || defaultsummaryStepTemplate\"\n [ngTemplateOutletContext]=\"{ steps: formattedWizardValue, editStep: _editStepFn }\"\n ></ng-template>\n</ng-container>\n" }]
|
|
949
|
+
}], ctorParameters: function () { return [{ type: WizardGeneratorService }, { type: i2.FormGeneratorService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { status: [{
|
|
950
|
+
type: Input
|
|
951
|
+
}], customSummaryStepTemplate: [{
|
|
952
|
+
type: Input
|
|
953
|
+
}] } });
|
|
954
|
+
|
|
814
955
|
class WizardGeneratorStepComponent {
|
|
815
956
|
/** @hidden */
|
|
816
957
|
constructor(_wizardGeneratorService, _formGeneratorService) {
|
|
@@ -998,11 +1139,11 @@ class WizardGeneratorStepComponent {
|
|
|
998
1139
|
}
|
|
999
1140
|
}
|
|
1000
1141
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorStepComponent, deps: [{ token: WizardGeneratorService }, { token: i2.FormGeneratorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1001
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorStepComponent, selector: "fdp-wizard-generator-step", inputs: { item: "item", stepStatus: "stepStatus", unifiedLayout: "unifiedLayout" }, outputs: { formsSubmitted: "formsSubmitted", formsCreated: "formsCreated" }, viewQueries: [{ propertyName: "formGenerators", predicate: FormGeneratorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<h3 *ngIf=\"item.title\" fd-title>{{ item.title }}</h3>\n\n<ng-container *ngFor=\"let form of item.formGroups; let i = index\">\n <fdp-form-generator\n *ngIf=\"_visibleFormGroupIds[form.id] !== false\"\n [mainTitle]=\"form.title\"\n [columnLayout]=\"form.columnLayout\"\n [noAdditionalContent]=\"true\"\n [formName]=\"form.id\"\n [formItems]=\"$any(form.formItems)\"\n [hint]=\"form.guiOptions?.hint!\"\n [unifiedLayout]=\"unifiedLayout\"\n (formCreated)=\"onFormCreated($event, form.id)\"\n (formSubmittedStatus)=\"onFormSubmitted($event, form.id)\"\n ></fdp-form-generator>\n</ng-container>\n", dependencies: [{ kind: "directive", type:
|
|
1142
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorStepComponent, isStandalone: true, selector: "fdp-wizard-generator-step", inputs: { item: "item", stepStatus: "stepStatus", unifiedLayout: "unifiedLayout" }, outputs: { formsSubmitted: "formsSubmitted", formsCreated: "formsCreated" }, viewQueries: [{ propertyName: "formGenerators", predicate: FormGeneratorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<h3 *ngIf=\"item.title\" fd-title>{{ item.title }}</h3>\n\n<ng-container *ngFor=\"let form of item.formGroups; let i = index\">\n <fdp-form-generator\n *ngIf=\"_visibleFormGroupIds[form.id] !== false\"\n [mainTitle]=\"form.title\"\n [columnLayout]=\"form.columnLayout\"\n [noAdditionalContent]=\"true\"\n [formName]=\"form.id\"\n [formItems]=\"$any(form.formItems)\"\n [hint]=\"form.guiOptions?.hint!\"\n [unifiedLayout]=\"unifiedLayout\"\n (formCreated)=\"onFormCreated($event, form.id)\"\n (formSubmittedStatus)=\"onFormSubmitted($event, form.id)\"\n ></fdp-form-generator>\n</ng-container>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: FormGeneratorComponent, selector: "fdp-form-generator", inputs: ["formName", "formItems", "mainTitle", "hideMainTItle", "hint", "columnLayout", "labelColumnLayout", "fieldColumnLayout", "gapColumnLayout", "unifiedLayout", "inlineColumnLayout", "noAdditionalContent"], outputs: ["formCreated", "formSubmitted", "formSubmittedStatus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1002
1143
|
}
|
|
1003
1144
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorStepComponent, decorators: [{
|
|
1004
1145
|
type: Component,
|
|
1005
|
-
args: [{ selector: 'fdp-wizard-generator-step', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<h3 *ngIf=\"item.title\" fd-title>{{ item.title }}</h3>\n\n<ng-container *ngFor=\"let form of item.formGroups; let i = index\">\n <fdp-form-generator\n *ngIf=\"_visibleFormGroupIds[form.id] !== false\"\n [mainTitle]=\"form.title\"\n [columnLayout]=\"form.columnLayout\"\n [noAdditionalContent]=\"true\"\n [formName]=\"form.id\"\n [formItems]=\"$any(form.formItems)\"\n [hint]=\"form.guiOptions?.hint!\"\n [unifiedLayout]=\"unifiedLayout\"\n (formCreated)=\"onFormCreated($event, form.id)\"\n (formSubmittedStatus)=\"onFormSubmitted($event, form.id)\"\n ></fdp-form-generator>\n</ng-container>\n" }]
|
|
1146
|
+
args: [{ selector: 'fdp-wizard-generator-step', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, TitleComponent, NgFor, FormGeneratorComponent], template: "<h3 *ngIf=\"item.title\" fd-title>{{ item.title }}</h3>\n\n<ng-container *ngFor=\"let form of item.formGroups; let i = index\">\n <fdp-form-generator\n *ngIf=\"_visibleFormGroupIds[form.id] !== false\"\n [mainTitle]=\"form.title\"\n [columnLayout]=\"form.columnLayout\"\n [noAdditionalContent]=\"true\"\n [formName]=\"form.id\"\n [formItems]=\"$any(form.formItems)\"\n [hint]=\"form.guiOptions?.hint!\"\n [unifiedLayout]=\"unifiedLayout\"\n (formCreated)=\"onFormCreated($event, form.id)\"\n (formSubmittedStatus)=\"onFormSubmitted($event, form.id)\"\n ></fdp-form-generator>\n</ng-container>\n" }]
|
|
1006
1147
|
}], ctorParameters: function () { return [{ type: WizardGeneratorService }, { type: i2.FormGeneratorService }]; }, propDecorators: { formGenerators: [{
|
|
1007
1148
|
type: ViewChildren,
|
|
1008
1149
|
args: [FormGeneratorComponent]
|
|
@@ -1018,145 +1159,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
1018
1159
|
type: Output
|
|
1019
1160
|
}] } });
|
|
1020
1161
|
|
|
1021
|
-
class WizardSummarySectionComponent {
|
|
1022
|
-
constructor() {
|
|
1023
|
-
/**
|
|
1024
|
-
* Emits when step edit button clicked.
|
|
1025
|
-
*/
|
|
1026
|
-
this.editStep = new EventEmitter();
|
|
1027
|
-
}
|
|
1028
|
-
/**
|
|
1029
|
-
* @hidden
|
|
1030
|
-
* @description Sets current step on wizard.
|
|
1031
|
-
* @param event Mouse click event to prevent.
|
|
1032
|
-
*/
|
|
1033
|
-
_editStep(event) {
|
|
1034
|
-
event.preventDefault();
|
|
1035
|
-
this.editStep.emit(this.step.id);
|
|
1036
|
-
}
|
|
1037
|
-
/** @hidden */
|
|
1038
|
-
_trackFn(_, form) {
|
|
1039
|
-
return form.id;
|
|
1040
|
-
}
|
|
1041
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardSummarySectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1042
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: WizardSummarySectionComponent, selector: "fdp-wizard-summary-section", inputs: { step: "step" }, outputs: { editStep: "editStep" }, ngImport: i0, template: "<ng-container *ngFor=\"let group of step.forms; trackBy: _trackFn\">\n <h4 fd-title [headerSize]=\"4\">{{ group.title }}</h4>\n <fd-layout-grid style=\"margin-bottom: 2rem\">\n <div fdLayoutGridRow>\n <div [fdLayoutGridCol]=\"4\" [colMd]=\"2\" [colLg]=\"2\" [colXl]=\"2\">\n <div *ngFor=\"let item of group.items\">\n <label fd-form-label> {{ item.label }}: </label>\n </div>\n </div>\n <div [fdLayoutGridCol]=\"4\" [colMd]=\"5\" [colLg]=\"5\" [colXl]=\"5\">\n <div *ngFor=\"let item of group.items\">\n <label fd-form-label>\n {{ item.value || '-' }}\n </label>\n </div>\n </div>\n <div [fdLayoutGridCol]=\"1\" [colMd]=\"5\" [colLg]=\"5\" [colXl]=\"5\">\n <fdp-link href=\"#\" (click)=\"_editStep($event)\">\n {{ 'platformWizardGenerator.summarySectionEditStep' | fdTranslate }}\n </fdp-link>\n </div>\n </div>\n </fd-layout-grid>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i4.TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "component", type: i3$1.LayoutGridComponent, selector: "fd-layout-grid, [fdLayoutGrid]", inputs: ["class", "noGap", "noHorizontalGap", "noVerticalGap"] }, { kind: "directive", type: i3$1.LayoutGridColDirective, selector: "[fd-layout-grid-col], [fdLayoutGridCol]", inputs: ["fdLayoutGridCol", "colGrow", "colMd", "colLg", "colXl", "colOffset", "colOffsetMd", "colOffsetLg", "colOffsetXl", "class"] }, { kind: "directive", type: i3$1.LayoutGridRowDirective, selector: "[fd-layout-grid-row], [fdLayoutGridRow]" }, { kind: "component", type: i4$1.FormLabelComponent, selector: "[fd-form-label]", inputs: ["required", "colon", "alignLabelEnd", "inlineHelpContent", "inlineHelpGlyph", "inlineHelpTriggers", "inlineHelpBodyPlacement", "inlineHelpPlacement", "inlineHelpLabel", "id"] }, { kind: "component", type: i5.LinkComponent, selector: "fdp-link", inputs: ["href", "target", "linkType", "type", "inverted", "title", "hreflang", "download", "media", "rel", "truncate"], outputs: ["click"] }, { kind: "pipe", type: i6.FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1043
|
-
}
|
|
1044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardSummarySectionComponent, decorators: [{
|
|
1045
|
-
type: Component,
|
|
1046
|
-
args: [{ selector: 'fdp-wizard-summary-section', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngFor=\"let group of step.forms; trackBy: _trackFn\">\n <h4 fd-title [headerSize]=\"4\">{{ group.title }}</h4>\n <fd-layout-grid style=\"margin-bottom: 2rem\">\n <div fdLayoutGridRow>\n <div [fdLayoutGridCol]=\"4\" [colMd]=\"2\" [colLg]=\"2\" [colXl]=\"2\">\n <div *ngFor=\"let item of group.items\">\n <label fd-form-label> {{ item.label }}: </label>\n </div>\n </div>\n <div [fdLayoutGridCol]=\"4\" [colMd]=\"5\" [colLg]=\"5\" [colXl]=\"5\">\n <div *ngFor=\"let item of group.items\">\n <label fd-form-label>\n {{ item.value || '-' }}\n </label>\n </div>\n </div>\n <div [fdLayoutGridCol]=\"1\" [colMd]=\"5\" [colLg]=\"5\" [colXl]=\"5\">\n <fdp-link href=\"#\" (click)=\"_editStep($event)\">\n {{ 'platformWizardGenerator.summarySectionEditStep' | fdTranslate }}\n </fdp-link>\n </div>\n </div>\n </fd-layout-grid>\n</ng-container>\n" }]
|
|
1047
|
-
}], propDecorators: { step: [{
|
|
1048
|
-
type: Input
|
|
1049
|
-
}], editStep: [{
|
|
1050
|
-
type: Output
|
|
1051
|
-
}] } });
|
|
1052
|
-
|
|
1053
|
-
class WizardSummaryStepComponent {
|
|
1054
|
-
/**
|
|
1055
|
-
* @description Summary step status.
|
|
1056
|
-
*/
|
|
1057
|
-
set status(status) {
|
|
1058
|
-
if (status === 'current') {
|
|
1059
|
-
this._wizardGeneratorService.getWizardFormValue(true).then((forms) => {
|
|
1060
|
-
this._submittedForms = forms;
|
|
1061
|
-
this._wizardSteps = this._wizardGeneratorService.items.filter((i) => this._submittedForms[i.id] !== undefined);
|
|
1062
|
-
this._formatWizardValue().then(() => {
|
|
1063
|
-
this._shouldRender = true;
|
|
1064
|
-
this._cd.detectChanges();
|
|
1065
|
-
});
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
else {
|
|
1069
|
-
this._shouldRender = false;
|
|
1070
|
-
}
|
|
1071
|
-
this._cd.detectChanges();
|
|
1072
|
-
}
|
|
1073
|
-
/** @hidden */
|
|
1074
|
-
constructor(_wizardGeneratorService, _formGeneratorService, _cd) {
|
|
1075
|
-
this._wizardGeneratorService = _wizardGeneratorService;
|
|
1076
|
-
this._formGeneratorService = _formGeneratorService;
|
|
1077
|
-
this._cd = _cd;
|
|
1078
|
-
/**
|
|
1079
|
-
* Formatted wizard value with steps and their forms.
|
|
1080
|
-
*/
|
|
1081
|
-
this.formattedWizardValue = [];
|
|
1082
|
-
/**
|
|
1083
|
-
* @hidden
|
|
1084
|
-
*/
|
|
1085
|
-
this._shouldRender = false;
|
|
1086
|
-
/** @hidden */
|
|
1087
|
-
this._editStepFn = (stepId) => this.editStep(stepId);
|
|
1088
|
-
}
|
|
1089
|
-
/**
|
|
1090
|
-
* Opens defined step for editing.
|
|
1091
|
-
* @param stepId Defined step ID.
|
|
1092
|
-
*/
|
|
1093
|
-
editStep(stepId) {
|
|
1094
|
-
this._wizardGeneratorService.editStep(stepId);
|
|
1095
|
-
}
|
|
1096
|
-
/**
|
|
1097
|
-
* @hidden
|
|
1098
|
-
* @param index
|
|
1099
|
-
* @returns step index
|
|
1100
|
-
*/
|
|
1101
|
-
_trackFn(_, step) {
|
|
1102
|
-
return step.id;
|
|
1103
|
-
}
|
|
1104
|
-
/** @hidden */
|
|
1105
|
-
async _formatWizardValue() {
|
|
1106
|
-
this.formattedWizardValue = [];
|
|
1107
|
-
for (const step of this._wizardSteps) {
|
|
1108
|
-
const component = this._wizardGeneratorService.stepsComponents.get(step.id);
|
|
1109
|
-
const componentForms = component?.getVisibleForms();
|
|
1110
|
-
if (!componentForms) {
|
|
1111
|
-
continue;
|
|
1112
|
-
}
|
|
1113
|
-
const formattedStepValue = await this._formatStepValue(componentForms, step);
|
|
1114
|
-
this.formattedWizardValue.push({
|
|
1115
|
-
id: step.id,
|
|
1116
|
-
name: step.name,
|
|
1117
|
-
title: step.title,
|
|
1118
|
-
forms: formattedStepValue
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
/** @hidden */
|
|
1123
|
-
async _formatStepValue(componentForms, step) {
|
|
1124
|
-
const formattedStepValue = [];
|
|
1125
|
-
for (const formGroup of step.formGroups ?? []) {
|
|
1126
|
-
const formId = formGroup.id;
|
|
1127
|
-
const form = componentForms[formId];
|
|
1128
|
-
// Form might be skipped due to conditional rendering
|
|
1129
|
-
if (!form) {
|
|
1130
|
-
continue;
|
|
1131
|
-
}
|
|
1132
|
-
const formattedFormValue = await this._formGeneratorService.getFormValue(form.form, true);
|
|
1133
|
-
const formattedForm = {
|
|
1134
|
-
title: form.title,
|
|
1135
|
-
id: formId,
|
|
1136
|
-
items: Object.keys(this._submittedForms[step.id][formId]).map((key) => {
|
|
1137
|
-
const formItem = this._formGeneratorService.getFormControl(form.form, key).formItem;
|
|
1138
|
-
return {
|
|
1139
|
-
label: formItem.message,
|
|
1140
|
-
value: formattedFormValue[key]
|
|
1141
|
-
};
|
|
1142
|
-
})
|
|
1143
|
-
};
|
|
1144
|
-
formattedStepValue.push(formattedForm);
|
|
1145
|
-
}
|
|
1146
|
-
return formattedStepValue;
|
|
1147
|
-
}
|
|
1148
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardSummaryStepComponent, deps: [{ token: WizardGeneratorService }, { token: i2.FormGeneratorService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1149
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: WizardSummaryStepComponent, selector: "fdp-wizard-summary-step", inputs: { status: "status", customSummaryStepTemplate: "customSummaryStepTemplate" }, ngImport: i0, template: "<ng-container *ngIf=\"_shouldRender\">\n <ng-template #defaultsummaryStepTemplate>\n <ng-container *ngFor=\"let step of formattedWizardValue; trackBy: _trackFn\">\n <fdp-wizard-summary-section [step]=\"step\" (editStep)=\"editStep($event)\"></fdp-wizard-summary-section>\n </ng-container>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"customSummaryStepTemplate || defaultsummaryStepTemplate\"\n [ngTemplateOutletContext]=\"{ steps: formattedWizardValue, editStep: _editStepFn }\"\n ></ng-template>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: WizardSummarySectionComponent, selector: "fdp-wizard-summary-section", inputs: ["step"], outputs: ["editStep"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1150
|
-
}
|
|
1151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardSummaryStepComponent, decorators: [{
|
|
1152
|
-
type: Component,
|
|
1153
|
-
args: [{ selector: 'fdp-wizard-summary-step', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"_shouldRender\">\n <ng-template #defaultsummaryStepTemplate>\n <ng-container *ngFor=\"let step of formattedWizardValue; trackBy: _trackFn\">\n <fdp-wizard-summary-section [step]=\"step\" (editStep)=\"editStep($event)\"></fdp-wizard-summary-section>\n </ng-container>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"customSummaryStepTemplate || defaultsummaryStepTemplate\"\n [ngTemplateOutletContext]=\"{ steps: formattedWizardValue, editStep: _editStepFn }\"\n ></ng-template>\n</ng-container>\n" }]
|
|
1154
|
-
}], ctorParameters: function () { return [{ type: WizardGeneratorService }, { type: i2.FormGeneratorService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { status: [{
|
|
1155
|
-
type: Input
|
|
1156
|
-
}], customSummaryStepTemplate: [{
|
|
1157
|
-
type: Input
|
|
1158
|
-
}] } });
|
|
1159
|
-
|
|
1160
1162
|
class WizardBodyComponent {
|
|
1161
1163
|
/**
|
|
1162
1164
|
* @description Array of visible Wizard Steps.
|
|
@@ -1302,11 +1304,20 @@ class WizardBodyComponent {
|
|
|
1302
1304
|
return item.id;
|
|
1303
1305
|
}
|
|
1304
1306
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardBodyComponent, deps: [{ token: WizardGeneratorService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1305
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: WizardBodyComponent, selector: "fdp-wizard-body", inputs: { responsivePaddings: "responsivePaddings", navigationButtonLabels: "navigationButtonLabels", appendToWizard: "appendToWizard", contentHeight: "contentHeight", isFirstStep: "isFirstStep", isLastStep: "isLastStep", isNextStepSummary: "isNextStepSummary", displaySummaryStep: "displaySummaryStep", goNextButtonTemplate: "goNextButtonTemplate", finishButtonTemplate: "finishButtonTemplate", customSummaryStepTemplate: "customSummaryStepTemplate", reviewButtonTemplate: "reviewButtonTemplate", isSummaryStep: "isSummaryStep", navigationButtons: "navigationButtons", unifiedLayout: "unifiedLayout", isBranchingStep: "isBranchingStep", isCurrentStepCompleted: "isCurrentStepCompleted", stepsOrderChanged: "stepsOrderChanged" }, outputs: { statusChange: "statusChange", goNext: "goNext", finish: "finish" }, ngImport: i0, template: "<fd-wizard\n [displaySummaryStep]=\"displaySummaryStep\"\n [responsivePaddings]=\"responsivePaddings\"\n [appendToWizard]=\"appendToWizard\"\n [contentHeight]=\"contentHeight\"\n *ngIf=\"visibleItems\"\n>\n <fd-wizard-navigation>\n <ul fd-wizard-progress-bar>\n <ng-container *ngFor=\"let step of visibleItems; let i = index; trackBy: _trackFn\">\n <li\n fd-wizard-step\n [label]=\"step.name\"\n [status]=\"step.status\"\n [optionalText]=\"step.optionalText\"\n [branching]=\"!!step.branching\"\n [stepClickValidator]=\"stepClickValidatorFn(i)\"\n [isSummary]=\"!!step.summary\"\n (statusChange)=\"stepStatusChanged(step.id, $event)\"\n (stepClicked)=\"stepClicked(step.id)\"\n >\n <fd-wizard-step-indicator [glyph]=\"step.icon || null\">\n <ng-container *ngIf=\"!step.icon\">{{ i + 1 }}</ng-container>\n </fd-wizard-step-indicator>\n <fd-wizard-content>\n <fdp-wizard-generator-step\n *ngIf=\"!step.summary\"\n [unifiedLayout]=\"unifiedLayout\"\n [item]=\"step\"\n [stepStatus]=\"step.status\"\n ></fdp-wizard-generator-step>\n <fdp-wizard-summary-step\n *ngIf=\"step.summary\"\n [customSummaryStepTemplate]=\"customSummaryStepTemplate\"\n [status]=\"step.status\"\n ></fdp-wizard-summary-step>\n\n <fd-wizard-next-step [canHide]=\"appendToWizard\" *ngIf=\"navigationButtons\">\n <ng-container *ngIf=\"!isLastStep\">\n <ng-template #defaultGoNextButtonTemplate>\n <fdp-button\n [fdContentDensity]=\"navigationButtonLabels.goNext.contentDensity\"\n [buttonType]=\"navigationButtonLabels.goNext.type\"\n [label]=\"navigationButtonLabels.goNext.label\"\n (click)=\"goNext.emit()\"\n ></fdp-button>\n </ng-template>\n <ng-template #defaultReviewButtonTemplate>\n <fdp-button\n [fdContentDensity]=\"navigationButtonLabels.review.contentDensity\"\n [buttonType]=\"navigationButtonLabels.review.type\"\n [label]=\"navigationButtonLabels.review.label\"\n (click)=\"goNext.emit()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngIf]=\"\n (isBranchingStep && (!isCurrentStepCompleted || stepsOrderChanged)) ||\n !isNextStepSummary\n \"\n [ngIfElse]=\"reviewButton\"\n >\n <ng-template\n [ngTemplateOutlet]=\"goNextButtonTemplate || defaultGoNextButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n <ng-template #reviewButton>\n <ng-template\n [ngTemplateOutlet]=\"reviewButtonTemplate || defaultReviewButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"isLastStep\">\n <ng-template #defaultFinishButtonTemplate>\n <fdp-button\n [fdContentDensity]=\"navigationButtonLabels.finish.contentDensity\"\n [buttonType]=\"navigationButtonLabels.finish.type\"\n [label]=\"navigationButtonLabels.finish.label\"\n (click)=\"finish.emit()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"finishButtonTemplate || defaultFinishButtonTemplate\"\n [ngTemplateOutletContext]=\"{ finish: _finishFn }\"\n ></ng-template>\n </ng-container>\n </fd-wizard-next-step>\n </fd-wizard-content>\n </li>\n </ng-container>\n </ul>\n </fd-wizard-navigation>\n</fd-wizard>\n", dependencies: [{ kind: "directive", type:
|
|
1307
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: WizardBodyComponent, isStandalone: true, selector: "fdp-wizard-body", inputs: { responsivePaddings: "responsivePaddings", navigationButtonLabels: "navigationButtonLabels", appendToWizard: "appendToWizard", contentHeight: "contentHeight", isFirstStep: "isFirstStep", isLastStep: "isLastStep", isNextStepSummary: "isNextStepSummary", displaySummaryStep: "displaySummaryStep", goNextButtonTemplate: "goNextButtonTemplate", finishButtonTemplate: "finishButtonTemplate", customSummaryStepTemplate: "customSummaryStepTemplate", reviewButtonTemplate: "reviewButtonTemplate", isSummaryStep: "isSummaryStep", navigationButtons: "navigationButtons", unifiedLayout: "unifiedLayout", isBranchingStep: "isBranchingStep", isCurrentStepCompleted: "isCurrentStepCompleted", stepsOrderChanged: "stepsOrderChanged" }, outputs: { statusChange: "statusChange", goNext: "goNext", finish: "finish" }, ngImport: i0, template: "<fd-wizard\n [displaySummaryStep]=\"displaySummaryStep\"\n [responsivePaddings]=\"responsivePaddings\"\n [appendToWizard]=\"appendToWizard\"\n [contentHeight]=\"contentHeight\"\n *ngIf=\"visibleItems\"\n>\n <fd-wizard-navigation>\n <ul fd-wizard-progress-bar>\n <ng-container *ngFor=\"let step of visibleItems; let i = index; trackBy: _trackFn\">\n <li\n fd-wizard-step\n [label]=\"step.name\"\n [status]=\"step.status\"\n [optionalText]=\"step.optionalText\"\n [branching]=\"!!step.branching\"\n [stepClickValidator]=\"stepClickValidatorFn(i)\"\n [isSummary]=\"!!step.summary\"\n (statusChange)=\"stepStatusChanged(step.id, $event)\"\n (stepClicked)=\"stepClicked(step.id)\"\n >\n <fd-wizard-step-indicator [glyph]=\"step.icon || null\">\n <ng-container *ngIf=\"!step.icon\">{{ i + 1 }}</ng-container>\n </fd-wizard-step-indicator>\n <fd-wizard-content>\n <fdp-wizard-generator-step\n *ngIf=\"!step.summary\"\n [unifiedLayout]=\"unifiedLayout\"\n [item]=\"step\"\n [stepStatus]=\"step.status\"\n ></fdp-wizard-generator-step>\n <fdp-wizard-summary-step\n *ngIf=\"step.summary\"\n [customSummaryStepTemplate]=\"customSummaryStepTemplate\"\n [status]=\"step.status\"\n ></fdp-wizard-summary-step>\n\n <fd-wizard-next-step [canHide]=\"appendToWizard\" *ngIf=\"navigationButtons\">\n <ng-container *ngIf=\"!isLastStep\">\n <ng-template #defaultGoNextButtonTemplate>\n <fdp-button\n [fdContentDensity]=\"navigationButtonLabels.goNext.contentDensity\"\n [buttonType]=\"navigationButtonLabels.goNext.type\"\n [label]=\"navigationButtonLabels.goNext.label\"\n (click)=\"goNext.emit()\"\n ></fdp-button>\n </ng-template>\n <ng-template #defaultReviewButtonTemplate>\n <fdp-button\n [fdContentDensity]=\"navigationButtonLabels.review.contentDensity\"\n [buttonType]=\"navigationButtonLabels.review.type\"\n [label]=\"navigationButtonLabels.review.label\"\n (click)=\"goNext.emit()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngIf]=\"\n (isBranchingStep && (!isCurrentStepCompleted || stepsOrderChanged)) ||\n !isNextStepSummary\n \"\n [ngIfElse]=\"reviewButton\"\n >\n <ng-template\n [ngTemplateOutlet]=\"goNextButtonTemplate || defaultGoNextButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n <ng-template #reviewButton>\n <ng-template\n [ngTemplateOutlet]=\"reviewButtonTemplate || defaultReviewButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"isLastStep\">\n <ng-template #defaultFinishButtonTemplate>\n <fdp-button\n [fdContentDensity]=\"navigationButtonLabels.finish.contentDensity\"\n [buttonType]=\"navigationButtonLabels.finish.type\"\n [label]=\"navigationButtonLabels.finish.label\"\n (click)=\"finish.emit()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"finishButtonTemplate || defaultFinishButtonTemplate\"\n [ngTemplateOutletContext]=\"{ finish: _finishFn }\"\n ></ng-template>\n </ng-container>\n </fd-wizard-next-step>\n </fd-wizard-content>\n </li>\n </ng-container>\n </ul>\n </fd-wizard-navigation>\n</fd-wizard>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: WizardModule }, { kind: "component", type: i2$2.WizardComponent, selector: "fd-wizard", inputs: ["appendToWizard", "contentHeight", "responsivePaddings", "displaySummaryStep", "ariaLabel"] }, { kind: "component", type: i2$2.WizardNavigationComponent, selector: "fd-wizard-navigation", inputs: ["ariaLabel"] }, { kind: "directive", type: i2$2.WizardProgressBarDirective, selector: "[fd-wizard-progress-bar]", inputs: ["size"] }, { kind: "component", type: i2$2.WizardStepComponent, selector: "[fd-wizard-step]", inputs: ["ariaLabel", "ariaRoleDecription", "status", "branching", "label", "optionalText", "isSummary", "stepClickValidator"], outputs: ["statusChange", "stepClicked", "stepIndicatorItemClicked"] }, { kind: "component", type: i2$2.WizardStepIndicatorComponent, selector: "fd-wizard-step-indicator", inputs: ["glyph"], outputs: ["stepIndicatorItemClicked"] }, { kind: "component", type: i2$2.WizardNextStepComponent, selector: "fd-wizard-next-step", inputs: ["floating", "canHide"] }, { kind: "component", type: i2$2.WizardContentComponent, selector: "fd-wizard-content", inputs: ["contentBackground", "size"] }, { kind: "directive", type: i3$1.ContentDensityDirective, selector: "[fdContentDensity]:not([fdCompact]):not([fdCondensed]):not([fdCozy]), [fdCompact]:not([fdContentDensity]):not([fdCondensed]):not([fdCozy]), [fdCondensed]:not([fdContentDensity]):not([fdCompact]):not([fdCozy]), [fdCozy]:not([fdContentDensity]):not([fdCompact]):not([fdCondensed])", inputs: ["fdContentDensity", "fdCompact", "fdCondensed", "fdCozy"], exportAs: ["fdContentDensity"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: WizardGeneratorStepComponent, selector: "fdp-wizard-generator-step", inputs: ["item", "stepStatus", "unifiedLayout"], outputs: ["formsSubmitted", "formsCreated"] }, { kind: "component", type: WizardSummaryStepComponent, selector: "fdp-wizard-summary-step", inputs: ["status", "customSummaryStepTemplate"] }, { kind: "ngmodule", type: PlatformButtonModule }, { kind: "component", type: i4.ButtonComponent, selector: "fdp-button", inputs: ["glyphPosition", "label", "glyph", "buttonType", "toggled", "title", "ariaSelected", "ariaDisabled", "ariaExpanded", "ariaControlsId", "ariaPressed", "name", "type", "value"], outputs: ["buttonClicked"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1306
1308
|
}
|
|
1307
1309
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardBodyComponent, decorators: [{
|
|
1308
1310
|
type: Component,
|
|
1309
|
-
args: [{ selector: 'fdp-wizard-body', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1311
|
+
args: [{ selector: 'fdp-wizard-body', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
1312
|
+
NgIf,
|
|
1313
|
+
WizardModule,
|
|
1314
|
+
NgFor,
|
|
1315
|
+
WizardGeneratorStepComponent,
|
|
1316
|
+
WizardSummaryStepComponent,
|
|
1317
|
+
PlatformButtonModule,
|
|
1318
|
+
ContentDensityDirective,
|
|
1319
|
+
NgTemplateOutlet
|
|
1320
|
+
], template: "<fd-wizard\n [displaySummaryStep]=\"displaySummaryStep\"\n [responsivePaddings]=\"responsivePaddings\"\n [appendToWizard]=\"appendToWizard\"\n [contentHeight]=\"contentHeight\"\n *ngIf=\"visibleItems\"\n>\n <fd-wizard-navigation>\n <ul fd-wizard-progress-bar>\n <ng-container *ngFor=\"let step of visibleItems; let i = index; trackBy: _trackFn\">\n <li\n fd-wizard-step\n [label]=\"step.name\"\n [status]=\"step.status\"\n [optionalText]=\"step.optionalText\"\n [branching]=\"!!step.branching\"\n [stepClickValidator]=\"stepClickValidatorFn(i)\"\n [isSummary]=\"!!step.summary\"\n (statusChange)=\"stepStatusChanged(step.id, $event)\"\n (stepClicked)=\"stepClicked(step.id)\"\n >\n <fd-wizard-step-indicator [glyph]=\"step.icon || null\">\n <ng-container *ngIf=\"!step.icon\">{{ i + 1 }}</ng-container>\n </fd-wizard-step-indicator>\n <fd-wizard-content>\n <fdp-wizard-generator-step\n *ngIf=\"!step.summary\"\n [unifiedLayout]=\"unifiedLayout\"\n [item]=\"step\"\n [stepStatus]=\"step.status\"\n ></fdp-wizard-generator-step>\n <fdp-wizard-summary-step\n *ngIf=\"step.summary\"\n [customSummaryStepTemplate]=\"customSummaryStepTemplate\"\n [status]=\"step.status\"\n ></fdp-wizard-summary-step>\n\n <fd-wizard-next-step [canHide]=\"appendToWizard\" *ngIf=\"navigationButtons\">\n <ng-container *ngIf=\"!isLastStep\">\n <ng-template #defaultGoNextButtonTemplate>\n <fdp-button\n [fdContentDensity]=\"navigationButtonLabels.goNext.contentDensity\"\n [buttonType]=\"navigationButtonLabels.goNext.type\"\n [label]=\"navigationButtonLabels.goNext.label\"\n (click)=\"goNext.emit()\"\n ></fdp-button>\n </ng-template>\n <ng-template #defaultReviewButtonTemplate>\n <fdp-button\n [fdContentDensity]=\"navigationButtonLabels.review.contentDensity\"\n [buttonType]=\"navigationButtonLabels.review.type\"\n [label]=\"navigationButtonLabels.review.label\"\n (click)=\"goNext.emit()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngIf]=\"\n (isBranchingStep && (!isCurrentStepCompleted || stepsOrderChanged)) ||\n !isNextStepSummary\n \"\n [ngIfElse]=\"reviewButton\"\n >\n <ng-template\n [ngTemplateOutlet]=\"goNextButtonTemplate || defaultGoNextButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n <ng-template #reviewButton>\n <ng-template\n [ngTemplateOutlet]=\"reviewButtonTemplate || defaultReviewButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"isLastStep\">\n <ng-template #defaultFinishButtonTemplate>\n <fdp-button\n [fdContentDensity]=\"navigationButtonLabels.finish.contentDensity\"\n [buttonType]=\"navigationButtonLabels.finish.type\"\n [label]=\"navigationButtonLabels.finish.label\"\n (click)=\"finish.emit()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"finishButtonTemplate || defaultFinishButtonTemplate\"\n [ngTemplateOutletContext]=\"{ finish: _finishFn }\"\n ></ng-template>\n </ng-container>\n </fd-wizard-next-step>\n </fd-wizard-content>\n </li>\n </ng-container>\n </ul>\n </fd-wizard-navigation>\n</fd-wizard>\n" }]
|
|
1310
1321
|
}], ctorParameters: function () { return [{ type: WizardGeneratorService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { responsivePaddings: [{
|
|
1311
1322
|
type: Input
|
|
1312
1323
|
}], navigationButtonLabels: [{
|
|
@@ -1353,10 +1364,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
1353
1364
|
|
|
1354
1365
|
class DialogWizardGeneratorComponent extends BaseWizardGenerator {
|
|
1355
1366
|
/** @hidden */
|
|
1356
|
-
constructor(_wizardGeneratorService, _cd, _dialogRef
|
|
1367
|
+
constructor(_wizardGeneratorService, _cd, _dialogRef) {
|
|
1357
1368
|
super(_wizardGeneratorService, _cd);
|
|
1358
1369
|
this._dialogRef = _dialogRef;
|
|
1359
|
-
this._dialogService = _dialogService;
|
|
1360
1370
|
/**
|
|
1361
1371
|
* @description Confirmation message when wizard dialog close button has been clicked.
|
|
1362
1372
|
*/
|
|
@@ -1369,6 +1379,8 @@ class DialogWizardGeneratorComponent extends BaseWizardGenerator {
|
|
|
1369
1379
|
* @description Cancel button text for close confirmation dialog.
|
|
1370
1380
|
*/
|
|
1371
1381
|
this.confirmationDialogCancelText = 'Cancel';
|
|
1382
|
+
/** @hidden */
|
|
1383
|
+
this._messageBoxService = inject(MessageBoxService);
|
|
1372
1384
|
/**
|
|
1373
1385
|
* @hidden
|
|
1374
1386
|
*/
|
|
@@ -1424,8 +1436,8 @@ class DialogWizardGeneratorComponent extends BaseWizardGenerator {
|
|
|
1424
1436
|
return;
|
|
1425
1437
|
}
|
|
1426
1438
|
const template = this.confirmationDialogTemplate || this.defaultConfirmationDialogTemplate;
|
|
1427
|
-
const
|
|
1428
|
-
|
|
1439
|
+
const messageBoxRef = this._messageBoxService.open(template, { responsivePadding: true });
|
|
1440
|
+
messageBoxRef.afterClosed
|
|
1429
1441
|
.pipe(filter((result) => result), takeUntil(this._onDestroy$))
|
|
1430
1442
|
.subscribe(() => {
|
|
1431
1443
|
this._dialogRef.dismiss();
|
|
@@ -1451,13 +1463,26 @@ class DialogWizardGeneratorComponent extends BaseWizardGenerator {
|
|
|
1451
1463
|
this._dialogRef.close(wizardResult);
|
|
1452
1464
|
});
|
|
1453
1465
|
}
|
|
1454
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DialogWizardGeneratorComponent, deps: [{ token: WizardGeneratorService }, { token: i0.ChangeDetectorRef }, { token: i2$
|
|
1455
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: DialogWizardGeneratorComponent, selector: "fdp-dialog-wizard-generator", providers: [WizardGeneratorService, FormGeneratorService], viewQueries: [{ propertyName: "defaultConfirmationDialogTemplate", first: true, predicate: ["defaultConfirmationDialogTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<fd-dialog>\n <fd-dialog-header>\n <h2 fd-title [headerSize]=\"title.size\">{{ title.text }}</h2>\n </fd-dialog-header>\n <fd-dialog-body>\n <fdp-wizard-body\n [navigationButtons]=\"false\"\n [displaySummaryStep]=\"displaySummaryStep\"\n [responsivePaddings]=\"responsivePaddings\"\n [navigationButtonLabels]=\"_navigationButtonLabels\"\n [customSummaryStepTemplate]=\"summaryStepTemplate\"\n [reviewButtonTemplate]=\"reviewButtonTemplate\"\n [hidden]=\"!wizardCreated\"\n [appendToWizard]=\"appendToWizard\"\n [unifiedLayout]=\"unifiedLayout\"\n [contentHeight]=\"contentHeight\"\n (statusChange)=\"stepStatusChanged($event.id, $event.status)\"\n ></fdp-wizard-body>\n <div\n fd-bar\n barDesign=\"floating-footer\"\n [class.fd-bar--responsive-paddings]=\"responsivePaddings\"\n *ngIf=\"wizardCreated\"\n >\n <div fd-bar-right>\n <ng-container *ngIf=\"!isFirstStep\">\n <ng-template #defaultGoBackButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.goBack.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.goBack.type\"\n [label]=\"_navigationButtonLabels.goBack.label\"\n (click)=\"goBack()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"goBackButtonTemplate || defaultGoBackButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goBack: _goBackFn }\"\n ></ng-template>\n </ng-container>\n <ng-container *ngIf=\"!isLastStep\">\n <ng-template #defaultGoNextButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.goNext.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.goNext.type\"\n [label]=\"_navigationButtonLabels.goNext.label\"\n (click)=\"goNext()\"\n ></fdp-button>\n </ng-template>\n <ng-template #defaultReviewButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.review.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.review.type\"\n [label]=\"_navigationButtonLabels.review.label\"\n (click)=\"goNext()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngIf]=\"\n (isBranchingStep && (!isCurrentStepCompleted || _stepsOrderChanged)) || !isNextStepSummary\n \"\n [ngIfElse]=\"reviewButton\"\n >\n <ng-template\n [ngTemplateOutlet]=\"goNextButtonTemplate || defaultGoNextButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n <ng-template #reviewButton>\n <ng-template\n [ngTemplateOutlet]=\"reviewButtonTemplate || defaultReviewButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"isLastStep\">\n <ng-template #defaultFinishButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.finish.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.finish.type\"\n [label]=\"_navigationButtonLabels.finish.label\"\n (click)=\"finish()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"finishButtonTemplate || defaultFinishButtonTemplate\"\n [ngTemplateOutletContext]=\"{ finish: _finishFn }\"\n ></ng-template>\n </ng-container>\n <ng-container>\n <ng-template #defaultCancelButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.cancel.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.cancel.type\"\n [label]=\"_navigationButtonLabels.cancel.label\"\n (click)=\"cancel()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"cancelButtonTemplate || defaultCancelButtonTemplate\"\n [ngTemplateOutletContext]=\"{ cancel: _cancelFn }\"\n ></ng-template>\n </ng-container>\n </div>\n </div>\n </fd-dialog-body>\n</fd-dialog>\n\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #defaultConfirmationDialogTemplate>\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\n <fd-dialog-header>\n <button fd-dialog-close-button (click)=\"dialog.dismiss()\"></button>\n </fd-dialog-header>\n\n <fd-dialog-body>\n {{ confirmationDialogText }}\n </fd-dialog-body>\n\n <fd-dialog-footer>\n <fd-button-bar\n fdType=\"emphasized\"\n [label]=\"confirmationDialogCloseText\"\n type=\"submit\"\n (click)=\"dialog.close(true)\"\n >\n </fd-button-bar>\n <fd-button-bar fdkInitialFocus [label]=\"confirmationDialogCancelText\" (click)=\"dialog.dismiss()\">\n </fd-button-bar>\n </fd-dialog-footer>\n </fd-dialog>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$1.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i2$1.DialogBodyComponent, selector: "fd-dialog-body" }, { kind: "component", type: i2$1.DialogFooterComponent, selector: "fd-dialog-footer" }, { kind: "component", type: i2$1.DialogHeaderComponent, selector: "fd-dialog-header" }, { kind: "component", type: i2$1.DialogCloseButtonComponent, selector: "[fd-dialog-close-button]", inputs: ["mobile", "title"] }, { kind: "component", type: i4$3.BarComponent, selector: "[fd-bar]", inputs: ["class", "barDesign", "inPage", "inHomePage", "size"] }, { kind: "directive", type: i4$3.BarRightDirective, selector: "[fd-bar-right]" }, { kind: "component", type: i4$3.ButtonBarComponent, selector: "fd-button-bar", inputs: ["fullWidth", "fdType", "title", "ariaLabel", "ariaLabelledby", "id"] }, { kind: "directive", type: i3$2.ContentDensityDirective, selector: "[fdContentDensity]:not([fdCompact]):not([fdCondensed]):not([fdCozy]), [fdCompact]:not([fdContentDensity]):not([fdCondensed]):not([fdCozy]), [fdCondensed]:not([fdContentDensity]):not([fdCompact]):not([fdCozy]), [fdCozy]:not([fdContentDensity]):not([fdCompact]):not([fdCondensed])", inputs: ["fdContentDensity", "fdCompact", "fdCondensed", "fdCozy"], exportAs: ["fdContentDensity"] }, { kind: "component", type: i4.TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "directive", type: i7.InitialFocusDirective, selector: "[fdkInitialFocus]", inputs: ["fdkInitialFocus", "enabled", "focusLastElement"] }, { kind: "component", type: i5$1.ButtonComponent, selector: "fdp-button", inputs: ["glyphPosition", "label", "glyph", "buttonType", "toggled", "title", "ariaSelected", "ariaDisabled", "ariaExpanded", "ariaControlsId", "ariaPressed", "name", "type", "value"], outputs: ["buttonClicked"] }, { kind: "component", type: WizardBodyComponent, selector: "fdp-wizard-body", inputs: ["responsivePaddings", "navigationButtonLabels", "appendToWizard", "contentHeight", "isFirstStep", "isLastStep", "isNextStepSummary", "displaySummaryStep", "goNextButtonTemplate", "finishButtonTemplate", "customSummaryStepTemplate", "reviewButtonTemplate", "isSummaryStep", "navigationButtons", "unifiedLayout", "isBranchingStep", "isCurrentStepCompleted", "stepsOrderChanged"], outputs: ["statusChange", "goNext", "finish"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1466
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DialogWizardGeneratorComponent, deps: [{ token: WizardGeneratorService }, { token: i0.ChangeDetectorRef }, { token: i2$3.DialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1467
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: DialogWizardGeneratorComponent, isStandalone: true, selector: "fdp-dialog-wizard-generator", providers: [WizardGeneratorService, FormGeneratorService], viewQueries: [{ propertyName: "defaultConfirmationDialogTemplate", first: true, predicate: ["defaultConfirmationDialogTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<fd-dialog>\n <fd-dialog-header>\n <h2 fd-title [headerSize]=\"title.size\">{{ title.text }}</h2>\n </fd-dialog-header>\n <fd-dialog-body>\n <fdp-wizard-body\n [navigationButtons]=\"false\"\n [displaySummaryStep]=\"displaySummaryStep\"\n [responsivePaddings]=\"responsivePaddings\"\n [navigationButtonLabels]=\"_navigationButtonLabels\"\n [customSummaryStepTemplate]=\"summaryStepTemplate\"\n [reviewButtonTemplate]=\"reviewButtonTemplate\"\n [hidden]=\"!wizardCreated\"\n [appendToWizard]=\"appendToWizard\"\n [unifiedLayout]=\"unifiedLayout\"\n [contentHeight]=\"contentHeight\"\n (statusChange)=\"stepStatusChanged($event.id, $event.status)\"\n ></fdp-wizard-body>\n <div\n fd-bar\n barDesign=\"floating-footer\"\n [class.fd-bar--responsive-paddings]=\"responsivePaddings\"\n *ngIf=\"wizardCreated\"\n >\n <div fd-bar-right>\n <ng-container *ngIf=\"!isFirstStep\">\n <ng-template #defaultGoBackButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.goBack.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.goBack.type\"\n [label]=\"_navigationButtonLabels.goBack.label\"\n (click)=\"goBack()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"goBackButtonTemplate || defaultGoBackButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goBack: _goBackFn }\"\n ></ng-template>\n </ng-container>\n <ng-container *ngIf=\"!isLastStep\">\n <ng-template #defaultGoNextButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.goNext.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.goNext.type\"\n [label]=\"_navigationButtonLabels.goNext.label\"\n (click)=\"goNext()\"\n ></fdp-button>\n </ng-template>\n <ng-template #defaultReviewButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.review.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.review.type\"\n [label]=\"_navigationButtonLabels.review.label\"\n (click)=\"goNext()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngIf]=\"\n (isBranchingStep && (!isCurrentStepCompleted || _stepsOrderChanged)) || !isNextStepSummary\n \"\n [ngIfElse]=\"reviewButton\"\n >\n <ng-template\n [ngTemplateOutlet]=\"goNextButtonTemplate || defaultGoNextButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n <ng-template #reviewButton>\n <ng-template\n [ngTemplateOutlet]=\"reviewButtonTemplate || defaultReviewButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"isLastStep\">\n <ng-template #defaultFinishButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.finish.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.finish.type\"\n [label]=\"_navigationButtonLabels.finish.label\"\n (click)=\"finish()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"finishButtonTemplate || defaultFinishButtonTemplate\"\n [ngTemplateOutletContext]=\"{ finish: _finishFn }\"\n ></ng-template>\n </ng-container>\n <ng-container>\n <ng-template #defaultCancelButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.cancel.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.cancel.type\"\n [label]=\"_navigationButtonLabels.cancel.label\"\n (click)=\"cancel()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"cancelButtonTemplate || defaultCancelButtonTemplate\"\n [ngTemplateOutletContext]=\"{ cancel: _cancelFn }\"\n ></ng-template>\n </ng-container>\n </div>\n </div>\n </fd-dialog-body>\n</fd-dialog>\n\n<ng-template let-messageBox let-messageBoxConfig=\"messageBoxConfig\" #defaultConfirmationDialogTemplate>\n <fd-message-box [messageBoxConfig]=\"messageBoxConfig\" [messageBoxRef]=\"messageBox\">\n <fd-message-box-body>\n {{ confirmationDialogText }}\n </fd-message-box-body>\n <fd-message-box-footer>\n <fd-button-bar\n fdType=\"emphasized\"\n [label]=\"confirmationDialogCloseText\"\n type=\"submit\"\n (click)=\"messageBox.close(true)\"\n >\n </fd-button-bar>\n <fd-button-bar fdkInitialFocus [label]=\"confirmationDialogCancelText\" (click)=\"messageBox.dismiss()\">\n </fd-button-bar>\n </fd-message-box-footer>\n </fd-message-box>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2$3.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i2$3.DialogBodyComponent, selector: "fd-dialog-body" }, { kind: "component", type: i2$3.DialogHeaderComponent, selector: "fd-dialog-header" }, { kind: "component", type: i3$2.BarComponent, selector: "[fd-bar]", inputs: ["class", "barDesign", "inPage", "inHomePage", "size"] }, { kind: "directive", type: i3$2.BarRightDirective, selector: "[fd-bar-right]" }, { kind: "component", type: i3$2.ButtonBarComponent, selector: "fd-button-bar", inputs: ["fullWidth", "fdType", "title", "ariaLabel", "ariaLabelledby", "id"] }, { kind: "directive", type: i3$1.ContentDensityDirective, selector: "[fdContentDensity]:not([fdCompact]):not([fdCondensed]):not([fdCozy]), [fdCompact]:not([fdContentDensity]):not([fdCondensed]):not([fdCozy]), [fdCondensed]:not([fdContentDensity]):not([fdCompact]):not([fdCozy]), [fdCozy]:not([fdContentDensity]):not([fdCompact]):not([fdCondensed])", inputs: ["fdContentDensity", "fdCompact", "fdCondensed", "fdCozy"], exportAs: ["fdContentDensity"] }, { kind: "component", type: i5.TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "directive", type: i6.InitialFocusDirective, selector: "[fdkInitialFocus]", inputs: ["fdkInitialFocus", "enabled", "focusLastElement"] }, { kind: "component", type: WizardBodyComponent, selector: "fdp-wizard-body", inputs: ["responsivePaddings", "navigationButtonLabels", "appendToWizard", "contentHeight", "isFirstStep", "isLastStep", "isNextStepSummary", "displaySummaryStep", "goNextButtonTemplate", "finishButtonTemplate", "customSummaryStepTemplate", "reviewButtonTemplate", "isSummaryStep", "navigationButtons", "unifiedLayout", "isBranchingStep", "isCurrentStepCompleted", "stepsOrderChanged"], outputs: ["statusChange", "goNext", "finish"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: BarModule }, { kind: "ngmodule", type: PlatformButtonModule }, { kind: "component", type: i4.ButtonComponent, selector: "fdp-button", inputs: ["glyphPosition", "label", "glyph", "buttonType", "toggled", "title", "ariaSelected", "ariaDisabled", "ariaExpanded", "ariaControlsId", "ariaPressed", "name", "type", "value"], outputs: ["buttonClicked"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MessageBoxModule }, { kind: "component", type: i8.MessageBoxFooterComponent, selector: "fd-message-box-footer" }, { kind: "component", type: i8.MessageBoxBodyComponent, selector: "fd-message-box-body" }, { kind: "component", type: i8.MessageBoxComponent, selector: "fd-message-box", inputs: ["class", "messageBoxRef", "messageBoxConfig"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1456
1468
|
}
|
|
1457
1469
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DialogWizardGeneratorComponent, decorators: [{
|
|
1458
1470
|
type: Component,
|
|
1459
|
-
args: [{ selector: 'fdp-dialog-wizard-generator', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [WizardGeneratorService, FormGeneratorService],
|
|
1460
|
-
|
|
1471
|
+
args: [{ selector: 'fdp-dialog-wizard-generator', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [WizardGeneratorService, FormGeneratorService], standalone: true, imports: [
|
|
1472
|
+
DialogModule,
|
|
1473
|
+
TitleComponent,
|
|
1474
|
+
CdkScrollable,
|
|
1475
|
+
ScrollbarDirective,
|
|
1476
|
+
WizardBodyComponent,
|
|
1477
|
+
NgIf,
|
|
1478
|
+
BarModule,
|
|
1479
|
+
PlatformButtonModule,
|
|
1480
|
+
ContentDensityDirective,
|
|
1481
|
+
NgTemplateOutlet,
|
|
1482
|
+
MessageBoxModule,
|
|
1483
|
+
InitialFocusDirective
|
|
1484
|
+
], template: "<fd-dialog>\n <fd-dialog-header>\n <h2 fd-title [headerSize]=\"title.size\">{{ title.text }}</h2>\n </fd-dialog-header>\n <fd-dialog-body>\n <fdp-wizard-body\n [navigationButtons]=\"false\"\n [displaySummaryStep]=\"displaySummaryStep\"\n [responsivePaddings]=\"responsivePaddings\"\n [navigationButtonLabels]=\"_navigationButtonLabels\"\n [customSummaryStepTemplate]=\"summaryStepTemplate\"\n [reviewButtonTemplate]=\"reviewButtonTemplate\"\n [hidden]=\"!wizardCreated\"\n [appendToWizard]=\"appendToWizard\"\n [unifiedLayout]=\"unifiedLayout\"\n [contentHeight]=\"contentHeight\"\n (statusChange)=\"stepStatusChanged($event.id, $event.status)\"\n ></fdp-wizard-body>\n <div\n fd-bar\n barDesign=\"floating-footer\"\n [class.fd-bar--responsive-paddings]=\"responsivePaddings\"\n *ngIf=\"wizardCreated\"\n >\n <div fd-bar-right>\n <ng-container *ngIf=\"!isFirstStep\">\n <ng-template #defaultGoBackButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.goBack.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.goBack.type\"\n [label]=\"_navigationButtonLabels.goBack.label\"\n (click)=\"goBack()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"goBackButtonTemplate || defaultGoBackButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goBack: _goBackFn }\"\n ></ng-template>\n </ng-container>\n <ng-container *ngIf=\"!isLastStep\">\n <ng-template #defaultGoNextButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.goNext.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.goNext.type\"\n [label]=\"_navigationButtonLabels.goNext.label\"\n (click)=\"goNext()\"\n ></fdp-button>\n </ng-template>\n <ng-template #defaultReviewButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.review.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.review.type\"\n [label]=\"_navigationButtonLabels.review.label\"\n (click)=\"goNext()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngIf]=\"\n (isBranchingStep && (!isCurrentStepCompleted || _stepsOrderChanged)) || !isNextStepSummary\n \"\n [ngIfElse]=\"reviewButton\"\n >\n <ng-template\n [ngTemplateOutlet]=\"goNextButtonTemplate || defaultGoNextButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n <ng-template #reviewButton>\n <ng-template\n [ngTemplateOutlet]=\"reviewButtonTemplate || defaultReviewButtonTemplate\"\n [ngTemplateOutletContext]=\"{ goNext: _goNextFn }\"\n ></ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"isLastStep\">\n <ng-template #defaultFinishButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.finish.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.finish.type\"\n [label]=\"_navigationButtonLabels.finish.label\"\n (click)=\"finish()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"finishButtonTemplate || defaultFinishButtonTemplate\"\n [ngTemplateOutletContext]=\"{ finish: _finishFn }\"\n ></ng-template>\n </ng-container>\n <ng-container>\n <ng-template #defaultCancelButtonTemplate>\n <fdp-button\n class=\"fd-bar__element\"\n [fdContentDensity]=\"_navigationButtonLabels.cancel.contentDensity\"\n [buttonType]=\"_navigationButtonLabels.cancel.type\"\n [label]=\"_navigationButtonLabels.cancel.label\"\n (click)=\"cancel()\"\n ></fdp-button>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]=\"cancelButtonTemplate || defaultCancelButtonTemplate\"\n [ngTemplateOutletContext]=\"{ cancel: _cancelFn }\"\n ></ng-template>\n </ng-container>\n </div>\n </div>\n </fd-dialog-body>\n</fd-dialog>\n\n<ng-template let-messageBox let-messageBoxConfig=\"messageBoxConfig\" #defaultConfirmationDialogTemplate>\n <fd-message-box [messageBoxConfig]=\"messageBoxConfig\" [messageBoxRef]=\"messageBox\">\n <fd-message-box-body>\n {{ confirmationDialogText }}\n </fd-message-box-body>\n <fd-message-box-footer>\n <fd-button-bar\n fdType=\"emphasized\"\n [label]=\"confirmationDialogCloseText\"\n type=\"submit\"\n (click)=\"messageBox.close(true)\"\n >\n </fd-button-bar>\n <fd-button-bar fdkInitialFocus [label]=\"confirmationDialogCancelText\" (click)=\"messageBox.dismiss()\">\n </fd-button-bar>\n </fd-message-box-footer>\n </fd-message-box>\n</ng-template>\n" }]
|
|
1485
|
+
}], ctorParameters: function () { return [{ type: WizardGeneratorService }, { type: i0.ChangeDetectorRef }, { type: i2$3.DialogRef }]; }, propDecorators: { defaultConfirmationDialogTemplate: [{
|
|
1461
1486
|
type: ViewChild,
|
|
1462
1487
|
args: ['defaultConfirmationDialogTemplate']
|
|
1463
1488
|
}] } });
|
|
@@ -1479,54 +1504,58 @@ class WizardDialogGeneratorService {
|
|
|
1479
1504
|
const dialogRef = this._dialogService.open(DialogWizardGeneratorComponent, config);
|
|
1480
1505
|
return dialogRef;
|
|
1481
1506
|
}
|
|
1482
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardDialogGeneratorService, deps: [{ token: i2$
|
|
1507
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardDialogGeneratorService, deps: [{ token: i2$3.DialogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1483
1508
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardDialogGeneratorService }); }
|
|
1484
1509
|
}
|
|
1485
1510
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardDialogGeneratorService, decorators: [{
|
|
1486
1511
|
type: Injectable
|
|
1487
|
-
}], ctorParameters: function () { return [{ type: i2$
|
|
1512
|
+
}], ctorParameters: function () { return [{ type: i2$3.DialogService }]; } });
|
|
1488
1513
|
|
|
1489
1514
|
class WizardGeneratorGoNextButtonDirective {
|
|
1490
1515
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorGoNextButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1491
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorGoNextButtonDirective, selector: "[fdpWizardGeneratorGoNextButton], [fdp-wizard-generator-go-next-button]", ngImport: i0 }); }
|
|
1516
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorGoNextButtonDirective, isStandalone: true, selector: "[fdpWizardGeneratorGoNextButton], [fdp-wizard-generator-go-next-button]", ngImport: i0 }); }
|
|
1492
1517
|
}
|
|
1493
1518
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorGoNextButtonDirective, decorators: [{
|
|
1494
1519
|
type: Directive,
|
|
1495
1520
|
args: [{
|
|
1496
|
-
selector: '[fdpWizardGeneratorGoNextButton], [fdp-wizard-generator-go-next-button]'
|
|
1521
|
+
selector: '[fdpWizardGeneratorGoNextButton], [fdp-wizard-generator-go-next-button]',
|
|
1522
|
+
standalone: true
|
|
1497
1523
|
}]
|
|
1498
1524
|
}] });
|
|
1499
1525
|
|
|
1500
1526
|
class WizardGeneratorFinishButtonDirective {
|
|
1501
1527
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorFinishButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1502
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorFinishButtonDirective, selector: "[fdpWizardGeneratorFinishButton], [fdp-wizard-generator-finish-button]", ngImport: i0 }); }
|
|
1528
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorFinishButtonDirective, isStandalone: true, selector: "[fdpWizardGeneratorFinishButton], [fdp-wizard-generator-finish-button]", ngImport: i0 }); }
|
|
1503
1529
|
}
|
|
1504
1530
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorFinishButtonDirective, decorators: [{
|
|
1505
1531
|
type: Directive,
|
|
1506
1532
|
args: [{
|
|
1507
|
-
selector: '[fdpWizardGeneratorFinishButton], [fdp-wizard-generator-finish-button]'
|
|
1533
|
+
selector: '[fdpWizardGeneratorFinishButton], [fdp-wizard-generator-finish-button]',
|
|
1534
|
+
standalone: true
|
|
1508
1535
|
}]
|
|
1509
1536
|
}] });
|
|
1510
1537
|
|
|
1511
1538
|
class WizardGeneratorSummaryStepDirective {
|
|
1512
1539
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorSummaryStepDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1513
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorSummaryStepDirective, selector: "[fdpWizardGeneratorSummaryStep], [fdp-wizard-generator-summary-step]", ngImport: i0 }); }
|
|
1540
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorSummaryStepDirective, isStandalone: true, selector: "[fdpWizardGeneratorSummaryStep], [fdp-wizard-generator-summary-step]", ngImport: i0 }); }
|
|
1514
1541
|
}
|
|
1515
1542
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorSummaryStepDirective, decorators: [{
|
|
1516
1543
|
type: Directive,
|
|
1517
1544
|
args: [{
|
|
1518
|
-
selector: '[fdpWizardGeneratorSummaryStep], [fdp-wizard-generator-summary-step]'
|
|
1545
|
+
selector: '[fdpWizardGeneratorSummaryStep], [fdp-wizard-generator-summary-step]',
|
|
1546
|
+
standalone: true
|
|
1519
1547
|
}]
|
|
1520
1548
|
}] });
|
|
1521
1549
|
|
|
1522
1550
|
class WizardGeneratorReviewButtonDirective {
|
|
1523
1551
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorReviewButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1524
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorReviewButtonDirective, selector: "[fdpWizardGeneratorReviewButton], [fdp-wizard-generator-review-button]", ngImport: i0 }); }
|
|
1552
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorReviewButtonDirective, isStandalone: true, selector: "[fdpWizardGeneratorReviewButton], [fdp-wizard-generator-review-button]", ngImport: i0 }); }
|
|
1525
1553
|
}
|
|
1526
1554
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorReviewButtonDirective, decorators: [{
|
|
1527
1555
|
type: Directive,
|
|
1528
1556
|
args: [{
|
|
1529
|
-
selector: '[fdpWizardGeneratorReviewButton], [fdp-wizard-generator-review-button]'
|
|
1557
|
+
selector: '[fdpWizardGeneratorReviewButton], [fdp-wizard-generator-review-button]',
|
|
1558
|
+
standalone: true
|
|
1530
1559
|
}]
|
|
1531
1560
|
}] });
|
|
1532
1561
|
|
|
@@ -1536,11 +1565,11 @@ class WizardGeneratorComponent extends BaseWizardGenerator {
|
|
|
1536
1565
|
super(_wizardGeneratorService, _cd);
|
|
1537
1566
|
}
|
|
1538
1567
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorComponent, deps: [{ token: WizardGeneratorService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1539
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorComponent, selector: "fdp-wizard-generator", providers: [WizardGeneratorService, FormGeneratorService], queries: [{ propertyName: "finishButtonTemplate", first: true, predicate: WizardGeneratorFinishButtonDirective, descendants: true, read: TemplateRef }, { propertyName: "goNextButtonTemplate", first: true, predicate: WizardGeneratorGoNextButtonDirective, descendants: true, read: TemplateRef }, { propertyName: "customSummaryStepTemplate", first: true, predicate: WizardGeneratorSummaryStepDirective, descendants: true, read: TemplateRef }, { propertyName: "reviewButtonTemplate", first: true, predicate: WizardGeneratorReviewButtonDirective, descendants: true, read: TemplateRef }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"wizardCreated; else loadingTemplate\">\n <fdp-wizard-body\n [navigationButtonLabels]=\"_navigationButtonLabels\"\n [goNextButtonTemplate]=\"goNextButtonTemplate\"\n [finishButtonTemplate]=\"finishButtonTemplate\"\n [customSummaryStepTemplate]=\"customSummaryStepTemplate\"\n [reviewButtonTemplate]=\"reviewButtonTemplate\"\n [responsivePaddings]=\"responsivePaddings\"\n [hidden]=\"!wizardCreated\"\n [appendToWizard]=\"appendToWizard\"\n [contentHeight]=\"contentHeight\"\n [isFirstStep]=\"isFirstStep\"\n [isLastStep]=\"isLastStep\"\n [isNextStepSummary]=\"isNextStepSummary\"\n [isSummaryStep]=\"isSummaryStep\"\n [displaySummaryStep]=\"displaySummaryStep\"\n [navigationButtons]=\"navigationButtons\"\n [unifiedLayout]=\"unifiedLayout\"\n [isBranchingStep]=\"isBranchingStep\"\n [isCurrentStepCompleted]=\"isCurrentStepCompleted\"\n [stepsOrderChanged]=\"_stepsOrderChanged\"\n (statusChange)=\"stepStatusChanged($event.id, $event.status)\"\n (goNext)=\"goNext()\"\n (finish)=\"finish()\"\n ></fdp-wizard-body>\n</ng-container>\n\n<!-- The Wizard -->\n<ng-template #loadingTemplate>\n <fd-wizard>\n <fd-wizard-navigation>\n <ul fd-wizard-progress-bar size=\"lg\" role=\"list\" aria-label=\"Wizard Steps\">\n <li *fdkRepeat=\"3; let i = index\" fd-wizard-step [status]=\"i === 0 ? 'current' : 'upcoming'\">\n <fd-skeleton type=\"rectangle\" width=\"32px\" height=\"32px\"></fd-skeleton>\n\n <fd-wizard-content size=\"lg\">\n <fd-skeleton type=\"text\" width=\"60%\"></fd-skeleton>\n </fd-wizard-content>\n </li>\n </ul>\n </fd-wizard-navigation>\n </fd-wizard>\n</ng-template>\n", dependencies: [{ kind: "directive", type:
|
|
1568
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: WizardGeneratorComponent, isStandalone: true, selector: "fdp-wizard-generator", providers: [WizardGeneratorService, FormGeneratorService], queries: [{ propertyName: "finishButtonTemplate", first: true, predicate: WizardGeneratorFinishButtonDirective, descendants: true, read: TemplateRef }, { propertyName: "goNextButtonTemplate", first: true, predicate: WizardGeneratorGoNextButtonDirective, descendants: true, read: TemplateRef }, { propertyName: "customSummaryStepTemplate", first: true, predicate: WizardGeneratorSummaryStepDirective, descendants: true, read: TemplateRef }, { propertyName: "reviewButtonTemplate", first: true, predicate: WizardGeneratorReviewButtonDirective, descendants: true, read: TemplateRef }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"wizardCreated; else loadingTemplate\">\n <fdp-wizard-body\n [navigationButtonLabels]=\"_navigationButtonLabels\"\n [goNextButtonTemplate]=\"goNextButtonTemplate\"\n [finishButtonTemplate]=\"finishButtonTemplate\"\n [customSummaryStepTemplate]=\"customSummaryStepTemplate\"\n [reviewButtonTemplate]=\"reviewButtonTemplate\"\n [responsivePaddings]=\"responsivePaddings\"\n [hidden]=\"!wizardCreated\"\n [appendToWizard]=\"appendToWizard\"\n [contentHeight]=\"contentHeight\"\n [isFirstStep]=\"isFirstStep\"\n [isLastStep]=\"isLastStep\"\n [isNextStepSummary]=\"isNextStepSummary\"\n [isSummaryStep]=\"isSummaryStep\"\n [displaySummaryStep]=\"displaySummaryStep\"\n [navigationButtons]=\"navigationButtons\"\n [unifiedLayout]=\"unifiedLayout\"\n [isBranchingStep]=\"isBranchingStep\"\n [isCurrentStepCompleted]=\"isCurrentStepCompleted\"\n [stepsOrderChanged]=\"_stepsOrderChanged\"\n (statusChange)=\"stepStatusChanged($event.id, $event.status)\"\n (goNext)=\"goNext()\"\n (finish)=\"finish()\"\n ></fdp-wizard-body>\n</ng-container>\n\n<!-- The Wizard -->\n<ng-template #loadingTemplate>\n <fd-wizard>\n <fd-wizard-navigation>\n <ul fd-wizard-progress-bar size=\"lg\" role=\"list\" aria-label=\"Wizard Steps\">\n <li *fdkRepeat=\"3; let i = index\" fd-wizard-step [status]=\"i === 0 ? 'current' : 'upcoming'\">\n <fd-skeleton type=\"rectangle\" width=\"32px\" height=\"32px\"></fd-skeleton>\n\n <fd-wizard-content size=\"lg\">\n <fd-skeleton type=\"text\" width=\"60%\"></fd-skeleton>\n </fd-wizard-content>\n </li>\n </ul>\n </fd-wizard-navigation>\n </fd-wizard>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: WizardBodyComponent, selector: "fdp-wizard-body", inputs: ["responsivePaddings", "navigationButtonLabels", "appendToWizard", "contentHeight", "isFirstStep", "isLastStep", "isNextStepSummary", "displaySummaryStep", "goNextButtonTemplate", "finishButtonTemplate", "customSummaryStepTemplate", "reviewButtonTemplate", "isSummaryStep", "navigationButtons", "unifiedLayout", "isBranchingStep", "isCurrentStepCompleted", "stepsOrderChanged"], outputs: ["statusChange", "goNext", "finish"] }, { kind: "ngmodule", type: WizardModule }, { kind: "component", type: i2$2.WizardComponent, selector: "fd-wizard", inputs: ["appendToWizard", "contentHeight", "responsivePaddings", "displaySummaryStep", "ariaLabel"] }, { kind: "component", type: i2$2.WizardNavigationComponent, selector: "fd-wizard-navigation", inputs: ["ariaLabel"] }, { kind: "directive", type: i2$2.WizardProgressBarDirective, selector: "[fd-wizard-progress-bar]", inputs: ["size"] }, { kind: "component", type: i2$2.WizardStepComponent, selector: "[fd-wizard-step]", inputs: ["ariaLabel", "ariaRoleDecription", "status", "branching", "label", "optionalText", "isSummary", "stepClickValidator"], outputs: ["statusChange", "stepClicked", "stepIndicatorItemClicked"] }, { kind: "component", type: i2$2.WizardContentComponent, selector: "fd-wizard-content", inputs: ["contentBackground", "size"] }, { kind: "directive", type: RepeatDirective, selector: "[fdkRepeat]", inputs: ["fdkRepeat"] }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i3$3.SkeletonComponent, selector: "fd-skeleton", inputs: ["animated", "type", "textLines", "width", "height"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1540
1569
|
}
|
|
1541
1570
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: WizardGeneratorComponent, decorators: [{
|
|
1542
1571
|
type: Component,
|
|
1543
|
-
args: [{ selector: 'fdp-wizard-generator', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [WizardGeneratorService, FormGeneratorService], template: "<ng-container *ngIf=\"wizardCreated; else loadingTemplate\">\n <fdp-wizard-body\n [navigationButtonLabels]=\"_navigationButtonLabels\"\n [goNextButtonTemplate]=\"goNextButtonTemplate\"\n [finishButtonTemplate]=\"finishButtonTemplate\"\n [customSummaryStepTemplate]=\"customSummaryStepTemplate\"\n [reviewButtonTemplate]=\"reviewButtonTemplate\"\n [responsivePaddings]=\"responsivePaddings\"\n [hidden]=\"!wizardCreated\"\n [appendToWizard]=\"appendToWizard\"\n [contentHeight]=\"contentHeight\"\n [isFirstStep]=\"isFirstStep\"\n [isLastStep]=\"isLastStep\"\n [isNextStepSummary]=\"isNextStepSummary\"\n [isSummaryStep]=\"isSummaryStep\"\n [displaySummaryStep]=\"displaySummaryStep\"\n [navigationButtons]=\"navigationButtons\"\n [unifiedLayout]=\"unifiedLayout\"\n [isBranchingStep]=\"isBranchingStep\"\n [isCurrentStepCompleted]=\"isCurrentStepCompleted\"\n [stepsOrderChanged]=\"_stepsOrderChanged\"\n (statusChange)=\"stepStatusChanged($event.id, $event.status)\"\n (goNext)=\"goNext()\"\n (finish)=\"finish()\"\n ></fdp-wizard-body>\n</ng-container>\n\n<!-- The Wizard -->\n<ng-template #loadingTemplate>\n <fd-wizard>\n <fd-wizard-navigation>\n <ul fd-wizard-progress-bar size=\"lg\" role=\"list\" aria-label=\"Wizard Steps\">\n <li *fdkRepeat=\"3; let i = index\" fd-wizard-step [status]=\"i === 0 ? 'current' : 'upcoming'\">\n <fd-skeleton type=\"rectangle\" width=\"32px\" height=\"32px\"></fd-skeleton>\n\n <fd-wizard-content size=\"lg\">\n <fd-skeleton type=\"text\" width=\"60%\"></fd-skeleton>\n </fd-wizard-content>\n </li>\n </ul>\n </fd-wizard-navigation>\n </fd-wizard>\n</ng-template>\n" }]
|
|
1572
|
+
args: [{ selector: 'fdp-wizard-generator', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [WizardGeneratorService, FormGeneratorService], standalone: true, imports: [NgIf, WizardBodyComponent, WizardModule, RepeatDirective, SkeletonModule], template: "<ng-container *ngIf=\"wizardCreated; else loadingTemplate\">\n <fdp-wizard-body\n [navigationButtonLabels]=\"_navigationButtonLabels\"\n [goNextButtonTemplate]=\"goNextButtonTemplate\"\n [finishButtonTemplate]=\"finishButtonTemplate\"\n [customSummaryStepTemplate]=\"customSummaryStepTemplate\"\n [reviewButtonTemplate]=\"reviewButtonTemplate\"\n [responsivePaddings]=\"responsivePaddings\"\n [hidden]=\"!wizardCreated\"\n [appendToWizard]=\"appendToWizard\"\n [contentHeight]=\"contentHeight\"\n [isFirstStep]=\"isFirstStep\"\n [isLastStep]=\"isLastStep\"\n [isNextStepSummary]=\"isNextStepSummary\"\n [isSummaryStep]=\"isSummaryStep\"\n [displaySummaryStep]=\"displaySummaryStep\"\n [navigationButtons]=\"navigationButtons\"\n [unifiedLayout]=\"unifiedLayout\"\n [isBranchingStep]=\"isBranchingStep\"\n [isCurrentStepCompleted]=\"isCurrentStepCompleted\"\n [stepsOrderChanged]=\"_stepsOrderChanged\"\n (statusChange)=\"stepStatusChanged($event.id, $event.status)\"\n (goNext)=\"goNext()\"\n (finish)=\"finish()\"\n ></fdp-wizard-body>\n</ng-container>\n\n<!-- The Wizard -->\n<ng-template #loadingTemplate>\n <fd-wizard>\n <fd-wizard-navigation>\n <ul fd-wizard-progress-bar size=\"lg\" role=\"list\" aria-label=\"Wizard Steps\">\n <li *fdkRepeat=\"3; let i = index\" fd-wizard-step [status]=\"i === 0 ? 'current' : 'upcoming'\">\n <fd-skeleton type=\"rectangle\" width=\"32px\" height=\"32px\"></fd-skeleton>\n\n <fd-wizard-content size=\"lg\">\n <fd-skeleton type=\"text\" width=\"60%\"></fd-skeleton>\n </fd-wizard-content>\n </li>\n </ul>\n </fd-wizard-navigation>\n </fd-wizard>\n</ng-template>\n" }]
|
|
1544
1573
|
}], ctorParameters: function () { return [{ type: WizardGeneratorService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { finishButtonTemplate: [{
|
|
1545
1574
|
type: ContentChild,
|
|
1546
1575
|
args: [WizardGeneratorFinishButtonDirective, { read: TemplateRef }]
|
|
@@ -1583,7 +1612,8 @@ class PlatformWizardGeneratorModule {
|
|
|
1583
1612
|
};
|
|
1584
1613
|
}
|
|
1585
1614
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: PlatformWizardGeneratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1586
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: PlatformWizardGeneratorModule,
|
|
1615
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: PlatformWizardGeneratorModule, imports: [PlatformFormGeneratorModule,
|
|
1616
|
+
WizardGeneratorComponent,
|
|
1587
1617
|
WizardGeneratorStepComponent,
|
|
1588
1618
|
WizardBodyComponent,
|
|
1589
1619
|
DialogWizardGeneratorComponent,
|
|
@@ -1592,19 +1622,7 @@ class PlatformWizardGeneratorModule {
|
|
|
1592
1622
|
WizardGeneratorGoNextButtonDirective,
|
|
1593
1623
|
WizardGeneratorFinishButtonDirective,
|
|
1594
1624
|
WizardGeneratorSummaryStepDirective,
|
|
1595
|
-
WizardGeneratorReviewButtonDirective],
|
|
1596
|
-
DialogModule,
|
|
1597
|
-
I18nModule,
|
|
1598
|
-
ButtonModule,
|
|
1599
|
-
WizardModule,
|
|
1600
|
-
PlatformFormGeneratorModule,
|
|
1601
|
-
PlatformButtonModule,
|
|
1602
|
-
LayoutGridModule,
|
|
1603
|
-
TitleModule,
|
|
1604
|
-
FormLabelModule,
|
|
1605
|
-
PlatformLinkModule,
|
|
1606
|
-
SkeletonModule,
|
|
1607
|
-
RepeatModule], exports: [WizardGeneratorComponent,
|
|
1625
|
+
WizardGeneratorReviewButtonDirective], exports: [WizardGeneratorComponent,
|
|
1608
1626
|
WizardGeneratorStepComponent,
|
|
1609
1627
|
WizardBodyComponent,
|
|
1610
1628
|
DialogWizardGeneratorComponent,
|
|
@@ -1614,24 +1632,19 @@ class PlatformWizardGeneratorModule {
|
|
|
1614
1632
|
WizardGeneratorFinishButtonDirective,
|
|
1615
1633
|
WizardGeneratorSummaryStepDirective,
|
|
1616
1634
|
WizardGeneratorReviewButtonDirective] }); }
|
|
1617
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: PlatformWizardGeneratorModule, providers: [WizardDialogGeneratorService], imports: [
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
LayoutGridModule,
|
|
1625
|
-
TitleModule,
|
|
1626
|
-
FormLabelModule,
|
|
1627
|
-
PlatformLinkModule,
|
|
1628
|
-
SkeletonModule,
|
|
1629
|
-
RepeatModule] }); }
|
|
1635
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: PlatformWizardGeneratorModule, providers: [WizardDialogGeneratorService], imports: [PlatformFormGeneratorModule,
|
|
1636
|
+
WizardGeneratorComponent,
|
|
1637
|
+
WizardGeneratorStepComponent,
|
|
1638
|
+
WizardBodyComponent,
|
|
1639
|
+
DialogWizardGeneratorComponent,
|
|
1640
|
+
WizardSummaryStepComponent,
|
|
1641
|
+
WizardSummarySectionComponent] }); }
|
|
1630
1642
|
}
|
|
1631
1643
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: PlatformWizardGeneratorModule, decorators: [{
|
|
1632
1644
|
type: NgModule,
|
|
1633
1645
|
args: [{
|
|
1634
|
-
|
|
1646
|
+
imports: [
|
|
1647
|
+
PlatformFormGeneratorModule,
|
|
1635
1648
|
WizardGeneratorComponent,
|
|
1636
1649
|
WizardGeneratorStepComponent,
|
|
1637
1650
|
WizardBodyComponent,
|
|
@@ -1643,21 +1656,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
1643
1656
|
WizardGeneratorSummaryStepDirective,
|
|
1644
1657
|
WizardGeneratorReviewButtonDirective
|
|
1645
1658
|
],
|
|
1646
|
-
imports: [
|
|
1647
|
-
CommonModule,
|
|
1648
|
-
DialogModule,
|
|
1649
|
-
I18nModule,
|
|
1650
|
-
ButtonModule,
|
|
1651
|
-
WizardModule,
|
|
1652
|
-
PlatformFormGeneratorModule,
|
|
1653
|
-
PlatformButtonModule,
|
|
1654
|
-
LayoutGridModule,
|
|
1655
|
-
TitleModule,
|
|
1656
|
-
FormLabelModule,
|
|
1657
|
-
PlatformLinkModule,
|
|
1658
|
-
SkeletonModule,
|
|
1659
|
-
RepeatModule
|
|
1660
|
-
],
|
|
1661
1659
|
exports: [
|
|
1662
1660
|
WizardGeneratorComponent,
|
|
1663
1661
|
WizardGeneratorStepComponent,
|