mis-crystal-design-system 17.0.0 → 17.0.2-test

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 (209) hide show
  1. package/analytics/analytics.service.d.ts +5 -1
  2. package/assets/images/close.svg +5 -0
  3. package/async-search-dropdown/async-dropdown.component.d.ts +9 -1
  4. package/async-search-dropdown/async-dropdown.module.d.ts +2 -1
  5. package/datepicker_v2/datepicker.module.d.ts +2 -1
  6. package/datepicker_v2/tz-datepicker.directive.d.ts +2 -0
  7. package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +18 -1
  8. package/daterangepicker_v2/daterangepicker.module.d.ts +2 -1
  9. package/daterangepicker_v2/models/drp-config.model.d.ts +6 -0
  10. package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +2 -0
  11. package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +6 -2
  12. package/dropdown/calculate-container-height.directive.d.ts +1 -1
  13. package/dropdown/dropdown.component.d.ts +4 -1
  14. package/dropdown/dropdown.module.d.ts +2 -1
  15. package/dynamic-form/dynamic-form.component.d.ts +14 -4
  16. package/dynamic-form/dynamic-form.namespace.d.ts +1 -0
  17. package/esm2022/action-list/action-list.component.mjs +2 -2
  18. package/esm2022/action-list/action-list.module.mjs +2 -2
  19. package/esm2022/analytics/analytics.module.mjs +2 -2
  20. package/esm2022/analytics/analytics.service.mjs +8 -7
  21. package/esm2022/async-search-dropdown/async-dropdown.component.mjs +98 -47
  22. package/esm2022/async-search-dropdown/async-dropdown.module.mjs +6 -5
  23. package/esm2022/button/button.component.mjs +2 -2
  24. package/esm2022/button/button.directive.mjs +2 -2
  25. package/esm2022/button/button.module.mjs +2 -2
  26. package/esm2022/checkbox/checkbox.component.mjs +5 -5
  27. package/esm2022/checkbox/checkbox.module.mjs +2 -2
  28. package/esm2022/chip/chip.component.mjs +14 -14
  29. package/esm2022/chip/chip.module.mjs +2 -2
  30. package/esm2022/datepicker_v2/datepicker.module.mjs +6 -5
  31. package/esm2022/datepicker_v2/public_api.mjs +1 -1
  32. package/esm2022/datepicker_v2/tz-datepicker.directive.mjs +22 -3
  33. package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +281 -85
  34. package/esm2022/daterangepicker_v2/daterangepicker.module.mjs +6 -5
  35. package/esm2022/daterangepicker_v2/models/drp-config.model.mjs +1 -1
  36. package/esm2022/daterangepicker_v2/public_api.mjs +1 -1
  37. package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +25 -4
  38. package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +218 -110
  39. package/esm2022/drawer/drawer-body/drawer-body.component.mjs +2 -2
  40. package/esm2022/drawer/drawer.module.mjs +2 -2
  41. package/esm2022/drawer/drawer.service.mjs +2 -2
  42. package/esm2022/dropdown/calculate-container-height.directive.mjs +6 -6
  43. package/esm2022/dropdown/dropdown.component.mjs +157 -97
  44. package/esm2022/dropdown/dropdown.module.mjs +6 -5
  45. package/esm2022/dynamic-form/dynamic-form.component.mjs +609 -221
  46. package/esm2022/dynamic-form/dynamic-form.module.mjs +2 -2
  47. package/esm2022/dynamic-form/dynamic-form.namespace.mjs +1 -1
  48. package/esm2022/fab/fab.component.mjs +2 -2
  49. package/esm2022/fab/fab.module.mjs +2 -2
  50. package/esm2022/filter/animations/slideFromRight.mjs +12 -0
  51. package/esm2022/filter/filter-panel/filter-panel.component.mjs +396 -0
  52. package/esm2022/filter/filters.module.mjs +66 -0
  53. package/esm2022/filter/has-value.pipe.mjs +31 -0
  54. package/esm2022/filter/index.mjs +2 -0
  55. package/esm2022/filter/mis-crystal-design-system-filter.mjs +5 -0
  56. package/esm2022/filter/public_api.mjs +4 -0
  57. package/esm2022/input/directives/input/input.directive.mjs +2 -2
  58. package/esm2022/input/mis-input.component.mjs +2 -2
  59. package/esm2022/input/mis-input.module.mjs +2 -2
  60. package/esm2022/input-stepper/input-stepper/input-stepper.component.mjs +5 -5
  61. package/esm2022/input-stepper/input-stepper.module.mjs +2 -2
  62. package/esm2022/loader/loader.component.mjs +2 -2
  63. package/esm2022/loader/loader.module.mjs +2 -2
  64. package/esm2022/menu/menu-close.directive.mjs +3 -3
  65. package/esm2022/menu/menu.directive.mjs +3 -3
  66. package/esm2022/menu/menu.module.mjs +2 -2
  67. package/esm2022/mobile-filter/mobile-filter.component.mjs +10 -8
  68. package/esm2022/mobile-filter/mobile-filter.module.mjs +2 -2
  69. package/esm2022/modal/modal.module.mjs +2 -2
  70. package/esm2022/modal/modal.service.mjs +2 -2
  71. package/esm2022/modal/module-wrapper/module-wrapper.component.mjs +2 -2
  72. package/esm2022/multi-select-dropdown/multi-select-dropdown.component.mjs +27 -15
  73. package/esm2022/multi-select-dropdown/multi-select-dropdown.module.mjs +2 -2
  74. package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +15 -8
  75. package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +2 -2
  76. package/esm2022/phone-input/phone-input.component.mjs +7 -51
  77. package/esm2022/phone-input/phone-input.module.mjs +2 -2
  78. package/esm2022/radio-button/radio-button.component.mjs +5 -5
  79. package/esm2022/radio-button/radio-button.module.mjs +2 -2
  80. package/esm2022/ske-loader/ske-loader.component.mjs +5 -5
  81. package/esm2022/ske-loader/ske-loader.module.mjs +2 -2
  82. package/esm2022/slider/slider.component.mjs +2 -2
  83. package/esm2022/slider/slider.module.mjs +2 -2
  84. package/esm2022/snackbar/snackbar/snackbar.component.mjs +2 -2
  85. package/esm2022/snackbar/snackbar.module.mjs +2 -2
  86. package/esm2022/snackbar/snackbar.service.mjs +2 -2
  87. package/esm2022/specificdatepicker/public_api.mjs +3 -3
  88. package/esm2022/specificdatepicker/specificdatepicker.module.mjs +2 -2
  89. package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +90 -63
  90. package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +2 -2
  91. package/esm2022/star-rating/star-rating.component.mjs +2 -2
  92. package/esm2022/star-rating/star-rating.module.mjs +2 -2
  93. package/esm2022/switch/switch.component.mjs +2 -2
  94. package/esm2022/switch/switch.module.mjs +2 -2
  95. package/esm2022/table/custom-table-cell.directive.mjs +2 -2
  96. package/esm2022/table/filter/filter.component.mjs +13 -5
  97. package/esm2022/table/public_api.mjs +2 -3
  98. package/esm2022/table/sub-table/sub-table.component.mjs +2 -2
  99. package/esm2022/table/table.component.mjs +28 -12
  100. package/esm2022/table/table.module.mjs +2 -2
  101. package/esm2022/timepicker/timepicker.component.mjs +69 -59
  102. package/esm2022/timepicker/timepicker.directive.mjs +3 -3
  103. package/esm2022/timepicker/timepicker.module.mjs +2 -2
  104. package/esm2022/timerangepicker/public_api.mjs +1 -1
  105. package/esm2022/timerangepicker/timerangepicker.component.mjs +58 -48
  106. package/esm2022/timerangepicker/timerangepicker.module.mjs +2 -2
  107. package/esm2022/toast/toast.component.mjs +2 -2
  108. package/esm2022/toast/toast.data.service.mjs +2 -2
  109. package/esm2022/toast/toast.module.mjs +2 -2
  110. package/esm2022/toast/toast.service.mjs +2 -2
  111. package/esm2022/tooltip/tooltip-container/tooltip.component.mjs +11 -10
  112. package/esm2022/tooltip/tooltip.directive.mjs +10 -4
  113. package/esm2022/tooltip/tooltip.module.mjs +2 -2
  114. package/esm2022/virtual-scroll/virtual-scroll.component.mjs +2 -2
  115. package/esm2022/virtual-scroll/virtual-scroll.module.mjs +2 -2
  116. package/esm2022/widgets/services/widget.service.mjs +2 -2
  117. package/esm2022/widgets/widgets.module.mjs +2 -2
  118. package/fesm2022/mis-crystal-design-system-action-list.mjs +2 -2
  119. package/fesm2022/mis-crystal-design-system-action-list.mjs.map +1 -1
  120. package/fesm2022/mis-crystal-design-system-analytics.mjs +8 -7
  121. package/fesm2022/mis-crystal-design-system-analytics.mjs.map +1 -1
  122. package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs +102 -50
  123. package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
  124. package/fesm2022/mis-crystal-design-system-button.mjs +3 -3
  125. package/fesm2022/mis-crystal-design-system-button.mjs.map +1 -1
  126. package/fesm2022/mis-crystal-design-system-checkbox.mjs +5 -5
  127. package/fesm2022/mis-crystal-design-system-checkbox.mjs.map +1 -1
  128. package/fesm2022/mis-crystal-design-system-chip.mjs +14 -14
  129. package/fesm2022/mis-crystal-design-system-chip.mjs.map +1 -1
  130. package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs +306 -90
  131. package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
  132. package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +246 -116
  133. package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
  134. package/fesm2022/mis-crystal-design-system-drawer.mjs +3 -3
  135. package/fesm2022/mis-crystal-design-system-drawer.mjs.map +1 -1
  136. package/fesm2022/mis-crystal-design-system-dropdown.mjs +166 -105
  137. package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -1
  138. package/fesm2022/mis-crystal-design-system-dynamic-form.mjs +609 -221
  139. package/fesm2022/mis-crystal-design-system-dynamic-form.mjs.map +1 -1
  140. package/fesm2022/mis-crystal-design-system-fab.mjs +2 -2
  141. package/fesm2022/mis-crystal-design-system-fab.mjs.map +1 -1
  142. package/fesm2022/mis-crystal-design-system-filter.mjs +503 -0
  143. package/fesm2022/mis-crystal-design-system-filter.mjs.map +1 -0
  144. package/fesm2022/mis-crystal-design-system-input-stepper.mjs +5 -5
  145. package/fesm2022/mis-crystal-design-system-input-stepper.mjs.map +1 -1
  146. package/fesm2022/mis-crystal-design-system-input.mjs +3 -3
  147. package/fesm2022/mis-crystal-design-system-input.mjs.map +1 -1
  148. package/fesm2022/mis-crystal-design-system-loader.mjs +2 -2
  149. package/fesm2022/mis-crystal-design-system-loader.mjs.map +1 -1
  150. package/fesm2022/mis-crystal-design-system-menu.mjs +5 -5
  151. package/fesm2022/mis-crystal-design-system-menu.mjs.map +1 -1
  152. package/fesm2022/mis-crystal-design-system-mobile-filter.mjs +10 -8
  153. package/fesm2022/mis-crystal-design-system-mobile-filter.mjs.map +1 -1
  154. package/fesm2022/mis-crystal-design-system-modal.mjs +3 -3
  155. package/fesm2022/mis-crystal-design-system-modal.mjs.map +1 -1
  156. package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs +27 -15
  157. package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
  158. package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs +15 -8
  159. package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
  160. package/fesm2022/mis-crystal-design-system-phone-input.mjs +7 -51
  161. package/fesm2022/mis-crystal-design-system-phone-input.mjs.map +1 -1
  162. package/fesm2022/mis-crystal-design-system-radio-button.mjs +5 -5
  163. package/fesm2022/mis-crystal-design-system-radio-button.mjs.map +1 -1
  164. package/fesm2022/mis-crystal-design-system-ske-loader.mjs +5 -5
  165. package/fesm2022/mis-crystal-design-system-ske-loader.mjs.map +1 -1
  166. package/fesm2022/mis-crystal-design-system-slider.mjs +2 -2
  167. package/fesm2022/mis-crystal-design-system-slider.mjs.map +1 -1
  168. package/fesm2022/mis-crystal-design-system-snackbar.mjs +3 -3
  169. package/fesm2022/mis-crystal-design-system-snackbar.mjs.map +1 -1
  170. package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs +91 -64
  171. package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
  172. package/fesm2022/mis-crystal-design-system-star-rating.mjs +2 -2
  173. package/fesm2022/mis-crystal-design-system-star-rating.mjs.map +1 -1
  174. package/fesm2022/mis-crystal-design-system-switch.mjs +2 -2
  175. package/fesm2022/mis-crystal-design-system-switch.mjs.map +1 -1
  176. package/fesm2022/mis-crystal-design-system-table.mjs +46 -22
  177. package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
  178. package/fesm2022/mis-crystal-design-system-timepicker.mjs +71 -61
  179. package/fesm2022/mis-crystal-design-system-timepicker.mjs.map +1 -1
  180. package/fesm2022/mis-crystal-design-system-timerangepicker.mjs +58 -48
  181. package/fesm2022/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
  182. package/fesm2022/mis-crystal-design-system-toast.mjs +4 -4
  183. package/fesm2022/mis-crystal-design-system-toast.mjs.map +1 -1
  184. package/fesm2022/mis-crystal-design-system-tooltip.mjs +20 -13
  185. package/fesm2022/mis-crystal-design-system-tooltip.mjs.map +1 -1
  186. package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs +2 -2
  187. package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs.map +1 -1
  188. package/fesm2022/mis-crystal-design-system-widgets.mjs +1 -1
  189. package/fesm2022/mis-crystal-design-system-widgets.mjs.map +1 -1
  190. package/filter/animations/slideFromRight.d.ts +1 -0
  191. package/filter/filter-panel/filter-panel.component.d.ts +51 -0
  192. package/filter/filters.module.d.ts +18 -0
  193. package/filter/has-value.pipe.d.ts +12 -0
  194. package/filter/index.d.ts +1 -0
  195. package/filter/public_api.d.ts +4 -0
  196. package/multi-select-dropdown/multi-select-dropdown.component.d.ts +3 -1
  197. package/package.json +29 -23
  198. package/phone-input/phone-input.component.d.ts +6 -15
  199. package/specificdatepicker/public_api.d.ts +2 -3
  200. package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +2 -1
  201. package/styles/mis-mixins.scss +46 -0
  202. package/styles/mis-old-icon-styles.scss +498 -0
  203. package/table/filter/filter.component.d.ts +1 -1
  204. package/table/public_api.d.ts +1 -2
  205. package/timepicker/timepicker.component.d.ts +4 -3
  206. package/timerangepicker/public_api.d.ts +1 -0
  207. package/timerangepicker/timerangepicker.component.d.ts +3 -1
  208. package/tooltip/tooltip-container/tooltip.component.d.ts +2 -1
  209. package/tooltip/tooltip.directive.d.ts +3 -1
