mis-crystal-design-system 14.0.0 → 14.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/esm2020/action-list/action-list.component.mjs +231 -36
  2. package/esm2020/action-list/action-list.module.mjs +13 -12
  3. package/esm2020/analytics/analytics.module.mjs +7 -7
  4. package/esm2020/analytics/analytics.service.mjs +12 -12
  5. package/esm2020/async-search-dropdown/async-dropdown.component.mjs +274 -64
  6. package/esm2020/async-search-dropdown/async-dropdown.module.mjs +13 -12
  7. package/esm2020/button/button.component.mjs +64 -29
  8. package/esm2020/button/button.directive.mjs +18 -16
  9. package/esm2020/button/button.module.mjs +13 -12
  10. package/esm2020/checkbox/checkbox.component.mjs +61 -24
  11. package/esm2020/checkbox/checkbox.module.mjs +13 -12
  12. package/esm2020/chip/chip.component.mjs +67 -21
  13. package/esm2020/chip/chip.module.mjs +13 -12
  14. package/esm2020/datepicker_v2/datepicker.module.mjs +13 -12
  15. package/esm2020/datepicker_v2/tz-datepicker.directive.mjs +44 -42
  16. package/esm2020/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +104 -10
  17. package/esm2020/daterangepicker_v2/daterangepicker.module.mjs +13 -12
  18. package/esm2020/daterangepicker_v2/tz-daterangepicker.directive.mjs +36 -34
  19. package/esm2020/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +144 -10
  20. package/esm2020/drawer/drawer-body/drawer-body.component.mjs +35 -20
  21. package/esm2020/drawer/drawer.module.mjs +12 -11
  22. package/esm2020/drawer/drawer.service.mjs +9 -9
  23. package/esm2020/dropdown/calculate-container-height.directive.mjs +13 -13
  24. package/esm2020/dropdown/dropdown.component.mjs +274 -58
  25. package/esm2020/dropdown/dropdown.module.mjs +13 -12
  26. package/esm2020/dynamic-form/dynamic-form.component.mjs +422 -21
  27. package/esm2020/dynamic-form/dynamic-form.module.mjs +25 -24
  28. package/esm2020/fab/fab.component.mjs +104 -42
  29. package/esm2020/fab/fab.module.mjs +13 -12
  30. package/esm2020/input/directives/input/input.directive.mjs +14 -14
  31. package/esm2020/input/mis-input.component.mjs +57 -22
  32. package/esm2020/input/mis-input.module.mjs +13 -12
  33. package/esm2020/input-stepper/input-stepper/input-stepper.component.mjs +39 -17
  34. package/esm2020/input-stepper/input-stepper.module.mjs +19 -18
  35. package/esm2020/loader/loader.component.mjs +14 -9
  36. package/esm2020/loader/loader.module.mjs +13 -12
  37. package/esm2020/menu/menu-close.directive.mjs +17 -15
  38. package/esm2020/menu/menu.directive.mjs +26 -24
  39. package/esm2020/menu/menu.module.mjs +13 -12
  40. package/esm2020/mobile-filter/mobile-filter.component.mjs +138 -25
  41. package/esm2020/mobile-filter/mobile-filter.module.mjs +13 -12
  42. package/esm2020/modal/modal.module.mjs +12 -11
  43. package/esm2020/modal/modal.service.mjs +9 -9
  44. package/esm2020/modal/module-wrapper/module-wrapper.component.mjs +41 -26
  45. package/esm2020/multi-select-dropdown/multi-select-dropdown.component.mjs +229 -45
  46. package/esm2020/multi-select-dropdown/multi-select-dropdown.module.mjs +13 -12
  47. package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +234 -37
  48. package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +13 -12
  49. package/esm2020/phone-input/phone-input.component.mjs +54 -41
  50. package/esm2020/phone-input/phone-input.module.mjs +13 -12
  51. package/esm2020/radio-button/radio-button.component.mjs +26 -19
  52. package/esm2020/radio-button/radio-button.module.mjs +13 -12
  53. package/esm2020/ske-loader/ske-loader.component.mjs +36 -17
  54. package/esm2020/ske-loader/ske-loader.module.mjs +13 -12
  55. package/esm2020/slider/slider.component.mjs +23 -15
  56. package/esm2020/slider/slider.module.mjs +21 -20
  57. package/esm2020/snackbar/snackbar/snackbar.component.mjs +61 -11
  58. package/esm2020/snackbar/snackbar.module.mjs +17 -16
  59. package/esm2020/snackbar/snackbar.service.mjs +9 -9
  60. package/esm2020/specificdatepicker/specificdatepicker.module.mjs +13 -12
  61. package/esm2020/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +273 -13
  62. package/esm2020/specificdatepicker/tz-specificdatepicker.directive.mjs +48 -46
  63. package/esm2020/star-rating/star-rating.component.mjs +52 -26
  64. package/esm2020/star-rating/star-rating.module.mjs +13 -12
  65. package/esm2020/switch/switch.component.mjs +29 -17
  66. package/esm2020/switch/switch.module.mjs +13 -12
  67. package/esm2020/table/custom-table-cell.directive.mjs +13 -13
  68. package/esm2020/table/filter/filter.component.mjs +105 -16
  69. package/esm2020/table/sub-table/sub-table.component.mjs +138 -14
  70. package/esm2020/table/table.component.mjs +301 -35
  71. package/esm2020/table/table.module.mjs +13 -12
  72. package/esm2020/timepicker/timepicker.component.mjs +114 -47
  73. package/esm2020/timepicker/timepicker.directive.mjs +17 -17
  74. package/esm2020/timepicker/timepicker.module.mjs +13 -12
  75. package/esm2020/timerangepicker/timerangepicker.component.mjs +58 -36
  76. package/esm2020/timerangepicker/timerangepicker.module.mjs +13 -12
  77. package/esm2020/toast/toast.component.mjs +40 -23
  78. package/esm2020/toast/toast.data.service.mjs +9 -9
  79. package/esm2020/toast/toast.module.mjs +12 -11
  80. package/esm2020/toast/toast.service.mjs +9 -9
  81. package/esm2020/tooltip/tooltip-container/tooltip.component.mjs +54 -10
  82. package/esm2020/tooltip/tooltip.directive.mjs +29 -27
  83. package/esm2020/tooltip/tooltip.module.mjs +13 -12
  84. package/esm2020/virtual-scroll/virtual-scroll.component.mjs +92 -18
  85. package/esm2020/virtual-scroll/virtual-scroll.module.mjs +21 -20
  86. package/esm2020/widgets/services/widget.service.mjs +6 -6
  87. package/esm2020/widgets/widgets.module.mjs +13 -12
  88. package/fesm2015/mis-crystal-design-system-action-list.mjs +256 -10
  89. package/fesm2015/mis-crystal-design-system-action-list.mjs.map +1 -1
  90. package/fesm2015/mis-crystal-design-system-analytics.mjs +14 -10
  91. package/fesm2015/mis-crystal-design-system-analytics.mjs.map +1 -1
  92. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs +279 -10
  93. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
  94. package/fesm2015/mis-crystal-design-system-button.mjs +70 -15
  95. package/fesm2015/mis-crystal-design-system-button.mjs.map +1 -1
  96. package/fesm2015/mis-crystal-design-system-checkbox.mjs +64 -10
  97. package/fesm2015/mis-crystal-design-system-checkbox.mjs.map +1 -1
  98. package/fesm2015/mis-crystal-design-system-chip.mjs +72 -10
  99. package/fesm2015/mis-crystal-design-system-chip.mjs.map +1 -1
  100. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs +136 -16
  101. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
  102. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs +182 -16
  103. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
  104. package/fesm2015/mis-crystal-design-system-drawer.mjs +47 -19
  105. package/fesm2015/mis-crystal-design-system-drawer.mjs.map +1 -1
  106. package/fesm2015/mis-crystal-design-system-dropdown.mjs +290 -15
  107. package/fesm2015/mis-crystal-design-system-dropdown.mjs.map +1 -1
  108. package/fesm2015/mis-crystal-design-system-dynamic-form.mjs +510 -18
  109. package/fesm2015/mis-crystal-design-system-dynamic-form.mjs.map +1 -1
  110. package/fesm2015/mis-crystal-design-system-fab.mjs +107 -23
  111. package/fesm2015/mis-crystal-design-system-fab.mjs.map +1 -1
  112. package/fesm2015/mis-crystal-design-system-input-stepper.mjs +40 -10
  113. package/fesm2015/mis-crystal-design-system-input-stepper.mjs.map +1 -1
  114. package/fesm2015/mis-crystal-design-system-input.mjs +65 -15
  115. package/fesm2015/mis-crystal-design-system-input.mjs.map +1 -1
  116. package/fesm2015/mis-crystal-design-system-loader.mjs +23 -10
  117. package/fesm2015/mis-crystal-design-system-loader.mjs.map +1 -1
  118. package/fesm2015/mis-crystal-design-system-menu.mjs +30 -15
  119. package/fesm2015/mis-crystal-design-system-menu.mjs.map +1 -1
  120. package/fesm2015/mis-crystal-design-system-mobile-filter.mjs +148 -10
  121. package/fesm2015/mis-crystal-design-system-mobile-filter.mjs.map +1 -1
  122. package/fesm2015/mis-crystal-design-system-modal.mjs +50 -22
  123. package/fesm2015/mis-crystal-design-system-modal.mjs.map +1 -1
  124. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs +238 -10
  125. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
  126. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs +252 -10
  127. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
  128. package/fesm2015/mis-crystal-design-system-phone-input.mjs +31 -10
  129. package/fesm2015/mis-crystal-design-system-phone-input.mjs.map +1 -1
  130. package/fesm2015/mis-crystal-design-system-radio-button.mjs +25 -10
  131. package/fesm2015/mis-crystal-design-system-radio-button.mjs.map +1 -1
  132. package/fesm2015/mis-crystal-design-system-ske-loader.mjs +40 -10
  133. package/fesm2015/mis-crystal-design-system-ske-loader.mjs.map +1 -1
  134. package/fesm2015/mis-crystal-design-system-slider.mjs +30 -12
  135. package/fesm2015/mis-crystal-design-system-slider.mjs.map +1 -1
  136. package/fesm2015/mis-crystal-design-system-snackbar.mjs +85 -14
  137. package/fesm2015/mis-crystal-design-system-snackbar.mjs.map +1 -1
  138. package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs +332 -17
  139. package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
  140. package/fesm2015/mis-crystal-design-system-star-rating.mjs +47 -10
  141. package/fesm2015/mis-crystal-design-system-star-rating.mjs.map +1 -1
  142. package/fesm2015/mis-crystal-design-system-switch.mjs +30 -10
  143. package/fesm2015/mis-crystal-design-system-switch.mjs.map +1 -1
  144. package/fesm2015/mis-crystal-design-system-table.mjs +620 -25
  145. package/fesm2015/mis-crystal-design-system-table.mjs.map +1 -1
  146. package/fesm2015/mis-crystal-design-system-timepicker.mjs +106 -15
  147. package/fesm2015/mis-crystal-design-system-timepicker.mjs.map +1 -1
  148. package/fesm2015/mis-crystal-design-system-timerangepicker.mjs +43 -11
  149. package/fesm2015/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
  150. package/fesm2015/mis-crystal-design-system-toast.mjs +57 -25
  151. package/fesm2015/mis-crystal-design-system-toast.mjs.map +1 -1
  152. package/fesm2015/mis-crystal-design-system-tooltip.mjs +87 -15
  153. package/fesm2015/mis-crystal-design-system-tooltip.mjs.map +1 -1
  154. package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs +117 -12
  155. package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs.map +1 -1
  156. package/fesm2015/mis-crystal-design-system-widgets.mjs +8 -5
  157. package/fesm2015/mis-crystal-design-system-widgets.mjs.map +1 -1
  158. package/fesm2020/mis-crystal-design-system-action-list.mjs +242 -46
  159. package/fesm2020/mis-crystal-design-system-action-list.mjs.map +1 -1
  160. package/fesm2020/mis-crystal-design-system-analytics.mjs +17 -17
  161. package/fesm2020/mis-crystal-design-system-analytics.mjs.map +1 -1
  162. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs +285 -74
  163. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
  164. package/fesm2020/mis-crystal-design-system-button.mjs +92 -54
  165. package/fesm2020/mis-crystal-design-system-button.mjs.map +1 -1
  166. package/fesm2020/mis-crystal-design-system-checkbox.mjs +72 -34
  167. package/fesm2020/mis-crystal-design-system-checkbox.mjs.map +1 -1
  168. package/fesm2020/mis-crystal-design-system-chip.mjs +78 -31
  169. package/fesm2020/mis-crystal-design-system-chip.mjs.map +1 -1
  170. package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs +158 -61
  171. package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
  172. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs +190 -53
  173. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
  174. package/fesm2020/mis-crystal-design-system-drawer.mjs +53 -37
  175. package/fesm2020/mis-crystal-design-system-drawer.mjs.map +1 -1
  176. package/fesm2020/mis-crystal-design-system-dropdown.mjs +297 -80
  177. package/fesm2020/mis-crystal-design-system-dropdown.mjs.map +1 -1
  178. package/fesm2020/mis-crystal-design-system-dynamic-form.mjs +445 -43
  179. package/fesm2020/mis-crystal-design-system-dynamic-form.mjs.map +1 -1
  180. package/fesm2020/mis-crystal-design-system-fab.mjs +115 -52
  181. package/fesm2020/mis-crystal-design-system-fab.mjs.map +1 -1
  182. package/fesm2020/mis-crystal-design-system-input-stepper.mjs +56 -33
  183. package/fesm2020/mis-crystal-design-system-input-stepper.mjs.map +1 -1
  184. package/fesm2020/mis-crystal-design-system-input.mjs +81 -45
  185. package/fesm2020/mis-crystal-design-system-input.mjs.map +1 -1
  186. package/fesm2020/mis-crystal-design-system-loader.mjs +25 -19
  187. package/fesm2020/mis-crystal-design-system-loader.mjs.map +1 -1
  188. package/fesm2020/mis-crystal-design-system-menu.mjs +53 -48
  189. package/fesm2020/mis-crystal-design-system-menu.mjs.map +1 -1
  190. package/fesm2020/mis-crystal-design-system-mobile-filter.mjs +149 -35
  191. package/fesm2020/mis-crystal-design-system-mobile-filter.mjs.map +1 -1
  192. package/fesm2020/mis-crystal-design-system-modal.mjs +59 -43
  193. package/fesm2020/mis-crystal-design-system-modal.mjs.map +1 -1
  194. package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs +240 -55
  195. package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
  196. package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs +245 -47
  197. package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
  198. package/fesm2020/mis-crystal-design-system-phone-input.mjs +65 -51
  199. package/fesm2020/mis-crystal-design-system-phone-input.mjs.map +1 -1
  200. package/fesm2020/mis-crystal-design-system-radio-button.mjs +37 -29
  201. package/fesm2020/mis-crystal-design-system-radio-button.mjs.map +1 -1
  202. package/fesm2020/mis-crystal-design-system-ske-loader.mjs +47 -27
  203. package/fesm2020/mis-crystal-design-system-ske-loader.mjs.map +1 -1
  204. package/fesm2020/mis-crystal-design-system-slider.mjs +42 -33
  205. package/fesm2020/mis-crystal-design-system-slider.mjs.map +1 -1
  206. package/fesm2020/mis-crystal-design-system-snackbar.mjs +84 -33
  207. package/fesm2020/mis-crystal-design-system-snackbar.mjs.map +1 -1
  208. package/fesm2020/mis-crystal-design-system-specificdatepicker.mjs +331 -68
  209. package/fesm2020/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
  210. package/fesm2020/mis-crystal-design-system-star-rating.mjs +63 -36
  211. package/fesm2020/mis-crystal-design-system-star-rating.mjs.map +1 -1
  212. package/fesm2020/mis-crystal-design-system-switch.mjs +40 -27
  213. package/fesm2020/mis-crystal-design-system-switch.mjs.map +1 -1
  214. package/fesm2020/mis-crystal-design-system-table.mjs +565 -85
  215. package/fesm2020/mis-crystal-design-system-table.mjs.map +1 -1
  216. package/fesm2020/mis-crystal-design-system-timepicker.mjs +141 -73
  217. package/fesm2020/mis-crystal-design-system-timepicker.mjs.map +1 -1
  218. package/fesm2020/mis-crystal-design-system-timerangepicker.mjs +69 -46
  219. package/fesm2020/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
  220. package/fesm2020/mis-crystal-design-system-toast.mjs +66 -48
  221. package/fesm2020/mis-crystal-design-system-toast.mjs.map +1 -1
  222. package/fesm2020/mis-crystal-design-system-tooltip.mjs +93 -46
  223. package/fesm2020/mis-crystal-design-system-tooltip.mjs.map +1 -1
  224. package/fesm2020/mis-crystal-design-system-virtual-scroll.mjs +111 -36
  225. package/fesm2020/mis-crystal-design-system-virtual-scroll.mjs.map +1 -1
  226. package/fesm2020/mis-crystal-design-system-widgets.mjs +12 -11
  227. package/fesm2020/mis-crystal-design-system-widgets.mjs.map +1 -1
  228. package/package.json +5 -2
