mis-crystal-design-system 17.0.0 → 17.0.2
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/analytics/analytics.service.d.ts +5 -1
- package/assets/images/close.svg +5 -0
- package/async-search-dropdown/async-dropdown.component.d.ts +5 -0
- package/async-search-dropdown/async-dropdown.module.d.ts +2 -1
- package/datepicker_v2/datepicker.module.d.ts +2 -1
- package/datepicker_v2/tz-datepicker.directive.d.ts +2 -0
- package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +18 -1
- package/daterangepicker_v2/daterangepicker.module.d.ts +2 -1
- package/daterangepicker_v2/models/drp-config.model.d.ts +6 -0
- package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +2 -0
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +6 -2
- package/dropdown/calculate-container-height.directive.d.ts +1 -1
- package/dropdown/dropdown.component.d.ts +4 -1
- package/dropdown/dropdown.module.d.ts +2 -1
- package/dynamic-form/dynamic-form.component.d.ts +14 -4
- package/dynamic-form/dynamic-form.namespace.d.ts +1 -0
- package/esm2022/action-list/action-list.component.mjs +1 -1
- package/esm2022/analytics/analytics.service.mjs +7 -6
- package/esm2022/async-search-dropdown/async-dropdown.component.mjs +76 -43
- package/esm2022/async-search-dropdown/async-dropdown.module.mjs +5 -4
- package/esm2022/button/button.directive.mjs +1 -1
- package/esm2022/checkbox/checkbox.component.mjs +4 -4
- package/esm2022/chip/chip.component.mjs +13 -13
- package/esm2022/datepicker_v2/datepicker.module.mjs +5 -4
- package/esm2022/datepicker_v2/public_api.mjs +1 -1
- package/esm2022/datepicker_v2/tz-datepicker.directive.mjs +21 -2
- package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +280 -84
- package/esm2022/datepicker_v2/utils/index.mjs +1 -1
- package/esm2022/daterangepicker_v2/daterangepicker.module.mjs +5 -4
- package/esm2022/daterangepicker_v2/models/drp-config.model.mjs +1 -1
- package/esm2022/daterangepicker_v2/public_api.mjs +1 -1
- package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +24 -3
- package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +216 -109
- package/esm2022/daterangepicker_v2/utils/index.mjs +1 -1
- package/esm2022/dropdown/calculate-container-height.directive.mjs +5 -5
- package/esm2022/dropdown/dropdown.component.mjs +156 -96
- package/esm2022/dropdown/dropdown.module.mjs +5 -4
- package/esm2022/dynamic-form/dynamic-form.component.mjs +608 -220
- package/esm2022/dynamic-form/dynamic-form.namespace.mjs +1 -1
- package/esm2022/fab/fab.component.mjs +1 -1
- package/esm2022/filter/animations/slideFromRight.mjs +12 -0
- package/esm2022/filter/filter-panel/filter-panel.component.mjs +396 -0
- package/esm2022/filter/filters.module.mjs +66 -0
- package/esm2022/filter/has-value.pipe.mjs +31 -0
- package/esm2022/filter/index.mjs +2 -0
- package/esm2022/filter/mis-crystal-design-system-filter.mjs +5 -0
- package/esm2022/filter/public_api.mjs +4 -0
- package/esm2022/input/mis-input.component.mjs +1 -1
- package/esm2022/input-stepper/input-stepper/input-stepper.component.mjs +4 -4
- package/esm2022/mobile-filter/mobile-filter.component.mjs +9 -7
- package/esm2022/modal/modal.service.mjs +1 -1
- package/esm2022/multi-select-dropdown/multi-select-dropdown.component.mjs +26 -14
- package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +14 -7
- package/esm2022/phone-input/phone-input.component.mjs +6 -50
- package/esm2022/radio-button/radio-button.component.mjs +4 -4
- package/esm2022/ske-loader/ske-loader.component.mjs +4 -4
- package/esm2022/snackbar/snackbar.service.mjs +1 -1
- package/esm2022/specificdatepicker/public_api.mjs +3 -3
- package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +89 -62
- package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +1 -1
- package/esm2022/specificdatepicker/utils/index.mjs +1 -1
- package/esm2022/star-rating/star-rating.component.mjs +1 -1
- package/esm2022/table/custom-table-cell.directive.mjs +1 -1
- package/esm2022/table/filter/filter.component.mjs +12 -4
- package/esm2022/table/public_api.mjs +2 -3
- package/esm2022/table/sub-table/sub-table.component.mjs +1 -1
- package/esm2022/table/table.component.mjs +27 -11
- package/esm2022/timepicker/timepicker.component.mjs +68 -58
- package/esm2022/timerangepicker/public_api.mjs +1 -1
- package/esm2022/timerangepicker/timerangepicker.component.mjs +57 -47
- package/esm2022/toast/toast.service.mjs +1 -1
- package/esm2022/tooltip/tooltip-container/tooltip.component.mjs +10 -9
- package/esm2022/tooltip/tooltip.directive.mjs +9 -3
- package/esm2022/virtual-scroll/virtual-scroll.component.mjs +1 -1
- package/esm2022/widgets/classes/async-widget.mjs +1 -1
- package/esm2022/widgets/classes/base-widget.mjs +1 -1
- package/esm2022/widgets/classes/sync-widget.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-action-list.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-action-list.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-analytics.mjs +6 -5
- package/fesm2022/mis-crystal-design-system-analytics.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs +79 -45
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-button.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-button.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-checkbox.mjs +4 -4
- package/fesm2022/mis-crystal-design-system-checkbox.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-chip.mjs +13 -13
- package/fesm2022/mis-crystal-design-system-chip.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs +303 -87
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +242 -113
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-drawer.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dropdown.mjs +163 -102
- package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs +607 -219
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-fab.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-fab.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-filter.mjs +503 -0
- package/fesm2022/mis-crystal-design-system-filter.mjs.map +1 -0
- package/fesm2022/mis-crystal-design-system-input-stepper.mjs +4 -4
- package/fesm2022/mis-crystal-design-system-input-stepper.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-input.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-loader.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-menu.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-menu.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs +9 -7
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-modal.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs +26 -14
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs +14 -7
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-phone-input.mjs +5 -49
- package/fesm2022/mis-crystal-design-system-phone-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-radio-button.mjs +4 -4
- package/fesm2022/mis-crystal-design-system-radio-button.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-slider.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-slider.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-snackbar.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-snackbar.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs +89 -62
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-star-rating.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-star-rating.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-switch.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-switch.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-table.mjs +41 -17
- package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-timepicker.mjs +68 -58
- package/fesm2022/mis-crystal-design-system-timepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-timerangepicker.mjs +57 -47
- package/fesm2022/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-toast.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-tooltip.mjs +18 -11
- package/fesm2022/mis-crystal-design-system-tooltip.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-utils.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-widgets.mjs.map +1 -1
- package/filter/animations/slideFromRight.d.ts +1 -0
- package/filter/filter-panel/filter-panel.component.d.ts +51 -0
- package/filter/filters.module.d.ts +18 -0
- package/filter/has-value.pipe.d.ts +12 -0
- package/filter/index.d.ts +1 -0
- package/filter/public_api.d.ts +4 -0
- package/multi-select-dropdown/multi-select-dropdown.component.d.ts +3 -1
- package/package.json +25 -19
- package/phone-input/phone-input.component.d.ts +6 -15
- package/specificdatepicker/public_api.d.ts +2 -3
- package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +2 -1
- package/styles/mis-mixins.scss +46 -0
- package/styles/mis-old-icon-styles.scss +498 -0
- package/table/filter/filter.component.d.ts +1 -1
- package/table/public_api.d.ts +1 -2
- package/timepicker/timepicker.component.d.ts +4 -3
- package/timerangepicker/public_api.d.ts +1 -0
- package/timerangepicker/timerangepicker.component.d.ts +3 -1
- package/tooltip/tooltip-container/tooltip.component.d.ts +2 -1
- package/tooltip/tooltip.directive.d.ts +3 -1
|
@@ -3,13 +3,15 @@ import { CommonModule } from '@angular/common';
|
|
|
3
3
|
import * as i2 from '@angular/forms';
|
|
4
4
|
import { UntypedFormArray, UntypedFormGroup, UntypedFormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { EventEmitter, Component,
|
|
6
|
+
import { EventEmitter, Component, ContentChild, Output, Input, NgModule } from '@angular/core';
|
|
7
7
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
8
8
|
import { ScrollingModule } from '@angular/cdk-experimental/scrolling';
|
|
9
9
|
import * as i3 from 'mis-crystal-design-system/dropdown';
|
|
10
10
|
import { DropdownModule } from 'mis-crystal-design-system/dropdown';
|
|
11
|
-
import
|
|
12
|
-
import '
|
|
11
|
+
import dayjs from 'dayjs';
|
|
12
|
+
import timezone from 'dayjs/plugin/timezone';
|
|
13
|
+
import utc from 'dayjs/plugin/utc';
|
|
14
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
13
15
|
import * as i4 from 'mis-crystal-design-system/switch';
|
|
14
16
|
import { SwitchModule } from 'mis-crystal-design-system/switch';
|
|
15
17
|
import * as i5 from 'mis-crystal-design-system/multi-select-dropdown';
|
|
@@ -17,348 +19,661 @@ import { MultiSelectDropdownModule } from 'mis-crystal-design-system/multi-selec
|
|
|
17
19
|
import * as i6 from 'mis-crystal-design-system/datepicker_v2';
|
|
18
20
|
import { DatepickerModuleV2 } from 'mis-crystal-design-system/datepicker_v2';
|
|
19
21
|
|
|
20
|
-
const _c0 =
|
|
21
|
-
const _c1 =
|
|
22
|
-
const _c2 =
|
|
23
|
-
const _c3 =
|
|
24
|
-
const _c4 =
|
|
22
|
+
const _c0 = ["customInputTextNumber"];
|
|
23
|
+
const _c1 = ["customInputTextarea"];
|
|
24
|
+
const _c2 = ["customInputDate"];
|
|
25
|
+
const _c3 = ["customBooleanToggle"];
|
|
26
|
+
const _c4 = ["customSingleSelectDropdown"];
|
|
27
|
+
const _c5 = ["customSingleSelectRadio"];
|
|
28
|
+
const _c6 = ["customMultiSelectCheckbox"];
|
|
29
|
+
const _c7 = ["customMultiSelectDropdown"];
|
|
30
|
+
const _c8 = (a0, a1, a2) => ({ $implicit: a0, formGroup: a1, control: a2 });
|
|
31
|
+
const _c9 = (a0, a1) => ({ $implicit: a0, control: a1 });
|
|
32
|
+
const _c10 = (a0, a1, a2) => ({ field: a0, control: a1, formgroup: a2 });
|
|
33
|
+
const _c11 = a0 => ({ "border-bottom": a0 });
|
|
34
|
+
const _c12 = a0 => ({ "border": a0 });
|
|
35
|
+
const _c13 = a0 => ({ $implicit: a0 });
|
|
36
|
+
const _c14 = a0 => ({ "removeable-container": a0 });
|
|
37
|
+
const _c15 = a0 => ({ "checkbox-active": a0 });
|
|
38
|
+
const _c16 = () => ({ "flex-basis": "100%", "height": "0" });
|
|
25
39
|
function DynamicFormComponent_ng_container_2_div_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
26
40
|
i0.ɵɵelementContainerStart(0);
|
|
27
|
-
i0.ɵɵelementContainer(1,
|
|
41
|
+
i0.ɵɵelementContainer(1, 15);
|
|
28
42
|
i0.ɵɵelementContainerEnd();
|
|
29
43
|
} if (rf & 2) {
|
|
30
44
|
const subFieldControl_r1 = ctx.$implicit;
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
45
|
+
const j_r2 = ctx.index;
|
|
46
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
47
|
+
const fieldControl_r4 = ctx_r2.$implicit;
|
|
48
|
+
const i_r5 = ctx_r2.index;
|
|
49
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
50
|
+
const dynamicField_r7 = i0.ɵɵreference(4);
|
|
36
51
|
i0.ɵɵadvance();
|
|
37
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
52
|
+
i0.ɵɵproperty("ngTemplateOutlet", dynamicField_r7)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c9, ctx_r5.findSelectedSubFieldConfig(ctx_r5.formFields[i_r5] == null ? null : ctx_r5.formFields[i_r5].subFields, fieldControl_r4.controls.value.value.value, j_r2), subFieldControl_r1));
|
|
38
53
|
} }
|
|
39
54
|
function DynamicFormComponent_ng_container_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
-
i0.ɵɵelementStart(0, "div",
|
|
41
|
-
i0.ɵɵtemplate(1, DynamicFormComponent_ng_container_2_div_2_ng_container_1_Template, 2, 5, "ng-container",
|
|
55
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
56
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_container_2_div_2_ng_container_1_Template, 2, 5, "ng-container", 18);
|
|
42
57
|
i0.ɵɵelementEnd();
|
|
43
58
|
} if (rf & 2) {
|
|
44
|
-
const
|
|
59
|
+
const fieldControl_r4 = i0.ɵɵnextContext().$implicit;
|
|
45
60
|
i0.ɵɵadvance();
|
|
46
|
-
i0.ɵɵproperty("ngForOf",
|
|
61
|
+
i0.ɵɵproperty("ngForOf", fieldControl_r4.controls.subFields.controls);
|
|
47
62
|
} }
|
|
48
63
|
function DynamicFormComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
-
i0.ɵɵelementContainerStart(0,
|
|
50
|
-
i0.ɵɵelementContainer(1,
|
|
51
|
-
i0.ɵɵtemplate(2, DynamicFormComponent_ng_container_2_div_2_Template, 2, 1, "div",
|
|
64
|
+
i0.ɵɵelementContainerStart(0, 14);
|
|
65
|
+
i0.ɵɵelementContainer(1, 15);
|
|
66
|
+
i0.ɵɵtemplate(2, DynamicFormComponent_ng_container_2_div_2_Template, 2, 1, "div", 16);
|
|
52
67
|
i0.ɵɵelementContainerEnd();
|
|
53
68
|
} if (rf & 2) {
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
i0.ɵɵproperty("formGroupName",
|
|
69
|
+
const fieldControl_r4 = ctx.$implicit;
|
|
70
|
+
const i_r5 = ctx.index;
|
|
71
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
72
|
+
const dynamicField_r7 = i0.ɵɵreference(4);
|
|
73
|
+
i0.ɵɵproperty("formGroupName", i_r5);
|
|
59
74
|
i0.ɵɵadvance();
|
|
60
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
75
|
+
i0.ɵɵproperty("ngTemplateOutlet", dynamicField_r7)("ngTemplateOutletContext", i0.ɵɵpureFunction3(4, _c8, ctx_r5.formFields[i_r5], fieldControl_r4, fieldControl_r4.controls.value));
|
|
61
76
|
i0.ɵɵadvance();
|
|
62
|
-
i0.ɵɵproperty("ngIf",
|
|
77
|
+
i0.ɵɵproperty("ngIf", fieldControl_r4.value && (!!(ctx_r5.formFields[i_r5] == null ? null : ctx_r5.formFields[i_r5].subFields) && (ctx_r5.formFields[i_r5] == null ? null : ctx_r5.formFields[i_r5].subFields == null ? null : ctx_r5.formFields[i_r5].subFields.length) > 0 && ctx_r5.matchParentConfig(ctx_r5.formFields[i_r5] == null ? null : ctx_r5.formFields[i_r5].subFields, fieldControl_r4.controls.value.value.value)));
|
|
63
78
|
} }
|
|
64
|
-
function
|
|
65
|
-
|
|
79
|
+
function DynamicFormComponent_ng_template_3_ng_container_0_ng_container_1_ng_template_1_Template(rf, ctx) { }
|
|
80
|
+
function DynamicFormComponent_ng_template_3_ng_container_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
81
|
+
i0.ɵɵelementContainerStart(0);
|
|
82
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_0_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 15);
|
|
83
|
+
i0.ɵɵelementContainerEnd();
|
|
84
|
+
} if (rf & 2) {
|
|
85
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
86
|
+
const field_r9 = ctx_r7.$implicit;
|
|
87
|
+
const control_r10 = ctx_r7.control;
|
|
88
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
89
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
90
|
+
i0.ɵɵadvance();
|
|
91
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r5.customInputTextNumber)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r9, control_r10, formgroup_r11));
|
|
92
|
+
} }
|
|
93
|
+
function DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
94
|
+
i0.ɵɵelementStart(0, "span");
|
|
95
|
+
i0.ɵɵtext(1, " *");
|
|
96
|
+
i0.ɵɵelementEnd();
|
|
97
|
+
} }
|
|
98
|
+
function DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
99
|
+
i0.ɵɵelementContainer(0, 15);
|
|
66
100
|
} if (rf & 2) {
|
|
67
|
-
const
|
|
101
|
+
const control_r10 = i0.ɵɵnextContext(3).control;
|
|
68
102
|
i0.ɵɵnextContext();
|
|
69
|
-
const
|
|
70
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
103
|
+
const dynamicFieldErrors_r13 = i0.ɵɵreference(6);
|
|
104
|
+
i0.ɵɵproperty("ngTemplateOutlet", dynamicFieldErrors_r13)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c13, control_r10.errors));
|
|
71
105
|
} }
|
|
72
|
-
function
|
|
73
|
-
const
|
|
74
|
-
i0.ɵɵelementStart(0, "div",
|
|
106
|
+
function DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
107
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
108
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "p", 22);
|
|
75
109
|
i0.ɵɵtext(2);
|
|
110
|
+
i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_span_3_Template, 2, 0, "span", 19);
|
|
76
111
|
i0.ɵɵelementEnd();
|
|
77
|
-
i0.ɵɵelement(
|
|
78
|
-
i0.ɵɵelementStart(
|
|
79
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
112
|
+
i0.ɵɵelement(4, "div", 23);
|
|
113
|
+
i0.ɵɵelementStart(5, "input", 24);
|
|
114
|
+
i0.ɵɵlistener("ngModelChange", function DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r7 = i0.ɵɵnextContext(2); const field_r9 = ctx_r7.$implicit; const formgroup_r11 = ctx_r7.formGroup; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.updateSubDynamicFields(field_r9, formgroup_r11, $event)); });
|
|
80
115
|
i0.ɵɵelementEnd();
|
|
81
|
-
i0.ɵɵtemplate(
|
|
116
|
+
i0.ɵɵtemplate(6, DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_ng_container_6_Template, 1, 4, "ng-container", 25);
|
|
82
117
|
i0.ɵɵelementEnd();
|
|
83
118
|
} if (rf & 2) {
|
|
84
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
119
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
85
120
|
const field_r9 = ctx_r7.$implicit;
|
|
86
|
-
const
|
|
121
|
+
const control_r10 = ctx_r7.control;
|
|
122
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
123
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
124
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(9, _c11, (formgroup_r11 == null ? null : formgroup_r11.controls == null ? null : formgroup_r11.controls.subFields == null ? null : formgroup_r11.controls.subFields.controls == null ? null : formgroup_r11.controls.subFields.controls.length) && ctx_r5.removeSepratorForSubFields ? "none" : ""));
|
|
87
125
|
i0.ɵɵadvance(2);
|
|
88
|
-
i0.ɵɵtextInterpolate1(" ", field_r9.title, " ");
|
|
126
|
+
i0.ɵɵtextInterpolate1(" ", field_r9 == null ? null : field_r9.title, " ");
|
|
127
|
+
i0.ɵɵadvance();
|
|
128
|
+
i0.ɵɵproperty("ngIf", field_r9.validators && field_r9.validators.length > 0);
|
|
89
129
|
i0.ɵɵadvance(2);
|
|
90
|
-
i0.ɵɵproperty("type", field_r9.fieldInputType)("formControl",
|
|
130
|
+
i0.ɵɵproperty("type", field_r9.fieldInputType)("formControl", control_r10)("ngStyle", i0.ɵɵpureFunction1(11, _c12, control_r10.touched && control_r10.errors ? "1px solid #B00020" : ""))("placeholder", field_r9.placeholderText ? field_r9.placeholderText : "Input Text")("min", field_r9.fieldInputType === "number" ? 0 : "");
|
|
91
131
|
i0.ɵɵadvance();
|
|
92
|
-
i0.ɵɵproperty("ngIf",
|
|
132
|
+
i0.ɵɵproperty("ngIf", control_r10.touched && control_r10.errors);
|
|
93
133
|
} }
|
|
94
|
-
function
|
|
95
|
-
i0.ɵɵ
|
|
134
|
+
function DynamicFormComponent_ng_template_3_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
135
|
+
i0.ɵɵelementContainerStart(0);
|
|
136
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_0_ng_container_1_Template, 2, 6, "ng-container", 20)(2, DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_Template, 7, 13, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
137
|
+
i0.ɵɵelementContainerEnd();
|
|
96
138
|
} if (rf & 2) {
|
|
97
|
-
const
|
|
139
|
+
const defaultInputTextNumber_r14 = i0.ɵɵreference(3);
|
|
140
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
141
|
+
i0.ɵɵadvance();
|
|
142
|
+
i0.ɵɵproperty("ngIf", ctx_r5.customInputTextNumber)("ngIfElse", defaultInputTextNumber_r14);
|
|
143
|
+
} }
|
|
144
|
+
function DynamicFormComponent_ng_template_3_ng_container_1_ng_container_1_ng_template_1_Template(rf, ctx) { }
|
|
145
|
+
function DynamicFormComponent_ng_template_3_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
146
|
+
i0.ɵɵelementContainerStart(0);
|
|
147
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_1_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 15);
|
|
148
|
+
i0.ɵɵelementContainerEnd();
|
|
149
|
+
} if (rf & 2) {
|
|
150
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
151
|
+
const field_r9 = ctx_r7.$implicit;
|
|
152
|
+
const control_r10 = ctx_r7.control;
|
|
153
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
154
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
155
|
+
i0.ɵɵadvance();
|
|
156
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r5.customInputTextarea)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r9, control_r10, formgroup_r11));
|
|
157
|
+
} }
|
|
158
|
+
function DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
159
|
+
i0.ɵɵelementStart(0, "span");
|
|
160
|
+
i0.ɵɵtext(1, " *");
|
|
161
|
+
i0.ɵɵelementEnd();
|
|
162
|
+
} }
|
|
163
|
+
function DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
164
|
+
i0.ɵɵelementContainer(0, 15);
|
|
165
|
+
} if (rf & 2) {
|
|
166
|
+
const control_r10 = i0.ɵɵnextContext(3).control;
|
|
98
167
|
i0.ɵɵnextContext();
|
|
99
|
-
const
|
|
100
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
168
|
+
const dynamicFieldErrors_r13 = i0.ɵɵreference(6);
|
|
169
|
+
i0.ɵɵproperty("ngTemplateOutlet", dynamicFieldErrors_r13)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c13, control_r10.errors));
|
|
101
170
|
} }
|
|
102
|
-
function
|
|
103
|
-
const
|
|
104
|
-
i0.ɵɵelementStart(0, "div",
|
|
171
|
+
function DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
172
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
173
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "p", 22);
|
|
105
174
|
i0.ɵɵtext(2);
|
|
175
|
+
i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_span_3_Template, 2, 0, "span", 19);
|
|
106
176
|
i0.ɵɵelementEnd();
|
|
107
|
-
i0.ɵɵelement(
|
|
108
|
-
i0.ɵɵelementStart(
|
|
109
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
177
|
+
i0.ɵɵelement(4, "div", 23);
|
|
178
|
+
i0.ɵɵelementStart(5, "textarea", 26);
|
|
179
|
+
i0.ɵɵlistener("ngModelChange", function DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_Template_textarea_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r7 = i0.ɵɵnextContext(2); const field_r9 = ctx_r7.$implicit; const formgroup_r11 = ctx_r7.formGroup; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.updateSubDynamicFields(field_r9, formgroup_r11, $event)); });
|
|
110
180
|
i0.ɵɵelementEnd();
|
|
111
|
-
i0.ɵɵtemplate(
|
|
181
|
+
i0.ɵɵtemplate(6, DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_ng_container_6_Template, 1, 4, "ng-container", 25);
|
|
112
182
|
i0.ɵɵelementEnd();
|
|
113
183
|
} if (rf & 2) {
|
|
114
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
184
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
115
185
|
const field_r9 = ctx_r7.$implicit;
|
|
116
|
-
const
|
|
186
|
+
const control_r10 = ctx_r7.control;
|
|
187
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
188
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
189
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(7, _c11, (formgroup_r11 == null ? null : formgroup_r11.controls == null ? null : formgroup_r11.controls.subFields == null ? null : formgroup_r11.controls.subFields.controls == null ? null : formgroup_r11.controls.subFields.controls.length) && ctx_r5.removeSepratorForSubFields ? "none" : ""));
|
|
117
190
|
i0.ɵɵadvance(2);
|
|
118
|
-
i0.ɵɵtextInterpolate1(" ", field_r9.title, "
|
|
191
|
+
i0.ɵɵtextInterpolate1(" ", field_r9.title, "");
|
|
192
|
+
i0.ɵɵadvance();
|
|
193
|
+
i0.ɵɵproperty("ngIf", field_r9.validators && field_r9.validators.length > 0);
|
|
119
194
|
i0.ɵɵadvance(2);
|
|
120
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(
|
|
195
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(9, _c12, control_r10.touched && control_r10.errors ? "1px solid #B00020" : ""))("placeholder", field_r9.placeholderText ? field_r9.placeholderText : "Input Text")("formControl", control_r10);
|
|
121
196
|
i0.ɵɵadvance();
|
|
122
|
-
i0.ɵɵproperty("ngIf",
|
|
197
|
+
i0.ɵɵproperty("ngIf", control_r10.touched && control_r10.errors);
|
|
123
198
|
} }
|
|
124
|
-
function
|
|
125
|
-
|
|
126
|
-
i0.ɵɵ
|
|
127
|
-
i0.ɵɵ
|
|
199
|
+
function DynamicFormComponent_ng_template_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
200
|
+
i0.ɵɵelementContainerStart(0);
|
|
201
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_1_ng_container_1_Template, 2, 6, "ng-container", 20)(2, DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_Template, 7, 11, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
202
|
+
i0.ɵɵelementContainerEnd();
|
|
203
|
+
} if (rf & 2) {
|
|
204
|
+
const defaultInputTextarea_r16 = i0.ɵɵreference(3);
|
|
205
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
206
|
+
i0.ɵɵadvance();
|
|
207
|
+
i0.ɵɵproperty("ngIf", ctx_r5.customInputTextarea)("ngIfElse", defaultInputTextarea_r16);
|
|
208
|
+
} }
|
|
209
|
+
function DynamicFormComponent_ng_template_3_ng_container_2_ng_container_1_ng_template_1_Template(rf, ctx) { }
|
|
210
|
+
function DynamicFormComponent_ng_template_3_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
211
|
+
i0.ɵɵelementContainerStart(0);
|
|
212
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_2_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 15);
|
|
213
|
+
i0.ɵɵelementContainerEnd();
|
|
214
|
+
} if (rf & 2) {
|
|
215
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
216
|
+
const field_r9 = ctx_r7.$implicit;
|
|
217
|
+
const control_r10 = ctx_r7.control;
|
|
218
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
219
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
220
|
+
i0.ɵɵadvance();
|
|
221
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r5.customInputDate)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r9, control_r10, formgroup_r11));
|
|
222
|
+
} }
|
|
223
|
+
function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
224
|
+
i0.ɵɵelementStart(0, "span");
|
|
225
|
+
i0.ɵɵtext(1, " *");
|
|
226
|
+
i0.ɵɵelementEnd();
|
|
227
|
+
} }
|
|
228
|
+
function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_img_7_Template(rf, ctx) { if (rf & 1) {
|
|
229
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
230
|
+
i0.ɵɵelementStart(0, "img", 33);
|
|
231
|
+
i0.ɵɵlistener("click", function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_img_7_Template_img_click_0_listener() { i0.ɵɵrestoreView(_r18); i0.ɵɵnextContext(); const dp_r19 = i0.ɵɵreference(6); return i0.ɵɵresetView(dp_r19.click()); });
|
|
128
232
|
i0.ɵɵelementEnd();
|
|
129
233
|
} if (rf & 2) {
|
|
130
|
-
const
|
|
131
|
-
i0.ɵɵproperty("src",
|
|
234
|
+
const ctx_r5 = i0.ɵɵnextContext(5);
|
|
235
|
+
i0.ɵɵproperty("src", ctx_r5.calendarIconUrl, i0.ɵɵsanitizeUrl);
|
|
132
236
|
} }
|
|
133
|
-
function
|
|
134
|
-
i0.ɵɵelementContainer(0,
|
|
237
|
+
function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
238
|
+
i0.ɵɵelementContainer(0, 15);
|
|
135
239
|
} if (rf & 2) {
|
|
136
|
-
const
|
|
240
|
+
const control_r10 = i0.ɵɵnextContext(4).control;
|
|
137
241
|
i0.ɵɵnextContext();
|
|
138
|
-
const
|
|
139
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
242
|
+
const dynamicFieldErrors_r13 = i0.ɵɵreference(6);
|
|
243
|
+
i0.ɵɵproperty("ngTemplateOutlet", dynamicFieldErrors_r13)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c13, control_r10.errors));
|
|
140
244
|
} }
|
|
141
|
-
function
|
|
142
|
-
const
|
|
143
|
-
i0.ɵɵelementStart(0, "div",
|
|
245
|
+
function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
246
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
247
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "p", 29);
|
|
144
248
|
i0.ɵɵtext(2);
|
|
249
|
+
i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_span_3_Template, 2, 0, "span", 19);
|
|
145
250
|
i0.ɵɵelementEnd();
|
|
146
|
-
i0.ɵɵelementStart(
|
|
147
|
-
i0.ɵɵlistener("dateChange", function
|
|
251
|
+
i0.ɵɵelementStart(4, "div", 30)(5, "input", 31, 5);
|
|
252
|
+
i0.ɵɵlistener("dateChange", function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_Template_input_dateChange_5_listener($event) { i0.ɵɵrestoreView(_r17); const control_r10 = i0.ɵɵnextContext(3).control; return i0.ɵɵresetView(control_r10.setValue($event)); });
|
|
148
253
|
i0.ɵɵelementEnd();
|
|
149
|
-
i0.ɵɵtemplate(
|
|
254
|
+
i0.ɵɵtemplate(7, DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_img_7_Template, 1, 1, "img", 32);
|
|
150
255
|
i0.ɵɵelementEnd();
|
|
151
|
-
i0.ɵɵtemplate(
|
|
256
|
+
i0.ɵɵtemplate(8, DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_ng_container_8_Template, 1, 4, "ng-container", 25);
|
|
152
257
|
i0.ɵɵelementEnd();
|
|
153
258
|
} if (rf & 2) {
|
|
154
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
259
|
+
const ctx_r7 = i0.ɵɵnextContext(3);
|
|
155
260
|
const field_r9 = ctx_r7.$implicit;
|
|
156
|
-
const
|
|
157
|
-
const
|
|
261
|
+
const control_r10 = ctx_r7.control;
|
|
262
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
263
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
264
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(9, _c11, (formgroup_r11 == null ? null : formgroup_r11.controls == null ? null : formgroup_r11.controls.subFields == null ? null : formgroup_r11.controls.subFields.controls == null ? null : formgroup_r11.controls.subFields.controls.length) && ctx_r5.removeSepratorForSubFields ? "none" : ""));
|
|
158
265
|
i0.ɵɵadvance(2);
|
|
159
266
|
i0.ɵɵtextInterpolate1(" ", field_r9.title, " ");
|
|
267
|
+
i0.ɵɵadvance();
|
|
268
|
+
i0.ɵɵproperty("ngIf", field_r9.validators && field_r9.validators.length > 0);
|
|
160
269
|
i0.ɵɵadvance(2);
|
|
161
|
-
i0.ɵɵproperty("dpConfig", field_r9.fieldConfig)("selectedDate",
|
|
270
|
+
i0.ɵɵproperty("dpConfig", field_r9.fieldConfig)("selectedDate", control_r10.value)("offsetY", 0)("value", control_r10.value);
|
|
162
271
|
i0.ɵɵadvance(2);
|
|
163
|
-
i0.ɵɵproperty("ngIf",
|
|
272
|
+
i0.ɵɵproperty("ngIf", ctx_r5.calendarIconUrl);
|
|
164
273
|
i0.ɵɵadvance();
|
|
165
|
-
i0.ɵɵproperty("ngIf",
|
|
274
|
+
i0.ɵɵproperty("ngIf", control_r10.touched && control_r10.errors);
|
|
166
275
|
} }
|
|
167
|
-
function
|
|
168
|
-
i0.ɵɵ
|
|
276
|
+
function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
277
|
+
i0.ɵɵtemplate(0, DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_Template, 9, 11, "div", 27);
|
|
169
278
|
} if (rf & 2) {
|
|
170
|
-
const
|
|
279
|
+
const field_r9 = i0.ɵɵnextContext(2).$implicit;
|
|
280
|
+
i0.ɵɵproperty("ngIf", field_r9.fieldType === "input" && field_r9.fieldInputType === "date");
|
|
281
|
+
} }
|
|
282
|
+
function DynamicFormComponent_ng_template_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
283
|
+
i0.ɵɵelementContainerStart(0);
|
|
284
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_2_ng_container_1_Template, 2, 6, "ng-container", 20)(2, DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_Template, 1, 1, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
285
|
+
i0.ɵɵelementContainerEnd();
|
|
286
|
+
} if (rf & 2) {
|
|
287
|
+
const defaultInputDate_r20 = i0.ɵɵreference(3);
|
|
288
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
289
|
+
i0.ɵɵadvance();
|
|
290
|
+
i0.ɵɵproperty("ngIf", ctx_r5.customInputDate)("ngIfElse", defaultInputDate_r20);
|
|
291
|
+
} }
|
|
292
|
+
function DynamicFormComponent_ng_template_3_ng_container_3_ng_container_1_ng_template_1_Template(rf, ctx) { }
|
|
293
|
+
function DynamicFormComponent_ng_template_3_ng_container_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
294
|
+
i0.ɵɵelementContainerStart(0);
|
|
295
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_3_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 15);
|
|
296
|
+
i0.ɵɵelementContainerEnd();
|
|
297
|
+
} if (rf & 2) {
|
|
298
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
299
|
+
const field_r9 = ctx_r7.$implicit;
|
|
300
|
+
const control_r10 = ctx_r7.control;
|
|
301
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
302
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
303
|
+
i0.ɵɵadvance();
|
|
304
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r5.customBooleanToggle)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r9, control_r10, formgroup_r11));
|
|
305
|
+
} }
|
|
306
|
+
function DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
307
|
+
i0.ɵɵelementStart(0, "span");
|
|
308
|
+
i0.ɵɵtext(1, " *");
|
|
309
|
+
i0.ɵɵelementEnd();
|
|
310
|
+
} }
|
|
311
|
+
function DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
312
|
+
i0.ɵɵelementContainer(0, 15);
|
|
313
|
+
} if (rf & 2) {
|
|
314
|
+
const control_r10 = i0.ɵɵnextContext(3).control;
|
|
171
315
|
i0.ɵɵnextContext();
|
|
172
|
-
const
|
|
173
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
316
|
+
const dynamicFieldErrors_r13 = i0.ɵɵreference(6);
|
|
317
|
+
i0.ɵɵproperty("ngTemplateOutlet", dynamicFieldErrors_r13)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c13, control_r10.errors));
|
|
174
318
|
} }
|
|
175
|
-
function
|
|
176
|
-
const
|
|
177
|
-
i0.ɵɵelementStart(0, "div",
|
|
319
|
+
function DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
320
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
321
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "p", 29);
|
|
178
322
|
i0.ɵɵtext(2);
|
|
323
|
+
i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_span_3_Template, 2, 0, "span", 19);
|
|
179
324
|
i0.ɵɵelementEnd();
|
|
180
|
-
i0.ɵɵelementStart(
|
|
181
|
-
i0.ɵɵlistener("valueChanged", function
|
|
325
|
+
i0.ɵɵelementStart(4, "mis-switch", 34);
|
|
326
|
+
i0.ɵɵlistener("valueChanged", function DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_Template_mis_switch_valueChanged_4_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r7 = i0.ɵɵnextContext(2); const field_r9 = ctx_r7.$implicit; const formgroup_r11 = ctx_r7.formGroup; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.updateSubDynamicFields(field_r9, formgroup_r11, $event)); });
|
|
182
327
|
i0.ɵɵelementEnd();
|
|
183
|
-
i0.ɵɵtemplate(
|
|
328
|
+
i0.ɵɵtemplate(5, DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_ng_container_5_Template, 1, 4, "ng-container", 25);
|
|
184
329
|
i0.ɵɵelementEnd();
|
|
185
330
|
} if (rf & 2) {
|
|
186
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
331
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
187
332
|
const field_r9 = ctx_r7.$implicit;
|
|
188
|
-
const
|
|
333
|
+
const control_r10 = ctx_r7.control;
|
|
334
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
335
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
336
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c11, (formgroup_r11 == null ? null : formgroup_r11.controls == null ? null : formgroup_r11.controls.subFields == null ? null : formgroup_r11.controls.subFields.controls == null ? null : formgroup_r11.controls.subFields.controls.length) && ctx_r5.removeSepratorForSubFields ? "none" : ""));
|
|
189
337
|
i0.ɵɵadvance(2);
|
|
190
|
-
i0.ɵɵtextInterpolate1(" ", field_r9.title, "
|
|
338
|
+
i0.ɵɵtextInterpolate1(" ", field_r9.title, "");
|
|
339
|
+
i0.ɵɵadvance();
|
|
340
|
+
i0.ɵɵproperty("ngIf", field_r9.validators && field_r9.validators.length > 0);
|
|
191
341
|
i0.ɵɵadvance();
|
|
192
|
-
i0.ɵɵproperty("control",
|
|
342
|
+
i0.ɵɵproperty("control", control_r10);
|
|
343
|
+
i0.ɵɵadvance();
|
|
344
|
+
i0.ɵɵproperty("ngIf", control_r10.touched && control_r10.errors);
|
|
345
|
+
} }
|
|
346
|
+
function DynamicFormComponent_ng_template_3_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
347
|
+
i0.ɵɵelementContainerStart(0);
|
|
348
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_3_ng_container_1_Template, 2, 6, "ng-container", 20)(2, DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_Template, 6, 7, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
|
349
|
+
i0.ɵɵelementContainerEnd();
|
|
350
|
+
} if (rf & 2) {
|
|
351
|
+
const defaultBooleanToggle_r22 = i0.ɵɵreference(3);
|
|
352
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
193
353
|
i0.ɵɵadvance();
|
|
194
|
-
i0.ɵɵproperty("ngIf",
|
|
354
|
+
i0.ɵɵproperty("ngIf", ctx_r5.customBooleanToggle)("ngIfElse", defaultBooleanToggle_r22);
|
|
195
355
|
} }
|
|
196
|
-
function
|
|
197
|
-
|
|
356
|
+
function DynamicFormComponent_ng_template_3_ng_container_4_ng_container_1_ng_template_1_Template(rf, ctx) { }
|
|
357
|
+
function DynamicFormComponent_ng_template_3_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
358
|
+
i0.ɵɵelementContainerStart(0);
|
|
359
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_4_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 15);
|
|
360
|
+
i0.ɵɵelementContainerEnd();
|
|
198
361
|
} if (rf & 2) {
|
|
199
|
-
const
|
|
362
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
363
|
+
const field_r9 = ctx_r7.$implicit;
|
|
364
|
+
const control_r10 = ctx_r7.control;
|
|
365
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
366
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
367
|
+
i0.ɵɵadvance();
|
|
368
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r5.customSingleSelectDropdown)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r9, control_r10, formgroup_r11));
|
|
369
|
+
} }
|
|
370
|
+
function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
371
|
+
i0.ɵɵelementStart(0, "span");
|
|
372
|
+
i0.ɵɵtext(1, " *");
|
|
373
|
+
i0.ɵɵelementEnd();
|
|
374
|
+
} }
|
|
375
|
+
function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_img_6_Template(rf, ctx) { if (rf & 1) {
|
|
376
|
+
const _r24 = i0.ɵɵgetCurrentView();
|
|
377
|
+
i0.ɵɵelementStart(0, "img", 38);
|
|
378
|
+
i0.ɵɵlistener("click", function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_img_6_Template_img_click_0_listener() { i0.ɵɵrestoreView(_r24); const field_r9 = i0.ɵɵnextContext(3).$implicit; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.fieldRemoved.emit(field_r9)); });
|
|
379
|
+
i0.ɵɵelementEnd();
|
|
380
|
+
} if (rf & 2) {
|
|
381
|
+
const ctx_r5 = i0.ɵɵnextContext(4);
|
|
382
|
+
i0.ɵɵproperty("src", ctx_r5.removeIconUrl, i0.ɵɵsanitizeUrl);
|
|
383
|
+
} }
|
|
384
|
+
function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
385
|
+
i0.ɵɵelementContainer(0, 15);
|
|
386
|
+
} if (rf & 2) {
|
|
387
|
+
const control_r10 = i0.ɵɵnextContext(3).control;
|
|
200
388
|
i0.ɵɵnextContext();
|
|
201
|
-
const
|
|
202
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
389
|
+
const dynamicFieldErrors_r13 = i0.ɵɵreference(6);
|
|
390
|
+
i0.ɵɵproperty("ngTemplateOutlet", dynamicFieldErrors_r13)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c13, control_r10.errors));
|
|
203
391
|
} }
|
|
204
|
-
function
|
|
205
|
-
const
|
|
206
|
-
i0.ɵɵelementStart(0, "div",
|
|
392
|
+
function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
393
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
394
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "p", 29);
|
|
207
395
|
i0.ɵɵtext(2);
|
|
396
|
+
i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_span_3_Template, 2, 0, "span", 19);
|
|
397
|
+
i0.ɵɵelementEnd();
|
|
398
|
+
i0.ɵɵelementStart(4, "div", 35)(5, "mis-dropdown", 36);
|
|
399
|
+
i0.ɵɵlistener("onChange", function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_Template_mis_dropdown_onChange_5_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r7 = i0.ɵɵnextContext(2); const field_r9 = ctx_r7.$implicit; const control_r10 = ctx_r7.control; const formgroup_r11 = ctx_r7.formGroup; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.updateSelectedValueForSingleSelect(field_r9, control_r10, formgroup_r11, $event)); });
|
|
208
400
|
i0.ɵɵelementEnd();
|
|
209
|
-
i0.ɵɵ
|
|
210
|
-
i0.ɵɵlistener("onChange", function DynamicFormComponent_ng_template_3_div_4_Template_mis_dropdown_onChange_3_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r7 = i0.ɵɵnextContext(); const field_r9 = ctx_r7.$implicit; const control_r11 = ctx_r7.control; const formgroup_r10 = ctx_r7.formGroup; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.updateSelectedValueForSingleSelect(field_r9, control_r11, formgroup_r10, $event)); });
|
|
401
|
+
i0.ɵɵtemplate(6, DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_img_6_Template, 1, 1, "img", 37);
|
|
211
402
|
i0.ɵɵelementEnd();
|
|
212
|
-
i0.ɵɵtemplate(
|
|
403
|
+
i0.ɵɵtemplate(7, DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_ng_container_7_Template, 1, 4, "ng-container", 25);
|
|
213
404
|
i0.ɵɵelementEnd();
|
|
214
405
|
} if (rf & 2) {
|
|
215
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
406
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
216
407
|
const field_r9 = ctx_r7.$implicit;
|
|
217
|
-
const
|
|
408
|
+
const control_r10 = ctx_r7.control;
|
|
409
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
410
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
411
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(10, _c11, (formgroup_r11 == null ? null : formgroup_r11.controls == null ? null : formgroup_r11.controls.subFields == null ? null : formgroup_r11.controls.subFields.controls == null ? null : formgroup_r11.controls.subFields.controls.length) && ctx_r5.removeSepratorForSubFields ? "none" : ""));
|
|
218
412
|
i0.ɵɵadvance(2);
|
|
219
|
-
i0.ɵɵtextInterpolate1(" ", field_r9.title, "
|
|
413
|
+
i0.ɵɵtextInterpolate1(" ", field_r9.title, "");
|
|
414
|
+
i0.ɵɵadvance();
|
|
415
|
+
i0.ɵɵproperty("ngIf", field_r9.validators && field_r9.validators.length > 0);
|
|
220
416
|
i0.ɵɵadvance();
|
|
221
|
-
i0.ɵɵproperty("
|
|
417
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c14, field_r9 == null ? null : field_r9.isRemoveable));
|
|
222
418
|
i0.ɵɵadvance();
|
|
223
|
-
i0.ɵɵproperty("
|
|
419
|
+
i0.ɵɵproperty("searchEnabled", false)("width", "140px")("data", field_r9.itemsList)("selectedItem", control_r10.value);
|
|
420
|
+
i0.ɵɵadvance();
|
|
421
|
+
i0.ɵɵproperty("ngIf", field_r9.isRemoveable && ctx_r5.removeIconUrl);
|
|
422
|
+
i0.ɵɵadvance();
|
|
423
|
+
i0.ɵɵproperty("ngIf", control_r10.touched && control_r10.errors);
|
|
224
424
|
} }
|
|
225
|
-
function
|
|
226
|
-
i0.ɵɵ
|
|
425
|
+
function DynamicFormComponent_ng_template_3_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
426
|
+
i0.ɵɵelementContainerStart(0);
|
|
427
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_4_ng_container_1_Template, 2, 6, "ng-container", 20)(2, DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_Template, 8, 14, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
428
|
+
i0.ɵɵelementContainerEnd();
|
|
227
429
|
} if (rf & 2) {
|
|
228
|
-
const
|
|
229
|
-
|
|
430
|
+
const defaultSingleSelectDropdown_r25 = i0.ɵɵreference(3);
|
|
431
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
432
|
+
i0.ɵɵadvance();
|
|
433
|
+
i0.ɵɵproperty("ngIf", ctx_r5.customSingleSelectDropdown)("ngIfElse", defaultSingleSelectDropdown_r25);
|
|
230
434
|
} }
|
|
231
|
-
function
|
|
232
|
-
|
|
233
|
-
i0.ɵɵ
|
|
234
|
-
i0.ɵɵ
|
|
235
|
-
i0.ɵɵ
|
|
236
|
-
|
|
435
|
+
function DynamicFormComponent_ng_template_3_ng_container_5_ng_container_1_ng_template_1_Template(rf, ctx) { }
|
|
436
|
+
function DynamicFormComponent_ng_template_3_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
437
|
+
i0.ɵɵelementContainerStart(0);
|
|
438
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_5_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 15);
|
|
439
|
+
i0.ɵɵelementContainerEnd();
|
|
440
|
+
} if (rf & 2) {
|
|
441
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
442
|
+
const field_r9 = ctx_r7.$implicit;
|
|
443
|
+
const control_r10 = ctx_r7.control;
|
|
444
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
445
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
446
|
+
i0.ɵɵadvance();
|
|
447
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r5.customSingleSelectRadio)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r9, control_r10, formgroup_r11));
|
|
448
|
+
} }
|
|
449
|
+
function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
450
|
+
i0.ɵɵelementStart(0, "span");
|
|
451
|
+
i0.ɵɵtext(1, " *");
|
|
452
|
+
i0.ɵɵelementEnd();
|
|
453
|
+
} }
|
|
454
|
+
function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_div_6_img_1_Template(rf, ctx) { if (rf & 1) {
|
|
455
|
+
i0.ɵɵelement(0, "img", 43);
|
|
456
|
+
} if (rf & 2) {
|
|
457
|
+
const ctx_r5 = i0.ɵɵnextContext(5);
|
|
458
|
+
i0.ɵɵproperty("src", ctx_r5.activeBtnIconUrl, i0.ɵɵsanitizeUrl);
|
|
459
|
+
} }
|
|
460
|
+
function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
461
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
462
|
+
i0.ɵɵelementStart(0, "div", 41);
|
|
463
|
+
i0.ɵɵlistener("click", function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_div_6_Template_div_click_0_listener() { const item_r27 = i0.ɵɵrestoreView(_r26).$implicit; const ctx_r7 = i0.ɵɵnextContext(3); const field_r9 = ctx_r7.$implicit; const control_r10 = ctx_r7.control; const formgroup_r11 = ctx_r7.formGroup; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.updateSelectedValueForSingleSelect(field_r9, control_r10, formgroup_r11, item_r27)); });
|
|
464
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_div_6_img_1_Template, 1, 1, "img", 42);
|
|
465
|
+
i0.ɵɵelementStart(2, "p", 29);
|
|
237
466
|
i0.ɵɵtext(3);
|
|
238
467
|
i0.ɵɵelementEnd()();
|
|
239
468
|
} if (rf & 2) {
|
|
240
|
-
const
|
|
241
|
-
const
|
|
242
|
-
const
|
|
243
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3,
|
|
469
|
+
const item_r27 = ctx.$implicit;
|
|
470
|
+
const control_r10 = i0.ɵɵnextContext(3).control;
|
|
471
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
472
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c15, item_r27.label === (control_r10.value == null ? null : control_r10.value.label)));
|
|
244
473
|
i0.ɵɵadvance();
|
|
245
|
-
i0.ɵɵproperty("ngIf",
|
|
474
|
+
i0.ɵɵproperty("ngIf", item_r27.label === (control_r10.value == null ? null : control_r10.value.label) && ctx_r5.activeBtnIconUrl);
|
|
246
475
|
i0.ɵɵadvance(2);
|
|
247
|
-
i0.ɵɵtextInterpolate(
|
|
476
|
+
i0.ɵɵtextInterpolate(item_r27.label);
|
|
248
477
|
} }
|
|
249
|
-
function
|
|
250
|
-
i0.ɵɵelementContainer(0,
|
|
478
|
+
function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
479
|
+
i0.ɵɵelementContainer(0, 15);
|
|
251
480
|
} if (rf & 2) {
|
|
252
|
-
const
|
|
481
|
+
const control_r10 = i0.ɵɵnextContext(3).control;
|
|
253
482
|
i0.ɵɵnextContext();
|
|
254
|
-
const
|
|
255
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
483
|
+
const dynamicFieldErrors_r13 = i0.ɵɵreference(6);
|
|
484
|
+
i0.ɵɵproperty("ngTemplateOutlet", dynamicFieldErrors_r13)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c13, control_r10.errors));
|
|
256
485
|
} }
|
|
257
|
-
function
|
|
258
|
-
i0.ɵɵelementStart(0, "div",
|
|
486
|
+
function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
487
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "p", 22);
|
|
259
488
|
i0.ɵɵtext(2);
|
|
489
|
+
i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_span_3_Template, 2, 0, "span", 19);
|
|
260
490
|
i0.ɵɵelementEnd();
|
|
261
|
-
i0.ɵɵelement(
|
|
262
|
-
i0.ɵɵelementStart(
|
|
263
|
-
i0.ɵɵtemplate(
|
|
491
|
+
i0.ɵɵelement(4, "div", 23);
|
|
492
|
+
i0.ɵɵelementStart(5, "div", 39);
|
|
493
|
+
i0.ɵɵtemplate(6, DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_div_6_Template, 4, 5, "div", 40);
|
|
264
494
|
i0.ɵɵelementEnd();
|
|
265
|
-
i0.ɵɵtemplate(
|
|
495
|
+
i0.ɵɵtemplate(7, DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_ng_container_7_Template, 1, 4, "ng-container", 25);
|
|
266
496
|
i0.ɵɵelementEnd();
|
|
267
497
|
} if (rf & 2) {
|
|
268
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
498
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
269
499
|
const field_r9 = ctx_r7.$implicit;
|
|
270
|
-
const
|
|
500
|
+
const control_r10 = ctx_r7.control;
|
|
501
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
502
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
503
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c11, (formgroup_r11 == null ? null : formgroup_r11.controls == null ? null : formgroup_r11.controls.subFields == null ? null : formgroup_r11.controls.subFields.controls == null ? null : formgroup_r11.controls.subFields.controls.length) && ctx_r5.removeSepratorForSubFields ? "none" : ""));
|
|
271
504
|
i0.ɵɵadvance(2);
|
|
272
|
-
i0.ɵɵtextInterpolate1(" ", field_r9.title, "
|
|
505
|
+
i0.ɵɵtextInterpolate1(" ", field_r9.title, "");
|
|
506
|
+
i0.ɵɵadvance();
|
|
507
|
+
i0.ɵɵproperty("ngIf", field_r9.validators && field_r9.validators.length > 0);
|
|
273
508
|
i0.ɵɵadvance(3);
|
|
274
509
|
i0.ɵɵproperty("ngForOf", field_r9.itemsList);
|
|
275
510
|
i0.ɵɵadvance();
|
|
276
|
-
i0.ɵɵproperty("ngIf",
|
|
511
|
+
i0.ɵɵproperty("ngIf", control_r10.touched && control_r10.errors);
|
|
512
|
+
} }
|
|
513
|
+
function DynamicFormComponent_ng_template_3_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
514
|
+
i0.ɵɵelementContainerStart(0);
|
|
515
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_5_ng_container_1_Template, 2, 6, "ng-container", 20)(2, DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_Template, 8, 7, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor);
|
|
516
|
+
i0.ɵɵelementContainerEnd();
|
|
517
|
+
} if (rf & 2) {
|
|
518
|
+
const defaultSingleSelectRadio_r28 = i0.ɵɵreference(3);
|
|
519
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
520
|
+
i0.ɵɵadvance();
|
|
521
|
+
i0.ɵɵproperty("ngIf", ctx_r5.customSingleSelectRadio)("ngIfElse", defaultSingleSelectRadio_r28);
|
|
277
522
|
} }
|
|
278
|
-
function
|
|
279
|
-
|
|
523
|
+
function DynamicFormComponent_ng_template_3_ng_container_6_ng_container_1_ng_template_1_Template(rf, ctx) { }
|
|
524
|
+
function DynamicFormComponent_ng_template_3_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
525
|
+
i0.ɵɵelementContainerStart(0);
|
|
526
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_6_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 15);
|
|
527
|
+
i0.ɵɵelementContainerEnd();
|
|
280
528
|
} if (rf & 2) {
|
|
281
|
-
const
|
|
282
|
-
|
|
529
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
530
|
+
const field_r9 = ctx_r7.$implicit;
|
|
531
|
+
const control_r10 = ctx_r7.control;
|
|
532
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
533
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
534
|
+
i0.ɵɵadvance();
|
|
535
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r5.customMultiSelectCheckbox)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r9, control_r10, formgroup_r11));
|
|
283
536
|
} }
|
|
284
|
-
function
|
|
285
|
-
|
|
286
|
-
i0.ɵɵ
|
|
287
|
-
i0.ɵɵ
|
|
288
|
-
|
|
289
|
-
|
|
537
|
+
function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
538
|
+
i0.ɵɵelementStart(0, "span");
|
|
539
|
+
i0.ɵɵtext(1, " *");
|
|
540
|
+
i0.ɵɵelementEnd();
|
|
541
|
+
} }
|
|
542
|
+
function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_div_6_img_1_Template(rf, ctx) { if (rf & 1) {
|
|
543
|
+
i0.ɵɵelement(0, "img", 43);
|
|
544
|
+
} if (rf & 2) {
|
|
545
|
+
const ctx_r5 = i0.ɵɵnextContext(5);
|
|
546
|
+
i0.ɵɵproperty("src", ctx_r5.activeBtnIconUrl, i0.ɵɵsanitizeUrl);
|
|
547
|
+
} }
|
|
548
|
+
function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
549
|
+
const _r29 = i0.ɵɵgetCurrentView();
|
|
550
|
+
i0.ɵɵelementStart(0, "div", 41);
|
|
551
|
+
i0.ɵɵlistener("click", function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_div_6_Template_div_click_0_listener() { const item_r30 = i0.ɵɵrestoreView(_r29).$implicit; const ctx_r7 = i0.ɵɵnextContext(3); const field_r9 = ctx_r7.$implicit; const control_r10 = ctx_r7.control; const formgroup_r11 = ctx_r7.formGroup; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.updateSelectedValueForMultiSelect(field_r9, control_r10, formgroup_r11, [item_r30])); });
|
|
552
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_div_6_img_1_Template, 1, 1, "img", 42);
|
|
553
|
+
i0.ɵɵelementStart(2, "p", 29);
|
|
290
554
|
i0.ɵɵtext(3);
|
|
291
555
|
i0.ɵɵelementEnd()();
|
|
292
556
|
} if (rf & 2) {
|
|
293
|
-
const
|
|
294
|
-
const
|
|
295
|
-
const
|
|
296
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3,
|
|
557
|
+
const item_r30 = ctx.$implicit;
|
|
558
|
+
const control_r10 = i0.ɵɵnextContext(3).control;
|
|
559
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
560
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c15, ctx_r5.isCheckBoxSelected(item_r30.label, control_r10.value)));
|
|
297
561
|
i0.ɵɵadvance();
|
|
298
|
-
i0.ɵɵproperty("ngIf",
|
|
562
|
+
i0.ɵɵproperty("ngIf", ctx_r5.isCheckBoxSelected(item_r30.label, control_r10.value) && ctx_r5.activeBtnIconUrl);
|
|
299
563
|
i0.ɵɵadvance(2);
|
|
300
|
-
i0.ɵɵtextInterpolate(
|
|
564
|
+
i0.ɵɵtextInterpolate(item_r30.label);
|
|
301
565
|
} }
|
|
302
|
-
function
|
|
303
|
-
i0.ɵɵelementContainer(0,
|
|
566
|
+
function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
567
|
+
i0.ɵɵelementContainer(0, 15);
|
|
304
568
|
} if (rf & 2) {
|
|
305
|
-
const
|
|
569
|
+
const control_r10 = i0.ɵɵnextContext(3).control;
|
|
306
570
|
i0.ɵɵnextContext();
|
|
307
|
-
const
|
|
308
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
571
|
+
const dynamicFieldErrors_r13 = i0.ɵɵreference(6);
|
|
572
|
+
i0.ɵɵproperty("ngTemplateOutlet", dynamicFieldErrors_r13)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c13, control_r10.errors));
|
|
309
573
|
} }
|
|
310
|
-
function
|
|
311
|
-
i0.ɵɵelementStart(0, "div",
|
|
574
|
+
function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
575
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "p", 22);
|
|
312
576
|
i0.ɵɵtext(2);
|
|
577
|
+
i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_span_3_Template, 2, 0, "span", 19);
|
|
313
578
|
i0.ɵɵelementEnd();
|
|
314
|
-
i0.ɵɵelement(
|
|
315
|
-
i0.ɵɵelementStart(
|
|
316
|
-
i0.ɵɵtemplate(
|
|
579
|
+
i0.ɵɵelement(4, "div", 23);
|
|
580
|
+
i0.ɵɵelementStart(5, "div", 39);
|
|
581
|
+
i0.ɵɵtemplate(6, DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_div_6_Template, 4, 5, "div", 40);
|
|
317
582
|
i0.ɵɵelementEnd();
|
|
318
|
-
i0.ɵɵtemplate(
|
|
583
|
+
i0.ɵɵtemplate(7, DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_ng_container_7_Template, 1, 4, "ng-container", 25);
|
|
319
584
|
i0.ɵɵelementEnd();
|
|
320
585
|
} if (rf & 2) {
|
|
321
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
586
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
322
587
|
const field_r9 = ctx_r7.$implicit;
|
|
323
|
-
const
|
|
588
|
+
const control_r10 = ctx_r7.control;
|
|
589
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
590
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
591
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c11, (formgroup_r11 == null ? null : formgroup_r11.controls == null ? null : formgroup_r11.controls.subFields == null ? null : formgroup_r11.controls.subFields.controls == null ? null : formgroup_r11.controls.subFields.controls.length) && ctx_r5.removeSepratorForSubFields ? "none" : ""));
|
|
324
592
|
i0.ɵɵadvance(2);
|
|
325
|
-
i0.ɵɵtextInterpolate1(" ", field_r9.title, "
|
|
593
|
+
i0.ɵɵtextInterpolate1(" ", field_r9.title, "");
|
|
594
|
+
i0.ɵɵadvance();
|
|
595
|
+
i0.ɵɵproperty("ngIf", field_r9.validators && field_r9.validators.length > 0);
|
|
326
596
|
i0.ɵɵadvance(3);
|
|
327
597
|
i0.ɵɵproperty("ngForOf", field_r9.itemsList);
|
|
328
598
|
i0.ɵɵadvance();
|
|
329
|
-
i0.ɵɵproperty("ngIf",
|
|
599
|
+
i0.ɵɵproperty("ngIf", control_r10.touched && control_r10.errors);
|
|
600
|
+
} }
|
|
601
|
+
function DynamicFormComponent_ng_template_3_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
602
|
+
i0.ɵɵelementContainerStart(0);
|
|
603
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_6_ng_container_1_Template, 2, 6, "ng-container", 20)(2, DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_Template, 8, 7, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor);
|
|
604
|
+
i0.ɵɵelementContainerEnd();
|
|
605
|
+
} if (rf & 2) {
|
|
606
|
+
const defaultMultiSelectCheckbox_r31 = i0.ɵɵreference(3);
|
|
607
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
608
|
+
i0.ɵɵadvance();
|
|
609
|
+
i0.ɵɵproperty("ngIf", ctx_r5.customMultiSelectCheckbox)("ngIfElse", defaultMultiSelectCheckbox_r31);
|
|
610
|
+
} }
|
|
611
|
+
function DynamicFormComponent_ng_template_3_ng_container_7_ng_container_1_ng_template_1_Template(rf, ctx) { }
|
|
612
|
+
function DynamicFormComponent_ng_template_3_ng_container_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
613
|
+
i0.ɵɵelementContainerStart(0);
|
|
614
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_7_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 15);
|
|
615
|
+
i0.ɵɵelementContainerEnd();
|
|
616
|
+
} if (rf & 2) {
|
|
617
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
618
|
+
const field_r9 = ctx_r7.$implicit;
|
|
619
|
+
const control_r10 = ctx_r7.control;
|
|
620
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
621
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
622
|
+
i0.ɵɵadvance();
|
|
623
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r5.customMultiSelectDropdown)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r9, control_r10, formgroup_r11));
|
|
624
|
+
} }
|
|
625
|
+
function DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
626
|
+
i0.ɵɵelementStart(0, "span");
|
|
627
|
+
i0.ɵɵtext(1, " *");
|
|
628
|
+
i0.ɵɵelementEnd();
|
|
330
629
|
} }
|
|
331
|
-
function
|
|
332
|
-
i0.ɵɵelementContainer(0,
|
|
630
|
+
function DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
631
|
+
i0.ɵɵelementContainer(0, 15);
|
|
333
632
|
} if (rf & 2) {
|
|
334
|
-
const
|
|
633
|
+
const control_r10 = i0.ɵɵnextContext(3).control;
|
|
335
634
|
i0.ɵɵnextContext();
|
|
336
|
-
const
|
|
337
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
635
|
+
const dynamicFieldErrors_r13 = i0.ɵɵreference(6);
|
|
636
|
+
i0.ɵɵproperty("ngTemplateOutlet", dynamicFieldErrors_r13)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c13, control_r10.errors));
|
|
338
637
|
} }
|
|
339
|
-
function
|
|
340
|
-
const
|
|
341
|
-
i0.ɵɵelementStart(0, "div",
|
|
638
|
+
function DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
639
|
+
const _r32 = i0.ɵɵgetCurrentView();
|
|
640
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "p", 29);
|
|
342
641
|
i0.ɵɵtext(2);
|
|
642
|
+
i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_span_3_Template, 2, 0, "span", 19);
|
|
343
643
|
i0.ɵɵelementEnd();
|
|
344
|
-
i0.ɵɵelementStart(
|
|
345
|
-
i0.ɵɵlistener("onChange", function
|
|
644
|
+
i0.ɵɵelementStart(4, "mis-multi-select-dropdown", 44);
|
|
645
|
+
i0.ɵɵlistener("onChange", function DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_Template_mis_multi_select_dropdown_onChange_4_listener($event) { i0.ɵɵrestoreView(_r32); const ctx_r7 = i0.ɵɵnextContext(2); const field_r9 = ctx_r7.$implicit; const control_r10 = ctx_r7.control; const formgroup_r11 = ctx_r7.formGroup; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.updateSelectedValueForMultiSelect(field_r9, control_r10, formgroup_r11, $event)); });
|
|
346
646
|
i0.ɵɵelementEnd();
|
|
347
|
-
i0.ɵɵtemplate(
|
|
647
|
+
i0.ɵɵtemplate(5, DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_ng_container_5_Template, 1, 4, "ng-container", 25);
|
|
348
648
|
i0.ɵɵelementEnd();
|
|
349
649
|
} if (rf & 2) {
|
|
350
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
650
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
351
651
|
const field_r9 = ctx_r7.$implicit;
|
|
352
|
-
const
|
|
652
|
+
const control_r10 = ctx_r7.control;
|
|
653
|
+
const formgroup_r11 = ctx_r7.formGroup;
|
|
654
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
655
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(11, _c11, (formgroup_r11 == null ? null : formgroup_r11.controls == null ? null : formgroup_r11.controls.subFields == null ? null : formgroup_r11.controls.subFields.controls == null ? null : formgroup_r11.controls.subFields.controls.length) && ctx_r5.removeSepratorForSubFields ? "none" : ""));
|
|
353
656
|
i0.ɵɵadvance(2);
|
|
354
|
-
i0.ɵɵtextInterpolate1(" ", field_r9.title, "
|
|
657
|
+
i0.ɵɵtextInterpolate1(" ", field_r9.title, "");
|
|
658
|
+
i0.ɵɵadvance();
|
|
659
|
+
i0.ɵɵproperty("ngIf", field_r9.validators && field_r9.validators.length > 0);
|
|
660
|
+
i0.ɵɵadvance();
|
|
661
|
+
i0.ɵɵproperty("width", "140px")("showSelectedCount", true)("dropdownListWidth", "256px")("searchEnabled", false)("hideApplyButton", true)("data", field_r9.itemsList)("selectedItems", control_r10.value);
|
|
355
662
|
i0.ɵɵadvance();
|
|
356
|
-
i0.ɵɵproperty("
|
|
663
|
+
i0.ɵɵproperty("ngIf", control_r10.touched && control_r10.errors);
|
|
664
|
+
} }
|
|
665
|
+
function DynamicFormComponent_ng_template_3_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
666
|
+
i0.ɵɵelementContainerStart(0);
|
|
667
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_7_ng_container_1_Template, 2, 6, "ng-container", 20)(2, DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_Template, 6, 13, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
668
|
+
i0.ɵɵelementContainerEnd();
|
|
669
|
+
} if (rf & 2) {
|
|
670
|
+
const defaultMultiSelectDropdown_r33 = i0.ɵɵreference(3);
|
|
671
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
357
672
|
i0.ɵɵadvance();
|
|
358
|
-
i0.ɵɵproperty("ngIf",
|
|
673
|
+
i0.ɵɵproperty("ngIf", ctx_r5.customMultiSelectDropdown)("ngIfElse", defaultMultiSelectDropdown_r33);
|
|
359
674
|
} }
|
|
360
675
|
function DynamicFormComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
361
|
-
i0.ɵɵtemplate(0,
|
|
676
|
+
i0.ɵɵtemplate(0, DynamicFormComponent_ng_template_3_ng_container_0_Template, 4, 2, "ng-container", 19)(1, DynamicFormComponent_ng_template_3_ng_container_1_Template, 4, 2, "ng-container", 19)(2, DynamicFormComponent_ng_template_3_ng_container_2_Template, 4, 2, "ng-container", 19)(3, DynamicFormComponent_ng_template_3_ng_container_3_Template, 4, 2, "ng-container", 19)(4, DynamicFormComponent_ng_template_3_ng_container_4_Template, 4, 2, "ng-container", 19)(5, DynamicFormComponent_ng_template_3_ng_container_5_Template, 4, 2, "ng-container", 19)(6, DynamicFormComponent_ng_template_3_ng_container_6_Template, 4, 2, "ng-container", 19)(7, DynamicFormComponent_ng_template_3_ng_container_7_Template, 4, 2, "ng-container", 19);
|
|
362
677
|
} if (rf & 2) {
|
|
363
678
|
const field_r9 = ctx.$implicit;
|
|
364
679
|
i0.ɵɵproperty("ngIf", field_r9.fieldType === "input" && (field_r9.fieldInputType === "text" || field_r9.fieldInputType === "number"));
|
|
@@ -379,26 +694,31 @@ function DynamicFormComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
379
694
|
} }
|
|
380
695
|
function DynamicFormComponent_ng_template_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
381
696
|
i0.ɵɵelementContainerStart(0);
|
|
382
|
-
i0.ɵɵelementStart(1, "p",
|
|
697
|
+
i0.ɵɵelementStart(1, "p", 46);
|
|
383
698
|
i0.ɵɵtext(2);
|
|
384
699
|
i0.ɵɵelementEnd();
|
|
385
|
-
i0.ɵɵelement(3, "div",
|
|
700
|
+
i0.ɵɵelement(3, "div", 47);
|
|
386
701
|
i0.ɵɵelementContainerEnd();
|
|
387
702
|
} if (rf & 2) {
|
|
388
|
-
const
|
|
703
|
+
const error_r34 = ctx.$implicit;
|
|
389
704
|
i0.ɵɵadvance(2);
|
|
390
|
-
i0.ɵɵtextInterpolate1(" ", " \u2022 \u00A0" +
|
|
705
|
+
i0.ɵɵtextInterpolate1(" ", " \u2022 \u00A0" + error_r34.value, " ");
|
|
706
|
+
i0.ɵɵadvance();
|
|
707
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction0(2, _c16));
|
|
391
708
|
} }
|
|
392
709
|
function DynamicFormComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
393
|
-
i0.ɵɵelementStart(0, "div",
|
|
394
|
-
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_5_ng_container_1_Template, 4,
|
|
710
|
+
i0.ɵɵelementStart(0, "div", 45);
|
|
711
|
+
i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_5_ng_container_1_Template, 4, 3, "ng-container", 18);
|
|
395
712
|
i0.ɵɵpipe(2, "keyvalue");
|
|
396
713
|
i0.ɵɵelementEnd();
|
|
397
714
|
} if (rf & 2) {
|
|
398
|
-
const
|
|
715
|
+
const errors_r35 = ctx.$implicit;
|
|
399
716
|
i0.ɵɵadvance();
|
|
400
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(2, 1,
|
|
717
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(2, 1, errors_r35));
|
|
401
718
|
} }
|
|
719
|
+
dayjs.extend(utc);
|
|
720
|
+
dayjs.extend(timezone);
|
|
721
|
+
dayjs.extend(customParseFormat);
|
|
402
722
|
class DynamicFormComponent {
|
|
403
723
|
constructor() {
|
|
404
724
|
/**
|
|
@@ -411,6 +731,8 @@ class DynamicFormComponent {
|
|
|
411
731
|
// Need to deprecate these inputs and use constants.
|
|
412
732
|
this.activeBtnIconUrl = "";
|
|
413
733
|
this.calendarIconUrl = "";
|
|
734
|
+
this.removeIconUrl = "";
|
|
735
|
+
this.removeSepratorForSubFields = false;
|
|
414
736
|
/**
|
|
415
737
|
* formUpdated: Emits formValues Object whenever there is a change in the dynamic form.
|
|
416
738
|
*/
|
|
@@ -423,6 +745,7 @@ class DynamicFormComponent {
|
|
|
423
745
|
* formInitialized: Emits dynamic form API on form initilization
|
|
424
746
|
*/
|
|
425
747
|
this.formInitialized = new EventEmitter();
|
|
748
|
+
this.fieldRemoved = new EventEmitter();
|
|
426
749
|
}
|
|
427
750
|
ngOnInit() {
|
|
428
751
|
// Building the form
|
|
@@ -452,11 +775,19 @@ class DynamicFormComponent {
|
|
|
452
775
|
generateDynamicFieldsValueObject(formValues) {
|
|
453
776
|
let dynamicFieldsValue = {};
|
|
454
777
|
formValues.forEach((fieldValue, index) => {
|
|
778
|
+
if (typeof fieldValue?.value === 'string')
|
|
779
|
+
fieldValue.value = fieldValue?.value?.trim();
|
|
455
780
|
let formattedValue = this.mapFormFieldToFormValue(this.formFields[index], fieldValue.value);
|
|
456
781
|
if (fieldValue.subFields?.length > 0) {
|
|
457
782
|
let formattedSubFieldsValues = {};
|
|
783
|
+
let subField = this.formFields[index].subFields;
|
|
784
|
+
if (this.formFields[index].fieldType === 'singleSelect' || this.formFields[index].fieldType === 'multiSelect') {
|
|
785
|
+
subField = subField.filter((subField) => subField.parentConfigValue === fieldValue.value.value);
|
|
786
|
+
}
|
|
458
787
|
fieldValue.subFields.forEach((subFieldValue, subIndex) => {
|
|
459
|
-
let subFormField =
|
|
788
|
+
let subFormField = subField[subIndex];
|
|
789
|
+
if (typeof subFieldValue?.value === 'string')
|
|
790
|
+
subFieldValue.value = subFieldValue?.value?.trim();
|
|
460
791
|
formattedSubFieldsValues[subFormField.configName] = this.mapFormFieldToFormValue(subFormField, subFieldValue);
|
|
461
792
|
});
|
|
462
793
|
dynamicFieldsValue[this.formFields[index].configName] = {
|
|
@@ -522,9 +853,14 @@ class DynamicFormComponent {
|
|
|
522
853
|
isCheckBoxSelected(value, selectedValues) {
|
|
523
854
|
return selectedValues.findIndex(item => item.label === value) > -1;
|
|
524
855
|
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
856
|
+
findSelectedSubFieldConfig(subfields, value, subFieldIndex) {
|
|
857
|
+
try {
|
|
858
|
+
const selectedSubFieldConfig = subfields.filter(item => item.parentConfigValue === value)[subFieldIndex];
|
|
859
|
+
return selectedSubFieldConfig;
|
|
860
|
+
}
|
|
861
|
+
catch (e) {
|
|
862
|
+
throw new Error('Subfield index not found');
|
|
863
|
+
}
|
|
528
864
|
}
|
|
529
865
|
matchParentConfig(subfields, value) {
|
|
530
866
|
if (!subfields || subfields.length === 0) {
|
|
@@ -562,10 +898,10 @@ class DynamicFormComponent {
|
|
|
562
898
|
control.setValue(formValue ? formValue : 0);
|
|
563
899
|
else if (formField.fieldInputType === "date") {
|
|
564
900
|
if (formValue && typeof formValue === "number") {
|
|
565
|
-
control.setValue(
|
|
901
|
+
control.setValue(dayjs(formValue).tz(formField.fieldConfig.timezone).format(formField.fieldConfig.format));
|
|
566
902
|
}
|
|
567
903
|
else {
|
|
568
|
-
control.setValue(
|
|
904
|
+
control.setValue(dayjs().tz(formField.fieldConfig.timezone).format(formField.fieldConfig.format));
|
|
569
905
|
}
|
|
570
906
|
}
|
|
571
907
|
}
|
|
@@ -612,7 +948,7 @@ class DynamicFormComponent {
|
|
|
612
948
|
else if (formField.fieldInputType === "number")
|
|
613
949
|
return +formValue;
|
|
614
950
|
else if (formField.fieldInputType === "date") {
|
|
615
|
-
return
|
|
951
|
+
return dayjs.tz(formValue, formField.fieldConfig.format, formField.fieldConfig.timezone).valueOf();
|
|
616
952
|
}
|
|
617
953
|
}
|
|
618
954
|
else if (formField.fieldType === "singleSelect") {
|
|
@@ -628,10 +964,29 @@ class DynamicFormComponent {
|
|
|
628
964
|
return formValue;
|
|
629
965
|
}
|
|
630
966
|
static { this.ɵfac = function DynamicFormComponent_Factory(t) { return new (t || DynamicFormComponent)(); }; }
|
|
631
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DynamicFormComponent, selectors: [["mis-dynamic-form"]],
|
|
632
|
-
i0.ɵɵ
|
|
633
|
-
i0.ɵɵ
|
|
634
|
-
i0.ɵɵ
|
|
967
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DynamicFormComponent, selectors: [["mis-dynamic-form"]], contentQueries: function DynamicFormComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
968
|
+
i0.ɵɵcontentQuery(dirIndex, _c0, 5);
|
|
969
|
+
i0.ɵɵcontentQuery(dirIndex, _c1, 5);
|
|
970
|
+
i0.ɵɵcontentQuery(dirIndex, _c2, 5);
|
|
971
|
+
i0.ɵɵcontentQuery(dirIndex, _c3, 5);
|
|
972
|
+
i0.ɵɵcontentQuery(dirIndex, _c4, 5);
|
|
973
|
+
i0.ɵɵcontentQuery(dirIndex, _c5, 5);
|
|
974
|
+
i0.ɵɵcontentQuery(dirIndex, _c6, 5);
|
|
975
|
+
i0.ɵɵcontentQuery(dirIndex, _c7, 5);
|
|
976
|
+
} if (rf & 2) {
|
|
977
|
+
let _t;
|
|
978
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customInputTextNumber = _t.first);
|
|
979
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customInputTextarea = _t.first);
|
|
980
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customInputDate = _t.first);
|
|
981
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customBooleanToggle = _t.first);
|
|
982
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customSingleSelectDropdown = _t.first);
|
|
983
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customSingleSelectRadio = _t.first);
|
|
984
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customMultiSelectCheckbox = _t.first);
|
|
985
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customMultiSelectDropdown = _t.first);
|
|
986
|
+
} }, inputs: { formFields: "formFields", formValues: "formValues", activeBtnIconUrl: "activeBtnIconUrl", calendarIconUrl: "calendarIconUrl", removeIconUrl: "removeIconUrl", removeSepratorForSubFields: "removeSepratorForSubFields" }, outputs: { formUpdated: "formUpdated", formValid: "formValid", formInitialized: "formInitialized", fieldRemoved: "fieldRemoved" }, decls: 7, vars: 2, consts: [["dynamicField", ""], ["dynamicFieldErrors", ""], ["defaultInputTextNumber", ""], ["defaultInputTextarea", ""], ["defaultInputDate", ""], ["dp", ""], ["defaultBooleanToggle", ""], ["defaultSingleSelectDropdown", ""], ["defaultSingleSelectRadio", ""], ["defaultMultiSelectCheckbox", ""], ["defaultMultiSelectDropdown", ""], [3, "formGroup"], ["formArrayName", "dynamicFields"], [3, "formGroupName", 4, "ngFor", "ngForOf"], [3, "formGroupName"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["class", "sub-dynamic-form", 4, "ngIf"], [1, "sub-dynamic-form"], [4, "ngFor", "ngForOf"], [4, "ngIf"], [4, "ngIf", "ngIfElse"], [1, "dynamic-field", "multi-line-field-container", 3, "ngStyle"], [1, "h7", "field-title-sm"], [2, "flex-basis", "100%"], [1, "input-field", "ip-text", 3, "ngModelChange", "type", "formControl", "ngStyle", "placeholder", "min"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["type", "text", 1, "input-field", "ip-textarea", 3, "ngModelChange", "ngStyle", "placeholder", "formControl"], ["class", "dynamic-field single-line-field-container", 3, "ngStyle", 4, "ngIf"], [1, "dynamic-field", "single-line-field-container", 3, "ngStyle"], [1, "h6"], [1, "date-picker-container"], ["readonly", "", "misTzDp", "", 1, "date-picker", 3, "dateChange", "dpConfig", "selectedDate", "offsetY", "value"], ["alt", "data-picker", "class", "date-picker-icon", 3, "src", "click", 4, "ngIf"], ["alt", "data-picker", 1, "date-picker-icon", 3, "click", "src"], [3, "valueChanged", "control"], [3, "ngClass"], [3, "onChange", "searchEnabled", "width", "data", "selectedItem"], ["class", "remove-icon", 3, "src", "click", 4, "ngIf"], [1, "remove-icon", 3, "click", "src"], ["id", "checkboxes-container"], ["class", "radio-checkbox-common", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "radio-checkbox-common", 3, "click", "ngClass"], ["alt", "", 3, "src", 4, "ngIf"], ["alt", "", 3, "src"], [3, "onChange", "width", "showSelectedCount", "dropdownListWidth", "searchEnabled", "hideApplyButton", "data", "selectedItems"], ["id", "error-messages-container"], [1, "h8"], [3, "ngStyle"]], template: function DynamicFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
987
|
+
i0.ɵɵelementStart(0, "form", 11);
|
|
988
|
+
i0.ɵɵelementContainerStart(1, 12);
|
|
989
|
+
i0.ɵɵtemplate(2, DynamicFormComponent_ng_container_2_Template, 3, 8, "ng-container", 13);
|
|
635
990
|
i0.ɵɵelementContainerEnd();
|
|
636
991
|
i0.ɵɵelementEnd();
|
|
637
992
|
i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_Template, 8, 8, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(5, DynamicFormComponent_ng_template_5_Template, 3, 3, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
@@ -639,11 +994,11 @@ class DynamicFormComponent {
|
|
|
639
994
|
i0.ɵɵproperty("formGroup", ctx.dynamicForm);
|
|
640
995
|
i0.ɵɵadvance(2);
|
|
641
996
|
i0.ɵɵproperty("ngForOf", ctx.getDynamicFieldsControls().controls);
|
|
642
|
-
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, i2.ɵNgNoValidate, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormControlDirective, i2.FormGroupDirective, i2.FormGroupName, i2.FormArrayName, i3.DropdownComponent, i4.SwitchComponent, i5.MultiSelectDropdownComponent, i6.TzDatepickerDirective, i1.KeyValuePipe], styles: ["p[_ngcontent-%COMP%]{margin:0;cursor:default} .main-container{margin:0;max-width:100%}.sub-dynamic-form[_ngcontent-%COMP%]{padding-left:24px}.dynamic-field[_ngcontent-%COMP%] .container{height:32px!important}.single-line-field-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:28px 16px;border-bottom:1px solid var(--grey-seperators)}.multi-line-field-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:flex-start;padding:28px 16px;flex-wrap:wrap;border-bottom:1px solid var(--grey-seperators)}.field-title-sm[_ngcontent-%COMP%]{margin-bottom:8px;cursor:default}.input-field[_ngcontent-%COMP%]{width:100%;background-color:var(--grey-bg-1);border:1px solid var(--grey-seperators);border-radius:6px}.ip-text[_ngcontent-%COMP%]{height:44px;padding:8px 12px}.ip-textarea[_ngcontent-%COMP%]{max-height:94px;padding:8px}input[_ngcontent-%COMP%]:focus{outline:none}input[_ngcontent-%COMP%]::placeholder{color:var(--grey-seperators)}textarea[_ngcontent-%COMP%]:focus{outline:none}.date-picker-container[_ngcontent-%COMP%]{position:relative;width:140px}.date-picker-container[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]{cursor:pointer;height:32px;width:100%;font-size:14px;border-radius:6px;padding:0 12px;border:1px solid var(--grey-seperators);inset:10px auto auto 80px;background-color:var(--text-white)}.date-picker-container[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]:hover{background-color:var(--grey-hover)}.date-picker-container[_ngcontent-%COMP%] .date-picker-icon[_ngcontent-%COMP%]{position:absolute;top:50%;right:12px;transform:translateY(-50%);cursor:pointer}form[_ngcontent-%COMP%] .dynamic-field[_ngcontent-%COMP%]:last-child{border-bottom:none!important}#checkboxes-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}.radio-checkbox-common[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;cursor:pointer;margin-right:8px;margin-bottom:8px;background-color:var(--text-white);padding:12px 16px;border:1px solid var(--text-muted);border-radius:8px}.radio-checkbox-common[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--text-muted);cursor:pointer}.radio-checkbox-common[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:8px}.checkbox-active[_ngcontent-%COMP%]{background-color:var(--pmry-500)}.checkbox-active[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--text-white)}#error-messages-container[_ngcontent-%COMP%]{margin-top:4px;width:100%;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}#error-messages-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--sem-error)}"] }); }
|
|
997
|
+
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, i2.ɵNgNoValidate, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormControlDirective, i2.FormGroupDirective, i2.FormGroupName, i2.FormArrayName, i3.DropdownComponent, i4.SwitchComponent, i5.MultiSelectDropdownComponent, i6.TzDatepickerDirective, i1.KeyValuePipe], styles: ["p[_ngcontent-%COMP%]{margin:0;cursor:default} .main-container{margin:0;max-width:100%}.sub-dynamic-form[_ngcontent-%COMP%]{padding-left:24px;border-bottom:1px solid var(--grey-seperators)}.dynamic-field[_ngcontent-%COMP%] .container{height:32px!important}.single-line-field-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:28px 16px;border-bottom:1px solid var(--grey-seperators)}.multi-line-field-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:flex-start;padding:28px 16px;flex-wrap:wrap;border-bottom:1px solid var(--grey-seperators)}.field-title-sm[_ngcontent-%COMP%]{margin-bottom:8px;cursor:default}.input-field[_ngcontent-%COMP%]{width:100%;background-color:var(--grey-bg-1);border:1px solid var(--grey-seperators);border-radius:6px}.ip-text[_ngcontent-%COMP%]{height:44px;padding:8px 12px}.ip-textarea[_ngcontent-%COMP%]{max-height:94px;padding:8px}input[_ngcontent-%COMP%]:focus{outline:none}input[_ngcontent-%COMP%]::placeholder{color:var(--grey-seperators)}textarea[_ngcontent-%COMP%]:focus{outline:none}.date-picker-container[_ngcontent-%COMP%]{position:relative;width:140px}.date-picker-container[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]{cursor:pointer;height:32px;width:100%;font-size:14px;border-radius:6px;padding:0 12px;border:1px solid var(--grey-seperators);inset:10px auto auto 80px;background-color:var(--text-white)}.date-picker-container[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]:hover{background-color:var(--grey-hover)}.date-picker-container[_ngcontent-%COMP%] .date-picker-icon[_ngcontent-%COMP%]{position:absolute;top:50%;right:12px;transform:translateY(-50%);cursor:pointer}form[_ngcontent-%COMP%] .dynamic-field[_ngcontent-%COMP%]:last-child{border-bottom:none!important}#checkboxes-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}.radio-checkbox-common[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;cursor:pointer;margin-right:8px;margin-bottom:8px;background-color:var(--text-white);padding:12px 16px;border:1px solid var(--text-muted);border-radius:8px}.radio-checkbox-common[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--text-muted);cursor:pointer}.radio-checkbox-common[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:8px}.checkbox-active[_ngcontent-%COMP%]{background-color:var(--pmry-500)}.checkbox-active[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--text-white)}#error-messages-container[_ngcontent-%COMP%]{margin-top:4px;width:100%;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}#error-messages-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--sem-error)}.removeable-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.removeable-container[_ngcontent-%COMP%] .remove-icon[_ngcontent-%COMP%]{cursor:pointer;margin-left:8px;max-width:24px}span[_ngcontent-%COMP%]{color:var(--sem-error)}"] }); }
|
|
643
998
|
}
|
|
644
999
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DynamicFormComponent, [{
|
|
645
1000
|
type: Component,
|
|
646
|
-
args: [{ selector: "mis-dynamic-form", template: "<form [formGroup]=\"dynamicForm\">\n <ng-container formArrayName=\"dynamicFields\">\n <ng-container [formGroupName]=\"i\" *ngFor=\"let fieldControl of getDynamicFieldsControls().controls; let i = index\">\n <ng-container\n [ngTemplateOutlet]=\"dynamicField\"\n [ngTemplateOutletContext]=\"{\n $implicit: formFields[i],\n formGroup: fieldControl,\n control: fieldControl.controls.value\n }\"\n >\n </ng-container>\n <div class=\"sub-dynamic-form\" *ngIf=\"fieldControl.value && (!!formFields[i]?.subFields && formFields[i]?.subFields?.length > 0 && matchParentConfig(formFields[i]?.subFields, fieldControl.controls.value.value.value))\">\n <ng-container *ngFor=\"let subFieldControl of fieldControl.controls.subFields.controls;\">\n <ng-container\n [ngTemplateOutlet]=\"dynamicField\"\n [ngTemplateOutletContext]=\"{\n $implicit: formFields[i].subFields[findSelectedIndex(formFields[i]?.subFields, fieldControl.controls.value.value.value)],\n control: subFieldControl\n }\">\n </ng-container>\n </ng-container>\n </div>\n </ng-container>\n </ng-container>\n</form>\n\n\n<ng-template #dynamicField let-field let-control=\"control\" let-formgroup=\"formGroup\">\n\n <!-- fieldType: 'input' fieldInputType: 'text' | 'number' -->\n <div class=\"dynamic-field multi-line-field-container\"\n *ngIf=\"field.fieldType === 'input' && (field.fieldInputType === 'text' || field.fieldInputType === 'number')\">\n <p class=\"h7 field-title-sm\">\n {{ field.title }}\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <input class=\"input-field ip-text\" [type]=\"field.fieldInputType\" [formControl]=\"control\"\n (ngModelChange)=\"updateSubDynamicFields(field, formgroup, $event)\" \n [ngStyle]=\"{'border': control.touched && control.errors ? '1px solid #B00020': ''}\"\n [placeholder]=\"field.placeholderText ? field.placeholderText : 'Input Text'\" \n [min]=\"field.fieldInputType === 'number' ? 0 : '' \"/>\n <ng-container *ngIf=\"control.touched && control.errors\"\n [ngTemplateOutlet]=\"dynamicFieldErrors\" \n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\"\n >\n </ng-container>\n </div>\n\n <!-- fieldType: 'input' fieldInputType: 'textarea' -->\n <div class=\"dynamic-field multi-line-field-container\"\n *ngIf=\"field.fieldType === 'input' && field.fieldInputType === 'textarea'\">\n <p class=\"h7 field-title-sm\">\n {{ field.title }}\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <textarea class=\"input-field ip-textarea\" type=\"text\"\n [ngStyle]=\"{'border': control.touched && control.errors ? '1px solid #B00020': ''}\"\n [placeholder]=\"field.placeholderText ? field.placeholderText : 'Input Text'\" [formControl]=\"control\" (ngModelChange)=\"updateSubDynamicFields(field, formgroup, $event)\"></textarea>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'input' fieldInputType: 'date' -->\n <div class=\"dynamic-field single-line-field-container\"\n *ngIf=\"field.fieldType === 'input' && field.fieldInputType === 'date'\">\n <p class=\"h6\">\n {{ field.title }}\n </p>\n <div class=\"date-picker-container\">\n <input class=\"date-picker\" readonly misTzDp [dpConfig]=\"field.fieldConfig\"\n (dateChange)=\"control.setValue($event)\" [selectedDate]=\"control.value\" [offsetY]=\"0\"\n [value]=\"control.value\" #dp />\n <img alt=\"data-picker\" *ngIf=\"calendarIconUrl\" class=\"date-picker-icon\" [src]=\"calendarIconUrl\"\n (click)=\"dp.click()\" />\n </div>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'boolean' fieldInputType: 'toggle' -->\n <div class=\"dynamic-field single-line-field-container\"\n *ngIf=\"field.fieldType === 'boolean' && field.fieldInputType === 'toggle'\">\n <p class=\"h6\">\n {{ field.title }}\n </p>\n <mis-switch [control]=\"control\" (valueChanged)=\"updateSubDynamicFields(field, formgroup, $event)\"></mis-switch>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'singleSelect' fieldInputType: 'dropdown' -->\n <div class=\"dynamic-field single-line-field-container\"\n *ngIf=\"field.fieldType === 'singleSelect' && field.fieldInputType === 'dropdown'\">\n <p class=\"h6\">\n {{ field.title }}\n </p>\n <mis-dropdown [searchEnabled]=\"false\" [width]=\"'140px'\" [data]=\"field.itemsList\" [selectedItem]=\"control.value\"\n (onChange)=\"updateSelectedValueForSingleSelect(field, control, formgroup, $event);\">\n </mis-dropdown>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'singleSelect' fieldInputType: 'radio' -->\n <div class=\"dynamic-field multi-line-field-container\"\n *ngIf=\"field.fieldType === 'singleSelect' && field.fieldInputType === 'radio'\">\n <p class=\"h7 field-title-sm\">\n {{ field.title }}\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <div id=\"checkboxes-container\">\n <div class=\"radio-checkbox-common\" *ngFor=\"let item of field.itemsList\"\n [ngClass]=\"{ 'checkbox-active': item.label === control.value?.label }\"\n (click)=\"updateSelectedValueForSingleSelect(field, control, formgroup, item);\">\n <img *ngIf=\"(item.label === control.value?.label) && activeBtnIconUrl\" [src]=\"activeBtnIconUrl\" alt=\"\" />\n <p class=\"h6\">{{ item.label }}</p>\n </div>\n </div>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'multiSelect' fieldInputType: 'checkbox' -->\n <div class=\"dynamic-field multi-line-field-container\"\n *ngIf=\"field.fieldType === 'multiSelect' && field.fieldInputType === 'checkbox'\">\n <p class=\"h7 field-title-sm\">\n {{ field.title }}\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <div id=\"checkboxes-container\">\n <div class=\"radio-checkbox-common\" *ngFor=\"let item of field.itemsList\"\n [ngClass]=\"{ 'checkbox-active': isCheckBoxSelected(item.label, control.value) }\"\n (click)=\"updateSelectedValueForMultiSelect(field, control, formgroup, [item])\">\n <img *ngIf=\"isCheckBoxSelected(item.label, control.value) && activeBtnIconUrl\" [src]=\"activeBtnIconUrl\"\n alt=\"\" />\n <p class=\"h6\">{{ item.label }}</p>\n </div>\n </div>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'multiSelect' fieldInputType: 'dropdown' -->\n <div class=\"dynamic-field single-line-field-container\"\n *ngIf=\"field.fieldType === 'multiSelect' && field.fieldInputType === 'dropdown'\">\n <p class=\"h6\">\n {{ field.title }}\n </p>\n <mis-multi-select-dropdown [width]=\"'140px'\" [showSelectedCount]=\"true\" [dropdownListWidth]=\"'256px'\"\n [searchEnabled]=\"false\" [hideApplyButton]=\"true\" [data]=\"field.itemsList\"\n [selectedItems]=\"control.value\" (onChange)=\"updateSelectedValueForMultiSelect(field, control, formgroup, $event);\"></mis-multi-select-dropdown>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n</ng-template>\n\n<ng-template #dynamicFieldErrors let-errors>\n <div id=\"error-messages-container\">\n <ng-container *ngFor=\"let error of errors | keyvalue\">\n <p class=\"h8\">\n {{\" \u2022 \" + error.value}}\n </p>\n <div style=\"flex-basis: 100%; height: 0\"></div>\n </ng-container>\n </div>\n</ng-template>", styles: ["p{margin:0;cursor:default}::ng-deep .main-container{margin:0;max-width:100%}.sub-dynamic-form{padding-left:24px}.dynamic-field ::ng-deep .container{height:32px!important}.single-line-field-container{display:flex;justify-content:space-between;align-items:center;padding:28px 16px;border-bottom:1px solid var(--grey-seperators)}.multi-line-field-container{display:flex;justify-content:flex-start;align-items:flex-start;padding:28px 16px;flex-wrap:wrap;border-bottom:1px solid var(--grey-seperators)}.field-title-sm{margin-bottom:8px;cursor:default}.input-field{width:100%;background-color:var(--grey-bg-1);border:1px solid var(--grey-seperators);border-radius:6px}.ip-text{height:44px;padding:8px 12px}.ip-textarea{max-height:94px;padding:8px}input:focus{outline:none}input::placeholder{color:var(--grey-seperators)}textarea:focus{outline:none}.date-picker-container{position:relative;width:140px}.date-picker-container .date-picker{cursor:pointer;height:32px;width:100%;font-size:14px;border-radius:6px;padding:0 12px;border:1px solid var(--grey-seperators);inset:10px auto auto 80px;background-color:var(--text-white)}.date-picker-container .date-picker:hover{background-color:var(--grey-hover)}.date-picker-container .date-picker-icon{position:absolute;top:50%;right:12px;transform:translateY(-50%);cursor:pointer}form .dynamic-field:last-child{border-bottom:none!important}#checkboxes-container{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}.radio-checkbox-common{display:flex;justify-content:center;align-items:center;cursor:pointer;margin-right:8px;margin-bottom:8px;background-color:var(--text-white);padding:12px 16px;border:1px solid var(--text-muted);border-radius:8px}.radio-checkbox-common p{color:var(--text-muted);cursor:pointer}.radio-checkbox-common img{margin-right:8px}.checkbox-active{background-color:var(--pmry-500)}.checkbox-active p{color:var(--text-white)}#error-messages-container{margin-top:4px;width:100%;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}#error-messages-container p{color:var(--sem-error)}\n"] }]
|
|
1001
|
+
args: [{ selector: "mis-dynamic-form", template: "<form [formGroup]=\"dynamicForm\">\n <ng-container formArrayName=\"dynamicFields\">\n <ng-container [formGroupName]=\"i\" *ngFor=\"let fieldControl of getDynamicFieldsControls().controls; let i = index\">\n <ng-container\n [ngTemplateOutlet]=\"dynamicField\"\n [ngTemplateOutletContext]=\"{\n $implicit: formFields[i],\n formGroup: fieldControl,\n control: fieldControl.controls.value\n }\"\n >\n </ng-container>\n <div class=\"sub-dynamic-form\" *ngIf=\"fieldControl.value && (!!formFields[i]?.subFields && formFields[i]?.subFields?.length > 0 && matchParentConfig(formFields[i]?.subFields, fieldControl.controls.value.value.value))\">\n <ng-container *ngFor=\"let subFieldControl of fieldControl.controls.subFields.controls; let j = index\">\n <ng-container\n [ngTemplateOutlet]=\"dynamicField\"\n [ngTemplateOutletContext]=\"{\n $implicit: findSelectedSubFieldConfig(formFields[i]?.subFields, fieldControl.controls.value.value.value,j),\n control: subFieldControl\n }\">\n </ng-container>\n </ng-container>\n </div>\n </ng-container>\n </ng-container>\n</form>\n\n\n<ng-template #dynamicField let-field let-control=\"control\" let-formgroup=\"formGroup\">\n\n <!-- fieldType: 'input' fieldInputType: 'text' | 'number' -->\n <ng-container *ngIf=\"field.fieldType === 'input' && (field.fieldInputType === 'text' || field.fieldInputType === 'number')\">\n <ng-container *ngIf=\"customInputTextNumber; else defaultInputTextNumber\">\n <ng-template\n [ngTemplateOutlet]=\"customInputTextNumber\"\n [ngTemplateOutletContext]=\"{ field: field, control: control, formgroup: formgroup }\"\n ></ng-template>\n </ng-container>\n <ng-template #defaultInputTextNumber>\n <div class=\"dynamic-field multi-line-field-container\"\n [ngStyle]=\"{'border-bottom': (formgroup?.controls?.subFields?.controls?.length && removeSepratorForSubFields) ? 'none':''}\">\n <p class=\"h7 field-title-sm\">\n {{ field?.title }} <span *ngIf=\"field.validators && field.validators.length > 0\"> *</span>\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <input class=\"input-field ip-text\" [type]=\"field.fieldInputType\" [formControl]=\"control\"\n (ngModelChange)=\"updateSubDynamicFields(field, formgroup, $event)\" \n [ngStyle]=\"{'border': control.touched && control.errors ? '1px solid #B00020': ''}\"\n [placeholder]=\"field.placeholderText ? field.placeholderText : 'Input Text'\" \n [min]=\"field.fieldInputType === 'number' ? 0 : '' \"/>\n <ng-container *ngIf=\"control.touched && control.errors\"\n [ngTemplateOutlet]=\"dynamicFieldErrors\" \n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\"\n >\n </ng-container>\n </div>\n </ng-template>\n </ng-container>\n \n <!-- fieldType: 'input' fieldInputType: 'textarea' -->\n <ng-container *ngIf=\"field.fieldType === 'input' && field.fieldInputType === 'textarea'\">\n <ng-container *ngIf=\"customInputTextarea; else defaultInputTextarea\">\n <ng-template\n [ngTemplateOutlet]=\"customInputTextarea\"\n [ngTemplateOutletContext]=\"{ field: field, control: control, formgroup: formgroup }\"\n ></ng-template>\n </ng-container>\n <ng-template #defaultInputTextarea>\n <div class=\"dynamic-field multi-line-field-container\"\n [ngStyle]=\"{'border-bottom': (formgroup?.controls?.subFields?.controls?.length && removeSepratorForSubFields) ? 'none':''}\">\n <p class=\"h7 field-title-sm\">\n {{ field.title }}<span *ngIf=\"field.validators && field.validators.length > 0\"> *</span>\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <textarea class=\"input-field ip-textarea\" type=\"text\"\n [ngStyle]=\"{'border': control.touched && control.errors ? '1px solid #B00020': ''}\"\n [placeholder]=\"field.placeholderText ? field.placeholderText : 'Input Text'\" [formControl]=\"control\" (ngModelChange)=\"updateSubDynamicFields(field, formgroup, $event)\"></textarea>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n </ng-template>\n </ng-container>\n \n <!-- fieldType: 'input' fieldInputType: 'date' -->\n <ng-container *ngIf=\"field.fieldType === 'input' && field.fieldInputType === 'date'\">\n <ng-container *ngIf=\"customInputDate; else defaultInputDate\">\n <ng-template\n [ngTemplateOutlet]=\"customInputDate\"\n [ngTemplateOutletContext]=\"{ field: field, control: control, formgroup: formgroup }\"\n ></ng-template>\n </ng-container>\n <ng-template #defaultInputDate>\n <div class=\"dynamic-field single-line-field-container\"\n [ngStyle]=\"{'border-bottom': (formgroup?.controls?.subFields?.controls?.length && removeSepratorForSubFields) ? 'none':''}\"\n *ngIf=\"field.fieldType === 'input' && field.fieldInputType === 'date'\">\n <p class=\"h6\">\n {{ field.title }} <span *ngIf=\"field.validators && field.validators.length > 0\"> *</span>\n </p>\n <div class=\"date-picker-container\">\n <input class=\"date-picker\" readonly misTzDp [dpConfig]=\"field.fieldConfig\"\n (dateChange)=\"control.setValue($event)\" [selectedDate]=\"control.value\" [offsetY]=\"0\"\n [value]=\"control.value\" #dp />\n <img alt=\"data-picker\" *ngIf=\"calendarIconUrl\" class=\"date-picker-icon\" [src]=\"calendarIconUrl\"\n (click)=\"dp.click()\" />\n </div>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n </ng-template>\n </ng-container>\n\n <!-- fieldType: 'boolean' fieldInputType: 'toggle' -->\n <ng-container *ngIf=\"field.fieldType === 'boolean' && field.fieldInputType === 'toggle'\">\n <ng-container *ngIf=\"customBooleanToggle; else defaultBooleanToggle\">\n <ng-template\n [ngTemplateOutlet]=\"customBooleanToggle\"\n [ngTemplateOutletContext]=\"{ field: field, control: control, formgroup: formgroup }\"\n ></ng-template>\n </ng-container>\n <ng-template #defaultBooleanToggle>\n <div class=\"dynamic-field single-line-field-container\"\n [ngStyle]=\"{'border-bottom': (formgroup?.controls?.subFields?.controls?.length && removeSepratorForSubFields) ? 'none':''}\">\n <p class=\"h6\">\n {{ field.title }}<span *ngIf=\"field.validators && field.validators.length > 0\"> *</span>\n </p>\n <mis-switch [control]=\"control\" (valueChanged)=\"updateSubDynamicFields(field, formgroup, $event)\"></mis-switch>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div> \n </ng-template>\n </ng-container>\n\n <!-- fieldType: 'singleSelect' fieldInputType: 'dropdown' -->\n <ng-container *ngIf=\"field.fieldType === 'singleSelect' && field.fieldInputType === 'dropdown'\">\n <ng-container *ngIf=\"customSingleSelectDropdown; else defaultSingleSelectDropdown\">\n <ng-template\n [ngTemplateOutlet]=\"customSingleSelectDropdown\"\n [ngTemplateOutletContext]=\"{ field: field, control: control, formgroup: formgroup }\"\n ></ng-template>\n </ng-container>\n <ng-template #defaultSingleSelectDropdown>\n <div class=\"dynamic-field single-line-field-container\"\n [ngStyle]=\"{'border-bottom': (formgroup?.controls?.subFields?.controls?.length && removeSepratorForSubFields) ? 'none':''}\">\n <p class=\"h6\">\n {{ field.title }}<span *ngIf=\"field.validators && field.validators.length > 0\"> *</span>\n </p>\n <div [ngClass]=\"{'removeable-container' : field?.isRemoveable}\">\n <mis-dropdown [searchEnabled]=\"false\" [width]=\"'140px'\" [data]=\"field.itemsList\" [selectedItem]=\"control.value\"\n (onChange)=\"updateSelectedValueForSingleSelect(field, control, formgroup, $event);\">\n </mis-dropdown>\n <img *ngIf=\"field.isRemoveable && removeIconUrl\" class=\"remove-icon\" [src]=\"removeIconUrl\" (click)=\"fieldRemoved.emit(field)\">\n </div>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n </ng-template>\n </ng-container >\n \n\n <!-- fieldType: 'singleSelect' fieldInputType: 'radio' -->\n <ng-container *ngIf=\"field.fieldType === 'singleSelect' && field.fieldInputType === 'radio'\">\n <ng-container *ngIf=\"customSingleSelectRadio; else defaultSingleSelectRadio\">\n <ng-template\n [ngTemplateOutlet]=\"customSingleSelectRadio\"\n [ngTemplateOutletContext]=\"{ field: field, control: control, formgroup: formgroup }\"\n ></ng-template>\n </ng-container>\n <ng-template #defaultSingleSelectRadio>\n <div class=\"dynamic-field multi-line-field-container\"\n [ngStyle]=\"{'border-bottom': (formgroup?.controls?.subFields?.controls?.length && removeSepratorForSubFields) ? 'none':''}\">\n <p class=\"h7 field-title-sm\">\n {{ field.title }}<span *ngIf=\"field.validators && field.validators.length > 0\"> *</span>\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <div id=\"checkboxes-container\">\n <div class=\"radio-checkbox-common\" *ngFor=\"let item of field.itemsList\"\n [ngClass]=\"{ 'checkbox-active': item.label === control.value?.label }\"\n (click)=\"updateSelectedValueForSingleSelect(field, control, formgroup, item);\">\n <img *ngIf=\"(item.label === control.value?.label) && activeBtnIconUrl\" [src]=\"activeBtnIconUrl\" alt=\"\" />\n <p class=\"h6\">{{ item.label }}</p>\n </div>\n </div>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n </ng-template>\n </ng-container>\n \n\n <!-- fieldType: 'multiSelect' fieldInputType: 'checkbox' -->\n <ng-container *ngIf=\"field.fieldType === 'multiSelect' && field.fieldInputType === 'checkbox'\">\n <ng-container *ngIf=\"customMultiSelectCheckbox; else defaultMultiSelectCheckbox\">\n <ng-template\n [ngTemplateOutlet]=\"customMultiSelectCheckbox\"\n [ngTemplateOutletContext]=\"{ field: field, control: control, formgroup: formgroup }\"\n ></ng-template>\n </ng-container>\n <ng-template #defaultMultiSelectCheckbox>\n <div class=\"dynamic-field multi-line-field-container\"\n [ngStyle]=\"{'border-bottom': (formgroup?.controls?.subFields?.controls?.length && removeSepratorForSubFields) ? 'none':''}\">\n <p class=\"h7 field-title-sm\">\n {{ field.title }}<span *ngIf=\"field.validators && field.validators.length > 0\"> *</span>\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <div id=\"checkboxes-container\">\n <div class=\"radio-checkbox-common\" *ngFor=\"let item of field.itemsList\"\n [ngClass]=\"{ 'checkbox-active': isCheckBoxSelected(item.label, control.value) }\"\n (click)=\"updateSelectedValueForMultiSelect(field, control, formgroup, [item])\">\n <img *ngIf=\"isCheckBoxSelected(item.label, control.value) && activeBtnIconUrl\" [src]=\"activeBtnIconUrl\"\n alt=\"\" />\n <p class=\"h6\">{{ item.label }}</p>\n </div>\n </div>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n </ng-template>\n </ng-container>\n\n\n <!-- fieldType: 'multiSelect' fieldInputType: 'dropdown' -->\n <ng-container *ngIf=\"field.fieldType === 'multiSelect' && field.fieldInputType === 'dropdown'\">\n <ng-container *ngIf=\"customMultiSelectDropdown; else defaultMultiSelectDropdown\">\n <ng-template\n [ngTemplateOutlet]=\"customMultiSelectDropdown\"\n [ngTemplateOutletContext]=\"{ field: field, control: control, formgroup: formgroup }\"\n ></ng-template>\n </ng-container>\n <ng-template #defaultMultiSelectDropdown>\n <div class=\"dynamic-field single-line-field-container\"\n [ngStyle]=\"{'border-bottom': (formgroup?.controls?.subFields?.controls?.length && removeSepratorForSubFields) ? 'none':''}\">\n <p class=\"h6\">\n {{ field.title }}<span *ngIf=\"field.validators && field.validators.length > 0\"> *</span>\n </p>\n <mis-multi-select-dropdown [width]=\"'140px'\" [showSelectedCount]=\"true\" [dropdownListWidth]=\"'256px'\"\n [searchEnabled]=\"false\" [hideApplyButton]=\"true\" [data]=\"field.itemsList\"\n [selectedItems]=\"control.value\" (onChange)=\"updateSelectedValueForMultiSelect(field, control, formgroup, $event);\"></mis-multi-select-dropdown>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n </ng-template>\n </ng-container>\n\n</ng-template>\n\n<ng-template #dynamicFieldErrors let-errors>\n <div id=\"error-messages-container\">\n <ng-container *ngFor=\"let error of errors | keyvalue\">\n <p class=\"h8\">\n {{\" \u2022 \" + error.value}}\n </p>\n <div [ngStyle]=\"{ 'flex-basis': '100%', 'height': '0' }\"></div>\n </ng-container>\n </div>\n</ng-template>", styles: ["p{margin:0;cursor:default}::ng-deep .main-container{margin:0;max-width:100%}.sub-dynamic-form{padding-left:24px;border-bottom:1px solid var(--grey-seperators)}.dynamic-field ::ng-deep .container{height:32px!important}.single-line-field-container{display:flex;justify-content:space-between;align-items:center;padding:28px 16px;border-bottom:1px solid var(--grey-seperators)}.multi-line-field-container{display:flex;justify-content:flex-start;align-items:flex-start;padding:28px 16px;flex-wrap:wrap;border-bottom:1px solid var(--grey-seperators)}.field-title-sm{margin-bottom:8px;cursor:default}.input-field{width:100%;background-color:var(--grey-bg-1);border:1px solid var(--grey-seperators);border-radius:6px}.ip-text{height:44px;padding:8px 12px}.ip-textarea{max-height:94px;padding:8px}input:focus{outline:none}input::placeholder{color:var(--grey-seperators)}textarea:focus{outline:none}.date-picker-container{position:relative;width:140px}.date-picker-container .date-picker{cursor:pointer;height:32px;width:100%;font-size:14px;border-radius:6px;padding:0 12px;border:1px solid var(--grey-seperators);inset:10px auto auto 80px;background-color:var(--text-white)}.date-picker-container .date-picker:hover{background-color:var(--grey-hover)}.date-picker-container .date-picker-icon{position:absolute;top:50%;right:12px;transform:translateY(-50%);cursor:pointer}form .dynamic-field:last-child{border-bottom:none!important}#checkboxes-container{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}.radio-checkbox-common{display:flex;justify-content:center;align-items:center;cursor:pointer;margin-right:8px;margin-bottom:8px;background-color:var(--text-white);padding:12px 16px;border:1px solid var(--text-muted);border-radius:8px}.radio-checkbox-common p{color:var(--text-muted);cursor:pointer}.radio-checkbox-common img{margin-right:8px}.checkbox-active{background-color:var(--pmry-500)}.checkbox-active p{color:var(--text-white)}#error-messages-container{margin-top:4px;width:100%;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}#error-messages-container p{color:var(--sem-error)}.removeable-container{display:flex;justify-content:center;align-items:center}.removeable-container .remove-icon{cursor:pointer;margin-left:8px;max-width:24px}span{color:var(--sem-error)}\n"] }]
|
|
647
1002
|
}], () => [], { formFields: [{
|
|
648
1003
|
type: Input
|
|
649
1004
|
}], formValues: [{
|
|
@@ -652,12 +1007,42 @@ class DynamicFormComponent {
|
|
|
652
1007
|
type: Input
|
|
653
1008
|
}], calendarIconUrl: [{
|
|
654
1009
|
type: Input
|
|
1010
|
+
}], removeIconUrl: [{
|
|
1011
|
+
type: Input
|
|
1012
|
+
}], removeSepratorForSubFields: [{
|
|
1013
|
+
type: Input
|
|
655
1014
|
}], formUpdated: [{
|
|
656
1015
|
type: Output
|
|
657
1016
|
}], formValid: [{
|
|
658
1017
|
type: Output
|
|
659
1018
|
}], formInitialized: [{
|
|
660
1019
|
type: Output
|
|
1020
|
+
}], fieldRemoved: [{
|
|
1021
|
+
type: Output
|
|
1022
|
+
}], customInputTextNumber: [{
|
|
1023
|
+
type: ContentChild,
|
|
1024
|
+
args: ["customInputTextNumber", { static: false }]
|
|
1025
|
+
}], customInputTextarea: [{
|
|
1026
|
+
type: ContentChild,
|
|
1027
|
+
args: ["customInputTextarea", { static: false }]
|
|
1028
|
+
}], customInputDate: [{
|
|
1029
|
+
type: ContentChild,
|
|
1030
|
+
args: ["customInputDate", { static: false }]
|
|
1031
|
+
}], customBooleanToggle: [{
|
|
1032
|
+
type: ContentChild,
|
|
1033
|
+
args: ["customBooleanToggle", { static: false }]
|
|
1034
|
+
}], customSingleSelectDropdown: [{
|
|
1035
|
+
type: ContentChild,
|
|
1036
|
+
args: ["customSingleSelectDropdown", { static: false }]
|
|
1037
|
+
}], customSingleSelectRadio: [{
|
|
1038
|
+
type: ContentChild,
|
|
1039
|
+
args: ["customSingleSelectRadio", { static: false }]
|
|
1040
|
+
}], customMultiSelectCheckbox: [{
|
|
1041
|
+
type: ContentChild,
|
|
1042
|
+
args: ["customMultiSelectCheckbox", { static: false }]
|
|
1043
|
+
}], customMultiSelectDropdown: [{
|
|
1044
|
+
type: ContentChild,
|
|
1045
|
+
args: ["customMultiSelectDropdown", { static: false }]
|
|
661
1046
|
}] }); })();
|
|
662
1047
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DynamicFormComponent, { className: "DynamicFormComponent" }); })();
|
|
663
1048
|
const dynamicFieldValidator = (validators) => {
|
|
@@ -676,6 +1061,9 @@ const dynamicFieldValidator = (validators) => {
|
|
|
676
1061
|
switch (validator.type) {
|
|
677
1062
|
case "Required":
|
|
678
1063
|
error = Validators.required(control);
|
|
1064
|
+
if (!error && typeof value === 'string' && value.trim() === '') {
|
|
1065
|
+
error = { Required: message };
|
|
1066
|
+
}
|
|
679
1067
|
if (error)
|
|
680
1068
|
error = { Required: message };
|
|
681
1069
|
break;
|