@@ -2,7 +2,7 @@ import * as i1 from '@angular/cdk/overlay';
2
2
  import { ConnectionPositionPair, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
3
3
  import { TemplatePortal } from '@angular/cdk/portal';
4
4
  import * as i0 from '@angular/core';
5
- import { EventEmitter, Component, Input, Output, ViewChild, Directive, NgModule } from '@angular/core';
5
+ import { EventEmitter, Component, Input, Output, ViewChild, ContentChild, HostListener, Directive, NgModule } from '@angular/core';
6
6
  import * as i4 from '@angular/cdk/scrolling';
7
7
  import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
8
8
  import * as i2 from '@angular/common';
@@ -11,32 +11,37 @@ import * as i3 from '@angular/forms';
11
11
  import { FormsModule } from '@angular/forms';
12
12
  import * as i5 from 'mis-crystal-design-system/loader';
13
13
  import { LoaderModule } from 'mis-crystal-design-system/loader';
14
+ import * as i6 from '@angular/cdk/a11y';
15
+ import { A11yModule } from '@angular/cdk/a11y';
14
16
  import { ScrollingModule } from '@angular/cdk-experimental/scrolling';
15
17
 
16
- const _c0 = ["select"];
17
- const _c1 = ["popupContainer"];
18
- const _c2 = (a0, a1) => ({ height: a0, width: a1 });
19
- const _c3 = a0 => ({ transform: a0 });
20
- const _c4 = (a0, a1, a2) => ({ paddingLeft: a0, border: a1, paddingRight: a2 });
21
- const _c5 = (a0, a1, a2) => ({ "item-disabled": a0, "item-selected": a1, "icon-only": a2 });
22
- const _c6 = (a0, a1, a2) => ({ width: a0, "display": a1, "flex-direction": a2 });
18
+ const _c0 = ["misCustomItem"];
19
+ const _c1 = ["select"];
20
+ const _c2 = ["popupContainer"];
21
+ const _c3 = (a0, a1) => ({ height: a0, width: a1 });
22
+ const _c4 = a0 => ({ width: a0 });
23
+ const _c5 = a0 => ({ transform: a0 });
24
+ const _c6 = (a0, a1, a2) => ({ paddingLeft: a0, border: a1, paddingRight: a2 });
25
+ const _c7 = (a0, a1, a2) => ({ "item-disabled": a0, "item-selected": a1, "icon-only": a2 });
26
+ const _c8 = a0 => ({ $implicit: a0 });
27
+ const _c9 = (a0, a1, a2) => ({ width: a0, "display": a1, "flex-direction": a2 });
23
28
  function DropdownComponent_img_3_Template(rf, ctx) { if (rf & 1) {
24
- i0.ɵɵelement(0, "img", 10);
29
+ i0.ɵɵelement(0, "img", 11);
25
30
  } if (rf & 2) {
26
31
  const ctx_r1 = i0.ɵɵnextContext();
27
- i0.ɵɵproperty("src", ctx_r1.selectedItem.customIcon, i0.ɵɵsanitizeUrl);
32
+ i0.ɵɵproperty("width", 16)("height", 16)("src", ctx_r1.selectedItem == null ? null : ctx_r1.selectedItem.customIcon, i0.ɵɵsanitizeUrl);
28
33
  } }
29
34
  function DropdownComponent_p_5_Template(rf, ctx) { if (rf & 1) {
30
- i0.ɵɵelementStart(0, "p", 11);
35
+ i0.ɵɵelementStart(0, "p", 12);
31
36
  i0.ɵɵtext(1);
32
37
  i0.ɵɵelementEnd();
33
38
  } if (rf & 2) {
34
39
  const ctx_r1 = i0.ɵɵnextContext();
35
40
  i0.ɵɵadvance();
36
- i0.ɵɵtextInterpolate1(" ", ctx_r1.multiLine ? ctx_r1.selectedItem.label == null ? null : ctx_r1.selectedItem.label.primaryText : ctx_r1.selectedItem.label || ctx_r1.label, " ");
41
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.multiLine ? ctx_r1.selectedItem == null ? null : ctx_r1.selectedItem.label == null ? null : ctx_r1.selectedItem.label.primaryText : (ctx_r1.selectedItem == null ? null : ctx_r1.selectedItem.label) || ctx_r1.label, " ");
37
42
  } }