@@ -12,6 +12,207 @@ import { CheckboxModule } from 'mis-crystal-design-system/checkbox';
12
12
  import * as i5 from 'mis-crystal-design-system/button';
13
13
  import { ButtonModule } from 'mis-crystal-design-system/button';
14
14
 
15
+ const _c0 = ["select"];
16
+ const _c1 = ["popupContainer"];
17
+ function NestedMultiSelectDropdownComponent_p_6_Template(rf, ctx) {
18
+ if (rf & 1) {
19
+ i0.ɵɵelementStart(0, "p", 9);
20
+ i0.ɵɵtext(1);
21
+ i0.ɵɵelementEnd();
22
+ }
23
+ if (rf & 2) {
24
+ const ctx_r1 = i0.ɵɵnextContext();
25
+ i0.ɵɵadvance(1);
26
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.selectedCount, " ");
27
+ }
28
+ }
29
+ function NestedMultiSelectDropdownComponent_ng_template_9_div_1__svg_svg_1_Template(rf, ctx) {
30
+ if (rf & 1) {
31
+ i0.ɵɵnamespaceSVG();
32
+ i0.ɵɵelementStart(0, "svg", 20);
33
+ i0.ɵɵelement(1, "path", 21);
34
+ i0.ɵɵelementEnd();
35
+ }
36
+ }
37
+ function NestedMultiSelectDropdownComponent_ng_template_9_div_1__svg_svg_3_Template(rf, ctx) {
38
+ if (rf & 1) {
39
+ const _r11 = i0.ɵɵgetCurrentView();
40
+ i0.ɵɵnamespaceSVG();
41
+ i0.ɵɵelementStart(0, "svg", 22);
42
+ i0.ɵɵlistener("click", function NestedMultiSelectDropdownComponent_ng_template_9_div_1__svg_svg_3_Template__svg_svg_click_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r10.searchInputCanceled($event)); });
43
+ i0.ɵɵelement(1, "path", 23);
44
+ i0.ɵɵelementEnd();
45
+ }
46
+ }
47
+ const _c2 = function (a0, a1, a2) { return { paddingLeft: a0, border: a1, paddingRight: a2 }; };
48
+ function NestedMultiSelectDropdownComponent_ng_template_9_div_1_Template(rf, ctx) {
49
+ if (rf & 1) {
50
+ const _r13 = i0.ɵɵgetCurrentView();
51
+ i0.ɵɵelementStart(0, "div", 16);
52
+ i0.ɵɵtemplate(1, NestedMultiSelectDropdownComponent_ng_template_9_div_1__svg_svg_1_Template, 2, 0, "svg", 17);
53
+ i0.ɵɵelementStart(2, "input", 18);
54
+ i0.ɵɵlistener("ngModelChange", function NestedMultiSelectDropdownComponent_ng_template_9_div_1_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.searchInputOnChange($event)); })("focus", function NestedMultiSelectDropdownComponent_ng_template_9_div_1_Template_input_focus_2_listener() { i0.ɵɵrestoreView(_r13); const ctx_r14 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r14.searchInputFocused(true)); });
55
+ i0.ɵɵelementEnd();
56
+ i0.ɵɵtemplate(3, NestedMultiSelectDropdownComponent_ng_template_9_div_1__svg_svg_3_Template, 2, 0, "svg", 19);
57
+ i0.ɵɵelementEnd();
58
+ }
59
+ if (rf & 2) {
60
+ const ctx_r4 = i0.ɵɵnextContext(2);
61
+ i0.ɵɵadvance(1);
62
+ i0.ɵɵproperty("ngIf", !ctx_r4.isSearchInputFocused);
63
+ i0.ɵɵadvance(1);
64
+ i0.ɵɵproperty("ngModel", ctx_r4.searchInput)("ngStyle", i0.ɵɵpureFunction3(5, _c2, ctx_r4.isSearchInputFocused ? "12px" : "45px", ctx_r4.isSearchInputFocused ? "1px solid #0937B2" : "1px solid #e0e0e0", ctx_r4.isSearchInputFocused ? "45px" : "10px"))("placeholder", ctx_r4.isSearchInputFocused ? "" : "Search Keyword");
65
+ i0.ɵɵadvance(1);
66
+ i0.ɵɵproperty("ngIf", ctx_r4.isSearchInputFocused);
67
+ }
68
+ }
69
+ function NestedMultiSelectDropdownComponent_ng_template_9_div_3_div_7_Template(rf, ctx) {
70
+ if (rf & 1) {
71
+ i0.ɵɵelementStart(0, "div", 31);
72
+ i0.ɵɵelement(1, "img", 32);
73
+ i0.ɵɵelementEnd();
74
+ }
75
+ if (rf & 2) {
76
+ const item_r15 = i0.ɵɵnextContext().$implicit;
77
+ i0.ɵɵadvance(1);
78
+ i0.ɵɵproperty("src", item_r15.icon, i0.ɵɵsanitizeUrl);
79
+ }
80
+ }
81
+ function NestedMultiSelectDropdownComponent_ng_template_9_div_3_div_8_div_1_div_6_Template(rf, ctx) {
82
+ if (rf & 1) {
83
+ i0.ɵɵelementStart(0, "div", 31);
84
+ i0.ɵɵelement(1, "img", 32);
85
+ i0.ɵɵelementEnd();
86
+ }
87
+ if (rf & 2) {
88
+ const cItem_r20 = i0.ɵɵnextContext().$implicit;
89
+ i0.ɵɵadvance(1);
90
+ i0.ɵɵproperty("src", cItem_r20.icon, i0.ɵɵsanitizeUrl);
91
+ }
92
+ }
93
+ function NestedMultiSelectDropdownComponent_ng_template_9_div_3_div_8_div_1_Template(rf, ctx) {
94
+ if (rf & 1) {
95
+ const _r25 = i0.ɵɵgetCurrentView();
96
+ i0.ɵɵelementStart(0, "div", 35);
97
+ i0.ɵɵlistener("keyup.enter", function NestedMultiSelectDropdownComponent_ng_template_9_div_3_div_8_div_1_Template_div_keyup_enter_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r25); const cItem_r20 = restoredCtx.$implicit; const item_r15 = i0.ɵɵnextContext(2).$implicit; const ctx_r23 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r23.toggleSelectedItems($event, item_r15, cItem_r20)); })("click", function NestedMultiSelectDropdownComponent_ng_template_9_div_3_div_8_div_1_Template_div_click_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r25); const cItem_r20 = restoredCtx.$implicit; const item_r15 = i0.ɵɵnextContext(2).$implicit; const ctx_r26 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r26.toggleSelectedItems($event, item_r15, cItem_r20)); });
98
+ i0.ɵɵelementStart(1, "div", 26)(2, "div", 27);
99
+ i0.ɵɵelement(3, "mis-checkbox", 28);
100
+ i0.ɵɵelementEnd();
101
+ i0.ɵɵelementStart(4, "p", 3);
102
+ i0.ɵɵtext(5);
103
+ i0.ɵɵelementEnd()();
104
+ i0.ɵɵtemplate(6, NestedMultiSelectDropdownComponent_ng_template_9_div_3_div_8_div_1_div_6_Template, 2, 1, "div", 29);
105
+ i0.ɵɵelementEnd();
106
+ }
107
+ if (rf & 2) {
108
+ const cItem_r20 = ctx.$implicit;
109
+ i0.ɵɵadvance(3);
110
+ i0.ɵɵproperty("checked", cItem_r20.checked);
111
+ i0.ɵɵadvance(2);
112
+ i0.ɵɵtextInterpolate1(" ", cItem_r20.label, " ");
113
+ i0.ɵɵadvance(1);
114
+ i0.ɵɵproperty("ngIf", cItem_r20.icon);
115
+ }
116
+ }
117
+ function NestedMultiSelectDropdownComponent_ng_template_9_div_3_div_8_Template(rf, ctx) {
118
+ if (rf & 1) {
119
+ i0.ɵɵelementStart(0, "div", 33);
120
+ i0.ɵɵtemplate(1, NestedMultiSelectDropdownComponent_ng_template_9_div_3_div_8_div_1_Template, 7, 3, "div", 34);
121
+ i0.ɵɵelementEnd();
122
+ }
123
+ if (rf & 2) {
124
+ const item_r15 = i0.ɵɵnextContext().$implicit;
125
+ i0.ɵɵadvance(1);
126
+ i0.ɵɵproperty("ngForOf", item_r15 == null ? null : item_r15.children);
127
+ }
128
+ }
129
+ function NestedMultiSelectDropdownComponent_ng_template_9_div_3_Template(rf, ctx) {
130
+ if (rf & 1) {
131
+ const _r30 = i0.ɵɵgetCurrentView();
132
+ i0.ɵɵelementStart(0, "div", 24);
133
+ i0.ɵɵlistener("keyup.enter", function NestedMultiSelectDropdownComponent_ng_template_9_div_3_Template_div_keyup_enter_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r30); const item_r15 = restoredCtx.$implicit; const ctx_r29 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r29.toggleSelectedItems($event, item_r15)); })("click", function NestedMultiSelectDropdownComponent_ng_template_9_div_3_Template_div_click_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r30); const item_r15 = restoredCtx.$implicit; const ctx_r31 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r31.toggleSelectedItems($event, item_r15)); });
134
+ i0.ɵɵelementStart(1, "div", 25)(2, "div", 26)(3, "div", 27);
135
+ i0.ɵɵelement(4, "mis-checkbox", 28);
136
+ i0.ɵɵelementEnd();
137
+ i0.ɵɵelementStart(5, "p", 3);
138
+ i0.ɵɵtext(6);
139
+ i0.ɵɵelementEnd()();
140
+ i0.ɵɵtemplate(7, NestedMultiSelectDropdownComponent_ng_template_9_div_3_div_7_Template, 2, 1, "div", 29);
141
+ i0.ɵɵelementEnd();
142
+ i0.ɵɵtemplate(8, NestedMultiSelectDropdownComponent_ng_template_9_div_3_div_8_Template, 2, 1, "div", 30);
143
+ i0.ɵɵelementEnd();
144
+ }
145
+ if (rf & 2) {
146
+ const item_r15 = ctx.$implicit;
147
+ i0.ɵɵadvance(4);
148
+ i0.ɵɵproperty("checked", item_r15.checked);
149
+ i0.ɵɵadvance(2);
150
+ i0.ɵɵtextInterpolate1(" ", item_r15.label, " ");
151
+ i0.ɵɵadvance(1);
152
+ i0.ɵɵproperty("ngIf", item_r15.icon);
153
+ i0.ɵɵadvance(1);
154
+ i0.ɵɵproperty("ngIf", (item_r15 == null ? null : item_r15.children == null ? null : item_r15.children.length) > 0);
155
+ }
156
+ }
157
+ function NestedMultiSelectDropdownComponent_ng_template_9_div_4_Template(rf, ctx) {
158
+ if (rf & 1) {
159
+ i0.ɵɵelementStart(0, "div", 36);
160
+ i0.ɵɵtext(1);
161
+ i0.ɵɵelementEnd();
162
+ }
163
+ if (rf & 2) {
164
+ const ctx_r6 = i0.ɵɵnextContext(2);
165
+ i0.ɵɵadvance(1);
166
+ i0.ɵɵtextInterpolate1(" ", ctx_r6.searchInput === "" ? ctx_r6.noDataMessage : "No results", " ");
167
+ }
168
+ }
169
+ function NestedMultiSelectDropdownComponent_ng_template_9_div_5_Template(rf, ctx) {
170
+ if (rf & 1) {
171
+ const _r33 = i0.ɵɵgetCurrentView();
172
+ i0.ɵɵelementStart(0, "div", 37)(1, "div", 38)(2, "mis-button", 39);
173
+ i0.ɵɵlistener("click", function NestedMultiSelectDropdownComponent_ng_template_9_div_5_Template_mis_button_click_2_listener() { i0.ɵɵrestoreView(_r33); const ctx_r32 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r32.onReset()); });
174
+ i0.ɵɵelementEnd()();
175
+ i0.ɵɵelementStart(3, "div", 38)(4, "mis-button", 39);
176
+ i0.ɵɵlistener("click", function NestedMultiSelectDropdownComponent_ng_template_9_div_5_Template_mis_button_click_4_listener() { i0.ɵɵrestoreView(_r33); const ctx_r34 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r34.applyFilters()); });
177
+ i0.ɵɵelementEnd()()();
178
+ }
179
+ if (rf & 2) {
180
+ i0.ɵɵadvance(2);
181
+ i0.ɵɵproperty("name", "Reset")("type", "Text")("width", "100%");
182
+ i0.ɵɵadvance(2);
183
+ i0.ɵɵproperty("name", "Apply")("type", "Solid")("width", "100%");
184
+ }
185
+ }
186
+ const _c3 = function (a0, a1) { return { height: a0, width: a1 }; };
187
+ const _c4 = function (a0, a1) { return { "position-left": a0, "position-right": a1 }; };
188
+ function NestedMultiSelectDropdownComponent_ng_template_9_Template(rf, ctx) {
189
+ if (rf & 1) {
190
+ i0.ɵɵnamespaceSVG();
191
+ i0.ɵɵnamespaceHTML();
192
+ i0.ɵɵelementStart(0, "div", 10);
193
+ i0.ɵɵtemplate(1, NestedMultiSelectDropdownComponent_ng_template_9_div_1_Template, 4, 9, "div", 11);
194
+ i0.ɵɵelementStart(2, "div", 12);
195
+ i0.ɵɵtemplate(3, NestedMultiSelectDropdownComponent_ng_template_9_div_3_Template, 9, 4, "div", 13);
196
+ i0.ɵɵtemplate(4, NestedMultiSelectDropdownComponent_ng_template_9_div_4_Template, 2, 1, "div", 14);
197
+ i0.ɵɵelementEnd();
198
+ i0.ɵɵtemplate(5, NestedMultiSelectDropdownComponent_ng_template_9_div_5_Template, 5, 6, "div", 15);
199
+ i0.ɵɵelementEnd();
200
+ }
201
+ if (rf & 2) {
202
+ const ctx_r3 = i0.ɵɵnextContext();
203
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(6, _c3, ctx_r3.dropdownListHeight, ctx_r3.dropdownListWidth))("ngClass", i0.ɵɵpureFunction2(9, _c4, ctx_r3.dropdownListPosition === "Left", ctx_r3.dropdownListPosition === "Right"));
204
+ i0.ɵɵadvance(1);
205
+ i0.ɵɵproperty("ngIf", ctx_r3.searchEnabled);
206
+ i0.ɵɵadvance(2);
207
+ i0.ɵɵproperty("ngForOf", ctx_r3.searchInput ? ctx_r3.searchData : ctx_r3.localData);
208
+ i0.ɵɵadvance(1);
209
+ i0.ɵɵproperty("ngIf", (ctx_r3.searchInput ? ctx_r3.searchData : ctx_r3.localData).length === 0);
210
+ i0.ɵɵadvance(1);
211
+ i0.ɵɵproperty("ngIf", ctx_r3.localData.length !== 0);
212
+ }
213
+ }
214
+ const _c5 = function (a0) { return { background: a0 }; };
215
+ const _c6 = function (a0) { return { transform: a0 }; };
15
216
  class NestedMultiSelectDropdownComponent {
16
217
  constructor(eRef, overlay, viewContainerRef) {
17
218
  this.eRef = eRef;
@@ -248,12 +449,49 @@ class NestedMultiSelectDropdownComponent {
248
449
  this.searchInput = "";
249
450
  }
250
451
  }
251
- NestedMultiSelectDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NestedMultiSelectDropdownComponent, deps: [{ token: i0.ElementRef }, { token: i1.Overlay }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
252
- NestedMultiSelectDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NestedMultiSelectDropdownComponent, selector: "mis-nested-multi-select-dropdown", inputs: { data: "data", label: "label", height: "height", width: "width", dropdownListHeight: "dropdownListHeight", dropdownListWidth: "dropdownListWidth", dropdownListPosition: "dropdownListPosition", searchEnabled: "searchEnabled", showSelectedCount: "showSelectedCount", noDataMessage: "noDataMessage", selectedItems: "selectedItems" }, outputs: { onChange: "onChange" }, viewQueries: [{ propertyName: "selectElement", first: true, predicate: ["select"], descendants: true }, { propertyName: "popupContainer", first: true, predicate: ["popupContainer"], descendants: true }], ngImport: i0, template: "<div\n class=\"container\"\n [ngStyle]=\"{\n height: height.length > 0 ? height : '',\n width: width.length > 0 ? width : ''\n }\"\n>\n <div\n class=\"dropdown\"\n #select\n tabindex=\"0\"\n (keyup.enter)=\"toggleDropdown()\"\n (click)=\"toggleDropdown()\"\n [ngStyle]=\"{ background: isOpen ? '#E6EBF7' : '' }\"\n >\n <div class=\"label\">\n <p class=\"text\">{{ label }}</p>\n <p *ngIf=\"showSelectedCount && selectedCount > 0\" class=\"count\">\n {{ selectedCount }}\n </p>\n </div>\n <svg\n class=\"handle\"\n [ngStyle]=\"{ transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)' }\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.825 7.15845L10 10.9751L6.175 7.15845L5 8.33345L10 13.3334L15 8.33345L13.825 7.15845Z\"\n fill=\"#181F33\"\n />\n </svg>\n </div>\n</div>\n<ng-template #popupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n [ngClass]=\"{\n 'position-left': dropdownListPosition === 'Left',\n 'position-right': dropdownListPosition === 'Right'\n }\"\n >\n <div *ngIf=\"searchEnabled\" class=\"search-container\">\n <svg\n *ngIf=\"!isSearchInputFocused\"\n class=\"search-icon\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4.21508 11.1456C4.21508 7.3179 7.33722 4.21165 11.1926 4.21165C15.048 4.21165 18.1702 7.3179 18.1702 11.1456C18.1702 12.6931 17.6599 14.1226 16.7972 15.2767L15.3685 16.7013C14.2044 17.5668 12.759 18.0796 11.1926 18.0796C7.33722 18.0796 4.21508 14.9734 4.21508 11.1456ZM15.9421 17.7835C14.6021 18.7329 12.9627 19.2913 11.1926 19.2913C6.66977 19.2913 3 15.6461 3 11.1456C3 6.64512 6.66977 3 11.1926 3C15.7155 3 19.3852 6.64512 19.3852 11.1456C19.3852 12.9371 18.8037 14.5931 17.8184 15.9375L19.8361 17.4048C20.6705 17.912 21.7554 18.6543 20.2454 20.215C18.7353 21.7756 18.0099 20.6663 17.4991 19.8364L15.9421 17.7835Z\"\n fill=\"#6A737D\"\n />\n </svg>\n <input\n [ngModel]=\"searchInput\"\n [ngStyle]=\"{\n paddingLeft: isSearchInputFocused ? '12px' : '45px',\n border: isSearchInputFocused ? '1px solid #0937B2' : '1px solid #e0e0e0',\n paddingRight: isSearchInputFocused ? '45px' : '10px'\n }\"\n (ngModelChange)=\"searchInputOnChange($event)\"\n [placeholder]=\"isSearchInputFocused ? '' : 'Search Keyword'\"\n (focus)=\"searchInputFocused(true)\"\n class=\"search-input\"\n />\n <svg\n *ngIf=\"isSearchInputFocused\"\n class=\"cancel-icon\"\n (click)=\"searchInputCanceled($event)\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M8.87446 7.32144C8.44588 6.89285 7.751 6.89285 7.32242 7.32144C6.89383 7.75002 6.89383 8.4449 7.32242 8.87349L10.4488 11.9999L7.32357 15.1252C6.89498 15.5538 6.89498 16.2486 7.32357 16.6772C7.75215 17.1058 8.44703 17.1058 8.87561 16.6772L12.0009 13.552L15.1261 16.6772C15.5547 17.1058 16.2496 17.1058 16.6781 16.6772C17.1067 16.2486 17.1067 15.5537 16.6781 15.1251L13.5529 11.9999L16.6793 8.87354C17.1079 8.44496 17.1079 7.75008 16.6793 7.3215C16.2507 6.89291 15.5558 6.89291 15.1273 7.3215L12.0009 10.4479L8.87446 7.32144Z\"\n fill=\"#6A737D\"\n />\n </svg>\n </div>\n <div class=\"items\">\n <div\n tabindex=\"0\"\n (keyup.enter)=\"toggleSelectedItems($event, item)\"\n (click)=\"toggleSelectedItems($event, item)\"\n *ngFor=\"let item of searchInput ? searchData : localData\"\n >\n <div class=\"item\">\n <div class=\"checkbox-container-wrapper\">\n <div class=\"checkbox-container\">\n <mis-checkbox [checked]=\"item.checked\"></mis-checkbox>\n </div>\n <p class=\"label\">\n {{ item.label }}\n </p>\n </div>\n <div class=\"icon-container\" *ngIf=\"item.icon\">\n <img class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n </div>\n </div>\n <div *ngIf=\"item?.children?.length > 0\" class=\"items sub\" style=\"padding-right: 0\">\n <div\n class=\"item\"\n tabindex=\"0\"\n (keyup.enter)=\"toggleSelectedItems($event, item, cItem)\"\n (click)=\"toggleSelectedItems($event, item, cItem)\"\n *ngFor=\"let cItem of item?.children\"\n >\n <div class=\"checkbox-container-wrapper\">\n <div class=\"checkbox-container\">\n <mis-checkbox [checked]=\"cItem.checked\"></mis-checkbox>\n </div>\n <p class=\"label\">\n {{ cItem.label }}\n </p>\n </div>\n <div class=\"icon-container\" *ngIf=\"cItem.icon\">\n <img class=\"icon\" [src]=\"cItem.icon\" alt=\"no img\" />\n </div>\n </div>\n </div>\n </div>\n <div class=\"noData\" *ngIf=\"(searchInput ? searchData : localData).length === 0\">\n {{ searchInput === \"\" ? noDataMessage : \"No results\" }}\n </div>\n </div>\n <div *ngIf=\"localData.length !== 0\" class=\"actions-container\">\n <div style=\"width: calc(50% - 4px)\">\n <mis-button [name]=\"'Reset'\" [type]=\"'Text'\" [width]=\"'100%'\" (click)=\"onReset()\"></mis-button>\n </div>\n <div style=\"width: calc(50% - 4px)\">\n <mis-button [name]=\"'Apply'\" [type]=\"'Solid'\" [width]=\"'100%'\" (click)=\"applyFilters()\"></mis-button>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: ["::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:#9aa7b4}.container{position:relative;display:flex;justify-content:center;align-items:center;height:32px;width:256px;flex-wrap:wrap;font-family:Lato,sans-serif}.container .dropdown{height:inherit;border:1px solid #e0e0e0;border-radius:6px;background-color:#fff;cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 12px;overflow:hidden}.container .dropdown:hover,.container .dropdown:focus-visible{background-color:#f5f7fc;outline:none}.container .dropdown .label{display:flex;justify-content:flex-start;align-items:center;width:calc(100% - 32px);font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.container .dropdown .label .text{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.container .dropdown .label .count{background-color:#e0e0e0;border-radius:50%;padding:2px 7px;margin:0 0 0 8px;font-style:normal;font-weight:400;font-size:14px;line-height:20px;text-align:center;letter-spacing:.2px;color:#181f33}.container .dropdown .handle{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.popup-container{position:absolute;top:4px;width:100%;max-height:340px;padding-bottom:0;border:1px solid #e0e0e0;border-radius:8px;background-color:#fff;box-shadow:0 12px 24px #0000001f;overflow-x:hidden;display:flex;flex-direction:column;justify-content:space-between;z-index:100}.popup-container::-webkit-scrollbar{width:0;height:0}.popup-container .search-container{position:relative;box-sizing:border-box;padding:8px}.popup-container .search-container .search-icon{position:absolute;width:24px;height:24px;top:50%;transform:translateY(-50%);left:18px;z-index:1}.popup-container .search-container .search-input{height:40px;width:100%;padding:12px;border:1px solid #e0e0e0;box-sizing:border-box;border-radius:8px;outline:none;caret-color:#0937b2;font-style:normal;font-weight:400;font-size:12px;line-height:18px;display:flex;align-items:center;letter-spacing:.2px;color:#181f33}.popup-container .search-container .cancel-icon{position:absolute;cursor:pointer;width:24px;height:24px;top:50%;transform:translateY(-50%);right:18px;z-index:1}.popup-container .items{padding:8px 0 8px 8px;overflow-y:scroll;height:100%}.popup-container .items::-webkit-scrollbar{width:5px;height:0}.popup-container .items::-webkit-scrollbar-thumb{background:#9aa7b4;border-radius:10px}.popup-container .items .noData{display:flex;justify-content:center;align-items:center;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.popup-container .items .item{cursor:pointer;display:flex;justify-content:flex-start;align-items:center;padding:8px 12px;border-radius:6px;height:auto}.popup-container .items .item:hover,.popup-container .items .item:focus-visible{background-color:#f5f7fc;outline:none}.popup-container .items .item .checkbox-container-wrapper{display:flex;justify-content:flex-start;align-items:center;width:90%}.popup-container .items .item .checkbox-container-wrapper .checkbox-container{display:block;position:relative;cursor:pointer;font-size:22px;-webkit-user-select:none;user-select:none}.popup-container .items .item .checkbox-container-wrapper .checkbox-container input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.popup-container .items .item .checkbox-container-wrapper .checkbox-container input:checked~.checkmark:after{display:block}.popup-container .items .item .checkbox-container-wrapper .checkbox-container .checkmark{position:absolute;top:-8px;left:0;height:15px;width:15px;border-radius:4px;background-color:#0079f1;border:1px solid rgb(106,115,125)}.popup-container .items .item .checkbox-container-wrapper .checkbox-container .checkmark:after{content:\"\";position:absolute;display:none;left:5px;top:2px;width:3px;height:6px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.popup-container .items .item .checkbox-container-wrapper .label{margin:0 0 0 8px;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33;text-overflow:ellipsis;overflow:hidden}.popup-container .items .item .icon-container{width:10%;display:flex;justify-content:flex-end}.popup-container .items .item .icon-container .icon{width:20px;height:20px}.popup-container .actions-container{display:flex;justify-content:space-between;bottom:0;align-items:center;position:sticky;padding:16px;background-color:#fff;border-top:1px solid #e0e0e0}.popup-container .actions-container .cancel{cursor:pointer;padding:10px 32px;text-align:center;font-size:16px;line-height:24px;border-radius:8px}.popup-container .actions-container .cancel:hover{background:rgba(9,55,178,.04)}.popup-container .actions-container .apply{cursor:pointer;padding:10px 32px;text-align:center;color:#fff;font-size:16px;line-height:24px;background:#0937b2;border-radius:8px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.CheckboxComponent, selector: "mis-checkbox", inputs: ["type", "indeterminate", "checked", "disabled", "name", "formControl"], outputs: ["valueChange"] }, { kind: "component", type: i5.ButtonComponent, selector: "mis-button", inputs: ["name", "type", "size", "width", "showIcon", "iconUrl", "iconPosition", "disabled", "disableLeftBorderRadius", "disableRightBorderRadius"], outputs: ["click"] }] });
253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NestedMultiSelectDropdownComponent, decorators: [{
452
+ NestedMultiSelectDropdownComponent.ɵfac = function NestedMultiSelectDropdownComponent_Factory(t) { return new (t || NestedMultiSelectDropdownComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Overlay), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
453
+ NestedMultiSelectDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NestedMultiSelectDropdownComponent, selectors: [["mis-nested-multi-select-dropdown"]], viewQuery: function NestedMultiSelectDropdownComponent_Query(rf, ctx) {
454
+ if (rf & 1) {
455
+ i0.ɵɵviewQuery(_c0, 5);
456
+ i0.ɵɵviewQuery(_c1, 5);
457
+ }
458
+ if (rf & 2) {
459
+ let _t;
460
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectElement = _t.first);
461
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popupContainer = _t.first);
462
+ }
463
+ }, inputs: { data: "data", label: "label", height: "height", width: "width", dropdownListHeight: "dropdownListHeight", dropdownListWidth: "dropdownListWidth", dropdownListPosition: "dropdownListPosition", searchEnabled: "searchEnabled", showSelectedCount: "showSelectedCount", noDataMessage: "noDataMessage", selectedItems: "selectedItems" }, outputs: { onChange: "onChange" }, decls: 11, vars: 12, consts: [[1, "container", 3, "ngStyle"], ["tabindex", "0", 1, "dropdown", 3, "ngStyle", "keyup.enter", "click"], ["select", ""], [1, "label"], [1, "text"], ["class", "count", 4, "ngIf"], ["width", "20", "height", "20", "viewBox", "0 0 20 20", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", 1, "handle", 3, "ngStyle"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M13.825 7.15845L10 10.9751L6.175 7.15845L5 8.33345L10 13.3334L15 8.33345L13.825 7.15845Z", "fill", "#181F33"], ["popupContainer", ""], [1, "count"], [1, "popup-container", 3, "ngStyle", "ngClass"], ["class", "search-container", 4, "ngIf"], [1, "items"], ["tabindex", "0", 3, "keyup.enter", "click", 4, "ngFor", "ngForOf"], ["class", "noData", 4, "ngIf"], ["class", "actions-container", 4, "ngIf"], [1, "search-container"], ["class", "search-icon", "width", "24", "height", "24", "viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", 4, "ngIf"], [1, "search-input", 3, "ngModel", "ngStyle", "placeholder", "ngModelChange", "focus"], ["class", "cancel-icon", "width", "24", "height", "24", "viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", 3, "click", 4, "ngIf"], ["width", "24", "height", "24", "viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", 1, "search-icon"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M4.21508 11.1456C4.21508 7.3179 7.33722 4.21165 11.1926 4.21165C15.048 4.21165 18.1702 7.3179 18.1702 11.1456C18.1702 12.6931 17.6599 14.1226 16.7972 15.2767L15.3685 16.7013C14.2044 17.5668 12.759 18.0796 11.1926 18.0796C7.33722 18.0796 4.21508 14.9734 4.21508 11.1456ZM15.9421 17.7835C14.6021 18.7329 12.9627 19.2913 11.1926 19.2913C6.66977 19.2913 3 15.6461 3 11.1456C3 6.64512 6.66977 3 11.1926 3C15.7155 3 19.3852 6.64512 19.3852 11.1456C19.3852 12.9371 18.8037 14.5931 17.8184 15.9375L19.8361 17.4048C20.6705 17.912 21.7554 18.6543 20.2454 20.215C18.7353 21.7756 18.0099 20.6663 17.4991 19.8364L15.9421 17.7835Z", "fill", "#6A737D"], ["width", "24", "height", "24", "viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", 1, "cancel-icon", 3, "click"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M8.87446 7.32144C8.44588 6.89285 7.751 6.89285 7.32242 7.32144C6.89383 7.75002 6.89383 8.4449 7.32242 8.87349L10.4488 11.9999L7.32357 15.1252C6.89498 15.5538 6.89498 16.2486 7.32357 16.6772C7.75215 17.1058 8.44703 17.1058 8.87561 16.6772L12.0009 13.552L15.1261 16.6772C15.5547 17.1058 16.2496 17.1058 16.6781 16.6772C17.1067 16.2486 17.1067 15.5537 16.6781 15.1251L13.5529 11.9999L16.6793 8.87354C17.1079 8.44496 17.1079 7.75008 16.6793 7.3215C16.2507 6.89291 15.5558 6.89291 15.1273 7.3215L12.0009 10.4479L8.87446 7.32144Z", "fill", "#6A737D"], ["tabindex", "0", 3, "keyup.enter", "click"], [1, "item"], [1, "checkbox-container-wrapper"], [1, "checkbox-container"], [3, "checked"], ["class", "icon-container", 4, "ngIf"], ["class", "items sub", "style", "padding-right: 0", 4, "ngIf"], [1, "icon-container"], ["alt", "no img", 1, "icon", 3, "src"], [1, "items", "sub", 2, "padding-right", "0"], ["class", "item", "tabindex", "0", 3, "keyup.enter", "click", 4, "ngFor", "ngForOf"], ["tabindex", "0", 1, "item", 3, "keyup.enter", "click"], [1, "noData"], [1, "actions-container"], [2, "width", "calc(50% - 4px)"], [3, "name", "type", "width", "click"]], template: function NestedMultiSelectDropdownComponent_Template(rf, ctx) {
464
+ if (rf & 1) {
465
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1, 2);
466
+ i0.ɵɵlistener("keyup.enter", function NestedMultiSelectDropdownComponent_Template_div_keyup_enter_1_listener() { return ctx.toggleDropdown(); })("click", function NestedMultiSelectDropdownComponent_Template_div_click_1_listener() { return ctx.toggleDropdown(); });
467
+ i0.ɵɵelementStart(3, "div", 3)(4, "p", 4);
468
+ i0.ɵɵtext(5);
469
+ i0.ɵɵelementEnd();
470
+ i0.ɵɵtemplate(6, NestedMultiSelectDropdownComponent_p_6_Template, 2, 1, "p", 5);
471
+ i0.ɵɵelementEnd();
472
+ i0.ɵɵnamespaceSVG();
473
+ i0.ɵɵelementStart(7, "svg", 6);
474
+ i0.ɵɵelement(8, "path", 7);
475
+ i0.ɵɵelementEnd()()();
476
+ i0.ɵɵtemplate(9, NestedMultiSelectDropdownComponent_ng_template_9_Template, 6, 12, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor);
477
+ }
478
+ if (rf & 2) {
479
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(5, _c3, ctx.height.length > 0 ? ctx.height : "", ctx.width.length > 0 ? ctx.width : ""));
480
+ i0.ɵɵadvance(1);
481
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(8, _c5, ctx.isOpen ? "#E6EBF7" : ""));
482
+ i0.ɵɵadvance(4);
483
+ i0.ɵɵtextInterpolate(ctx.label);
484
+ i0.ɵɵadvance(1);
485
+ i0.ɵɵproperty("ngIf", ctx.showSelectedCount && ctx.selectedCount > 0);
486
+ i0.ɵɵadvance(1);
487
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(10, _c6, ctx.isOpen ? "rotate(180deg)" : "rotate(0deg)"));
488
+ }
489
+ }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgStyle, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i4.CheckboxComponent, i5.ButtonComponent], styles: ["[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#9aa7b4}.container[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:center;align-items:center;height:32px;width:256px;flex-wrap:wrap;font-family:Lato,sans-serif}.container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]{height:inherit;border:1px solid #e0e0e0;border-radius:6px;background-color:#fff;cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 12px;overflow:hidden}.container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]:focus-visible{background-color:#f5f7fc;outline:none}.container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;width:calc(100% - 32px);font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{background-color:#e0e0e0;border-radius:50%;padding:2px 7px;margin:0 0 0 8px;font-style:normal;font-weight:400;font-size:14px;line-height:20px;text-align:center;letter-spacing:.2px;color:#181f33}.container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .handle[_ngcontent-%COMP%]{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.popup-container[_ngcontent-%COMP%]{position:absolute;top:4px;width:100%;max-height:340px;padding-bottom:0;border:1px solid #e0e0e0;border-radius:8px;background-color:#fff;box-shadow:0 12px 24px #0000001f;overflow-x:hidden;display:flex;flex-direction:column;justify-content:space-between;z-index:100}.popup-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.popup-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;padding:8px}.popup-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;width:24px;height:24px;top:50%;transform:translateY(-50%);left:18px;z-index:1}.popup-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{height:40px;width:100%;padding:12px;border:1px solid #e0e0e0;box-sizing:border-box;border-radius:8px;outline:none;caret-color:#0937b2;font-style:normal;font-weight:400;font-size:12px;line-height:18px;display:flex;align-items:center;letter-spacing:.2px;color:#181f33}.popup-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] .cancel-icon[_ngcontent-%COMP%]{position:absolute;cursor:pointer;width:24px;height:24px;top:50%;transform:translateY(-50%);right:18px;z-index:1}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]{padding:8px 0 8px 8px;overflow-y:scroll;height:100%}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:0}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#9aa7b4;border-radius:10px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .noData[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:flex-start;align-items:center;padding:8px 12px;border-radius:6px;height:auto}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover, .popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:focus-visible{background-color:#f5f7fc;outline:none}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .checkbox-container-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;width:90%}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .checkbox-container-wrapper[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%]{display:block;position:relative;cursor:pointer;font-size:22px;-webkit-user-select:none;user-select:none}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .checkbox-container-wrapper[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .checkbox-container-wrapper[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .checkbox-container-wrapper[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{position:absolute;top:-8px;left:0;height:15px;width:15px;border-radius:4px;background-color:#0079f1;border:1px solid rgb(106,115,125)}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .checkbox-container-wrapper[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{content:\"\";position:absolute;display:none;left:5px;top:2px;width:3px;height:6px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .checkbox-container-wrapper[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin:0 0 0 8px;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33;text-overflow:ellipsis;overflow:hidden}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{width:10%;display:flex;justify-content:flex-end}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:20px;height:20px}.popup-container[_ngcontent-%COMP%] .actions-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;bottom:0;align-items:center;position:sticky;padding:16px;background-color:#fff;border-top:1px solid #e0e0e0}.popup-container[_ngcontent-%COMP%] .actions-container[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{cursor:pointer;padding:10px 32px;text-align:center;font-size:16px;line-height:24px;border-radius:8px}.popup-container[_ngcontent-%COMP%] .actions-container[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]:hover{background:rgba(9,55,178,.04)}.popup-container[_ngcontent-%COMP%] .actions-container[_ngcontent-%COMP%] .apply[_ngcontent-%COMP%]{cursor:pointer;padding:10px 32px;text-align:center;color:#fff;font-size:16px;line-height:24px;background:#0937b2;border-radius:8px}"] });
490
+ (function () {
491
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NestedMultiSelectDropdownComponent, [{
254
492
  type: Component,
255
493
  args: [{ selector: "mis-nested-multi-select-dropdown", template: "<div\n class=\"container\"\n [ngStyle]=\"{\n height: height.length > 0 ? height : '',\n width: width.length > 0 ? width : ''\n }\"\n>\n <div\n class=\"dropdown\"\n #select\n tabindex=\"0\"\n (keyup.enter)=\"toggleDropdown()\"\n (click)=\"toggleDropdown()\"\n [ngStyle]=\"{ background: isOpen ? '#E6EBF7' : '' }\"\n >\n <div class=\"label\">\n <p class=\"text\">{{ label }}</p>\n <p *ngIf=\"showSelectedCount && selectedCount > 0\" class=\"count\">\n {{ selectedCount }}\n </p>\n </div>\n <svg\n class=\"handle\"\n [ngStyle]=\"{ transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)' }\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.825 7.15845L10 10.9751L6.175 7.15845L5 8.33345L10 13.3334L15 8.33345L13.825 7.15845Z\"\n fill=\"#181F33\"\n />\n </svg>\n </div>\n</div>\n<ng-template #popupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n [ngClass]=\"{\n 'position-left': dropdownListPosition === 'Left',\n 'position-right': dropdownListPosition === 'Right'\n }\"\n >\n <div *ngIf=\"searchEnabled\" class=\"search-container\">\n <svg\n *ngIf=\"!isSearchInputFocused\"\n class=\"search-icon\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4.21508 11.1456C4.21508 7.3179 7.33722 4.21165 11.1926 4.21165C15.048 4.21165 18.1702 7.3179 18.1702 11.1456C18.1702 12.6931 17.6599 14.1226 16.7972 15.2767L15.3685 16.7013C14.2044 17.5668 12.759 18.0796 11.1926 18.0796C7.33722 18.0796 4.21508 14.9734 4.21508 11.1456ZM15.9421 17.7835C14.6021 18.7329 12.9627 19.2913 11.1926 19.2913C6.66977 19.2913 3 15.6461 3 11.1456C3 6.64512 6.66977 3 11.1926 3C15.7155 3 19.3852 6.64512 19.3852 11.1456C19.3852 12.9371 18.8037 14.5931 17.8184 15.9375L19.8361 17.4048C20.6705 17.912 21.7554 18.6543 20.2454 20.215C18.7353 21.7756 18.0099 20.6663 17.4991 19.8364L15.9421 17.7835Z\"\n fill=\"#6A737D\"\n />\n </svg>\n <input\n [ngModel]=\"searchInput\"\n [ngStyle]=\"{\n paddingLeft: isSearchInputFocused ? '12px' : '45px',\n border: isSearchInputFocused ? '1px solid #0937B2' : '1px solid #e0e0e0',\n paddingRight: isSearchInputFocused ? '45px' : '10px'\n }\"\n (ngModelChange)=\"searchInputOnChange($event)\"\n [placeholder]=\"isSearchInputFocused ? '' : 'Search Keyword'\"\n (focus)=\"searchInputFocused(true)\"\n class=\"search-input\"\n />\n <svg\n *ngIf=\"isSearchInputFocused\"\n class=\"cancel-icon\"\n (click)=\"searchInputCanceled($event)\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M8.87446 7.32144C8.44588 6.89285 7.751 6.89285 7.32242 7.32144C6.89383 7.75002 6.89383 8.4449 7.32242 8.87349L10.4488 11.9999L7.32357 15.1252C6.89498 15.5538 6.89498 16.2486 7.32357 16.6772C7.75215 17.1058 8.44703 17.1058 8.87561 16.6772L12.0009 13.552L15.1261 16.6772C15.5547 17.1058 16.2496 17.1058 16.6781 16.6772C17.1067 16.2486 17.1067 15.5537 16.6781 15.1251L13.5529 11.9999L16.6793 8.87354C17.1079 8.44496 17.1079 7.75008 16.6793 7.3215C16.2507 6.89291 15.5558 6.89291 15.1273 7.3215L12.0009 10.4479L8.87446 7.32144Z\"\n fill=\"#6A737D\"\n />\n </svg>\n </div>\n <div class=\"items\">\n <div\n tabindex=\"0\"\n (keyup.enter)=\"toggleSelectedItems($event, item)\"\n (click)=\"toggleSelectedItems($event, item)\"\n *ngFor=\"let item of searchInput ? searchData : localData\"\n >\n <div class=\"item\">\n <div class=\"checkbox-container-wrapper\">\n <div class=\"checkbox-container\">\n <mis-checkbox [checked]=\"item.checked\"></mis-checkbox>\n </div>\n <p class=\"label\">\n {{ item.label }}\n </p>\n </div>\n <div class=\"icon-container\" *ngIf=\"item.icon\">\n <img class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n </div>\n </div>\n <div *ngIf=\"item?.children?.length > 0\" class=\"items sub\" style=\"padding-right: 0\">\n <div\n class=\"item\"\n tabindex=\"0\"\n (keyup.enter)=\"toggleSelectedItems($event, item, cItem)\"\n (click)=\"toggleSelectedItems($event, item, cItem)\"\n *ngFor=\"let cItem of item?.children\"\n >\n <div class=\"checkbox-container-wrapper\">\n <div class=\"checkbox-container\">\n <mis-checkbox [checked]=\"cItem.checked\"></mis-checkbox>\n </div>\n <p class=\"label\">\n {{ cItem.label }}\n </p>\n </div>\n <div class=\"icon-container\" *ngIf=\"cItem.icon\">\n <img class=\"icon\" [src]=\"cItem.icon\" alt=\"no img\" />\n </div>\n </div>\n </div>\n </div>\n <div class=\"noData\" *ngIf=\"(searchInput ? searchData : localData).length === 0\">\n {{ searchInput === \"\" ? noDataMessage : \"No results\" }}\n </div>\n </div>\n <div *ngIf=\"localData.length !== 0\" class=\"actions-container\">\n <div style=\"width: calc(50% - 4px)\">\n <mis-button [name]=\"'Reset'\" [type]=\"'Text'\" [width]=\"'100%'\" (click)=\"onReset()\"></mis-button>\n </div>\n <div style=\"width: calc(50% - 4px)\">\n <mis-button [name]=\"'Apply'\" [type]=\"'Solid'\" [width]=\"'100%'\" (click)=\"applyFilters()\"></mis-button>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: ["::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:#9aa7b4}.container{position:relative;display:flex;justify-content:center;align-items:center;height:32px;width:256px;flex-wrap:wrap;font-family:Lato,sans-serif}.container .dropdown{height:inherit;border:1px solid #e0e0e0;border-radius:6px;background-color:#fff;cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 12px;overflow:hidden}.container .dropdown:hover,.container .dropdown:focus-visible{background-color:#f5f7fc;outline:none}.container .dropdown .label{display:flex;justify-content:flex-start;align-items:center;width:calc(100% - 32px);font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.container .dropdown .label .text{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.container .dropdown .label .count{background-color:#e0e0e0;border-radius:50%;padding:2px 7px;margin:0 0 0 8px;font-style:normal;font-weight:400;font-size:14px;line-height:20px;text-align:center;letter-spacing:.2px;color:#181f33}.container .dropdown .handle{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.popup-container{position:absolute;top:4px;width:100%;max-height:340px;padding-bottom:0;border:1px solid #e0e0e0;border-radius:8px;background-color:#fff;box-shadow:0 12px 24px #0000001f;overflow-x:hidden;display:flex;flex-direction:column;justify-content:space-between;z-index:100}.popup-container::-webkit-scrollbar{width:0;height:0}.popup-container .search-container{position:relative;box-sizing:border-box;padding:8px}.popup-container .search-container .search-icon{position:absolute;width:24px;height:24px;top:50%;transform:translateY(-50%);left:18px;z-index:1}.popup-container .search-container .search-input{height:40px;width:100%;padding:12px;border:1px solid #e0e0e0;box-sizing:border-box;border-radius:8px;outline:none;caret-color:#0937b2;font-style:normal;font-weight:400;font-size:12px;line-height:18px;display:flex;align-items:center;letter-spacing:.2px;color:#181f33}.popup-container .search-container .cancel-icon{position:absolute;cursor:pointer;width:24px;height:24px;top:50%;transform:translateY(-50%);right:18px;z-index:1}.popup-container .items{padding:8px 0 8px 8px;overflow-y:scroll;height:100%}.popup-container .items::-webkit-scrollbar{width:5px;height:0}.popup-container .items::-webkit-scrollbar-thumb{background:#9aa7b4;border-radius:10px}.popup-container .items .noData{display:flex;justify-content:center;align-items:center;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.popup-container .items .item{cursor:pointer;display:flex;justify-content:flex-start;align-items:center;padding:8px 12px;border-radius:6px;height:auto}.popup-container .items .item:hover,.popup-container .items .item:focus-visible{background-color:#f5f7fc;outline:none}.popup-container .items .item .checkbox-container-wrapper{display:flex;justify-content:flex-start;align-items:center;width:90%}.popup-container .items .item .checkbox-container-wrapper .checkbox-container{display:block;position:relative;cursor:pointer;font-size:22px;-webkit-user-select:none;user-select:none}.popup-container .items .item .checkbox-container-wrapper .checkbox-container input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.popup-container .items .item .checkbox-container-wrapper .checkbox-container input:checked~.checkmark:after{display:block}.popup-container .items .item .checkbox-container-wrapper .checkbox-container .checkmark{position:absolute;top:-8px;left:0;height:15px;width:15px;border-radius:4px;background-color:#0079f1;border:1px solid rgb(106,115,125)}.popup-container .items .item .checkbox-container-wrapper .checkbox-container .checkmark:after{content:\"\";position:absolute;display:none;left:5px;top:2px;width:3px;height:6px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.popup-container .items .item .checkbox-container-wrapper .label{margin:0 0 0 8px;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33;text-overflow:ellipsis;overflow:hidden}.popup-container .items .item .icon-container{width:10%;display:flex;justify-content:flex-end}.popup-container .items .item .icon-container .icon{width:20px;height:20px}.popup-container .actions-container{display:flex;justify-content:space-between;bottom:0;align-items:center;position:sticky;padding:16px;background-color:#fff;border-top:1px solid #e0e0e0}.popup-container .actions-container .cancel{cursor:pointer;padding:10px 32px;text-align:center;font-size:16px;line-height:24px;border-radius:8px}.popup-container .actions-container .cancel:hover{background:rgba(9,55,178,.04)}.popup-container .actions-container .apply{cursor:pointer;padding:10px 32px;text-align:center;color:#fff;font-size:16px;line-height:24px;background:#0937b2;border-radius:8px}\n"] }]
256
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Overlay }, { type: i0.ViewContainerRef }]; }, propDecorators: { data: [{
494
+ }], function () { return [{ type: i0.ElementRef }, { type: i1.Overlay }, { type: i0.ViewContainerRef }]; }, { data: [{
257
495
  type: Input
258
496
  }], label: [{
259
497
  type: Input
@@ -283,24 +521,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
283
521
  }], popupContainer: [{
284
522
  type: ViewChild,
285
523
  args: ["popupContainer", { static: false }]
286
- }] } });
524
+ }] });
525
+ })();
287
526
 
