mis-crystal-design-system 18.0.5 → 18.0.6

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 (526) hide show
  1. package/action-list/action-list.component.d.ts +1 -1
  2. package/analytics/analytics.service.d.ts +1 -1
  3. package/async-search-dropdown/async-dropdown.component.d.ts +3 -2
  4. package/button/button.component.d.ts +1 -1
  5. package/button/button.directive.d.ts +1 -1
  6. package/checkbox/checkbox.component.d.ts +1 -1
  7. package/chip/chip.component.d.ts +1 -1
  8. package/datepicker_v2/models/dp-config.model.d.ts +1 -1
  9. package/datepicker_v2/tz-datepicker.directive.d.ts +1 -1
  10. package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +1 -1
  11. package/daterangepicker_v2/models/drp-config.model.d.ts +1 -1
  12. package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +1 -1
  13. package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +1 -1
  14. package/drawer/drawer-body/drawer-body.component.d.ts +1 -1
  15. package/dropdown/calculate-container-height.directive.d.ts +1 -1
  16. package/dropdown/dropdown.component.d.ts +1 -1
  17. package/dynamic-form/dynamic-form.component.d.ts +1 -1
  18. package/esm2022/action-list/action-list.component.mjs +363 -0
  19. package/{esm2020 → esm2022}/action-list/action-list.module.mjs +5 -5
  20. package/{esm2020 → esm2022}/analytics/analytics.module.mjs +5 -5
  21. package/esm2022/analytics/analytics.service.mjs +64 -0
  22. package/esm2022/async-search-dropdown/async-dropdown.component.mjs +536 -0
  23. package/{esm2020 → esm2022}/async-search-dropdown/async-dropdown.module.mjs +5 -5
  24. package/esm2022/button/button.component.mjs +88 -0
  25. package/esm2022/button/button.directive.mjs +61 -0
  26. package/{esm2020 → esm2022}/button/button.module.mjs +5 -5
  27. package/esm2022/checkbox/checkbox.component.mjs +124 -0
  28. package/{esm2020 → esm2022}/checkbox/checkbox.module.mjs +5 -5
  29. package/esm2022/chip/chip.component.mjs +82 -0
  30. package/{esm2020 → esm2022}/chip/chip.module.mjs +5 -5
  31. package/{esm2020 → esm2022}/datepicker_v2/datepicker.module.mjs +5 -5
  32. package/esm2022/datepicker_v2/tz-datepicker.directive.mjs +183 -0
  33. package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +442 -0
  34. package/{esm2020/daterangepicker_v2 → esm2022/datepicker_v2}/utils/index.mjs +1 -1
  35. package/{esm2020 → esm2022}/daterangepicker_v2/daterangepicker.module.mjs +5 -5
  36. package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +165 -0
  37. package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +503 -0
  38. package/esm2022/daterangepicker_v2/utils/index.mjs +45 -0
  39. package/esm2022/drawer/drawer-body/drawer-body.component.mjs +59 -0
  40. package/{esm2020 → esm2022}/drawer/drawer-ref.mjs +4 -4
  41. package/{esm2020 → esm2022}/drawer/drawer.module.mjs +5 -5
  42. package/{esm2020 → esm2022}/drawer/drawer.service.mjs +5 -5
  43. package/esm2022/dropdown/calculate-container-height.directive.mjs +41 -0
  44. package/esm2022/dropdown/dropdown.component.mjs +464 -0
  45. package/{esm2020 → esm2022}/dropdown/dropdown.module.mjs +5 -5
  46. package/esm2022/dynamic-form/dynamic-form.component.mjs +1093 -0
  47. package/{esm2020 → esm2022}/dynamic-form/dynamic-form.module.mjs +13 -13
  48. package/esm2022/fab/fab.component.mjs +145 -0
  49. package/{esm2020 → esm2022}/fab/fab.module.mjs +5 -5
  50. package/esm2022/filter/filter-panel/filter-panel.component.mjs +396 -0
  51. package/{esm2020 → esm2022}/filter/filters.module.mjs +17 -17
  52. package/esm2022/filter/has-value.pipe.mjs +31 -0
  53. package/{esm2020 → esm2022}/input/directives/input/input.directive.mjs +6 -6
  54. package/{fesm2020/mis-crystal-design-system-input.mjs → esm2022/input/mis-input.component.mjs} +49 -109
  55. package/{esm2020 → esm2022}/input/mis-input.module.mjs +5 -5
  56. package/esm2022/input-stepper/input-stepper/input-stepper.component.mjs +89 -0
  57. package/{esm2020 → esm2022}/input-stepper/input-stepper.module.mjs +5 -5
  58. package/esm2022/loader/loader.component.mjs +25 -0
  59. package/{esm2020 → esm2022}/loader/loader.module.mjs +5 -5
  60. package/esm2022/menu/menu-close.directive.mjs +25 -0
  61. package/{esm2020 → esm2022}/menu/menu.directive.mjs +7 -7
  62. package/{esm2020 → esm2022}/menu/menu.module.mjs +5 -5
  63. package/esm2022/mobile-filter/mobile-filter.component.mjs +180 -0
  64. package/{esm2020 → esm2022}/mobile-filter/mobile-filter.module.mjs +5 -5
  65. package/{esm2020 → esm2022}/modal/modal.module.mjs +5 -5
  66. package/esm2022/modal/modal.service.mjs +70 -0
  67. package/esm2022/modal/module-wrapper/module-wrapper.component.mjs +56 -0
  68. package/esm2022/multi-select-dropdown/multi-select-dropdown.component.mjs +489 -0
  69. package/{esm2020 → esm2022}/multi-select-dropdown/multi-select-dropdown.module.mjs +5 -5
  70. package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +516 -0
  71. package/{esm2020 → esm2022}/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +5 -5
  72. package/esm2022/phone-input/phone-input.component.mjs +72 -0
  73. package/{esm2020 → esm2022}/phone-input/phone-input.module.mjs +5 -5
  74. package/esm2022/radio-button/radio-button.component.mjs +57 -0
  75. package/{esm2020 → esm2022}/radio-button/radio-button.module.mjs +5 -5
  76. package/esm2022/ske-loader/ske-loader.component.mjs +54 -0
  77. package/{esm2020 → esm2022}/ske-loader/ske-loader.module.mjs +5 -5
  78. package/esm2022/slider/slider.component.mjs +46 -0
  79. package/{esm2020 → esm2022}/slider/slider.module.mjs +7 -7
  80. package/esm2022/snackbar/snackbar/snackbar.component.mjs +72 -0
  81. package/{esm2020 → esm2022}/snackbar/snackbar.module.mjs +5 -5
  82. package/esm2022/snackbar/snackbar.service.mjs +47 -0
  83. package/{esm2020 → esm2022}/specificdatepicker/specificdatepicker.module.mjs +5 -5
  84. package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +646 -0
  85. package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +196 -0
  86. package/esm2022/specificdatepicker/utils/index.mjs +45 -0
  87. package/esm2022/star-rating/star-rating.component.mjs +113 -0
  88. package/{esm2020 → esm2022}/star-rating/star-rating.module.mjs +5 -5
  89. package/esm2022/switch/switch.component.mjs +56 -0
  90. package/{esm2020 → esm2022}/switch/switch.module.mjs +5 -5
  91. package/esm2022/table/custom-table-cell.directive.mjs +42 -0
  92. package/esm2022/table/filter/filter.component.mjs +177 -0
  93. package/esm2022/table/sub-table/sub-table.component.mjs +192 -0
  94. package/esm2022/table/table.component.mjs +485 -0
  95. package/{esm2020 → esm2022}/table/table.module.mjs +5 -5
  96. package/esm2022/timepicker/timepicker.component.mjs +374 -0
  97. package/esm2022/timepicker/timepicker.directive.mjs +69 -0
  98. package/{esm2020 → esm2022}/timepicker/timepicker.module.mjs +5 -5
  99. package/esm2022/timerangepicker/timerangepicker.component.mjs +237 -0
  100. package/{esm2020 → esm2022}/timerangepicker/timerangepicker.module.mjs +5 -5
  101. package/esm2022/toast/toast.component.mjs +51 -0
  102. package/{esm2020 → esm2022}/toast/toast.data.service.mjs +8 -8
  103. package/{esm2020 → esm2022}/toast/toast.module.mjs +5 -5
  104. package/esm2022/toast/toast.service.mjs +91 -0
  105. package/esm2022/tooltip/tooltip-container/tooltip.component.mjs +79 -0
  106. package/esm2022/tooltip/tooltip.directive.mjs +143 -0
  107. package/{esm2020 → esm2022}/tooltip/tooltip.module.mjs +5 -5
  108. package/esm2022/virtual-scroll/virtual-scroll.component.mjs +188 -0
  109. package/{esm2020 → esm2022}/virtual-scroll/virtual-scroll.module.mjs +7 -7
  110. package/esm2022/widgets/classes/async-widget.mjs +23 -0
  111. package/{esm2020 → esm2022}/widgets/classes/base-widget.mjs +1 -1
  112. package/esm2022/widgets/classes/sync-widget.mjs +20 -0
  113. package/{esm2020 → esm2022}/widgets/services/widget.service.mjs +5 -5
  114. package/{esm2020 → esm2022}/widgets/widgets.module.mjs +5 -5
  115. package/fab/fab.component.d.ts +4 -4
  116. package/{fesm2020 → fesm2022}/mis-crystal-design-system-action-list.mjs +106 -113
  117. package/fesm2022/mis-crystal-design-system-action-list.mjs.map +1 -0
  118. package/{fesm2020 → fesm2022}/mis-crystal-design-system-analytics.mjs +9 -9
  119. package/{fesm2020 → fesm2022}/mis-crystal-design-system-analytics.mjs.map +1 -1
  120. package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs +561 -0
  121. package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -0
  122. package/fesm2022/mis-crystal-design-system-button.mjs +173 -0
  123. package/fesm2022/mis-crystal-design-system-button.mjs.map +1 -0
  124. package/fesm2022/mis-crystal-design-system-checkbox.mjs +150 -0
  125. package/fesm2022/mis-crystal-design-system-checkbox.mjs.map +1 -0
  126. package/fesm2022/mis-crystal-design-system-chip.mjs +108 -0
  127. package/fesm2022/mis-crystal-design-system-chip.mjs.map +1 -0
  128. package/{fesm2020 → fesm2022}/mis-crystal-design-system-datepicker_v2.mjs +133 -140
  129. package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -0
  130. package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +737 -0
  131. package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -0
  132. package/{fesm2020 → fesm2022}/mis-crystal-design-system-drawer.mjs +34 -33
  133. package/{fesm2020 → fesm2022}/mis-crystal-design-system-drawer.mjs.map +1 -1
  134. package/{fesm2020 → fesm2022}/mis-crystal-design-system-dropdown.mjs +176 -184
  135. package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -0
  136. package/{fesm2020 → fesm2022}/mis-crystal-design-system-dynamic-form.mjs +441 -456
  137. package/fesm2022/mis-crystal-design-system-dynamic-form.mjs.map +1 -0
  138. package/{fesm2020 → fesm2022}/mis-crystal-design-system-fab.mjs +48 -47
  139. package/fesm2022/mis-crystal-design-system-fab.mjs.map +1 -0
  140. package/{fesm2020 → fesm2022}/mis-crystal-design-system-filter.mjs +113 -120
  141. package/fesm2022/mis-crystal-design-system-filter.mjs.map +1 -0
  142. package/{fesm2020 → fesm2022}/mis-crystal-design-system-input-stepper.mjs +35 -34
  143. package/{fesm2020 → fesm2022}/mis-crystal-design-system-input-stepper.mjs.map +1 -1
  144. package/fesm2022/mis-crystal-design-system-input.mjs +146 -0
  145. package/{fesm2020 → fesm2022}/mis-crystal-design-system-input.mjs.map +1 -1
  146. package/fesm2022/mis-crystal-design-system-loader.mjs +51 -0
  147. package/{fesm2020 → fesm2022}/mis-crystal-design-system-loader.mjs.map +1 -1
  148. package/{fesm2020 → fesm2022}/mis-crystal-design-system-menu.mjs +16 -16
  149. package/{fesm2020 → fesm2022}/mis-crystal-design-system-menu.mjs.map +1 -1
  150. package/fesm2022/mis-crystal-design-system-mobile-filter.mjs +205 -0
  151. package/fesm2022/mis-crystal-design-system-mobile-filter.mjs.map +1 -0
  152. package/{fesm2020 → fesm2022}/mis-crystal-design-system-modal.mjs +34 -33
  153. package/{fesm2020 → fesm2022}/mis-crystal-design-system-modal.mjs.map +1 -1
  154. package/{fesm2020 → fesm2022}/mis-crystal-design-system-multi-select-dropdown.mjs +107 -109
  155. package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -0
  156. package/{fesm2020 → fesm2022}/mis-crystal-design-system-nested-multi-select-dropdown.mjs +128 -129
  157. package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -0
  158. package/{fesm2020 → fesm2022}/mis-crystal-design-system-phone-input.mjs +22 -21
  159. package/{fesm2020 → fesm2022}/mis-crystal-design-system-phone-input.mjs.map +1 -1
  160. package/fesm2022/mis-crystal-design-system-radio-button.mjs +83 -0
  161. package/{fesm2020 → fesm2022}/mis-crystal-design-system-radio-button.mjs.map +1 -1
  162. package/fesm2022/mis-crystal-design-system-ske-loader.mjs +77 -0
  163. package/fesm2022/mis-crystal-design-system-ske-loader.mjs.map +1 -0
  164. package/fesm2022/mis-crystal-design-system-slider.mjs +80 -0
  165. package/{fesm2020 → fesm2022}/mis-crystal-design-system-slider.mjs.map +1 -1
  166. package/{fesm2020 → fesm2022}/mis-crystal-design-system-snackbar.mjs +32 -32
  167. package/fesm2022/mis-crystal-design-system-snackbar.mjs.map +1 -0
  168. package/{fesm2020 → fesm2022}/mis-crystal-design-system-specificdatepicker.mjs +204 -204
  169. package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -0
  170. package/{fesm2020 → fesm2022}/mis-crystal-design-system-star-rating.mjs +29 -28
  171. package/fesm2022/mis-crystal-design-system-star-rating.mjs.map +1 -0
  172. package/fesm2022/mis-crystal-design-system-switch.mjs +82 -0
  173. package/fesm2022/mis-crystal-design-system-switch.mjs.map +1 -0
  174. package/{fesm2020 → fesm2022}/mis-crystal-design-system-table.mjs +314 -321
  175. package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -0
  176. package/{fesm2020 → fesm2022}/mis-crystal-design-system-timepicker.mjs +78 -74
  177. package/{fesm2020 → fesm2022}/mis-crystal-design-system-timepicker.mjs.map +1 -1
  178. package/{fesm2020 → fesm2022}/mis-crystal-design-system-timerangepicker.mjs +26 -25
  179. package/{fesm2020 → fesm2022}/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
  180. package/{fesm2020 → fesm2022}/mis-crystal-design-system-toast.mjs +35 -34
  181. package/{fesm2020 → fesm2022}/mis-crystal-design-system-toast.mjs.map +1 -1
  182. package/{fesm2020 → fesm2022}/mis-crystal-design-system-tooltip.mjs +47 -47
  183. package/{fesm2020 → fesm2022}/mis-crystal-design-system-tooltip.mjs.map +1 -1
  184. package/{fesm2020 → fesm2022}/mis-crystal-design-system-virtual-scroll.mjs +50 -52
  185. package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs.map +1 -0
  186. package/{fesm2020 → fesm2022}/mis-crystal-design-system-widgets.mjs +4 -4
  187. package/{fesm2020 → fesm2022}/mis-crystal-design-system-widgets.mjs.map +1 -1
  188. package/filter/filter-panel/filter-panel.component.d.ts +1 -1
  189. package/input/directives/input/input.directive.d.ts +1 -1
  190. package/input/mis-input.component.d.ts +1 -1
  191. package/input-stepper/input-stepper/input-stepper.component.d.ts +1 -1
  192. package/loader/loader.component.d.ts +1 -1
  193. package/menu/menu-close.directive.d.ts +1 -1
  194. package/menu/menu.directive.d.ts +1 -1
  195. package/mobile-filter/mobile-filter.component.d.ts +1 -1
  196. package/modal/module-wrapper/module-wrapper.component.d.ts +1 -1
  197. package/multi-select-dropdown/multi-select-dropdown.component.d.ts +1 -1
  198. package/nested-multi-select-dropdown/nested-multi-select-dropdown.component.d.ts +1 -1
  199. package/package.json +125 -207
  200. package/phone-input/phone-input.component.d.ts +1 -1
  201. package/radio-button/radio-button.component.d.ts +1 -1
  202. package/ske-loader/ske-loader.component.d.ts +1 -1
  203. package/slider/slider.component.d.ts +1 -1
  204. package/snackbar/snackbar/snackbar.component.d.ts +1 -1
  205. package/specificdatepicker/models/sdp-config.model.d.ts +1 -1
  206. package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +1 -1
  207. package/specificdatepicker/tz-specificdatepicker.directive.d.ts +1 -1
  208. package/star-rating/star-rating.component.d.ts +1 -1
  209. package/switch/switch.component.d.ts +1 -1
  210. package/table/custom-table-cell.directive.d.ts +1 -1
  211. package/table/filter/filter.component.d.ts +1 -1
  212. package/table/sub-table/sub-table.component.d.ts +1 -1
  213. package/table/table.component.d.ts +1 -1
  214. package/timepicker/timepicker.component.d.ts +1 -1
  215. package/timepicker/timepicker.directive.d.ts +1 -1
  216. package/timerangepicker/timerange.namespace.d.ts +1 -1
  217. package/timerangepicker/timerangepicker.component.d.ts +1 -1
  218. package/toast/toast.component.d.ts +1 -1
  219. package/toast/toast.service.d.ts +1 -1
  220. package/tooltip/models/tooltip.model.d.ts +1 -1
  221. package/tooltip/tooltip-container/tooltip.component.d.ts +1 -1
  222. package/tooltip/tooltip.directive.d.ts +1 -1
  223. package/virtual-scroll/virtual-scroll.component.d.ts +1 -1
  224. package/widgets/interfaces/widgets.model.d.ts +1 -1
  225. package/esm2020/action-list/action-list.component.mjs +0 -370
  226. package/esm2020/analytics/analytics.service.mjs +0 -64
  227. package/esm2020/async-search-dropdown/async-dropdown.component.mjs +0 -525
  228. package/esm2020/button/button.component.mjs +0 -87
  229. package/esm2020/button/button.directive.mjs +0 -61
  230. package/esm2020/checkbox/checkbox.component.mjs +0 -124
  231. package/esm2020/chip/chip.component.mjs +0 -82
  232. package/esm2020/datepicker_v2/tz-datepicker.directive.mjs +0 -183
  233. package/esm2020/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +0 -449
  234. package/esm2020/datepicker_v2/utils/index.mjs +0 -45
  235. package/esm2020/daterangepicker_v2/tz-daterangepicker.directive.mjs +0 -165
  236. package/esm2020/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +0 -502
  237. package/esm2020/drawer/drawer-body/drawer-body.component.mjs +0 -58
  238. package/esm2020/dropdown/calculate-container-height.directive.mjs +0 -41
  239. package/esm2020/dropdown/dropdown.component.mjs +0 -472
  240. package/esm2020/dynamic-form/dynamic-form.component.mjs +0 -1108
  241. package/esm2020/fab/fab.component.mjs +0 -144
  242. package/esm2020/filter/filter-panel/filter-panel.component.mjs +0 -403
  243. package/esm2020/filter/has-value.pipe.mjs +0 -31
  244. package/esm2020/input/mis-input.component.mjs +0 -84
  245. package/esm2020/input-stepper/input-stepper/input-stepper.component.mjs +0 -88
  246. package/esm2020/loader/loader.component.mjs +0 -24
  247. package/esm2020/menu/menu-close.directive.mjs +0 -25
  248. package/esm2020/mobile-filter/mobile-filter.component.mjs +0 -181
  249. package/esm2020/modal/modal.service.mjs +0 -70
  250. package/esm2020/modal/module-wrapper/module-wrapper.component.mjs +0 -55
  251. package/esm2020/multi-select-dropdown/multi-select-dropdown.component.mjs +0 -491
  252. package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +0 -517
  253. package/esm2020/phone-input/phone-input.component.mjs +0 -71
  254. package/esm2020/radio-button/radio-button.component.mjs +0 -56
  255. package/esm2020/ske-loader/ske-loader.component.mjs +0 -53
  256. package/esm2020/slider/slider.component.mjs +0 -45
  257. package/esm2020/snackbar/snackbar/snackbar.component.mjs +0 -72
  258. package/esm2020/snackbar/snackbar.service.mjs +0 -47
  259. package/esm2020/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +0 -646
  260. package/esm2020/specificdatepicker/tz-specificdatepicker.directive.mjs +0 -196
  261. package/esm2020/specificdatepicker/utils/index.mjs +0 -45
  262. package/esm2020/star-rating/star-rating.component.mjs +0 -112
  263. package/esm2020/switch/switch.component.mjs +0 -55
  264. package/esm2020/table/custom-table-cell.directive.mjs +0 -42
  265. package/esm2020/table/filter/filter.component.mjs +0 -176
  266. package/esm2020/table/sub-table/sub-table.component.mjs +0 -193
  267. package/esm2020/table/table.component.mjs +0 -492
  268. package/esm2020/timepicker/timepicker.component.mjs +0 -370
  269. package/esm2020/timepicker/timepicker.directive.mjs +0 -69
  270. package/esm2020/timerangepicker/timerangepicker.component.mjs +0 -236
  271. package/esm2020/toast/toast.component.mjs +0 -50
  272. package/esm2020/toast/toast.service.mjs +0 -91
  273. package/esm2020/tooltip/tooltip-container/tooltip.component.mjs +0 -79
  274. package/esm2020/tooltip/tooltip.directive.mjs +0 -143
  275. package/esm2020/virtual-scroll/virtual-scroll.component.mjs +0 -190
  276. package/esm2020/widgets/classes/async-widget.mjs +0 -23
  277. package/esm2020/widgets/classes/sync-widget.mjs +0 -20
  278. package/fesm2015/mis-crystal-design-system-action-list.mjs +0 -446
  279. package/fesm2015/mis-crystal-design-system-action-list.mjs.map +0 -1
  280. package/fesm2015/mis-crystal-design-system-analytics.mjs +0 -87
  281. package/fesm2015/mis-crystal-design-system-analytics.mjs.map +0 -1
  282. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs +0 -618
  283. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
  284. package/fesm2015/mis-crystal-design-system-button.mjs +0 -189
  285. package/fesm2015/mis-crystal-design-system-button.mjs.map +0 -1
  286. package/fesm2015/mis-crystal-design-system-checkbox.mjs +0 -166
  287. package/fesm2015/mis-crystal-design-system-checkbox.mjs.map +0 -1
  288. package/fesm2015/mis-crystal-design-system-chip.mjs +0 -123
  289. package/fesm2015/mis-crystal-design-system-chip.mjs.map +0 -1
  290. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs +0 -751
  291. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
  292. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs +0 -769
  293. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
  294. package/fesm2015/mis-crystal-design-system-drawer.mjs +0 -185
  295. package/fesm2015/mis-crystal-design-system-drawer.mjs.map +0 -1
  296. package/fesm2015/mis-crystal-design-system-dropdown.mjs +0 -616
  297. package/fesm2015/mis-crystal-design-system-dropdown.mjs.map +0 -1
  298. package/fesm2015/mis-crystal-design-system-dynamic-form.mjs +0 -1337
  299. package/fesm2015/mis-crystal-design-system-dynamic-form.mjs.map +0 -1
  300. package/fesm2015/mis-crystal-design-system-fab.mjs +0 -186
  301. package/fesm2015/mis-crystal-design-system-fab.mjs.map +0 -1
  302. package/fesm2015/mis-crystal-design-system-filter.mjs +0 -559
  303. package/fesm2015/mis-crystal-design-system-filter.mjs.map +0 -1
  304. package/fesm2015/mis-crystal-design-system-input-stepper.mjs +0 -124
  305. package/fesm2015/mis-crystal-design-system-input-stepper.mjs.map +0 -1
  306. package/fesm2015/mis-crystal-design-system-input.mjs +0 -165
  307. package/fesm2015/mis-crystal-design-system-input.mjs.map +0 -1
  308. package/fesm2015/mis-crystal-design-system-loader.mjs +0 -57
  309. package/fesm2015/mis-crystal-design-system-loader.mjs.map +0 -1
  310. package/fesm2015/mis-crystal-design-system-menu.mjs +0 -135
  311. package/fesm2015/mis-crystal-design-system-menu.mjs.map +0 -1
  312. package/fesm2015/mis-crystal-design-system-mobile-filter.mjs +0 -227
  313. package/fesm2015/mis-crystal-design-system-mobile-filter.mjs.map +0 -1
  314. package/fesm2015/mis-crystal-design-system-modal.mjs +0 -184
  315. package/fesm2015/mis-crystal-design-system-modal.mjs.map +0 -1
  316. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs +0 -550
  317. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
  318. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -559
  319. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
  320. package/fesm2015/mis-crystal-design-system-phone-input.mjs +0 -107
  321. package/fesm2015/mis-crystal-design-system-phone-input.mjs.map +0 -1
  322. package/fesm2015/mis-crystal-design-system-radio-button.mjs +0 -89
  323. package/fesm2015/mis-crystal-design-system-radio-button.mjs.map +0 -1
  324. package/fesm2015/mis-crystal-design-system-ske-loader.mjs +0 -86
  325. package/fesm2015/mis-crystal-design-system-ske-loader.mjs.map +0 -1
  326. package/fesm2015/mis-crystal-design-system-slider.mjs +0 -88
  327. package/fesm2015/mis-crystal-design-system-slider.mjs.map +0 -1
  328. package/fesm2015/mis-crystal-design-system-snackbar.mjs +0 -175
  329. package/fesm2015/mis-crystal-design-system-snackbar.mjs.map +0 -1
  330. package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs +0 -970
  331. package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs.map +0 -1
  332. package/fesm2015/mis-crystal-design-system-star-rating.mjs +0 -145
  333. package/fesm2015/mis-crystal-design-system-star-rating.mjs.map +0 -1
  334. package/fesm2015/mis-crystal-design-system-switch.mjs +0 -88
  335. package/fesm2015/mis-crystal-design-system-switch.mjs.map +0 -1
  336. package/fesm2015/mis-crystal-design-system-table.mjs +0 -1045
  337. package/fesm2015/mis-crystal-design-system-table.mjs.map +0 -1
  338. package/fesm2015/mis-crystal-design-system-timepicker.mjs +0 -484
  339. package/fesm2015/mis-crystal-design-system-timepicker.mjs.map +0 -1
  340. package/fesm2015/mis-crystal-design-system-timerangepicker.mjs +0 -273
  341. package/fesm2015/mis-crystal-design-system-timerangepicker.mjs.map +0 -1
  342. package/fesm2015/mis-crystal-design-system-toast.mjs +0 -214
  343. package/fesm2015/mis-crystal-design-system-toast.mjs.map +0 -1
  344. package/fesm2015/mis-crystal-design-system-tooltip.mjs +0 -272
  345. package/fesm2015/mis-crystal-design-system-tooltip.mjs.map +0 -1
  346. package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs +0 -259
  347. package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs.map +0 -1
  348. package/fesm2015/mis-crystal-design-system-widgets.mjs +0 -131
  349. package/fesm2015/mis-crystal-design-system-widgets.mjs.map +0 -1
  350. package/fesm2020/mis-crystal-design-system-action-list.mjs.map +0 -1
  351. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs +0 -550
  352. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
  353. package/fesm2020/mis-crystal-design-system-button.mjs +0 -172
  354. package/fesm2020/mis-crystal-design-system-button.mjs.map +0 -1
  355. package/fesm2020/mis-crystal-design-system-checkbox.mjs +0 -150
  356. package/fesm2020/mis-crystal-design-system-checkbox.mjs.map +0 -1
  357. package/fesm2020/mis-crystal-design-system-chip.mjs +0 -108
  358. package/fesm2020/mis-crystal-design-system-chip.mjs.map +0 -1
  359. package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
  360. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs +0 -736
  361. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
  362. package/fesm2020/mis-crystal-design-system-dropdown.mjs.map +0 -1
  363. package/fesm2020/mis-crystal-design-system-dynamic-form.mjs.map +0 -1
  364. package/fesm2020/mis-crystal-design-system-fab.mjs.map +0 -1
  365. package/fesm2020/mis-crystal-design-system-filter.mjs.map +0 -1
  366. package/fesm2020/mis-crystal-design-system-loader.mjs +0 -50
  367. package/fesm2020/mis-crystal-design-system-mobile-filter.mjs +0 -206
  368. package/fesm2020/mis-crystal-design-system-mobile-filter.mjs.map +0 -1
  369. package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
  370. package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
  371. package/fesm2020/mis-crystal-design-system-radio-button.mjs +0 -82
  372. package/fesm2020/mis-crystal-design-system-ske-loader.mjs +0 -76
  373. package/fesm2020/mis-crystal-design-system-ske-loader.mjs.map +0 -1
  374. package/fesm2020/mis-crystal-design-system-slider.mjs +0 -79
  375. package/fesm2020/mis-crystal-design-system-snackbar.mjs.map +0 -1
  376. package/fesm2020/mis-crystal-design-system-specificdatepicker.mjs.map +0 -1
  377. package/fesm2020/mis-crystal-design-system-star-rating.mjs.map +0 -1
  378. package/fesm2020/mis-crystal-design-system-styles.mjs +0 -4
  379. package/fesm2020/mis-crystal-design-system-styles.mjs.map +0 -1
  380. package/fesm2020/mis-crystal-design-system-switch.mjs +0 -81
  381. package/fesm2020/mis-crystal-design-system-switch.mjs.map +0 -1
  382. package/fesm2020/mis-crystal-design-system-table.mjs.map +0 -1
  383. package/fesm2020/mis-crystal-design-system-utils.mjs +0 -24
  384. package/fesm2020/mis-crystal-design-system-utils.mjs.map +0 -1
  385. package/fesm2020/mis-crystal-design-system-virtual-scroll.mjs.map +0 -1
  386. package/fesm2020/mis-crystal-design-system.mjs +0 -24
  387. package/fesm2020/mis-crystal-design-system.mjs.map +0 -1
  388. /package/{esm2020 → esm2022}/action-list/index.mjs +0 -0
  389. /package/{esm2020 → esm2022}/action-list/mis-crystal-design-system-action-list.mjs +0 -0
  390. /package/{esm2020 → esm2022}/action-list/public_api.mjs +0 -0
  391. /package/{esm2020 → esm2022}/analytics/index.mjs +0 -0
  392. /package/{esm2020 → esm2022}/analytics/mis-crystal-design-system-analytics.mjs +0 -0
  393. /package/{esm2020 → esm2022}/analytics/public_api.mjs +0 -0
  394. /package/{esm2020 → esm2022}/async-search-dropdown/index.mjs +0 -0
  395. /package/{esm2020 → esm2022}/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.mjs +0 -0
  396. /package/{esm2020 → esm2022}/async-search-dropdown/public_api.mjs +0 -0
  397. /package/{esm2020 → esm2022}/button/index.mjs +0 -0
  398. /package/{esm2020 → esm2022}/button/mis-crystal-design-system-button.mjs +0 -0
  399. /package/{esm2020 → esm2022}/button/public_api.mjs +0 -0
  400. /package/{esm2020 → esm2022}/checkbox/index.mjs +0 -0
  401. /package/{esm2020 → esm2022}/checkbox/mis-crystal-design-system-checkbox.mjs +0 -0
  402. /package/{esm2020 → esm2022}/checkbox/public_api.mjs +0 -0
  403. /package/{esm2020 → esm2022}/chip/index.mjs +0 -0
  404. /package/{esm2020 → esm2022}/chip/mis-crystal-design-system-chip.mjs +0 -0
  405. /package/{esm2020 → esm2022}/chip/public_api.mjs +0 -0
  406. /package/{esm2020 → esm2022}/datepicker_v2/datepicker-constants.mjs +0 -0
  407. /package/{esm2020 → esm2022}/datepicker_v2/index.mjs +0 -0
  408. /package/{esm2020 → esm2022}/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs +0 -0
  409. /package/{esm2020 → esm2022}/datepicker_v2/models/dp-config.model.mjs +0 -0
  410. /package/{esm2020 → esm2022}/datepicker_v2/public_api.mjs +0 -0
  411. /package/{esm2020 → esm2022}/daterangepicker_v2/daterangepicker-constants.mjs +0 -0
  412. /package/{esm2020 → esm2022}/daterangepicker_v2/index.mjs +0 -0
  413. /package/{esm2020 → esm2022}/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.mjs +0 -0
  414. /package/{esm2020 → esm2022}/daterangepicker_v2/models/drp-config.model.mjs +0 -0
  415. /package/{esm2020 → esm2022}/daterangepicker_v2/public_api.mjs +0 -0
  416. /package/{esm2020 → esm2022}/drawer/drawer-constants.mjs +0 -0
  417. /package/{esm2020 → esm2022}/drawer/index.mjs +0 -0
  418. /package/{esm2020 → esm2022}/drawer/mis-crystal-design-system-drawer.mjs +0 -0
  419. /package/{esm2020 → esm2022}/drawer/public_api.mjs +0 -0
  420. /package/{esm2020 → esm2022}/dropdown/index.mjs +0 -0
  421. /package/{esm2020 → esm2022}/dropdown/mis-crystal-design-system-dropdown.mjs +0 -0
  422. /package/{esm2020 → esm2022}/dropdown/public_api.mjs +0 -0
  423. /package/{esm2020 → esm2022}/dynamic-form/dynamic-form.namespace.mjs +0 -0
  424. /package/{esm2020 → esm2022}/dynamic-form/index.mjs +0 -0
  425. /package/{esm2020 → esm2022}/dynamic-form/mis-crystal-design-system-dynamic-form.mjs +0 -0
  426. /package/{esm2020 → esm2022}/dynamic-form/public_api.mjs +0 -0
  427. /package/{esm2020 → esm2022}/fab/index.mjs +0 -0
  428. /package/{esm2020 → esm2022}/fab/mis-crystal-design-system-fab.mjs +0 -0
  429. /package/{esm2020 → esm2022}/fab/public_api.mjs +0 -0
  430. /package/{esm2020 → esm2022}/filter/animations/slideFromRight.mjs +0 -0
  431. /package/{esm2020 → esm2022}/filter/index.mjs +0 -0
  432. /package/{esm2020 → esm2022}/filter/mis-crystal-design-system-filter.mjs +0 -0
  433. /package/{esm2020 → esm2022}/filter/public_api.mjs +0 -0
  434. /package/{esm2020 → esm2022}/index.mjs +0 -0
  435. /package/{esm2020 → esm2022}/input/index.mjs +0 -0
  436. /package/{esm2020 → esm2022}/input/mis-crystal-design-system-input.mjs +0 -0
  437. /package/{esm2020 → esm2022}/input/public_api.mjs +0 -0
  438. /package/{esm2020 → esm2022}/input-stepper/index.mjs +0 -0
  439. /package/{esm2020 → esm2022}/input-stepper/mis-crystal-design-system-input-stepper.mjs +0 -0
  440. /package/{esm2020 → esm2022}/input-stepper/public_api.mjs +0 -0
  441. /package/{esm2020 → esm2022}/loader/index.mjs +0 -0
  442. /package/{esm2020 → esm2022}/loader/mis-crystal-design-system-loader.mjs +0 -0
  443. /package/{esm2020 → esm2022}/loader/public_api.mjs +0 -0
  444. /package/{esm2020 → esm2022}/menu/index.mjs +0 -0
  445. /package/{esm2020 → esm2022}/menu/mis-crystal-design-system-menu.mjs +0 -0
  446. /package/{esm2020 → esm2022}/menu/public_api.mjs +0 -0
  447. /package/{esm2020 → esm2022}/mis-crystal-design-system.mjs +0 -0
  448. /package/{esm2020 → esm2022}/mobile-filter/index.mjs +0 -0
  449. /package/{esm2020 → esm2022}/mobile-filter/mis-crystal-design-system-mobile-filter.mjs +0 -0
  450. /package/{esm2020 → esm2022}/mobile-filter/public_api.mjs +0 -0
  451. /package/{esm2020 → esm2022}/modal/index.mjs +0 -0
  452. /package/{esm2020 → esm2022}/modal/mis-crystal-design-system-modal.mjs +0 -0
  453. /package/{esm2020 → esm2022}/modal/modal-constants.mjs +0 -0
  454. /package/{esm2020 → esm2022}/modal/modal-ref.mjs +0 -0
  455. /package/{esm2020 → esm2022}/modal/public_api.mjs +0 -0
  456. /package/{esm2020 → esm2022}/multi-select-dropdown/index.mjs +0 -0
  457. /package/{esm2020 → esm2022}/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.mjs +0 -0
  458. /package/{esm2020 → esm2022}/multi-select-dropdown/public_api.mjs +0 -0
  459. /package/{esm2020 → esm2022}/nested-multi-select-dropdown/index.mjs +0 -0
  460. /package/{esm2020 → esm2022}/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -0
  461. /package/{esm2020 → esm2022}/nested-multi-select-dropdown/public_api.mjs +0 -0
  462. /package/{esm2020 → esm2022}/phone-input/index.mjs +0 -0
  463. /package/{esm2020 → esm2022}/phone-input/mis-crystal-design-system-phone-input.mjs +0 -0
  464. /package/{esm2020 → esm2022}/phone-input/public_api.mjs +0 -0
  465. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  466. /package/{esm2020 → esm2022}/radio-button/index.mjs +0 -0
  467. /package/{esm2020 → esm2022}/radio-button/mis-crystal-design-system-radio-button.mjs +0 -0
  468. /package/{esm2020 → esm2022}/radio-button/public_api.mjs +0 -0
  469. /package/{esm2020 → esm2022}/ske-loader/index.mjs +0 -0
  470. /package/{esm2020 → esm2022}/ske-loader/mis-crystal-design-system-ske-loader.mjs +0 -0
  471. /package/{esm2020 → esm2022}/ske-loader/public_api.mjs +0 -0
  472. /package/{esm2020 → esm2022}/slider/index.mjs +0 -0
  473. /package/{esm2020 → esm2022}/slider/mis-crystal-design-system-slider.mjs +0 -0
  474. /package/{esm2020 → esm2022}/slider/public_api.mjs +0 -0
  475. /package/{esm2020 → esm2022}/snackbar/index.mjs +0 -0
  476. /package/{esm2020 → esm2022}/snackbar/mis-crystal-design-system-snackbar.mjs +0 -0
  477. /package/{esm2020 → esm2022}/snackbar/public_api.mjs +0 -0
  478. /package/{esm2020 → esm2022}/specificdatepicker/daterangepicker-constants.mjs +0 -0
  479. /package/{esm2020 → esm2022}/specificdatepicker/index.mjs +0 -0
  480. /package/{esm2020 → esm2022}/specificdatepicker/mis-crystal-design-system-specificdatepicker.mjs +0 -0
  481. /package/{esm2020 → esm2022}/specificdatepicker/models/sdp-config.model.mjs +0 -0
  482. /package/{esm2020 → esm2022}/specificdatepicker/public_api.mjs +0 -0
  483. /package/{esm2020 → esm2022}/star-rating/index.mjs +0 -0
  484. /package/{esm2020 → esm2022}/star-rating/mis-crystal-design-system-star-rating.mjs +0 -0
  485. /package/{esm2020 → esm2022}/star-rating/public_api.mjs +0 -0
  486. /package/{esm2020 → esm2022}/styles/index.mjs +0 -0
  487. /package/{esm2020 → esm2022}/styles/mis-crystal-design-system-styles.mjs +0 -0
  488. /package/{esm2020 → esm2022}/styles/public_api.mjs +0 -0
  489. /package/{esm2020 → esm2022}/switch/index.mjs +0 -0
  490. /package/{esm2020 → esm2022}/switch/mis-crystal-design-system-switch.mjs +0 -0
  491. /package/{esm2020 → esm2022}/switch/public_api.mjs +0 -0
  492. /package/{esm2020 → esm2022}/table/index.mjs +0 -0
  493. /package/{esm2020 → esm2022}/table/mis-crystal-design-system-table.mjs +0 -0
  494. /package/{esm2020 → esm2022}/table/public_api.mjs +0 -0
  495. /package/{esm2020 → esm2022}/timepicker/index.mjs +0 -0
  496. /package/{esm2020 → esm2022}/timepicker/mis-crystal-design-system-timepicker.mjs +0 -0
  497. /package/{esm2020 → esm2022}/timepicker/public_api.mjs +0 -0
  498. /package/{esm2020 → esm2022}/timepicker/time.namespace.mjs +0 -0
  499. /package/{esm2020 → esm2022}/timerangepicker/index.mjs +0 -0
  500. /package/{esm2020 → esm2022}/timerangepicker/mis-crystal-design-system-timerangepicker.mjs +0 -0
  501. /package/{esm2020 → esm2022}/timerangepicker/public_api.mjs +0 -0
  502. /package/{esm2020 → esm2022}/timerangepicker/timerange.namespace.mjs +0 -0
  503. /package/{esm2020 → esm2022}/toast/index.mjs +0 -0
  504. /package/{esm2020 → esm2022}/toast/mis-crystal-design-system-toast.mjs +0 -0
  505. /package/{esm2020 → esm2022}/toast/public_api.mjs +0 -0
  506. /package/{esm2020 → esm2022}/tooltip/index.mjs +0 -0
  507. /package/{esm2020 → esm2022}/tooltip/mis-crystal-design-system-tooltip.mjs +0 -0
  508. /package/{esm2020 → esm2022}/tooltip/models/tooltip.model.mjs +0 -0
  509. /package/{esm2020 → esm2022}/tooltip/public_api.mjs +0 -0
  510. /package/{esm2020 → esm2022}/utils/index.mjs +0 -0
  511. /package/{esm2020 → esm2022}/utils/mis-crystal-design-system-utils.mjs +0 -0
  512. /package/{esm2020 → esm2022}/virtual-scroll/index.mjs +0 -0
  513. /package/{esm2020 → esm2022}/virtual-scroll/mis-crystal-design-system-virtual-scroll.mjs +0 -0
  514. /package/{esm2020 → esm2022}/virtual-scroll/public_api.mjs +0 -0
  515. /package/{esm2020 → esm2022}/virtual-scroll/virtual-scroll.constants.mjs +0 -0
  516. /package/{esm2020 → esm2022}/widgets/classes/widget-group.mjs +0 -0
  517. /package/{esm2020 → esm2022}/widgets/index.mjs +0 -0
  518. /package/{esm2020 → esm2022}/widgets/interfaces/widgets.model.mjs +0 -0
  519. /package/{esm2020 → esm2022}/widgets/mis-crystal-design-system-widgets.mjs +0 -0
  520. /package/{esm2020 → esm2022}/widgets/public_api.mjs +0 -0
  521. /package/{fesm2015 → fesm2022}/mis-crystal-design-system-styles.mjs +0 -0
  522. /package/{fesm2015 → fesm2022}/mis-crystal-design-system-styles.mjs.map +0 -0
  523. /package/{fesm2015 → fesm2022}/mis-crystal-design-system-utils.mjs +0 -0
  524. /package/{fesm2015 → fesm2022}/mis-crystal-design-system-utils.mjs.map +0 -0
  525. /package/{fesm2015 → fesm2022}/mis-crystal-design-system.mjs +0 -0
  526. /package/{fesm2015 → fesm2022}/mis-crystal-design-system.mjs.map +0 -0