38
43
  function DropdownComponent_ng_template_6_p_0_Template(rf, ctx) { if (rf & 1) {
39
- i0.ɵɵelementStart(0, "p", 11);
44
+ i0.ɵɵelementStart(0, "p", 12);
40
45
  i0.ɵɵtext(1);
41
46
  i0.ɵɵelementEnd();
42
47
  } if (rf & 2) {
@@ -45,113 +50,145 @@ function DropdownComponent_ng_template_6_p_0_Template(rf, ctx) { if (rf & 1) {
45
50
  i0.ɵɵtextInterpolate1(" ", ctx_r1.label, " ");
46
51
  } }
47
52
  function DropdownComponent_ng_template_6_img_1_Template(rf, ctx) { if (rf & 1) {
48
- i0.ɵɵelement(0, "img", 14);
53
+ i0.ɵɵelement(0, "img", 15);
49
54
  } if (rf & 2) {
50
55
  const ctx_r1 = i0.ɵɵnextContext(2);
51
- i0.ɵɵproperty("src", ctx_r1.selectedItem.icon, i0.ɵɵsanitizeUrl);
56
+ i0.ɵɵproperty("src", ctx_r1.selectedItem == null ? null : ctx_r1.selectedItem.icon, i0.ɵɵsanitizeUrl);
52
57
  } }
53
58
  function DropdownComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
54
- i0.ɵɵtemplate(0, DropdownComponent_ng_template_6_p_0_Template, 2, 1, "p", 12)(1, DropdownComponent_ng_template_6_img_1_Template, 1, 1, "img", 13);
59
+ i0.ɵɵtemplate(0, DropdownComponent_ng_template_6_p_0_Template, 2, 1, "p", 13)(1, DropdownComponent_ng_template_6_img_1_Template, 1, 1, "img", 14);
55
60
  } if (rf & 2) {
56
61
  const ctx_r1 = i0.ɵɵnextContext();
57
- i0.ɵɵproperty("ngIf", !ctx_r1.selectedItem.icon);
62
+ i0.ɵɵproperty("ngIf", !(ctx_r1.selectedItem == null ? null : ctx_r1.selectedItem.icon));
58
63
  i0.ɵɵadvance();
59
- i0.ɵɵproperty("ngIf", !!ctx_r1.selectedItem.icon);
64
+ i0.ɵɵproperty("ngIf", !!(ctx_r1.selectedItem == null ? null : ctx_r1.selectedItem.icon));
60
65
  } }
61
66
  function DropdownComponent_ng_template_10_div_1__svg_svg_1_Template(rf, ctx) { if (rf & 1) {
62
67
  i0.ɵɵnamespaceSVG();
63
- i0.ɵɵelementStart(0, "svg", 23);
64
- i0.ɵɵelement(1, "path", 24);
68
+ i0.ɵɵelementStart(0, "svg", 25);
69
+ i0.ɵɵelement(1, "path", 26);
65
70
  i0.ɵɵelementEnd();
66
71
  } }
67
72
  function DropdownComponent_ng_template_10_div_1__svg_svg_3_Template(rf, ctx) { if (rf & 1) {
68
- const _r4 = i0.ɵɵgetCurrentView();
73
+ const _r5 = i0.ɵɵgetCurrentView();
69
74
  i0.ɵɵnamespaceSVG();
70
- i0.ɵɵelementStart(0, "svg", 25);
71
- i0.ɵɵlistener("click", function DropdownComponent_ng_template_10_div_1__svg_svg_3_Template_svg_click_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.searchInputCanceled($event)); });
72
- i0.ɵɵelement(1, "path", 26);
75
+ i0.ɵɵelementStart(0, "svg", 27);
76
+ i0.ɵɵlistener("click", function DropdownComponent_ng_template_10_div_1__svg_svg_3_Template_svg_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.searchInputCanceled($event)); });
77
+ i0.ɵɵelement(1, "path", 28);
73
78
  i0.ɵɵelementEnd();
74
79
  } }
75
80
  function DropdownComponent_ng_template_10_div_1_Template(rf, ctx) { if (rf & 1) {
76
- const _r3 = i0.ɵɵgetCurrentView();
77
- i0.ɵɵelementStart(0, "div", 19);
78
- i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_1__svg_svg_1_Template, 2, 0, "svg", 20);
79
- i0.ɵɵelementStart(2, "input", 21);
80
- i0.ɵɵlistener("ngModelChange", function DropdownComponent_ng_template_10_div_1_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.searchInputOnChange($event)); })("focus", function DropdownComponent_ng_template_10_div_1_Template_input_focus_2_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.searchInputFocused(true)); });
81
+ const _r4 = i0.ɵɵgetCurrentView();
82
+ i0.ɵɵelementStart(0, "div", 21);
83
+ i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_1__svg_svg_1_Template, 2, 0, "svg", 22);
84
+ i0.ɵɵelementStart(2, "input", 23);
85
+ i0.ɵɵlistener("ngModelChange", function DropdownComponent_ng_template_10_div_1_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.searchInputOnChange($event)); })("focus", function DropdownComponent_ng_template_10_div_1_Template_input_focus_2_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.searchInputFocused(true)); });
81
86
  i0.ɵɵelementEnd();
82
- i0.ɵɵtemplate(3, DropdownComponent_ng_template_10_div_1__svg_svg_3_Template, 2, 0, "svg", 22);
87
+ i0.ɵɵtemplate(3, DropdownComponent_ng_template_10_div_1__svg_svg_3_Template, 2, 0, "svg", 24);
83
88
  i0.ɵɵelementEnd();
84
89
  } if (rf & 2) {
85
90
  const ctx_r1 = i0.ɵɵnextContext(2);
86
91
  i0.ɵɵadvance();
87
92
  i0.ɵɵproperty("ngIf", !ctx_r1.isSearchInputFocused);
88
93
  i0.ɵɵadvance();
89
- i0.ɵɵproperty("ngModel", ctx_r1.searchInput)("ngStyle", i0.ɵɵpureFunction3(5, _c4, ctx_r1.isSearchInputFocused ? "12px" : "45px", ctx_r1.isSearchInputFocused ? "1px solid #0937B2" : "1px solid #e0e0e0", ctx_r1.isSearchInputFocused ? "45px" : "10px"))("placeholder", ctx_r1.isSearchInputFocused ? "" : ctx_r1.searchLabel);
94
+ i0.ɵɵproperty("ngModel", ctx_r1.searchInput)("ngStyle", i0.ɵɵpureFunction3(7, _c6, ctx_r1.isSearchInputFocused ? "12px" : "45px", ctx_r1.isSearchInputFocused ? "1px solid #0937B2" : "1px solid #e0e0e0", ctx_r1.isSearchInputFocused ? "45px" : "10px"))("tabIndex", 0)("placeholder", ctx_r1.isSearchInputFocused ? "" : ctx_r1.searchLabel);
95
+ i0.ɵɵattribute("aria-label", ctx_r1.searchLabel);
90
96
  i0.ɵɵadvance();
91
97
  i0.ɵɵproperty("ngIf", ctx_r1.isSearchInputFocused);
92
98
  } }
93
99
  function DropdownComponent_ng_template_10_div_2_Template(rf, ctx) { if (rf & 1) {
94
- i0.ɵɵelementStart(0, "div", 27);
95
- i0.ɵɵelement(1, "mis-loader", 28);
100
+ i0.ɵɵelementStart(0, "div", 29);
101
+ i0.ɵɵelement(1, "mis-loader", 30);
96
102
  i0.ɵɵelementEnd();
97
103
  } if (rf & 2) {
98
104
  i0.ɵɵadvance();
99
105
  i0.ɵɵproperty("mobileView", true);
100
106
  } }