288
527
  class NestedMultiSelectDropdownModule {
289
528
  static forRoot() {
290
529
  return { ngModule: NestedMultiSelectDropdownModule, providers: [] };
291
530
  }
292
531
  }
293
- NestedMultiSelectDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NestedMultiSelectDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
294
- NestedMultiSelectDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NestedMultiSelectDropdownModule, declarations: [NestedMultiSelectDropdownComponent], imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule, ButtonModule], exports: [NestedMultiSelectDropdownComponent] });
295
- NestedMultiSelectDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NestedMultiSelectDropdownModule, imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule, ButtonModule] });
296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NestedMultiSelectDropdownModule, decorators: [{
532
+ NestedMultiSelectDropdownModule.ɵfac = function NestedMultiSelectDropdownModule_Factory(t) { return new (t || NestedMultiSelectDropdownModule)(); };
533
+ NestedMultiSelectDropdownModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: NestedMultiSelectDropdownModule });
534
+ NestedMultiSelectDropdownModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule, ButtonModule] });
535
+ (function () {
536
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NestedMultiSelectDropdownModule, [{
297
537
  type: NgModule,
298
538
  args: [{
299
539
  declarations: [NestedMultiSelectDropdownComponent],
300
540
  imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule, ButtonModule],
301
541
  exports: [NestedMultiSelectDropdownComponent]
302
542
  }]
303
- }] });
543
+ }], null, null);
544
+ })();
545
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(NestedMultiSelectDropdownModule, { declarations: [NestedMultiSelectDropdownComponent], imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule, ButtonModule], exports: [NestedMultiSelectDropdownComponent] }); })();
304
546
 
