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
@@ -1,6 +1,5 @@
1
1
  /** @format */
2
2
  import { ElementRef, OnDestroy, OnInit } from "@angular/core";
3
- import * as i0 from "@angular/core";
4
3
  export declare type FabOptions = {
5
4
  backgroundColorClosed?: string;
6
5
  backgroundColorOpened?: string;
@@ -27,6 +26,4 @@ export declare class FabComponent implements OnInit, OnDestroy {
27
26
  clickItem(item: FabItem): void;
28
27
  closeFab(): void;
29
28
  toogleFab(): void;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<FabComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<FabComponent, "mis-fab", never, { "show": "show"; "options": "options"; "items": "items"; }, {}, never, never, false>;
32
29
  }
@@ -1,10 +1,4 @@
1
1
  import { ModuleWithProviders } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "./fab.component";
4
- import * as i2 from "@angular/common";
5
2
  export declare class FabModule {
6
3
  static forRoot(): ModuleWithProviders<FabModule>;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FabModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<FabModule, [typeof i1.FabComponent], [typeof i2.CommonModule], [typeof i1.FabComponent]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<FabModule>;
10
4
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
@@ -0,0 +1 @@
1
+ {"__symbolic":"module","version":4,"metadata":{"FabComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":21,"character":1},"arguments":[{"selector":"mis-fab","animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":26,"character":4},"arguments":["slideUpFab",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":27,"character":6},"arguments":[":enter",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":28,"character":8},"arguments":[{"transform":"translateY(50px)","opacity":0}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":29,"character":8},"arguments":["300ms ease-out",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":29,"character":34},"arguments":[{"transform":"translateY(0px)","opacity":1}]}]}]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":31,"character":6},"arguments":[":leave",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":31,"character":28},"arguments":["200ms ease-out",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":31,"character":54},"arguments":[{"transform":"translateY(70px)","opacity":0}]}]}]]}]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":33,"character":4},"arguments":["rotateButton",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state","line":34,"character":6},"arguments":["default",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":34,"character":23},"arguments":[{"transform":"rotate(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state","line":35,"character":6},"arguments":["rotated",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":35,"character":23},"arguments":[{"transform":"rotate(45deg)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":36,"character":6},"arguments":["rotated => default",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":36,"character":39},"arguments":["300ms ease-out"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":37,"character":6},"arguments":["default => rotated",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":37,"character":39},"arguments":["200ms ease-in"]}]}]]}],"template":"<div class=\"fab-wrapper\" *ngIf=\"show\">\n <div class=\"fab-items\" *ngIf=\"isOpen\" @slideUpFab>\n <div class=\"fab-item\" *ngFor=\"let item of items.reverse(); let i = index\" (click)=\"clickItem(item)\">\n <div *ngIf=\"item.label\" class=\"fab-tooltip\">\n {{ item.label }}\n </div>\n <div\n class=\"fab-button\"\n [ngStyle]=\"{\n backgroundColor: item.backgroundColor || '#0937B2'\n }\"\n >\n <img [src]=\"item.icon\" class=\"add-img\" />\n </div>\n </div>\n </div>\n <div\n class=\"fab-container\"\n [ngStyle]=\"{\n backgroundColor: isOpen ? options.backgroundColorOpened : options.backgroundColorClosed\n }\"\n (click)=\"toogleFab()\"\n >\n <svg\n [@rotateButton]=\"isOpen ? 'rotated' : 'default'\"\n class=\"add-img\"\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=\"M13.1424 5.15607C13.1424 4.51759 12.6313 4 12.0009 4C11.3704 4 10.8594 4.51759 10.8594 5.15607V10.8421H5.14149C4.51106 10.8421 4 11.3597 4 11.9982C4 12.6367 4.51106 13.1543 5.14149 13.1543H10.8594V18.8439C10.8594 19.4824 11.3704 20 12.0009 20C12.6313 20 13.1424 19.4824 13.1424 18.8439V13.1543H18.8585C19.4889 13.1543 20 12.6367 20 11.9982C20 11.3597 19.4889 10.8421 18.8585 10.8421H13.1424V5.15607Z\"\n fill=\"white\"\n />\n </svg>\n </div>\n</div>\n","styles":[".fab-wrapper{position:fixed;right:24px;bottom:24px;z-index:1000}.fab-wrapper .fab-item{position:relative;padding:0 0 16px 8px}.fab-wrapper .fab-item .fab-tooltip{position:absolute;background-color:#181f33;border-radius:4px;color:#fff;padding:8px;display:flex;justify-content:center;align-items:center;white-space:nowrap;right:100%;top:calc(50% - 8px);transform:translateY(-50%)}.fab-wrapper .fab-item .fab-button{width:40px;height:40px}.fab-wrapper .fab-container,.fab-wrapper .fab-item .fab-button{cursor:pointer;border-radius:50%;display:flex;justify-content:center;align-items:center}.fab-wrapper .fab-container{width:56px;height:56px}.add-img{height:24px;width:24px}"]}]}],"members":{"show":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":48,"character":28}]}],"clickout":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":50,"character":3},"arguments":["document:click",["$event"]]}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"clickItem":[{"__symbolic":"method"}],"closeFab":[{"__symbolic":"method"}],"toogleFab":[{"__symbolic":"method"}]}},"FabItem":{"__symbolic":"interface"},"FabItems":{"__symbolic":"interface"},"FabOptions":{"__symbolic":"interface"},"FabModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"FabComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":6,"character":12}],"exports":[{"__symbolic":"reference","name":"FabComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"FabModule"},"providers":[]}}}}},"origins":{"FabComponent":"./fab.component","FabItem":"./fab.component","FabItems":"./fab.component","FabOptions":"./fab.component","FabModule":"./fab.module"},"importAs":"mis-crystal-design-system/fab"}
@@ -0,0 +1,11 @@
1
+ {
2
+ "main": "../bundles/mis-crystal-design-system-fab.umd.js",
3
+ "module": "../fesm2015/mis-crystal-design-system-fab.js",
4
+ "es2015": "../fesm2015/mis-crystal-design-system-fab.js",
5
+ "esm2015": "../esm2015/fab/mis-crystal-design-system-fab.js",
6
+ "fesm2015": "../fesm2015/mis-crystal-design-system-fab.js",
7
+ "typings": "mis-crystal-design-system-fab.d.ts",
8
+ "metadata": "mis-crystal-design-system-fab.metadata.json",
9
+ "sideEffects": false,
10
+ "name": "mis-crystal-design-system/fab"
11
+ }
@@ -0,0 +1,183 @@
1
+ import { ConnectionPositionPair, OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';
2
+ import { TemplatePortal } from '@angular/cdk/portal';
3
+ import { EventEmitter, Component, ElementRef, ViewContainerRef, Input, Output, ViewChild, NgModule } from '@angular/core';
4
+ import { CommonModule } from '@angular/common';
5
+ import { FormsModule } from '@angular/forms';
6
+ import { CheckboxModule } from 'mis-crystal-design-system/checkbox';
7
+
8
+ class ActionListComponent {
9
+ constructor(eRef, overlay, viewContainerRef) {
10
+ this.eRef = eRef;
11
+ this.overlay = overlay;
12
+ this.viewContainerRef = viewContainerRef;
13
+ this.isOpen = false;
14
+ this.subItems = [];
15
+ this.data = [];
16
+ this.height = "";
17
+ this.width = "";
18
+ this.label = "Select";
19
+ this.dropdownListHeight = "";
20
+ this.dropdownListWidth = "";
21
+ this.dropdownListPosition = "Left";
22
+ this.searchEnabled = true;
23
+ this.noDataMessage = "No Data";
24
+ this.selectedItems = [];
25
+ this.onChange = new EventEmitter();
26
+ }
27
+ ngOnInit() {
28
+ var _a;
29
+ this.selectedItems = [];
30
+ this.data.forEach(q => q.children.forEach(w => {
31
+ if (w.checked)
32
+ this.selectedItems.push(w);
33
+ }));
34
+ this.label = ((_a = this.selectedItems[0]) === null || _a === void 0 ? void 0 : _a.label) || this.label;
35
+ }
36
+ filterByValue(array, string) {
37
+ return array.filter(o => o.label.toLowerCase().includes(string.toLowerCase()));
38
+ }
39
+ toggleDropdown() {
40
+ this.isOpen = !this.isOpen;
41
+ if (this.isOpen)
42
+ this.openDropdown(this.popupContainer, this.selectElement.nativeElement, false);
43
+ else
44
+ this.onCancel();
45
+ }
46
+ openDropdown(template, origin, openRight) {
47
+ const positionsBottom = [
48
+ new ConnectionPositionPair({ originX: "start", originY: "bottom" }, { overlayX: "start", overlayY: "top" }, 0, 4),
49
+ new ConnectionPositionPair({ originX: "end", originY: "bottom" }, { overlayX: "end", overlayY: "top" }, 0, 4)
50
+ ];
51
+ const positionsTop = [
52
+ new ConnectionPositionPair({ originX: "start", originY: "top" }, { overlayX: "start", overlayY: "bottom" }, 0, -4),
53
+ new ConnectionPositionPair({ originX: "end", originY: "top" }, { overlayX: "end", overlayY: "bottom" }, 0, -4)
54
+ ];
55
+ const positions = [
56
+ ...(this.dropdownListPosition === "Right" ? positionsBottom.reverse() : positionsBottom),
57
+ ...(this.dropdownListPosition === "Right" ? positionsTop.reverse() : positionsTop)
58
+ ];
59
+ const positionStrategy = this.overlay
60
+ .position()
61
+ .flexibleConnectedTo(origin)
62
+ .withPositions(openRight ? [new ConnectionPositionPair({ originX: "end", originY: "top" }, { overlayX: "start", overlayY: "top" }, 8)] : positions)
63
+ .withPush(true);
64
+ const configs = new OverlayConfig({
65
+ hasBackdrop: !openRight,
66
+ backdropClass: "cdk-overlay-transparent-backdrop",
67
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
68
+ positionStrategy,
69
+ width: origin.clientWidth || 140
70
+ });
71
+ if (openRight) {
72
+ this.subOverlayRef = this.overlay.create(configs);
73
+ if (this.dropdownListWidth)
74
+ this.subOverlayRef.updateSize({ width: this.dropdownListWidth });
75
+ if (this.dropdownListHeight)
76
+ this.subOverlayRef.updateSize({ height: this.dropdownListHeight });
77
+ this.subOverlayRef.attach(new TemplatePortal(template, this.viewContainerRef));
78
+ this.subOverlayRef.backdropClick().subscribe(() => {
79
+ this.onCancel();
80
+ });
81
+ return;
82
+ }
83
+ this.overlayRef = this.overlay.create(configs);
84
+ if (this.dropdownListWidth)
85
+ this.overlayRef.updateSize({ width: this.dropdownListWidth });
86
+ if (this.dropdownListHeight)
87
+ this.overlayRef.updateSize({ height: this.dropdownListHeight });
88
+ this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));
89
+ this.overlayRef.backdropClick().subscribe(() => {
90
+ this.onCancel();
91
+ });
92
+ }
93
+ selectItem(item) {
94
+ var _a, _b;
95
+ if (this.data.some(q => q.children.some(w => w.value === item.value && w.checked))) {
96
+ if (item.type === "MULTIPLE")
97
+ this.selectedItems = this.selectedItems.filter(q => q.value !== item.value);
98
+ this.data = this.data.map(q => {
99
+ var _a;
100
+ return (Object.assign(Object.assign({}, q), { children: (_a = q === null || q === void 0 ? void 0 : q.children) === null || _a === void 0 ? void 0 : _a.map(e => (Object.assign(Object.assign({}, e), { checked: e.checked && e.value !== item.value }))) }));
101
+ });
102
+ }
103
+ else {
104
+ this.data = this.data.map(q => {
105
+ var _a;
106
+ return (Object.assign(Object.assign({}, q), { children: (_a = q === null || q === void 0 ? void 0 : q.children) === null || _a === void 0 ? void 0 : _a.map(e => (Object.assign(Object.assign({}, e), { checked: (e.type === "MULTIPLE" && (e.checked || e.value === item.value)) || (e.type === "SINGLE" && e.value === item.value) }))) }));
107
+ });
108
+ if (item.type === "MULTIPLE")
109
+ this.selectedItems.push(Object.assign(Object.assign({}, item), { checked: true }));
110
+ }
111
+ this.label =
112
+ item.type === "MULTIPLE" ? (this.selectedItems.length > 0 ? (_a = this.selectedItems[0]) === null || _a === void 0 ? void 0 : _a.label : "Select") : item.checked ? "Select" : item.label;
113
+ this.subItems = ((_b = this.data.find(q => { var _a; return (_a = q.children) === null || _a === void 0 ? void 0 : _a.some(w => w.value === item.value); })) === null || _b === void 0 ? void 0 : _b.children) || [];
114
+ this.onChange.emit(this.data);
115
+ if (item.type === "SINGLE")
116
+ this.toggleDropdown();
117
+ }
118
+ onHover(item, isHovered, element) {
119
+ var _a, _b, _c;
120
+ if (isHovered) {
121
+ this.subItems.length > 0 && ((_a = this.subOverlayRef) === null || _a === void 0 ? void 0 : _a.detach());
122
+ this.subItems = ((_b = this.data.find(q => { var _a; return (_a = q === null || q === void 0 ? void 0 : q.children) === null || _a === void 0 ? void 0 : _a.some(w => (w === null || w === void 0 ? void 0 : w.parentValue) === (item === null || item === void 0 ? void 0 : item.value)); })) === null || _b === void 0 ? void 0 : _b.children) || [];
123
+ this.subItems.length > 0 && this.openDropdown(this.subPopupContainer, (element === null || element === void 0 ? void 0 : element.nativeElement) || element, true);
124
+ }
125
+ else {
126
+ this.subItems = [];
127
+ (_c = this.subOverlayRef) === null || _c === void 0 ? void 0 : _c.detach();
128
+ }
129
+ }
130
+ onCancel() {
131
+ var _a, _b;
132
+ this.isOpen = false;
133
+ (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
134
+ (_b = this.subOverlayRef) === null || _b === void 0 ? void 0 : _b.detach();
135
+ }
136
+ }
137
+ ActionListComponent.decorators = [
138
+ { type: Component, args: [{
139
+ selector: "mis-action-list",
140
+ template: "<div\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]=\"{ background: isOpen ? '#E6EBF7' : '' }\"\n >\n <div class=\"label\">\n <p class=\"text\">\n {{ label }}\n </p>\n <p *ngIf=\"selectedItems?.length > 1\" class=\"count\">+{{ selectedItems?.length - 1 }}</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\n<ng-template #popupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n >\n <div class=\"items\">\n <div\n #singleItem\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item?.disabled }\"\n (mouseenter)=\"onHover(item, true, singleItem)\"\n *ngFor=\"let item of data\"\n >\n <div class=\"label\" [ngStyle]=\"{ width: item?.icon ? '90%' : '100%' }\">\n <span>{{ item?.label }}</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 <div class=\"noData\" *ngIf=\"data.length === 0\">\n {{ noDataMessage || \"No results\" }}\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #subPopupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n >\n <div class=\"items\">\n <div\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item.disabled }\"\n (click)=\"!item.disabled && selectItem(item)\"\n *ngFor=\"let item of subItems\"\n >\n <div class=\"checkbox-container\" *ngIf=\"item.type === 'MULTIPLE'\">\n <mis-checkbox [disabled]=\"item.disabled\" [checked]=\"item.checked\"></mis-checkbox>\n </div>\n <div class=\"label\" [ngStyle]=\"{ width: item.icon ? '90%' : '100%' }\">\n <span>{{ item.label }}</span>\n </div>\n <div class=\"icon-container\" *ngIf=\"item.icon || item.checked\">\n <img *ngIf=\"!item.checked\" class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n <ng-container *ngIf=\"item.type === 'SINGLE' && item.checked\">\n <ng-container *ngTemplateOutlet=\"tickIcon\"></ng-container>\n </ng-container>\n </div>\n </div>\n <div class=\"noData\" *ngIf=\"data.length === 0\">\n {{ noDataMessage || \"No results\" }}\n </div>\n </div>\n </div>\n</ng-template>\n<ng-template #tickIcon>\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.47697 14.8237L3.49922 10.5519C3.2776 10.3169 3.2776 9.93437 3.49922 9.69684L4.30273 8.84298C4.52434 8.60795 4.88462 8.60795 5.10623 8.84298L7.87929 11.8334L14.0607 5.17627C14.2823 4.94124 14.6426 4.94124 14.8642 5.17627L15.6677 6.03138C15.8894 6.26641 15.8894 6.65021 15.6677 6.88399L8.28048 14.8237C8.05886 15.0588 7.69859 15.0588 7.47697 14.8237Z\"\n fill=\"#181F33\"\n />\n </svg>\n</ng-template>\n",
141
+ 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:4px 12px}.main-container .dropdown:focus-visible,.main-container .dropdown:hover{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)}.main-container .dropdown .label,.main-container .dropdown .label .text{font-style:normal;font-weight:400;font-size:16px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container .dropdown .label .text{margin:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.main-container .dropdown .label .count{width:24px;height:24px;background-color:#e0e0e0;border-radius:50%;padding:2px 4px;margin:0 0 0 8px;font-style:normal;font-weight:400;box-sizing:border-box;font-size:14px;line-height:20px;text-align:center;letter-spacing:.2px;color:#181f33}.main-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{justify-content:center;font-style:normal;font-weight:400;font-size:16px;line-height:20px}.popup-container .items .item,.popup-container .items .noData{display:flex;align-items:center;letter-spacing:.2px;color:#181f33}.popup-container .items .item{cursor:pointer;justify-content:flex-start;gap:10px;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 .label{width:100%;line-height:20px;font-size:16px;font-style:normal;font-weight:400;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 .items .item-disabled{cursor:not-allowed}.popup-container .items .item-disabled:focus-visible,.popup-container .items .item-disabled:hover{background-color:transparent;outline:none}.popup-container .items .item-disabled .label{color:#929dab;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}"]
142
+ },] }
143
+ ];
144
+ ActionListComponent.ctorParameters = () => [
145
+ { type: ElementRef },
146
+ { type: Overlay },
147
+ { type: ViewContainerRef }
148
+ ];
149
+ ActionListComponent.propDecorators = {
150
+ data: [{ type: Input }],
151
+ height: [{ type: Input }],
152
+ width: [{ type: Input }],
153
+ label: [{ type: Input }],
154
+ dropdownListHeight: [{ type: Input }],
155
+ dropdownListWidth: [{ type: Input }],
156
+ dropdownListPosition: [{ type: Input }],
157
+ searchEnabled: [{ type: Input }],
158
+ noDataMessage: [{ type: Input }],
159
+ onChange: [{ type: Output }],
160
+ selectElement: [{ type: ViewChild, args: ["select", { static: false },] }],
161
+ popupContainer: [{ type: ViewChild, args: ["popupContainer", { static: false },] }],
162
+ subPopupContainer: [{ type: ViewChild, args: ["subPopupContainer", { static: false },] }]
163
+ };
164
+
165
+ class ActionListModule {
166
+ static forRoot() {
167
+ return { ngModule: ActionListModule, providers: [] };
168
+ }
169
+ }
170
+ ActionListModule.decorators = [
171
+ { type: NgModule, args: [{
172
+ declarations: [ActionListComponent],
173
+ imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule],
174
+ exports: [ActionListComponent]
175
+ },] }
176
+ ];
177
+
178
+ /**
179
+ * Generated bundle index. Do not edit.
180
+ */
181
+
182
+ export { ActionListComponent, ActionListModule };
183
+ //# sourceMappingURL=mis-crystal-design-system-action-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mis-crystal-design-system-action-list.js","sources":["../../../projects/mis-components/action-list/action-list.component.ts","../../../projects/mis-components/action-list/action-list.module.ts","../../../projects/mis-components/action-list/mis-crystal-design-system-action-list.ts"],"sourcesContent":["import { ConnectionPositionPair, Overlay, OverlayConfig, OverlayRef } from \"@angular/cdk/overlay\";\nimport { TemplatePortal } from \"@angular/cdk/portal\";\nimport { Component, ElementRef, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild, ViewContainerRef } from \"@angular/core\";\n\n@Component({\n selector: \"mis-action-list\",\n templateUrl: \"./action-list.component.html\",\n styleUrls: [\"./action-list.component.scss\"]\n})\nexport class ActionListComponent implements OnInit {\n isOpen = false;\n\n subItems: ActionItem[] = [];\n\n @Input() data: ActionItems[] = [];\n @Input() height: string = \"\";\n @Input() width: string = \"\";\n @Input() label: string = \"Select\";\n\n @Input() dropdownListHeight: string = \"\";\n @Input() dropdownListWidth: string = \"\";\n @Input() dropdownListPosition: \"Left\" | \"Right\" = \"Left\";\n\n @Input() searchEnabled: boolean = true;\n @Input() noDataMessage: string = \"No Data\";\n selectedItems: ActionItem[] = [];\n\n @Output() onChange: EventEmitter<any> = new EventEmitter();\n\n @ViewChild(\"select\", { static: false }) selectElement: ElementRef;\n @ViewChild(\"popupContainer\", { static: false }) popupContainer: TemplateRef<Element>;\n @ViewChild(\"subPopupContainer\", { static: false }) subPopupContainer: TemplateRef<Element>;\n private overlayRef: OverlayRef;\n private subOverlayRef: OverlayRef;\n\n constructor(private eRef: ElementRef, private overlay: Overlay, private viewContainerRef: ViewContainerRef) {}\n ngOnInit() {\n this.selectedItems = [];\n this.data.forEach(q =>\n q.children.forEach(w => {\n if (w.checked) this.selectedItems.push(w);\n })\n );\n this.label = this.selectedItems[0]?.label || this.label;\n }\n\n filterByValue(array: ActionItem[], string: string) {\n return array.filter(o => o.label.toLowerCase().includes(string.toLowerCase()));\n }\n toggleDropdown() {\n this.isOpen = !this.isOpen;\n if (this.isOpen) this.openDropdown(this.popupContainer, this.selectElement.nativeElement, false);\n else this.onCancel();\n }\n private openDropdown(template: TemplateRef<Element>, origin: HTMLElement, openRight: boolean): 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 positions = [\n ...(this.dropdownListPosition === \"Right\" ? positionsBottom.reverse() : positionsBottom),\n ...(this.dropdownListPosition === \"Right\" ? positionsTop.reverse() : positionsTop)\n ];\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(origin)\n .withPositions(\n openRight ? [new ConnectionPositionPair({ originX: \"end\", originY: \"top\" }, { overlayX: \"start\", overlayY: \"top\" }, 8)] : positions\n )\n .withPush(true);\n const configs = new OverlayConfig({\n hasBackdrop: !openRight,\n backdropClass: \"cdk-overlay-transparent-backdrop\",\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy,\n width: origin.clientWidth || 140\n });\n if (openRight) {\n this.subOverlayRef = this.overlay.create(configs);\n if (this.dropdownListWidth) this.subOverlayRef.updateSize({ width: this.dropdownListWidth });\n if (this.dropdownListHeight) this.subOverlayRef.updateSize({ height: this.dropdownListHeight });\n this.subOverlayRef.attach(new TemplatePortal(template, this.viewContainerRef));\n this.subOverlayRef.backdropClick().subscribe(() => {\n this.onCancel();\n });\n return;\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(() => {\n this.onCancel();\n });\n }\n selectItem(item: ActionItem) {\n if (this.data.some(q => q.children.some(w => w.value === item.value && w.checked))) {\n if (item.type === \"MULTIPLE\") this.selectedItems = this.selectedItems.filter(q => q.value !== item.value);\n this.data = this.data.map(q => ({\n ...q,\n children: q?.children?.map(e => ({\n ...e,\n checked: e.checked && e.value !== item.value\n }))\n }));\n } else {\n this.data = this.data.map(q => ({\n ...q,\n children: q?.children?.map(e => ({\n ...e,\n checked: (e.type === \"MULTIPLE\" && (e.checked || e.value === item.value)) || (e.type === \"SINGLE\" && e.value === item.value)\n }))\n }));\n if (item.type === \"MULTIPLE\") this.selectedItems.push({ ...item, checked: true });\n }\n this.label =\n item.type === \"MULTIPLE\" ? (this.selectedItems.length > 0 ? this.selectedItems[0]?.label : \"Select\") : item.checked ? \"Select\" : item.label;\n this.subItems = this.data.find(q => q.children?.some(w => w.value === item.value))?.children || [];\n this.onChange.emit(this.data);\n if (item.type === \"SINGLE\") this.toggleDropdown();\n }\n onHover(item: ActionItem, isHovered, element?: any) {\n if (isHovered) {\n this.subItems.length > 0 && this.subOverlayRef?.detach();\n this.subItems = this.data.find(q => q?.children?.some(w => w?.parentValue === item?.value))?.children || [];\n this.subItems.length > 0 && this.openDropdown(this.subPopupContainer, element?.nativeElement || element, true);\n } else {\n this.subItems = [];\n this.subOverlayRef?.detach();\n }\n }\n onCancel() {\n this.isOpen = false;\n this.overlayRef?.detach();\n this.subOverlayRef?.detach();\n }\n}\n\nexport interface ActionItems {\n label: ActionItemLabel | string;\n value: string;\n icon?: string;\n disabled?: boolean;\n children?: ActionItem[];\n}\n\nexport interface ActionItemLabel {\n primaryText ?: string;\n secondaryText ?: string;\n}\n\nexport interface ActionItem {\n type: \"SINGLE\" | \"MULTIPLE\";\n label: string;\n value: string;\n parentValue: string;\n icon?: string;\n checked: boolean;\n disabled?: boolean;\n}\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { ActionListComponent } from \"./action-list.component\";\nimport { CheckboxModule } from \"mis-crystal-design-system/checkbox\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\n\n@NgModule({\n declarations: [ActionListComponent],\n imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule],\n exports: [ActionListComponent]\n})\nexport class ActionListModule {\n static forRoot(): ModuleWithProviders<ActionListModule> {\n return { ngModule: ActionListModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MASa,mBAAmB;IA0B9B,YAAoB,IAAgB,EAAU,OAAgB,EAAU,gBAAkC;QAAtF,SAAI,GAAJ,IAAI,CAAY;QAAU,YAAO,GAAP,OAAO,CAAS;QAAU,qBAAgB,GAAhB,gBAAgB,CAAkB;QAzB1G,WAAM,GAAG,KAAK,CAAC;QAEf,aAAQ,GAAiB,EAAE,CAAC;QAEnB,SAAI,GAAkB,EAAE,CAAC;QACzB,WAAM,GAAW,EAAE,CAAC;QACpB,UAAK,GAAW,EAAE,CAAC;QACnB,UAAK,GAAW,QAAQ,CAAC;QAEzB,uBAAkB,GAAW,EAAE,CAAC;QAChC,sBAAiB,GAAW,EAAE,CAAC;QAC/B,yBAAoB,GAAqB,MAAM,CAAC;QAEhD,kBAAa,GAAY,IAAI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nE,OAAO,EAAE,CAAC,mBAAmB,CAAC;aAC/B;;;ACXD;;;;;;"}
@@ -1,6 +1,5 @@
1
1
  import { DOCUMENT } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { Injectable, Inject, NgModule } from '@angular/core';