101
- function DropdownComponent_ng_template_10_div_3_div_2_div_1_span_3_Template(rf, ctx) { if (rf & 1) {
102
- i0.ɵɵelementStart(0, "span", 39);
107
+ function DropdownComponent_ng_template_10_div_3_Template(rf, ctx) { if (rf & 1) {
108
+ i0.ɵɵelement(0, "div", 31);
109
+ } }
110
+ function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
111
+ i0.ɵɵelementContainerStart(0);
112
+ i0.ɵɵelementContainer(1, 39);
113
+ i0.ɵɵelementContainerEnd();
114
+ } if (rf & 2) {
115
+ const item_r7 = i0.ɵɵnextContext().$implicit;
116
+ const ctx_r1 = i0.ɵɵnextContext(4);
117
+ i0.ɵɵadvance();
118
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.customItem)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c8, item_r7));
119
+ } }
120
+ function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_0_span_3_Template(rf, ctx) { if (rf & 1) {
121
+ i0.ɵɵelementStart(0, "span", 44);
103
122
  i0.ɵɵtext(1);
104
123
  i0.ɵɵelementEnd();
105
124
  } if (rf & 2) {
106
- const item_r6 = i0.ɵɵnextContext(2).$implicit;
107
- const ctx_r1 = i0.ɵɵnextContext(3);
108
- i0.ɵɵproperty("ngStyle", ctx_r1.getIconStyles(item_r6.icon, ctx_r1.activeItem));
125
+ const item_r7 = i0.ɵɵnextContext(3).$implicit;
126
+ const ctx_r1 = i0.ɵɵnextContext(4);
127
+ i0.ɵɵproperty("ngStyle", ctx_r1.getIconStyles(item_r7.icon, ctx_r1.activeItem));
109
128
  i0.ɵɵadvance();
110
- i0.ɵɵtextInterpolate1(" ", (item_r6.label == null ? null : item_r6.label.secondaryText) ? item_r6.label == null ? null : item_r6.label.secondaryText : ctx_r1.additionalInfoMessage, " ");
129
+ i0.ɵɵtextInterpolate1(" ", (item_r7 == null ? null : item_r7.label == null ? null : item_r7.label.secondaryText) ? item_r7 == null ? null : item_r7.label == null ? null : item_r7.label.secondaryText : ctx_r1.additionalInfoMessage, " ");
111
130
  } }
112
- function DropdownComponent_ng_template_10_div_3_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
113
- i0.ɵɵelementStart(0, "div", 36)(1, "span", 37);
131
+ function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_0_Template(rf, ctx) { if (rf & 1) {
132
+ i0.ɵɵelementStart(0, "div", 7)(1, "span", 42);
114
133
  i0.ɵɵtext(2);
115
134
  i0.ɵɵelementEnd();
116
- i0.ɵɵtemplate(3, DropdownComponent_ng_template_10_div_3_div_2_div_1_span_3_Template, 2, 2, "span", 38);
135
+ i0.ɵɵtemplate(3, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_0_span_3_Template, 2, 2, "span", 43);
117
136
  i0.ɵɵelementEnd();
118
137
  } if (rf & 2) {
119
- const item_r6 = i0.ɵɵnextContext().$implicit;
120
- const ctx_r1 = i0.ɵɵnextContext(3);
121
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(4, _c6, item_r6.icon ? "90%" : "100%", ctx_r1.multiLine ? "flex" : "inherit", ctx_r1.multiLine ? "column" : "inherit"));
138
+ const item_r7 = i0.ɵɵnextContext(2).$implicit;
139
+ const ctx_r1 = i0.ɵɵnextContext(4);
140
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(4, _c9, item_r7.icon ? "90%" : "100%", ctx_r1.multiLine ? "flex" : "inherit", ctx_r1.multiLine ? "column" : "inherit"));
122
141
  i0.ɵɵadvance();
123
- i0.ɵɵproperty("ngStyle", ctx_r1.getIconStyles(item_r6.icon, ctx_r1.activeItem));
142
+ i0.ɵɵproperty("ngStyle", ctx_r1.getIconStyles(item_r7.icon, ctx_r1.activeItem));
124
143
  i0.ɵɵadvance();
125
- i0.ɵɵtextInterpolate(ctx_r1.multiLine ? item_r6.label == null ? null : item_r6.label.primaryText : item_r6.label);
144
+ i0.ɵɵtextInterpolate(ctx_r1.multiLine ? item_r7 == null ? null : item_r7.label == null ? null : item_r7.label.primaryText : item_r7 == null ? null : item_r7.label);
126
145
  i0.ɵɵadvance();
127
146
  i0.ɵɵproperty("ngIf", ctx_r1.multiLine);
128
147
  } }
129
- function DropdownComponent_ng_template_10_div_3_div_2_div_2_Template(rf, ctx) { if (rf & 1) {
130
- i0.ɵɵelementStart(0, "div", 40);
131
- i0.ɵɵelement(1, "img", 14);
148
+ function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_1_Template(rf, ctx) { if (rf & 1) {
149
+ i0.ɵɵelementStart(0, "div", 45);
150
+ i0.ɵɵelement(1, "img", 15);
132
151
  i0.ɵɵelementEnd();
133
152
  } if (rf & 2) {
134
- const item_r6 = i0.ɵɵnextContext().$implicit;
153
+ const item_r7 = i0.ɵɵnextContext(2).$implicit;
135
154
  i0.ɵɵadvance();
136
- i0.ɵɵproperty("src", item_r6.icon, i0.ɵɵsanitizeUrl);
155
+ i0.ɵɵproperty("src", item_r7.icon, i0.ɵɵsanitizeUrl);
137
156
  } }
138
- function DropdownComponent_ng_template_10_div_3_div_2_Template(rf, ctx) { if (rf & 1) {
139
- const _r5 = i0.ɵɵgetCurrentView();
140
- i0.ɵɵelementStart(0, "div", 33);
141
- i0.ɵɵlistener("click", function DropdownComponent_ng_template_10_div_3_div_2_Template_div_click_0_listener() { const item_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(item_r6.disabled ? null : ctx_r1.selectItem(item_r6)); })("keyup.enter", function DropdownComponent_ng_template_10_div_3_div_2_Template_div_keyup_enter_0_listener() { const item_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(item_r6.disabled ? null : ctx_r1.selectItem(item_r6)); });
142
- i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_3_div_2_div_1_Template, 4, 8, "div", 34)(2, DropdownComponent_ng_template_10_div_3_div_2_div_2_Template, 2, 1, "div", 35);
157
+ function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
158
+ i0.ɵɵtemplate(0, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_0_Template, 4, 8, "div", 40)(1, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_1_Template, 2, 1, "div", 41);
159
+ } if (rf & 2) {
160
+ const item_r7 = i0.ɵɵnextContext().$implicit;
161
+ const ctx_r1 = i0.ɵɵnextContext(4);
162
+ i0.ɵɵproperty("ngIf", !ctx_r1.showOnlyIcon);
163
+ i0.ɵɵadvance();
164
+ i0.ɵɵproperty("ngIf", item_r7.icon);
165
+ } }
166
+ function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_Template(rf, ctx) { if (rf & 1) {
167
+ const _r6 = i0.ɵɵgetCurrentView();
168
+ i0.ɵɵelementStart(0, "div", 37);
169
+ i0.ɵɵlistener("click", function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_Template_div_click_0_listener() { const item_r7 = i0.ɵɵrestoreView(_r6).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(item_r7.disabled ? null : ctx_r1.selectItem(item_r7)); })("keyup.enter", function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_Template_div_keyup_enter_0_listener() { const item_r7 = i0.ɵɵrestoreView(_r6).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(item_r7.disabled ? null : ctx_r1.selectItem(item_r7)); });
170
+ i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_container_1_Template, 2, 4, "ng-container", 38)(2, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_Template, 2, 2, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
143
171
  i0.ɵɵelementEnd();
144
172
  } if (rf & 2) {
145
- const item_r6 = ctx.$implicit;
146
- const ctx_r1 = i0.ɵɵnextContext(3);
147
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(3, _c5, item_r6.disabled, ctx_r1.higlightSelectedValue && item_r6.value === ctx_r1.selectedItem.value, ctx_r1.showOnlyIcon));
173
+ const item_r7 = ctx.$implicit;
174
+ const standardItem_r8 = i0.ɵɵreference(3);
175
+ const ctx_r1 = i0.ɵɵnextContext(4);
176
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(3, _c7, item_r7.disabled, ctx_r1.higlightSelectedValue && item_r7.value === (ctx_r1.selectedItem == null ? null : ctx_r1.selectedItem.value), ctx_r1.showOnlyIcon));
148
177
  i0.ɵɵadvance();
149
- i0.ɵɵproperty("ngIf", !ctx_r1.showOnlyIcon);
178
+ i0.ɵɵproperty("ngIf", ctx_r1.customItem)("ngIfElse", standardItem_r8);
179
+ } }
180
+ function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_Template(rf, ctx) { if (rf & 1) {
181
+ i0.ɵɵelementStart(0, "cdk-virtual-scroll-viewport", 35);
182
+ i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_Template, 4, 7, "div", 36);
183
+ i0.ɵɵelementEnd();
184
+ } if (rf & 2) {
185
+ const ctx_r1 = i0.ɵɵnextContext(3);
186
+ i0.ɵɵproperty("itemSize", ctx_r1.itemSizeForCdk);
150
187
  i0.ɵɵadvance();
151
- i0.ɵɵproperty("ngIf", item_r6.icon);
188
+ i0.ɵɵproperty("cdkVirtualForOf", ctx_r1.searchInput ? ctx_r1.searchData : ctx_r1.data);
152
189
  } }
