mis-crystal-design-system 2.9.7-v14-1 → 2.9.8

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 (675) hide show
  1. package/action-list/action-list.component.d.ts +0 -3
  2. package/action-list/action-list.module.d.ts +0 -9
  3. package/action-list/mis-crystal-design-system-action-list.d.ts +4 -0
  4. package/action-list/mis-crystal-design-system-action-list.metadata.json +1 -0
  5. package/action-list/package.json +11 -0
  6. package/analytics/analytics.module.d.ts +0 -4
  7. package/analytics/analytics.service.d.ts +0 -3
  8. package/analytics/mis-crystal-design-system-analytics.d.ts +4 -0
  9. package/analytics/mis-crystal-design-system-analytics.metadata.json +1 -0
  10. package/analytics/package.json +11 -0
  11. package/async-search-dropdown/async-dropdown.component.d.ts +2 -5
  12. package/async-search-dropdown/async-dropdown.module.d.ts +0 -9
  13. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.d.ts +4 -0
  14. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.metadata.json +1 -0
  15. package/async-search-dropdown/package.json +11 -0
  16. package/bundles/mis-crystal-design-system-action-list.umd.js +508 -0
  17. package/bundles/mis-crystal-design-system-action-list.umd.js.map +1 -0
  18. package/bundles/mis-crystal-design-system-action-list.umd.min.js +16 -0
  19. package/bundles/mis-crystal-design-system-action-list.umd.min.js.map +1 -0
  20. package/bundles/mis-crystal-design-system-analytics.umd.js +422 -0
  21. package/bundles/mis-crystal-design-system-analytics.umd.js.map +1 -0
  22. package/bundles/mis-crystal-design-system-analytics.umd.min.js +16 -0
  23. package/bundles/mis-crystal-design-system-analytics.umd.min.js.map +1 -0
  24. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js +258 -0
  25. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js.map +1 -0
  26. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js +2 -0
  27. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js.map +1 -0
  28. package/bundles/mis-crystal-design-system-button.umd.js +134 -0
  29. package/bundles/mis-crystal-design-system-button.umd.js.map +1 -0
  30. package/bundles/mis-crystal-design-system-button.umd.min.js +2 -0
  31. package/bundles/mis-crystal-design-system-button.umd.min.js.map +1 -0
  32. package/bundles/mis-crystal-design-system-checkbox.umd.js +127 -0
  33. package/bundles/mis-crystal-design-system-checkbox.umd.js.map +1 -0
  34. package/bundles/mis-crystal-design-system-checkbox.umd.min.js +2 -0
  35. package/bundles/mis-crystal-design-system-checkbox.umd.min.js.map +1 -0
  36. package/bundles/mis-crystal-design-system-chip.umd.js +64 -0
  37. package/bundles/mis-crystal-design-system-chip.umd.js.map +1 -0
  38. package/bundles/mis-crystal-design-system-chip.umd.min.js +2 -0
  39. package/bundles/mis-crystal-design-system-chip.umd.min.js.map +1 -0
  40. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js +688 -0
  41. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js.map +1 -0
  42. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js +16 -0
  43. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js.map +1 -0
  44. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js +740 -0
  45. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js.map +1 -0
  46. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js +16 -0
  47. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js.map +1 -0
  48. package/bundles/mis-crystal-design-system-drawer.umd.js +169 -0
  49. package/bundles/mis-crystal-design-system-drawer.umd.js.map +1 -0
  50. package/bundles/mis-crystal-design-system-drawer.umd.min.js +2 -0
  51. package/bundles/mis-crystal-design-system-drawer.umd.min.js.map +1 -0
  52. package/bundles/mis-crystal-design-system-dropdown.umd.js +493 -0
  53. package/bundles/mis-crystal-design-system-dropdown.umd.js.map +1 -0
  54. package/bundles/mis-crystal-design-system-dropdown.umd.min.js +16 -0
  55. package/bundles/mis-crystal-design-system-dropdown.umd.min.js.map +1 -0
  56. package/bundles/mis-crystal-design-system-fab.umd.js +95 -0
  57. package/bundles/mis-crystal-design-system-fab.umd.js.map +1 -0
  58. package/bundles/mis-crystal-design-system-fab.umd.min.js +2 -0
  59. package/bundles/mis-crystal-design-system-fab.umd.min.js.map +1 -0
  60. package/bundles/mis-crystal-design-system-input.umd.js +114 -0
  61. package/bundles/mis-crystal-design-system-input.umd.js.map +1 -0
  62. package/bundles/mis-crystal-design-system-input.umd.min.js +2 -0
  63. package/bundles/mis-crystal-design-system-input.umd.min.js.map +1 -0
  64. package/bundles/mis-crystal-design-system-loader.umd.js +53 -0
  65. package/bundles/mis-crystal-design-system-loader.umd.js.map +1 -0
  66. package/bundles/mis-crystal-design-system-loader.umd.min.js +2 -0
  67. package/bundles/mis-crystal-design-system-loader.umd.min.js.map +1 -0
  68. package/bundles/mis-crystal-design-system-menu.umd.js +119 -0
  69. package/bundles/mis-crystal-design-system-menu.umd.js.map +1 -0
  70. package/bundles/mis-crystal-design-system-menu.umd.min.js +2 -0
  71. package/bundles/mis-crystal-design-system-menu.umd.min.js.map +1 -0
  72. package/bundles/mis-crystal-design-system-modal.umd.js +161 -0
  73. package/bundles/mis-crystal-design-system-modal.umd.js.map +1 -0
  74. package/bundles/mis-crystal-design-system-modal.umd.min.js +2 -0
  75. package/bundles/mis-crystal-design-system-modal.umd.min.js.map +1 -0
  76. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js +622 -0
  77. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js.map +1 -0
  78. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js +16 -0
  79. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js.map +1 -0
  80. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js +636 -0
  81. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js.map +1 -0
  82. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js +16 -0
  83. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js.map +1 -0
  84. package/bundles/mis-crystal-design-system-phone-input.umd.js +68 -0
  85. package/bundles/mis-crystal-design-system-phone-input.umd.js.map +1 -0
  86. package/bundles/mis-crystal-design-system-phone-input.umd.min.js +2 -0
  87. package/bundles/mis-crystal-design-system-phone-input.umd.min.js.map +1 -0
  88. package/bundles/mis-crystal-design-system-radio-button.umd.js +77 -0
  89. package/bundles/mis-crystal-design-system-radio-button.umd.js.map +1 -0
  90. package/bundles/mis-crystal-design-system-radio-button.umd.min.js +2 -0
  91. package/bundles/mis-crystal-design-system-radio-button.umd.min.js.map +1 -0
  92. package/bundles/mis-crystal-design-system-ske-loader.umd.js +65 -0
  93. package/bundles/mis-crystal-design-system-ske-loader.umd.js.map +1 -0
  94. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js +2 -0
  95. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js.map +1 -0
  96. package/bundles/mis-crystal-design-system-styles.umd.js +11 -0
  97. package/bundles/mis-crystal-design-system-styles.umd.js.map +1 -0
  98. package/bundles/mis-crystal-design-system-styles.umd.min.js +2 -0
  99. package/bundles/mis-crystal-design-system-styles.umd.min.js.map +1 -0
  100. package/bundles/mis-crystal-design-system-switch.umd.js +79 -0
  101. package/bundles/mis-crystal-design-system-switch.umd.js.map +1 -0
  102. package/bundles/mis-crystal-design-system-switch.umd.min.js +2 -0
  103. package/bundles/mis-crystal-design-system-switch.umd.min.js.map +1 -0
  104. package/bundles/mis-crystal-design-system-table.umd.js +783 -0
  105. package/bundles/mis-crystal-design-system-table.umd.js.map +1 -0
  106. package/bundles/mis-crystal-design-system-table.umd.min.js +16 -0
  107. package/bundles/mis-crystal-design-system-table.umd.min.js.map +1 -0
  108. package/bundles/mis-crystal-design-system-toast.umd.js +202 -0
  109. package/bundles/mis-crystal-design-system-toast.umd.js.map +1 -0
  110. package/bundles/mis-crystal-design-system-toast.umd.min.js +2 -0
  111. package/bundles/mis-crystal-design-system-toast.umd.min.js.map +1 -0
  112. package/bundles/mis-crystal-design-system-tooltip.umd.js +194 -0
  113. package/bundles/mis-crystal-design-system-tooltip.umd.js.map +1 -0
  114. package/bundles/mis-crystal-design-system-tooltip.umd.min.js +2 -0
  115. package/bundles/mis-crystal-design-system-tooltip.umd.min.js.map +1 -0
  116. package/bundles/mis-crystal-design-system-utils.umd.js +33 -0
  117. package/bundles/mis-crystal-design-system-utils.umd.js.map +1 -0
  118. package/bundles/mis-crystal-design-system-utils.umd.min.js +2 -0
  119. package/bundles/mis-crystal-design-system-utils.umd.min.js.map +1 -0
  120. package/bundles/mis-crystal-design-system-virtual-scroll.umd.js +472 -0
  121. package/bundles/mis-crystal-design-system-virtual-scroll.umd.js.map +1 -0
  122. package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js +16 -0
  123. package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js.map +1 -0
  124. package/bundles/mis-crystal-design-system-widgets.umd.js +478 -0
  125. package/bundles/mis-crystal-design-system-widgets.umd.js.map +1 -0
  126. package/bundles/mis-crystal-design-system-widgets.umd.min.js +16 -0
  127. package/bundles/mis-crystal-design-system-widgets.umd.min.js.map +1 -0
  128. package/bundles/mis-crystal-design-system.umd.js +31 -0
  129. package/bundles/mis-crystal-design-system.umd.js.map +1 -0
  130. package/bundles/mis-crystal-design-system.umd.min.js +2 -0
  131. package/bundles/mis-crystal-design-system.umd.min.js.map +1 -0
  132. package/button/button.component.d.ts +0 -3
  133. package/button/button.directive.d.ts +0 -3
  134. package/button/button.module.d.ts +0 -7
  135. package/button/mis-crystal-design-system-button.d.ts +4 -0
  136. package/button/mis-crystal-design-system-button.metadata.json +1 -0
  137. package/button/package.json +11 -0
  138. package/checkbox/checkbox.component.d.ts +0 -3
  139. package/checkbox/checkbox.module.d.ts +0 -7
  140. package/checkbox/mis-crystal-design-system-checkbox.d.ts +4 -0
  141. package/checkbox/mis-crystal-design-system-checkbox.metadata.json +1 -0
  142. package/checkbox/package.json +11 -0
  143. package/chip/chip.component.d.ts +0 -3
  144. package/chip/chip.module.d.ts +0 -6
  145. package/chip/mis-crystal-design-system-chip.d.ts +4 -0
  146. package/chip/mis-crystal-design-system-chip.metadata.json +1 -0
  147. package/chip/package.json +11 -0
  148. package/datepicker_v2/datepicker.module.d.ts +0 -10
  149. package/datepicker_v2/mis-crystal-design-system-datepicker_v2.d.ts +7 -0
  150. package/datepicker_v2/mis-crystal-design-system-datepicker_v2.metadata.json +1 -0
  151. package/datepicker_v2/package.json +11 -0
  152. package/datepicker_v2/public_api.d.ts +0 -1
  153. package/datepicker_v2/tz-datepicker.directive.d.ts +0 -3
  154. package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +0 -3
  155. package/daterangepicker_v2/daterangepicker.module.d.ts +0 -10
  156. package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.d.ts +7 -0
  157. package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.metadata.json +1 -0
  158. package/daterangepicker_v2/package.json +11 -0
  159. package/daterangepicker_v2/public_api.d.ts +0 -1
  160. package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +0 -3
  161. package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +0 -3
  162. package/drawer/drawer-body/drawer-body.component.d.ts +1 -3
  163. package/drawer/drawer.module.d.ts +0 -8
  164. package/drawer/drawer.service.d.ts +0 -3
  165. package/drawer/mis-crystal-design-system-drawer.d.ts +5 -0
  166. package/drawer/mis-crystal-design-system-drawer.metadata.json +1 -0
  167. package/drawer/package.json +11 -0
  168. package/dropdown/dropdown.component.d.ts +3 -3
  169. package/dropdown/dropdown.module.d.ts +0 -9
  170. package/dropdown/mis-crystal-design-system-dropdown.d.ts +4 -0
  171. package/dropdown/mis-crystal-design-system-dropdown.metadata.json +1 -0
  172. package/dropdown/package.json +11 -0
  173. package/esm2015/action-list/action-list.component.js +160 -0
  174. package/esm2015/action-list/action-list.module.js +19 -0
  175. package/esm2015/analytics/analytics.module.js +14 -0
  176. package/esm2015/analytics/analytics.service.js +62 -0
  177. package/esm2015/async-search-dropdown/async-dropdown.component.js +223 -0
  178. package/esm2015/async-search-dropdown/async-dropdown.module.js +16 -0
  179. package/esm2015/button/button.component.js +43 -0
  180. package/esm2015/button/button.directive.js +57 -0
  181. package/esm2015/button/button.module.js +17 -0
  182. package/esm2015/checkbox/checkbox.component.js +79 -0
  183. package/esm2015/checkbox/checkbox.module.js +17 -0
  184. package/esm2015/chip/chip.component.js +31 -0
  185. package/esm2015/chip/chip.module.js +16 -0
  186. package/esm2015/datepicker_v2/datepicker.module.js +18 -0
  187. package/esm2015/datepicker_v2/mis-crystal-design-system-datepicker_v2.js +7 -0
  188. package/esm2015/datepicker_v2/public_api.js +3 -0
  189. package/esm2015/datepicker_v2/tz-datepicker.directive.js +126 -0
  190. package/esm2015/datepicker_v2/tz-dp-container/tz-dp-container.component.js +149 -0
  191. package/esm2015/daterangepicker_v2/daterangepicker.module.js +18 -0
  192. package/esm2015/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.js +7 -0
  193. package/esm2015/daterangepicker_v2/public_api.js +3 -0
  194. package/esm2015/daterangepicker_v2/tz-daterangepicker.directive.js +123 -0
  195. package/esm2015/daterangepicker_v2/tz-drp-container/tz-drp-container.component.js +205 -0
  196. package/esm2015/drawer/drawer-body/drawer-body.component.js +41 -0
  197. package/esm2015/drawer/drawer.module.js +28 -0
  198. package/{esm2020/drawer/drawer.service.mjs → esm2015/drawer/drawer.service.js} +15 -12
  199. package/esm2015/drawer/mis-crystal-design-system-drawer.js +6 -0
  200. package/esm2015/dropdown/dropdown.component.js +145 -0
  201. package/esm2015/dropdown/dropdown.module.js +20 -0
  202. package/esm2015/fab/fab.component.js +63 -0
  203. package/esm2015/fab/fab.module.js +16 -0
  204. package/esm2015/input/directives/input/input.directive.js +38 -0
  205. package/esm2015/input/mis-input.component.js +43 -0
  206. package/esm2015/input/mis-input.module.js +15 -0
  207. package/esm2015/loader/loader.component.js +20 -0
  208. package/esm2015/loader/loader.module.js +16 -0
  209. package/esm2015/menu/menu-close.directive.js +18 -0
  210. package/esm2015/menu/menu.directive.js +70 -0
  211. package/esm2015/menu/menu.module.js +17 -0
  212. package/esm2015/modal/mis-crystal-design-system-modal.js +6 -0
  213. package/esm2015/modal/modal.module.js +28 -0
  214. package/esm2015/modal/modal.service.js +72 -0
  215. package/esm2015/modal/module-wrapper/module-wrapper.component.js +33 -0
  216. package/esm2015/multi-select-dropdown/multi-select-dropdown.component.js +268 -0
  217. package/esm2015/multi-select-dropdown/multi-select-dropdown.module.js +20 -0
  218. package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.component.js +265 -0
  219. package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.module.js +20 -0
  220. package/esm2015/phone-input/index.js +2 -0
  221. package/esm2015/phone-input/mis-crystal-design-system-phone-input.js +5 -0
  222. package/esm2015/phone-input/phone-input.component.js +36 -0
  223. package/esm2015/phone-input/phone-input.module.js +21 -0
  224. package/esm2015/phone-input/public_api.js +3 -0
  225. package/esm2015/radio-button/radio-button.component.js +45 -0
  226. package/esm2015/radio-button/radio-button.module.js +17 -0
  227. package/esm2015/ske-loader/ske-loader.component.js +31 -0
  228. package/esm2015/ske-loader/ske-loader.module.js +13 -0
  229. package/esm2015/switch/switch.component.js +39 -0
  230. package/esm2015/switch/switch.module.js +17 -0
  231. package/esm2015/table/custom-table-cell.directive.js +42 -0
  232. package/esm2015/table/filter/filter.component.js +75 -0
  233. package/esm2015/table/mis-crystal-design-system-table.js +6 -0
  234. package/esm2015/table/public_api.js +5 -0
  235. package/esm2015/table/sub-table/sub-table.component.js +69 -0
  236. package/esm2015/table/table.component.js +199 -0
  237. package/esm2015/table/table.module.js +21 -0
  238. package/{esm2020/toast/mis-crystal-design-system-toast.mjs → esm2015/toast/mis-crystal-design-system-toast.js} +2 -1
  239. package/esm2015/toast/toast.component.js +28 -0
  240. package/esm2015/toast/toast.data.service.js +29 -0
  241. package/esm2015/toast/toast.module.js +28 -0
  242. package/esm2015/toast/toast.service.js +96 -0
  243. package/esm2015/tooltip/tooltip-container/tooltip.component.js +34 -0
  244. package/esm2015/tooltip/tooltip.directive.js +117 -0
  245. package/esm2015/tooltip/tooltip.module.js +19 -0
  246. package/esm2015/virtual-scroll/index.js +2 -0
  247. package/esm2015/virtual-scroll/mis-crystal-design-system-virtual-scroll.js +5 -0
  248. package/esm2015/virtual-scroll/public_api.js +4 -0
  249. package/esm2015/virtual-scroll/virtual-scroll.component.js +112 -0
  250. package/esm2015/virtual-scroll/virtual-scroll.constants.js +2 -0
  251. package/esm2015/virtual-scroll/virtual-scroll.module.js +24 -0
  252. package/{esm2020/widgets/classes/base-widget.mjs → esm2015/widgets/classes/base-widget.js} +2 -2
  253. package/esm2015/widgets/classes/widget-group.js +32 -0
  254. package/esm2015/widgets/services/widget.service.js +16 -0
  255. package/esm2015/widgets/widgets.module.js +12 -0
  256. package/fab/fab.component.d.ts +0 -3
  257. package/fab/fab.module.d.ts +0 -6
  258. package/fab/mis-crystal-design-system-fab.d.ts +4 -0
  259. package/fab/mis-crystal-design-system-fab.metadata.json +1 -0
  260. package/fab/package.json +11 -0
  261. package/fesm2015/mis-crystal-design-system-action-list.js +183 -0
  262. package/fesm2015/mis-crystal-design-system-action-list.js.map +1 -0
  263. package/fesm2015/{mis-crystal-design-system-analytics.mjs → mis-crystal-design-system-analytics.js} +14 -22
  264. package/fesm2015/mis-crystal-design-system-analytics.js.map +1 -0
  265. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js +242 -0
  266. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js.map +1 -0
  267. package/fesm2015/mis-crystal-design-system-button.js +120 -0
  268. package/fesm2015/mis-crystal-design-system-button.js.map +1 -0
  269. package/fesm2015/mis-crystal-design-system-checkbox.js +100 -0
  270. package/fesm2015/mis-crystal-design-system-checkbox.js.map +1 -0
  271. package/fesm2015/mis-crystal-design-system-chip.js +52 -0
  272. package/fesm2015/mis-crystal-design-system-chip.js.map +1 -0
  273. package/fesm2015/mis-crystal-design-system-datepicker_v2.js +339 -0
  274. package/fesm2015/mis-crystal-design-system-datepicker_v2.js.map +1 -0
  275. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js +392 -0
  276. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js.map +1 -0
  277. package/fesm2015/mis-crystal-design-system-drawer.js +153 -0
  278. package/fesm2015/mis-crystal-design-system-drawer.js.map +1 -0
  279. package/fesm2015/mis-crystal-design-system-dropdown.js +169 -0
  280. package/fesm2015/mis-crystal-design-system-dropdown.js.map +1 -0
  281. package/fesm2015/mis-crystal-design-system-fab.js +84 -0
  282. package/fesm2015/mis-crystal-design-system-fab.js.map +1 -0
  283. package/fesm2015/mis-crystal-design-system-input.js +97 -0
  284. package/fesm2015/mis-crystal-design-system-input.js.map +1 -0
  285. package/fesm2015/mis-crystal-design-system-loader.js +41 -0
  286. package/fesm2015/mis-crystal-design-system-loader.js.map +1 -0
  287. package/fesm2015/mis-crystal-design-system-menu.js +106 -0
  288. package/fesm2015/mis-crystal-design-system-menu.js.map +1 -0
  289. package/fesm2015/mis-crystal-design-system-modal.js +147 -0
  290. package/fesm2015/mis-crystal-design-system-modal.js.map +1 -0
  291. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js +292 -0
  292. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js.map +1 -0
  293. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js +289 -0
  294. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js.map +1 -0
  295. package/fesm2015/mis-crystal-design-system-phone-input.js +60 -0
  296. package/fesm2015/mis-crystal-design-system-phone-input.js.map +1 -0
  297. package/fesm2015/mis-crystal-design-system-radio-button.js +66 -0
  298. package/fesm2015/mis-crystal-design-system-radio-button.js.map +1 -0
  299. package/fesm2015/mis-crystal-design-system-ske-loader.js +49 -0
  300. package/fesm2015/mis-crystal-design-system-ske-loader.js.map +1 -0
  301. package/fesm2015/mis-crystal-design-system-styles.js +4 -0
  302. package/fesm2015/mis-crystal-design-system-styles.js.map +1 -0
  303. package/fesm2015/mis-crystal-design-system-switch.js +60 -0
  304. package/fesm2015/mis-crystal-design-system-switch.js.map +1 -0
  305. package/fesm2015/mis-crystal-design-system-table.js +405 -0
  306. package/fesm2015/mis-crystal-design-system-table.js.map +1 -0
  307. package/fesm2015/mis-crystal-design-system-toast.js +174 -0
  308. package/fesm2015/mis-crystal-design-system-toast.js.map +1 -0
  309. package/fesm2015/mis-crystal-design-system-tooltip.js +171 -0
  310. package/fesm2015/mis-crystal-design-system-tooltip.js.map +1 -0
  311. package/{fesm2020/mis-crystal-design-system-utils.mjs → fesm2015/mis-crystal-design-system-utils.js} +1 -1
  312. package/fesm2015/mis-crystal-design-system-utils.js.map +1 -0
  313. package/fesm2015/mis-crystal-design-system-virtual-scroll.js +142 -0
  314. package/fesm2015/mis-crystal-design-system-virtual-scroll.js.map +1 -0
  315. package/fesm2015/{mis-crystal-design-system-widgets.mjs → mis-crystal-design-system-widgets.js} +8 -13
  316. package/fesm2015/mis-crystal-design-system-widgets.js.map +1 -0
  317. package/fesm2015/{mis-crystal-design-system.mjs → mis-crystal-design-system.js} +1 -1
  318. package/fesm2015/mis-crystal-design-system.js.map +1 -0
  319. package/input/directives/input/input.directive.d.ts +0 -3
  320. package/input/mis-crystal-design-system-input.d.ts +4 -0
  321. package/input/mis-crystal-design-system-input.metadata.json +1 -0
  322. package/input/mis-input.component.d.ts +0 -3
  323. package/input/mis-input.module.d.ts +0 -8
  324. package/input/package.json +11 -0
  325. package/loader/loader.component.d.ts +0 -3
  326. package/loader/loader.module.d.ts +0 -6
  327. package/loader/mis-crystal-design-system-loader.d.ts +4 -0
  328. package/loader/mis-crystal-design-system-loader.metadata.json +1 -0
  329. package/loader/package.json +11 -0
  330. package/menu/menu-close.directive.d.ts +0 -3
  331. package/menu/menu.directive.d.ts +0 -3
  332. package/menu/menu.module.d.ts +1 -9
  333. package/menu/mis-crystal-design-system-menu.d.ts +4 -0
  334. package/menu/mis-crystal-design-system-menu.metadata.json +1 -0
  335. package/menu/package.json +11 -0
  336. package/mis-crystal-design-system.d.ts +4 -0
  337. package/mis-crystal-design-system.metadata.json +1 -0
  338. package/modal/mis-crystal-design-system-modal.d.ts +5 -0
  339. package/modal/mis-crystal-design-system-modal.metadata.json +1 -0
  340. package/modal/modal.module.d.ts +0 -8
  341. package/modal/modal.service.d.ts +0 -3
  342. package/modal/module-wrapper/module-wrapper.component.d.ts +0 -3
  343. package/modal/package.json +11 -0
  344. package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.d.ts +4 -0
  345. package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.metadata.json +1 -0
  346. package/multi-select-dropdown/multi-select-dropdown.component.d.ts +0 -3
  347. package/multi-select-dropdown/multi-select-dropdown.module.d.ts +0 -10
  348. package/multi-select-dropdown/package.json +11 -0
  349. package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.d.ts +4 -0
  350. package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.metadata.json +1 -0
  351. package/nested-multi-select-dropdown/nested-multi-select-dropdown.component.d.ts +0 -3
  352. package/nested-multi-select-dropdown/nested-multi-select-dropdown.module.d.ts +0 -10
  353. package/nested-multi-select-dropdown/package.json +11 -0
  354. package/package.json +8 -228
  355. package/phone-input/index.d.ts +1 -0
  356. package/phone-input/mis-crystal-design-system-phone-input.d.ts +4 -0
  357. package/phone-input/mis-crystal-design-system-phone-input.metadata.json +1 -0
  358. package/phone-input/package.json +11 -0
  359. package/phone-input/phone-input.component.d.ts +17 -0
  360. package/phone-input/phone-input.module.d.ts +4 -0
  361. package/phone-input/public_api.d.ts +2 -0
  362. package/radio-button/mis-crystal-design-system-radio-button.d.ts +4 -0
  363. package/radio-button/mis-crystal-design-system-radio-button.metadata.json +1 -0
  364. package/radio-button/package.json +11 -0
  365. package/radio-button/radio-button.component.d.ts +0 -3
  366. package/radio-button/radio-button.module.d.ts +0 -7
  367. package/ske-loader/mis-crystal-design-system-ske-loader.d.ts +4 -0
  368. package/ske-loader/mis-crystal-design-system-ske-loader.metadata.json +1 -0
  369. package/ske-loader/package.json +11 -0
  370. package/ske-loader/ske-loader.component.d.ts +0 -3
  371. package/ske-loader/ske-loader.module.d.ts +0 -6
  372. package/styles/mis-crystal-design-system-styles.d.ts +4 -0
  373. package/styles/mis-crystal-design-system-styles.metadata.json +1 -0
  374. package/styles/package.json +11 -0
  375. package/switch/mis-crystal-design-system-switch.d.ts +4 -0
  376. package/switch/mis-crystal-design-system-switch.metadata.json +1 -0
  377. package/switch/package.json +11 -0
  378. package/switch/switch.component.d.ts +0 -3
  379. package/switch/switch.module.d.ts +0 -7
  380. package/table/custom-table-cell.directive.d.ts +0 -3
  381. package/table/filter/filter.component.d.ts +0 -3
  382. package/table/mis-crystal-design-system-table.d.ts +5 -0
  383. package/table/mis-crystal-design-system-table.metadata.json +1 -0
  384. package/table/package.json +11 -0
  385. package/table/public_api.d.ts +0 -1
  386. package/table/sub-table/sub-table.component.d.ts +0 -3
  387. package/table/table.component.d.ts +0 -3
  388. package/table/table.module.d.ts +0 -11
  389. package/toast/mis-crystal-design-system-toast.d.ts +5 -0
  390. package/toast/mis-crystal-design-system-toast.metadata.json +1 -0
  391. package/toast/package.json +11 -0
  392. package/toast/toast.component.d.ts +0 -3
  393. package/toast/toast.data.service.d.ts +0 -3
  394. package/toast/toast.module.d.ts +0 -7
  395. package/toast/toast.service.d.ts +0 -3
  396. package/tooltip/mis-crystal-design-system-tooltip.d.ts +4 -0
  397. package/tooltip/mis-crystal-design-system-tooltip.metadata.json +1 -0
  398. package/tooltip/package.json +11 -0
  399. package/tooltip/tooltip-container/tooltip.component.d.ts +0 -3
  400. package/tooltip/tooltip.directive.d.ts +0 -3
  401. package/tooltip/tooltip.module.d.ts +0 -8
  402. package/utils/mis-crystal-design-system-utils.d.ts +4 -0
  403. package/utils/mis-crystal-design-system-utils.metadata.json +1 -0
  404. package/utils/package.json +11 -0
  405. package/virtual-scroll/index.d.ts +1 -0
  406. package/virtual-scroll/mis-crystal-design-system-virtual-scroll.d.ts +4 -0
  407. package/virtual-scroll/mis-crystal-design-system-virtual-scroll.metadata.json +1 -0
  408. package/virtual-scroll/package.json +11 -0
  409. package/virtual-scroll/public_api.d.ts +3 -0
  410. package/virtual-scroll/virtual-scroll.component.d.ts +25 -0
  411. package/virtual-scroll/virtual-scroll.constants.d.ts +15 -0
  412. package/virtual-scroll/virtual-scroll.module.d.ts +4 -0
  413. package/widgets/mis-crystal-design-system-widgets.d.ts +4 -0
  414. package/widgets/mis-crystal-design-system-widgets.metadata.json +1 -0
  415. package/widgets/package.json +11 -0
  416. package/widgets/services/widget.service.d.ts +0 -3
  417. package/widgets/widgets.module.d.ts +0 -5
  418. package/esm2020/action-list/action-list.component.mjs +0 -174
  419. package/esm2020/action-list/action-list.module.mjs +0 -24
  420. package/esm2020/analytics/analytics.module.mjs +0 -18
  421. package/esm2020/analytics/analytics.service.mjs +0 -63
  422. package/esm2020/async-search-dropdown/async-dropdown.component.mjs +0 -242
  423. package/esm2020/async-search-dropdown/async-dropdown.module.mjs +0 -21
  424. package/esm2020/button/button.component.mjs +0 -52
  425. package/esm2020/button/button.directive.mjs +0 -59
  426. package/esm2020/button/button.module.mjs +0 -22
  427. package/esm2020/checkbox/checkbox.component.mjs +0 -87
  428. package/esm2020/checkbox/checkbox.module.mjs +0 -22
  429. package/esm2020/chip/chip.component.mjs +0 -36
  430. package/esm2020/chip/chip.module.mjs +0 -21
  431. package/esm2020/datepicker_v2/datepicker.module.mjs +0 -23
  432. package/esm2020/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs +0 -5
  433. package/esm2020/datepicker_v2/public_api.mjs +0 -4
  434. package/esm2020/datepicker_v2/tz-datepicker.directive.mjs +0 -143
  435. package/esm2020/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +0 -151
  436. package/esm2020/daterangepicker_v2/daterangepicker.module.mjs +0 -24
  437. package/esm2020/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.mjs +0 -5
  438. package/esm2020/daterangepicker_v2/public_api.mjs +0 -4
  439. package/esm2020/daterangepicker_v2/tz-daterangepicker.directive.mjs +0 -133
  440. package/esm2020/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +0 -209
  441. package/esm2020/drawer/drawer-body/drawer-body.component.mjs +0 -43
  442. package/esm2020/drawer/drawer.module.mjs +0 -32
  443. package/esm2020/drawer/mis-crystal-design-system-drawer.mjs +0 -5
  444. package/esm2020/dropdown/dropdown.component.mjs +0 -148
  445. package/esm2020/dropdown/dropdown.module.mjs +0 -24
  446. package/esm2020/fab/fab.component.mjs +0 -82
  447. package/esm2020/fab/fab.module.mjs +0 -21
  448. package/esm2020/input/directives/input/input.directive.mjs +0 -40
  449. package/esm2020/input/mis-input.component.mjs +0 -46
  450. package/esm2020/input/mis-input.module.mjs +0 -20
  451. package/esm2020/loader/loader.component.mjs +0 -19
  452. package/esm2020/loader/loader.module.mjs +0 -21
  453. package/esm2020/menu/menu-close.directive.mjs +0 -23
  454. package/esm2020/menu/menu.directive.mjs +0 -75
  455. package/esm2020/menu/menu.module.mjs +0 -22
  456. package/esm2020/modal/mis-crystal-design-system-modal.mjs +0 -5
  457. package/esm2020/modal/modal.module.mjs +0 -32
  458. package/esm2020/modal/modal.service.mjs +0 -70
  459. package/esm2020/modal/module-wrapper/module-wrapper.component.mjs +0 -40
  460. package/esm2020/multi-select-dropdown/multi-select-dropdown.component.mjs +0 -297
  461. package/esm2020/multi-select-dropdown/multi-select-dropdown.module.mjs +0 -25
  462. package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +0 -313
  463. package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +0 -25
  464. package/esm2020/radio-button/radio-button.component.mjs +0 -49
  465. package/esm2020/radio-button/radio-button.module.mjs +0 -22
  466. package/esm2020/ske-loader/ske-loader.component.mjs +0 -34
  467. package/esm2020/ske-loader/ske-loader.module.mjs +0 -18
  468. package/esm2020/switch/switch.component.mjs +0 -43
  469. package/esm2020/switch/switch.module.mjs +0 -22
  470. package/esm2020/table/custom-table-cell.directive.mjs +0 -42
  471. package/esm2020/table/filter/filter.component.mjs +0 -79
  472. package/esm2020/table/mis-crystal-design-system-table.mjs +0 -5
  473. package/esm2020/table/public_api.mjs +0 -6
  474. package/esm2020/table/sub-table/sub-table.component.mjs +0 -69
  475. package/esm2020/table/table.component.mjs +0 -208
  476. package/esm2020/table/table.module.mjs +0 -26
  477. package/esm2020/toast/toast.component.mjs +0 -33
  478. package/esm2020/toast/toast.data.service.mjs +0 -30
  479. package/esm2020/toast/toast.module.mjs +0 -32
  480. package/esm2020/toast/toast.service.mjs +0 -91
  481. package/esm2020/tooltip/tooltip-container/tooltip.component.mjs +0 -33
  482. package/esm2020/tooltip/tooltip.directive.mjs +0 -122
  483. package/esm2020/tooltip/tooltip.module.mjs +0 -23
  484. package/esm2020/widgets/classes/widget-group.mjs +0 -32
  485. package/esm2020/widgets/services/widget.service.mjs +0 -18
  486. package/esm2020/widgets/widgets.module.mjs +0 -17
  487. package/fesm2015/mis-crystal-design-system-action-list.mjs +0 -199
  488. package/fesm2015/mis-crystal-design-system-action-list.mjs.map +0 -1
  489. package/fesm2015/mis-crystal-design-system-analytics.mjs.map +0 -1
  490. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs +0 -272
  491. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
  492. package/fesm2015/mis-crystal-design-system-button.mjs +0 -134
  493. package/fesm2015/mis-crystal-design-system-button.mjs.map +0 -1
  494. package/fesm2015/mis-crystal-design-system-checkbox.mjs +0 -112
  495. package/fesm2015/mis-crystal-design-system-checkbox.mjs.map +0 -1
  496. package/fesm2015/mis-crystal-design-system-chip.mjs +0 -61
  497. package/fesm2015/mis-crystal-design-system-chip.mjs.map +0 -1
  498. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs +0 -360
  499. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
  500. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs +0 -412
  501. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
  502. package/fesm2015/mis-crystal-design-system-drawer.mjs +0 -157
  503. package/fesm2015/mis-crystal-design-system-drawer.mjs.map +0 -1
  504. package/fesm2015/mis-crystal-design-system-dropdown.mjs +0 -176
  505. package/fesm2015/mis-crystal-design-system-dropdown.mjs.map +0 -1
  506. package/fesm2015/mis-crystal-design-system-fab.mjs +0 -102
  507. package/fesm2015/mis-crystal-design-system-fab.mjs.map +0 -1
  508. package/fesm2015/mis-crystal-design-system-input.mjs +0 -112
  509. package/fesm2015/mis-crystal-design-system-input.mjs.map +0 -1
  510. package/fesm2015/mis-crystal-design-system-loader.mjs +0 -44
  511. package/fesm2015/mis-crystal-design-system-loader.mjs.map +0 -1
  512. package/fesm2015/mis-crystal-design-system-menu.mjs +0 -120
  513. package/fesm2015/mis-crystal-design-system-menu.mjs.map +0 -1
  514. package/fesm2015/mis-crystal-design-system-modal.mjs +0 -156
  515. package/fesm2015/mis-crystal-design-system-modal.mjs.map +0 -1
  516. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs +0 -312
  517. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
  518. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -310
  519. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
  520. package/fesm2015/mis-crystal-design-system-radio-button.mjs +0 -74
  521. package/fesm2015/mis-crystal-design-system-radio-button.mjs.map +0 -1
  522. package/fesm2015/mis-crystal-design-system-ske-loader.mjs +0 -56
  523. package/fesm2015/mis-crystal-design-system-ske-loader.mjs.map +0 -1
  524. package/fesm2015/mis-crystal-design-system-styles.mjs +0 -4
  525. package/fesm2015/mis-crystal-design-system-styles.mjs.map +0 -1
  526. package/fesm2015/mis-crystal-design-system-switch.mjs +0 -68
  527. package/fesm2015/mis-crystal-design-system-switch.mjs.map +0 -1
  528. package/fesm2015/mis-crystal-design-system-table.mjs +0 -421
  529. package/fesm2015/mis-crystal-design-system-table.mjs.map +0 -1
  530. package/fesm2015/mis-crystal-design-system-toast.mjs +0 -182
  531. package/fesm2015/mis-crystal-design-system-toast.mjs.map +0 -1
  532. package/fesm2015/mis-crystal-design-system-tooltip.mjs +0 -179
  533. package/fesm2015/mis-crystal-design-system-tooltip.mjs.map +0 -1
  534. package/fesm2015/mis-crystal-design-system-utils.mjs +0 -24
  535. package/fesm2015/mis-crystal-design-system-utils.mjs.map +0 -1
  536. package/fesm2015/mis-crystal-design-system-widgets.mjs.map +0 -1
  537. package/fesm2015/mis-crystal-design-system.mjs.map +0 -1
  538. package/fesm2020/mis-crystal-design-system-action-list.mjs +0 -201
  539. package/fesm2020/mis-crystal-design-system-action-list.mjs.map +0 -1
  540. package/fesm2020/mis-crystal-design-system-analytics.mjs +0 -85
  541. package/fesm2020/mis-crystal-design-system-analytics.mjs.map +0 -1
  542. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs +0 -265
  543. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
  544. package/fesm2020/mis-crystal-design-system-button.mjs +0 -134
  545. package/fesm2020/mis-crystal-design-system-button.mjs.map +0 -1
  546. package/fesm2020/mis-crystal-design-system-checkbox.mjs +0 -112
  547. package/fesm2020/mis-crystal-design-system-checkbox.mjs.map +0 -1
  548. package/fesm2020/mis-crystal-design-system-chip.mjs +0 -61
  549. package/fesm2020/mis-crystal-design-system-chip.mjs.map +0 -1
  550. package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs +0 -361
  551. package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
  552. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs +0 -409
  553. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
  554. package/fesm2020/mis-crystal-design-system-drawer.mjs +0 -156
  555. package/fesm2020/mis-crystal-design-system-drawer.mjs.map +0 -1
  556. package/fesm2020/mis-crystal-design-system-dropdown.mjs +0 -175
  557. package/fesm2020/mis-crystal-design-system-dropdown.mjs.map +0 -1
  558. package/fesm2020/mis-crystal-design-system-fab.mjs +0 -107
  559. package/fesm2020/mis-crystal-design-system-fab.mjs.map +0 -1
  560. package/fesm2020/mis-crystal-design-system-input.mjs +0 -106
  561. package/fesm2020/mis-crystal-design-system-input.mjs.map +0 -1
  562. package/fesm2020/mis-crystal-design-system-loader.mjs +0 -44
  563. package/fesm2020/mis-crystal-design-system-loader.mjs.map +0 -1
  564. package/fesm2020/mis-crystal-design-system-menu.mjs +0 -119
  565. package/fesm2020/mis-crystal-design-system-menu.mjs.map +0 -1
  566. package/fesm2020/mis-crystal-design-system-modal.mjs +0 -156
  567. package/fesm2020/mis-crystal-design-system-modal.mjs.map +0 -1
  568. package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs +0 -325
  569. package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
  570. package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -341
  571. package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
  572. package/fesm2020/mis-crystal-design-system-radio-button.mjs +0 -74
  573. package/fesm2020/mis-crystal-design-system-radio-button.mjs.map +0 -1
  574. package/fesm2020/mis-crystal-design-system-ske-loader.mjs +0 -56
  575. package/fesm2020/mis-crystal-design-system-ske-loader.mjs.map +0 -1
  576. package/fesm2020/mis-crystal-design-system-styles.mjs +0 -4
  577. package/fesm2020/mis-crystal-design-system-styles.mjs.map +0 -1
  578. package/fesm2020/mis-crystal-design-system-switch.mjs +0 -68
  579. package/fesm2020/mis-crystal-design-system-switch.mjs.map +0 -1
  580. package/fesm2020/mis-crystal-design-system-table.mjs +0 -413
  581. package/fesm2020/mis-crystal-design-system-table.mjs.map +0 -1
  582. package/fesm2020/mis-crystal-design-system-toast.mjs +0 -180
  583. package/fesm2020/mis-crystal-design-system-toast.mjs.map +0 -1
  584. package/fesm2020/mis-crystal-design-system-tooltip.mjs +0 -177
  585. package/fesm2020/mis-crystal-design-system-tooltip.mjs.map +0 -1
  586. package/fesm2020/mis-crystal-design-system-utils.mjs.map +0 -1
  587. package/fesm2020/mis-crystal-design-system-widgets.mjs +0 -128
  588. package/fesm2020/mis-crystal-design-system-widgets.mjs.map +0 -1
  589. package/fesm2020/mis-crystal-design-system.mjs +0 -24
  590. package/fesm2020/mis-crystal-design-system.mjs.map +0 -1
  591. /package/{esm2020/action-list/index.mjs → esm2015/action-list/index.js} +0 -0
  592. /package/{esm2020/action-list/mis-crystal-design-system-action-list.mjs → esm2015/action-list/mis-crystal-design-system-action-list.js} +0 -0
  593. /package/{esm2020/action-list/public_api.mjs → esm2015/action-list/public_api.js} +0 -0
  594. /package/{esm2020/analytics/index.mjs → esm2015/analytics/index.js} +0 -0
  595. /package/{esm2020/analytics/mis-crystal-design-system-analytics.mjs → esm2015/analytics/mis-crystal-design-system-analytics.js} +0 -0
  596. /package/{esm2020/analytics/public_api.mjs → esm2015/analytics/public_api.js} +0 -0
  597. /package/{esm2020/async-search-dropdown/index.mjs → esm2015/async-search-dropdown/index.js} +0 -0
  598. /package/{esm2020/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.mjs → esm2015/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.js} +0 -0
  599. /package/{esm2020/async-search-dropdown/public_api.mjs → esm2015/async-search-dropdown/public_api.js} +0 -0
  600. /package/{esm2020/button/index.mjs → esm2015/button/index.js} +0 -0
  601. /package/{esm2020/button/mis-crystal-design-system-button.mjs → esm2015/button/mis-crystal-design-system-button.js} +0 -0
  602. /package/{esm2020/button/public_api.mjs → esm2015/button/public_api.js} +0 -0
  603. /package/{esm2020/checkbox/index.mjs → esm2015/checkbox/index.js} +0 -0
  604. /package/{esm2020/checkbox/mis-crystal-design-system-checkbox.mjs → esm2015/checkbox/mis-crystal-design-system-checkbox.js} +0 -0
  605. /package/{esm2020/checkbox/public_api.mjs → esm2015/checkbox/public_api.js} +0 -0
  606. /package/{esm2020/chip/index.mjs → esm2015/chip/index.js} +0 -0
  607. /package/{esm2020/chip/mis-crystal-design-system-chip.mjs → esm2015/chip/mis-crystal-design-system-chip.js} +0 -0
  608. /package/{esm2020/chip/public_api.mjs → esm2015/chip/public_api.js} +0 -0
  609. /package/{esm2020/datepicker_v2/datepicker-constants.mjs → esm2015/datepicker_v2/datepicker-constants.js} +0 -0
  610. /package/{esm2020/datepicker_v2/index.mjs → esm2015/datepicker_v2/index.js} +0 -0
  611. /package/{esm2020/datepicker_v2/models/dp-config.model.mjs → esm2015/datepicker_v2/models/dp-config.model.js} +0 -0
  612. /package/{esm2020/datepicker_v2/utils/index.mjs → esm2015/datepicker_v2/utils/index.js} +0 -0
  613. /package/{esm2020/daterangepicker_v2/daterangepicker-constants.mjs → esm2015/daterangepicker_v2/daterangepicker-constants.js} +0 -0
  614. /package/{esm2020/daterangepicker_v2/index.mjs → esm2015/daterangepicker_v2/index.js} +0 -0
  615. /package/{esm2020/daterangepicker_v2/models/drp-config.model.mjs → esm2015/daterangepicker_v2/models/drp-config.model.js} +0 -0
  616. /package/{esm2020/daterangepicker_v2/utils/index.mjs → esm2015/daterangepicker_v2/utils/index.js} +0 -0
  617. /package/{esm2020/drawer/drawer-constants.mjs → esm2015/drawer/drawer-constants.js} +0 -0
  618. /package/{esm2020/drawer/drawer-ref.mjs → esm2015/drawer/drawer-ref.js} +0 -0
  619. /package/{esm2020/drawer/index.mjs → esm2015/drawer/index.js} +0 -0
  620. /package/{esm2020/drawer/public_api.mjs → esm2015/drawer/public_api.js} +0 -0
  621. /package/{esm2020/dropdown/index.mjs → esm2015/dropdown/index.js} +0 -0
  622. /package/{esm2020/dropdown/mis-crystal-design-system-dropdown.mjs → esm2015/dropdown/mis-crystal-design-system-dropdown.js} +0 -0
  623. /package/{esm2020/dropdown/public_api.mjs → esm2015/dropdown/public_api.js} +0 -0
  624. /package/{esm2020/fab/index.mjs → esm2015/fab/index.js} +0 -0
  625. /package/{esm2020/fab/mis-crystal-design-system-fab.mjs → esm2015/fab/mis-crystal-design-system-fab.js} +0 -0
  626. /package/{esm2020/fab/public_api.mjs → esm2015/fab/public_api.js} +0 -0
  627. /package/{esm2020/index.mjs → esm2015/index.js} +0 -0
  628. /package/{esm2020/input/index.mjs → esm2015/input/index.js} +0 -0
  629. /package/{esm2020/input/mis-crystal-design-system-input.mjs → esm2015/input/mis-crystal-design-system-input.js} +0 -0
  630. /package/{esm2020/input/public_api.mjs → esm2015/input/public_api.js} +0 -0
  631. /package/{esm2020/loader/index.mjs → esm2015/loader/index.js} +0 -0
  632. /package/{esm2020/loader/mis-crystal-design-system-loader.mjs → esm2015/loader/mis-crystal-design-system-loader.js} +0 -0
  633. /package/{esm2020/loader/public_api.mjs → esm2015/loader/public_api.js} +0 -0
  634. /package/{esm2020/menu/index.mjs → esm2015/menu/index.js} +0 -0
  635. /package/{esm2020/menu/mis-crystal-design-system-menu.mjs → esm2015/menu/mis-crystal-design-system-menu.js} +0 -0
  636. /package/{esm2020/menu/public_api.mjs → esm2015/menu/public_api.js} +0 -0
  637. /package/{esm2020/mis-crystal-design-system.mjs → esm2015/mis-crystal-design-system.js} +0 -0
  638. /package/{esm2020/modal/index.mjs → esm2015/modal/index.js} +0 -0
  639. /package/{esm2020/modal/modal-constants.mjs → esm2015/modal/modal-constants.js} +0 -0
  640. /package/{esm2020/modal/modal-ref.mjs → esm2015/modal/modal-ref.js} +0 -0
  641. /package/{esm2020/modal/public_api.mjs → esm2015/modal/public_api.js} +0 -0
  642. /package/{esm2020/multi-select-dropdown/index.mjs → esm2015/multi-select-dropdown/index.js} +0 -0
  643. /package/{esm2020/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.mjs → esm2015/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.js} +0 -0
  644. /package/{esm2020/multi-select-dropdown/public_api.mjs → esm2015/multi-select-dropdown/public_api.js} +0 -0
  645. /package/{esm2020/nested-multi-select-dropdown/index.mjs → esm2015/nested-multi-select-dropdown/index.js} +0 -0
  646. /package/{esm2020/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.mjs → esm2015/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.js} +0 -0
  647. /package/{esm2020/nested-multi-select-dropdown/public_api.mjs → esm2015/nested-multi-select-dropdown/public_api.js} +0 -0
  648. /package/{esm2020/public-api.mjs → esm2015/public-api.js} +0 -0
  649. /package/{esm2020/radio-button/index.mjs → esm2015/radio-button/index.js} +0 -0
  650. /package/{esm2020/radio-button/mis-crystal-design-system-radio-button.mjs → esm2015/radio-button/mis-crystal-design-system-radio-button.js} +0 -0
  651. /package/{esm2020/radio-button/public_api.mjs → esm2015/radio-button/public_api.js} +0 -0
  652. /package/{esm2020/ske-loader/index.mjs → esm2015/ske-loader/index.js} +0 -0
  653. /package/{esm2020/ske-loader/mis-crystal-design-system-ske-loader.mjs → esm2015/ske-loader/mis-crystal-design-system-ske-loader.js} +0 -0
  654. /package/{esm2020/ske-loader/public_api.mjs → esm2015/ske-loader/public_api.js} +0 -0
  655. /package/{esm2020/styles/index.mjs → esm2015/styles/index.js} +0 -0
  656. /package/{esm2020/styles/mis-crystal-design-system-styles.mjs → esm2015/styles/mis-crystal-design-system-styles.js} +0 -0
  657. /package/{esm2020/styles/public_api.mjs → esm2015/styles/public_api.js} +0 -0
  658. /package/{esm2020/switch/index.mjs → esm2015/switch/index.js} +0 -0
  659. /package/{esm2020/switch/mis-crystal-design-system-switch.mjs → esm2015/switch/mis-crystal-design-system-switch.js} +0 -0
  660. /package/{esm2020/switch/public_api.mjs → esm2015/switch/public_api.js} +0 -0
  661. /package/{esm2020/table/index.mjs → esm2015/table/index.js} +0 -0
  662. /package/{esm2020/toast/index.mjs → esm2015/toast/index.js} +0 -0
  663. /package/{esm2020/toast/public_api.mjs → esm2015/toast/public_api.js} +0 -0
  664. /package/{esm2020/tooltip/index.mjs → esm2015/tooltip/index.js} +0 -0
  665. /package/{esm2020/tooltip/mis-crystal-design-system-tooltip.mjs → esm2015/tooltip/mis-crystal-design-system-tooltip.js} +0 -0
  666. /package/{esm2020/tooltip/models/tooltip.model.mjs → esm2015/tooltip/models/tooltip.model.js} +0 -0
  667. /package/{esm2020/tooltip/public_api.mjs → esm2015/tooltip/public_api.js} +0 -0
  668. /package/{esm2020/utils/index.mjs → esm2015/utils/index.js} +0 -0
  669. /package/{esm2020/utils/mis-crystal-design-system-utils.mjs → esm2015/utils/mis-crystal-design-system-utils.js} +0 -0
  670. /package/{esm2020/widgets/classes/async-widget.mjs → esm2015/widgets/classes/async-widget.js} +0 -0
  671. /package/{esm2020/widgets/classes/sync-widget.mjs → esm2015/widgets/classes/sync-widget.js} +0 -0
  672. /package/{esm2020/widgets/index.mjs → esm2015/widgets/index.js} +0 -0
  673. /package/{esm2020/widgets/interfaces/widgets.model.mjs → esm2015/widgets/interfaces/widgets.model.js} +0 -0
  674. /package/{esm2020/widgets/mis-crystal-design-system-widgets.mjs → esm2015/widgets/mis-crystal-design-system-widgets.js} +0 -0
  675. /package/{esm2020/widgets/public_api.mjs → esm2015/widgets/public_api.js} +0 -0
