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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (675) hide show
  1. package/action-list/action-list.component.d.ts +0 -3
  2. package/action-list/action-list.module.d.ts +0 -9
  3. package/action-list/mis-crystal-design-system-action-list.d.ts +4 -0
  4. package/action-list/mis-crystal-design-system-action-list.metadata.json +1 -0
  5. package/action-list/package.json +11 -0
  6. package/analytics/analytics.module.d.ts +0 -4
  7. package/analytics/analytics.service.d.ts +0 -3
  8. package/analytics/mis-crystal-design-system-analytics.d.ts +4 -0
  9. package/analytics/mis-crystal-design-system-analytics.metadata.json +1 -0
  10. package/analytics/package.json +11 -0
  11. package/async-search-dropdown/async-dropdown.component.d.ts +2 -5
  12. package/async-search-dropdown/async-dropdown.module.d.ts +0 -9
  13. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.d.ts +4 -0
  14. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.metadata.json +1 -0
  15. package/async-search-dropdown/package.json +11 -0
  16. package/bundles/mis-crystal-design-system-action-list.umd.js +508 -0
  17. package/bundles/mis-crystal-design-system-action-list.umd.js.map +1 -0
  18. package/bundles/mis-crystal-design-system-action-list.umd.min.js +16 -0
  19. package/bundles/mis-crystal-design-system-action-list.umd.min.js.map +1 -0
  20. package/bundles/mis-crystal-design-system-analytics.umd.js +422 -0
  21. package/bundles/mis-crystal-design-system-analytics.umd.js.map +1 -0
  22. package/bundles/mis-crystal-design-system-analytics.umd.min.js +16 -0
  23. package/bundles/mis-crystal-design-system-analytics.umd.min.js.map +1 -0
  24. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js +258 -0
  25. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js.map +1 -0
  26. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js +2 -0
  27. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js.map +1 -0
  28. package/bundles/mis-crystal-design-system-button.umd.js +134 -0
  29. package/bundles/mis-crystal-design-system-button.umd.js.map +1 -0
  30. package/bundles/mis-crystal-design-system-button.umd.min.js +2 -0
  31. package/bundles/mis-crystal-design-system-button.umd.min.js.map +1 -0
  32. package/bundles/mis-crystal-design-system-checkbox.umd.js +127 -0
  33. package/bundles/mis-crystal-design-system-checkbox.umd.js.map +1 -0
  34. package/bundles/mis-crystal-design-system-checkbox.umd.min.js +2 -0
  35. package/bundles/mis-crystal-design-system-checkbox.umd.min.js.map +1 -0
  36. package/bundles/mis-crystal-design-system-chip.umd.js +64 -0
  37. package/bundles/mis-crystal-design-system-chip.umd.js.map +1 -0
  38. package/bundles/mis-crystal-design-system-chip.umd.min.js +2 -0
  39. package/bundles/mis-crystal-design-system-chip.umd.min.js.map +1 -0
  40. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js +688 -0
  41. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js.map +1 -0
  42. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js +16 -0
  43. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js.map +1 -0
  44. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js +740 -0
  45. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js.map +1 -0
  46. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js +16 -0
  47. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js.map +1 -0
  48. package/bundles/mis-crystal-design-system-drawer.umd.js +169 -0
  49. package/bundles/mis-crystal-design-system-drawer.umd.js.map +1 -0
  50. package/bundles/mis-crystal-design-system-drawer.umd.min.js +2 -0
  51. package/bundles/mis-crystal-design-system-drawer.umd.min.js.map +1 -0
  52. package/bundles/mis-crystal-design-system-dropdown.umd.js +493 -0
  53. package/bundles/mis-crystal-design-system-dropdown.umd.js.map +1 -0
  54. package/bundles/mis-crystal-design-system-dropdown.umd.min.js +16 -0
  55. package/bundles/mis-crystal-design-system-dropdown.umd.min.js.map +1 -0
  56. package/bundles/mis-crystal-design-system-fab.umd.js +95 -0
  57. package/bundles/mis-crystal-design-system-fab.umd.js.map +1 -0
  58. package/bundles/mis-crystal-design-system-fab.umd.min.js +2 -0
  59. package/bundles/mis-crystal-design-system-fab.umd.min.js.map +1 -0
  60. package/bundles/mis-crystal-design-system-input.umd.js +114 -0
  61. package/bundles/mis-crystal-design-system-input.umd.js.map +1 -0
  62. package/bundles/mis-crystal-design-system-input.umd.min.js +2 -0
  63. package/bundles/mis-crystal-design-system-input.umd.min.js.map +1 -0
  64. package/bundles/mis-crystal-design-system-loader.umd.js +53 -0
  65. package/bundles/mis-crystal-design-system-loader.umd.js.map +1 -0
  66. package/bundles/mis-crystal-design-system-loader.umd.min.js +2 -0
  67. package/bundles/mis-crystal-design-system-loader.umd.min.js.map +1 -0
  68. package/bundles/mis-crystal-design-system-menu.umd.js +119 -0
  69. package/bundles/mis-crystal-design-system-menu.umd.js.map +1 -0
  70. package/bundles/mis-crystal-design-system-menu.umd.min.js +2 -0
  71. package/bundles/mis-crystal-design-system-menu.umd.min.js.map +1 -0
  72. package/bundles/mis-crystal-design-system-modal.umd.js +161 -0
  73. package/bundles/mis-crystal-design-system-modal.umd.js.map +1 -0
  74. package/bundles/mis-crystal-design-system-modal.umd.min.js +2 -0
  75. package/bundles/mis-crystal-design-system-modal.umd.min.js.map +1 -0
  76. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js +622 -0
  77. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js.map +1 -0
  78. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js +16 -0
  79. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js.map +1 -0
  80. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js +636 -0
  81. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js.map +1 -0
  82. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js +16 -0
  83. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js.map +1 -0
  84. package/bundles/mis-crystal-design-system-phone-input.umd.js +68 -0
  85. package/bundles/mis-crystal-design-system-phone-input.umd.js.map +1 -0
  86. package/bundles/mis-crystal-design-system-phone-input.umd.min.js +2 -0
  87. package/bundles/mis-crystal-design-system-phone-input.umd.min.js.map +1 -0
  88. package/bundles/mis-crystal-design-system-radio-button.umd.js +77 -0
  89. package/bundles/mis-crystal-design-system-radio-button.umd.js.map +1 -0
  90. package/bundles/mis-crystal-design-system-radio-button.umd.min.js +2 -0
  91. package/bundles/mis-crystal-design-system-radio-button.umd.min.js.map +1 -0
  92. package/bundles/mis-crystal-design-system-ske-loader.umd.js +65 -0
  93. package/bundles/mis-crystal-design-system-ske-loader.umd.js.map +1 -0
  94. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js +2 -0
  95. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js.map +1 -0
  96. package/bundles/mis-crystal-design-system-styles.umd.js +11 -0
  97. package/bundles/mis-crystal-design-system-styles.umd.js.map +1 -0
  98. package/bundles/mis-crystal-design-system-styles.umd.min.js +2 -0
  99. package/bundles/mis-crystal-design-system-styles.umd.min.js.map +1 -0
  100. package/bundles/mis-crystal-design-system-switch.umd.js +79 -0
  101. package/bundles/mis-crystal-design-system-switch.umd.js.map +1 -0
  102. package/bundles/mis-crystal-design-system-switch.umd.min.js +2 -0
  103. package/bundles/mis-crystal-design-system-switch.umd.min.js.map +1 -0
  104. package/bundles/mis-crystal-design-system-table.umd.js +783 -0
  105. package/bundles/mis-crystal-design-system-table.umd.js.map +1 -0
  106. package/bundles/mis-crystal-design-system-table.umd.min.js +16 -0
  107. package/bundles/mis-crystal-design-system-table.umd.min.js.map +1 -0
  108. package/bundles/mis-crystal-design-system-toast.umd.js +202 -0
  109. package/bundles/mis-crystal-design-system-toast.umd.js.map +1 -0
  110. package/bundles/mis-crystal-design-system-toast.umd.min.js +2 -0
  111. package/bundles/mis-crystal-design-system-toast.umd.min.js.map +1 -0
  112. package/bundles/mis-crystal-design-system-tooltip.umd.js +194 -0
  113. package/bundles/mis-crystal-design-system-tooltip.umd.js.map +1 -0
  114. package/bundles/mis-crystal-design-system-tooltip.umd.min.js +2 -0
  115. package/bundles/mis-crystal-design-system-tooltip.umd.min.js.map +1 -0
  116. package/bundles/mis-crystal-design-system-utils.umd.js +33 -0
  117. package/bundles/mis-crystal-design-system-utils.umd.js.map +1 -0
  118. package/bundles/mis-crystal-design-system-utils.umd.min.js +2 -0
  119. package/bundles/mis-crystal-design-system-utils.umd.min.js.map +1 -0
  120. package/bundles/mis-crystal-design-system-virtual-scroll.umd.js +472 -0
  121. package/bundles/mis-crystal-design-system-virtual-scroll.umd.js.map +1 -0
  122. package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js +16 -0
  123. package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js.map +1 -0
  124. package/bundles/mis-crystal-design-system-widgets.umd.js +478 -0
  125. package/bundles/mis-crystal-design-system-widgets.umd.js.map +1 -0
  126. package/bundles/mis-crystal-design-system-widgets.umd.min.js +16 -0
  127. package/bundles/mis-crystal-design-system-widgets.umd.min.js.map +1 -0
  128. package/bundles/mis-crystal-design-system.umd.js +31 -0
  129. package/bundles/mis-crystal-design-system.umd.js.map +1 -0
  130. package/bundles/mis-crystal-design-system.umd.min.js +2 -0
  131. package/bundles/mis-crystal-design-system.umd.min.js.map +1 -0
  132. package/button/button.component.d.ts +0 -3
  133. package/button/button.directive.d.ts +0 -3
  134. package/button/button.module.d.ts +0 -7
  135. package/button/mis-crystal-design-system-button.d.ts +4 -0
  136. package/button/mis-crystal-design-system-button.metadata.json +1 -0
  137. package/button/package.json +11 -0
  138. package/checkbox/checkbox.component.d.ts +0 -3
  139. package/checkbox/checkbox.module.d.ts +0 -7
  140. package/checkbox/mis-crystal-design-system-checkbox.d.ts +4 -0
  141. package/checkbox/mis-crystal-design-system-checkbox.metadata.json +1 -0
  142. package/checkbox/package.json +11 -0
  143. package/chip/chip.component.d.ts +0 -3
  144. package/chip/chip.module.d.ts +0 -6
  145. package/chip/mis-crystal-design-system-chip.d.ts +4 -0
  146. package/chip/mis-crystal-design-system-chip.metadata.json +1 -0
  147. package/chip/package.json +11 -0
  148. package/datepicker_v2/datepicker.module.d.ts +0 -10
  149. package/datepicker_v2/mis-crystal-design-system-datepicker_v2.d.ts +7 -0
  150. package/datepicker_v2/mis-crystal-design-system-datepicker_v2.metadata.json +1 -0
  151. package/datepicker_v2/package.json +11 -0
  152. package/datepicker_v2/public_api.d.ts +0 -1
  153. package/datepicker_v2/tz-datepicker.directive.d.ts +0 -3
  154. package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +0 -3
  155. package/daterangepicker_v2/daterangepicker.module.d.ts +0 -10
  156. package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.d.ts +7 -0
  157. package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.metadata.json +1 -0
  158. package/daterangepicker_v2/package.json +11 -0
  159. package/daterangepicker_v2/public_api.d.ts +0 -1
  160. package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +0 -3
  161. package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +0 -3
  162. package/drawer/drawer-body/drawer-body.component.d.ts +1 -3
  163. package/drawer/drawer.module.d.ts +0 -8
  164. package/drawer/drawer.service.d.ts +0 -3
  165. package/drawer/mis-crystal-design-system-drawer.d.ts +5 -0
  166. package/drawer/mis-crystal-design-system-drawer.metadata.json +1 -0
  167. package/drawer/package.json +11 -0
  168. package/dropdown/dropdown.component.d.ts +3 -3
  169. package/dropdown/dropdown.module.d.ts +0 -9
  170. package/dropdown/mis-crystal-design-system-dropdown.d.ts +4 -0
  171. package/dropdown/mis-crystal-design-system-dropdown.metadata.json +1 -0
  172. package/dropdown/package.json +11 -0
  173. package/esm2015/action-list/action-list.component.js +160 -0
  174. package/esm2015/action-list/action-list.module.js +19 -0
  175. package/esm2015/analytics/analytics.module.js +14 -0
  176. package/esm2015/analytics/analytics.service.js +62 -0
  177. package/esm2015/async-search-dropdown/async-dropdown.component.js +223 -0
  178. package/esm2015/async-search-dropdown/async-dropdown.module.js +16 -0
  179. package/esm2015/button/button.component.js +43 -0
  180. package/esm2015/button/button.directive.js +57 -0
  181. package/esm2015/button/button.module.js +17 -0
  182. package/esm2015/checkbox/checkbox.component.js +79 -0
  183. package/esm2015/checkbox/checkbox.module.js +17 -0
  184. package/esm2015/chip/chip.component.js +31 -0
  185. package/esm2015/chip/chip.module.js +16 -0
  186. package/esm2015/datepicker_v2/datepicker.module.js +18 -0
  187. package/esm2015/datepicker_v2/mis-crystal-design-system-datepicker_v2.js +7 -0
  188. package/esm2015/datepicker_v2/public_api.js +3 -0
  189. package/esm2015/datepicker_v2/tz-datepicker.directive.js +126 -0
  190. package/esm2015/datepicker_v2/tz-dp-container/tz-dp-container.component.js +149 -0
  191. package/esm2015/daterangepicker_v2/daterangepicker.module.js +18 -0
  192. package/esm2015/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.js +7 -0
  193. package/esm2015/daterangepicker_v2/public_api.js +3 -0
  194. package/esm2015/daterangepicker_v2/tz-daterangepicker.directive.js +123 -0
  195. package/esm2015/daterangepicker_v2/tz-drp-container/tz-drp-container.component.js +205 -0
  196. package/esm2015/drawer/drawer-body/drawer-body.component.js +41 -0
  197. package/esm2015/drawer/drawer.module.js +28 -0
  198. package/{esm2020/drawer/drawer.service.mjs → esm2015/drawer/drawer.service.js} +15 -12
  199. package/esm2015/drawer/mis-crystal-design-system-drawer.js +6 -0
  200. package/esm2015/dropdown/dropdown.component.js +145 -0
  201. package/esm2015/dropdown/dropdown.module.js +20 -0
  202. package/esm2015/fab/fab.component.js +63 -0
  203. package/esm2015/fab/fab.module.js +16 -0
  204. package/esm2015/input/directives/input/input.directive.js +38 -0
  205. package/esm2015/input/mis-input.component.js +43 -0
  206. package/esm2015/input/mis-input.module.js +15 -0
  207. package/esm2015/loader/loader.component.js +20 -0
  208. package/esm2015/loader/loader.module.js +16 -0
  209. package/esm2015/menu/menu-close.directive.js +18 -0
  210. package/esm2015/menu/menu.directive.js +70 -0
  211. package/esm2015/menu/menu.module.js +17 -0
  212. package/esm2015/modal/mis-crystal-design-system-modal.js +6 -0
  213. package/esm2015/modal/modal.module.js +28 -0
  214. package/esm2015/modal/modal.service.js +72 -0
  215. package/esm2015/modal/module-wrapper/module-wrapper.component.js +33 -0
  216. package/esm2015/multi-select-dropdown/multi-select-dropdown.component.js +268 -0
  217. package/esm2015/multi-select-dropdown/multi-select-dropdown.module.js +20 -0
  218. package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.component.js +265 -0
  219. package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.module.js +20 -0
  220. package/esm2015/phone-input/index.js +2 -0
  221. package/esm2015/phone-input/mis-crystal-design-system-phone-input.js +5 -0
  222. package/esm2015/phone-input/phone-input.component.js +36 -0
  223. package/esm2015/phone-input/phone-input.module.js +21 -0
  224. package/esm2015/phone-input/public_api.js +3 -0
  225. package/esm2015/radio-button/radio-button.component.js +45 -0
  226. package/esm2015/radio-button/radio-button.module.js +17 -0
  227. package/esm2015/ske-loader/ske-loader.component.js +31 -0
  228. package/esm2015/ske-loader/ske-loader.module.js +13 -0
  229. package/esm2015/switch/switch.component.js +39 -0
  230. package/esm2015/switch/switch.module.js +17 -0
  231. package/esm2015/table/custom-table-cell.directive.js +42 -0
  232. package/esm2015/table/filter/filter.component.js +75 -0
  233. package/esm2015/table/mis-crystal-design-system-table.js +6 -0
  234. package/esm2015/table/public_api.js +5 -0
  235. package/esm2015/table/sub-table/sub-table.component.js +69 -0
  236. package/esm2015/table/table.component.js +199 -0
  237. package/esm2015/table/table.module.js +21 -0
  238. package/{esm2020/toast/mis-crystal-design-system-toast.mjs → esm2015/toast/mis-crystal-design-system-toast.js} +2 -1
  239. package/esm2015/toast/toast.component.js +28 -0
  240. package/esm2015/toast/toast.data.service.js +29 -0
  241. package/esm2015/toast/toast.module.js +28 -0
  242. package/esm2015/toast/toast.service.js +96 -0
  243. package/esm2015/tooltip/tooltip-container/tooltip.component.js +34 -0
  244. package/esm2015/tooltip/tooltip.directive.js +117 -0
  245. package/esm2015/tooltip/tooltip.module.js +19 -0
  246. package/esm2015/virtual-scroll/index.js +2 -0
  247. package/esm2015/virtual-scroll/mis-crystal-design-system-virtual-scroll.js +5 -0
  248. package/esm2015/virtual-scroll/public_api.js +4 -0
  249. package/esm2015/virtual-scroll/virtual-scroll.component.js +112 -0
  250. package/esm2015/virtual-scroll/virtual-scroll.constants.js +2 -0
  251. package/esm2015/virtual-scroll/virtual-scroll.module.js +24 -0
  252. package/{esm2020/widgets/classes/base-widget.mjs → esm2015/widgets/classes/base-widget.js} +2 -2
  253. package/esm2015/widgets/classes/widget-group.js +32 -0
  254. package/esm2015/widgets/services/widget.service.js +16 -0
  255. package/esm2015/widgets/widgets.module.js +12 -0
  256. package/fab/fab.component.d.ts +0 -3
  257. package/fab/fab.module.d.ts +0 -6
  258. package/fab/mis-crystal-design-system-fab.d.ts +4 -0
  259. package/fab/mis-crystal-design-system-fab.metadata.json +1 -0
  260. package/fab/package.json +11 -0
  261. package/fesm2015/mis-crystal-design-system-action-list.js +183 -0
  262. package/fesm2015/mis-crystal-design-system-action-list.js.map +1 -0
  263. package/fesm2015/{mis-crystal-design-system-analytics.mjs → mis-crystal-design-system-analytics.js} +14 -22
  264. package/fesm2015/mis-crystal-design-system-analytics.js.map +1 -0
  265. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js +242 -0
  266. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js.map +1 -0
  267. package/fesm2015/mis-crystal-design-system-button.js +120 -0
  268. package/fesm2015/mis-crystal-design-system-button.js.map +1 -0
  269. package/fesm2015/mis-crystal-design-system-checkbox.js +100 -0
  270. package/fesm2015/mis-crystal-design-system-checkbox.js.map +1 -0
  271. package/fesm2015/mis-crystal-design-system-chip.js +52 -0
  272. package/fesm2015/mis-crystal-design-system-chip.js.map +1 -0
  273. package/fesm2015/mis-crystal-design-system-datepicker_v2.js +339 -0
  274. package/fesm2015/mis-crystal-design-system-datepicker_v2.js.map +1 -0
  275. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js +392 -0
  276. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js.map +1 -0
  277. package/fesm2015/mis-crystal-design-system-drawer.js +153 -0
  278. package/fesm2015/mis-crystal-design-system-drawer.js.map +1 -0
  279. package/fesm2015/mis-crystal-design-system-dropdown.js +169 -0
  280. package/fesm2015/mis-crystal-design-system-dropdown.js.map +1 -0
  281. package/fesm2015/mis-crystal-design-system-fab.js +84 -0
  282. package/fesm2015/mis-crystal-design-system-fab.js.map +1 -0
  283. package/fesm2015/mis-crystal-design-system-input.js +97 -0
  284. package/fesm2015/mis-crystal-design-system-input.js.map +1 -0
  285. package/fesm2015/mis-crystal-design-system-loader.js +41 -0
  286. package/fesm2015/mis-crystal-design-system-loader.js.map +1 -0
  287. package/fesm2015/mis-crystal-design-system-menu.js +106 -0
  288. package/fesm2015/mis-crystal-design-system-menu.js.map +1 -0
  289. package/fesm2015/mis-crystal-design-system-modal.js +147 -0
  290. package/fesm2015/mis-crystal-design-system-modal.js.map +1 -0
  291. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js +292 -0
  292. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js.map +1 -0
  293. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js +289 -0
  294. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js.map +1 -0
  295. package/fesm2015/mis-crystal-design-system-phone-input.js +60 -0
  296. package/fesm2015/mis-crystal-design-system-phone-input.js.map +1 -0
  297. package/fesm2015/mis-crystal-design-system-radio-button.js +66 -0
  298. package/fesm2015/mis-crystal-design-system-radio-button.js.map +1 -0
  299. package/fesm2015/mis-crystal-design-system-ske-loader.js +49 -0
  300. package/fesm2015/mis-crystal-design-system-ske-loader.js.map +1 -0
  301. package/fesm2015/mis-crystal-design-system-styles.js +4 -0
  302. package/fesm2015/mis-crystal-design-system-styles.js.map +1 -0
  303. package/fesm2015/mis-crystal-design-system-switch.js +60 -0
  304. package/fesm2015/mis-crystal-design-system-switch.js.map +1 -0
  305. package/fesm2015/mis-crystal-design-system-table.js +405 -0
  306. package/fesm2015/mis-crystal-design-system-table.js.map +1 -0
  307. package/fesm2015/mis-crystal-design-system-toast.js +174 -0
  308. package/fesm2015/mis-crystal-design-system-toast.js.map +1 -0
  309. package/fesm2015/mis-crystal-design-system-tooltip.js +171 -0
  310. package/fesm2015/mis-crystal-design-system-tooltip.js.map +1 -0
  311. package/{fesm2020/mis-crystal-design-system-utils.mjs → fesm2015/mis-crystal-design-system-utils.js} +1 -1
  312. package/fesm2015/mis-crystal-design-system-utils.js.map +1 -0
  313. package/fesm2015/mis-crystal-design-system-virtual-scroll.js +142 -0
  314. package/fesm2015/mis-crystal-design-system-virtual-scroll.js.map +1 -0
  315. package/fesm2015/{mis-crystal-design-system-widgets.mjs → mis-crystal-design-system-widgets.js} +8 -13
  316. package/fesm2015/mis-crystal-design-system-widgets.js.map +1 -0
  317. package/fesm2015/{mis-crystal-design-system.mjs → mis-crystal-design-system.js} +1 -1
  318. package/fesm2015/mis-crystal-design-system.js.map +1 -0
  319. package/input/directives/input/input.directive.d.ts +0 -3
  320. package/input/mis-crystal-design-system-input.d.ts +4 -0
  321. package/input/mis-crystal-design-system-input.metadata.json +1 -0
  322. package/input/mis-input.component.d.ts +0 -3
  323. package/input/mis-input.module.d.ts +0 -8
  324. package/input/package.json +11 -0
  325. package/loader/loader.component.d.ts +0 -3
  326. package/loader/loader.module.d.ts +0 -6
  327. package/loader/mis-crystal-design-system-loader.d.ts +4 -0
  328. package/loader/mis-crystal-design-system-loader.metadata.json +1 -0
  329. package/loader/package.json +11 -0
  330. package/menu/menu-close.directive.d.ts +0 -3
  331. package/menu/menu.directive.d.ts +0 -3
  332. package/menu/menu.module.d.ts +1 -9
  333. package/menu/mis-crystal-design-system-menu.d.ts +4 -0
  334. package/menu/mis-crystal-design-system-menu.metadata.json +1 -0
  335. package/menu/package.json +11 -0
  336. package/mis-crystal-design-system.d.ts +4 -0
  337. package/mis-crystal-design-system.metadata.json +1 -0
  338. package/modal/mis-crystal-design-system-modal.d.ts +5 -0
  339. package/modal/mis-crystal-design-system-modal.metadata.json +1 -0
  340. package/modal/modal.module.d.ts +0 -8
  341. package/modal/modal.service.d.ts +0 -3
  342. package/modal/module-wrapper/module-wrapper.component.d.ts +0 -3
  343. package/modal/package.json +11 -0
  344. package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.d.ts +4 -0
  345. package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.metadata.json +1 -0
  346. package/multi-select-dropdown/multi-select-dropdown.component.d.ts +0 -3
  347. package/multi-select-dropdown/multi-select-dropdown.module.d.ts +0 -10
  348. package/multi-select-dropdown/package.json +11 -0
  349. package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.d.ts +4 -0
  350. package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.metadata.json +1 -0
  351. package/nested-multi-select-dropdown/nested-multi-select-dropdown.component.d.ts +0 -3
  352. package/nested-multi-select-dropdown/nested-multi-select-dropdown.module.d.ts +0 -10
  353. package/nested-multi-select-dropdown/package.json +11 -0
  354. package/package.json +8 -228
  355. package/phone-input/index.d.ts +1 -0
  356. package/phone-input/mis-crystal-design-system-phone-input.d.ts +4 -0
  357. package/phone-input/mis-crystal-design-system-phone-input.metadata.json +1 -0
  358. package/phone-input/package.json +11 -0
  359. package/phone-input/phone-input.component.d.ts +17 -0
  360. package/phone-input/phone-input.module.d.ts +4 -0
  361. package/phone-input/public_api.d.ts +2 -0
  362. package/radio-button/mis-crystal-design-system-radio-button.d.ts +4 -0
  363. package/radio-button/mis-crystal-design-system-radio-button.metadata.json +1 -0
  364. package/radio-button/package.json +11 -0
  365. package/radio-button/radio-button.component.d.ts +0 -3
  366. package/radio-button/radio-button.module.d.ts +0 -7
  367. package/ske-loader/mis-crystal-design-system-ske-loader.d.ts +4 -0
  368. package/ske-loader/mis-crystal-design-system-ske-loader.metadata.json +1 -0
  369. package/ske-loader/package.json +11 -0
  370. package/ske-loader/ske-loader.component.d.ts +0 -3
  371. package/ske-loader/ske-loader.module.d.ts +0 -6
  372. package/styles/mis-crystal-design-system-styles.d.ts +4 -0
  373. package/styles/mis-crystal-design-system-styles.metadata.json +1 -0
  374. package/styles/package.json +11 -0
  375. package/switch/mis-crystal-design-system-switch.d.ts +4 -0
  376. package/switch/mis-crystal-design-system-switch.metadata.json +1 -0
  377. package/switch/package.json +11 -0
  378. package/switch/switch.component.d.ts +0 -3
  379. package/switch/switch.module.d.ts +0 -7
  380. package/table/custom-table-cell.directive.d.ts +0 -3
  381. package/table/filter/filter.component.d.ts +0 -3
  382. package/table/mis-crystal-design-system-table.d.ts +5 -0
  383. package/table/mis-crystal-design-system-table.metadata.json +1 -0
  384. package/table/package.json +11 -0
  385. package/table/public_api.d.ts +0 -1
  386. package/table/sub-table/sub-table.component.d.ts +0 -3
  387. package/table/table.component.d.ts +0 -3
  388. package/table/table.module.d.ts +0 -11
  389. package/toast/mis-crystal-design-system-toast.d.ts +5 -0
  390. package/toast/mis-crystal-design-system-toast.metadata.json +1 -0
  391. package/toast/package.json +11 -0
  392. package/toast/toast.component.d.ts +0 -3
  393. package/toast/toast.data.service.d.ts +0 -3
  394. package/toast/toast.module.d.ts +0 -7
  395. package/toast/toast.service.d.ts +0 -3
  396. package/tooltip/mis-crystal-design-system-tooltip.d.ts +4 -0
  397. package/tooltip/mis-crystal-design-system-tooltip.metadata.json +1 -0
  398. package/tooltip/package.json +11 -0
  399. package/tooltip/tooltip-container/tooltip.component.d.ts +0 -3
  400. package/tooltip/tooltip.directive.d.ts +0 -3
  401. package/tooltip/tooltip.module.d.ts +0 -8
  402. package/utils/mis-crystal-design-system-utils.d.ts +4 -0
  403. package/utils/mis-crystal-design-system-utils.metadata.json +1 -0
  404. package/utils/package.json +11 -0
  405. package/virtual-scroll/index.d.ts +1 -0
  406. package/virtual-scroll/mis-crystal-design-system-virtual-scroll.d.ts +4 -0
  407. package/virtual-scroll/mis-crystal-design-system-virtual-scroll.metadata.json +1 -0
  408. package/virtual-scroll/package.json +11 -0
  409. package/virtual-scroll/public_api.d.ts +3 -0
  410. package/virtual-scroll/virtual-scroll.component.d.ts +25 -0
  411. package/virtual-scroll/virtual-scroll.constants.d.ts +15 -0
  412. package/virtual-scroll/virtual-scroll.module.d.ts +4 -0
  413. package/widgets/mis-crystal-design-system-widgets.d.ts +4 -0
  414. package/widgets/mis-crystal-design-system-widgets.metadata.json +1 -0
  415. package/widgets/package.json +11 -0
  416. package/widgets/services/widget.service.d.ts +0 -3
  417. package/widgets/widgets.module.d.ts +0 -5
  418. package/esm2020/action-list/action-list.component.mjs +0 -174
  419. package/esm2020/action-list/action-list.module.mjs +0 -24
  420. package/esm2020/analytics/analytics.module.mjs +0 -18
  421. package/esm2020/analytics/analytics.service.mjs +0 -63
  422. package/esm2020/async-search-dropdown/async-dropdown.component.mjs +0 -242
  423. package/esm2020/async-search-dropdown/async-dropdown.module.mjs +0 -21
  424. package/esm2020/button/button.component.mjs +0 -52
  425. package/esm2020/button/button.directive.mjs +0 -59
  426. package/esm2020/button/button.module.mjs +0 -22
  427. package/esm2020/checkbox/checkbox.component.mjs +0 -87
  428. package/esm2020/checkbox/checkbox.module.mjs +0 -22
  429. package/esm2020/chip/chip.component.mjs +0 -36
  430. package/esm2020/chip/chip.module.mjs +0 -21
  431. package/esm2020/datepicker_v2/datepicker.module.mjs +0 -23
  432. package/esm2020/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs +0 -5
  433. package/esm2020/datepicker_v2/public_api.mjs +0 -4
  434. package/esm2020/datepicker_v2/tz-datepicker.directive.mjs +0 -143
  435. package/esm2020/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +0 -151
  436. package/esm2020/daterangepicker_v2/daterangepicker.module.mjs +0 -24
  437. package/esm2020/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.mjs +0 -5
  438. package/esm2020/daterangepicker_v2/public_api.mjs +0 -4
  439. package/esm2020/daterangepicker_v2/tz-daterangepicker.directive.mjs +0 -133
  440. package/esm2020/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +0 -209
  441. package/esm2020/drawer/drawer-body/drawer-body.component.mjs +0 -43
  442. package/esm2020/drawer/drawer.module.mjs +0 -32
  443. package/esm2020/drawer/mis-crystal-design-system-drawer.mjs +0 -5
  444. package/esm2020/dropdown/dropdown.component.mjs +0 -148
  445. package/esm2020/dropdown/dropdown.module.mjs +0 -24
  446. package/esm2020/fab/fab.component.mjs +0 -82
  447. package/esm2020/fab/fab.module.mjs +0 -21
  448. package/esm2020/input/directives/input/input.directive.mjs +0 -40
  449. package/esm2020/input/mis-input.component.mjs +0 -46
  450. package/esm2020/input/mis-input.module.mjs +0 -20
  451. package/esm2020/loader/loader.component.mjs +0 -19
  452. package/esm2020/loader/loader.module.mjs +0 -21
  453. package/esm2020/menu/menu-close.directive.mjs +0 -23
  454. package/esm2020/menu/menu.directive.mjs +0 -75
  455. package/esm2020/menu/menu.module.mjs +0 -22
  456. package/esm2020/modal/mis-crystal-design-system-modal.mjs +0 -5
  457. package/esm2020/modal/modal.module.mjs +0 -32
  458. package/esm2020/modal/modal.service.mjs +0 -70
  459. package/esm2020/modal/module-wrapper/module-wrapper.component.mjs +0 -40
  460. package/esm2020/multi-select-dropdown/multi-select-dropdown.component.mjs +0 -297
  461. package/esm2020/multi-select-dropdown/multi-select-dropdown.module.mjs +0 -25
  462. package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +0 -313
  463. package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +0 -25
  464. package/esm2020/radio-button/radio-button.component.mjs +0 -49
  465. package/esm2020/radio-button/radio-button.module.mjs +0 -22
  466. package/esm2020/ske-loader/ske-loader.component.mjs +0 -34
  467. package/esm2020/ske-loader/ske-loader.module.mjs +0 -18
  468. package/esm2020/switch/switch.component.mjs +0 -43
  469. package/esm2020/switch/switch.module.mjs +0 -22
  470. package/esm2020/table/custom-table-cell.directive.mjs +0 -42
  471. package/esm2020/table/filter/filter.component.mjs +0 -79
  472. package/esm2020/table/mis-crystal-design-system-table.mjs +0 -5
  473. package/esm2020/table/public_api.mjs +0 -6
  474. package/esm2020/table/sub-table/sub-table.component.mjs +0 -69
  475. package/esm2020/table/table.component.mjs +0 -208
  476. package/esm2020/table/table.module.mjs +0 -26
  477. package/esm2020/toast/toast.component.mjs +0 -33
  478. package/esm2020/toast/toast.data.service.mjs +0 -30
  479. package/esm2020/toast/toast.module.mjs +0 -32
  480. package/esm2020/toast/toast.service.mjs +0 -91
  481. package/esm2020/tooltip/tooltip-container/tooltip.component.mjs +0 -33
  482. package/esm2020/tooltip/tooltip.directive.mjs +0 -122
  483. package/esm2020/tooltip/tooltip.module.mjs +0 -23
  484. package/esm2020/widgets/classes/widget-group.mjs +0 -32
  485. package/esm2020/widgets/services/widget.service.mjs +0 -18
  486. package/esm2020/widgets/widgets.module.mjs +0 -17
  487. package/fesm2015/mis-crystal-design-system-action-list.mjs +0 -199
  488. package/fesm2015/mis-crystal-design-system-action-list.mjs.map +0 -1
  489. package/fesm2015/mis-crystal-design-system-analytics.mjs.map +0 -1
  490. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs +0 -272
  491. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
  492. package/fesm2015/mis-crystal-design-system-button.mjs +0 -134
  493. package/fesm2015/mis-crystal-design-system-button.mjs.map +0 -1
  494. package/fesm2015/mis-crystal-design-system-checkbox.mjs +0 -112
  495. package/fesm2015/mis-crystal-design-system-checkbox.mjs.map +0 -1
  496. package/fesm2015/mis-crystal-design-system-chip.mjs +0 -61
  497. package/fesm2015/mis-crystal-design-system-chip.mjs.map +0 -1
  498. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs +0 -360
  499. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
  500. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs +0 -412
  501. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
  502. package/fesm2015/mis-crystal-design-system-drawer.mjs +0 -157
  503. package/fesm2015/mis-crystal-design-system-drawer.mjs.map +0 -1
  504. package/fesm2015/mis-crystal-design-system-dropdown.mjs +0 -176
  505. package/fesm2015/mis-crystal-design-system-dropdown.mjs.map +0 -1
  506. package/fesm2015/mis-crystal-design-system-fab.mjs +0 -102
  507. package/fesm2015/mis-crystal-design-system-fab.mjs.map +0 -1
  508. package/fesm2015/mis-crystal-design-system-input.mjs +0 -112
  509. package/fesm2015/mis-crystal-design-system-input.mjs.map +0 -1
  510. package/fesm2015/mis-crystal-design-system-loader.mjs +0 -44
  511. package/fesm2015/mis-crystal-design-system-loader.mjs.map +0 -1
  512. package/fesm2015/mis-crystal-design-system-menu.mjs +0 -120
  513. package/fesm2015/mis-crystal-design-system-menu.mjs.map +0 -1
  514. package/fesm2015/mis-crystal-design-system-modal.mjs +0 -156
  515. package/fesm2015/mis-crystal-design-system-modal.mjs.map +0 -1
  516. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs +0 -312
  517. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
  518. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -310
  519. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
  520. package/fesm2015/mis-crystal-design-system-radio-button.mjs +0 -74
  521. package/fesm2015/mis-crystal-design-system-radio-button.mjs.map +0 -1
  522. package/fesm2015/mis-crystal-design-system-ske-loader.mjs +0 -56
  523. package/fesm2015/mis-crystal-design-system-ske-loader.mjs.map +0 -1
  524. package/fesm2015/mis-crystal-design-system-styles.mjs +0 -4
  525. package/fesm2015/mis-crystal-design-system-styles.mjs.map +0 -1
  526. package/fesm2015/mis-crystal-design-system-switch.mjs +0 -68
  527. package/fesm2015/mis-crystal-design-system-switch.mjs.map +0 -1
  528. package/fesm2015/mis-crystal-design-system-table.mjs +0 -421
  529. package/fesm2015/mis-crystal-design-system-table.mjs.map +0 -1
  530. package/fesm2015/mis-crystal-design-system-toast.mjs +0 -182
  531. package/fesm2015/mis-crystal-design-system-toast.mjs.map +0 -1
  532. package/fesm2015/mis-crystal-design-system-tooltip.mjs +0 -179
  533. package/fesm2015/mis-crystal-design-system-tooltip.mjs.map +0 -1
  534. package/fesm2015/mis-crystal-design-system-utils.mjs +0 -24
  535. package/fesm2015/mis-crystal-design-system-utils.mjs.map +0 -1
  536. package/fesm2015/mis-crystal-design-system-widgets.mjs.map +0 -1
  537. package/fesm2015/mis-crystal-design-system.mjs.map +0 -1
  538. package/fesm2020/mis-crystal-design-system-action-list.mjs +0 -201
  539. package/fesm2020/mis-crystal-design-system-action-list.mjs.map +0 -1
  540. package/fesm2020/mis-crystal-design-system-analytics.mjs +0 -85
  541. package/fesm2020/mis-crystal-design-system-analytics.mjs.map +0 -1
  542. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs +0 -265
  543. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
  544. package/fesm2020/mis-crystal-design-system-button.mjs +0 -134
  545. package/fesm2020/mis-crystal-design-system-button.mjs.map +0 -1
  546. package/fesm2020/mis-crystal-design-system-checkbox.mjs +0 -112
  547. package/fesm2020/mis-crystal-design-system-checkbox.mjs.map +0 -1
  548. package/fesm2020/mis-crystal-design-system-chip.mjs +0 -61
  549. package/fesm2020/mis-crystal-design-system-chip.mjs.map +0 -1
  550. package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs +0 -361
  551. package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
  552. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs +0 -409
  553. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
  554. package/fesm2020/mis-crystal-design-system-drawer.mjs +0 -156
  555. package/fesm2020/mis-crystal-design-system-drawer.mjs.map +0 -1
  556. package/fesm2020/mis-crystal-design-system-dropdown.mjs +0 -175
  557. package/fesm2020/mis-crystal-design-system-dropdown.mjs.map +0 -1
  558. package/fesm2020/mis-crystal-design-system-fab.mjs +0 -107
  559. package/fesm2020/mis-crystal-design-system-fab.mjs.map +0 -1
  560. package/fesm2020/mis-crystal-design-system-input.mjs +0 -106
  561. package/fesm2020/mis-crystal-design-system-input.mjs.map +0 -1
  562. package/fesm2020/mis-crystal-design-system-loader.mjs +0 -44
  563. package/fesm2020/mis-crystal-design-system-loader.mjs.map +0 -1
  564. package/fesm2020/mis-crystal-design-system-menu.mjs +0 -119
  565. package/fesm2020/mis-crystal-design-system-menu.mjs.map +0 -1
  566. package/fesm2020/mis-crystal-design-system-modal.mjs +0 -156
  567. package/fesm2020/mis-crystal-design-system-modal.mjs.map +0 -1
  568. package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs +0 -325
  569. package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
  570. package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -341
  571. package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
  572. package/fesm2020/mis-crystal-design-system-radio-button.mjs +0 -74
  573. package/fesm2020/mis-crystal-design-system-radio-button.mjs.map +0 -1
  574. package/fesm2020/mis-crystal-design-system-ske-loader.mjs +0 -56
  575. package/fesm2020/mis-crystal-design-system-ske-loader.mjs.map +0 -1
  576. package/fesm2020/mis-crystal-design-system-styles.mjs +0 -4
  577. package/fesm2020/mis-crystal-design-system-styles.mjs.map +0 -1
  578. package/fesm2020/mis-crystal-design-system-switch.mjs +0 -68
  579. package/fesm2020/mis-crystal-design-system-switch.mjs.map +0 -1
  580. package/fesm2020/mis-crystal-design-system-table.mjs +0 -413
  581. package/fesm2020/mis-crystal-design-system-table.mjs.map +0 -1
  582. package/fesm2020/mis-crystal-design-system-toast.mjs +0 -180
  583. package/fesm2020/mis-crystal-design-system-toast.mjs.map +0 -1
  584. package/fesm2020/mis-crystal-design-system-tooltip.mjs +0 -177
  585. package/fesm2020/mis-crystal-design-system-tooltip.mjs.map +0 -1
  586. package/fesm2020/mis-crystal-design-system-utils.mjs.map +0 -1
  587. package/fesm2020/mis-crystal-design-system-widgets.mjs +0 -128
  588. package/fesm2020/mis-crystal-design-system-widgets.mjs.map +0 -1
  589. package/fesm2020/mis-crystal-design-system.mjs +0 -24
  590. package/fesm2020/mis-crystal-design-system.mjs.map +0 -1
  591. /package/{esm2020/action-list/index.mjs → esm2015/action-list/index.js} +0 -0
  592. /package/{esm2020/action-list/mis-crystal-design-system-action-list.mjs → esm2015/action-list/mis-crystal-design-system-action-list.js} +0 -0
  593. /package/{esm2020/action-list/public_api.mjs → esm2015/action-list/public_api.js} +0 -0
  594. /package/{esm2020/analytics/index.mjs → esm2015/analytics/index.js} +0 -0
  595. /package/{esm2020/analytics/mis-crystal-design-system-analytics.mjs → esm2015/analytics/mis-crystal-design-system-analytics.js} +0 -0
  596. /package/{esm2020/analytics/public_api.mjs → esm2015/analytics/public_api.js} +0 -0
  597. /package/{esm2020/async-search-dropdown/index.mjs → esm2015/async-search-dropdown/index.js} +0 -0
  598. /package/{esm2020/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.mjs → esm2015/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.js} +0 -0
  599. /package/{esm2020/async-search-dropdown/public_api.mjs → esm2015/async-search-dropdown/public_api.js} +0 -0
  600. /package/{esm2020/button/index.mjs → esm2015/button/index.js} +0 -0
  601. /package/{esm2020/button/mis-crystal-design-system-button.mjs → esm2015/button/mis-crystal-design-system-button.js} +0 -0
  602. /package/{esm2020/button/public_api.mjs → esm2015/button/public_api.js} +0 -0
  603. /package/{esm2020/checkbox/index.mjs → esm2015/checkbox/index.js} +0 -0
  604. /package/{esm2020/checkbox/mis-crystal-design-system-checkbox.mjs → esm2015/checkbox/mis-crystal-design-system-checkbox.js} +0 -0
  605. /package/{esm2020/checkbox/public_api.mjs → esm2015/checkbox/public_api.js} +0 -0
  606. /package/{esm2020/chip/index.mjs → esm2015/chip/index.js} +0 -0
  607. /package/{esm2020/chip/mis-crystal-design-system-chip.mjs → esm2015/chip/mis-crystal-design-system-chip.js} +0 -0
  608. /package/{esm2020/chip/public_api.mjs → esm2015/chip/public_api.js} +0 -0
  609. /package/{esm2020/datepicker_v2/datepicker-constants.mjs → esm2015/datepicker_v2/datepicker-constants.js} +0 -0
  610. /package/{esm2020/datepicker_v2/index.mjs → esm2015/datepicker_v2/index.js} +0 -0
  611. /package/{esm2020/datepicker_v2/models/dp-config.model.mjs → esm2015/datepicker_v2/models/dp-config.model.js} +0 -0
  612. /package/{esm2020/datepicker_v2/utils/index.mjs → esm2015/datepicker_v2/utils/index.js} +0 -0
  613. /package/{esm2020/daterangepicker_v2/daterangepicker-constants.mjs → esm2015/daterangepicker_v2/daterangepicker-constants.js} +0 -0
  614. /package/{esm2020/daterangepicker_v2/index.mjs → esm2015/daterangepicker_v2/index.js} +0 -0
  615. /package/{esm2020/daterangepicker_v2/models/drp-config.model.mjs → esm2015/daterangepicker_v2/models/drp-config.model.js} +0 -0
  616. /package/{esm2020/daterangepicker_v2/utils/index.mjs → esm2015/daterangepicker_v2/utils/index.js} +0 -0
  617. /package/{esm2020/drawer/drawer-constants.mjs → esm2015/drawer/drawer-constants.js} +0 -0
  618. /package/{esm2020/drawer/drawer-ref.mjs → esm2015/drawer/drawer-ref.js} +0 -0
  619. /package/{esm2020/drawer/index.mjs → esm2015/drawer/index.js} +0 -0
  620. /package/{esm2020/drawer/public_api.mjs → esm2015/drawer/public_api.js} +0 -0
  621. /package/{esm2020/dropdown/index.mjs → esm2015/dropdown/index.js} +0 -0
  622. /package/{esm2020/dropdown/mis-crystal-design-system-dropdown.mjs → esm2015/dropdown/mis-crystal-design-system-dropdown.js} +0 -0
  623. /package/{esm2020/dropdown/public_api.mjs → esm2015/dropdown/public_api.js} +0 -0
  624. /package/{esm2020/fab/index.mjs → esm2015/fab/index.js} +0 -0
  625. /package/{esm2020/fab/mis-crystal-design-system-fab.mjs → esm2015/fab/mis-crystal-design-system-fab.js} +0 -0
  626. /package/{esm2020/fab/public_api.mjs → esm2015/fab/public_api.js} +0 -0
  627. /package/{esm2020/index.mjs → esm2015/index.js} +0 -0
  628. /package/{esm2020/input/index.mjs → esm2015/input/index.js} +0 -0
  629. /package/{esm2020/input/mis-crystal-design-system-input.mjs → esm2015/input/mis-crystal-design-system-input.js} +0 -0
  630. /package/{esm2020/input/public_api.mjs → esm2015/input/public_api.js} +0 -0
  631. /package/{esm2020/loader/index.mjs → esm2015/loader/index.js} +0 -0
  632. /package/{esm2020/loader/mis-crystal-design-system-loader.mjs → esm2015/loader/mis-crystal-design-system-loader.js} +0 -0
  633. /package/{esm2020/loader/public_api.mjs → esm2015/loader/public_api.js} +0 -0
  634. /package/{esm2020/menu/index.mjs → esm2015/menu/index.js} +0 -0
  635. /package/{esm2020/menu/mis-crystal-design-system-menu.mjs → esm2015/menu/mis-crystal-design-system-menu.js} +0 -0
  636. /package/{esm2020/menu/public_api.mjs → esm2015/menu/public_api.js} +0 -0
  637. /package/{esm2020/mis-crystal-design-system.mjs → esm2015/mis-crystal-design-system.js} +0 -0
  638. /package/{esm2020/modal/index.mjs → esm2015/modal/index.js} +0 -0
  639. /package/{esm2020/modal/modal-constants.mjs → esm2015/modal/modal-constants.js} +0 -0
  640. /package/{esm2020/modal/modal-ref.mjs → esm2015/modal/modal-ref.js} +0 -0
  641. /package/{esm2020/modal/public_api.mjs → esm2015/modal/public_api.js} +0 -0
  642. /package/{esm2020/multi-select-dropdown/index.mjs → esm2015/multi-select-dropdown/index.js} +0 -0
  643. /package/{esm2020/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.mjs → esm2015/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.js} +0 -0
  644. /package/{esm2020/multi-select-dropdown/public_api.mjs → esm2015/multi-select-dropdown/public_api.js} +0 -0
  645. /package/{esm2020/nested-multi-select-dropdown/index.mjs → esm2015/nested-multi-select-dropdown/index.js} +0 -0
  646. /package/{esm2020/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.mjs → esm2015/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.js} +0 -0
  647. /package/{esm2020/nested-multi-select-dropdown/public_api.mjs → esm2015/nested-multi-select-dropdown/public_api.js} +0 -0
  648. /package/{esm2020/public-api.mjs → esm2015/public-api.js} +0 -0
  649. /package/{esm2020/radio-button/index.mjs → esm2015/radio-button/index.js} +0 -0
  650. /package/{esm2020/radio-button/mis-crystal-design-system-radio-button.mjs → esm2015/radio-button/mis-crystal-design-system-radio-button.js} +0 -0
  651. /package/{esm2020/radio-button/public_api.mjs → esm2015/radio-button/public_api.js} +0 -0
  652. /package/{esm2020/ske-loader/index.mjs → esm2015/ske-loader/index.js} +0 -0
  653. /package/{esm2020/ske-loader/mis-crystal-design-system-ske-loader.mjs → esm2015/ske-loader/mis-crystal-design-system-ske-loader.js} +0 -0
  654. /package/{esm2020/ske-loader/public_api.mjs → esm2015/ske-loader/public_api.js} +0 -0
  655. /package/{esm2020/styles/index.mjs → esm2015/styles/index.js} +0 -0
  656. /package/{esm2020/styles/mis-crystal-design-system-styles.mjs → esm2015/styles/mis-crystal-design-system-styles.js} +0 -0
  657. /package/{esm2020/styles/public_api.mjs → esm2015/styles/public_api.js} +0 -0
  658. /package/{esm2020/switch/index.mjs → esm2015/switch/index.js} +0 -0
  659. /package/{esm2020/switch/mis-crystal-design-system-switch.mjs → esm2015/switch/mis-crystal-design-system-switch.js} +0 -0
  660. /package/{esm2020/switch/public_api.mjs → esm2015/switch/public_api.js} +0 -0
  661. /package/{esm2020/table/index.mjs → esm2015/table/index.js} +0 -0
  662. /package/{esm2020/toast/index.mjs → esm2015/toast/index.js} +0 -0
  663. /package/{esm2020/toast/public_api.mjs → esm2015/toast/public_api.js} +0 -0
  664. /package/{esm2020/tooltip/index.mjs → esm2015/tooltip/index.js} +0 -0
  665. /package/{esm2020/tooltip/mis-crystal-design-system-tooltip.mjs → esm2015/tooltip/mis-crystal-design-system-tooltip.js} +0 -0
  666. /package/{esm2020/tooltip/models/tooltip.model.mjs → esm2015/tooltip/models/tooltip.model.js} +0 -0
  667. /package/{esm2020/tooltip/public_api.mjs → esm2015/tooltip/public_api.js} +0 -0
  668. /package/{esm2020/utils/index.mjs → esm2015/utils/index.js} +0 -0
  669. /package/{esm2020/utils/mis-crystal-design-system-utils.mjs → esm2015/utils/mis-crystal-design-system-utils.js} +0 -0
  670. /package/{esm2020/widgets/classes/async-widget.mjs → esm2015/widgets/classes/async-widget.js} +0 -0
  671. /package/{esm2020/widgets/classes/sync-widget.mjs → esm2015/widgets/classes/sync-widget.js} +0 -0
  672. /package/{esm2020/widgets/index.mjs → esm2015/widgets/index.js} +0 -0
  673. /package/{esm2020/widgets/interfaces/widgets.model.mjs → esm2015/widgets/interfaces/widgets.model.js} +0 -0
  674. /package/{esm2020/widgets/mis-crystal-design-system-widgets.mjs → esm2015/widgets/mis-crystal-design-system-widgets.js} +0 -0
  675. /package/{esm2020/widgets/public_api.mjs → esm2015/widgets/public_api.js} +0 -0
