mis-crystal-design-system 17.0.0 → 17.0.1

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