305
547
  /**
306
548
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mis-crystal-design-system-nested-multi-select-dropdown.mjs","sources":["../../../projects/mis-components/nested-multi-select-dropdown/nested-multi-select-dropdown.component.ts","../../../projects/mis-components/nested-multi-select-dropdown/nested-multi-select-dropdown.component.html","../../../projects/mis-components/nested-multi-select-dropdown/nested-multi-select-dropdown.module.ts","../../../projects/mis-components/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.ts"],"sourcesContent":["import { OverlayRef, Overlay, ConnectionPositionPair, OverlayConfig } from \"@angular/cdk/overlay\";\nimport { TemplatePortal } from \"@angular/cdk/portal\";\nimport { Component, ElementRef, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild, ViewContainerRef } from \"@angular/core\";\n\n@Component({\n selector: \"mis-nested-multi-select-dropdown\",\n templateUrl: \"./nested-multi-select-dropdown.component.html\",\n styleUrls: [\"./nested-multi-select-dropdown.component.scss\"]\n})\nexport class NestedMultiSelectDropdownComponent implements OnInit {\n searchInput: string = \"\";\n isOpen = false;\n localSelectedItems: NestedMultiSelectDropdownItem[] = [];\n localData: NestedMultiSelectDropdownItem[] = [];\n searchData: NestedMultiSelectDropdownItem[] = [];\n selectedCount: number = 0;\n\n @Input() set data(values: NestedMultiSelectDropdownItem[]) {\n // tslint:disable-next-line:no-shadowed-variable\n this.localData = values.map(item => {\n return {\n ...item,\n checked: false,\n children: item.children.map(a => {\n return {\n ...a,\n checked: false\n };\n })\n };\n });\n }\n @Input() label: string = \"Select\";\n @Input() height: string = \"\";\n @Input() width: string = \"\";\n\n @Input() dropdownListHeight: string = \"\";\n @Input() dropdownListWidth: string = \"\";\n @Input() dropdownListPosition: \"Left\" | \"Right\" = \"Left\";\n\n @Input() searchEnabled: boolean = true;\n @Input() showSelectedCount: boolean = false;\n @Input() noDataMessage: string = \"No Data\";\n @Input() set selectedItems(values: NestedMultiSelectDropdownItem[]) {\n this.handlerSetLocalSelectedItems(values);\n }\n\n @Output() onChange: EventEmitter<any> = new EventEmitter();\n\n @ViewChild(\"select\", { static: false }) selectElement: ElementRef;\n @ViewChild(\"popupContainer\", { static: false }) popupContainer: TemplateRef<Element>;\n private overlayRef: OverlayRef;\n\n constructor(private eRef: ElementRef, private overlay: Overlay, private viewContainerRef: ViewContainerRef) {}\n ngOnInit() {}\n\n handlerSetLocalSelectedItems(values) {\n this.localSelectedItems = values;\n }\n isSearchInputFocused: boolean = false;\n searchInputFocused(isFocused: boolean) {\n this.isSearchInputFocused = isFocused;\n }\n searchInputCanceled(event) {\n event.stopPropagation();\n this.searchInput = \"\";\n this.isSearchInputFocused = false;\n }\n toggleDropdown() {\n this.isOpen = !this.isOpen;\n if (this.isOpen) {\n this.handlerSetLocalSelectedItems(this.localSelectedItems);\n this.localData = this.formatValues(this.localData);\n }\n if (this.isOpen) this.openDropdown(this.popupContainer, this.selectElement.nativeElement);\n else this.onCancel();\n }\n private openDropdown(template: TemplateRef<Element>, origin: HTMLElement): void {\n const positionsBottom = [\n new ConnectionPositionPair({ originX: \"start\", originY: \"bottom\" }, { overlayX: \"start\", overlayY: \"top\" }, 0, 4),\n new ConnectionPositionPair({ originX: \"end\", originY: \"bottom\" }, { overlayX: \"end\", overlayY: \"top\" }, 0, 4)\n ];\n const positionsTop = [\n new ConnectionPositionPair({ originX: \"start\", originY: \"top\" }, { overlayX: \"start\", overlayY: \"bottom\" }, 0, -4),\n new ConnectionPositionPair({ originX: \"end\", originY: \"top\" }, { overlayX: \"end\", overlayY: \"bottom\" }, 0, -4)\n ];\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(origin)\n .withPositions([\n ...(this.dropdownListPosition === \"Right\" ? positionsBottom.reverse() : positionsBottom),\n ...(this.dropdownListPosition === \"Right\" ? positionsTop.reverse() : positionsTop)\n ])\n .withPush(true);\n const configs = new OverlayConfig({\n hasBackdrop: true,\n backdropClass: \"cdk-overlay-transparent-backdrop\",\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy,\n width: origin.clientWidth\n });\n this.overlayRef = this.overlay.create(configs);\n if (this.dropdownListWidth) this.overlayRef.updateSize({ width: this.dropdownListWidth });\n if (this.dropdownListHeight) this.overlayRef.updateSize({ height: this.dropdownListHeight });\n this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));\n this.overlayRef.backdropClick().subscribe(res => {\n this.onCancel();\n });\n }\n // tslint:disable-next-line:variable-name\n filterByValue(array: NestedMultiSelectDropdownItem[], string: string) {\n return array\n .filter(\n o => o.label.toLowerCase().includes(string.toLowerCase()) || o.children?.some(g => g?.label?.toLowerCase().includes(string.toLowerCase()))\n )\n .map(v => {\n return {\n ...v,\n children: v?.children?.filter(l => l?.label?.toLowerCase().includes(string.toLowerCase()))\n };\n });\n }\n searchInputOnChange(newValue) {\n this.searchInput = newValue;\n if (newValue) {\n this.searchData = this.filterByValue(this.localData, newValue);\n } else {\n this.searchData = [];\n this.searchInput = \"\";\n }\n }\n formatValues(array: NestedMultiSelectDropdownItem[]) {\n const checkedValues = array\n .filter(a => a.checked)\n .sort((a: NestedMultiSelectDropdownItem, b: NestedMultiSelectDropdownItem) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));\n const unCheckedValues = array\n .filter(a => !a.checked)\n .sort((a: NestedMultiSelectDropdownItem, b: NestedMultiSelectDropdownItem) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));\n return [...checkedValues, ...unCheckedValues];\n }\n // tslint:disable-next-line:no-shadowed-variable\n toggleSelectedItems(event, item: NestedMultiSelectDropdownItem, cItem?: any) {\n event.stopPropagation();\n if (!cItem) {\n if (item.checked) {\n this.localData = [\n ...this.localData.map(a => {\n if (a.value === item.value) {\n return {\n ...a,\n checked: false,\n // tslint:disable-next-line:no-shadowed-variable\n children: item.children.map(a => {\n return {\n ...a,\n checked: false\n };\n })\n };\n }\n return a;\n })\n ];\n } else {\n this.localData = [\n ...this.localData.map(a => {\n if (a.value === item.value) {\n return {\n ...a,\n checked: true,\n // tslint:disable-next-line:no-shadowed-variable\n children: item.children.map(a => {\n return {\n ...a,\n checked: true\n };\n })\n };\n }\n return a;\n })\n ];\n }\n } else {\n if (cItem.checked) {\n this.localData = [\n ...this.localData.map(a => {\n if (a.value === item.value) {\n // tslint:disable-next-line:no-shadowed-variable\n const children = a?.children.map(a => {\n if (cItem?.value === a?.value) {\n return {\n ...a,\n checked: false\n };\n }\n return a;\n });\n return {\n ...a,\n checked: children.every(q => q.checked),\n // tslint:disable-next-line:no-shadowed-variable\n children\n };\n }\n return a;\n })\n ];\n } else {\n this.localData = [\n ...this.localData.map(a => {\n if (a.value === item.value) {\n // tslint:disable-next-line:no-shadowed-variable\n const children = a?.children.map(a => {\n if (cItem?.value === a?.value) {\n return {\n ...a,\n checked: true\n };\n }\n return a;\n });\n return {\n ...a,\n checked: children.every(q => q.checked),\n // tslint:disable-next-line:no-shadowed-variable\n children\n };\n }\n return a;\n })\n ];\n }\n }\n if (this.searchEnabled) {\n this.searchInputOnChange(this.searchInput);\n }\n }\n\n applyFilters() {\n let localCount = 0;\n this.localData.forEach(a =>\n a?.children?.forEach(b => {\n if (b.checked) {\n localCount += 1;\n }\n })\n );\n this.selectedCount = localCount;\n const w = this.localData\n .filter(r => !(!r.checked && !r?.children?.some(f => f?.checked)))\n .map(a => {\n return {\n ...a,\n children: a?.children?.filter(s => s.checked)\n };\n });\n this.onChange.emit(w);\n this.onCancel();\n }\n onReset() {\n this.isSearchInputFocused = false;\n for (let item of this.localData) {\n for (let child of item.children) {\n child.checked = false;\n }\n item.checked = false;\n }\n this.onChange.emit([]);\n this.isOpen = false;\n this.searchInput = \"\";\n }\n onCancel() {\n this.isSearchInputFocused = false;\n this.isOpen = false;\n this.overlayRef?.detach();\n this.searchInput = \"\";\n }\n}\nexport interface NestedMultiSelectDropdownItem {\n label: string;\n value: string;\n checked?: boolean;\n icon?: string;\n children: Array<{\n label: string;\n value: string;\n checked?: boolean;\n icon?: string;\n }>;\n}\n","<div\n class=\"container\"\n [ngStyle]=\"{\n height: height.length > 0 ? height : '',\n width: width.length > 0 ? width : ''\n }\"\n>\n <div\n class=\"dropdown\"\n #select\n tabindex=\"0\"\n (keyup.enter)=\"toggleDropdown()\"\n (click)=\"toggleDropdown()\"\n [ngStyle]=\"{ background: isOpen ? '#E6EBF7' : '' }\"\n >\n <div class=\"label\">\n <p class=\"text\">{{ label }}</p>\n <p *ngIf=\"showSelectedCount && selectedCount > 0\" class=\"count\">\n {{ selectedCount }}\n </p>\n </div>\n <svg\n class=\"handle\"\n [ngStyle]=\"{ transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)' }\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.825 7.15845L10 10.9751L6.175 7.15845L5 8.33345L10 13.3334L15 8.33345L13.825 7.15845Z\"\n fill=\"#181F33\"\n />\n </svg>\n </div>\n</div>\n<ng-template #popupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n [ngClass]=\"{\n 'position-left': dropdownListPosition === 'Left',\n 'position-right': dropdownListPosition === 'Right'\n }\"\n >\n <div *ngIf=\"searchEnabled\" class=\"search-container\">\n <svg\n *ngIf=\"!isSearchInputFocused\"\n class=\"search-icon\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4.21508 11.1456C4.21508 7.3179 7.33722 4.21165 11.1926 4.21165C15.048 4.21165 18.1702 7.3179 18.1702 11.1456C18.1702 12.6931 17.6599 14.1226 16.7972 15.2767L15.3685 16.7013C14.2044 17.5668 12.759 18.0796 11.1926 18.0796C7.33722 18.0796 4.21508 14.9734 4.21508 11.1456ZM15.9421 17.7835C14.6021 18.7329 12.9627 19.2913 11.1926 19.2913C6.66977 19.2913 3 15.6461 3 11.1456C3 6.64512 6.66977 3 11.1926 3C15.7155 3 19.3852 6.64512 19.3852 11.1456C19.3852 12.9371 18.8037 14.5931 17.8184 15.9375L19.8361 17.4048C20.6705 17.912 21.7554 18.6543 20.2454 20.215C18.7353 21.7756 18.0099 20.6663 17.4991 19.8364L15.9421 17.7835Z\"\n fill=\"#6A737D\"\n />\n </svg>\n <input\n [ngModel]=\"searchInput\"\n [ngStyle]=\"{\n paddingLeft: isSearchInputFocused ? '12px' : '45px',\n border: isSearchInputFocused ? '1px solid #0937B2' : '1px solid #e0e0e0',\n paddingRight: isSearchInputFocused ? '45px' : '10px'\n }\"\n (ngModelChange)=\"searchInputOnChange($event)\"\n [placeholder]=\"isSearchInputFocused ? '' : 'Search Keyword'\"\n (focus)=\"searchInputFocused(true)\"\n class=\"search-input\"\n />\n <svg\n *ngIf=\"isSearchInputFocused\"\n class=\"cancel-icon\"\n (click)=\"searchInputCanceled($event)\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M8.87446 7.32144C8.44588 6.89285 7.751 6.89285 7.32242 7.32144C6.89383 7.75002 6.89383 8.4449 7.32242 8.87349L10.4488 11.9999L7.32357 15.1252C6.89498 15.5538 6.89498 16.2486 7.32357 16.6772C7.75215 17.1058 8.44703 17.1058 8.87561 16.6772L12.0009 13.552L15.1261 16.6772C15.5547 17.1058 16.2496 17.1058 16.6781 16.6772C17.1067 16.2486 17.1067 15.5537 16.6781 15.1251L13.5529 11.9999L16.6793 8.87354C17.1079 8.44496 17.1079 7.75008 16.6793 7.3215C16.2507 6.89291 15.5558 6.89291 15.1273 7.3215L12.0009 10.4479L8.87446 7.32144Z\"\n fill=\"#6A737D\"\n />\n </svg>\n </div>\n <div class=\"items\">\n <div\n tabindex=\"0\"\n (keyup.enter)=\"toggleSelectedItems($event, item)\"\n (click)=\"toggleSelectedItems($event, item)\"\n *ngFor=\"let item of searchInput ? searchData : localData\"\n >\n <div class=\"item\">\n <div class=\"checkbox-container-wrapper\">\n <div class=\"checkbox-container\">\n <mis-checkbox [checked]=\"item.checked\"></mis-checkbox>\n </div>\n <p class=\"label\">\n {{ item.label }}\n </p>\n </div>\n <div class=\"icon-container\" *ngIf=\"item.icon\">\n <img class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n </div>\n </div>\n <div *ngIf=\"item?.children?.length > 0\" class=\"items sub\" style=\"padding-right: 0\">\n <div\n class=\"item\"\n tabindex=\"0\"\n (keyup.enter)=\"toggleSelectedItems($event, item, cItem)\"\n (click)=\"toggleSelectedItems($event, item, cItem)\"\n *ngFor=\"let cItem of item?.children\"\n >\n <div class=\"checkbox-container-wrapper\">\n <div class=\"checkbox-container\">\n <mis-checkbox [checked]=\"cItem.checked\"></mis-checkbox>\n </div>\n <p class=\"label\">\n {{ cItem.label }}\n </p>\n </div>\n <div class=\"icon-container\" *ngIf=\"cItem.icon\">\n <img class=\"icon\" [src]=\"cItem.icon\" alt=\"no img\" />\n </div>\n </div>\n </div>\n </div>\n <div class=\"noData\" *ngIf=\"(searchInput ? searchData : localData).length === 0\">\n {{ searchInput === \"\" ? noDataMessage : \"No results\" }}\n </div>\n </div>\n <div *ngIf=\"localData.length !== 0\" class=\"actions-container\">\n <div style=\"width: calc(50% - 4px)\">\n <mis-button [name]=\"'Reset'\" [type]=\"'Text'\" [width]=\"'100%'\" (click)=\"onReset()\"></mis-button>\n </div>\n <div style=\"width: calc(50% - 4px)\">\n <mis-button [name]=\"'Apply'\" [type]=\"'Solid'\" [width]=\"'100%'\" (click)=\"applyFilters()\"></mis-button>\n </div>\n </div>\n </div>\n</ng-template>\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { NestedMultiSelectDropdownComponent } from \"./nested-multi-select-dropdown.component\";\nimport { CheckboxModule } from \"mis-crystal-design-system/checkbox\";\nimport { ButtonModule } from \"mis-crystal-design-system/button\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\n\n@NgModule({\n declarations: [NestedMultiSelectDropdownComponent],\n imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule, ButtonModule],\n exports: [NestedMultiSelectDropdownComponent]\n})\nexport class NestedMultiSelectDropdownModule {\n static forRoot(): ModuleWithProviders<NestedMultiSelectDropdownModule> {\n return { ngModule: NestedMultiSelectDropdownModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MASa,kCAAkC,CAAA;AA4C7C,IAAA,WAAA,CAAoB,IAAgB,EAAU,OAAgB,EAAU,gBAAkC,EAAA;AAAtF,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;AAAU,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAS;AAAU,QAAA,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;AA3C1G,QAAA,IAAW,CAAA,WAAA,GAAW,EAAE,CAAC;AACzB,QAAA,IAAM,CAAA,MAAA,GAAG,KAAK,CAAC;AACf,QAAA,IAAkB,CAAA,kBAAA,GAAoC,EAAE,CAAC;AACzD,QAAA,IAAS,CAAA,SAAA,GAAoC,EAAE,CAAC;AAChD,QAAA,IAAU,CAAA,UAAA,GAAoC,EAAE,CAAC;AACjD,QAAA,IAAa,CAAA,aAAA,GAAW,CAAC,CAAC;AAiBjB,QAAA,IAAK,CAAA,KAAA,GAAW,QAAQ,CAAC;AACzB,QAAA,IAAM,CAAA,MAAA,GAAW,EAAE,CAAC;AACpB,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE,CAAC;AAEnB,QAAA,IAAkB,CAAA,kBAAA,GAAW,EAAE,CAAC;AAChC,QAAA,IAAiB,CAAA,iBAAA,GAAW,EAAE,CAAC;AAC/B,QAAA,IAAoB,CAAA,oBAAA,GAAqB,MAAM,CAAC;AAEhD,QAAA,IAAa,CAAA,aAAA,GAAY,IAAI,CAAC;AAC9B,QAAA,IAAiB,CAAA,iBAAA,GAAY,KAAK,CAAC;AACnC,QAAA,IAAa,CAAA,aAAA,GAAW,SAAS,CAAC;AAKjC,QAAA,IAAA,CAAA,QAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;AAY3D,QA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AQ,EAAE,+BAA+B,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KACrE;;4HAHU,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA/B,+BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,EAJ3B,YAAA,EAAA,CAAA,kCAAkC,CACvC,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,aACtE,kCAAkC,CAAA,EAAA,CAAA,CAAA;6HAEjC,+BAA+B,EAAA,OAAA,EAAA,CAHhC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,CAAA,EAAA,CAAA,CAAA;2FAGrE,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAL3C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,kCAAkC,CAAC;oBAClD,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,CAAC;oBACjF,OAAO,EAAE,CAAC,kCAAkC,CAAC;iBAC9C,CAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"mis-crystal-design-system-nested-multi-select-dropdown.mjs","sources":["../../../projects/mis-components/nested-multi-select-dropdown/nested-multi-select-dropdown.component.html","../../../projects/mis-components/nested-multi-select-dropdown/nested-multi-select-dropdown.component.ts","../../../projects/mis-components/nested-multi-select-dropdown/nested-multi-select-dropdown.module.ts","../../../projects/mis-components/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.ts"],"sourcesContent":["<div\n class=\"container\"\n [ngStyle]=\"{\n height: height.length > 0 ? height : '',\n width: width.length > 0 ? width : ''\n }\"\n>\n <div\n class=\"dropdown\"\n #select\n tabindex=\"0\"\n (keyup.enter)=\"toggleDropdown()\"\n (click)=\"toggleDropdown()\"\n [ngStyle]=\"{ background: isOpen ? '#E6EBF7' : '' }\"\n >\n <div class=\"label\">\n <p class=\"text\">{{ label }}</p>\n <p *ngIf=\"showSelectedCount && selectedCount > 0\" class=\"count\">\n {{ selectedCount }}\n </p>\n </div>\n <svg\n class=\"handle\"\n [ngStyle]=\"{ transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)' }\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.825 7.15845L10 10.9751L6.175 7.15845L5 8.33345L10 13.3334L15 8.33345L13.825 7.15845Z\"\n fill=\"#181F33\"\n />\n </svg>\n </div>\n</div>\n<ng-template #popupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n [ngClass]=\"{\n 'position-left': dropdownListPosition === 'Left',\n 'position-right': dropdownListPosition === 'Right'\n }\"\n >\n <div *ngIf=\"searchEnabled\" class=\"search-container\">\n <svg\n *ngIf=\"!isSearchInputFocused\"\n class=\"search-icon\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4.21508 11.1456C4.21508 7.3179 7.33722 4.21165 11.1926 4.21165C15.048 4.21165 18.1702 7.3179 18.1702 11.1456C18.1702 12.6931 17.6599 14.1226 16.7972 15.2767L15.3685 16.7013C14.2044 17.5668 12.759 18.0796 11.1926 18.0796C7.33722 18.0796 4.21508 14.9734 4.21508 11.1456ZM15.9421 17.7835C14.6021 18.7329 12.9627 19.2913 11.1926 19.2913C6.66977 19.2913 3 15.6461 3 11.1456C3 6.64512 6.66977 3 11.1926 3C15.7155 3 19.3852 6.64512 19.3852 11.1456C19.3852 12.9371 18.8037 14.5931 17.8184 15.9375L19.8361 17.4048C20.6705 17.912 21.7554 18.6543 20.2454 20.215C18.7353 21.7756 18.0099 20.6663 17.4991 19.8364L15.9421 17.7835Z\"\n fill=\"#6A737D\"\n />\n </svg>\n <input\n [ngModel]=\"searchInput\"\n [ngStyle]=\"{\n paddingLeft: isSearchInputFocused ? '12px' : '45px',\n border: isSearchInputFocused ? '1px solid #0937B2' : '1px solid #e0e0e0',\n paddingRight: isSearchInputFocused ? '45px' : '10px'\n }\"\n (ngModelChange)=\"searchInputOnChange($event)\"\n [placeholder]=\"isSearchInputFocused ? '' : 'Search Keyword'\"\n (focus)=\"searchInputFocused(true)\"\n class=\"search-input\"\n />\n <svg\n *ngIf=\"isSearchInputFocused\"\n class=\"cancel-icon\"\n (click)=\"searchInputCanceled($event)\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M8.87446 7.32144C8.44588 6.89285 7.751 6.89285 7.32242 7.32144C6.89383 7.75002 6.89383 8.4449 7.32242 8.87349L10.4488 11.9999L7.32357 15.1252C6.89498 15.5538 6.89498 16.2486 7.32357 16.6772C7.75215 17.1058 8.44703 17.1058 8.87561 16.6772L12.0009 13.552L15.1261 16.6772C15.5547 17.1058 16.2496 17.1058 16.6781 16.6772C17.1067 16.2486 17.1067 15.5537 16.6781 15.1251L13.5529 11.9999L16.6793 8.87354C17.1079 8.44496 17.1079 7.75008 16.6793 7.3215C16.2507 6.89291 15.5558 6.89291 15.1273 7.3215L12.0009 10.4479L8.87446 7.32144Z\"\n fill=\"#6A737D\"\n />\n </svg>\n </div>\n <div class=\"items\">\n <div\n tabindex=\"0\"\n (keyup.enter)=\"toggleSelectedItems($event, item)\"\n (click)=\"toggleSelectedItems($event, item)\"\n *ngFor=\"let item of searchInput ? searchData : localData\"\n >\n <div class=\"item\">\n <div class=\"checkbox-container-wrapper\">\n <div class=\"checkbox-container\">\n <mis-checkbox [checked]=\"item.checked\"></mis-checkbox>\n </div>\n <p class=\"label\">\n {{ item.label }}\n </p>\n </div>\n <div class=\"icon-container\" *ngIf=\"item.icon\">\n <img class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n </div>\n </div>\n <div *ngIf=\"item?.children?.length > 0\" class=\"items sub\" style=\"padding-right: 0\">\n <div\n class=\"item\"\n tabindex=\"0\"\n (keyup.enter)=\"toggleSelectedItems($event, item, cItem)\"\n (click)=\"toggleSelectedItems($event, item, cItem)\"\n *ngFor=\"let cItem of item?.children\"\n >\n <div class=\"checkbox-container-wrapper\">\n <div class=\"checkbox-container\">\n <mis-checkbox [checked]=\"cItem.checked\"></mis-checkbox>\n </div>\n <p class=\"label\">\n {{ cItem.label }}\n </p>\n </div>\n <div class=\"icon-container\" *ngIf=\"cItem.icon\">\n <img class=\"icon\" [src]=\"cItem.icon\" alt=\"no img\" />\n </div>\n </div>\n </div>\n </div>\n <div class=\"noData\" *ngIf=\"(searchInput ? searchData : localData).length === 0\">\n {{ searchInput === \"\" ? noDataMessage : \"No results\" }}\n </div>\n </div>\n <div *ngIf=\"localData.length !== 0\" class=\"actions-container\">\n <div style=\"width: calc(50% - 4px)\">\n <mis-button [name]=\"'Reset'\" [type]=\"'Text'\" [width]=\"'100%'\" (click)=\"onReset()\"></mis-button>\n </div>\n <div style=\"width: calc(50% - 4px)\">\n <mis-button [name]=\"'Apply'\" [type]=\"'Solid'\" [width]=\"'100%'\" (click)=\"applyFilters()\"></mis-button>\n </div>\n </div>\n </div>\n</ng-template>\n","import { OverlayRef, Overlay, ConnectionPositionPair, OverlayConfig } from \"@angular/cdk/overlay\";\nimport { TemplatePortal } from \"@angular/cdk/portal\";\nimport { Component, ElementRef, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild, ViewContainerRef } from \"@angular/core\";\n\n@Component({\n selector: \"mis-nested-multi-select-dropdown\",\n templateUrl: \"./nested-multi-select-dropdown.component.html\",\n styleUrls: [\"./nested-multi-select-dropdown.component.scss\"]\n})\nexport class NestedMultiSelectDropdownComponent implements OnInit {\n searchInput: string = \"\";\n isOpen = false;\n localSelectedItems: NestedMultiSelectDropdownItem[] = [];\n localData: NestedMultiSelectDropdownItem[] = [];\n searchData: NestedMultiSelectDropdownItem[] = [];\n selectedCount: number = 0;\n\n @Input() set data(values: NestedMultiSelectDropdownItem[]) {\n // tslint:disable-next-line:no-shadowed-variable\n this.localData = values.map(item => {\n return {\n ...item,\n checked: false,\n children: item.children.map(a => {\n return {\n ...a,\n checked: false\n };\n })\n };\n });\n }\n @Input() label: string = \"Select\";\n @Input() height: string = \"\";\n @Input() width: string = \"\";\n\n @Input() dropdownListHeight: string = \"\";\n @Input() dropdownListWidth: string = \"\";\n @Input() dropdownListPosition: \"Left\" | \"Right\" = \"Left\";\n\n @Input() searchEnabled: boolean = true;\n @Input() showSelectedCount: boolean = false;\n @Input() noDataMessage: string = \"No Data\";\n @Input() set selectedItems(values: NestedMultiSelectDropdownItem[]) {\n this.handlerSetLocalSelectedItems(values);\n }\n\n @Output() onChange: EventEmitter<any> = new EventEmitter();\n\n @ViewChild(\"select\", { static: false }) selectElement: ElementRef;\n @ViewChild(\"popupContainer\", { static: false }) popupContainer: TemplateRef<Element>;\n private overlayRef: OverlayRef;\n\n constructor(private eRef: ElementRef, private overlay: Overlay, private viewContainerRef: ViewContainerRef) {}\n ngOnInit() {}\n\n handlerSetLocalSelectedItems(values) {\n this.localSelectedItems = values;\n }\n isSearchInputFocused: boolean = false;\n searchInputFocused(isFocused: boolean) {\n this.isSearchInputFocused = isFocused;\n }\n searchInputCanceled(event) {\n event.stopPropagation();\n this.searchInput = \"\";\n this.isSearchInputFocused = false;\n }\n toggleDropdown() {\n this.isOpen = !this.isOpen;\n if (this.isOpen) {\n this.handlerSetLocalSelectedItems(this.localSelectedItems);\n this.localData = this.formatValues(this.localData);\n }\n if (this.isOpen) this.openDropdown(this.popupContainer, this.selectElement.nativeElement);\n else this.onCancel();\n }\n private openDropdown(template: TemplateRef<Element>, origin: HTMLElement): void {\n const positionsBottom = [\n new ConnectionPositionPair({ originX: \"start\", originY: \"bottom\" }, { overlayX: \"start\", overlayY: \"top\" }, 0, 4),\n new ConnectionPositionPair({ originX: \"end\", originY: \"bottom\" }, { overlayX: \"end\", overlayY: \"top\" }, 0, 4)\n ];\n const positionsTop = [\n new ConnectionPositionPair({ originX: \"start\", originY: \"top\" }, { overlayX: \"start\", overlayY: \"bottom\" }, 0, -4),\n new ConnectionPositionPair({ originX: \"end\", originY: \"top\" }, { overlayX: \"end\", overlayY: \"bottom\" }, 0, -4)\n ];\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(origin)\n .withPositions([\n ...(this.dropdownListPosition === \"Right\" ? positionsBottom.reverse() : positionsBottom),\n ...(this.dropdownListPosition === \"Right\" ? positionsTop.reverse() : positionsTop)\n ])\n .withPush(true);\n const configs = new OverlayConfig({\n hasBackdrop: true,\n backdropClass: \"cdk-overlay-transparent-backdrop\",\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy,\n width: origin.clientWidth\n });\n this.overlayRef = this.overlay.create(configs);\n if (this.dropdownListWidth) this.overlayRef.updateSize({ width: this.dropdownListWidth });\n if (this.dropdownListHeight) this.overlayRef.updateSize({ height: this.dropdownListHeight });\n this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));\n this.overlayRef.backdropClick().subscribe(res => {\n this.onCancel();\n });\n }\n // tslint:disable-next-line:variable-name\n filterByValue(array: NestedMultiSelectDropdownItem[], string: string) {\n return array\n .filter(\n o => o.label.toLowerCase().includes(string.toLowerCase()) || o.children?.some(g => g?.label?.toLowerCase().includes(string.toLowerCase()))\n )\n .map(v => {\n return {\n ...v,\n children: v?.children?.filter(l => l?.label?.toLowerCase().includes(string.toLowerCase()))\n };\n });\n }\n searchInputOnChange(newValue) {\n this.searchInput = newValue;\n if (newValue) {\n this.searchData = this.filterByValue(this.localData, newValue);\n } else {\n this.searchData = [];\n this.searchInput = \"\";\n }\n }\n formatValues(array: NestedMultiSelectDropdownItem[]) {\n const checkedValues = array\n .filter(a => a.checked)\n .sort((a: NestedMultiSelectDropdownItem, b: NestedMultiSelectDropdownItem) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));\n const unCheckedValues = array\n .filter(a => !a.checked)\n .sort((a: NestedMultiSelectDropdownItem, b: NestedMultiSelectDropdownItem) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));\n return [...checkedValues, ...unCheckedValues];\n }\n // tslint:disable-next-line:no-shadowed-variable\n toggleSelectedItems(event, item: NestedMultiSelectDropdownItem, cItem?: any) {\n event.stopPropagation();\n if (!cItem) {\n if (item.checked) {\n this.localData = [\n ...this.localData.map(a => {\n if (a.value === item.value) {\n return {\n ...a,\n checked: false,\n // tslint:disable-next-line:no-shadowed-variable\n children: item.children.map(a => {\n return {\n ...a,\n checked: false\n };\n })\n };\n }\n return a;\n })\n ];\n } else {\n this.localData = [\n ...this.localData.map(a => {\n if (a.value === item.value) {\n return {\n ...a,\n checked: true,\n // tslint:disable-next-line:no-shadowed-variable\n children: item.children.map(a => {\n return {\n ...a,\n checked: true\n };\n })\n };\n }\n return a;\n })\n ];\n }\n } else {\n if (cItem.checked) {\n this.localData = [\n ...this.localData.map(a => {\n if (a.value === item.value) {\n // tslint:disable-next-line:no-shadowed-variable\n const children = a?.children.map(a => {\n if (cItem?.value === a?.value) {\n return {\n ...a,\n checked: false\n };\n }\n return a;\n });\n return {\n ...a,\n checked: children.every(q => q.checked),\n // tslint:disable-next-line:no-shadowed-variable\n children\n };\n }\n return a;\n })\n ];\n } else {\n this.localData = [\n ...this.localData.map(a => {\n if (a.value === item.value) {\n // tslint:disable-next-line:no-shadowed-variable\n const children = a?.children.map(a => {\n if (cItem?.value === a?.value) {\n return {\n ...a,\n checked: true\n };\n }\n return a;\n });\n return {\n ...a,\n checked: children.every(q => q.checked),\n // tslint:disable-next-line:no-shadowed-variable\n children\n };\n }\n return a;\n })\n ];\n }\n }\n if (this.searchEnabled) {\n this.searchInputOnChange(this.searchInput);\n }\n }\n\n applyFilters() {\n let localCount = 0;\n this.localData.forEach(a =>\n a?.children?.forEach(b => {\n if (b.checked) {\n localCount += 1;\n }\n })\n );\n this.selectedCount = localCount;\n const w = this.localData\n .filter(r => !(!r.checked && !r?.children?.some(f => f?.checked)))\n .map(a => {\n return {\n ...a,\n children: a?.children?.filter(s => s.checked)\n };\n });\n this.onChange.emit(w);\n this.onCancel();\n }\n onReset() {\n this.isSearchInputFocused = false;\n for (let item of this.localData) {\n for (let child of item.children) {\n child.checked = false;\n }\n item.checked = false;\n }\n this.onChange.emit([]);\n this.isOpen = false;\n this.searchInput = \"\";\n }\n onCancel() {\n this.isSearchInputFocused = false;\n this.isOpen = false;\n this.overlayRef?.detach();\n this.searchInput = \"\";\n }\n}\nexport interface NestedMultiSelectDropdownItem {\n label: string;\n value: string;\n checked?: boolean;\n icon?: string;\n children: Array<{\n label: string;\n value: string;\n checked?: boolean;\n icon?: string;\n }>;\n}\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { NestedMultiSelectDropdownComponent } from \"./nested-multi-select-dropdown.component\";\nimport { CheckboxModule } from \"mis-crystal-design-system/checkbox\";\nimport { ButtonModule } from \"mis-crystal-design-system/button\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\n\n@NgModule({\n declarations: [NestedMultiSelectDropdownComponent],\n imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule, ButtonModule],\n exports: [NestedMultiSelectDropdownComponent]\n})\nexport class NestedMultiSelectDropdownModule {\n static forRoot(): ModuleWithProviders<NestedMultiSelectDropdownModule> {\n return { ngModule: NestedMultiSelectDropdownModule, providers: [] };\n }\n}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