2
+ import { ɵɵdefineInjectable, ɵɵinject, Injectable, Inject, NgModule } from '@angular/core';
4
3
 
5
4
  class AnalyticsService {
6
5
  constructor(document) {
@@ -50,19 +49,15 @@ class AnalyticsService {
50
49
  gtag === null || gtag === void 0 ? void 0 : gtag("set", { user_id: identifier });
51
50
  }
52
51
  }
53
- AnalyticsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AnalyticsService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
54
- AnalyticsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AnalyticsService, providedIn: "root" });
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AnalyticsService, decorators: [{
56
- type: Injectable,
57
- args: [{
58
- providedIn: "root"
59
- }]
60
- }], ctorParameters: function () {
61
- return [{ type: undefined, decorators: [{
62
- type: Inject,
63
- args: [DOCUMENT]
64
- }] }];
65
- } });
52
+ AnalyticsService.ɵprov = ɵɵdefineInjectable({ factory: function AnalyticsService_Factory() { return new AnalyticsService(ɵɵinject(DOCUMENT)); }, token: AnalyticsService, providedIn: "root" });
53
+ AnalyticsService.decorators = [
54
+ { type: Injectable, args: [{
55
+ providedIn: "root"
56
+ },] }
57
+ ];
58
+ AnalyticsService.ctorParameters = () => [
59
+ { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
60
+ ];
66
61
 
67
62
  class AnalyticsModule {
68
63
  static forRoot() {
@@ -72,16 +67,13 @@ class AnalyticsModule {
72
67
  };
73
68
  }
74
69
  }
75
- AnalyticsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AnalyticsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
76
- AnalyticsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: AnalyticsModule });
77
- AnalyticsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AnalyticsModule });
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AnalyticsModule, decorators: [{
79
- type: NgModule
80
- }] });
70
+ AnalyticsModule.decorators = [
71
+ { type: NgModule }
72
+ ];
81
73
 