153
- function DropdownComponent_ng_template_10_div_3_div_3_Template(rf, ctx) { if (rf & 1) {
154
- i0.ɵɵelementStart(0, "div", 41);
190
+ function DropdownComponent_ng_template_10_div_4_div_2_Template(rf, ctx) { if (rf & 1) {
191
+ i0.ɵɵelementStart(0, "div", 46);
155
192
  i0.ɵɵtext(1);
156
193
  i0.ɵɵelementEnd();
157
194
  } if (rf & 2) {
@@ -159,33 +196,33 @@ function DropdownComponent_ng_template_10_div_3_div_3_Template(rf, ctx) { if (rf
159
196
  i0.ɵɵadvance();
160
197
  i0.ɵɵtextInterpolate1(" ", ctx_r1.searchInput === "" ? ctx_r1.noDataMessage : "No results", " ");
161
198
  } }
162
- function DropdownComponent_ng_template_10_div_3_Template(rf, ctx) { if (rf & 1) {
163
- i0.ɵɵelementStart(0, "div", 29)(1, "cdk-virtual-scroll-viewport", 30);
164
- i0.ɵɵtemplate(2, DropdownComponent_ng_template_10_div_3_div_2_Template, 3, 7, "div", 31);
165
- i0.ɵɵelementEnd();
166
- i0.ɵɵtemplate(3, DropdownComponent_ng_template_10_div_3_div_3_Template, 2, 1, "div", 32);
199
+ function DropdownComponent_ng_template_10_div_4_Template(rf, ctx) { if (rf & 1) {
200
+ i0.ɵɵelementStart(0, "div", 32);
201
+ i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_Template, 2, 2, "cdk-virtual-scroll-viewport", 33)(2, DropdownComponent_ng_template_10_div_4_div_2_Template, 2, 1, "div", 34);
167
202
  i0.ɵɵelementEnd();
168
203
  } if (rf & 2) {
169
204
  const ctx_r1 = i0.ɵɵnextContext(2);
170
205
  i0.ɵɵadvance();
171
- i0.ɵɵproperty("itemSize", ctx_r1.itemSizeForCdk);
172
- i0.ɵɵadvance();
173
- i0.ɵɵproperty("cdkVirtualForOf", ctx_r1.searchInput ? ctx_r1.searchData : ctx_r1.data);
206
+ i0.ɵɵproperty("ngIf", !((ctx_r1.searchInput ? ctx_r1.searchData : ctx_r1.data).length === 0));
174
207
  i0.ɵɵadvance();
175
208
  i0.ɵɵproperty("ngIf", (ctx_r1.searchInput ? ctx_r1.searchData : ctx_r1.data).length === 0);
176
209
  } }
177
210
  function DropdownComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
178
- i0.ɵɵelementStart(0, "div", 15);
179
- i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_1_Template, 4, 9, "div", 16)(2, DropdownComponent_ng_template_10_div_2_Template, 2, 1, "div", 17)(3, DropdownComponent_ng_template_10_div_3_Template, 4, 3, "div", 18);
211
+ const _r3 = i0.ɵɵgetCurrentView();
212
+ i0.ɵɵelementStart(0, "div", 16);
213
+ i0.ɵɵlistener("keyup.esc", function DropdownComponent_ng_template_10_Template_div_keyup_esc_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.closeOnEsc($event)); });
214
+ i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_1_Template, 4, 11, "div", 17)(2, DropdownComponent_ng_template_10_div_2_Template, 2, 1, "div", 18)(3, DropdownComponent_ng_template_10_div_3_Template, 1, 0, "div", 19)(4, DropdownComponent_ng_template_10_div_4_Template, 3, 2, "div", 20);
180
215
  i0.ɵɵelementEnd();
181
216
  } if (rf & 2) {
182
217
  const ctx_r1 = i0.ɵɵnextContext();
183
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(4, _c2, ctx_r1.dropdownListHeight, ctx_r1.dropdownListWidth));
218
+ i0.ɵɵproperty("cdkTrapFocusAutoCapture", true)("ngStyle", i0.ɵɵpureFunction2(6, _c3, ctx_r1.dropdownListHeight, ctx_r1.dropdownListWidth));
184
219
  i0.ɵɵadvance();
185
220
  i0.ɵɵproperty("ngIf", ctx_r1.searchEnabled);
186
221
  i0.ɵɵadvance();
187
222
  i0.ɵɵproperty("ngIf", ctx_r1.loading);
188
223
  i0.ɵɵadvance();
224
+ i0.ɵɵproperty("ngIf", !ctx_r1.searchEnabled);
225
+ i0.ɵɵadvance();
189
226
  i0.ɵɵproperty("ngIf", !ctx_r1.loading);
190
227
  } }
191
228
  class DropdownComponent {
@@ -201,6 +238,7 @@ class DropdownComponent {
201
238
  this.visibleItems = 10;
202
239
  this.data = [];
203
240
  this.height = "";
241
+ this.ariaLabel = "";
204
242
  this.width = "";
205
243
  this.label = "Select";
206
244
  this.showOnlyIcon = false;
@@ -312,51 +350,68 @@ class DropdownComponent {
312
350
  this.overlayRef?.detach();
313
351
  this.searchInput = "";
314
352
  }
315
- static { this.ɵfac = function DropdownComponent_Factory(t) { return new (t || DropdownComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Overlay), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); }; }
316
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DropdownComponent, selectors: [["mis-dropdown"]], viewQuery: function DropdownComponent_Query(rf, ctx) { if (rf & 1) {
317
- i0.ɵɵviewQuery(_c0, 5);
353
+ closeOnEsc(event) {
354
+ this.onCancel();
355
+ event.stopPropagation();
356
+ event.preventDefault();
357
+ }
358
+ static { this.ɵfac = function DropdownComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DropdownComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Overlay), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); }; }
359
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DropdownComponent, selectors: [["mis-dropdown"]], contentQueries: function DropdownComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
360
+ i0.ɵɵcontentQuery(dirIndex, _c0, 5);
361
+ } if (rf & 2) {
362
+ let _t;
363
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customItem = _t.first);
364
+ } }, viewQuery: function DropdownComponent_Query(rf, ctx) { if (rf & 1) {
318
365
  i0.ɵɵviewQuery(_c1, 5);
366
+ i0.ɵɵviewQuery(_c2, 5);
319
367
  i0.ɵɵviewQuery(CdkVirtualScrollViewport, 5);
320
368
  } if (rf & 2) {
321
369
  let _t;
322
370
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectElement = _t.first);
323
371
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popupContainer = _t.first);
324
372
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewPort = _t.first);
325
- } }, inputs: { data: "data", height: "height", width: "width", label: "label", itemSizeForCdk: "itemSizeForCdk", showOnlyIcon: "showOnlyIcon", higlightSelectedValue: "higlightSelectedValue", dropdownListHeight: "dropdownListHeight", dropdownListWidth: "dropdownListWidth", dropdownListPosition: "dropdownListPosition", config: "config", searchEnabled: "searchEnabled", selectedItem: "selectedItem", noDataMessage: "noDataMessage", multiLine: "multiLine", additionalInfoMessage: "additionalInfoMessage", scrollIntoView: "scrollIntoView", searchLabel: "searchLabel", customStyles: "customStyles", activeItem: "activeItem" }, outputs: { onChange: "onChange" }, decls: 12, vars: 12, consts: [["select", ""], ["showIcon", ""], ["popupContainer", ""], [1, "main-container", 3, "click", "ngStyle"], ["tabindex", "0", 1, "dropdown", 3, "keyup.enter", "click", "ngStyle", "ngClass"], ["class", "img-container", 3, "src", 4, "ngIf"], [1, "label"], ["class", "text", 4, "ngIf", "ngIfElse"], ["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"], [1, "img-container", 3, "src"], [1, "text"], ["class", "text", 4, "ngIf"], ["class", "icon", "alt", "no img", 3, "src", 4, "ngIf"], ["alt", "no img", 1, "icon", 3, "src"], [1, "popup-container", 3, "ngStyle"], ["class", "search-container", 4, "ngIf"], ["class", "status-container", 4, "ngIf"], ["class", "items", 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, "ngModelChange", "focus", "ngModel", "ngStyle", "placeholder"], ["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"], [1, "status-container"], [3, "mobileView"], [1, "items"], [1, "dropdown-viewport", 3, "itemSize"], ["class", "item", "tabindex", "0", 3, "ngClass", "click", "keyup.enter", 4, "cdkVirtualFor", "cdkVirtualForOf"], ["class", "noData", 4, "ngIf"], ["tabindex", "0", 1, "item", 3, "click", "keyup.enter", "ngClass"], ["class", "label", 3, "ngStyle", 4, "ngIf"], ["class", "icon-container", 4, "ngIf"], [1, "label", 3, "ngStyle"], [1, "primaryText", 3, "ngStyle"], ["class", "secondaryText", 3, "ngStyle", 4, "ngIf"], [1, "secondaryText", 3, "ngStyle"], [1, "icon-container"], [1, "noData"]], template: function DropdownComponent_Template(rf, ctx) { if (rf & 1) {
373
+ } }, hostBindings: function DropdownComponent_HostBindings(rf, ctx) { if (rf & 1) {
374
+ i0.ɵɵlistener("keyup.esc", function DropdownComponent_keyup_esc_HostBindingHandler($event) { return ctx.closeOnEsc($event); });
375
+ } }, inputs: { data: "data", height: "height", ariaLabel: "ariaLabel", width: "width", label: "label", itemSizeForCdk: "itemSizeForCdk", showOnlyIcon: "showOnlyIcon", higlightSelectedValue: "higlightSelectedValue", dropdownListHeight: "dropdownListHeight", dropdownListWidth: "dropdownListWidth", dropdownListPosition: "dropdownListPosition", config: "config", searchEnabled: "searchEnabled", selectedItem: "selectedItem", noDataMessage: "noDataMessage", multiLine: "multiLine", additionalInfoMessage: "additionalInfoMessage", scrollIntoView: "scrollIntoView", searchLabel: "searchLabel", customStyles: "customStyles", activeItem: "activeItem" }, outputs: { onChange: "onChange" }, decls: 12, vars: 16, consts: [["select", ""], ["showIcon", ""], ["popupContainer", ""], ["standardItem", ""], [1, "main-container", 3, "click", "keyup.enter", "ngStyle"], ["tabindex", "0", 1, "dropdown", 3, "keyup.enter", "click", "ngStyle", "ngClass"], ["class", "img-container", 3, "width", "height", "src", 4, "ngIf"], [1, "label", 3, "ngStyle"], ["class", "text", 4, "ngIf", "ngIfElse"], ["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"], [1, "img-container", 3, "width", "height", "src"], [1, "text"], ["class", "text", 4, "ngIf"], ["class", "icon", "alt", "no img", 3, "src", 4, "ngIf"], ["alt", "no img", 1, "icon", 3, "src"], ["cdkTrapFocus", "", "tabindex", "0", "aria-label", "dropdown", 1, "popup-container", 3, "keyup.esc", "cdkTrapFocusAutoCapture", "ngStyle"], ["class", "search-container", 4, "ngIf"], ["class", "status-container", 4, "ngIf"], ["tabindex", "-1", "cdkFocusInitial", "", 4, "ngIf"], ["class", "items", 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, "ngModelChange", "focus", "ngModel", "ngStyle", "tabIndex", "placeholder"], ["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"], [1, "status-container"], [3, "mobileView"], ["tabindex", "-1", "cdkFocusInitial", ""], [1, "items"], ["class", "dropdown-viewport", 3, "itemSize", 4, "ngIf"], ["class", "noData", 4, "ngIf"], [1, "dropdown-viewport", 3, "itemSize"], ["class", "item", "tabindex", "0", "tabIndex", "0", 3, "ngClass", "click", "keyup.enter", 4, "cdkVirtualFor", "cdkVirtualForOf"], ["tabindex", "0", "tabIndex", "0", 1, "item", 3, "click", "keyup.enter", "ngClass"], [4, "ngIf", "ngIfElse"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["class", "label", 3, "ngStyle", 4, "ngIf"], ["class", "icon-container", 4, "ngIf"], [1, "primaryText", 3, "ngStyle"], ["class", "secondaryText", 3, "ngStyle", 4, "ngIf"], [1, "secondaryText", 3, "ngStyle"], [1, "icon-container"], [1, "noData"]], template: function DropdownComponent_Template(rf, ctx) { if (rf & 1) {
326
376
  const _r1 = i0.ɵɵgetCurrentView();
327
- i0.ɵɵelementStart(0, "div", 3);
328
- i0.ɵɵlistener("click", function DropdownComponent_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.setUpAsyncDataSearch()); });
329
- i0.ɵɵelementStart(1, "div", 4, 0);
377
+ i0.ɵɵelementStart(0, "div", 4);
378
+ i0.ɵɵlistener("click", function DropdownComponent_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.setUpAsyncDataSearch()); })("keyup.enter", function DropdownComponent_Template_div_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.setUpAsyncDataSearch()); });
379
+ i0.ɵɵelementStart(1, "div", 5, 0);
330
380
  i0.ɵɵlistener("keyup.enter", function DropdownComponent_Template_div_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.toggleDropdown()); })("click", function DropdownComponent_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.toggleDropdown()); });