@@ -0,0 +1,16 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common"),require("@angular/core")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/analytics",["exports","@angular/common","@angular/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"].analytics={}),e.ng.common,e.ng.core)}(this,(function(e,t,n){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */Object.create;function r(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var o=function(){function e(e){this.document=e,this.scriptLoaded=!1,this.pendingEvents=[]}return e.prototype.insertScript=function(e,t){var n=t.createElement("script");n.setAttribute("async",!0),n.setAttribute("src","https://www.googletagmanager.com/gtag/js?id="+e);var r=t.createElement("script");r.innerText="window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', '"+e+"');",t.appendChild(this.document.head,n),t.appendChild(this.document.head,r),this.handlePendingEvents(n)},e.prototype.handlePendingEvents=function(e){var t=this;e.addEventListener("load",(function(){var e,n;t.scriptLoaded=!0;try{for(var o=r(t.pendingEvents),i=o.next();!i.done;i=o.next()){var a=i.value;"event"===a[0]?t.send(a[1],a[2],a[3],a[4]):"set"===a[0]&&t.setIdentity(a[1])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}))},e.prototype.send=function(e,t,n,r,o){void 0===o&&(o=!1),this.scriptLoaded||o?null===gtag||void 0===gtag||gtag("event",e,{event_category:t,event_label:n,event_value:r}):this.pendingEvents.push(["event",e,t,n,r])},e.prototype.setIdentity=function(e){this.scriptLoaded?null===gtag||void 0===gtag||gtag("set",{user_id:e}):this.pendingEvents.push(["set",e])},e}();o.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new o(n.ɵɵinject(t.DOCUMENT))},token:o,providedIn:"root"}),o.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]}]};var i=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[o]}},e}();i.decorators=[{type:n.NgModule}],e.AnalyticsModule=i,e.AnalyticsService=o,Object.defineProperty(e,"__esModule",{value:!0})}));
16
+ //# sourceMappingURL=mis-crystal-design-system-analytics.umd.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/mis-components/analytics/analytics.service.ts","../../../projects/mis-components/analytics/analytics.module.ts"],"names":["Object","create","__values","o","s","Symbol","iterator","m","i","call","length","next","value","done","TypeError","AnalyticsService","document","this","scriptLoaded","pendingEvents","prototype","insertScript","measurementId","renderer","loadScript","createElement","setAttribute","initScript","innerText","appendChild","head","handlePendingEvents","script","_this","addEventListener","_b","_c","eventDetails","send","setIdentity","eventAction","event_category","event_label","event_value","force","gtag","push","identifier","user_id","Injectable","args","providedIn","Inject","DOCUMENT","AnalyticsModule","forRoot","ngModule","providers","NgModule"],"mappings":";;;;;;;;;;;;;;oFA2G6BA,OAAOC,gBAYpBC,EAASC,GACrB,IAAIC,EAAsB,mBAAXC,QAAyBA,OAAOC,SAAUC,EAAIH,GAAKD,EAAEC,GAAII,EAAI,EAC5E,GAAID,EAAG,OAAOA,EAAEE,KAAKN,GACrB,GAAIA,GAAyB,iBAAbA,EAAEO,OAAqB,MAAO,CAC1CC,KAAM,WAEF,OADIR,GAAKK,GAAKL,EAAEO,SAAQP,OAAI,GACrB,CAAES,MAAOT,GAAKA,EAAEK,K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2B,WAAI,IAAJA,MAAAA,KAAO,MAAO,CAAEG,QAASD,IAHvB9B,KAAKE,cAAc2B,KAAK,CAAC,MAAOC,iJAhDrCE,EAAAA,WAAUC,KAAA,CAAC,CACVC,WAAY,6EAMCC,EAAAA,OAAMF,KAAA,CAACG,EAAAA,gCCNtB,SAAAC,YACSA,EAAAC,QAAP,WACE,MAAO,CACLC,SAAUF,EACVG,UAAW,CAAC1C,8BALjB2C,EAAAA","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","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"]}
@@ -0,0 +1,258 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/core'), require('@angular/forms'), require('rxjs/operators'), require('@angular/common'), require('mis-crystal-design-system/loader')) :
3
+ typeof define === 'function' && define.amd ? define('mis-crystal-design-system/async-search-dropdown', ['exports', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/core', '@angular/forms', 'rxjs/operators', '@angular/common', 'mis-crystal-design-system/loader'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mis-crystal-design-system'] = global['mis-crystal-design-system'] || {}, global['mis-crystal-design-system']['async-search-dropdown'] = {}), global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.core, global.ng.forms, global.rxjs.operators, global.ng.common, global['mis-crystal-design-system'].loader));
5
+ }(this, (function (exports, overlay, portal, core, forms, operators, common, loader) { 'use strict';
6
+
7
+ var AsyncDropdownComponent = /** @class */ (function () {
8
+ function AsyncDropdownComponent(overlay, viewContainerRef, _ngZone) {
9
+ var _this = this;
10
+ this.overlay = overlay;
11
+ this.viewContainerRef = viewContainerRef;
12
+ this._ngZone = _ngZone;
13
+ this.size = 'md';
14
+ this.placeholder = "Select"; // placeholder for input
15
+ this.debounceTime = 400; // wait time till which API call is paused
16
+ this.minInputLength = 2; // min length after which API call is made
17
+ this.multi = false; // maintain a list or emit value
18
+ // tslint:disable-next-line
19
+ this.onSelect = new core.EventEmitter(true); // emit selected values
20
+ this.searchInput = new forms.FormControl();
21
+ this.data = [];
22
+ this.opened = false;
23
+ this.loading = false;
24
+ this.error = false;
25
+ // tslint:disable-next-line
26
+ this.selections = new Map();
27
+ this.searchQueryChange = new core.EventEmitter();
28
+ this.clear = new core.EventEmitter(false);
29
+ this.itemSelected = new core.EventEmitter();
30
+ this.itemRemoved = new core.EventEmitter();
31
+ this.handleControlChanges = function (values) {
32
+ values.forEach(function (el) {
33
+ _this.selectData(el, true);
34
+ });
35
+ // tslint:disable-next-line
36
+ };
37
+ }
38
+ AsyncDropdownComponent.prototype.ngOnInit = function () {
39
+ var _this = this;
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
+ operators.tap(function (val) { return _this.searchQueryChange.emit(val); }), operators.debounceTime(this.debounceTime), operators.distinctUntilChanged())
51
+ .subscribe(function (res) {
52
+ _this._ngZone.run(function () {
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(function (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
+ }, function (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
+ AsyncDropdownComponent.prototype.ngOnChanges = function (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
+ AsyncDropdownComponent.prototype.ngOnDestroy = function () {
95
+ var _a;
96
+ (_a = this.searchSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
97
+ };
98
+ AsyncDropdownComponent.prototype.openDropdown = function (template, origin) {
99
+ var _this = this;
100
+ var positionStrategy = this.overlay
101
+ .position()
102
+ .flexibleConnectedTo(origin)
103
+ .withPositions([
104
+ new overlay.ConnectionPositionPair({ originX: "start", originY: "bottom" }, { overlayX: "start", overlayY: "top" }),
105
+ new overlay.ConnectionPositionPair({ originX: "start", originY: "top" }, { overlayX: "start", overlayY: "bottom" })
106
+ ])
107
+ .withPush(true);
108
+ var configs = new overlay.OverlayConfig({
109
+ hasBackdrop: true,
110
+ backdropClass: "cdk-overlay-transparent-backdrop",
111
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
112
+ positionStrategy: positionStrategy,
113
+ width: origin.clientWidth
114
+ });
115
+ this.overlayRef = this.overlay.create(configs);
116
+ this.overlayRef.attach(new portal.TemplatePortal(template, this.viewContainerRef));
117
+ this.overlayRef.backdropClick().subscribe(function (res) {
118
+ _this.closeDropdown();
119
+ });
120
+ };
121
+ /**
122
+ * closes the dropdown
123
+ */
124
+ AsyncDropdownComponent.prototype.closeDropdown = function () {
125
+ var _a;
126
+ this.opened = false;
127
+ (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
128
+ this.data = [];
129
+ };
130
+ /**
131
+ *
132
+ * @param item item to select
133
+ * if item property disabled is set to true, selection will be disabled
134
+ * @param effectedFromOutside set to true if calling from parent component, if true will focus on search input
135
+ */
136
+ AsyncDropdownComponent.prototype.selectData = function (item, effectedFromOutside) {
137
+ var _this = this;
138
+ if (effectedFromOutside === void 0) { effectedFromOutside = true; }
139
+ if (item.disabled) {
140
+ return;
141
+ }
142
+ this.itemSelected.emit(item);
143
+ if (!this.multi) {
144
+ this.searchInput.patchValue(item[this.displayKey], { emitEvent: false });
145
+ this.setControlValue(item);
146
+ }
147
+ else {
148
+ if (!this.selections.has(item[this.uniqueKey])) {
149
+ this.selections.set(item[this.uniqueKey], item);
150
+ }
151
+ this.setControlValue(this.selectedItems);
152
+ if (!effectedFromOutside) {
153
+ setTimeout(function () {
154
+ _this.input.nativeElement.focus();
155
+ _this.input.nativeElement.scrollIntoView();
156
+ }, 10);
157
+ }
158
+ this.searchInput.patchValue("");
159
+ this.data = [];
160
+ }
161
+ this.closeDropdown();
162
+ };
163
+ /**
164
+ *
165
+ * @param item remove item from selected list
166
+ */
167
+ AsyncDropdownComponent.prototype.removeItem = function (item) {
168
+ this.itemRemoved.emit(item);
169
+ this.selections.delete(item[this.uniqueKey]);
170
+ this.setControlValue(this.selectedItems);
171
+ // tslint:disable-next-line
172
+ this.input["nativeElement"].focus();
173
+ };
174
+ AsyncDropdownComponent.prototype.setControlValue = function (value) {
175
+ var _a;
176
+ this.onSelect.emit(value);
177
+ (_a = this.control) === null || _a === void 0 ? void 0 : _a.patchValue(value, { emitEvent: false });
178
+ };
179
+ Object.defineProperty(AsyncDropdownComponent.prototype, "selectedItems", {
180
+ /**
181
+ * @returns list of selected items
182
+ */
183
+ get: function () {
184
+ return Array.from(this.selections.values());
185
+ },
186
+ enumerable: false,
187
+ configurable: true
188
+ });
189
+ AsyncDropdownComponent.prototype.removeInputValue = function () {
190
+ this.searchInput.reset();
191
+ this.data = [];
192
+ this.clear.emit(true);
193
+ };
194
+ return AsyncDropdownComponent;
195
+ }());
196
+ AsyncDropdownComponent.decorators = [
197
+ { type: core.Component, args: [{
198
+ selector: "mis-async-search-dropdown",
199
+ 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",
200
+ 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}"]
201
+ },] }
202
+ ];
203
+ AsyncDropdownComponent.ctorParameters = function () { return [
204
+ { type: overlay.Overlay },
205
+ { type: core.ViewContainerRef },
206
+ { type: core.NgZone }
207
+ ]; };
208
+ AsyncDropdownComponent.propDecorators = {
209
+ height: [{ type: core.Input }],
210
+ size: [{ type: core.Input }],
211
+ httpStream: [{ type: core.Input }],
212
+ displayKey: [{ type: core.Input }],
213
+ secondaryDisplayKey: [{ type: core.Input }],
214
+ placeholder: [{ type: core.Input }],
215
+ debounceTime: [{ type: core.Input }],
216
+ minInputLength: [{ type: core.Input }],
217
+ multi: [{ type: core.Input }],
218
+ uniqueKey: [{ type: core.Input }],
219
+ control: [{ type: core.Input }],
220
+ disabled: [{ type: core.Input }],
221
+ readonly: [{ type: core.Input }],
222
+ origin: [{ type: core.ViewChild, args: ["ddBtn", { static: false },] }],
223
+ input: [{ type: core.ViewChild, args: ["input", { static: false },] }],
224
+ dd: [{ type: core.ViewChild, args: ["dd", { static: false },] }],
225
+ customItem: [{ type: core.ContentChild, args: ["misCustomItem", { static: false },] }],
226
+ customLoader: [{ type: core.ContentChild, args: ["asyncCustomLoader", { static: false },] }],
227
+ onSelect: [{ type: core.Output }],
228
+ searchValue: [{ type: core.Input }],
229
+ searchQueryChange: [{ type: core.Output }],
230
+ clear: [{ type: core.Output }],
231
+ itemSelected: [{ type: core.Output }],
232
+ itemRemoved: [{ type: core.Output }]
233
+ };
234
+
235
+ var AsyncDropdownModule = /** @class */ (function () {
236
+ function AsyncDropdownModule() {
237
+ }
238
+ return AsyncDropdownModule;
239
+ }());
240
+ AsyncDropdownModule.decorators = [
241
+ { type: core.NgModule, args: [{
242
+ declarations: [AsyncDropdownComponent],
243
+ imports: [common.CommonModule, overlay.OverlayModule, forms.ReactiveFormsModule, forms.FormsModule, loader.LoaderModule],
244
+ exports: [AsyncDropdownComponent]
245
+ },] }
246
+ ];
247
+
248
+ /**
249
+ * Generated bundle index. Do not edit.
250
+ */
251
+
252
+ exports.AsyncDropdownComponent = AsyncDropdownComponent;
253
+ exports.AsyncDropdownModule = AsyncDropdownModule;
254
+
255
+ Object.defineProperty(exports, '__esModule', { value: true });
256
+
257
+ })));
258
+ //# sourceMappingURL=mis-crystal-design-system-async-search-dropdown.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mis-crystal-design-system-async-search-dropdown.umd.js","sources":["../../../projects/mis-components/async-search-dropdown/async-dropdown.component.ts","../../../projects/mis-components/async-search-dropdown/async-dropdown.module.ts","../../../projects/mis-components/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.ts"],"sourcesContent":["import { ConnectionPositionPair, Overlay, OverlayConfig, OverlayRef } from \"@angular/cdk/overlay\";\nimport { TemplatePortal } from \"@angular/cdk/portal\";\nimport {\n AfterViewInit,\n Component,\n ContentChild,\n ElementRef,\n EventEmitter,\n HostListener,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewContainerRef\n} from \"@angular/core\";\nimport { AbstractControl, FormControl } from \"@angular/forms\";\nimport { Observable, Subscription } from \"rxjs\";\nimport { debounceTime, distinctUntilChanged, filter, tap } from \"rxjs/operators\";\n\n// tslint:disable-next-line\ntype IListData = any;\n\n@Component({\n selector: \"mis-async-search-dropdown\",\n templateUrl: \"./async-dropdown.component.html\",\n styleUrls: [\"./async-dropdown.component.scss\"]\n})\nexport class AsyncDropdownComponent implements OnInit, OnChanges, OnDestroy {\n constructor(private overlay: Overlay, private viewContainerRef: ViewContainerRef, private _ngZone: NgZone) { }\n @Input() height;\n @Input() size: 'md' | 'sm' = 'md'\n @Input() httpStream!: (searchKey: string) => Observable<IListData>; // function that returns an httpobservable\n @Input() displayKey!: string; // string to show value in list\n @Input() secondaryDisplayKey!: string; // string to display secondary value\n @Input() placeholder = \"Select\"; // placeholder for input\n @Input() debounceTime = 400; // wait time till which API call is paused\n @Input() minInputLength = 2; // min length after which API call is made\n @Input() multi = false; // maintain a list or emit value\n @Input() uniqueKey: string; // for identifying unique values\n @Input() control: AbstractControl | null; // form control for reactive forms\n @Input() disabled: boolean; // disable actions on component\n @Input() readonly: boolean; // make component readonly\n @ViewChild(\"ddBtn\", { static: false }) origin: ElementRef;\n @ViewChild(\"input\", { static: false }) input: ElementRef;\n @ViewChild(\"dd\", { static: false }) dd: TemplateRef<Element>;\n @ContentChild(\"misCustomItem\", { static: false })\n customItem: TemplateRef<Element>;\n @ContentChild(\"asyncCustomLoader\", { static: false})\n customLoader: TemplateRef<Element>;\n // tslint:disable-next-line\n @Output() onSelect: EventEmitter<IListData | IListData[]> = new EventEmitter(true); // emit selected values\n searchInput: FormControl = new FormControl();\n data: IListData[] = [];\n opened = false;\n loading: boolean = false;\n error: boolean = false;\n // tslint:disable-next-line\n selections: Map<string, any> = new Map();\n private searchSubscription: Subscription;\n private overlayRef: OverlayRef;\n controlSubscription: Subscription | undefined;\n @Input() searchValue;\n @Output() searchQueryChange = new EventEmitter<string>()\n @Output() clear: EventEmitter<boolean> = new EventEmitter(false);\n @Output() itemSelected = new EventEmitter<IListData>()\n @Output() itemRemoved = new EventEmitter<IListData>()\n ngOnInit(): void {\n if (this.multi && !this.uniqueKey) {\n throw new Error(\"[uniqueKey] required in multi mode.\");\n }\n if (this.disabled) {\n this.searchInput.disable();\n }\n this.searchSubscription = this.searchInput.valueChanges\n .pipe(\n // filter(val => val && val.length >= this.minInputLength),\n tap((val) => this.searchQueryChange.emit(val)),\n debounceTime(this.debounceTime),\n distinctUntilChanged()\n )\n .subscribe(res => {\n this._ngZone.run(() => {\n if (res?.length < this.minInputLength || !res?.length) {\n this.closeDropdown();\n return;\n } else if (res?.length > this.minInputLength && this.httpStream) {\n this.loading = true;\n this.error = false;\n if(!this.overlayRef?.hasAttached())\n this.openDropdown(this.dd, this.origin.nativeElement);\n this.httpStream(res).subscribe(list => {\n this.loading = false;\n this.data = list;\n if (!this.overlayRef?.hasAttached() && list.length > 0) {\n this.openDropdown(this.dd, this.origin.nativeElement);\n }\n }, error => {\n this.loading = false;\n this.error = true;\n });\n }\n })\n });\n if (this.control?.value) {\n this.handleControlChanges(this.control.value);\n }\n this.controlSubscription = this.control?.valueChanges.subscribe(this.handleControlChanges);\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes && changes?.searchValue?.currentValue) {\n this.searchInput.patchValue(changes.searchValue.currentValue);\n }\n if (changes && changes.disabled) {\n this.searchInput.enable();\n if (this.disabled) {\n this.searchInput.disable();\n }\n }\n }\n\n ngOnDestroy(): void {\n this.searchSubscription?.unsubscribe();\n }\n\n private handleControlChanges = (values: IListData[]) => {\n values.forEach(el => {\n this.selectData(el, true);\n });\n // tslint:disable-next-line\n };\n\n private openDropdown(template: TemplateRef<Element>, origin: HTMLElement): void {\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(origin)\n .withPositions([\n new ConnectionPositionPair({ originX: \"start\", originY: \"bottom\" }, { overlayX: \"start\", overlayY: \"top\" }),\n new ConnectionPositionPair({ originX: \"start\", originY: \"top\" }, { overlayX: \"start\", overlayY: \"bottom\" })\n ])\n .withPush(true);\n\n const configs = new OverlayConfig({\n hasBackdrop: true,\n backdropClass: \"cdk-overlay-transparent-backdrop\",\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy,\n width: origin.clientWidth\n });\n this.overlayRef = this.overlay.create(configs);\n this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));\n this.overlayRef.backdropClick().subscribe(res => {\n this.closeDropdown();\n });\n }\n\n /**\n * closes the dropdown\n */\n closeDropdown(): void {\n this.opened = false;\n this.overlayRef?.detach();\n this.data = [];\n }\n\n /**\n *\n * @param item item to select\n * if item property disabled is set to true, selection will be disabled\n * @param effectedFromOutside set to true if calling from parent component, if true will focus on search input\n */\n selectData(item: IListData, effectedFromOutside = true): void {\n if (item.disabled) {\n return;\n }\n this.itemSelected.emit(item)\n if (!this.multi) {\n this.searchInput.patchValue(item[this.displayKey], { emitEvent: false });\n this.setControlValue(item);\n } else {\n if (!this.selections.has(item[this.uniqueKey])) {\n this.selections.set(item[this.uniqueKey], item);\n }\n this.setControlValue(this.selectedItems);\n if (!effectedFromOutside) {\n setTimeout(() => {\n this.input.nativeElement.focus();\n this.input.nativeElement.scrollIntoView();\n }, 10);\n }\n this.searchInput.patchValue(\"\");\n this.data = [];\n }\n this.closeDropdown();\n }\n\n /**\n *\n * @param item remove item from selected list\n */\n removeItem(item: IListData): void {\n this.itemRemoved.emit(item)\n this.selections.delete(item[this.uniqueKey]);\n this.setControlValue(this.selectedItems);\n // tslint:disable-next-line\n this.input[\"nativeElement\"].focus();\n }\n\n private setControlValue(value: IListData): void {\n this.onSelect.emit(value);\n this.control?.patchValue(value, { emitEvent: false });\n }\n\n /**\n * @returns list of selected items\n */\n get selectedItems(): Array<IListData> {\n return Array.from(this.selections.values());\n }\n\n removeInputValue() {\n this.searchInput.reset();\n this.data = [];\n this.clear.emit(true);\n }\n}\n","import { OverlayModule } from \"@angular/cdk/overlay\";\nimport { CommonModule } from \"@angular/common\";\nimport { NgModule } from \"@angular/core\";\nimport { FormsModule, ReactiveFormsModule } from \"@angular/forms\";\nimport { LoaderModule } from \"mis-crystal-design-system/loader\";\nimport { AsyncDropdownComponent } from \"./async-dropdown.component\";\n\n@NgModule({\n declarations: [AsyncDropdownComponent],\n imports: [CommonModule, OverlayModule, ReactiveFormsModule, FormsModule, LoaderModule],\n exports: [AsyncDropdownComponent]\n})\nexport class AsyncDropdownModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["EventEmitter","FormControl","tap","debounceTime","distinctUntilChanged","ConnectionPositionPair","OverlayConfig","TemplatePortal","Component","Overlay","ViewContainerRef","NgZone","Input","ViewChild","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ACNA,WAAM;;;;QC1DT;;;;;gBALCC,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAACC,mBAAY,EAAEC,qBAAa,EAAEC,yBAAmB,EAAEC,iBAAW,EAAEC,mBAAY,CAAC;oBACtF,OAAO,EAAE,CAAC,sBAAsB,CAAC;iBAClC;;;ICXD;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/core"),require("@angular/forms"),require("rxjs/operators"),require("@angular/common"),require("mis-crystal-design-system/loader")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/async-search-dropdown",["exports","@angular/cdk/overlay","@angular/cdk/portal","@angular/core","@angular/forms","rxjs/operators","@angular/common","mis-crystal-design-system/loader"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"]["async-search-dropdown"]={}),e.ng.cdk.overlay,e.ng.cdk.portal,e.ng.core,e.ng.forms,e.rxjs.operators,e.ng.common,e["mis-crystal-design-system"].loader)}(this,(function(e,t,n,i,o,s,r,a){"use strict";var d=function(){function e(e,t,n){var s=this;this.overlay=e,this.viewContainerRef=t,this._ngZone=n,this.size="md",this.placeholder="Select",this.debounceTime=400,this.minInputLength=2,this.multi=!1,this.onSelect=new i.EventEmitter(!0),this.searchInput=new o.FormControl,this.data=[],this.opened=!1,this.loading=!1,this.error=!1,this.selections=new Map,this.searchQueryChange=new i.EventEmitter,this.clear=new i.EventEmitter(!1),this.itemSelected=new i.EventEmitter,this.itemRemoved=new i.EventEmitter,this.handleControlChanges=function(e){e.forEach((function(e){s.selectData(e,!0)}))}}return e.prototype.ngOnInit=function(){var e,t,n=this;if(this.multi&&!this.uniqueKey)throw new Error("[uniqueKey] required in multi mode.");this.disabled&&this.searchInput.disable(),this.searchSubscription=this.searchInput.valueChanges.pipe(s.tap((function(e){return n.searchQueryChange.emit(e)})),s.debounceTime(this.debounceTime),s.distinctUntilChanged()).subscribe((function(e){n._ngZone.run((function(){var t;(null==e?void 0:e.length)<n.minInputLength||!(null==e?void 0:e.length)?n.closeDropdown():(null==e?void 0:e.length)>n.minInputLength&&n.httpStream&&(n.loading=!0,n.error=!1,(null===(t=n.overlayRef)||void 0===t?void 0:t.hasAttached())||n.openDropdown(n.dd,n.origin.nativeElement),n.httpStream(e).subscribe((function(e){var t;n.loading=!1,n.data=e,!(null===(t=n.overlayRef)||void 0===t?void 0:t.hasAttached())&&e.length>0&&n.openDropdown(n.dd,n.origin.nativeElement)}),(function(e){n.loading=!1,n.error=!0})))}))})),(null===(e=this.control)||void 0===e?void 0:e.value)&&this.handleControlChanges(this.control.value),this.controlSubscription=null===(t=this.control)||void 0===t?void 0:t.valueChanges.subscribe(this.handleControlChanges)},e.prototype.ngOnChanges=function(e){var t;e&&(null===(t=null==e?void 0:e.searchValue)||void 0===t?void 0:t.currentValue)&&this.searchInput.patchValue(e.searchValue.currentValue),e&&e.disabled&&(this.searchInput.enable(),this.disabled&&this.searchInput.disable())},e.prototype.ngOnDestroy=function(){var e;null===(e=this.searchSubscription)||void 0===e||e.unsubscribe()},e.prototype.openDropdown=function(e,i){var o=this,s=this.overlay.position().flexibleConnectedTo(i).withPositions([new t.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new t.ConnectionPositionPair({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})]).withPush(!0),r=new t.OverlayConfig({hasBackdrop:!0,backdropClass:"cdk-overlay-transparent-backdrop",scrollStrategy:this.overlay.scrollStrategies.reposition(),positionStrategy:s,width:i.clientWidth});this.overlayRef=this.overlay.create(r),this.overlayRef.attach(new n.TemplatePortal(e,this.viewContainerRef)),this.overlayRef.backdropClick().subscribe((function(e){o.closeDropdown()}))},e.prototype.closeDropdown=function(){var e;this.opened=!1,null===(e=this.overlayRef)||void 0===e||e.detach(),this.data=[]},e.prototype.selectData=function(e,t){var n=this;void 0===t&&(t=!0),e.disabled||(this.itemSelected.emit(e),this.multi?(this.selections.has(e[this.uniqueKey])||this.selections.set(e[this.uniqueKey],e),this.setControlValue(this.selectedItems),t||setTimeout((function(){n.input.nativeElement.focus(),n.input.nativeElement.scrollIntoView()}),10),this.searchInput.patchValue(""),this.data=[]):(this.searchInput.patchValue(e[this.displayKey],{emitEvent:!1}),this.setControlValue(e)),this.closeDropdown())},e.prototype.removeItem=function(e){this.itemRemoved.emit(e),this.selections.delete(e[this.uniqueKey]),this.setControlValue(this.selectedItems),this.input.nativeElement.focus()},e.prototype.setControlValue=function(e){var t;this.onSelect.emit(e),null===(t=this.control)||void 0===t||t.patchValue(e,{emitEvent:!1})},Object.defineProperty(e.prototype,"selectedItems",{get:function(){return Array.from(this.selections.values())},enumerable:!1,configurable:!0}),e.prototype.removeInputValue=function(){this.searchInput.reset(),this.data=[],this.clear.emit(!0)},e}();d.decorators=[{type:i.Component,args:[{selector:"mis-async-search-dropdown",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',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}"]}]}],d.ctorParameters=function(){return[{type:t.Overlay},{type:i.ViewContainerRef},{type:i.NgZone}]},d.propDecorators={height:[{type:i.Input}],size:[{type:i.Input}],httpStream:[{type:i.Input}],displayKey:[{type:i.Input}],secondaryDisplayKey:[{type:i.Input}],placeholder:[{type:i.Input}],debounceTime:[{type:i.Input}],minInputLength:[{type:i.Input}],multi:[{type:i.Input}],uniqueKey:[{type:i.Input}],control:[{type:i.Input}],disabled:[{type:i.Input}],readonly:[{type:i.Input}],origin:[{type:i.ViewChild,args:["ddBtn",{static:!1}]}],input:[{type:i.ViewChild,args:["input",{static:!1}]}],dd:[{type:i.ViewChild,args:["dd",{static:!1}]}],customItem:[{type:i.ContentChild,args:["misCustomItem",{static:!1}]}],customLoader:[{type:i.ContentChild,args:["asyncCustomLoader",{static:!1}]}],onSelect:[{type:i.Output}],searchValue:[{type:i.Input}],searchQueryChange:[{type:i.Output}],clear:[{type:i.Output}],itemSelected:[{type:i.Output}],itemRemoved:[{type:i.Output}]};var l=function(){};l.decorators=[{type:i.NgModule,args:[{declarations:[d],imports:[r.CommonModule,t.OverlayModule,o.ReactiveFormsModule,o.FormsModule,a.LoaderModule],exports:[d]}]}],e.AsyncDropdownComponent=d,e.AsyncDropdownModule=l,Object.defineProperty(e,"__esModule",{value:!0})}));
2
+ //# sourceMappingURL=mis-crystal-design-system-async-search-dropdown.umd.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../projects/mis-components/async-search-dropdown/async-dropdown.component.ts","../../../projects/mis-components/async-search-dropdown/async-dropdown.module.ts"],"names":["AsyncDropdownComponent","overlay","viewContainerRef","_ngZone","_this","this","size","placeholder","debounceTime","minInputLength","multi","onSelect","EventEmitter","searchInput","FormControl","data","opened","loading","error","selections","Map","searchQueryChange","clear","itemSelected","itemRemoved","handleControlChanges","values","forEach","el","selectData","prototype","ngOnInit","uniqueKey","Error","disabled","disable","searchSubscription","valueChanges","pipe","tap","val","emit","distinctUntilChanged","subscribe","res","run","length","closeDropdown","httpStream","_a","overlayRef","hasAttached","openDropdown","dd","origin","nativeElement","list","control","value","controlSubscription","_b","ngOnChanges","changes","searchValue","currentValue","patchValue","enable","ngOnDestroy","unsubscribe","template","positionStrategy","position","flexibleConnectedTo","withPositions","ConnectionPositionPair","originX","originY","overlayX","overlayY","withPush","configs","OverlayConfig","hasBackdrop","backdropClass","scrollStrategy","scrollStrategies","reposition","width","clientWidth","create","attach","TemplatePortal","backdropClick","detach","item","effectedFromOutside","has","set","setControlValue","selectedItems","setTimeout","input","focus","scrollIntoView","displayKey","emitEvent","removeItem","delete","Object","defineProperty","Array","from","removeInputValue","reset","Component","args","selector","Overlay","ViewContainerRef","NgZone","Input","ViewChild","static","ContentChild","Output","NgModule","declarations","imports","CommonModule","OverlayModule","ReactiveFormsModule","FormsModule","LoaderModule","exports"],"mappings":"k5BAiCE,SAAAA,EAAoBC,EAA0BC,EAA4CC,GAA1F,IAAAC,EAAAC,KAAoBA,KAAAJ,QAAAA,EAA0BI,KAAAH,iBAAAA,EAA4CG,KAAAF,QAAAA,EAEjFE,KAAAC,KAAoB,KAIpBD,KAAAE,YAAc,SACdF,KAAAG,aAAe,IACfH,KAAAI,eAAiB,EACjBJ,KAAAK,OAAQ,EAaPL,KAAAM,SAAkD,IAAIC,EAAAA,cAAa,GAC7EP,KAAAQ,YAA2B,IAAIC,EAAAA,YAC/BT,KAAAU,KAAoB,GACpBV,KAAAW,QAAS,EACTX,KAAAY,SAAmB,EACnBZ,KAAAa,OAAiB,EAEjBb,KAAAc,WAA+B,IAAIC,IAKzBf,KAAAgB,kBAAoB,IAAIT,EAAAA,aACxBP,KAAAiB,MAA+B,IAAIV,EAAAA,cAAa,GAChDP,KAAAkB,aAAe,IAAIX,EAAAA,aACnBP,KAAAmB,YAAc,IAAIZ,EAAAA,aA4DpBP,KAAAoB,qBAAuB,SAACC,GAC9BA,EAAOC,SAAQ,SAAAC,GACbxB,EAAKyB,WAAWD,GAAI,cA7DxB5B,EAAA8B,UAAAC,SAAA,WAAA,QAAA3B,EAAAC,KACE,GAAIA,KAAKK,QAAUL,KAAK2B,UACtB,MAAM,IAAIC,MAAM,uCAEd5B,KAAK6B,UACP7B,KAAKQ,YAAYsB,UAEnB9B,KAAK+B,mBAAqB/B,KAAKQ,YAAYwB,aACxCC,KAECC,EAAAA,KAAI,SAACC,GAAQ,OAAApC,EAAKiB,kBAAkBoB,KAAKD,MACzChC,EAAAA,a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AAA,CAAC,gBAAiB,CAAEO,QAAQ,0BAExCC,EAAAA,aAAYR,KAAA,CAAC,oBAAqB,CAAEO,QAAQ,sBAG5CE,EAAAA,4BAWAJ,EAAAA,iCACAI,EAAAA,sBACAA,EAAAA,6BACAA,EAAAA,4BACAA,EAAAA,gBC1DH,iCALCC,EAAAA,SAAQV,KAAA,CAAC,CACRW,aAAc,CAAC9H,GACf+H,QAAS,CAACC,EAAAA,aAAcC,EAAAA,cAAeC,EAAAA,oBAAqBC,EAAAA,YAAaC,EAAAA,cACzEC,QAAS,CAACrI","sourcesContent":["import { ConnectionPositionPair, Overlay, OverlayConfig, OverlayRef } from \"@angular/cdk/overlay\";\nimport { TemplatePortal } from \"@angular/cdk/portal\";\nimport {\n AfterViewInit,\n Component,\n ContentChild,\n ElementRef,\n EventEmitter,\n HostListener,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewContainerRef\n} from \"@angular/core\";\nimport { AbstractControl, FormControl } from \"@angular/forms\";\nimport { Observable, Subscription } from \"rxjs\";\nimport { debounceTime, distinctUntilChanged, filter, tap } from \"rxjs/operators\";\n\n// tslint:disable-next-line\ntype IListData = any;\n\n@Component({\n selector: \"mis-async-search-dropdown\",\n templateUrl: \"./async-dropdown.component.html\",\n styleUrls: [\"./async-dropdown.component.scss\"]\n})\nexport class AsyncDropdownComponent implements OnInit, OnChanges, OnDestroy {\n constructor(private overlay: Overlay, private viewContainerRef: ViewContainerRef, private _ngZone: NgZone) { }\n @Input() height;\n @Input() size: 'md' | 'sm' = 'md'\n @Input() httpStream!: (searchKey: string) => Observable<IListData>; // function that returns an httpobservable\n @Input() displayKey!: string; // string to show value in list\n @Input() secondaryDisplayKey!: string; // string to display secondary value\n @Input() placeholder = \"Select\"; // placeholder for input\n @Input() debounceTime = 400; // wait time till which API call is paused\n @Input() minInputLength = 2; // min length after which API call is made\n @Input() multi = false; // maintain a list or emit value\n @Input() uniqueKey: string; // for identifying unique values\n @Input() control: AbstractControl | null; // form control for reactive forms\n @Input() disabled: boolean; // disable actions on component\n @Input() readonly: boolean; // make component readonly\n @ViewChild(\"ddBtn\", { static: false }) origin: ElementRef;\n @ViewChild(\"input\", { static: false }) input: ElementRef;\n @ViewChild(\"dd\", { static: false }) dd: TemplateRef<Element>;\n @ContentChild(\"misCustomItem\", { static: false })\n customItem: TemplateRef<Element>;\n @ContentChild(\"asyncCustomLoader\", { static: false})\n customLoader: TemplateRef<Element>;\n // tslint:disable-next-line\n @Output() onSelect: EventEmitter<IListData | IListData[]> = new EventEmitter(true); // emit selected values\n searchInput: FormControl = new FormControl();\n data: IListData[] = [];\n opened = false;\n loading: boolean = false;\n error: boolean = false;\n // tslint:disable-next-line\n selections: Map<string, any> = new Map();\n private searchSubscription: Subscription;\n private overlayRef: OverlayRef;\n controlSubscription: Subscription | undefined;\n @Input() searchValue;\n @Output() searchQueryChange = new EventEmitter<string>()\n @Output() clear: EventEmitter<boolean> = new EventEmitter(false);\n @Output() itemSelected = new EventEmitter<IListData>()\n @Output() itemRemoved = new EventEmitter<IListData>()\n ngOnInit(): void {\n if (this.multi && !this.uniqueKey) {\n throw new Error(\"[uniqueKey] required in multi mode.\");\n }\n if (this.disabled) {\n this.searchInput.disable();\n }\n this.searchSubscription = this.searchInput.valueChanges\n .pipe(\n // filter(val => val && val.length >= this.minInputLength),\n tap((val) => this.searchQueryChange.emit(val)),\n debounceTime(this.debounceTime),\n distinctUntilChanged()\n )\n .subscribe(res => {\n this._ngZone.run(() => {\n if (res?.length < this.minInputLength || !res?.length) {\n this.closeDropdown();\n return;\n } else if (res?.length > this.minInputLength && this.httpStream) {\n this.loading = true;\n this.error = false;\n if(!this.overlayRef?.hasAttached())\n this.openDropdown(this.dd, this.origin.nativeElement);\n this.httpStream(res).subscribe(list => {\n this.loading = false;\n this.data = list;\n if (!this.overlayRef?.hasAttached() && list.length > 0) {\n this.openDropdown(this.dd, this.origin.nativeElement);\n }\n }, error => {\n this.loading = false;\n this.error = true;\n });\n }\n })\n });\n if (this.control?.value) {\n this.handleControlChanges(this.control.value);\n }\n this.controlSubscription = this.control?.valueChanges.subscribe(this.handleControlChanges);\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes && changes?.searchValue?.currentValue) {\n this.searchInput.patchValue(changes.searchValue.currentValue);\n }\n if (changes && changes.disabled) {\n this.searchInput.enable();\n if (this.disabled) {\n this.searchInput.disable();\n }\n }\n }\n\n ngOnDestroy(): void {\n this.searchSubscription?.unsubscribe();\n }\n\n private handleControlChanges = (values: IListData[]) => {\n values.forEach(el => {\n this.selectData(el, true);\n });\n // tslint:disable-next-line\n };\n\n private openDropdown(template: TemplateRef<Element>, origin: HTMLElement): void {\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(origin)\n .withPositions([\n new ConnectionPositionPair({ originX: \"start\", originY: \"bottom\" }, { overlayX: \"start\", overlayY: \"top\" }),\n new ConnectionPositionPair({ originX: \"start\", originY: \"top\" }, { overlayX: \"start\", overlayY: \"bottom\" })\n ])\n .withPush(true);\n\n const configs = new OverlayConfig({\n hasBackdrop: true,\n backdropClass: \"cdk-overlay-transparent-backdrop\",\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy,\n width: origin.clientWidth\n });\n this.overlayRef = this.overlay.create(configs);\n this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));\n this.overlayRef.backdropClick().subscribe(res => {\n this.closeDropdown();\n });\n }\n\n /**\n * closes the dropdown\n */\n closeDropdown(): void {\n this.opened = false;\n this.overlayRef?.detach();\n this.data = [];\n }\n\n /**\n *\n * @param item item to select\n * if item property disabled is set to true, selection will be disabled\n * @param effectedFromOutside set to true if calling from parent component, if true will focus on search input\n */\n selectData(item: IListData, effectedFromOutside = true): void {\n if (item.disabled) {\n return;\n }\n this.itemSelected.emit(item)\n if (!this.multi) {\n this.searchInput.patchValue(item[this.displayKey], { emitEvent: false });\n this.setControlValue(item);\n } else {\n if (!this.selections.has(item[this.uniqueKey])) {\n this.selections.set(item[this.uniqueKey], item);\n }\n this.setControlValue(this.selectedItems);\n if (!effectedFromOutside) {\n setTimeout(() => {\n this.input.nativeElement.focus();\n this.input.nativeElement.scrollIntoView();\n }, 10);\n }\n this.searchInput.patchValue(\"\");\n this.data = [];\n }\n this.closeDropdown();\n }\n\n /**\n *\n * @param item remove item from selected list\n */\n removeItem(item: IListData): void {\n this.itemRemoved.emit(item)\n this.selections.delete(item[this.uniqueKey]);\n this.setControlValue(this.selectedItems);\n // tslint:disable-next-line\n this.input[\"nativeElement\"].focus();\n }\n\n private setControlValue(value: IListData): void {\n this.onSelect.emit(value);\n this.control?.patchValue(value, { emitEvent: false });\n }\n\n /**\n * @returns list of selected items\n */\n get selectedItems(): Array<IListData> {\n return Array.from(this.selections.values());\n }\n\n removeInputValue() {\n this.searchInput.reset();\n this.data = [];\n this.clear.emit(true);\n }\n}\n","import { OverlayModule } from \"@angular/cdk/overlay\";\nimport { CommonModule } from \"@angular/common\";\nimport { NgModule } from \"@angular/core\";\nimport { FormsModule, ReactiveFormsModule } from \"@angular/forms\";\nimport { LoaderModule } from \"mis-crystal-design-system/loader\";\nimport { AsyncDropdownComponent } from \"./async-dropdown.component\";\n\n@NgModule({\n declarations: [AsyncDropdownComponent],\n imports: [CommonModule, OverlayModule, ReactiveFormsModule, FormsModule, LoaderModule],\n exports: [AsyncDropdownComponent]\n})\nexport class AsyncDropdownModule {}\n"]}
@@ -0,0 +1,134 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) :
3
+ typeof define === 'function' && define.amd ? define('mis-crystal-design-system/button', ['exports', '@angular/core', '@angular/common'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mis-crystal-design-system'] = global['mis-crystal-design-system'] || {}, global['mis-crystal-design-system'].button = {}), global.ng.core, global.ng.common));
5
+ }(this, (function (exports, core, common) { 'use strict';
6
+
7
+ var ButtonComponent = /** @class */ (function () {
8
+ function ButtonComponent() {
9
+ this.name = "Enabled";
10
+ this.type = "Solid";
11
+ this.size = "Medium";
12
+ this.width = "";
13
+ this.showIcon = false;
14
+ this.iconUrl = "";
15
+ this.iconPosition = "Left";
16
+ this.disabled = false;
17
+ this.disableLeftBorderRadius = false;
18
+ this.disableRightBorderRadius = false;
19
+ /** Emits event when button is clicked */
20
+ this.click = new core.EventEmitter();
21
+ }
22
+ ButtonComponent.prototype.ngOnInit = function () { };
23
+ ButtonComponent.prototype.onClick = function (event) {
24
+ this.click.emit(event);
25
+ };
26
+ return ButtonComponent;
27
+ }());
28
+ ButtonComponent.decorators = [
29
+ { type: core.Component, args: [{
30
+ selector: "mis-button",
31
+ template: "<button\n (click)=\"onClick($event)\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n solid: type === 'Solid',\n outline: type === 'Outline',\n text: type === 'Text',\n large: size === 'Large',\n medium: size === 'Medium',\n small: size === 'Small',\n 'large-mobile': size === 'Large-M',\n 'small-mobile': size === 'Small-M'\n }\"\n [ngStyle]=\"{\n 'border-top-left-radius': disableLeftBorderRadius ? '0px' : '',\n 'border-bottom-left-radius': disableLeftBorderRadius ? '0px' : '',\n 'border-top-right-radius': disableRightBorderRadius ? '0px' : '',\n 'border-bottom-right-radius': disableRightBorderRadius ? '0px' : '',\n width: width\n }\"\n>\n <span id=\"left-icon\" *ngIf=\"showIcon && iconPosition === 'Left'\">\n <img [src]=\"iconUrl\" alt=\"\" />\n </span>\n {{ name }}\n <span id=\"right-icon\" *ngIf=\"showIcon && iconPosition === 'Right'\">\n <img [src]=\"iconUrl\" alt=\"\" />\n </span>\n</button>\n",
32
+ styles: ["button{font-family:Lato,sans-serif!important;border:none;padding:0;margin:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#181f33;background-color:#fff}.solid{color:#fff;background:#0937b2}.solid:hover:enabled{background:#062a99}.solid:active:enabled{background:#041f80}.solid:disabled{color:#929dab;background:#f5f5f5}.outline{border:1px solid #0937b2;color:#0937b2;background:#fff}.outline:hover:enabled{background:#f0f3fa}.outline:active:enabled{background:#dae1f3}.outline:disabled{color:#929dab;border:1px solid #929dab}.text{color:#181f33;background:#fff}.text:hover:enabled{background:#f0f3fa}.text:active:enabled{background:#dae1f3}.text:disabled{color:#929dab}.large{height:56px;padding:16px;border-radius:10px;font-weight:700;letter-spacing:.5px}.large,.medium{font-style:normal;font-size:16px;line-height:24px}.medium{height:44px;padding:10px 16px;border-radius:8px;font-weight:400;letter-spacing:.2px}.small{height:32px;padding:6px 16px;border-radius:6px;font-weight:400;letter-spacing:.25px}.large-mobile,.small{font-style:normal;font-size:14px;line-height:20px}.large-mobile{height:44px;padding:12px}.large-mobile,.small-mobile{border-radius:8px;font-weight:700;letter-spacing:.1px}.small-mobile{height:32px;padding:6px 12px;font-style:normal;font-size:14px;line-height:20px}span{display:flex;justify-content:center;align-items:center}#left-icon{margin-right:8px}#right-icon{margin-left:8px}"]
33
+ },] }
34
+ ];
35
+ ButtonComponent.ctorParameters = function () { return []; };
36
+ ButtonComponent.propDecorators = {
37
+ name: [{ type: core.Input }],
38
+ type: [{ type: core.Input }],
39
+ size: [{ type: core.Input }],
40
+ width: [{ type: core.Input }],
41
+ showIcon: [{ type: core.Input }],
42
+ iconUrl: [{ type: core.Input }],
43
+ iconPosition: [{ type: core.Input }],
44
+ disabled: [{ type: core.Input }],
45
+ disableLeftBorderRadius: [{ type: core.Input }],
46
+ disableRightBorderRadius: [{ type: core.Input }],
47
+ click: [{ type: core.Output }]
48
+ };
49
+
50
+ var ButtonDirective = /** @class */ (function () {
51
+ function ButtonDirective(el, renderer) {
52
+ this.el = el;
53
+ this.renderer = renderer;
54
+ this.type = "none";
55
+ this.size = "md";
56
+ this.elementClass = "mis-btn";
57
+ }
58
+ ButtonDirective.prototype.ngAfterViewInit = function () {
59
+ this.bindTypeClass();
60
+ this.bindSizeClass();
61
+ };
62
+ ButtonDirective.prototype.bindTypeClass = function () {
63
+ var className = "";
64
+ switch (this.type) {
65
+ case "primary":
66
+ className = "mis-primary";
67
+ break;
68
+ case "outline":
69
+ className = "mis-outline";
70
+ break;
71
+ default:
72
+ className = "mis-none";
73
+ }
74
+ this.renderer.addClass(this.el.nativeElement, className);
75
+ };
76
+ ButtonDirective.prototype.bindSizeClass = function () {
77
+ var className = "";
78
+ switch (this.size) {
79
+ case "lg":
80
+ className = "mis-btn-lg";
81
+ break;
82
+ case "sm":
83
+ className = "mis-btn-sm";
84
+ break;
85
+ default:
86
+ className = "mis-btn-md";
87
+ }
88
+ this.renderer.addClass(this.el.nativeElement, className);
89
+ };
90
+ return ButtonDirective;
91
+ }());
92
+ ButtonDirective.decorators = [
93
+ { type: core.Directive, args: [{
94
+ selector: "[mis-button]"
95
+ },] }
96
+ ];
97
+ ButtonDirective.ctorParameters = function () { return [
98
+ { type: core.ElementRef },
99
+ { type: core.Renderer2 }
100
+ ]; };
101
+ ButtonDirective.propDecorators = {
102
+ type: [{ type: core.Input }],
103
+ size: [{ type: core.Input }],
104
+ elementClass: [{ type: core.HostBinding, args: ["class",] }]
105
+ };
106
+
107
+ var ButtonModule = /** @class */ (function () {
108
+ function ButtonModule() {
109
+ }
110
+ ButtonModule.forRoot = function () {
111
+ return { ngModule: ButtonModule, providers: [] };
112
+ };
113
+ return ButtonModule;
114
+ }());
115
+ ButtonModule.decorators = [
116
+ { type: core.NgModule, args: [{
117
+ declarations: [ButtonComponent, ButtonDirective],
118
+ imports: [common.CommonModule],
119
+ exports: [ButtonComponent, ButtonDirective]
120
+ },] }
121
+ ];
122
+
123
+ /**
124
+ * Generated bundle index. Do not edit.
125
+ */
126
+
127
+ exports.ButtonComponent = ButtonComponent;
128
+ exports.ButtonDirective = ButtonDirective;
129
+ exports.ButtonModule = ButtonModule;
130
+
131
+ Object.defineProperty(exports, '__esModule', { value: true });
132
+
133
+ })));
134
+ //# sourceMappingURL=mis-crystal-design-system-button.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mis-crystal-design-system-button.umd.js","sources":["../../../projects/mis-components/button/button.component.ts","../../../projects/mis-components/button/button.directive.ts","../../../projects/mis-components/button/button.module.ts","../../../projects/mis-components/button/mis-crystal-design-system-button.ts"],"sourcesContent":["import { Component, Input, OnInit, Output, EventEmitter, ContentChild, TemplateRef } from \"@angular/core\";\n\n@Component({\n selector: \"mis-button\",\n templateUrl: \"./button.component.html\",\n styleUrls: [\"./button.component.scss\"]\n})\nexport class ButtonComponent implements OnInit {\n @Input() name: string = \"Enabled\";\n @Input() type: \"Solid\" | \"Outline\" | \"Text\" = \"Solid\";\n @Input() size: \"Small\" | \"Medium\" | \"Large\" | \"Small-M\" | \"Large-M\" = \"Medium\";\n @Input() width: string = \"\";\n\n @Input() showIcon: boolean = false;\n @Input() iconUrl: string = \"\";\n @Input() iconPosition: \"Left\" | \"Right\" = \"Left\";\n\n @Input() disabled: boolean = false;\n @Input() disableLeftBorderRadius: boolean = false;\n @Input() disableRightBorderRadius: boolean = false;\n\n /** Emits event when button is clicked */\n @Output() click = new EventEmitter<any>();\n\n constructor() {}\n\n ngOnInit() {}\n\n onClick(event) {\n this.click.emit(event);\n }\n}\n","import { AfterViewInit, Directive, ElementRef, HostBinding, Input, Renderer2 } from \"@angular/core\";\n\n@Directive({\n selector: \"[mis-button]\"\n})\nexport class ButtonDirective implements AfterViewInit {\n @Input() type: \"primary\" | \"outline\" | \"none\" = \"none\";\n @Input() size: \"sm\" | \"md\" | \"lg\" = \"md\";\n @HostBinding(\"class\") elementClass = \"mis-btn\";\n\n constructor(private el: ElementRef, private renderer: Renderer2) {}\n\n ngAfterViewInit(): void {\n this.bindTypeClass();\n this.bindSizeClass();\n }\n\n private bindTypeClass(): void {\n let className = \"\";\n switch (this.type) {\n case \"primary\":\n className = \"mis-primary\";\n break;\n case \"outline\":\n className = \"mis-outline\";\n break;\n default:\n className = \"mis-none\";\n }\n this.renderer.addClass(this.el.nativeElement, className);\n }\n\n private bindSizeClass(): void {\n let className = \"\";\n switch (this.size) {\n case \"lg\":\n className = \"mis-btn-lg\";\n break;\n case \"sm\":\n className = \"mis-btn-sm\";\n break;\n default:\n className = \"mis-btn-md\";\n }\n this.renderer.addClass(this.el.nativeElement, className);\n }\n}\n","import { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { ButtonDirective } from \"./button.directive\";\nimport { ButtonComponent } from \"./button.component\";\n\n@NgModule({\n declarations: [ButtonComponent, ButtonDirective],\n imports: [CommonModule],\n exports: [ButtonComponent, ButtonDirective]\n})\nexport class ButtonModule {\n static forRoot(): ModuleWithProviders<ButtonModule> {\n return { ngModule: ButtonModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["EventEmitter","Component","Input","Output","Directive","ElementRef","Renderer2","HostBinding","NgModule","CommonModule"],"mappings":";;;;;;;QAwBE;YAhBS,SAAI,GAAW,SAAS,CAAC;YACzB,SAAI,GAAiC,OAAO,CAAC;YAC7C,SAAI,GAAyD,QAAQ,CAAC;YACtE,UAAK,GAAW,EAAE,CAAC;YAEnB,aAAQ,GAAY,KAAK,CAAC;YAC1B,YAAO,GAAW,EAAE,CAAC;YACrB,iBAAY,GAAqB,MAAM,CAAC;YAExC,aAAQ,GAAY,KAAK,CAAC;YAC1B,4BAAuB,GAAY,KAAK,CAAC;YACzC,6BAAwB,GAAY,KAAK,CAAC;;YAGzC,UAAK,GAAG,IAAIA,iBAAY,EAAO,CAAC;SAE1B;QAEhB,kCAAQ,GAAR,eAAa;QAEb,iCAAO,GAAP,UAAQ,KAAK;YACX,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACxB;;;;gBA5BFC,cAAS,SAAC;oBACT,QAAQ,EAAE,YAAY;oBACtB,88BAAsC;;iBAEvC;;;;uBAEEC,UAAK;uBACLA,UAAK;uBACLA,UAAK;wBACLA,UAAK;2BAELA,UAAK;0BACLA,UAAK;+BACLA,UAAK;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B;;QACS,oBAAO,GAAd;YACE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;SAClD;;;;gBARFC,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;oBAChD,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;iBAC5C;;;ICTD;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/button",["exports","@angular/core","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"].button={}),e.ng.core,e.ng.common)}(this,(function(e,t,i){"use strict";var n=function(){function e(){this.name="Enabled",this.type="Solid",this.size="Medium",this.width="",this.showIcon=!1,this.iconUrl="",this.iconPosition="Left",this.disabled=!1,this.disableLeftBorderRadius=!1,this.disableRightBorderRadius=!1,this.click=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){this.click.emit(e)},e}();n.decorators=[{type:t.Component,args:[{selector:"mis-button",template:"<button\n (click)=\"onClick($event)\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n solid: type === 'Solid',\n outline: type === 'Outline',\n text: type === 'Text',\n large: size === 'Large',\n medium: size === 'Medium',\n small: size === 'Small',\n 'large-mobile': size === 'Large-M',\n 'small-mobile': size === 'Small-M'\n }\"\n [ngStyle]=\"{\n 'border-top-left-radius': disableLeftBorderRadius ? '0px' : '',\n 'border-bottom-left-radius': disableLeftBorderRadius ? '0px' : '',\n 'border-top-right-radius': disableRightBorderRadius ? '0px' : '',\n 'border-bottom-right-radius': disableRightBorderRadius ? '0px' : '',\n width: width\n }\"\n>\n <span id=\"left-icon\" *ngIf=\"showIcon && iconPosition === 'Left'\">\n <img [src]=\"iconUrl\" alt=\"\" />\n </span>\n {{ name }}\n <span id=\"right-icon\" *ngIf=\"showIcon && iconPosition === 'Right'\">\n <img [src]=\"iconUrl\" alt=\"\" />\n </span>\n</button>\n",styles:["button{font-family:Lato,sans-serif!important;border:none;padding:0;margin:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#181f33;background-color:#fff}.solid{color:#fff;background:#0937b2}.solid:hover:enabled{background:#062a99}.solid:active:enabled{background:#041f80}.solid:disabled{color:#929dab;background:#f5f5f5}.outline{border:1px solid #0937b2;color:#0937b2;background:#fff}.outline:hover:enabled{background:#f0f3fa}.outline:active:enabled{background:#dae1f3}.outline:disabled{color:#929dab;border:1px solid #929dab}.text{color:#181f33;background:#fff}.text:hover:enabled{background:#f0f3fa}.text:active:enabled{background:#dae1f3}.text:disabled{color:#929dab}.large{height:56px;padding:16px;border-radius:10px;font-weight:700;letter-spacing:.5px}.large,.medium{font-style:normal;font-size:16px;line-height:24px}.medium{height:44px;padding:10px 16px;border-radius:8px;font-weight:400;letter-spacing:.2px}.small{height:32px;padding:6px 16px;border-radius:6px;font-weight:400;letter-spacing:.25px}.large-mobile,.small{font-style:normal;font-size:14px;line-height:20px}.large-mobile{height:44px;padding:12px}.large-mobile,.small-mobile{border-radius:8px;font-weight:700;letter-spacing:.1px}.small-mobile{height:32px;padding:6px 12px;font-style:normal;font-size:14px;line-height:20px}span{display:flex;justify-content:center;align-items:center}#left-icon{margin-right:8px}#right-icon{margin-left:8px}"]}]}],n.ctorParameters=function(){return[]},n.propDecorators={name:[{type:t.Input}],type:[{type:t.Input}],size:[{type:t.Input}],width:[{type:t.Input}],showIcon:[{type:t.Input}],iconUrl:[{type:t.Input}],iconPosition:[{type:t.Input}],disabled:[{type:t.Input}],disableLeftBorderRadius:[{type:t.Input}],disableRightBorderRadius:[{type:t.Input}],click:[{type:t.Output}]};var o=function(){function e(e,t){this.el=e,this.renderer=t,this.type="none",this.size="md",this.elementClass="mis-btn"}return e.prototype.ngAfterViewInit=function(){this.bindTypeClass(),this.bindSizeClass()},e.prototype.bindTypeClass=function(){var e="";switch(this.type){case"primary":e="mis-primary";break;case"outline":e="mis-outline";break;default:e="mis-none"}this.renderer.addClass(this.el.nativeElement,e)},e.prototype.bindSizeClass=function(){var e="";switch(this.size){case"lg":e="mis-btn-lg";break;case"sm":e="mis-btn-sm";break;default:e="mis-btn-md"}this.renderer.addClass(this.el.nativeElement,e)},e}();o.decorators=[{type:t.Directive,args:[{selector:"[mis-button]"}]}],o.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},o.propDecorators={type:[{type:t.Input}],size:[{type:t.Input}],elementClass:[{type:t.HostBinding,args:["class"]}]};var r=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}();r.decorators=[{type:t.NgModule,args:[{declarations:[n,o],imports:[i.CommonModule],exports:[n,o]}]}],e.ButtonComponent=n,e.ButtonDirective=o,e.ButtonModule=r,Object.defineProperty(e,"__esModule",{value:!0})}));
2
+ //# sourceMappingURL=mis-crystal-design-system-button.umd.min.js.map