82
74
  /**
83
75
  * Generated bundle index. Do not edit.
84
76
  */
85
77
 
86
78
  export { AnalyticsModule, AnalyticsService };
87
- //# sourceMappingURL=mis-crystal-design-system-analytics.mjs.map
79
+ //# sourceMappingURL=mis-crystal-design-system-analytics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mis-crystal-design-system-analytics.js","sources":["../../../projects/mis-components/analytics/analytics.service.ts","../../../projects/mis-components/analytics/analytics.module.ts","../../../projects/mis-components/analytics/mis-crystal-design-system-analytics.ts"],"sourcesContent":["import { DOCUMENT } from \"@angular/common\";\nimport { Inject, Injectable, Renderer2 } from \"@angular/core\";\ndeclare const gtag: Function;\n\n@Injectable({\n providedIn: \"root\"\n})\nexport class AnalyticsService {\n private scriptLoaded = false;\n private pendingEvents: Array<Array<string>> = [];\n\n constructor(@Inject(DOCUMENT) private document: any) {}\n\n insertScript(measurementId: string, renderer: Renderer2): void {\n const loadScript = renderer.createElement(\"script\");\n loadScript.setAttribute(\"async\", true);\n loadScript.setAttribute(\"src\", `https://www.googletagmanager.com/gtag/js?id=${measurementId}`);\n\n const initScript = renderer.createElement(\"script\");\n initScript.innerText = `window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag(\\'js\\', new Date());gtag(\\'config\\', \\'${measurementId}\\');`;\n renderer.appendChild(this.document.head, loadScript);\n renderer.appendChild(this.document.head, initScript);\n this.handlePendingEvents(loadScript);\n }\n\n private handlePendingEvents(script: HTMLScriptElement): void {\n script.addEventListener(\"load\", () => {\n this.scriptLoaded = true;\n for (const eventDetails of this.pendingEvents) {\n if (eventDetails[0] === \"event\") {\n this.send(eventDetails[1], eventDetails[2], eventDetails[3], eventDetails[4]);\n } else if (eventDetails[0] === \"set\") {\n this.setIdentity(eventDetails[1]);\n }\n }\n });\n }\n\n send(eventAction: string, event_category: string, event_label?: string, event_value?: string, force = false): void {\n if (!this.scriptLoaded && !force) {\n this.pendingEvents.push([\"event\", eventAction, event_category, event_label, event_value]);\n return;\n }\n gtag?.(\"event\", eventAction, {\n event_category,\n event_label,\n event_value\n });\n }\n\n setIdentity(identifier: string): void {\n if (!this.scriptLoaded) {\n this.pendingEvents.push([\"set\", identifier]);\n return;\n }\n gtag?.(\"set\", { user_id: identifier });\n }\n}\n","import { ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { AnalyticsService } from \"./analytics.service\";\n\n@NgModule()\nexport class AnalyticsModule {\n static forRoot(): ModuleWithProviders<AnalyticsModule> {\n return {\n ngModule: AnalyticsModule,\n providers: [AnalyticsService]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,gBAAgB;IAI3B,YAAsC,QAAa;QAAb,aAAQ,GAAR,QAAQ,CAAK;QAH3C,iBAAY,GAAG,KAAK,CAAC;QACrB,kBAAa,GAAyB,EAAE,CAAC;KAEM;IAEvD,YAAY,CAAC,aAAqB,EAAE,QAAmB;QACrD,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACpD,UAAU,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACvC,UAAU,CAAC,YAAY,CAAC,KAAK,EAAE,+CAA+C,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AJ,IAAI,uBAAJ,IAAI,CAAG,OAAO,EAAE,WAAW,EAAE;YAC3B,cAAc;YACd,WAAW;YACX,WAAW;SACZ,EAAE;KACJ;IAED,WAAW,CAAC,UAAkB;QAC5B,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;YACtB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;YAC7C,OAAO;SACR;QACD,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAG,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE;KACxC;;;;YApDF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;4CAKc,MAAM,SAAC,QAAQ;;;MCNjB,eAAe;IAC1B,OAAO,OAAO;QACZ,OAAO;YACL,QAAQ,EAAE,eAAe;YACzB,SAAS,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;KACH;;;YAPF,QAAQ;;;ACJT;;;;;;"}
@@ -0,0 +1,242 @@
1
+ import { ConnectionPositionPair, OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';
2
+ import { TemplatePortal } from '@angular/cdk/portal';
3
+ import { EventEmitter, Component, ViewContainerRef, NgZone, Input, ViewChild, ContentChild, Output, NgModule } from '@angular/core';
4
+ import { FormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';
5
+ import { tap, debounceTime, distinctUntilChanged } from 'rxjs/operators';
6
+ import { CommonModule } from '@angular/common';
7
+ import { LoaderModule } from 'mis-crystal-design-system/loader';
8
+
9
+ class AsyncDropdownComponent {
10
+ constructor(overlay, viewContainerRef, _ngZone) {
11
+ this.overlay = overlay;
12
+ this.viewContainerRef = viewContainerRef;
13
+ this._ngZone = _ngZone;
14
+ this.size = 'md';
15
+ this.placeholder = "Select"; // placeholder for input
16
+ this.debounceTime = 400; // wait time till which API call is paused
17
+ this.minInputLength = 2; // min length after which API call is made
18
+ this.multi = false; // maintain a list or emit value
19
+ // tslint:disable-next-line
20
+ this.onSelect = new EventEmitter(true); // emit selected values
21
+ this.searchInput = new FormControl();
22
+ this.data = [];
23
+ this.opened = false;
24
+ this.loading = false;
25
+ this.error = false;
26
+ // tslint:disable-next-line
27
+ this.selections = new Map();
28
+ this.searchQueryChange = new EventEmitter();
29
+ this.clear = new EventEmitter(false);
30
+ this.itemSelected = new EventEmitter();
31
+ this.itemRemoved = new EventEmitter();
32
+ this.handleControlChanges = (values) => {
33
+ values.forEach(el => {
34
+ this.selectData(el, true);
35
+ });
36
+ // tslint:disable-next-line
37
+ };
38
+ }
39
+ ngOnInit() {
40
+ var _a, _b;
41
+ if (this.multi && !this.uniqueKey) {
42
+ throw new Error("[uniqueKey] required in multi mode.");
43
+ }
44
+ if (this.disabled) {
45
+ this.searchInput.disable();
46
+ }
47
+ this.searchSubscription = this.searchInput.valueChanges
48
+ .pipe(
49
+ // filter(val => val && val.length >= this.minInputLength),
50
+ tap((val) => this.searchQueryChange.emit(val)), debounceTime(this.debounceTime), distinctUntilChanged())
51
+ .subscribe(res => {
52
+ this._ngZone.run(() => {
53
+ var _a;
54
+ if ((res === null || res === void 0 ? void 0 : res.length) < this.minInputLength || !(res === null || res === void 0 ? void 0 : res.length)) {
55
+ this.closeDropdown();
56
+ return;
57
+ }
58
+ else if ((res === null || res === void 0 ? void 0 : res.length) > this.minInputLength && this.httpStream) {
59
+ this.loading = true;
60
+ this.error = false;
61
+ if (!((_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()))
62
+ this.openDropdown(this.dd, this.origin.nativeElement);
63
+ this.httpStream(res).subscribe(list => {
64
+ var _a;
65
+ this.loading = false;
66
+ this.data = list;
67
+ if (!((_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) && list.length > 0) {
68
+ this.openDropdown(this.dd, this.origin.nativeElement);
69
+ }
70
+ }, error => {
71
+ this.loading = false;
72
+ this.error = true;
73
+ });
74
+ }
75
+ });
76
+ });
77
+ if ((_a = this.control) === null || _a === void 0 ? void 0 : _a.value) {
78
+ this.handleControlChanges(this.control.value);
79
+ }
80
+ this.controlSubscription = (_b = this.control) === null || _b === void 0 ? void 0 : _b.valueChanges.subscribe(this.handleControlChanges);
81
+ }
82
+ ngOnChanges(changes) {
83
+ var _a;
84
+ if (changes && ((_a = changes === null || changes === void 0 ? void 0 : changes.searchValue) === null || _a === void 0 ? void 0 : _a.currentValue)) {
85
+ this.searchInput.patchValue(changes.searchValue.currentValue);
86
+ }
87
+ if (changes && changes.disabled) {
88
+ this.searchInput.enable();
89
+ if (this.disabled) {
90
+ this.searchInput.disable();
91
+ }
92
+ }
93
+ }
94
+ ngOnDestroy() {
95
+ var _a;
96
+ (_a = this.searchSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
97
+ }
98
+ openDropdown(template, origin) {
99
+ const positionStrategy = this.overlay
100
+ .position()
101
+ .flexibleConnectedTo(origin)
102
+ .withPositions([
103
+ new ConnectionPositionPair({ originX: "start", originY: "bottom" }, { overlayX: "start", overlayY: "top" }),
104
+ new ConnectionPositionPair({ originX: "start", originY: "top" }, { overlayX: "start", overlayY: "bottom" })
105
+ ])
106
+ .withPush(true);
107
+ const configs = new OverlayConfig({
108
+ hasBackdrop: true,
109
+ backdropClass: "cdk-overlay-transparent-backdrop",
110
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
111
+ positionStrategy,
112
+ width: origin.clientWidth
113
+ });
114
+ this.overlayRef = this.overlay.create(configs);
115
+ this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));
116
+ this.overlayRef.backdropClick().subscribe(res => {
117
+ this.closeDropdown();
118
+ });
119
+ }
120
+ /**
121
+ * closes the dropdown
122
+ */
123
+ closeDropdown() {
124
+ var _a;
125
+ this.opened = false;
126
+ (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
127
+ this.data = [];
128
+ }
129
+ /**
130
+ *
131
+ * @param item item to select
132
+ * if item property disabled is set to true, selection will be disabled
133
+ * @param effectedFromOutside set to true if calling from parent component, if true will focus on search input
134
+ */
135
+ selectData(item, effectedFromOutside = true) {
136
+ if (item.disabled) {
137
+ return;
138
+ }
139
+ this.itemSelected.emit(item);
140
+ if (!this.multi) {
141
+ this.searchInput.patchValue(item[this.displayKey], { emitEvent: false });
142
+ this.setControlValue(item);
143
+ }
144
+ else {
145
+ if (!this.selections.has(item[this.uniqueKey])) {
146
+ this.selections.set(item[this.uniqueKey], item);
147
+ }
148
+ this.setControlValue(this.selectedItems);
149
+ if (!effectedFromOutside) {
150
+ setTimeout(() => {
151
+ this.input.nativeElement.focus();
152
+ this.input.nativeElement.scrollIntoView();
153
+ }, 10);
154
+ }
155
+ this.searchInput.patchValue("");
156
+ this.data = [];
157
+ }
158
+ this.closeDropdown();
159
+ }
160
+ /**
161
+ *
162
+ * @param item remove item from selected list
163
+ */
164
+ removeItem(item) {
165
+ this.itemRemoved.emit(item);
166
+ this.selections.delete(item[this.uniqueKey]);
167
+ this.setControlValue(this.selectedItems);
168
+ // tslint:disable-next-line
169
+ this.input["nativeElement"].focus();
170
+ }
171
+ setControlValue(value) {
172
+ var _a;
173
+ this.onSelect.emit(value);
174
+ (_a = this.control) === null || _a === void 0 ? void 0 : _a.patchValue(value, { emitEvent: false });
175
+ }
176
+ /**
177
+ * @returns list of selected items
178
+ */
179
+ get selectedItems() {
180
+ return Array.from(this.selections.values());
181
+ }
182
+ removeInputValue() {
183
+ this.searchInput.reset();
184
+ this.data = [];
185
+ this.clear.emit(true);
186
+ }
187
+ }
188
+ AsyncDropdownComponent.decorators = [
189
+ { type: Component, args: [{
190
+ selector: "mis-async-search-dropdown",
191
+ template: "<div class=\"dd-wrapper\" [ngClass]=\"{ opened: opened, disabled: disabled, readonly: readonly }\" #ddBtn>\n <div class=\"selected-list\" *ngIf=\"multi && selections.size > 0\">\n <div class=\"chip\" [ngClass]=\"{'chip-md': size === 'md', 'chip-sm': size === 'sm'}\" *ngFor=\"let item of selectedItems\">\n <span [ngClass]=\"{'h6': size === 'md', 'h8-b': size === 'sm'}\" style=\"margin-right: 4px;\">{{item[displayKey]}}</span>\n <span style=\"cursor: pointer;\" (click)=\"removeItem(item)\" [ngStyle]=\"{'font-size': size === 'sm' ? '12px': '14px'}\" class=\"ic-navigation-cancel-24\"></span>\n </div>\n </div>\n <div class=\"search-input\">\n <span class=\"ic-action-search-24\"></span>\n <input [ngClass]=\"{'ip-md': size === 'md', 'ip-sm': size === 'sm'}\" tabindex=\"0\" type=\"text\" class=\"black-text h6\" #input [placeholder]=\"placeholder\" [formControl]=\"searchInput\" />\n <div class=\"ic-navigation-cancel-24 croos-icon\" *ngIf=\"searchInput?.value?.length\" (click)=\"removeInputValue()\"></div>\n </div>\n</div>\n\n<ng-template #dd>\n <div class=\"dd-list\" [ngStyle]=\"{'max-height':height}\" [ngClass]=\"{'dd-list-pd':data.length === 0}\" >\n <ng-container *ngIf=\"loading\">\n <ng-container\n *ngIf=\"customLoader; else defaultLoader\"\n [ngTemplateOutlet]=\"customLoader\"\n ></ng-container>\n <ng-template #defaultLoader>\n <div class=\"status-container\" *ngIf=\"loading && !customLoader\">\n <mis-loader [mobileView]=\"true\"></mis-loader>\n </div>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"error\">\n <div class=\"status-container\">\n <p>Unknown error has occurred, <br> Please try again later.</p>\n </div>\n </ng-container>\n <div *ngIf=\"!loading && !error && data.length > 0\">\n <ng-container *ngFor=\"let item of data\">\n <div (click)=\"selectData(item, false)\">\n <ng-container\n *ngIf=\"customItem; else standardItem\"\n [ngTemplateOutlet]=\"customItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-container>\n <ng-template #standardItem>\n <div class=\"item\">\n <div class=\"value\">\n <div class=\"primary\">\n {{ item[displayKey] }}\n </div>\n <div class=\"secondary\">\n {{ item[secondaryDisplayKey] }}\n </div>\n </div>\n </div>\n </ng-template>\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"!loading && !error && data.length === 0 && searchInput.value\">\n <div class=\"data-not-found\">No Data Available</div>\n </div>\n </div>\n</ng-template>\n",
192
+ styles: [".dd-wrapper{background:#fff;border:1px solid #e0e0e0;box-sizing:border-box;border-radius:4px;display:block;cursor:pointer;outline:none}.dd-wrapper.opened,.dd-wrapper:hover{background:#f5f5f5}.dd-wrapper .selected-list{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:4px;padding:8px 16px}.dd-wrapper:focus-within{border-color:#0937b2;background:#f5f5f5}.dd-wrapper.disabled,.dd-wrapper.readonly{pointer-events:none}.search-input{position:relative;border-radius:8px}.search-input input{box-sizing:border-box;outline:none;padding-left:40px;padding-right:24px;background-color:transparent;color:#181f33;border-radius:inherit;border:1px solid transparent;width:100%}.search-input span{font-size:24px;line-height:24px;height:24px;left:8px;padding-top:2px}.search-input .croos-icon,.search-input span{position:absolute;top:50%;transform:translateY(-50%)}.search-input .croos-icon{font-size:16px;width:24px;line-height:16px;height:16px;right:0}.dd-list{padding:8px 0;max-height:200px;background:#fff;box-shadow:0 12px 24px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.12);border-radius:8px;min-width:100%;overflow-y:auto}.dd-list::-webkit-scrollbar{width:8px;border-radius:4px}.dd-list::-webkit-scrollbar-track{background:#fff;border-radius:4px}.dd-list::-webkit-scrollbar-thumb{background:#929dab;border-radius:4px}.dd-list::-webkit-scrollbar-thumb:hover{background:#929dab}.dd-list .item{padding:8px 16px;cursor:pointer}.dd-list .item .disabled{color:#6a737d!important;pointer-events:none}.dd-list .item .value{display:flex;justify-content:space-between;align-items:center}.dd-list .item .value .primary,.dd-list .item .value .secondary{font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.dd-list .item .reason{font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#6a737d}.dd-list .item:hover:not(.disabled){background:#f5f7fc}.dd-list .data-not-found{display:flex;justify-content:center;align-items:center;font-size:16px;padding:8px}.dd-list-pd{padding:unset}.chip{display:inline-flex;align-items:center;background:#e0e0e0;cursor:default}.chip span{color:#181f33}.chip-md{border-radius:16px;padding:4px 12px}.chip-sm{border-radius:6px;padding:4px 8px;text-transform:uppercase}.ip-md{padding-top:8px;padding-bottom:8px}.ip-sm{padding-top:3px;padding-bottom:3px}.status-container{display:flex;justify-content:center;align-items:center;height:128px}.status-container p{text-align:center}::ng-deep #spinner{position:relative!important}"]
193
+ },] }
194
+ ];
195
+ AsyncDropdownComponent.ctorParameters = () => [
196
+ { type: Overlay },
197
+ { type: ViewContainerRef },
198
+ { type: NgZone }
199
+ ];
200
+ AsyncDropdownComponent.propDecorators = {
201
+ height: [{ type: Input }],
202
+ size: [{ type: Input }],
203
+ httpStream: [{ type: Input }],
204
+ displayKey: [{ type: Input }],
205
+ secondaryDisplayKey: [{ type: Input }],
206
+ placeholder: [{ type: Input }],
207
+ debounceTime: [{ type: Input }],
208
+ minInputLength: [{ type: Input }],
209
+ multi: [{ type: Input }],
210
+ uniqueKey: [{ type: Input }],
211
+ control: [{ type: Input }],
212
+ disabled: [{ type: Input }],
213
+ readonly: [{ type: Input }],
214
+ origin: [{ type: ViewChild, args: ["ddBtn", { static: false },] }],
215
+ input: [{ type: ViewChild, args: ["input", { static: false },] }],
216
+ dd: [{ type: ViewChild, args: ["dd", { static: false },] }],
217
+ customItem: [{ type: ContentChild, args: ["misCustomItem", { static: false },] }],
218
+ customLoader: [{ type: ContentChild, args: ["asyncCustomLoader", { static: false },] }],
219
+ onSelect: [{ type: Output }],
220
+ searchValue: [{ type: Input }],
221
+ searchQueryChange: [{ type: Output }],
222
+ clear: [{ type: Output }],
223
+ itemSelected: [{ type: Output }],
224
+ itemRemoved: [{ type: Output }]
225
+ };
226
+
227
+ class AsyncDropdownModule {
228
+ }
229
+ AsyncDropdownModule.decorators = [
230
+ { type: NgModule, args: [{
231
+ declarations: [AsyncDropdownComponent],
232
+ imports: [CommonModule, OverlayModule, ReactiveFormsModule, FormsModule, LoaderModule],
233
+ exports: [AsyncDropdownComponent]
234
+ },] }
235
+ ];
236
+
237
+ /**
238
+ * Generated bundle index. Do not edit.
239
+ */
240
+
241
+ export { AsyncDropdownComponent, AsyncDropdownModule };
242
+ //# sourceMappingURL=mis-crystal-design-system-async-search-dropdown.js.map