331
- i0.ɵɵtemplate(3, DropdownComponent_img_3_Template, 1, 1, "img", 5);
332
- i0.ɵɵelementStart(4, "div", 6);
333
- i0.ɵɵtemplate(5, DropdownComponent_p_5_Template, 2, 1, "p", 7)(6, DropdownComponent_ng_template_6_Template, 2, 2, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
381
+ i0.ɵɵtemplate(3, DropdownComponent_img_3_Template, 1, 3, "img", 6);
382
+ i0.ɵɵelementStart(4, "div", 7);
383
+ i0.ɵɵtemplate(5, DropdownComponent_p_5_Template, 2, 1, "p", 8)(6, DropdownComponent_ng_template_6_Template, 2, 2, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
334
384
  i0.ɵɵelementEnd();
335
385
  i0.ɵɵnamespaceSVG();
336
- i0.ɵɵelementStart(8, "svg", 8);
337
- i0.ɵɵelement(9, "path", 9);
386
+ i0.ɵɵelementStart(8, "svg", 9);
387
+ i0.ɵɵelement(9, "path", 10);
338
388
  i0.ɵɵelementEnd()()();
339
- i0.ɵɵtemplate(10, DropdownComponent_ng_template_10_Template, 4, 7, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
389
+ i0.ɵɵtemplate(10, DropdownComponent_ng_template_10_Template, 5, 9, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
340
390
  } if (rf & 2) {
341
- const showIcon_r7 = i0.ɵɵreference(7);
342
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(7, _c2, ctx.height.length > 0 ? ctx.height : "", ctx.width.length > 0 ? ctx.width : ""));
391
+ const showIcon_r9 = i0.ɵɵreference(7);
392
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(9, _c3, ctx.height.length > 0 ? ctx.height : "", ctx.width.length > 0 ? ctx.width : ""));
343
393
  i0.ɵɵadvance();
344
394
  i0.ɵɵproperty("ngStyle", ctx.customStyles)("ngClass", ctx.isOpen ? "dropdown-port" : "");
395
+ i0.ɵɵattribute("aria-label", ctx.ariaLabel);
345
396
  i0.ɵɵadvance(2);
346
- i0.ɵɵproperty("ngIf", ctx.selectedItem.customIcon);
347
- i0.ɵɵadvance(2);
348
- i0.ɵɵproperty("ngIf", !ctx.showOnlyIcon)("ngIfElse", showIcon_r7);
397
+ i0.ɵɵproperty("ngIf", ctx.selectedItem == null ? null : ctx.selectedItem.customIcon);
398
+ i0.ɵɵadvance();
399
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c4, (ctx.selectedItem == null ? null : ctx.selectedItem.customIcon) ? "calc(100% - 48px)" : "calc(100% - 32px)"));
400
+ i0.ɵɵadvance();
401
+ i0.ɵɵproperty("ngIf", !ctx.showOnlyIcon)("ngIfElse", showIcon_r9);
349
402
  i0.ɵɵadvance(3);
350
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(10, _c3, ctx.isOpen ? "rotate(180deg)" : "rotate(0deg)"));
351
- } }, dependencies: [i2.NgClass, i2.NgIf, i2.NgStyle, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i4.CdkFixedSizeVirtualScroll, i4.CdkVirtualForOf, i4.CdkVirtualScrollViewport, i5.LoaderComponent], styles: [".main-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;height:32px;width:256px;font-family:Lato,sans-serif!important}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;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%;box-sizing:border-box;padding:0 12px}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]:hover, .main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]:focus-visible{background-color:#f5f7fc;outline:none}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{box-sizing:border-box;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}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{margin:0!important;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}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{background-color:#e0e0e0;border-radius:50%;padding:2px 7px;margin:0}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .handle[_ngcontent-%COMP%]{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{width:20px;height:20px}.main-container[_ngcontent-%COMP%] .dropdown-port[_ngcontent-%COMP%]{background:#e6ebf7}.popup-container[_ngcontent-%COMP%]{width:100%;max-height:340px;padding-bottom:0;border:1px solid #e0e0e0;border-radius:8px;background-color:#fff;box-shadow:0 12px 24px #0000001f;display:flex;flex-direction:column;overflow:hidden;justify-content:space-between}.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}.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%] .dropdown-viewport[_ngcontent-%COMP%]{height:200px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;height:auto;letter-spacing:.2px;color:#181f33}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover, .popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:focus-visible{background-color:#f5f7fc;outline:none}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:100%;line-height:20px;font-size:14px;font-style:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .primaryText[_ngcontent-%COMP%]{color:#181f33;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .secondaryText[_ngcontent-%COMP%]{color:#6a737d;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{width:10%;display:flex;justify-content:flex-end}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:20px;height:20px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%]{cursor:not-allowed!important}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%]:hover, .popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%]:focus-visible{background-color:transparent!important;outline:none!important}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#929dab!important;-webkit-user-select:none!important;user-select:none!important}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-selected[_ngcontent-%COMP%]{background-color:#e0e6f6;outline:none}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .icon-only[_ngcontent-%COMP%]{justify-content:center!important}[_ngcontent-%COMP%]::-webkit-scrollbar{height:8px;width:8px;background:#fff;border-radius:13px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#c8cdd3;border-radius:13px;cursor:pointer}.status-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:128px}.status-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center}"] }); }
403
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(14, _c5, ctx.isOpen ? "rotate(180deg)" : "rotate(0deg)"));
404
+ } }, dependencies: [i2.NgClass, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i4.CdkFixedSizeVirtualScroll, i4.CdkVirtualForOf, i4.CdkVirtualScrollViewport, i5.LoaderComponent, i6.CdkTrapFocus], styles: [".main-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;height:32px;width:256px;font-family:Lato,sans-serif!important}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:inherit;border:1px solid #e0e0e0;border-radius:6px;background-color:#fff;cursor:pointer;display:flex;gap:4px;align-items:center;width:100%;box-sizing:border-box;padding:0 12px}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]:hover, .main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]:focus-visible{background-color:#f5f7fc;outline:none}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;justify-content:flex-start;align-items:center;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{margin:0!important;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}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{background-color:#e0e0e0;border-radius:50%;padding:2px 7px;margin:0}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .handle[_ngcontent-%COMP%]{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.main-container[_ngcontent-%COMP%] .dropdown-port[_ngcontent-%COMP%]{background:#e6ebf7}.popup-container[_ngcontent-%COMP%]{width:100%;max-height:340px;padding-bottom:0;border:1px solid #e0e0e0;border-radius:8px;background-color:#fff;box-shadow:0 12px 24px #0000001f;display:flex;flex-direction:column;overflow:hidden;justify-content:space-between}.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%]{height:100%;min-height:200px;padding:8px 0 8px 8px;overflow-y:scroll}.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%] .dropdown-viewport[_ngcontent-%COMP%]{height:100%}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;height:auto;letter-spacing:.2px;color:#181f33}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover, .popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:focus-visible{background-color:#f5f7fc;outline:none}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:100%;line-height:20px;font-size:14px;font-style:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .primaryText[_ngcontent-%COMP%]{color:#181f33;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .secondaryText[_ngcontent-%COMP%]{color:#6a737d;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{width:10%;display:flex;justify-content:flex-end}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:20px;height:20px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%]{cursor:not-allowed!important}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%]:hover, .popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%]:focus-visible{background-color:transparent!important;outline:none!important}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#929dab!important;-webkit-user-select:none!important;user-select:none!important}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-selected[_ngcontent-%COMP%]{background-color:#e0e6f6;outline:none}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .icon-only[_ngcontent-%COMP%]{justify-content:center!important}[_ngcontent-%COMP%]::-webkit-scrollbar{height:8px;width:8px;background:#fff;border-radius:13px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#c8cdd3;border-radius:13px;cursor:pointer}.status-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:128px}.status-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center}"] }); }
352
405
  }