@@ -0,0 +1,147 @@
1
+ import { OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';
2
+ import { ComponentPortal, PortalInjector, PortalModule } from '@angular/cdk/portal';
3
+ import { InjectionToken, Component, ViewChild, ViewContainerRef, ɵɵdefineInjectable, ɵɵinject, INJECTOR, Injectable, Injector, NgModule } from '@angular/core';
4
+ import { Subject } from 'rxjs';
5
+ import { trigger, transition, style, animate } from '@angular/animations';
6
+ import { CommonModule } from '@angular/common';
7
+
8
+ /** @format */
9
+ const MODAL_DATA_VAR = new InjectionToken("MISModalDataInjectionToken");
10
+
11
+ /** @format */
12
+ class ModalRef {
13
+ constructor(overlay) {
14
+ this.overlay = overlay;
15
+ this.afterClosed$ = new Subject();
16
+ this.afterClosed = this.afterClosed$.asObservable();
17
+ }
18
+ close(data) {
19
+ this.overlay.detach();
20
+ this.overlay.dispose();
21
+ this.afterClosed$.next(data);
22
+ this.afterClosed$.complete();
23
+ }
24
+ }
25
+
26
+ class ModuleWrapperComponent {
27
+ constructor() { }
28
+ bindComponent(type, injector) {
29
+ this.initComponent(type, injector);
30
+ }
31
+ initComponent(type, injector) {
32
+ this.modalPortal = new ComponentPortal(type, this.place, injector);
33
+ }
34
+ }
35
+ ModuleWrapperComponent.decorators = [
36
+ { type: Component, args: [{
37
+ selector: "mis-module-wrapper",
38
+ template: "<div class=\"mis-modal-body\" #place @slideInOut>\n <ng-template [cdkPortalOutlet]=\"modalPortal\"></ng-template>\n</div>\n",
39
+ animations: [
40
+ trigger("slideInOut", [
41
+ transition(":enter", [
42
+ style({ transform: "translateY(-30%)", opacity: 0 }),
43
+ animate("200ms ease-out", style({ transform: "translatey(0%)", opacity: 1 }))
44
+ ]),
45
+ transition(":leave", [animate("200ms ease-out", style({ transform: "translatey(-30%)", opacity: 0 }))])
46
+ ])
47
+ ],
48
+ styles: [".mis-modal-body{display:block;width:100%;height:100%;background-color:transparent;border-radius:12px;box-shadow:0 12px 24px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.12);overflow:hidden}"]
49
+ },] }
50
+ ];
51
+ ModuleWrapperComponent.ctorParameters = () => [];
52
+ ModuleWrapperComponent.propDecorators = {
53
+ place: [{ type: ViewChild, args: ["place", { static: false, read: ViewContainerRef },] }]
54
+ };
55
+
56
+ class ModalService {
57
+ constructor(overlay, injector) {
58
+ this.overlay = overlay;
59
+ this.injector = injector;
60
+ }
61
+ show(component, data, options) {
62
+ const positionStrategy = this.calculatePosition(options);
63
+ const { width, height } = options || {};
64
+ const config = new OverlayConfig({
65
+ hasBackdrop: true,
66
+ positionStrategy,
67
+ scrollStrategy: this.overlay.scrollStrategies.noop(),
68
+ width: width,
69
+ height,
70
+ panelClass: "mis-modal",
71
+ backdropClass: "mis-modal-overlay"
72
+ });
73
+ const overlayRef = this.overlay.create(config);
74
+ const modalRef = new ModalRef(overlayRef);
75
+ const injector = this.createInjector(modalRef, this.injector, data);
76
+ const portal = new ComponentPortal(ModuleWrapperComponent, null);
77
+ this.componentInstance = overlayRef.attach(portal);
78
+ if (options === null || options === void 0 ? void 0 : options.closeOnBackdropClick) {
79
+ overlayRef.backdropClick().subscribe(() => modalRef.close());
80
+ }
81
+ this.componentInstance.instance.bindComponent(component, injector);
82
+ return modalRef;
83
+ }
84
+ createInjector(ref, inj, data) {
85
+ const injectorTokens = new WeakMap();
86
+ injectorTokens.set(ModalRef, ref);
87
+ injectorTokens.set(MODAL_DATA_VAR, data);
88
+ return new PortalInjector(inj, injectorTokens);
89
+ }
90
+ calculatePosition(options) {
91
+ const position = this.overlay.position().global().centerHorizontally().centerVertically();
92
+ if (options && screen.width > 600) {
93
+ if (options.top) {
94
+ position.top(options.top);
95
+ }
96
+ if (options.left) {
97
+ position.left(options.left);
98
+ }
99
+ if (options.right) {
100
+ position.right(options.right);
101
+ }
102
+ if (options.bottom) {
103
+ position.bottom(options.bottom);
104
+ }
105
+ }
106
+ return position;
107
+ }
108
+ }
109
+ ModalService.ɵprov = ɵɵdefineInjectable({ factory: function ModalService_Factory() { return new ModalService(ɵɵinject(Overlay), ɵɵinject(INJECTOR)); }, token: ModalService, providedIn: "root" });
110
+ ModalService.decorators = [
111
+ { type: Injectable, args: [{
112
+ providedIn: "root"
113
+ },] }
114
+ ];
115
+ ModalService.ctorParameters = () => [
116
+ { type: Overlay },
117
+ { type: Injector }
118
+ ];
119
+
120
+ class ModalModule {
121
+ static forRoot() {
122
+ return {
123
+ ngModule: ModalModule,
124
+ providers: [ModalService]
125
+ };
126
+ }
127
+ static forChild() {
128
+ return {
129
+ ngModule: ModalModule,
130
+ providers: [ModalService]
131
+ };
132
+ }
133
+ }
134
+ ModalModule.decorators = [
135
+ { type: NgModule, args: [{
136
+ declarations: [ModuleWrapperComponent],
137
+ imports: [CommonModule, OverlayModule, PortalModule],
138
+ entryComponents: [ModuleWrapperComponent]
139
+ },] }
140
+ ];
141
+
142
+ /**
143
+ * Generated bundle index. Do not edit.
144
+ */
145
+
146
+ export { MODAL_DATA_VAR, ModalModule, ModalRef, ModalService, ModuleWrapperComponent as ɵa };
147
+ //# sourceMappingURL=mis-crystal-design-system-modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mis-crystal-design-system-modal.js","sources":["../../../projects/mis-components/modal/modal-constants.ts","../../../projects/mis-components/modal/modal-ref.ts","../../../projects/mis-components/modal/module-wrapper/module-wrapper.component.ts","../../../projects/mis-components/modal/modal.service.ts","../../../projects/mis-components/modal/modal.module.ts","../../../projects/mis-components/modal/mis-crystal-design-system-modal.ts"],"sourcesContent":["/** @format */\n\nimport { InjectionToken } from \"@angular/core\";\n\nexport const MODAL_DATA_VAR = new InjectionToken<any>(\"MISModalDataInjectionToken\");\n","/** @format */\n\nimport { OverlayRef } from \"@angular/cdk/overlay\";\nimport { Injectable } from \"@angular/core\";\nimport { Subject } from \"rxjs\";\n\nexport class ModalRef {\n private afterClosed$ = new Subject<unknown>();\n afterClosed = this.afterClosed$.asObservable();\n\n constructor(public overlay: OverlayRef) {}\n\n close(data?: unknown): void {\n this.overlay.detach();\n this.overlay.dispose();\n this.afterClosed$.next(data);\n this.afterClosed$.complete();\n }\n}\n","import { trigger, transition, style, animate } from \"@angular/animations\";\nimport { ComponentPortal, PortalInjector } from \"@angular/cdk/portal\";\nimport { Component, Injector, OnInit, ViewChild, ViewContainerRef } from \"@angular/core\";\nimport { ModalRef } from \"../modal-ref\";\n\n@Component({\n selector: \"mis-module-wrapper\",\n templateUrl: \"./module-wrapper.component.html\",\n styleUrls: [\"./module-wrapper.component.scss\"],\n animations: [\n trigger(\"slideInOut\", [\n transition(\":enter\", [\n style({ transform: \"translateY(-30%)\", opacity: 0 }),\n animate(\"200ms ease-out\", style({ transform: \"translatey(0%)\", opacity: 1 }))\n ]),\n transition(\":leave\", [animate(\"200ms ease-out\", style({ transform: \"translatey(-30%)\", opacity: 0 }))])\n ])\n ]\n})\nexport class ModuleWrapperComponent {\n modalPortal: ComponentPortal<any>;\n constructor() {}\n\n @ViewChild(\"place\", { static: false, read: ViewContainerRef }) place: ViewContainerRef;\n\n bindComponent(type: any, injector: PortalInjector) {\n this.initComponent(type, injector);\n }\n\n private initComponent(type: any, injector: PortalInjector) {\n this.modalPortal = new ComponentPortal(type, this.place, injector);\n }\n}\n","import { ComponentType, Overlay, OverlayConfig } from \"@angular/cdk/overlay\";\nimport { ComponentPortal, PortalInjector } from \"@angular/cdk/portal\";\nimport { ComponentRef, Injectable, Injector } from \"@angular/core\";\nimport { MODAL_DATA_VAR } from \"./modal-constants\";\nimport { ModalRef } from \"./modal-ref\";\nimport { ModuleWrapperComponent } from \"./module-wrapper/module-wrapper.component\";\n\ninterface IModalOptions {\n width?: string;\n height?: string;\n top?: string;\n right?: string;\n bottom?: string;\n left?: string;\n closeOnBackdropClick?: boolean;\n}\n@Injectable({\n providedIn: \"root\"\n})\nexport class ModalService {\n private componentInstance: ComponentRef<ModuleWrapperComponent>;\n\n constructor(private overlay: Overlay, private injector: Injector) {}\n\n show<T, D>(component: ComponentType<T>, data?: D, options?: IModalOptions): ModalRef {\n const positionStrategy = this.calculatePosition(options);\n const { width, height } = options || {};\n const config = new OverlayConfig({\n hasBackdrop: true,\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.noop(),\n width: width,\n height,\n panelClass: \"mis-modal\",\n backdropClass: \"mis-modal-overlay\"\n });\n const overlayRef = this.overlay.create(config);\n const modalRef = new ModalRef(overlayRef);\n const injector = this.createInjector(modalRef, this.injector, data);\n const portal = new ComponentPortal(ModuleWrapperComponent, null);\n this.componentInstance = overlayRef.attach(portal);\n if (options?.closeOnBackdropClick) {\n overlayRef.backdropClick().subscribe(() => modalRef.close());\n }\n this.componentInstance.instance.bindComponent(component, injector);\n return modalRef;\n }\n private createInjector<D>(ref: ModalRef, inj: Injector, data?: D): PortalInjector {\n const injectorTokens = new WeakMap();\n injectorTokens.set(ModalRef, ref);\n injectorTokens.set(MODAL_DATA_VAR, data);\n return new PortalInjector(inj, injectorTokens);\n }\n\n private calculatePosition(options: IModalOptions) {\n const position = this.overlay.position().global().centerHorizontally().centerVertically();\n if (options && screen.width > 600) {\n if (options.top) {\n position.top(options.top);\n }\n if (options.left) {\n position.left(options.left);\n }\n if (options.right) {\n position.right(options.right);\n }\n if (options.bottom) {\n position.bottom(options.bottom);\n }\n }\n return position;\n }\n}\n","import { ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { PortalModule } from \"@angular/cdk/portal\";\nimport { ModuleWrapperComponent } from \"./module-wrapper/module-wrapper.component\";\nimport { ModalService } from \"./modal.service\";\n\n@NgModule({\n declarations: [ModuleWrapperComponent],\n imports: [CommonModule, OverlayModule, PortalModule],\n entryComponents: [ModuleWrapperComponent]\n})\nexport class ModalModule {\n static forRoot(): ModuleWithProviders<ModalModule> {\n return {\n ngModule: ModalModule,\n providers: [ModalService]\n };\n }\n\n static forChild(): ModuleWithProviders<ModalModule> {\n return {\n ngModule: ModalModule,\n providers: [ModalService]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {ModuleWrapperComponent as ɵa} from './module-wrapper/module-wrapper.component';"],"names":[],"mappings":";;;;;;;AAAA;MAIa,cAAc,GAAG,IAAI,cAAc,CAAM,4BAA4B;;ACJlF;MAMa,QAAQ;IAInB,YAAmB,OAAmB;QAAnB,YAAO,GAAP,OAAO,CAAY;QAH9B,iBAAY,GAAG,IAAI,OAAO,EAAW,CAAC;QAC9C,gBAAW,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;KAEL;IAE1C,KAAK,CAAC,IAAc;QAClB,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QACtB,IAAI,CAAC,OA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AY,CAAC;gBACpD,eAAe,EAAE,CAAC,sBAAsB,CAAC;aAC1C;;;ACXD;;;;;;"}
@@ -0,0 +1,292 @@
1
+ import { __rest } from 'tslib';
2
+ import { EventEmitter, Component, ElementRef, ViewContainerRef, NgZone, Input, Output, ViewChild, NgModule } from '@angular/core';
3
+ import { TemplatePortal } from '@angular/cdk/portal';
4
+ import { ConnectionPositionPair, OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';
5
+ import { CommonModule } from '@angular/common';
6
+ import { FormsModule } from '@angular/forms';
7
+ import { CheckboxModule } from 'mis-crystal-design-system/checkbox';
8
+ import { ButtonModule } from 'mis-crystal-design-system/button';
9
+
10
+ class MultiSelectDropdownComponent {
11
+ constructor(eRef, overlay, viewContainerRef, ngZone) {
12
+ this.eRef = eRef;
13
+ this.overlay = overlay;
14
+ this.viewContainerRef = viewContainerRef;
15
+ this.ngZone = ngZone;
16
+ this.searchInput = "";
17
+ this.isOpen = false;
18
+ this.localSelectedItems = [];
19
+ this.localData = [];
20
+ this.searchData = [];
21
+ this.isSearchInputFocused = false;
22
+ this.SELECT_ALL_ENUM = "SELECT_ALL_ENABLED";
23
+ this.label = "Select";
24
+ this.height = "";
25
+ this.width = "";
26
+ this.dropdownListHeight = "";
27
+ this.dropdownListWidth = "";
28
+ this.dropdownListPosition = "Left";
29
+ this.enableSelectAll = false;
30
+ this.searchEnabled = true;
31
+ this.showSelectedCount = false;
32
+ this.noDataMessage = "No Data";
33
+ this.options = {
34
+ sortLabels: true
35
+ };
36
+ this.hideApplyButton = false;
37
+ this.onChange = new EventEmitter();
38
+ }
39
+ set data(values) {
40
+ this.localData = values.map(item => {
41
+ return Object.assign(Object.assign({}, item), { checked: false });
42
+ });
43
+ }
44
+ set selectedItems(values) {
45
+ this.handlerSetLocalSelectedItems(values);
46
+ }
47
+ ngOnInit() { }
48
+ handlerSetLocalSelectedItems(values) {
49
+ this.localSelectedItems = values;
50
+ this.localData = this.localData.map(item => {
51
+ if (item.value === this.SELECT_ALL_ENUM && values.length === this.localData.length - 1) {
52
+ return Object.assign(Object.assign({}, item), { checked: true });
53
+ }
54
+ if (values.some(base => base.value === item.value)) {
55
+ return Object.assign(Object.assign({}, item), { checked: true });
56
+ }
57
+ else {
58
+ if (item.value !== this.SELECT_ALL_ENUM || !this.hideApplyButton) {
59
+ return Object.assign(Object.assign({}, item), { checked: false });
60
+ }
61
+ else {
62
+ return item;
63
+ }
64
+ }
65
+ });
66
+ this.localData = this.formatValues(this.localData);
67
+ }
68
+ searchInputFocused(isFocused) {
69
+ this.isSearchInputFocused = isFocused;
70
+ }
71
+ searchInputCanceled(event) {
72
+ event.stopPropagation();
73
+ this.searchInput = "";
74
+ this.isSearchInputFocused = false;
75
+ }
76
+ toggleDropdown() {
77
+ this.ngZone.run(() => {
78
+ this.isOpen = !this.isOpen;
79
+ if (this.isOpen) {
80
+ this.handlerSetLocalSelectedItems(this.localSelectedItems);
81
+ this.localData = this.formatValues(this.localData);
82
+ }
83
+ if (this.isOpen)
84
+ this.openDropdown(this.popupContainer, this.selectElement.nativeElement);
85
+ else
86
+ this.onCancel();
87
+ });
88
+ }
89
+ openDropdown(template, origin) {
90
+ const positionsBottom = [
91
+ new ConnectionPositionPair({ originX: "start", originY: "bottom" }, { overlayX: "start", overlayY: "top" }, 0, 4),
92
+ new ConnectionPositionPair({ originX: "end", originY: "bottom" }, { overlayX: "end", overlayY: "top" }, 0, 4)
93
+ ];
94
+ const positionsTop = [
95
+ new ConnectionPositionPair({ originX: "start", originY: "top" }, { overlayX: "start", overlayY: "bottom" }, 0, -4),
96
+ new ConnectionPositionPair({ originX: "end", originY: "top" }, { overlayX: "end", overlayY: "bottom" }, 0, -4)
97
+ ];
98
+ const positionStrategy = this.overlay
99
+ .position()
100
+ .flexibleConnectedTo(origin)
101
+ .withPositions([
102
+ ...(this.dropdownListPosition === "Right" ? positionsBottom.reverse() : positionsBottom),
103
+ ...(this.dropdownListPosition === "Right" ? positionsTop.reverse() : positionsTop)
104
+ ])
105
+ .withPush(true);
106
+ const configs = new OverlayConfig({
107
+ hasBackdrop: true,
108
+ backdropClass: "cdk-overlay-transparent-backdrop",
109
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
110
+ positionStrategy,
111
+ width: origin.clientWidth
112
+ });
113
+ this.overlayRef = this.overlay.create(configs);
114
+ if (this.dropdownListWidth)
115
+ this.overlayRef.updateSize({ width: this.dropdownListWidth });
116
+ if (this.dropdownListHeight)
117
+ this.overlayRef.updateSize({ height: this.dropdownListHeight });
118
+ this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));
119
+ this.overlayRef.backdropClick().subscribe(res => {
120
+ this.onCancel();
121
+ });
122
+ }
123
+ filterByValue(array, string) {
124
+ return array.filter(o => o.label.toLowerCase().includes(string.toLowerCase()));
125
+ }
126
+ searchInputOnChange(newValue) {
127
+ this.searchInput = newValue;
128
+ if (newValue) {
129
+ this.searchData = this.filterByValue(this.localData, newValue);
130
+ }
131
+ else {
132
+ this.searchData = [];
133
+ this.searchInput = "";
134
+ }
135
+ }
136
+ formatValues(array) {
137
+ let sortedArray = array;
138
+ if (this.options.sortLabels) {
139
+ const checkedValues = array
140
+ .filter(a => a.checked)
141
+ .sort((a, b) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));
142
+ const unCheckedValues = array
143
+ .filter(a => !a.checked)
144
+ .sort((a, b) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));
145
+ sortedArray = [...checkedValues, ...unCheckedValues].filter(t => t.value !== this.SELECT_ALL_ENUM);
146
+ }
147
+ if (!sortedArray.some(option => option.value === this.SELECT_ALL_ENUM) && this.enableSelectAll && sortedArray.length > 0) {
148
+ sortedArray.unshift({
149
+ label: "Select all",
150
+ value: this.SELECT_ALL_ENUM,
151
+ checked: sortedArray.every(y => y.checked)
152
+ });
153
+ }
154
+ return sortedArray;
155
+ }
156
+ toggleSelectedItems(event, item) {
157
+ event.stopPropagation();
158
+ if (this.enableSelectAll && item.value === this.SELECT_ALL_ENUM) {
159
+ this.localData = this.localData.map(t => (Object.assign(Object.assign({}, t), { checked: !item.checked })));
160
+ if (this.hideApplyButton) {
161
+ this.applyFilters();
162
+ }
163
+ return;
164
+ }
165
+ if (item.checked) {
166
+ this.localData = [
167
+ ...this.localData.map(a => {
168
+ if (a.value === item.value || a.value === this.SELECT_ALL_ENUM) {
169
+ return Object.assign(Object.assign({}, a), { checked: false });
170
+ }
171
+ return a;
172
+ })
173
+ ];
174
+ }
175
+ else {
176
+ this.localData = [
177
+ ...this.localData.map(a => {
178
+ if (a.value === item.value) {
179
+ return Object.assign(Object.assign({}, a), { checked: true });
180
+ }
181
+ return a;
182
+ })
183
+ ];
184
+ if (this.enableSelectAll && this.localData.filter(r => r.value !== this.SELECT_ALL_ENUM).every(t => t.checked)) {
185
+ this.localData = [
186
+ ...this.localData.map(a => {
187
+ if (a.value === this.SELECT_ALL_ENUM) {
188
+ return Object.assign(Object.assign({}, a), { checked: true });
189
+ }
190
+ return a;
191
+ })
192
+ ];
193
+ }
194
+ }
195
+ if (this.searchEnabled) {
196
+ this.searchInputOnChange(this.searchInput);
197
+ }
198
+ if (this.hideApplyButton) {
199
+ this.applyFilters();
200
+ }
201
+ }
202
+ applyFilters() {
203
+ this.onChange.emit(this.localData
204
+ .filter(a => {
205
+ return a.checked && a.value !== this.SELECT_ALL_ENUM;
206
+ })
207
+ .map(item => {
208
+ const { checked } = item, data = __rest(item, ["checked"]);
209
+ return data;
210
+ }));
211
+ if (!this.hideApplyButton) {
212
+ this.onCancel();
213
+ }
214
+ }
215
+ onReset() {
216
+ this.isSearchInputFocused = false;
217
+ this.onChange.emit([]);
218
+ this.isOpen = false;
219
+ this.searchInput = "";
220
+ }
221
+ onCancel() {
222
+ var _a;
223
+ this.isSearchInputFocused = false;
224
+ this.localData = this.localData.map(a => {
225
+ if (this.localSelectedItems.some(b => b.value === a.value && String(b.checked) !== String(a.checked))) {
226
+ return a;
227
+ }
228
+ else {
229
+ if (a.value !== this.SELECT_ALL_ENUM && this.hideApplyButton) {
230
+ return Object.assign(Object.assign({}, a), { checked: false });
231
+ }
232
+ return a;
233
+ }
234
+ });
235
+ this.isOpen = false;
236
+ this.searchInput = "";
237
+ (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
238
+ this.searchInput = "";
239
+ }
240
+ }
241
+ MultiSelectDropdownComponent.decorators = [
242
+ { type: Component, args: [{
243
+ selector: "mis-multi-select-dropdown",
244
+ 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 && localSelectedItems?.length > 0\" class=\"count\">\n {{ localSelectedItems?.length }}\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 class=\"item\"\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=\"checkbox-container-wrapper\">\n <div class=\"checkbox-container\">\n <mis-checkbox [checked]=\"item.checked\" tabindex=\"-1\"></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 class=\"noData\" *ngIf=\"(searchInput ? searchData : localData).length === 0\">\n {{ searchInput === \"\" ? noDataMessage : \"No results\" }}\n </div>\n </div>\n <div *ngIf=\"localData.length !== 0 && !hideApplyButton\" 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",
245
+ styles: [".container{position:relative;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;height:32px;width:256px;font-family:Lato,sans-serif!important}.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:focus-visible,.container .dropdown:hover{background-color:#f5f7fc;outline:none}.container .dropdown .label{display:flex;justify-content:flex-start;align-items:center;width:calc(100% - 32px)}.container .dropdown .label,.container .dropdown .label .text{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}.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{width:100%;max-height:340px;padding-bottom:0;border:1px solid #e0e0e0;border-radius:8px;background-color:#fff;box-shadow:0 12px 24px 0 rgba(0,0,0,.12);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 .item{cursor:pointer;display:flex;justify-content:flex-start;align-items:center;padding:8px 12px;border-radius:6px;height:auto}.popup-container .items .item:focus-visible,.popup-container .items .item:hover{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;-moz-user-select:none;-ms-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 #6a737d}.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 #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.popup-container .items .item .checkbox-container-wrapper .label{margin:0 0 0 8px;line-height:20px;font-size:14px;font-style:normal;font-weight:400;letter-spacing:.2;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:-webkit-sticky;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}"]
246
+ },] }
247
+ ];
248
+ MultiSelectDropdownComponent.ctorParameters = () => [
249
+ { type: ElementRef },
250
+ { type: Overlay },
251
+ { type: ViewContainerRef },
252
+ { type: NgZone }
253
+ ];
254
+ MultiSelectDropdownComponent.propDecorators = {
255
+ data: [{ type: Input }],
256
+ label: [{ type: Input }],
257
+ height: [{ type: Input }],
258
+ width: [{ type: Input }],
259
+ dropdownListHeight: [{ type: Input }],
260
+ dropdownListWidth: [{ type: Input }],
261
+ dropdownListPosition: [{ type: Input }],
262
+ enableSelectAll: [{ type: Input }],
263
+ searchEnabled: [{ type: Input }],
264
+ showSelectedCount: [{ type: Input }],
265
+ noDataMessage: [{ type: Input }],
266
+ options: [{ type: Input }],
267
+ selectedItems: [{ type: Input }],
268
+ hideApplyButton: [{ type: Input }],
269
+ onChange: [{ type: Output }],
270
+ selectElement: [{ type: ViewChild, args: ["select", { static: false },] }],
271
+ popupContainer: [{ type: ViewChild, args: ["popupContainer", { static: false },] }]
272
+ };
273
+
274
+ class MultiSelectDropdownModule {
275
+ static forRoot() {
276
+ return { ngModule: MultiSelectDropdownModule, providers: [] };
277
+ }
278
+ }
279
+ MultiSelectDropdownModule.decorators = [
280
+ { type: NgModule, args: [{
281
+ declarations: [MultiSelectDropdownComponent],
282
+ imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule, ButtonModule],
283
+ exports: [MultiSelectDropdownComponent]
284
+ },] }
285
+ ];
286
+
287
+ /**
288
+ * Generated bundle index. Do not edit.
289
+ */
290
+
291
+ export { MultiSelectDropdownComponent, MultiSelectDropdownModule };
292
+ //# sourceMappingURL=mis-crystal-design-system-multi-select-dropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mis-crystal-design-system-multi-select-dropdown.js","sources":["../../../projects/mis-components/multi-select-dropdown/multi-select-dropdown.component.ts","../../../projects/mis-components/multi-select-dropdown/multi-select-dropdown.module.ts","../../../projects/mis-components/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.ts"],"sourcesContent":["import { Component, ElementRef, EventEmitter, Input, NgZone, OnInit, Output, TemplateRef, ViewChild, ViewContainerRef } from \"@angular/core\";\nimport { TemplatePortal } from \"@angular/cdk/portal\";\nimport { OverlayRef, Overlay, ConnectionPositionPair, OverlayConfig } from \"@angular/cdk/overlay\";\n@Component({\n selector: \"mis-multi-select-dropdown\",\n templateUrl: \"./multi-select-dropdown.component.html\",\n styleUrls: [\"./multi-select-dropdown.component.scss\"]\n})\nexport class MultiSelectDropdownComponent implements OnInit {\n searchInput: string = \"\";\n isOpen = false;\n localSelectedItems: MultiSelectDropdownItem[] = [];\n localData: MultiSelectDropdownItem[] = [];\n searchData: MultiSelectDropdownItem[] = [];\n isSearchInputFocused: boolean = false;\n SELECT_ALL_ENUM = \"SELECT_ALL_ENABLED\";\n @Input() set data(values: MultiSelectDropdownItem[]) {\n this.localData = values.map(item => {\n return { ...item, checked: false };\n });\n }\n @Input() label: string = \"Select\";\n @Input() height: string = \"\";\n @Input() width: string = \"\";\n @Input() dropdownListHeight: string = \"\";\n @Input() dropdownListWidth: string = \"\";\n @Input() dropdownListPosition: \"Left\" | \"Right\" = \"Left\";\n @Input() enableSelectAll: boolean = false;\n @Input() searchEnabled: boolean = true;\n @Input() showSelectedCount: boolean = false;\n @Input() noDataMessage: string = \"No Data\";\n @Input() options: OPTIONS = {\n sortLabels: true\n };\n @Input() set selectedItems(values: MultiSelectDropdownItem[]) {\n this.handlerSetLocalSelectedItems(values);\n }\n @Input() hideApplyButton: boolean = false;\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, private ngZone: NgZone) {}\n ngOnInit() {}\n\n handlerSetLocalSelectedItems(values) {\n this.localSelectedItems = values;\n this.localData = this.localData.map(item => {\n if (item.value === this.SELECT_ALL_ENUM && values.length === this.localData.length-1) {\n return { ...item, checked: true };\n }\n if (values.some(base => base.value === item.value)) {\n return { ...item, checked: true };\n } else {\n if(item.value !== this.SELECT_ALL_ENUM || !this.hideApplyButton){\n return { ...item, checked: false };\n }else{\n return item;\n }\n }\n });\n this.localData = this.formatValues(this.localData);\n }\n\n searchInputFocused(isFocused: boolean) {\n this.isSearchInputFocused = isFocused;\n }\n\n searchInputCanceled(event) {\n event.stopPropagation();\n this.searchInput = \"\";\n this.isSearchInputFocused = false;\n }\n\n toggleDropdown() {\n this.ngZone.run(() => {\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 }\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\n filterByValue(array: MultiSelectDropdownItem[], string: string) {\n return array.filter(o => o.label.toLowerCase().includes(string.toLowerCase()));\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\n formatValues(array: MultiSelectDropdownItem[]) {\n let sortedArray = array;\n if (this.options.sortLabels) {\n const checkedValues = array\n .filter(a => a.checked)\n .sort((a: MultiSelectDropdownItem, b: MultiSelectDropdownItem) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));\n const unCheckedValues = array\n .filter(a => !a.checked)\n .sort((a: MultiSelectDropdownItem, b: MultiSelectDropdownItem) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));\n sortedArray = [...checkedValues, ...unCheckedValues].filter(t => t.value !== this.SELECT_ALL_ENUM);\n }\n if (!sortedArray.some(option => option.value === this.SELECT_ALL_ENUM) && this.enableSelectAll && sortedArray.length > 0) {\n sortedArray.unshift({\n label: \"Select all\",\n value: this.SELECT_ALL_ENUM,\n checked: sortedArray.every(y => y.checked)\n });\n }\n return sortedArray;\n }\n\n toggleSelectedItems(event, item: MultiSelectDropdownItem) {\n event.stopPropagation();\n if (this.enableSelectAll && item.value === this.SELECT_ALL_ENUM) {\n this.localData = this.localData.map(t => ({\n ...t,\n checked: !item.checked\n }));\n if (this.hideApplyButton) {\n this.applyFilters();\n }\n return;\n }\n if (item.checked) {\n this.localData = [\n ...this.localData.map(a => {\n if (a.value === item.value || a.value === this.SELECT_ALL_ENUM) {\n return {\n ...a,\n checked: false\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 };\n }\n return a;\n })\n ];\n if (this.enableSelectAll && this.localData.filter(r => r.value !== this.SELECT_ALL_ENUM).every(t => t.checked)) {\n this.localData = [\n ...this.localData.map(a => {\n if (a.value === this.SELECT_ALL_ENUM) {\n return {\n ...a,\n checked: true\n };\n }\n return a;\n })\n ];\n }\n }\n if (this.searchEnabled) {\n this.searchInputOnChange(this.searchInput);\n }\n if (this.hideApplyButton) {\n this.applyFilters();\n }\n }\n\n applyFilters() {\n this.onChange.emit(\n this.localData\n .filter(a => {\n return a.checked && a.value !== this.SELECT_ALL_ENUM;\n })\n .map(item => {\n const { checked, ...data } = item;\n return data;\n })\n );\n if (!this.hideApplyButton) {\n this.onCancel();\n }\n }\n\n onReset() {\n this.isSearchInputFocused = false;\n this.onChange.emit([]);\n this.isOpen = false;\n this.searchInput = \"\";\n }\n\n onCancel() {\n this.isSearchInputFocused = false;\n this.localData = this.localData.map(a => {\n if (this.localSelectedItems.some(b => b.value === a.value && String(b.checked) !== String(a.checked))) {\n return a;\n } else {\n if(a.value !== this.SELECT_ALL_ENUM && this.hideApplyButton){\n return {\n ...a,\n checked: false\n };\n }\n return a;\n }\n });\n this.isOpen = false;\n this.searchInput = \"\";\n this.overlayRef?.detach();\n this.searchInput = \"\";\n }\n}\nexport interface MultiSelectDropdownItem {\n label: string;\n value: string;\n checked?: boolean;\n icon?: string;\n}\nexport interface OPTIONS {\n sortLabels: boolean;\n}\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { MultiSelectDropdownComponent } from \"./multi-select-dropdown.component\";\nimport { CheckboxModule } from \"mis-crystal-design-system/checkbox\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { ButtonModule } from \"mis-crystal-design-system/button\";\n\n@NgModule({\n declarations: [MultiSelectDropdownComponent],\n imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule, ButtonModule],\n exports: [MultiSelectDropdownComponent]\n})\nexport class MultiSelectDropdownModule {\n static forRoot(): ModuleWithProviders<MultiSelectDropdownModule> {\n return { ngModule: MultiSelectDropdown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