@@ -1,1337 +0,0 @@
1
- import * as i1 from '@angular/common';
2
- import { CommonModule } from '@angular/common';
3
- import * as i2 from '@angular/forms';
4
- import { UntypedFormArray, UntypedFormGroup, UntypedFormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
5
- import * as i0 from '@angular/core';
6
- import { EventEmitter, Component, Input, Output, ContentChild, NgModule } from '@angular/core';
7
- import { OverlayModule } from '@angular/cdk/overlay';
8
- import { ScrollingModule } from '@angular/cdk-experimental/scrolling';
9
- import * as i3 from 'mis-crystal-design-system/dropdown';
10
- import { DropdownModule } from 'mis-crystal-design-system/dropdown';
11
- import dayjs from 'dayjs';
12
- import timezone from 'dayjs/plugin/timezone';
13
- import utc from 'dayjs/plugin/utc';
14
- import customParseFormat from 'dayjs/plugin/customParseFormat';
15
- import * as i4 from 'mis-crystal-design-system/switch';
16
- import { SwitchModule } from 'mis-crystal-design-system/switch';
17
- import * as i5 from 'mis-crystal-design-system/multi-select-dropdown';
18
- import { MultiSelectDropdownModule } from 'mis-crystal-design-system/multi-select-dropdown';
19
- import * as i6 from 'mis-crystal-design-system/datepicker_v2';
20
- import { DatepickerModuleV2 } from 'mis-crystal-design-system/datepicker_v2';
21
-
22
- const _c0 = ["customInputTextNumber"];
23
- const _c1 = ["customInputTextarea"];
24
- const _c2 = ["customInputDate"];
25
- const _c3 = ["customBooleanToggle"];
26
- const _c4 = ["customSingleSelectDropdown"];
27
- const _c5 = ["customSingleSelectRadio"];
28
- const _c6 = ["customMultiSelectCheckbox"];
29
- const _c7 = ["customMultiSelectDropdown"];
30
- const _c8 = function (a0, a1) { return { $implicit: a0, control: a1 }; };
31
- function DynamicFormComponent_ng_container_2_div_2_ng_container_1_Template(rf, ctx) {
32
- if (rf & 1) {
33
- i0.ɵɵelementContainerStart(0);
34
- i0.ɵɵelementContainer(1, 6);
35
- i0.ɵɵelementContainerEnd();
36
- }
37
- if (rf & 2) {
38
- const subFieldControl_r9 = ctx.$implicit;
39
- const j_r10 = ctx.index;
40
- const ctx_r11 = i0.ɵɵnextContext(2);
41
- const i_r6 = ctx_r11.index;
42
- const fieldControl_r5 = ctx_r11.$implicit;
43
- const ctx_r8 = i0.ɵɵnextContext();
44
- const _r1 = i0.ɵɵreference(4);
45
- i0.ɵɵadvance(1);
46
- i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c8, ctx_r8.findSelectedSubFieldConfig(ctx_r8.formFields[i_r6] == null ? null : ctx_r8.formFields[i_r6].subFields, fieldControl_r5.controls.value.value.value, j_r10), subFieldControl_r9));
47
- }
48
- }
49
- function DynamicFormComponent_ng_container_2_div_2_Template(rf, ctx) {
50
- if (rf & 1) {
51
- i0.ɵɵelementStart(0, "div", 8);
52
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_container_2_div_2_ng_container_1_Template, 2, 5, "ng-container", 9);
53
- i0.ɵɵelementEnd();
54
- }
55
- if (rf & 2) {
56
- const fieldControl_r5 = i0.ɵɵnextContext().$implicit;
57
- i0.ɵɵadvance(1);
58
- i0.ɵɵproperty("ngForOf", fieldControl_r5.controls.subFields.controls);
59
- }
60
- }
61
- const _c9 = function (a0, a1, a2) { return { $implicit: a0, formGroup: a1, control: a2 }; };
62
- function DynamicFormComponent_ng_container_2_Template(rf, ctx) {
63
- if (rf & 1) {
64
- i0.ɵɵelementContainerStart(0, 5);
65
- i0.ɵɵelementContainer(1, 6);
66
- i0.ɵɵtemplate(2, DynamicFormComponent_ng_container_2_div_2_Template, 2, 1, "div", 7);
67
- i0.ɵɵelementContainerEnd();
68
- }
69
- if (rf & 2) {
70
- const fieldControl_r5 = ctx.$implicit;
71
- const i_r6 = ctx.index;
72
- const ctx_r0 = i0.ɵɵnextContext();
73
- const _r1 = i0.ɵɵreference(4);
74
- i0.ɵɵproperty("formGroupName", i_r6);
75
- i0.ɵɵadvance(1);
76
- i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction3(4, _c9, ctx_r0.formFields[i_r6], fieldControl_r5, fieldControl_r5.controls.value));
77
- i0.ɵɵadvance(1);
78
- i0.ɵɵproperty("ngIf", (fieldControl_r5 == null ? null : fieldControl_r5.value) && (!!(ctx_r0.formFields[i_r6] == null ? null : ctx_r0.formFields[i_r6].subFields) && (ctx_r0.formFields[i_r6] == null ? null : ctx_r0.formFields[i_r6].subFields == null ? null : ctx_r0.formFields[i_r6].subFields.length) > 0 && ctx_r0.matchParentConfig(ctx_r0.formFields[i_r6] == null ? null : ctx_r0.formFields[i_r6].subFields, fieldControl_r5 == null ? null : fieldControl_r5.controls == null ? null : fieldControl_r5.controls.value == null ? null : fieldControl_r5.controls.value.value == null ? null : fieldControl_r5.controls.value.value.value)));
79
- }
80
- }
81
- function DynamicFormComponent_ng_template_3_ng_container_0_ng_container_1_ng_template_1_Template(rf, ctx) { }
82
- const _c10 = function (a0, a1, a2) { return { field: a0, control: a1, formgroup: a2 }; };
83
- function DynamicFormComponent_ng_template_3_ng_container_0_ng_container_1_Template(rf, ctx) {
84
- if (rf & 1) {
85
- i0.ɵɵelementContainerStart(0);
86
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_0_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 6);
87
- i0.ɵɵelementContainerEnd();
88
- }
89
- if (rf & 2) {
90
- const ctx_r28 = i0.ɵɵnextContext(2);
91
- const field_r13 = ctx_r28.$implicit;
92
- const control_r14 = ctx_r28.control;
93
- const formgroup_r15 = ctx_r28.formGroup;
94
- const ctx_r24 = i0.ɵɵnextContext();
95
- i0.ɵɵadvance(1);
96
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r24.customInputTextNumber)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r13, control_r14, formgroup_r15));
97
- }
98
- }
99
- function DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_span_3_Template(rf, ctx) {
100
- if (rf & 1) {
101
- i0.ɵɵelementStart(0, "span");
102
- i0.ɵɵtext(1, " *");
103
- i0.ɵɵelementEnd();
104
- }
105
- }
106
- const _c11 = function (a0) { return { $implicit: a0 }; };
107
- function DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_ng_container_6_Template(rf, ctx) {
108
- if (rf & 1) {
109
- i0.ɵɵelementContainer(0, 6);
110
- }
111
- if (rf & 2) {
112
- const control_r14 = i0.ɵɵnextContext(3).control;
113
- i0.ɵɵnextContext();
114
- const _r3 = i0.ɵɵreference(6);
115
- i0.ɵɵproperty("ngTemplateOutlet", _r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, control_r14.errors));
116
- }
117
- }
118
- const _c12 = function (a0) { return { "border-bottom": a0 }; };
119
- const _c13 = function (a0) { return { "border": a0 }; };
120
- function DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_Template(rf, ctx) {
121
- if (rf & 1) {
122
- const _r34 = i0.ɵɵgetCurrentView();
123
- i0.ɵɵelementStart(0, "div", 13)(1, "p", 14);
124
- i0.ɵɵtext(2);
125
- i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_span_3_Template, 2, 0, "span", 10);
126
- i0.ɵɵelementEnd();
127
- i0.ɵɵelement(4, "div", 15);
128
- i0.ɵɵelementStart(5, "input", 16);
129
- i0.ɵɵlistener("ngModelChange", function DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r33 = i0.ɵɵnextContext(2); const field_r13 = ctx_r33.$implicit; const formgroup_r15 = ctx_r33.formGroup; const ctx_r32 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r32.updateSubDynamicFields(field_r13, formgroup_r15, $event)); });
130
- i0.ɵɵelementEnd();
131
- i0.ɵɵtemplate(6, DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_ng_container_6_Template, 1, 4, "ng-container", 17);
132
- i0.ɵɵelementEnd();
133
- }
134
- if (rf & 2) {
135
- const ctx_r35 = i0.ɵɵnextContext(2);
136
- const formgroup_r15 = ctx_r35.formGroup;
137
- const field_r13 = ctx_r35.$implicit;
138
- const control_r14 = ctx_r35.control;
139
- const ctx_r26 = i0.ɵɵnextContext();
140
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(9, _c12, (formgroup_r15 == null ? null : formgroup_r15.controls == null ? null : formgroup_r15.controls.subFields == null ? null : formgroup_r15.controls.subFields.controls == null ? null : formgroup_r15.controls.subFields.controls.length) && ctx_r26.removeSepratorForSubFields ? "none" : ""));
141
- i0.ɵɵadvance(2);
142
- i0.ɵɵtextInterpolate1(" ", field_r13 == null ? null : field_r13.title, " ");
143
- i0.ɵɵadvance(1);
144
- i0.ɵɵproperty("ngIf", field_r13.validators && field_r13.validators.length > 0);
145
- i0.ɵɵadvance(2);
146
- i0.ɵɵproperty("type", field_r13.fieldInputType)("formControl", control_r14)("ngStyle", i0.ɵɵpureFunction1(11, _c13, control_r14.touched && control_r14.errors ? "1px solid #B00020" : ""))("placeholder", field_r13.placeholderText ? field_r13.placeholderText : "Input Text")("min", field_r13.fieldInputType === "number" ? 0 : "");
147
- i0.ɵɵadvance(1);
148
- i0.ɵɵproperty("ngIf", control_r14.touched && control_r14.errors);
149
- }
150
- }
151
- function DynamicFormComponent_ng_template_3_ng_container_0_Template(rf, ctx) {
152
- if (rf & 1) {
153
- i0.ɵɵelementContainerStart(0);
154
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_0_ng_container_1_Template, 2, 6, "ng-container", 11);
155
- i0.ɵɵtemplate(2, DynamicFormComponent_ng_template_3_ng_container_0_ng_template_2_Template, 7, 13, "ng-template", null, 12, i0.ɵɵtemplateRefExtractor);
156
- i0.ɵɵelementContainerEnd();
157
- }
158
- if (rf & 2) {
159
- const _r25 = i0.ɵɵreference(3);
160
- const ctx_r16 = i0.ɵɵnextContext(2);
161
- i0.ɵɵadvance(1);
162
- i0.ɵɵproperty("ngIf", ctx_r16.customInputTextNumber)("ngIfElse", _r25);
163
- }
164
- }
165
- function DynamicFormComponent_ng_template_3_ng_container_1_ng_container_1_ng_template_1_Template(rf, ctx) { }
166
- function DynamicFormComponent_ng_template_3_ng_container_1_ng_container_1_Template(rf, ctx) {
167
- if (rf & 1) {
168
- i0.ɵɵelementContainerStart(0);
169
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_1_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 6);
170
- i0.ɵɵelementContainerEnd();
171
- }
172
- if (rf & 2) {
173
- const ctx_r40 = i0.ɵɵnextContext(2);
174
- const field_r13 = ctx_r40.$implicit;
175
- const control_r14 = ctx_r40.control;
176
- const formgroup_r15 = ctx_r40.formGroup;
177
- const ctx_r36 = i0.ɵɵnextContext();
178
- i0.ɵɵadvance(1);
179
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r36.customInputTextarea)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r13, control_r14, formgroup_r15));
180
- }
181
- }
182
- function DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_span_3_Template(rf, ctx) {
183
- if (rf & 1) {
184
- i0.ɵɵelementStart(0, "span");
185
- i0.ɵɵtext(1, " *");
186
- i0.ɵɵelementEnd();
187
- }
188
- }
189
- function DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_ng_container_6_Template(rf, ctx) {
190
- if (rf & 1) {
191
- i0.ɵɵelementContainer(0, 6);
192
- }
193
- if (rf & 2) {
194
- const control_r14 = i0.ɵɵnextContext(3).control;
195
- i0.ɵɵnextContext();
196
- const _r3 = i0.ɵɵreference(6);
197
- i0.ɵɵproperty("ngTemplateOutlet", _r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, control_r14.errors));
198
- }
199
- }
200
- function DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_Template(rf, ctx) {
201
- if (rf & 1) {
202
- const _r46 = i0.ɵɵgetCurrentView();
203
- i0.ɵɵelementStart(0, "div", 13)(1, "p", 14);
204
- i0.ɵɵtext(2);
205
- i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_span_3_Template, 2, 0, "span", 10);
206
- i0.ɵɵelementEnd();
207
- i0.ɵɵelement(4, "div", 15);
208
- i0.ɵɵelementStart(5, "textarea", 19);
209
- i0.ɵɵlistener("ngModelChange", function DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_Template_textarea_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r46); const ctx_r45 = i0.ɵɵnextContext(2); const field_r13 = ctx_r45.$implicit; const formgroup_r15 = ctx_r45.formGroup; const ctx_r44 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r44.updateSubDynamicFields(field_r13, formgroup_r15, $event)); });
210
- i0.ɵɵelementEnd();
211
- i0.ɵɵtemplate(6, DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_ng_container_6_Template, 1, 4, "ng-container", 17);
212
- i0.ɵɵelementEnd();
213
- }
214
- if (rf & 2) {
215
- const ctx_r47 = i0.ɵɵnextContext(2);
216
- const formgroup_r15 = ctx_r47.formGroup;
217
- const field_r13 = ctx_r47.$implicit;
218
- const control_r14 = ctx_r47.control;
219
- const ctx_r38 = i0.ɵɵnextContext();
220
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(7, _c12, (formgroup_r15 == null ? null : formgroup_r15.controls == null ? null : formgroup_r15.controls.subFields == null ? null : formgroup_r15.controls.subFields.controls == null ? null : formgroup_r15.controls.subFields.controls.length) && ctx_r38.removeSepratorForSubFields ? "none" : ""));
221
- i0.ɵɵadvance(2);
222
- i0.ɵɵtextInterpolate1(" ", field_r13.title, "");
223
- i0.ɵɵadvance(1);
224
- i0.ɵɵproperty("ngIf", field_r13.validators && field_r13.validators.length > 0);
225
- i0.ɵɵadvance(2);
226
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(9, _c13, control_r14.touched && control_r14.errors ? "1px solid #B00020" : ""))("placeholder", field_r13.placeholderText ? field_r13.placeholderText : "Input Text")("formControl", control_r14);
227
- i0.ɵɵadvance(1);
228
- i0.ɵɵproperty("ngIf", control_r14.touched && control_r14.errors);
229
- }
230
- }
231
- function DynamicFormComponent_ng_template_3_ng_container_1_Template(rf, ctx) {
232
- if (rf & 1) {
233
- i0.ɵɵelementContainerStart(0);
234
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_1_ng_container_1_Template, 2, 6, "ng-container", 11);
235
- i0.ɵɵtemplate(2, DynamicFormComponent_ng_template_3_ng_container_1_ng_template_2_Template, 7, 11, "ng-template", null, 18, i0.ɵɵtemplateRefExtractor);
236
- i0.ɵɵelementContainerEnd();
237
- }
238
- if (rf & 2) {
239
- const _r37 = i0.ɵɵreference(3);
240
- const ctx_r17 = i0.ɵɵnextContext(2);
241
- i0.ɵɵadvance(1);
242
- i0.ɵɵproperty("ngIf", ctx_r17.customInputTextarea)("ngIfElse", _r37);
243
- }
244
- }
245
- function DynamicFormComponent_ng_template_3_ng_container_2_ng_container_1_ng_template_1_Template(rf, ctx) { }
246
- function DynamicFormComponent_ng_template_3_ng_container_2_ng_container_1_Template(rf, ctx) {
247
- if (rf & 1) {
248
- i0.ɵɵelementContainerStart(0);
249
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_2_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 6);
250
- i0.ɵɵelementContainerEnd();
251
- }
252
- if (rf & 2) {
253
- const ctx_r52 = i0.ɵɵnextContext(2);
254
- const field_r13 = ctx_r52.$implicit;
255
- const control_r14 = ctx_r52.control;
256
- const formgroup_r15 = ctx_r52.formGroup;
257
- const ctx_r48 = i0.ɵɵnextContext();
258
- i0.ɵɵadvance(1);
259
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r48.customInputDate)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r13, control_r14, formgroup_r15));
260
- }
261
- }
262
- function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_span_3_Template(rf, ctx) {
263
- if (rf & 1) {
264
- i0.ɵɵelementStart(0, "span");
265
- i0.ɵɵtext(1, " *");
266
- i0.ɵɵelementEnd();
267
- }
268
- }
269
- function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_img_7_Template(rf, ctx) {
270
- if (rf & 1) {
271
- const _r59 = i0.ɵɵgetCurrentView();
272
- i0.ɵɵelementStart(0, "img", 28);
273
- 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(_r59); i0.ɵɵnextContext(); const _r55 = i0.ɵɵreference(6); return i0.ɵɵresetView(_r55.click()); });
274
- i0.ɵɵelementEnd();
275
- }
276
- if (rf & 2) {
277
- const ctx_r56 = i0.ɵɵnextContext(5);
278
- i0.ɵɵproperty("src", ctx_r56.calendarIconUrl, i0.ɵɵsanitizeUrl);
279
- }
280
- }
281
- function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_ng_container_8_Template(rf, ctx) {
282
- if (rf & 1) {
283
- i0.ɵɵelementContainer(0, 6);
284
- }
285
- if (rf & 2) {
286
- const control_r14 = i0.ɵɵnextContext(4).control;
287
- i0.ɵɵnextContext();
288
- const _r3 = i0.ɵɵreference(6);
289
- i0.ɵɵproperty("ngTemplateOutlet", _r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, control_r14.errors));
290
- }
291
- }
292
- function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_Template(rf, ctx) {
293
- if (rf & 1) {
294
- const _r63 = i0.ɵɵgetCurrentView();
295
- i0.ɵɵelementStart(0, "div", 22)(1, "p", 23);
296
- i0.ɵɵtext(2);
297
- i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_span_3_Template, 2, 0, "span", 10);
298
- i0.ɵɵelementEnd();
299
- i0.ɵɵelementStart(4, "div", 24)(5, "input", 25, 26);
300
- i0.ɵɵlistener("dateChange", function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_Template_input_dateChange_5_listener($event) { i0.ɵɵrestoreView(_r63); const control_r14 = i0.ɵɵnextContext(3).control; return i0.ɵɵresetView(control_r14.setValue($event)); });
301
- i0.ɵɵelementEnd();
302
- i0.ɵɵtemplate(7, DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_img_7_Template, 1, 1, "img", 27);
303
- i0.ɵɵelementEnd();
304
- i0.ɵɵtemplate(8, DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_ng_container_8_Template, 1, 4, "ng-container", 17);
305
- i0.ɵɵelementEnd();
306
- }
307
- if (rf & 2) {
308
- const ctx_r64 = i0.ɵɵnextContext(3);
309
- const formgroup_r15 = ctx_r64.formGroup;
310
- const field_r13 = ctx_r64.$implicit;
311
- const control_r14 = ctx_r64.control;
312
- const ctx_r53 = i0.ɵɵnextContext();
313
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(9, _c12, (formgroup_r15 == null ? null : formgroup_r15.controls == null ? null : formgroup_r15.controls.subFields == null ? null : formgroup_r15.controls.subFields.controls == null ? null : formgroup_r15.controls.subFields.controls.length) && ctx_r53.removeSepratorForSubFields ? "none" : ""));
314
- i0.ɵɵadvance(2);
315
- i0.ɵɵtextInterpolate1(" ", field_r13.title, " ");
316
- i0.ɵɵadvance(1);
317
- i0.ɵɵproperty("ngIf", field_r13.validators && field_r13.validators.length > 0);
318
- i0.ɵɵadvance(2);
319
- i0.ɵɵproperty("dpConfig", field_r13.fieldConfig)("selectedDate", control_r14.value)("offsetY", 0)("value", control_r14.value);
320
- i0.ɵɵadvance(2);
321
- i0.ɵɵproperty("ngIf", ctx_r53.calendarIconUrl);
322
- i0.ɵɵadvance(1);
323
- i0.ɵɵproperty("ngIf", control_r14.touched && control_r14.errors);
324
- }
325
- }
326
- function DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_Template(rf, ctx) {
327
- if (rf & 1) {
328
- i0.ɵɵtemplate(0, DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_div_0_Template, 9, 11, "div", 21);
329
- }
330
- if (rf & 2) {
331
- const field_r13 = i0.ɵɵnextContext(2).$implicit;
332
- i0.ɵɵproperty("ngIf", field_r13.fieldType === "input" && field_r13.fieldInputType === "date");
333
- }
334
- }
335
- function DynamicFormComponent_ng_template_3_ng_container_2_Template(rf, ctx) {
336
- if (rf & 1) {
337
- i0.ɵɵelementContainerStart(0);
338
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_2_ng_container_1_Template, 2, 6, "ng-container", 11);
339
- i0.ɵɵtemplate(2, DynamicFormComponent_ng_template_3_ng_container_2_ng_template_2_Template, 1, 1, "ng-template", null, 20, i0.ɵɵtemplateRefExtractor);
340
- i0.ɵɵelementContainerEnd();
341
- }
342
- if (rf & 2) {
343
- const _r49 = i0.ɵɵreference(3);
344
- const ctx_r18 = i0.ɵɵnextContext(2);
345
- i0.ɵɵadvance(1);
346
- i0.ɵɵproperty("ngIf", ctx_r18.customInputDate)("ngIfElse", _r49);
347
- }
348
- }
349
- function DynamicFormComponent_ng_template_3_ng_container_3_ng_container_1_ng_template_1_Template(rf, ctx) { }
350
- function DynamicFormComponent_ng_template_3_ng_container_3_ng_container_1_Template(rf, ctx) {
351
- if (rf & 1) {
352
- i0.ɵɵelementContainerStart(0);
353
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_3_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 6);
354
- i0.ɵɵelementContainerEnd();
355
- }
356
- if (rf & 2) {
357
- const ctx_r70 = i0.ɵɵnextContext(2);
358
- const field_r13 = ctx_r70.$implicit;
359
- const control_r14 = ctx_r70.control;
360
- const formgroup_r15 = ctx_r70.formGroup;
361
- const ctx_r66 = i0.ɵɵnextContext();
362
- i0.ɵɵadvance(1);
363
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r66.customBooleanToggle)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r13, control_r14, formgroup_r15));
364
- }
365
- }
366
- function DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_span_3_Template(rf, ctx) {
367
- if (rf & 1) {
368
- i0.ɵɵelementStart(0, "span");
369
- i0.ɵɵtext(1, " *");
370
- i0.ɵɵelementEnd();
371
- }
372
- }
373
- function DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_ng_container_5_Template(rf, ctx) {
374
- if (rf & 1) {
375
- i0.ɵɵelementContainer(0, 6);
376
- }
377
- if (rf & 2) {
378
- const control_r14 = i0.ɵɵnextContext(3).control;
379
- i0.ɵɵnextContext();
380
- const _r3 = i0.ɵɵreference(6);
381
- i0.ɵɵproperty("ngTemplateOutlet", _r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, control_r14.errors));
382
- }
383
- }
384
- function DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_Template(rf, ctx) {
385
- if (rf & 1) {
386
- const _r76 = i0.ɵɵgetCurrentView();
387
- i0.ɵɵelementStart(0, "div", 22)(1, "p", 23);
388
- i0.ɵɵtext(2);
389
- i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_span_3_Template, 2, 0, "span", 10);
390
- i0.ɵɵelementEnd();
391
- i0.ɵɵelementStart(4, "mis-switch", 30);
392
- i0.ɵɵlistener("valueChanged", function DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_Template_mis_switch_valueChanged_4_listener($event) { i0.ɵɵrestoreView(_r76); const ctx_r75 = i0.ɵɵnextContext(2); const field_r13 = ctx_r75.$implicit; const formgroup_r15 = ctx_r75.formGroup; const ctx_r74 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r74.updateSubDynamicFields(field_r13, formgroup_r15, $event)); });
393
- i0.ɵɵelementEnd();
394
- i0.ɵɵtemplate(5, DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_ng_container_5_Template, 1, 4, "ng-container", 17);
395
- i0.ɵɵelementEnd();
396
- }
397
- if (rf & 2) {
398
- const ctx_r77 = i0.ɵɵnextContext(2);
399
- const formgroup_r15 = ctx_r77.formGroup;
400
- const field_r13 = ctx_r77.$implicit;
401
- const control_r14 = ctx_r77.control;
402
- const ctx_r68 = i0.ɵɵnextContext();
403
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c12, (formgroup_r15 == null ? null : formgroup_r15.controls == null ? null : formgroup_r15.controls.subFields == null ? null : formgroup_r15.controls.subFields.controls == null ? null : formgroup_r15.controls.subFields.controls.length) && ctx_r68.removeSepratorForSubFields ? "none" : ""));
404
- i0.ɵɵadvance(2);
405
- i0.ɵɵtextInterpolate1(" ", field_r13.title, "");
406
- i0.ɵɵadvance(1);
407
- i0.ɵɵproperty("ngIf", field_r13.validators && field_r13.validators.length > 0);
408
- i0.ɵɵadvance(1);
409
- i0.ɵɵproperty("control", control_r14);
410
- i0.ɵɵadvance(1);
411
- i0.ɵɵproperty("ngIf", control_r14.touched && control_r14.errors);
412
- }
413
- }
414
- function DynamicFormComponent_ng_template_3_ng_container_3_Template(rf, ctx) {
415
- if (rf & 1) {
416
- i0.ɵɵelementContainerStart(0);
417
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_3_ng_container_1_Template, 2, 6, "ng-container", 11);
418
- i0.ɵɵtemplate(2, DynamicFormComponent_ng_template_3_ng_container_3_ng_template_2_Template, 6, 7, "ng-template", null, 29, i0.ɵɵtemplateRefExtractor);
419
- i0.ɵɵelementContainerEnd();
420
- }
421
- if (rf & 2) {
422
- const _r67 = i0.ɵɵreference(3);
423
- const ctx_r19 = i0.ɵɵnextContext(2);
424
- i0.ɵɵadvance(1);
425
- i0.ɵɵproperty("ngIf", ctx_r19.customBooleanToggle)("ngIfElse", _r67);
426
- }
427
- }
428
- function DynamicFormComponent_ng_template_3_ng_container_4_ng_container_1_ng_template_1_Template(rf, ctx) { }
429
- function DynamicFormComponent_ng_template_3_ng_container_4_ng_container_1_Template(rf, ctx) {
430
- if (rf & 1) {
431
- i0.ɵɵelementContainerStart(0);
432
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_4_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 6);
433
- i0.ɵɵelementContainerEnd();
434
- }
435
- if (rf & 2) {
436
- const ctx_r82 = i0.ɵɵnextContext(2);
437
- const field_r13 = ctx_r82.$implicit;
438
- const control_r14 = ctx_r82.control;
439
- const formgroup_r15 = ctx_r82.formGroup;
440
- const ctx_r78 = i0.ɵɵnextContext();
441
- i0.ɵɵadvance(1);
442
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r78.customSingleSelectDropdown)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r13, control_r14, formgroup_r15));
443
- }
444
- }
445
- function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_span_3_Template(rf, ctx) {
446
- if (rf & 1) {
447
- i0.ɵɵelementStart(0, "span");
448
- i0.ɵɵtext(1, " *");
449
- i0.ɵɵelementEnd();
450
- }
451
- }
452
- function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_img_6_Template(rf, ctx) {
453
- if (rf & 1) {
454
- const _r88 = i0.ɵɵgetCurrentView();
455
- i0.ɵɵelementStart(0, "img", 35);
456
- i0.ɵɵlistener("click", function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_img_6_Template_img_click_0_listener() { i0.ɵɵrestoreView(_r88); const field_r13 = i0.ɵɵnextContext(3).$implicit; const ctx_r86 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r86.fieldRemoved.emit(field_r13)); });
457
- i0.ɵɵelementEnd();
458
- }
459
- if (rf & 2) {
460
- const ctx_r84 = i0.ɵɵnextContext(4);
461
- i0.ɵɵproperty("src", ctx_r84.removeIconUrl, i0.ɵɵsanitizeUrl);
462
- }
463
- }
464
- function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_ng_container_7_Template(rf, ctx) {
465
- if (rf & 1) {
466
- i0.ɵɵelementContainer(0, 6);
467
- }
468
- if (rf & 2) {
469
- const control_r14 = i0.ɵɵnextContext(3).control;
470
- i0.ɵɵnextContext();
471
- const _r3 = i0.ɵɵreference(6);
472
- i0.ɵɵproperty("ngTemplateOutlet", _r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, control_r14.errors));
473
- }
474
- }
475
- const _c14 = function (a0) { return { "removeable-container": a0 }; };
476
- function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_Template(rf, ctx) {
477
- if (rf & 1) {
478
- const _r92 = i0.ɵɵgetCurrentView();
479
- i0.ɵɵelementStart(0, "div", 22)(1, "p", 23);
480
- i0.ɵɵtext(2);
481
- i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_span_3_Template, 2, 0, "span", 10);
482
- i0.ɵɵelementEnd();
483
- i0.ɵɵelementStart(4, "div", 32)(5, "mis-dropdown", 33);
484
- i0.ɵɵlistener("onChange", function DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_Template_mis_dropdown_onChange_5_listener($event) { i0.ɵɵrestoreView(_r92); const ctx_r91 = i0.ɵɵnextContext(2); const field_r13 = ctx_r91.$implicit; const control_r14 = ctx_r91.control; const formgroup_r15 = ctx_r91.formGroup; const ctx_r90 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r90.updateSelectedValueForSingleSelect(field_r13, control_r14, formgroup_r15, $event)); });
485
- i0.ɵɵelementEnd();
486
- i0.ɵɵtemplate(6, DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_img_6_Template, 1, 1, "img", 34);
487
- i0.ɵɵelementEnd();
488
- i0.ɵɵtemplate(7, DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_ng_container_7_Template, 1, 4, "ng-container", 17);
489
- i0.ɵɵelementEnd();
490
- }
491
- if (rf & 2) {
492
- const ctx_r93 = i0.ɵɵnextContext(2);
493
- const formgroup_r15 = ctx_r93.formGroup;
494
- const field_r13 = ctx_r93.$implicit;
495
- const control_r14 = ctx_r93.control;
496
- const ctx_r80 = i0.ɵɵnextContext();
497
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(10, _c12, (formgroup_r15 == null ? null : formgroup_r15.controls == null ? null : formgroup_r15.controls.subFields == null ? null : formgroup_r15.controls.subFields.controls == null ? null : formgroup_r15.controls.subFields.controls.length) && ctx_r80.removeSepratorForSubFields ? "none" : ""));
498
- i0.ɵɵadvance(2);
499
- i0.ɵɵtextInterpolate1(" ", field_r13.title, "");
500
- i0.ɵɵadvance(1);
501
- i0.ɵɵproperty("ngIf", field_r13.validators && field_r13.validators.length > 0);
502
- i0.ɵɵadvance(1);
503
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c14, field_r13 == null ? null : field_r13.isRemoveable));
504
- i0.ɵɵadvance(1);
505
- i0.ɵɵproperty("searchEnabled", false)("width", "140px")("data", field_r13.itemsList)("selectedItem", control_r14.value);
506
- i0.ɵɵadvance(1);
507
- i0.ɵɵproperty("ngIf", field_r13.isRemoveable && ctx_r80.removeIconUrl);
508
- i0.ɵɵadvance(1);
509
- i0.ɵɵproperty("ngIf", control_r14.touched && control_r14.errors);
510
- }
511
- }
512
- function DynamicFormComponent_ng_template_3_ng_container_4_Template(rf, ctx) {
513
- if (rf & 1) {
514
- i0.ɵɵelementContainerStart(0);
515
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_4_ng_container_1_Template, 2, 6, "ng-container", 11);
516
- i0.ɵɵtemplate(2, DynamicFormComponent_ng_template_3_ng_container_4_ng_template_2_Template, 8, 14, "ng-template", null, 31, i0.ɵɵtemplateRefExtractor);
517
- i0.ɵɵelementContainerEnd();
518
- }
519
- if (rf & 2) {
520
- const _r79 = i0.ɵɵreference(3);
521
- const ctx_r20 = i0.ɵɵnextContext(2);
522
- i0.ɵɵadvance(1);
523
- i0.ɵɵproperty("ngIf", ctx_r20.customSingleSelectDropdown)("ngIfElse", _r79);
524
- }
525
- }
526
- function DynamicFormComponent_ng_template_3_ng_container_5_ng_container_1_ng_template_1_Template(rf, ctx) { }
527
- function DynamicFormComponent_ng_template_3_ng_container_5_ng_container_1_Template(rf, ctx) {
528
- if (rf & 1) {
529
- i0.ɵɵelementContainerStart(0);
530
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_5_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 6);
531
- i0.ɵɵelementContainerEnd();
532
- }
533
- if (rf & 2) {
534
- const ctx_r98 = i0.ɵɵnextContext(2);
535
- const field_r13 = ctx_r98.$implicit;
536
- const control_r14 = ctx_r98.control;
537
- const formgroup_r15 = ctx_r98.formGroup;
538
- const ctx_r94 = i0.ɵɵnextContext();
539
- i0.ɵɵadvance(1);
540
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r94.customSingleSelectRadio)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r13, control_r14, formgroup_r15));
541
- }
542
- }
543
- function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_span_3_Template(rf, ctx) {
544
- if (rf & 1) {
545
- i0.ɵɵelementStart(0, "span");
546
- i0.ɵɵtext(1, " *");
547
- i0.ɵɵelementEnd();
548
- }
549
- }
550
- function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_div_6_img_1_Template(rf, ctx) {
551
- if (rf & 1) {
552
- i0.ɵɵelement(0, "img", 41);
553
- }
554
- if (rf & 2) {
555
- const ctx_r103 = i0.ɵɵnextContext(5);
556
- i0.ɵɵproperty("src", ctx_r103.activeBtnIconUrl, i0.ɵɵsanitizeUrl);
557
- }
558
- }
559
- const _c15 = function (a0) { return { "checkbox-active": a0 }; };
560
- function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_div_6_Template(rf, ctx) {
561
- if (rf & 1) {
562
- const _r106 = i0.ɵɵgetCurrentView();
563
- i0.ɵɵelementStart(0, "div", 39);
564
- i0.ɵɵlistener("click", function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_div_6_Template_div_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r106); const item_r102 = restoredCtx.$implicit; const ctx_r105 = i0.ɵɵnextContext(3); const field_r13 = ctx_r105.$implicit; const control_r14 = ctx_r105.control; const formgroup_r15 = ctx_r105.formGroup; const ctx_r104 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r104.updateSelectedValueForSingleSelect(field_r13, control_r14, formgroup_r15, item_r102)); });
565
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_div_6_img_1_Template, 1, 1, "img", 40);
566
- i0.ɵɵelementStart(2, "p", 23);
567
- i0.ɵɵtext(3);
568
- i0.ɵɵelementEnd()();
569
- }
570
- if (rf & 2) {
571
- const item_r102 = ctx.$implicit;
572
- const control_r14 = i0.ɵɵnextContext(3).control;
573
- const ctx_r100 = i0.ɵɵnextContext();
574
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c15, item_r102.label === (control_r14.value == null ? null : control_r14.value.label)));
575
- i0.ɵɵadvance(1);
576
- i0.ɵɵproperty("ngIf", item_r102.label === (control_r14.value == null ? null : control_r14.value.label) && ctx_r100.activeBtnIconUrl);
577
- i0.ɵɵadvance(2);
578
- i0.ɵɵtextInterpolate(item_r102.label);
579
- }
580
- }
581
- function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_ng_container_7_Template(rf, ctx) {
582
- if (rf & 1) {
583
- i0.ɵɵelementContainer(0, 6);
584
- }
585
- if (rf & 2) {
586
- const control_r14 = i0.ɵɵnextContext(3).control;
587
- i0.ɵɵnextContext();
588
- const _r3 = i0.ɵɵreference(6);
589
- i0.ɵɵproperty("ngTemplateOutlet", _r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, control_r14.errors));
590
- }
591
- }
592
- function DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_Template(rf, ctx) {
593
- if (rf & 1) {
594
- i0.ɵɵelementStart(0, "div", 13)(1, "p", 14);
595
- i0.ɵɵtext(2);
596
- i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_span_3_Template, 2, 0, "span", 10);
597
- i0.ɵɵelementEnd();
598
- i0.ɵɵelement(4, "div", 15);
599
- i0.ɵɵelementStart(5, "div", 37);
600
- i0.ɵɵtemplate(6, DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_div_6_Template, 4, 5, "div", 38);
601
- i0.ɵɵelementEnd();
602
- i0.ɵɵtemplate(7, DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_ng_container_7_Template, 1, 4, "ng-container", 17);
603
- i0.ɵɵelementEnd();
604
- }
605
- if (rf & 2) {
606
- const ctx_r109 = i0.ɵɵnextContext(2);
607
- const formgroup_r15 = ctx_r109.formGroup;
608
- const field_r13 = ctx_r109.$implicit;
609
- const control_r14 = ctx_r109.control;
610
- const ctx_r96 = i0.ɵɵnextContext();
611
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c12, (formgroup_r15 == null ? null : formgroup_r15.controls == null ? null : formgroup_r15.controls.subFields == null ? null : formgroup_r15.controls.subFields.controls == null ? null : formgroup_r15.controls.subFields.controls.length) && ctx_r96.removeSepratorForSubFields ? "none" : ""));
612
- i0.ɵɵadvance(2);
613
- i0.ɵɵtextInterpolate1(" ", field_r13.title, "");
614
- i0.ɵɵadvance(1);
615
- i0.ɵɵproperty("ngIf", field_r13.validators && field_r13.validators.length > 0);
616
- i0.ɵɵadvance(3);
617
- i0.ɵɵproperty("ngForOf", field_r13.itemsList);
618
- i0.ɵɵadvance(1);
619
- i0.ɵɵproperty("ngIf", control_r14.touched && control_r14.errors);
620
- }
621
- }
622
- function DynamicFormComponent_ng_template_3_ng_container_5_Template(rf, ctx) {
623
- if (rf & 1) {
624
- i0.ɵɵelementContainerStart(0);
625
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_5_ng_container_1_Template, 2, 6, "ng-container", 11);
626
- i0.ɵɵtemplate(2, DynamicFormComponent_ng_template_3_ng_container_5_ng_template_2_Template, 8, 7, "ng-template", null, 36, i0.ɵɵtemplateRefExtractor);
627
- i0.ɵɵelementContainerEnd();
628
- }
629
- if (rf & 2) {
630
- const _r95 = i0.ɵɵreference(3);
631
- const ctx_r21 = i0.ɵɵnextContext(2);
632
- i0.ɵɵadvance(1);
633
- i0.ɵɵproperty("ngIf", ctx_r21.customSingleSelectRadio)("ngIfElse", _r95);
634
- }
635
- }
636
- function DynamicFormComponent_ng_template_3_ng_container_6_ng_container_1_ng_template_1_Template(rf, ctx) { }
637
- function DynamicFormComponent_ng_template_3_ng_container_6_ng_container_1_Template(rf, ctx) {
638
- if (rf & 1) {
639
- i0.ɵɵelementContainerStart(0);
640
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_6_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 6);
641
- i0.ɵɵelementContainerEnd();
642
- }
643
- if (rf & 2) {
644
- const ctx_r114 = i0.ɵɵnextContext(2);
645
- const field_r13 = ctx_r114.$implicit;
646
- const control_r14 = ctx_r114.control;
647
- const formgroup_r15 = ctx_r114.formGroup;
648
- const ctx_r110 = i0.ɵɵnextContext();
649
- i0.ɵɵadvance(1);
650
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r110.customMultiSelectCheckbox)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r13, control_r14, formgroup_r15));
651
- }
652
- }
653
- function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_span_3_Template(rf, ctx) {
654
- if (rf & 1) {
655
- i0.ɵɵelementStart(0, "span");
656
- i0.ɵɵtext(1, " *");
657
- i0.ɵɵelementEnd();
658
- }
659
- }
660
- function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_div_6_img_1_Template(rf, ctx) {
661
- if (rf & 1) {
662
- i0.ɵɵelement(0, "img", 41);
663
- }
664
- if (rf & 2) {
665
- const ctx_r119 = i0.ɵɵnextContext(5);
666
- i0.ɵɵproperty("src", ctx_r119.activeBtnIconUrl, i0.ɵɵsanitizeUrl);
667
- }
668
- }
669
- function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_div_6_Template(rf, ctx) {
670
- if (rf & 1) {
671
- const _r122 = i0.ɵɵgetCurrentView();
672
- i0.ɵɵelementStart(0, "div", 39);
673
- i0.ɵɵlistener("click", function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_div_6_Template_div_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r122); const item_r118 = restoredCtx.$implicit; const ctx_r121 = i0.ɵɵnextContext(3); const field_r13 = ctx_r121.$implicit; const control_r14 = ctx_r121.control; const formgroup_r15 = ctx_r121.formGroup; const ctx_r120 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r120.updateSelectedValueForMultiSelect(field_r13, control_r14, formgroup_r15, [item_r118])); });
674
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_div_6_img_1_Template, 1, 1, "img", 40);
675
- i0.ɵɵelementStart(2, "p", 23);
676
- i0.ɵɵtext(3);
677
- i0.ɵɵelementEnd()();
678
- }
679
- if (rf & 2) {
680
- const item_r118 = ctx.$implicit;
681
- const control_r14 = i0.ɵɵnextContext(3).control;
682
- const ctx_r116 = i0.ɵɵnextContext();
683
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c15, ctx_r116.isCheckBoxSelected(item_r118.label, control_r14.value)));
684
- i0.ɵɵadvance(1);
685
- i0.ɵɵproperty("ngIf", ctx_r116.isCheckBoxSelected(item_r118.label, control_r14.value) && ctx_r116.activeBtnIconUrl);
686
- i0.ɵɵadvance(2);
687
- i0.ɵɵtextInterpolate(item_r118.label);
688
- }
689
- }
690
- function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_ng_container_7_Template(rf, ctx) {
691
- if (rf & 1) {
692
- i0.ɵɵelementContainer(0, 6);
693
- }
694
- if (rf & 2) {
695
- const control_r14 = i0.ɵɵnextContext(3).control;
696
- i0.ɵɵnextContext();
697
- const _r3 = i0.ɵɵreference(6);
698
- i0.ɵɵproperty("ngTemplateOutlet", _r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, control_r14.errors));
699
- }
700
- }
701
- function DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_Template(rf, ctx) {
702
- if (rf & 1) {
703
- i0.ɵɵelementStart(0, "div", 13)(1, "p", 14);
704
- i0.ɵɵtext(2);
705
- i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_span_3_Template, 2, 0, "span", 10);
706
- i0.ɵɵelementEnd();
707
- i0.ɵɵelement(4, "div", 15);
708
- i0.ɵɵelementStart(5, "div", 37);
709
- i0.ɵɵtemplate(6, DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_div_6_Template, 4, 5, "div", 38);
710
- i0.ɵɵelementEnd();
711
- i0.ɵɵtemplate(7, DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_ng_container_7_Template, 1, 4, "ng-container", 17);
712
- i0.ɵɵelementEnd();
713
- }
714
- if (rf & 2) {
715
- const ctx_r125 = i0.ɵɵnextContext(2);
716
- const formgroup_r15 = ctx_r125.formGroup;
717
- const field_r13 = ctx_r125.$implicit;
718
- const control_r14 = ctx_r125.control;
719
- const ctx_r112 = i0.ɵɵnextContext();
720
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c12, (formgroup_r15 == null ? null : formgroup_r15.controls == null ? null : formgroup_r15.controls.subFields == null ? null : formgroup_r15.controls.subFields.controls == null ? null : formgroup_r15.controls.subFields.controls.length) && ctx_r112.removeSepratorForSubFields ? "none" : ""));
721
- i0.ɵɵadvance(2);
722
- i0.ɵɵtextInterpolate1(" ", field_r13.title, "");
723
- i0.ɵɵadvance(1);
724
- i0.ɵɵproperty("ngIf", field_r13.validators && field_r13.validators.length > 0);
725
- i0.ɵɵadvance(3);
726
- i0.ɵɵproperty("ngForOf", field_r13.itemsList);
727
- i0.ɵɵadvance(1);
728
- i0.ɵɵproperty("ngIf", control_r14.touched && control_r14.errors);
729
- }
730
- }
731
- function DynamicFormComponent_ng_template_3_ng_container_6_Template(rf, ctx) {
732
- if (rf & 1) {
733
- i0.ɵɵelementContainerStart(0);
734
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_6_ng_container_1_Template, 2, 6, "ng-container", 11);
735
- i0.ɵɵtemplate(2, DynamicFormComponent_ng_template_3_ng_container_6_ng_template_2_Template, 8, 7, "ng-template", null, 42, i0.ɵɵtemplateRefExtractor);
736
- i0.ɵɵelementContainerEnd();
737
- }
738
- if (rf & 2) {
739
- const _r111 = i0.ɵɵreference(3);
740
- const ctx_r22 = i0.ɵɵnextContext(2);
741
- i0.ɵɵadvance(1);
742
- i0.ɵɵproperty("ngIf", ctx_r22.customMultiSelectCheckbox)("ngIfElse", _r111);
743
- }
744
- }
745
- function DynamicFormComponent_ng_template_3_ng_container_7_ng_container_1_ng_template_1_Template(rf, ctx) { }
746
- function DynamicFormComponent_ng_template_3_ng_container_7_ng_container_1_Template(rf, ctx) {
747
- if (rf & 1) {
748
- i0.ɵɵelementContainerStart(0);
749
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_7_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 6);
750
- i0.ɵɵelementContainerEnd();
751
- }
752
- if (rf & 2) {
753
- const ctx_r130 = i0.ɵɵnextContext(2);
754
- const field_r13 = ctx_r130.$implicit;
755
- const control_r14 = ctx_r130.control;
756
- const formgroup_r15 = ctx_r130.formGroup;
757
- const ctx_r126 = i0.ɵɵnextContext();
758
- i0.ɵɵadvance(1);
759
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r126.customMultiSelectDropdown)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c10, field_r13, control_r14, formgroup_r15));
760
- }
761
- }
762
- function DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_span_3_Template(rf, ctx) {
763
- if (rf & 1) {
764
- i0.ɵɵelementStart(0, "span");
765
- i0.ɵɵtext(1, " *");
766
- i0.ɵɵelementEnd();
767
- }
768
- }
769
- function DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_ng_container_5_Template(rf, ctx) {
770
- if (rf & 1) {
771
- i0.ɵɵelementContainer(0, 6);
772
- }
773
- if (rf & 2) {
774
- const control_r14 = i0.ɵɵnextContext(3).control;
775
- i0.ɵɵnextContext();
776
- const _r3 = i0.ɵɵreference(6);
777
- i0.ɵɵproperty("ngTemplateOutlet", _r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, control_r14.errors));
778
- }
779
- }
780
- function DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_Template(rf, ctx) {
781
- if (rf & 1) {
782
- const _r136 = i0.ɵɵgetCurrentView();
783
- i0.ɵɵelementStart(0, "div", 22)(1, "p", 23);
784
- i0.ɵɵtext(2);
785
- i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_span_3_Template, 2, 0, "span", 10);
786
- i0.ɵɵelementEnd();
787
- i0.ɵɵelementStart(4, "mis-multi-select-dropdown", 44);
788
- 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(_r136); const ctx_r135 = i0.ɵɵnextContext(2); const field_r13 = ctx_r135.$implicit; const control_r14 = ctx_r135.control; const formgroup_r15 = ctx_r135.formGroup; const ctx_r134 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r134.updateSelectedValueForMultiSelect(field_r13, control_r14, formgroup_r15, $event)); });
789
- i0.ɵɵelementEnd();
790
- i0.ɵɵtemplate(5, DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_ng_container_5_Template, 1, 4, "ng-container", 17);
791
- i0.ɵɵelementEnd();
792
- }
793
- if (rf & 2) {
794
- const ctx_r137 = i0.ɵɵnextContext(2);
795
- const formgroup_r15 = ctx_r137.formGroup;
796
- const field_r13 = ctx_r137.$implicit;
797
- const control_r14 = ctx_r137.control;
798
- const ctx_r128 = i0.ɵɵnextContext();
799
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(11, _c12, (formgroup_r15 == null ? null : formgroup_r15.controls == null ? null : formgroup_r15.controls.subFields == null ? null : formgroup_r15.controls.subFields.controls == null ? null : formgroup_r15.controls.subFields.controls.length) && ctx_r128.removeSepratorForSubFields ? "none" : ""));
800
- i0.ɵɵadvance(2);
801
- i0.ɵɵtextInterpolate1(" ", field_r13.title, "");
802
- i0.ɵɵadvance(1);
803
- i0.ɵɵproperty("ngIf", field_r13.validators && field_r13.validators.length > 0);
804
- i0.ɵɵadvance(1);
805
- i0.ɵɵproperty("width", "140px")("showSelectedCount", true)("dropdownListWidth", "256px")("searchEnabled", false)("hideApplyButton", true)("data", field_r13.itemsList)("selectedItems", control_r14.value);
806
- i0.ɵɵadvance(1);
807
- i0.ɵɵproperty("ngIf", control_r14.touched && control_r14.errors);
808
- }
809
- }
810
- function DynamicFormComponent_ng_template_3_ng_container_7_Template(rf, ctx) {
811
- if (rf & 1) {
812
- i0.ɵɵelementContainerStart(0);
813
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_7_ng_container_1_Template, 2, 6, "ng-container", 11);
814
- i0.ɵɵtemplate(2, DynamicFormComponent_ng_template_3_ng_container_7_ng_template_2_Template, 6, 13, "ng-template", null, 43, i0.ɵɵtemplateRefExtractor);
815
- i0.ɵɵelementContainerEnd();
816
- }
817
- if (rf & 2) {
818
- const _r127 = i0.ɵɵreference(3);
819
- const ctx_r23 = i0.ɵɵnextContext(2);
820
- i0.ɵɵadvance(1);
821
- i0.ɵɵproperty("ngIf", ctx_r23.customMultiSelectDropdown)("ngIfElse", _r127);
822
- }
823
- }
824
- function DynamicFormComponent_ng_template_3_Template(rf, ctx) {
825
- if (rf & 1) {
826
- i0.ɵɵtemplate(0, DynamicFormComponent_ng_template_3_ng_container_0_Template, 4, 2, "ng-container", 10);
827
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_3_ng_container_1_Template, 4, 2, "ng-container", 10);
828
- i0.ɵɵtemplate(2, DynamicFormComponent_ng_template_3_ng_container_2_Template, 4, 2, "ng-container", 10);
829
- i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_ng_container_3_Template, 4, 2, "ng-container", 10);
830
- i0.ɵɵtemplate(4, DynamicFormComponent_ng_template_3_ng_container_4_Template, 4, 2, "ng-container", 10);
831
- i0.ɵɵtemplate(5, DynamicFormComponent_ng_template_3_ng_container_5_Template, 4, 2, "ng-container", 10);
832
- i0.ɵɵtemplate(6, DynamicFormComponent_ng_template_3_ng_container_6_Template, 4, 2, "ng-container", 10);
833
- i0.ɵɵtemplate(7, DynamicFormComponent_ng_template_3_ng_container_7_Template, 4, 2, "ng-container", 10);
834
- }
835
- if (rf & 2) {
836
- const field_r13 = ctx.$implicit;
837
- i0.ɵɵproperty("ngIf", field_r13.fieldType === "input" && (field_r13.fieldInputType === "text" || field_r13.fieldInputType === "number"));
838
- i0.ɵɵadvance(1);
839
- i0.ɵɵproperty("ngIf", field_r13.fieldType === "input" && field_r13.fieldInputType === "textarea");
840
- i0.ɵɵadvance(1);
841
- i0.ɵɵproperty("ngIf", field_r13.fieldType === "input" && field_r13.fieldInputType === "date");
842
- i0.ɵɵadvance(1);
843
- i0.ɵɵproperty("ngIf", field_r13.fieldType === "boolean" && field_r13.fieldInputType === "toggle");
844
- i0.ɵɵadvance(1);
845
- i0.ɵɵproperty("ngIf", field_r13.fieldType === "singleSelect" && field_r13.fieldInputType === "dropdown");
846
- i0.ɵɵadvance(1);
847
- i0.ɵɵproperty("ngIf", field_r13.fieldType === "singleSelect" && field_r13.fieldInputType === "radio");
848
- i0.ɵɵadvance(1);
849
- i0.ɵɵproperty("ngIf", field_r13.fieldType === "multiSelect" && field_r13.fieldInputType === "checkbox");
850
- i0.ɵɵadvance(1);
851
- i0.ɵɵproperty("ngIf", field_r13.fieldType === "multiSelect" && field_r13.fieldInputType === "dropdown");
852
- }
853
- }
854
- const _c16 = function () { return { "flex-basis": "100%", "height": "0" }; };
855
- function DynamicFormComponent_ng_template_5_ng_container_1_Template(rf, ctx) {
856
- if (rf & 1) {
857
- i0.ɵɵelementContainerStart(0);
858
- i0.ɵɵelementStart(1, "p", 46);
859
- i0.ɵɵtext(2);
860
- i0.ɵɵelementEnd();
861
- i0.ɵɵelement(3, "div", 47);
862
- i0.ɵɵelementContainerEnd();
863
- }
864
- if (rf & 2) {
865
- const error_r140 = ctx.$implicit;
866
- i0.ɵɵadvance(2);
867
- i0.ɵɵtextInterpolate1(" ", " \u2022 \u00A0" + error_r140.value, " ");
868
- i0.ɵɵadvance(1);
869
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction0(2, _c16));
870
- }
871
- }
872
- function DynamicFormComponent_ng_template_5_Template(rf, ctx) {
873
- if (rf & 1) {
874
- i0.ɵɵelementStart(0, "div", 45);
875
- i0.ɵɵtemplate(1, DynamicFormComponent_ng_template_5_ng_container_1_Template, 4, 3, "ng-container", 9);
876
- i0.ɵɵpipe(2, "keyvalue");
877
- i0.ɵɵelementEnd();
878
- }
879
- if (rf & 2) {
880
- const errors_r138 = ctx.$implicit;
881
- i0.ɵɵadvance(1);
882
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(2, 1, errors_r138));
883
- }
884
- }
885
- dayjs.extend(utc);
886
- dayjs.extend(timezone);
887
- dayjs.extend(customParseFormat);
888
- class DynamicFormComponent {
889
- constructor() {
890
- /**
891
- * formFields: Dynamic fields recieved from the API metadata to build a dynamic form
892
- * formValues: Holds the value of the dynamic form with "key" being dynamic field "title"
893
- * and value being the user input.
894
- */
895
- this.formFields = [];
896
- this.formValues = {};
897
- // Need to deprecate these inputs and use constants.
898
- this.activeBtnIconUrl = "";
899
- this.calendarIconUrl = "";
900
- this.removeIconUrl = "";
901
- this.removeSepratorForSubFields = false;
902
- /**
903
- * formUpdated: Emits formValues Object whenever there is a change in the dynamic form.
904
- */
905
- this.formUpdated = new EventEmitter();
906
- /**
907
- * formValid: Emits boolean depending on validity of the form
908
- */
909
- this.formValid = new EventEmitter();
910
- /**
911
- * formInitialized: Emits dynamic form API on form initilization
912
- */
913
- this.formInitialized = new EventEmitter();
914
- this.fieldRemoved = new EventEmitter();
915
- }
916
- ngOnInit() {
917
- // Building the form
918
- this.dynamicForm = this.generateDynamicForm(this.formFields, this.formValues);
919
- // Subscribing to form changes and emiting values.
920
- this.valueChangesSubscription$ = this.dynamicForm.valueChanges.subscribe(formValue => {
921
- this.onFormValueChanges();
922
- });
923
- //api to expose functions
924
- this.dynamicFormAPI = {
925
- defaultFormValues: () => {
926
- return this.generateDynamicFieldsValueObject(this.dynamicForm.value.dynamicFields);
927
- }
928
- };
929
- this.formInitialized.emit(this.dynamicFormAPI);
930
- this.formValid.emit(this.dynamicForm.valid);
931
- }
932
- ngOnDestroy() {
933
- var _a;
934
- (_a = this.valueChangesSubscription$) === null || _a === void 0 ? void 0 : _a.unsubscribe();
935
- }
936
- onFormValueChanges() {
937
- let formValues = this.generateDynamicFieldsValueObject(this.dynamicForm.value.dynamicFields);
938
- this.formValid.emit(this.dynamicForm.valid);
939
- this.formUpdated.emit(formValues);
940
- console.log(formValues);
941
- }
942
- generateDynamicFieldsValueObject(formValues) {
943
- let dynamicFieldsValue = {};
944
- formValues.forEach((fieldValue, index) => {
945
- var _a, _b;
946
- if (typeof (fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.value) === 'string')
947
- fieldValue.value = (_a = fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.value) === null || _a === void 0 ? void 0 : _a.trim();
948
- let formattedValue = this.mapFormFieldToFormValue(this.formFields[index], fieldValue.value);
949
- if (((_b = fieldValue.subFields) === null || _b === void 0 ? void 0 : _b.length) > 0) {
950
- let formattedSubFieldsValues = {};
951
- let subField = this.formFields[index].subFields;
952
- if (this.formFields[index].fieldType === 'singleSelect' || this.formFields[index].fieldType === 'multiSelect') {
953
- subField = subField.filter((subField) => subField.parentConfigValue === fieldValue.value.value);
954
- }
955
- fieldValue.subFields.forEach((subFieldValue, subIndex) => {
956
- var _a;
957
- let subFormField = subField[subIndex];
958
- if (typeof (subFieldValue === null || subFieldValue === void 0 ? void 0 : subFieldValue.value) === 'string')
959
- subFieldValue.value = (_a = subFieldValue === null || subFieldValue === void 0 ? void 0 : subFieldValue.value) === null || _a === void 0 ? void 0 : _a.trim();
960
- formattedSubFieldsValues[subFormField.configName] = this.mapFormFieldToFormValue(subFormField, subFieldValue);
961
- });
962
- dynamicFieldsValue[this.formFields[index].configName] = {
963
- value: formattedValue,
964
- subFields: formattedSubFieldsValues
965
- };
966
- }
967
- else {
968
- dynamicFieldsValue[this.formFields[index].configName] = formattedValue;
969
- }
970
- });
971
- return dynamicFieldsValue;
972
- }
973
- generateDynamicForm(formFields, formValues) {
974
- var _a;
975
- let formArray = new UntypedFormArray([]);
976
- for (let field of formFields) {
977
- let fieldValue = ((_a = formValues[field.configName]) === null || _a === void 0 ? void 0 : _a.value) ? formValues[field.configName].value : formValues[field.configName];
978
- let fieldControl = this.mapFormValueToFormField(field, fieldValue);
979
- let subFieldsControls = this.generateSubDynamicFields(formValues, field, fieldControl.value);
980
- formArray.push(new UntypedFormGroup({
981
- value: fieldControl,
982
- subFields: subFieldsControls
983
- }));
984
- }
985
- return new UntypedFormGroup({
986
- dynamicFields: formArray
987
- });
988
- }
989
- getDynamicFieldsControls() {
990
- return this.dynamicForm.get("dynamicFields");
991
- }
992
- updateSubDynamicFields(field, formGroup, value) {
993
- var _a;
994
- if (((_a = field.subFields) === null || _a === void 0 ? void 0 : _a.length) > 0) {
995
- let subFieldsControls = this.generateSubDynamicFields(this.formValues, field, value);
996
- formGroup.removeControl('subFields');
997
- formGroup.addControl('subFields', subFieldsControls);
998
- }
999
- }
1000
- updateSelectedValueForSingleSelect(field, control, formGroup, value) {
1001
- var _a;
1002
- if (((_a = control.value) === null || _a === void 0 ? void 0 : _a.value) !== value.value) {
1003
- control.setValue(value);
1004
- }
1005
- else
1006
- control.setValue('');
1007
- this.updateSubDynamicFields(field, formGroup, value);
1008
- control.markAsTouched();
1009
- }
1010
- updateSelectedValueForMultiSelect(field, control, formGroup, values) {
1011
- let selectedValues = control.value;
1012
- for (let value of values) {
1013
- let itemIndex = selectedValues.findIndex(item => item.label === value.label);
1014
- if (itemIndex > -1) {
1015
- selectedValues.splice(itemIndex, 1);
1016
- }
1017
- else {
1018
- selectedValues.push(Object.assign({}, value));
1019
- }
1020
- }
1021
- control.setValue(selectedValues);
1022
- this.updateSubDynamicFields(field, formGroup, values);
1023
- control.markAsTouched();
1024
- }
1025
- isCheckBoxSelected(value, selectedValues) {
1026
- return selectedValues.findIndex(item => item.label === value) > -1;
1027
- }
1028
- findSelectedSubFieldConfig(subfields, value, subFieldIndex) {
1029
- try {
1030
- const selectedSubFieldConfig = subfields.filter(item => item.parentConfigValue === value)[subFieldIndex];
1031
- return selectedSubFieldConfig;
1032
- }
1033
- catch (e) {
1034
- throw new Error('Subfield index not found');
1035
- }
1036
- }
1037
- matchParentConfig(subfields, value) {
1038
- if (!subfields || subfields.length === 0) {
1039
- return false;
1040
- }
1041
- return subfields.some(item => item.parentConfigValue === value);
1042
- }
1043
- generateSubDynamicFields(formValues, parentField, parentValue) {
1044
- var _a;
1045
- let controls = new UntypedFormArray([]);
1046
- let subFields = parentField.subFields;
1047
- let subFieldsValues = ((_a = formValues[parentField.configName]) === null || _a === void 0 ? void 0 : _a.subFields) ? formValues[parentField.configName].subFields : {};
1048
- if (!subFields)
1049
- return controls;
1050
- if (parentField.fieldType === 'singleSelect') {
1051
- subFields = subFields.filter((subField) => subField.parentConfigValue === (parentValue === null || parentValue === void 0 ? void 0 : parentValue.value));
1052
- }
1053
- else if (parentField.fieldType === 'multiSelect') {
1054
- let parentValues = new Set(parentValue.map((value) => value.value));
1055
- subFields = subFields.filter((subField) => parentValues.has(subField.parentConfigValue));
1056
- }
1057
- if ((subFields === null || subFields === void 0 ? void 0 : subFields.length) > 0) {
1058
- for (let subField of subFields) {
1059
- controls.push(this.mapFormValueToFormField(subField, subFieldsValues[subField.configName]));
1060
- }
1061
- }
1062
- return controls;
1063
- }
1064
- mapFormValueToFormField(formField, formValue) {
1065
- let validators = formField.validators ? [dynamicFieldValidator(formField.validators)] : [];
1066
- let control = new UntypedFormControl(null, validators);
1067
- if (formField.fieldType === "input") {
1068
- if (formField.fieldInputType === "text" || formField.fieldInputType === "textarea")
1069
- control.setValue(formValue ? formValue : "");
1070
- else if (formField.fieldInputType === "number")
1071
- control.setValue(formValue ? formValue : 0);
1072
- else if (formField.fieldInputType === "date") {
1073
- if (formValue && typeof formValue === "number") {
1074
- control.setValue(dayjs(formValue).tz(formField.fieldConfig.timezone).format(formField.fieldConfig.format));
1075
- }
1076
- else {
1077
- control.setValue(dayjs().tz(formField.fieldConfig.timezone).format(formField.fieldConfig.format));
1078
- }
1079
- }
1080
- }
1081
- else if (formField.fieldType === "singleSelect") {
1082
- const findSelectedValue = () => {
1083
- let index = formField.itemsList.findIndex(item => item.value === formValue);
1084
- return index >= 0 ? formField.itemsList[index] : "";
1085
- };
1086
- if (formField.fieldInputType === "dropdown") {
1087
- if (!formValue)
1088
- control.setValue(formField.itemsList[0]);
1089
- else
1090
- control.setValue(findSelectedValue());
1091
- }
1092
- else if (formField.fieldInputType === "radio") {
1093
- control.setValue(findSelectedValue());
1094
- }
1095
- }
1096
- else if (formField.fieldType === "multiSelect") {
1097
- if (formValue && Array.isArray(formValue)) {
1098
- let selectedValues = [];
1099
- for (let value of formValue) {
1100
- let index = formField.itemsList.findIndex(item => item.value === value);
1101
- if (index > -1)
1102
- selectedValues.push(Object.assign({}, formField.itemsList[index]));
1103
- }
1104
- control.setValue(selectedValues);
1105
- }
1106
- else {
1107
- control.setValue([]);
1108
- }
1109
- }
1110
- else if (formField.fieldType === "boolean") {
1111
- control.setValue(!!formValue);
1112
- }
1113
- else
1114
- control.setValue(null);
1115
- return control;
1116
- }
1117
- mapFormFieldToFormValue(formField, formValue) {
1118
- var _a;
1119
- if (formField.fieldType === "input") {
1120
- if (formField.fieldInputType === "text" || formField.fieldInputType === "textarea")
1121
- return formValue;
1122
- else if (formField.fieldInputType === "number")
1123
- return +formValue;
1124
- else if (formField.fieldInputType === "date") {
1125
- return dayjs.tz(formValue, formField.fieldConfig.format, formField.fieldConfig.timezone).valueOf();
1126
- }
1127
- }
1128
- else if (formField.fieldType === "singleSelect") {
1129
- return (_a = formValue === null || formValue === void 0 ? void 0 : formValue.value) !== null && _a !== void 0 ? _a : '';
1130
- }
1131
- else if (formField.fieldType === "multiSelect") {
1132
- return formValue === null || formValue === void 0 ? void 0 : formValue.map(item => item.value);
1133
- }
1134
- else if (formField.fieldType === "boolean") {
1135
- return formValue;
1136
- }
1137
- else
1138
- return formValue;
1139
- }
1140
- }
1141
- DynamicFormComponent.ɵfac = function DynamicFormComponent_Factory(t) { return new (t || DynamicFormComponent)(); };
1142
- DynamicFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DynamicFormComponent, selectors: [["mis-dynamic-form"]], contentQueries: function DynamicFormComponent_ContentQueries(rf, ctx, dirIndex) {
1143
- if (rf & 1) {
1144
- i0.ɵɵcontentQuery(dirIndex, _c0, 5);
1145
- i0.ɵɵcontentQuery(dirIndex, _c1, 5);
1146
- i0.ɵɵcontentQuery(dirIndex, _c2, 5);
1147
- i0.ɵɵcontentQuery(dirIndex, _c3, 5);
1148
- i0.ɵɵcontentQuery(dirIndex, _c4, 5);
1149
- i0.ɵɵcontentQuery(dirIndex, _c5, 5);
1150
- i0.ɵɵcontentQuery(dirIndex, _c6, 5);
1151
- i0.ɵɵcontentQuery(dirIndex, _c7, 5);
1152
- }
1153
- if (rf & 2) {
1154
- let _t;
1155
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customInputTextNumber = _t.first);
1156
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customInputTextarea = _t.first);
1157
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customInputDate = _t.first);
1158
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customBooleanToggle = _t.first);
1159
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customSingleSelectDropdown = _t.first);
1160
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customSingleSelectRadio = _t.first);
1161
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customMultiSelectCheckbox = _t.first);
1162
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customMultiSelectDropdown = _t.first);
1163
- }
1164
- }, 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: [[3, "formGroup"], ["formArrayName", "dynamicFields"], [3, "formGroupName", 4, "ngFor", "ngForOf"], ["dynamicField", ""], ["dynamicFieldErrors", ""], [3, "formGroupName"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["class", "sub-dynamic-form", 4, "ngIf"], [1, "sub-dynamic-form"], [4, "ngFor", "ngForOf"], [4, "ngIf"], [4, "ngIf", "ngIfElse"], ["defaultInputTextNumber", ""], [1, "dynamic-field", "multi-line-field-container", 3, "ngStyle"], [1, "h7", "field-title-sm"], [2, "flex-basis", "100%"], [1, "input-field", "ip-text", 3, "type", "formControl", "ngStyle", "placeholder", "min", "ngModelChange"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["defaultInputTextarea", ""], ["type", "text", 1, "input-field", "ip-textarea", 3, "ngStyle", "placeholder", "formControl", "ngModelChange"], ["defaultInputDate", ""], ["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, "dpConfig", "selectedDate", "offsetY", "value", "dateChange"], ["dp", ""], ["alt", "data-picker", "class", "date-picker-icon", 3, "src", "click", 4, "ngIf"], ["alt", "data-picker", 1, "date-picker-icon", 3, "src", "click"], ["defaultBooleanToggle", ""], [3, "control", "valueChanged"], ["defaultSingleSelectDropdown", ""], [3, "ngClass"], [3, "searchEnabled", "width", "data", "selectedItem", "onChange"], ["class", "remove-icon", 3, "src", "click", 4, "ngIf"], [1, "remove-icon", 3, "src", "click"], ["defaultSingleSelectRadio", ""], ["id", "checkboxes-container"], ["class", "radio-checkbox-common", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "radio-checkbox-common", 3, "ngClass", "click"], ["alt", "", 3, "src", 4, "ngIf"], ["alt", "", 3, "src"], ["defaultMultiSelectCheckbox", ""], ["defaultMultiSelectDropdown", ""], [3, "width", "showSelectedCount", "dropdownListWidth", "searchEnabled", "hideApplyButton", "data", "selectedItems", "onChange"], ["id", "error-messages-container"], [1, "h8"], [3, "ngStyle"]], template: function DynamicFormComponent_Template(rf, ctx) {
1165
- if (rf & 1) {
1166
- i0.ɵɵelementStart(0, "form", 0);
1167
- i0.ɵɵelementContainerStart(1, 1);
1168
- i0.ɵɵtemplate(2, DynamicFormComponent_ng_container_2_Template, 3, 8, "ng-container", 2);
1169
- i0.ɵɵelementContainerEnd();
1170
- i0.ɵɵelementEnd();
1171
- i0.ɵɵtemplate(3, DynamicFormComponent_ng_template_3_Template, 8, 8, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
1172
- i0.ɵɵtemplate(5, DynamicFormComponent_ng_template_5_Template, 3, 3, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
1173
- }
1174
- if (rf & 2) {
1175
- i0.ɵɵproperty("formGroup", ctx.dynamicForm);
1176
- i0.ɵɵadvance(2);
1177
- i0.ɵɵproperty("ngForOf", ctx.getDynamicFieldsControls().controls);
1178
- }
1179
- }, 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)}"] });
1180
- (function () {
1181
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DynamicFormComponent, [{
1182
- type: Component,
1183
- 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"] }]
1184
- }], function () { return []; }, { formFields: [{
1185
- type: Input
1186
- }], formValues: [{
1187
- type: Input
1188
- }], activeBtnIconUrl: [{
1189
- type: Input
1190
- }], calendarIconUrl: [{
1191
- type: Input
1192
- }], removeIconUrl: [{
1193
- type: Input
1194
- }], removeSepratorForSubFields: [{
1195
- type: Input
1196
- }], formUpdated: [{
1197
- type: Output
1198
- }], formValid: [{
1199
- type: Output
1200
- }], formInitialized: [{
1201
- type: Output
1202
- }], fieldRemoved: [{
1203
- type: Output
1204
- }], customInputTextNumber: [{
1205
- type: ContentChild,
1206
- args: ["customInputTextNumber", { static: false }]
1207
- }], customInputTextarea: [{
1208
- type: ContentChild,
1209
- args: ["customInputTextarea", { static: false }]
1210
- }], customInputDate: [{
1211
- type: ContentChild,
1212
- args: ["customInputDate", { static: false }]
1213
- }], customBooleanToggle: [{
1214
- type: ContentChild,
1215
- args: ["customBooleanToggle", { static: false }]
1216
- }], customSingleSelectDropdown: [{
1217
- type: ContentChild,
1218
- args: ["customSingleSelectDropdown", { static: false }]
1219
- }], customSingleSelectRadio: [{
1220
- type: ContentChild,
1221
- args: ["customSingleSelectRadio", { static: false }]
1222
- }], customMultiSelectCheckbox: [{
1223
- type: ContentChild,
1224
- args: ["customMultiSelectCheckbox", { static: false }]
1225
- }], customMultiSelectDropdown: [{
1226
- type: ContentChild,
1227
- args: ["customMultiSelectDropdown", { static: false }]
1228
- }] });
1229
- })();
1230
- const dynamicFieldValidator = (validators) => {
1231
- return (control) => {
1232
- let value = control.value;
1233
- if (Array.isArray(value)) {
1234
- return null;
1235
- }
1236
- else if (typeof value === 'object') {
1237
- value = (value === null || value === void 0 ? void 0 : value.value) ? value.value : '';
1238
- }
1239
- let errors = null;
1240
- validators.forEach((validator) => {
1241
- let error = null;
1242
- let message = validator.message;
1243
- switch (validator.type) {
1244
- case "Required":
1245
- error = Validators.required(control);
1246
- if (!error && typeof value === 'string' && value.trim() === '') {
1247
- error = { Required: message };
1248
- }
1249
- if (error)
1250
- error = { Required: message };
1251
- break;
1252
- case "MinLength":
1253
- error = Validators.minLength(+validator.value)(control);
1254
- message = message.replace('${0}', error === null || error === void 0 ? void 0 : error.minlength.requiredLength);
1255
- if (error)
1256
- error = { MinLength: message };
1257
- break;
1258
- case "MaxLength":
1259
- error = Validators.maxLength(+validator.value)(control);
1260
- message = message.replace('${0}', error === null || error === void 0 ? void 0 : error.actualLength);
1261
- if (error)
1262
- error = { MaxLength: message };
1263
- break;
1264
- case "Email":
1265
- error = Validators.email(control);
1266
- if (error)
1267
- error = { Email: message };
1268
- break;
1269
- case "Custom":
1270
- error = Validators.pattern(`${validator.value}`)(control);
1271
- if (error)
1272
- error = { Custom: message };
1273
- break;
1274
- default:
1275
- break;
1276
- }
1277
- if (error)
1278
- errors = Object.assign(Object.assign({}, errors), error);
1279
- });
1280
- return errors;
1281
- };
1282
- };
1283
-
1284
- class DynamicFormModule {
1285
- static forRoot() {
1286
- return { ngModule: DynamicFormModule, providers: [] };
1287
- }
1288
- }
1289
- DynamicFormModule.ɵfac = function DynamicFormModule_Factory(t) { return new (t || DynamicFormModule)(); };
1290
- DynamicFormModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: DynamicFormModule });
1291
- DynamicFormModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
1292
- ReactiveFormsModule,
1293
- FormsModule,
1294
- OverlayModule,
1295
- ScrollingModule,
1296
- DropdownModule,
1297
- SwitchModule,
1298
- MultiSelectDropdownModule,
1299
- DatepickerModuleV2] });
1300
- (function () {
1301
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DynamicFormModule, [{
1302
- type: NgModule,
1303
- args: [{
1304
- declarations: [DynamicFormComponent],
1305
- imports: [
1306
- CommonModule,
1307
- ReactiveFormsModule,
1308
- FormsModule,
1309
- OverlayModule,
1310
- ScrollingModule,
1311
- DropdownModule,
1312
- SwitchModule,
1313
- MultiSelectDropdownModule,
1314
- DatepickerModuleV2
1315
- ],
1316
- exports: [DynamicFormComponent]
1317
- }]
1318
- }], null, null);
1319
- })();
1320
- (function () {
1321
- (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DynamicFormModule, { declarations: [DynamicFormComponent], imports: [CommonModule,
1322
- ReactiveFormsModule,
1323
- FormsModule,
1324
- OverlayModule,
1325
- ScrollingModule,
1326
- DropdownModule,
1327
- SwitchModule,
1328
- MultiSelectDropdownModule,
1329
- DatepickerModuleV2], exports: [DynamicFormComponent] });
1330
- })();
1331
-
1332
- /**
1333
- * Generated bundle index. Do not edit.
1334
- */
1335
-
1336
- export { DynamicFormComponent, DynamicFormModule };
1337
- //# sourceMappingURL=mis-crystal-design-system-dynamic-form.mjs.map