353
406
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DropdownComponent, [{
354
407
  type: Component,
355
- args: [{ selector: "mis-dropdown", template: "<div (click)=\"setUpAsyncDataSearch()\"\n class=\"main-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]=\"customStyles\"\n [ngClass]=\"isOpen ? 'dropdown-port': ''\"\n >\n <img class=\"img-container\" [src]=\"selectedItem.customIcon\" *ngIf=\"selectedItem.customIcon\">\n <div class=\"label\">\n <p class=\"text\" *ngIf=\"!showOnlyIcon; else showIcon\">\n {{ multiLine ? selectedItem.label?.primaryText : selectedItem.label || label }}\n </p>\n <ng-template #showIcon>\n <p class=\"text\" *ngIf=\"!selectedItem.icon\">\n {{ label }}\n </p>\n <img class=\"icon\" *ngIf=\"!!selectedItem.icon\" [src]=\"selectedItem.icon\" alt=\"no img\" />\n </ng-template>\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 >\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 ? '' : searchLabel\"\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=\"status-container\" *ngIf=\"loading\">\n <mis-loader [mobileView]=\"true\"></mis-loader>\n </div>\n <div class=\"items\" *ngIf=\"!loading\"> \n <cdk-virtual-scroll-viewport [itemSize]=\"itemSizeForCdk\" class=\"dropdown-viewport\">\n <div\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item.disabled, 'item-selected': (higlightSelectedValue && item.value === selectedItem.value), 'icon-only' : showOnlyIcon }\"\n (click)=\"item.disabled ? null : selectItem(item)\"\n (keyup.enter)=\"item.disabled ? null : selectItem(item)\"\n *cdkVirtualFor=\"let item of searchInput ? searchData : data;\"\n >\n <div class=\"label\" *ngIf=\"!showOnlyIcon\" [ngStyle]=\"{ width: item.icon ? '90%' : '100%', 'display': multiLine ? 'flex': 'inherit', 'flex-direction': multiLine ? 'column': 'inherit' }\">\n <span class=\"primaryText\" [ngStyle]=\"getIconStyles(item.icon, activeItem)\">{{ multiLine ? item.label?.primaryText : item.label }}</span>\n <span class=\"secondaryText\" *ngIf=\"multiLine\" [ngStyle]=\"getIconStyles(item.icon, activeItem)\"> {{ item.label?.secondaryText ? item.label?.secondaryText : additionalInfoMessage }} </span>\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 </cdk-virtual-scroll-viewport>\n <div class=\"noData\" *ngIf=\"(searchInput ? searchData : data).length === 0\">\n {{ searchInput === \"\" ? noDataMessage : \"No results\" }}\n </div>\n </div>\n </div>\n</ng-template>\n", styles: [".main-container{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;height:32px;width:256px;font-family:Lato,sans-serif!important}.main-container .dropdown{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;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%;box-sizing:border-box;padding:0 12px}.main-container .dropdown:hover,.main-container .dropdown:focus-visible{background-color:#f5f7fc;outline:none}.main-container .dropdown .label{box-sizing:border-box;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}.main-container .dropdown .label .text{margin:0!important;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}.main-container .dropdown .label .count{background-color:#e0e0e0;border-radius:50%;padding:2px 7px;margin:0}.main-container .dropdown .handle{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.main-container .dropdown .img-container{width:20px;height:20px}.main-container .dropdown-port{background:#e6ebf7}.popup-container{width:100%;max-height:340px;padding-bottom:0;border:1px solid #e0e0e0;border-radius:8px;background-color:#fff;box-shadow:0 12px 24px #0000001f;display:flex;flex-direction:column;overflow:hidden;justify-content:space-between}.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}.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 .dropdown-viewport{height:200px}.popup-container .items .dropdown-viewport .item{cursor:pointer;display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;height:auto;letter-spacing:.2px;color:#181f33}.popup-container .items .dropdown-viewport .item:hover,.popup-container .items .dropdown-viewport .item:focus-visible{background-color:#f5f7fc;outline:none}.popup-container .items .dropdown-viewport .item .label{width:100%;line-height:20px;font-size:14px;font-style:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden}.popup-container .items .dropdown-viewport .item .label .primaryText{color:#181f33;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container .items .dropdown-viewport .item .label .secondaryText{color:#6a737d;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container .items .dropdown-viewport .item .icon-container{width:10%;display:flex;justify-content:flex-end}.popup-container .items .dropdown-viewport .item .icon-container .icon{width:20px;height:20px}.popup-container .items .item-disabled{cursor:not-allowed!important}.popup-container .items .item-disabled:hover,.popup-container .items .item-disabled:focus-visible{background-color:transparent!important;outline:none!important}.popup-container .items .item-disabled .label>span{color:#929dab!important;-webkit-user-select:none!important;user-select:none!important}.popup-container .items .item-selected{background-color:#e0e6f6;outline:none}.popup-container .items .icon-only{justify-content:center!important}::-webkit-scrollbar{height:8px;width:8px;background:#fff;border-radius:13px}::-webkit-scrollbar-thumb{background:#c8cdd3;border-radius:13px;cursor:pointer}.status-container{display:flex;justify-content:center;align-items:center;height:128px}.status-container p{text-align:center}\n"] }]
408
+ args: [{ selector: "mis-dropdown", template: "<div (click)=\"setUpAsyncDataSearch()\"\n(keyup.enter)=\"setUpAsyncDataSearch()\"\n class=\"main-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]=\"customStyles\"\n [attr.aria-label]=\"ariaLabel\"\n [ngClass]=\"isOpen ? 'dropdown-port': ''\"\n >\n <img class=\"img-container\" [width]=\"16\" [height]=\"16\" [src]=\"selectedItem?.customIcon\" *ngIf=\"selectedItem?.customIcon\">\n <div class=\"label\" [ngStyle]=\"{width: selectedItem?.customIcon ? 'calc(100% - 48px)' : 'calc(100% - 32px)'}\">\n <p class=\"text\" *ngIf=\"!showOnlyIcon; else showIcon\">\n {{ multiLine ? selectedItem?.label?.primaryText : selectedItem?.label || label }}\n </p>\n <ng-template #showIcon>\n <p class=\"text\" *ngIf=\"!selectedItem?.icon\">\n {{ label }}\n </p>\n <img class=\"icon\" *ngIf=\"!!selectedItem?.icon\" [src]=\"selectedItem?.icon\" alt=\"no img\" />\n </ng-template>\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\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\" tabindex=\"0\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n (keyup.esc)=\"closeOnEsc($event)\"\n aria-label=\"dropdown\"\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 [tabIndex]=\"0\"\n (ngModelChange)=\"searchInputOnChange($event)\"\n [placeholder]=\"isSearchInputFocused ? '' : searchLabel\"\n (focus)=\"searchInputFocused(true)\"\n class=\"search-input\"\n [attr.aria-label]=\"searchLabel\"\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=\"status-container\" *ngIf=\"loading\">\n <mis-loader [mobileView]=\"true\"></mis-loader>\n </div>\n <div tabindex=\"-1\" *ngIf=\"!searchEnabled\" cdkFocusInitial></div>\n <div class=\"items\" *ngIf=\"!loading \"> \n <cdk-virtual-scroll-viewport *ngIf=\"!((searchInput ? searchData : data).length === 0)\" [itemSize]=\"itemSizeForCdk\" class=\"dropdown-viewport\">\n <div\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item.disabled, 'item-selected': (higlightSelectedValue && item.value === selectedItem?.value), 'icon-only' : showOnlyIcon }\"\n (click)=\"item.disabled ? null : selectItem(item)\"\n (keyup.enter)=\"item.disabled ? null : selectItem(item)\"\n *cdkVirtualFor=\"let item of searchInput ? searchData : data;\"\n tabIndex=\"0\"\n >\n <ng-container *ngIf=\"customItem; else standardItem\">\n <ng-container\n [ngTemplateOutlet]=\"customItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-container>\n </ng-container>\n <ng-template #standardItem>\n <div class=\"label\" *ngIf=\"!showOnlyIcon\" [ngStyle]=\"{ width: item.icon ? '90%' : '100%', 'display': multiLine ? 'flex': 'inherit', 'flex-direction': multiLine ? 'column': 'inherit' }\">\n <span class=\"primaryText\" [ngStyle]=\"getIconStyles(item.icon, activeItem)\">{{ multiLine ? item?.label?.primaryText : item?.label }}</span>\n <span class=\"secondaryText\" *ngIf=\"multiLine\" [ngStyle]=\"getIconStyles(item.icon, activeItem)\"> {{ item?.label?.secondaryText ? item?.label?.secondaryText : additionalInfoMessage }} </span>\n </div>\n <div class=\"icon-container\" *ngIf=\"item.icon\">\n <img class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n </div>\n </ng-template>\n </div>\n </cdk-virtual-scroll-viewport>\n <div class=\"noData\" *ngIf=\"(searchInput ? searchData : data).length === 0\">\n {{ searchInput === \"\" ? noDataMessage : \"No results\" }}\n </div>\n </div>\n </div>\n</ng-template>\n", styles: [".main-container{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;height:32px;width:256px;font-family:Lato,sans-serif!important}.main-container .dropdown{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:inherit;border:1px solid #e0e0e0;border-radius:6px;background-color:#fff;cursor:pointer;display:flex;gap:4px;align-items:center;width:100%;box-sizing:border-box;padding:0 12px}.main-container .dropdown:hover,.main-container .dropdown:focus-visible{background-color:#f5f7fc;outline:none}.main-container .dropdown .label{box-sizing:border-box;display:flex;justify-content:flex-start;align-items:center;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container .dropdown .label .text{margin:0!important;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}.main-container .dropdown .label .count{background-color:#e0e0e0;border-radius:50%;padding:2px 7px;margin:0}.main-container .dropdown .handle{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.main-container .dropdown-port{background:#e6ebf7}.popup-container{width:100%;max-height:340px;padding-bottom:0;border:1px solid #e0e0e0;border-radius:8px;background-color:#fff;box-shadow:0 12px 24px #0000001f;display:flex;flex-direction:column;overflow:hidden;justify-content:space-between}.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{height:100%;min-height:200px;padding:8px 0 8px 8px;overflow-y:scroll}.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 .dropdown-viewport{height:100%}.popup-container .items .dropdown-viewport .item{cursor:pointer;display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;height:auto;letter-spacing:.2px;color:#181f33}.popup-container .items .dropdown-viewport .item:hover,.popup-container .items .dropdown-viewport .item:focus-visible{background-color:#f5f7fc;outline:none}.popup-container .items .dropdown-viewport .item .label{width:100%;line-height:20px;font-size:14px;font-style:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden}.popup-container .items .dropdown-viewport .item .label .primaryText{color:#181f33;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container .items .dropdown-viewport .item .label .secondaryText{color:#6a737d;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container .items .dropdown-viewport .item .icon-container{width:10%;display:flex;justify-content:flex-end}.popup-container .items .dropdown-viewport .item .icon-container .icon{width:20px;height:20px}.popup-container .items .item-disabled{cursor:not-allowed!important}.popup-container .items .item-disabled:hover,.popup-container .items .item-disabled:focus-visible{background-color:transparent!important;outline:none!important}.popup-container .items .item-disabled .label>span{color:#929dab!important;-webkit-user-select:none!important;user-select:none!important}.popup-container .items .item-selected{background-color:#e0e6f6;outline:none}.popup-container .items .icon-only{justify-content:center!important}::-webkit-scrollbar{height:8px;width:8px;background:#fff;border-radius:13px}::-webkit-scrollbar-thumb{background:#c8cdd3;border-radius:13px;cursor:pointer}.status-container{display:flex;justify-content:center;align-items:center;height:128px}.status-container p{text-align:center}\n"] }]
356
409
  }], () => [{ type: i0.ElementRef }, { type: i1.Overlay }, { type: i0.ViewContainerRef }], { data: [{
357
410
  type: Input
358
411
  }], height: [{
359
412
  type: Input
413
+ }], ariaLabel: [{
414
+ type: Input
360
415
  }], width: [{
361
416
  type: Input
362
417
  }], label: [{
@@ -404,6 +459,12 @@ class DropdownComponent {
404
459
  }], viewPort: [{
405
460
  type: ViewChild,
406
461
  args: [CdkVirtualScrollViewport]
462
+ }], customItem: [{
463
+ type: ContentChild,
464
+ args: ["misCustomItem", { static: false }]
465
+ }], closeOnEsc: [{
466
+ type: HostListener,
467
+ args: ["keyup.esc", ['$event']]
407
468
  }] }); })();
408
469
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DropdownComponent, { className: "DropdownComponent" }); })();
409
470
 
@@ -414,12 +475,12 @@ class CalculateContainerHeightDirective {
414
475
  ngAfterViewInit() {
415
476
  setTimeout(() => {
416
477
  this.setContainerHeight();
417
- });
478
+ }, 200);
418
479
  }
419
480
  setContainerHeight() {
420
481
  const firstItemElement = this.el.nativeElement.querySelector('.item');
421
482
  const firstItemHeight = firstItemElement ? firstItemElement.getBoundingClientRect().height : 0;
422
- const numberOfItems = this.items.length;
483
+ const numberOfItems = this.items ? this.items.length : 0;
423
484
  let containerHeight = 0;
424
485
  if (firstItemHeight * numberOfItems > 200) {
425
486
  containerHeight = 200;
@@ -432,13 +493,13 @@ class CalculateContainerHeightDirective {
432
493
  }
433
494
  this.el.nativeElement.style.height = `${containerHeight}px`;
434
495
  }
435
- static { this.ɵfac = function CalculateContainerHeightDirective_Factory(t) { return new (t || CalculateContainerHeightDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
436
- static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CalculateContainerHeightDirective, selectors: [["", "appcalculateContainerHeight", ""]], inputs: { items: "items", visibleItems: "visibleItems" } }); }
496
+ static { this.ɵfac = function CalculateContainerHeightDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CalculateContainerHeightDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
497
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CalculateContainerHeightDirective, selectors: [["", "calculateContainerHeight", ""]], inputs: { items: "items", visibleItems: "visibleItems" } }); }
437
498
  }
438
499
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CalculateContainerHeightDirective, [{
439
500
  type: Directive,
440
501
  args: [{
441
- selector: '[appcalculateContainerHeight]'
502
+ selector: '[calculateContainerHeight]'
442
503
  }]
443
504
  }], () => [{ type: i0.ElementRef }], { items: [{
444
505
  type: Input
@@ -450,19 +511,19 @@ class DropdownModule {
450
511
  static forRoot() {
451
512
  return { ngModule: DropdownModule, providers: [] };
452
513
  }
453
- static { this.ɵfac = function DropdownModule_Factory(t) { return new (t || DropdownModule)(); }; }
514
+ static { this.ɵfac = function DropdownModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DropdownModule)(); }; }
454
515
  static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: DropdownModule }); }
455
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, FormsModule, OverlayModule, ScrollingModule, LoaderModule] }); }
516
+ static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, FormsModule, OverlayModule, ScrollingModule, LoaderModule, A11yModule] }); }
456
517
  }
457
518
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DropdownModule, [{
458
519
  type: NgModule,
459
520
  args: [{
460
521
  declarations: [DropdownComponent, CalculateContainerHeightDirective],
461
- imports: [CommonModule, FormsModule, OverlayModule, ScrollingModule, LoaderModule],
522
+ imports: [CommonModule, FormsModule, OverlayModule, ScrollingModule, LoaderModule, A11yModule],
462
523
  exports: [DropdownComponent]
463
524
  }]
464
525
  }], null, null); })();
465
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DropdownModule, { declarations: [DropdownComponent, CalculateContainerHeightDirective], imports: [CommonModule, FormsModule, OverlayModule, ScrollingModule, LoaderModule], exports: [DropdownComponent] }); })();
526
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DropdownModule, { declarations: [DropdownComponent, CalculateContainerHeightDirective], imports: [CommonModule, FormsModule, OverlayModule, ScrollingModule, LoaderModule, A11yModule], exports: [DropdownComponent] }); })();
466
527
 
467
528
  /**
468
529
  * Generated bundle index. Do not edit.