mis-crystal-design-system 4.0.51 → 17.0.0

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 (838) hide show
  1. package/action-list/action-list.component.d.ts +3 -0
  2. package/action-list/action-list.module.d.ts +9 -0
  3. package/analytics/analytics.module.d.ts +4 -0
  4. package/analytics/analytics.service.d.ts +3 -0
  5. package/async-search-dropdown/async-dropdown.component.d.ts +6 -3
  6. package/async-search-dropdown/async-dropdown.module.d.ts +9 -0
  7. package/button/button.component.d.ts +3 -0
  8. package/button/button.directive.d.ts +3 -0
  9. package/button/button.module.d.ts +7 -0
  10. package/checkbox/checkbox.component.d.ts +3 -0
  11. package/checkbox/checkbox.module.d.ts +7 -0
  12. package/chip/chip.component.d.ts +3 -0
  13. package/chip/chip.module.d.ts +6 -0
  14. package/datepicker_v2/datepicker.module.d.ts +10 -0
  15. package/datepicker_v2/models/dp-config.model.d.ts +1 -1
  16. package/datepicker_v2/public_api.d.ts +1 -0
  17. package/datepicker_v2/tz-datepicker.directive.d.ts +3 -0
  18. package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +3 -0
  19. package/daterangepicker_v2/daterangepicker.module.d.ts +10 -0
  20. package/daterangepicker_v2/models/drp-config.model.d.ts +1 -1
  21. package/daterangepicker_v2/public_api.d.ts +1 -0
  22. package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +3 -0
  23. package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +3 -0
  24. package/drawer/drawer-body/drawer-body.component.d.ts +3 -1
  25. package/drawer/drawer.module.d.ts +8 -0
  26. package/drawer/drawer.service.d.ts +3 -0
  27. package/dropdown/calculate-container-height.directive.d.ts +3 -0
  28. package/dropdown/dropdown.component.d.ts +3 -0
  29. package/dropdown/dropdown.module.d.ts +11 -0
  30. package/dynamic-form/dynamic-form.component.d.ts +11 -8
  31. package/dynamic-form/dynamic-form.module.d.ts +13 -0
  32. package/esm2022/action-list/action-list.component.mjs +363 -0
  33. package/esm2022/action-list/action-list.module.mjs +25 -0
  34. package/esm2022/analytics/analytics.module.mjs +18 -0
  35. package/esm2022/analytics/analytics.service.mjs +63 -0
  36. package/esm2022/async-search-dropdown/async-dropdown.component.mjs +467 -0
  37. package/esm2022/async-search-dropdown/async-dropdown.module.mjs +22 -0
  38. package/esm2022/button/button.component.mjs +88 -0
  39. package/esm2022/button/button.directive.mjs +61 -0
  40. package/esm2022/button/button.module.mjs +23 -0
  41. package/esm2022/checkbox/checkbox.component.mjs +124 -0
  42. package/esm2022/checkbox/checkbox.module.mjs +23 -0
  43. package/esm2022/chip/chip.component.mjs +82 -0
  44. package/esm2022/chip/chip.module.mjs +22 -0
  45. package/esm2022/datepicker_v2/datepicker.module.mjs +24 -0
  46. package/esm2022/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs +5 -0
  47. package/esm2022/datepicker_v2/public_api.mjs +4 -0
  48. package/esm2022/datepicker_v2/tz-datepicker.directive.mjs +164 -0
  49. package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +246 -0
  50. package/{esm2015/daterangepicker_v2/utils/index.js → esm2022/datepicker_v2/utils/index.mjs} +1 -1
  51. package/esm2022/daterangepicker_v2/daterangepicker.module.mjs +25 -0
  52. package/esm2022/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.mjs +5 -0
  53. package/esm2022/daterangepicker_v2/public_api.mjs +4 -0
  54. package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +135 -0
  55. package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +365 -0
  56. package/esm2022/daterangepicker_v2/utils/index.mjs +45 -0
  57. package/esm2022/drawer/drawer-body/drawer-body.component.mjs +59 -0
  58. package/{esm2015/drawer/drawer-ref.js → esm2022/drawer/drawer-ref.mjs} +4 -4
  59. package/esm2022/drawer/drawer.module.mjs +33 -0
  60. package/esm2022/drawer/drawer.service.mjs +56 -0
  61. package/esm2022/drawer/mis-crystal-design-system-drawer.mjs +5 -0
  62. package/esm2022/dropdown/calculate-container-height.directive.mjs +41 -0
  63. package/esm2022/dropdown/dropdown.component.mjs +404 -0
  64. package/esm2022/dropdown/dropdown.module.mjs +27 -0
  65. package/esm2022/dropdown/mis-crystal-design-system-dropdown.mjs +5 -0
  66. package/esm2022/dynamic-form/dynamic-form.component.mjs +705 -0
  67. package/esm2022/dynamic-form/dynamic-form.module.mjs +56 -0
  68. package/esm2022/fab/fab.component.mjs +145 -0
  69. package/esm2022/fab/fab.module.mjs +22 -0
  70. package/esm2022/input/directives/input/input.directive.mjs +40 -0
  71. package/esm2022/input/mis-input.component.mjs +85 -0
  72. package/esm2022/input/mis-input.module.mjs +21 -0
  73. package/esm2022/input-stepper/input-stepper/input-stepper.component.mjs +75 -0
  74. package/esm2022/input-stepper/input-stepper.module.mjs +25 -0
  75. package/esm2022/loader/loader.component.mjs +25 -0
  76. package/esm2022/loader/loader.module.mjs +22 -0
  77. package/esm2022/menu/menu-close.directive.mjs +25 -0
  78. package/esm2022/menu/menu.directive.mjs +77 -0
  79. package/esm2022/menu/menu.module.mjs +23 -0
  80. package/esm2022/mobile-filter/mobile-filter.component.mjs +178 -0
  81. package/esm2022/mobile-filter/mobile-filter.module.mjs +21 -0
  82. package/esm2022/modal/mis-crystal-design-system-modal.mjs +5 -0
  83. package/esm2022/modal/modal.module.mjs +33 -0
  84. package/esm2022/modal/modal.service.mjs +70 -0
  85. package/esm2022/modal/module-wrapper/module-wrapper.component.mjs +56 -0
  86. package/esm2022/multi-select-dropdown/multi-select-dropdown.component.mjs +477 -0
  87. package/esm2022/multi-select-dropdown/multi-select-dropdown.module.mjs +26 -0
  88. package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +509 -0
  89. package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +26 -0
  90. package/esm2022/phone-input/phone-input.component.mjs +116 -0
  91. package/esm2022/phone-input/phone-input.module.mjs +27 -0
  92. package/esm2022/radio-button/radio-button.component.mjs +57 -0
  93. package/esm2022/radio-button/radio-button.module.mjs +23 -0
  94. package/esm2022/ske-loader/ske-loader.component.mjs +54 -0
  95. package/esm2022/ske-loader/ske-loader.module.mjs +19 -0
  96. package/esm2022/slider/slider.component.mjs +46 -0
  97. package/esm2022/slider/slider.module.mjs +30 -0
  98. package/esm2022/snackbar/snackbar/snackbar.component.mjs +72 -0
  99. package/esm2022/snackbar/snackbar.module.mjs +36 -0
  100. package/esm2022/snackbar/snackbar.service.mjs +47 -0
  101. package/esm2022/specificdatepicker/mis-crystal-design-system-specificdatepicker.mjs +5 -0
  102. package/esm2022/specificdatepicker/public_api.mjs +5 -0
  103. package/esm2022/specificdatepicker/specificdatepicker.module.mjs +27 -0
  104. package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +619 -0
  105. package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +196 -0
  106. package/esm2022/specificdatepicker/utils/index.mjs +45 -0
  107. package/esm2022/star-rating/star-rating.component.mjs +113 -0
  108. package/esm2022/star-rating/star-rating.module.mjs +19 -0
  109. package/esm2022/switch/switch.component.mjs +56 -0
  110. package/esm2022/switch/switch.module.mjs +23 -0
  111. package/esm2022/table/custom-table-cell.directive.mjs +42 -0
  112. package/esm2022/table/filter/filter.component.mjs +169 -0
  113. package/esm2022/table/mis-crystal-design-system-table.mjs +5 -0
  114. package/esm2022/table/public_api.mjs +7 -0
  115. package/esm2022/table/sub-table/sub-table.component.mjs +192 -0
  116. package/esm2022/table/table.component.mjs +469 -0
  117. package/esm2022/table/table.module.mjs +27 -0
  118. package/esm2022/timepicker/mis-crystal-design-system-timepicker.mjs +5 -0
  119. package/esm2022/timepicker/timepicker.component.mjs +343 -0
  120. package/esm2022/timepicker/timepicker.directive.mjs +65 -0
  121. package/esm2022/timepicker/timepicker.module.mjs +26 -0
  122. package/esm2022/timerangepicker/timerangepicker.component.mjs +228 -0
  123. package/esm2022/timerangepicker/timerangepicker.module.mjs +24 -0
  124. package/esm2022/toast/toast.component.mjs +51 -0
  125. package/esm2022/toast/toast.data.service.mjs +30 -0
  126. package/esm2022/toast/toast.module.mjs +33 -0
  127. package/esm2022/toast/toast.service.mjs +91 -0
  128. package/esm2022/tooltip/tooltip-container/tooltip.component.mjs +78 -0
  129. package/esm2022/tooltip/tooltip.directive.mjs +137 -0
  130. package/esm2022/tooltip/tooltip.module.mjs +24 -0
  131. package/esm2022/virtual-scroll/virtual-scroll.component.mjs +188 -0
  132. package/esm2022/virtual-scroll/virtual-scroll.module.mjs +34 -0
  133. package/esm2022/widgets/classes/async-widget.mjs +23 -0
  134. package/esm2022/widgets/classes/base-widget.mjs +32 -0
  135. package/esm2022/widgets/classes/sync-widget.mjs +20 -0
  136. package/esm2022/widgets/classes/widget-group.mjs +32 -0
  137. package/esm2022/widgets/services/widget.service.mjs +18 -0
  138. package/esm2022/widgets/widgets.module.mjs +18 -0
  139. package/fab/fab.component.d.ts +6 -3
  140. package/fab/fab.module.d.ts +6 -0
  141. package/fesm2022/mis-crystal-design-system-action-list.mjs +391 -0
  142. package/fesm2022/mis-crystal-design-system-action-list.mjs.map +1 -0
  143. package/{fesm2015/mis-crystal-design-system-analytics.js → fesm2022/mis-crystal-design-system-analytics.mjs} +21 -15
  144. package/fesm2022/mis-crystal-design-system-analytics.mjs.map +1 -0
  145. package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs +491 -0
  146. package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -0
  147. package/fesm2022/mis-crystal-design-system-button.mjs +173 -0
  148. package/fesm2022/mis-crystal-design-system-button.mjs.map +1 -0
  149. package/fesm2022/mis-crystal-design-system-checkbox.mjs +150 -0
  150. package/fesm2022/mis-crystal-design-system-checkbox.mjs.map +1 -0
  151. package/fesm2022/mis-crystal-design-system-chip.mjs +108 -0
  152. package/fesm2022/mis-crystal-design-system-chip.mjs.map +1 -0
  153. package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs +478 -0
  154. package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -0
  155. package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +568 -0
  156. package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -0
  157. package/fesm2022/mis-crystal-design-system-drawer.mjs +173 -0
  158. package/fesm2022/mis-crystal-design-system-drawer.mjs.map +1 -0
  159. package/fesm2022/mis-crystal-design-system-dropdown.mjs +472 -0
  160. package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -0
  161. package/fesm2022/mis-crystal-design-system-dynamic-form.mjs +763 -0
  162. package/fesm2022/mis-crystal-design-system-dynamic-form.mjs.map +1 -0
  163. package/fesm2022/mis-crystal-design-system-fab.mjs +171 -0
  164. package/fesm2022/mis-crystal-design-system-fab.mjs.map +1 -0
  165. package/fesm2022/mis-crystal-design-system-input-stepper.mjs +104 -0
  166. package/fesm2022/mis-crystal-design-system-input-stepper.mjs.map +1 -0
  167. package/fesm2022/mis-crystal-design-system-input.mjs +146 -0
  168. package/fesm2022/mis-crystal-design-system-input.mjs.map +1 -0
  169. package/fesm2022/mis-crystal-design-system-loader.mjs +51 -0
  170. package/fesm2022/mis-crystal-design-system-loader.mjs.map +1 -0
  171. package/fesm2022/mis-crystal-design-system-menu.mjs +124 -0
  172. package/fesm2022/mis-crystal-design-system-menu.mjs.map +1 -0
  173. package/fesm2022/mis-crystal-design-system-mobile-filter.mjs +203 -0
  174. package/fesm2022/mis-crystal-design-system-mobile-filter.mjs.map +1 -0
  175. package/fesm2022/mis-crystal-design-system-modal.mjs +173 -0
  176. package/fesm2022/mis-crystal-design-system-modal.mjs.map +1 -0
  177. package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs +506 -0
  178. package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -0
  179. package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs +538 -0
  180. package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -0
  181. package/fesm2022/mis-crystal-design-system-phone-input.mjs +145 -0
  182. package/fesm2022/mis-crystal-design-system-phone-input.mjs.map +1 -0
  183. package/fesm2022/mis-crystal-design-system-radio-button.mjs +83 -0
  184. package/fesm2022/mis-crystal-design-system-radio-button.mjs.map +1 -0
  185. package/fesm2022/mis-crystal-design-system-ske-loader.mjs +77 -0
  186. package/fesm2022/mis-crystal-design-system-ske-loader.mjs.map +1 -0
  187. package/fesm2022/mis-crystal-design-system-slider.mjs +80 -0
  188. package/fesm2022/mis-crystal-design-system-slider.mjs.map +1 -0
  189. package/fesm2022/mis-crystal-design-system-snackbar.mjs +155 -0
  190. package/fesm2022/mis-crystal-design-system-snackbar.mjs.map +1 -0
  191. package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs +884 -0
  192. package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -0
  193. package/fesm2022/mis-crystal-design-system-star-rating.mjs +136 -0
  194. package/fesm2022/mis-crystal-design-system-star-rating.mjs.map +1 -0
  195. package/fesm2022/mis-crystal-design-system-styles.mjs +4 -0
  196. package/fesm2022/mis-crystal-design-system-styles.mjs.map +1 -0
  197. package/fesm2022/mis-crystal-design-system-switch.mjs +82 -0
  198. package/fesm2022/mis-crystal-design-system-switch.mjs.map +1 -0
  199. package/fesm2022/mis-crystal-design-system-table.mjs +888 -0
  200. package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -0
  201. package/fesm2022/mis-crystal-design-system-timepicker.mjs +429 -0
  202. package/fesm2022/mis-crystal-design-system-timepicker.mjs.map +1 -0
  203. package/{fesm2015/mis-crystal-design-system-timerangepicker.js → fesm2022/mis-crystal-design-system-timerangepicker.mjs} +73 -35
  204. package/fesm2022/mis-crystal-design-system-timerangepicker.mjs.map +1 -0
  205. package/fesm2022/mis-crystal-design-system-toast.mjs +199 -0
  206. package/fesm2022/mis-crystal-design-system-toast.mjs.map +1 -0
  207. package/fesm2022/mis-crystal-design-system-tooltip.mjs +238 -0
  208. package/fesm2022/mis-crystal-design-system-tooltip.mjs.map +1 -0
  209. package/{fesm2015/mis-crystal-design-system-utils.js → fesm2022/mis-crystal-design-system-utils.mjs} +1 -1
  210. package/fesm2022/mis-crystal-design-system-utils.mjs.map +1 -0
  211. package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs +227 -0
  212. package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs.map +1 -0
  213. package/{fesm2015/mis-crystal-design-system-widgets.js → fesm2022/mis-crystal-design-system-widgets.mjs} +13 -7
  214. package/fesm2022/mis-crystal-design-system-widgets.mjs.map +1 -0
  215. package/{fesm2015/mis-crystal-design-system.js → fesm2022/mis-crystal-design-system.mjs} +1 -1
  216. package/fesm2022/mis-crystal-design-system.mjs.map +1 -0
  217. package/input/directives/input/input.directive.d.ts +3 -0
  218. package/input/mis-input.component.d.ts +3 -0
  219. package/input/mis-input.module.d.ts +8 -0
  220. package/input-stepper/input-stepper/input-stepper.component.d.ts +3 -0
  221. package/input-stepper/input-stepper.module.d.ts +6 -0
  222. package/loader/loader.component.d.ts +3 -0
  223. package/loader/loader.module.d.ts +6 -0
  224. package/menu/menu-close.directive.d.ts +3 -0
  225. package/menu/menu.directive.d.ts +3 -0
  226. package/menu/menu.module.d.ts +9 -1
  227. package/mobile-filter/mobile-filter.component.d.ts +3 -0
  228. package/mobile-filter/mobile-filter.module.d.ts +8 -0
  229. package/modal/modal.module.d.ts +8 -0
  230. package/modal/modal.service.d.ts +3 -0
  231. package/modal/module-wrapper/module-wrapper.component.d.ts +3 -0
  232. package/multi-select-dropdown/multi-select-dropdown.component.d.ts +3 -0
  233. package/multi-select-dropdown/multi-select-dropdown.module.d.ts +10 -0
  234. package/nested-multi-select-dropdown/nested-multi-select-dropdown.component.d.ts +3 -0
  235. package/nested-multi-select-dropdown/nested-multi-select-dropdown.module.d.ts +10 -0
  236. package/package.json +240 -9
  237. package/phone-input/phone-input.component.d.ts +5 -2
  238. package/phone-input/phone-input.module.d.ts +10 -0
  239. package/radio-button/radio-button.component.d.ts +3 -0
  240. package/radio-button/radio-button.module.d.ts +7 -0
  241. package/ske-loader/ske-loader.component.d.ts +3 -0
  242. package/ske-loader/ske-loader.module.d.ts +6 -0
  243. package/slider/slider.component.d.ts +6 -3
  244. package/slider/slider.module.d.ts +7 -0
  245. package/snackbar/snackbar/snackbar.component.d.ts +3 -0
  246. package/snackbar/snackbar.module.d.ts +6 -0
  247. package/snackbar/snackbar.service.d.ts +5 -2
  248. package/specificdatepicker/models/sdp-config.model.d.ts +1 -1
  249. package/specificdatepicker/public_api.d.ts +2 -0
  250. package/specificdatepicker/specificdatepicker.module.d.ts +12 -0
  251. package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +5 -2
  252. package/specificdatepicker/tz-specificdatepicker.directive.d.ts +3 -0
  253. package/star-rating/star-rating.component.d.ts +3 -0
  254. package/star-rating/star-rating.module.d.ts +6 -0
  255. package/switch/switch.component.d.ts +3 -0
  256. package/switch/switch.module.d.ts +7 -0
  257. package/table/custom-table-cell.directive.d.ts +3 -0
  258. package/table/filter/filter.component.d.ts +4 -1
  259. package/table/public_api.d.ts +2 -0
  260. package/table/sub-table/sub-table.component.d.ts +3 -0
  261. package/table/table.component.d.ts +3 -0
  262. package/table/table.module.d.ts +11 -0
  263. package/timepicker/timepicker.component.d.ts +3 -0
  264. package/timepicker/timepicker.directive.d.ts +3 -0
  265. package/timepicker/timepicker.module.d.ts +10 -0
  266. package/timerangepicker/timerange.namespace.d.ts +1 -1
  267. package/timerangepicker/timerangepicker.component.d.ts +3 -0
  268. package/timerangepicker/timerangepicker.module.d.ts +8 -0
  269. package/toast/toast.component.d.ts +3 -0
  270. package/toast/toast.data.service.d.ts +3 -0
  271. package/toast/toast.module.d.ts +7 -0
  272. package/toast/toast.service.d.ts +4 -1
  273. package/tooltip/models/tooltip.model.d.ts +1 -1
  274. package/tooltip/tooltip-container/tooltip.component.d.ts +3 -0
  275. package/tooltip/tooltip.directive.d.ts +3 -0
  276. package/tooltip/tooltip.module.d.ts +8 -0
  277. package/virtual-scroll/virtual-scroll.component.d.ts +3 -0
  278. package/virtual-scroll/virtual-scroll.module.d.ts +8 -0
  279. package/widgets/interfaces/widgets.model.d.ts +1 -1
  280. package/widgets/services/widget.service.d.ts +3 -0
  281. package/widgets/widgets.module.d.ts +5 -0
  282. package/action-list/mis-crystal-design-system-action-list.d.ts +0 -4
  283. package/action-list/mis-crystal-design-system-action-list.metadata.json +0 -1
  284. package/action-list/package.json +0 -11
  285. package/analytics/mis-crystal-design-system-analytics.d.ts +0 -4
  286. package/analytics/mis-crystal-design-system-analytics.metadata.json +0 -1
  287. package/analytics/package.json +0 -11
  288. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.d.ts +0 -4
  289. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.metadata.json +0 -1
  290. package/async-search-dropdown/package.json +0 -11
  291. package/bundles/mis-crystal-design-system-action-list.umd.js +0 -509
  292. package/bundles/mis-crystal-design-system-action-list.umd.js.map +0 -1
  293. package/bundles/mis-crystal-design-system-action-list.umd.min.js +0 -16
  294. package/bundles/mis-crystal-design-system-action-list.umd.min.js.map +0 -1
  295. package/bundles/mis-crystal-design-system-analytics.umd.js +0 -422
  296. package/bundles/mis-crystal-design-system-analytics.umd.js.map +0 -1
  297. package/bundles/mis-crystal-design-system-analytics.umd.min.js +0 -16
  298. package/bundles/mis-crystal-design-system-analytics.umd.min.js.map +0 -1
  299. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js +0 -279
  300. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js.map +0 -1
  301. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js +0 -2
  302. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js.map +0 -1
  303. package/bundles/mis-crystal-design-system-button.umd.js +0 -134
  304. package/bundles/mis-crystal-design-system-button.umd.js.map +0 -1
  305. package/bundles/mis-crystal-design-system-button.umd.min.js +0 -2
  306. package/bundles/mis-crystal-design-system-button.umd.min.js.map +0 -1
  307. package/bundles/mis-crystal-design-system-checkbox.umd.js +0 -127
  308. package/bundles/mis-crystal-design-system-checkbox.umd.js.map +0 -1
  309. package/bundles/mis-crystal-design-system-checkbox.umd.min.js +0 -2
  310. package/bundles/mis-crystal-design-system-checkbox.umd.min.js.map +0 -1
  311. package/bundles/mis-crystal-design-system-chip.umd.js +0 -64
  312. package/bundles/mis-crystal-design-system-chip.umd.js.map +0 -1
  313. package/bundles/mis-crystal-design-system-chip.umd.min.js +0 -2
  314. package/bundles/mis-crystal-design-system-chip.umd.min.js.map +0 -1
  315. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js +0 -706
  316. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js.map +0 -1
  317. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js +0 -16
  318. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js.map +0 -1
  319. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js +0 -464
  320. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js.map +0 -1
  321. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js +0 -2
  322. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js.map +0 -1
  323. package/bundles/mis-crystal-design-system-drawer.umd.js +0 -169
  324. package/bundles/mis-crystal-design-system-drawer.umd.js.map +0 -1
  325. package/bundles/mis-crystal-design-system-drawer.umd.min.js +0 -2
  326. package/bundles/mis-crystal-design-system-drawer.umd.min.js.map +0 -1
  327. package/bundles/mis-crystal-design-system-dropdown.umd.js +0 -558
  328. package/bundles/mis-crystal-design-system-dropdown.umd.js.map +0 -1
  329. package/bundles/mis-crystal-design-system-dropdown.umd.min.js +0 -16
  330. package/bundles/mis-crystal-design-system-dropdown.umd.min.js.map +0 -1
  331. package/bundles/mis-crystal-design-system-dynamic-form.umd.js +0 -740
  332. package/bundles/mis-crystal-design-system-dynamic-form.umd.js.map +0 -1
  333. package/bundles/mis-crystal-design-system-dynamic-form.umd.min.js +0 -16
  334. package/bundles/mis-crystal-design-system-dynamic-form.umd.min.js.map +0 -1
  335. package/bundles/mis-crystal-design-system-fab.umd.js +0 -95
  336. package/bundles/mis-crystal-design-system-fab.umd.js.map +0 -1
  337. package/bundles/mis-crystal-design-system-fab.umd.min.js +0 -2
  338. package/bundles/mis-crystal-design-system-fab.umd.min.js.map +0 -1
  339. package/bundles/mis-crystal-design-system-input-stepper.umd.js +0 -85
  340. package/bundles/mis-crystal-design-system-input-stepper.umd.js.map +0 -1
  341. package/bundles/mis-crystal-design-system-input-stepper.umd.min.js +0 -2
  342. package/bundles/mis-crystal-design-system-input-stepper.umd.min.js.map +0 -1
  343. package/bundles/mis-crystal-design-system-input.umd.js +0 -116
  344. package/bundles/mis-crystal-design-system-input.umd.js.map +0 -1
  345. package/bundles/mis-crystal-design-system-input.umd.min.js +0 -2
  346. package/bundles/mis-crystal-design-system-input.umd.min.js.map +0 -1
  347. package/bundles/mis-crystal-design-system-loader.umd.js +0 -53
  348. package/bundles/mis-crystal-design-system-loader.umd.js.map +0 -1
  349. package/bundles/mis-crystal-design-system-loader.umd.min.js +0 -2
  350. package/bundles/mis-crystal-design-system-loader.umd.min.js.map +0 -1
  351. package/bundles/mis-crystal-design-system-menu.umd.js +0 -119
  352. package/bundles/mis-crystal-design-system-menu.umd.js.map +0 -1
  353. package/bundles/mis-crystal-design-system-menu.umd.min.js +0 -2
  354. package/bundles/mis-crystal-design-system-menu.umd.min.js.map +0 -1
  355. package/bundles/mis-crystal-design-system-mobile-filter.umd.js +0 -89
  356. package/bundles/mis-crystal-design-system-mobile-filter.umd.js.map +0 -1
  357. package/bundles/mis-crystal-design-system-mobile-filter.umd.min.js +0 -2
  358. package/bundles/mis-crystal-design-system-mobile-filter.umd.min.js.map +0 -1
  359. package/bundles/mis-crystal-design-system-modal.umd.js +0 -161
  360. package/bundles/mis-crystal-design-system-modal.umd.js.map +0 -1
  361. package/bundles/mis-crystal-design-system-modal.umd.min.js +0 -2
  362. package/bundles/mis-crystal-design-system-modal.umd.min.js.map +0 -1
  363. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js +0 -623
  364. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js.map +0 -1
  365. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js +0 -16
  366. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js.map +0 -1
  367. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js +0 -636
  368. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js.map +0 -1
  369. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js +0 -16
  370. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js.map +0 -1
  371. package/bundles/mis-crystal-design-system-phone-input.umd.js +0 -117
  372. package/bundles/mis-crystal-design-system-phone-input.umd.js.map +0 -1
  373. package/bundles/mis-crystal-design-system-phone-input.umd.min.js +0 -2
  374. package/bundles/mis-crystal-design-system-phone-input.umd.min.js.map +0 -1
  375. package/bundles/mis-crystal-design-system-radio-button.umd.js +0 -77
  376. package/bundles/mis-crystal-design-system-radio-button.umd.js.map +0 -1
  377. package/bundles/mis-crystal-design-system-radio-button.umd.min.js +0 -2
  378. package/bundles/mis-crystal-design-system-radio-button.umd.min.js.map +0 -1
  379. package/bundles/mis-crystal-design-system-ske-loader.umd.js +0 -65
  380. package/bundles/mis-crystal-design-system-ske-loader.umd.js.map +0 -1
  381. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js +0 -2
  382. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js.map +0 -1
  383. package/bundles/mis-crystal-design-system-slider.umd.js +0 -73
  384. package/bundles/mis-crystal-design-system-slider.umd.js.map +0 -1
  385. package/bundles/mis-crystal-design-system-slider.umd.min.js +0 -2
  386. package/bundles/mis-crystal-design-system-slider.umd.min.js.map +0 -1
  387. package/bundles/mis-crystal-design-system-snackbar.umd.js +0 -114
  388. package/bundles/mis-crystal-design-system-snackbar.umd.js.map +0 -1
  389. package/bundles/mis-crystal-design-system-snackbar.umd.min.js +0 -2
  390. package/bundles/mis-crystal-design-system-snackbar.umd.min.js.map +0 -1
  391. package/bundles/mis-crystal-design-system-specificdatepicker.umd.js +0 -977
  392. package/bundles/mis-crystal-design-system-specificdatepicker.umd.js.map +0 -1
  393. package/bundles/mis-crystal-design-system-specificdatepicker.umd.min.js +0 -16
  394. package/bundles/mis-crystal-design-system-specificdatepicker.umd.min.js.map +0 -1
  395. package/bundles/mis-crystal-design-system-star-rating.umd.js +0 -112
  396. package/bundles/mis-crystal-design-system-star-rating.umd.js.map +0 -1
  397. package/bundles/mis-crystal-design-system-star-rating.umd.min.js +0 -2
  398. package/bundles/mis-crystal-design-system-star-rating.umd.min.js.map +0 -1
  399. package/bundles/mis-crystal-design-system-styles.umd.js +0 -11
  400. package/bundles/mis-crystal-design-system-styles.umd.js.map +0 -1
  401. package/bundles/mis-crystal-design-system-styles.umd.min.js +0 -2
  402. package/bundles/mis-crystal-design-system-styles.umd.min.js.map +0 -1
  403. package/bundles/mis-crystal-design-system-switch.umd.js +0 -79
  404. package/bundles/mis-crystal-design-system-switch.umd.js.map +0 -1
  405. package/bundles/mis-crystal-design-system-switch.umd.min.js +0 -2
  406. package/bundles/mis-crystal-design-system-switch.umd.min.js.map +0 -1
  407. package/bundles/mis-crystal-design-system-table.umd.js +0 -784
  408. package/bundles/mis-crystal-design-system-table.umd.js.map +0 -1
  409. package/bundles/mis-crystal-design-system-table.umd.min.js +0 -16
  410. package/bundles/mis-crystal-design-system-table.umd.min.js.map +0 -1
  411. package/bundles/mis-crystal-design-system-timepicker.umd.js +0 -688
  412. package/bundles/mis-crystal-design-system-timepicker.umd.js.map +0 -1
  413. package/bundles/mis-crystal-design-system-timepicker.umd.min.js +0 -16
  414. package/bundles/mis-crystal-design-system-timepicker.umd.min.js.map +0 -1
  415. package/bundles/mis-crystal-design-system-timerangepicker.umd.js +0 -248
  416. package/bundles/mis-crystal-design-system-timerangepicker.umd.js.map +0 -1
  417. package/bundles/mis-crystal-design-system-timerangepicker.umd.min.js +0 -2
  418. package/bundles/mis-crystal-design-system-timerangepicker.umd.min.js.map +0 -1
  419. package/bundles/mis-crystal-design-system-toast.umd.js +0 -202
  420. package/bundles/mis-crystal-design-system-toast.umd.js.map +0 -1
  421. package/bundles/mis-crystal-design-system-toast.umd.min.js +0 -2
  422. package/bundles/mis-crystal-design-system-toast.umd.min.js.map +0 -1
  423. package/bundles/mis-crystal-design-system-tooltip.umd.js +0 -214
  424. package/bundles/mis-crystal-design-system-tooltip.umd.js.map +0 -1
  425. package/bundles/mis-crystal-design-system-tooltip.umd.min.js +0 -2
  426. package/bundles/mis-crystal-design-system-tooltip.umd.min.js.map +0 -1
  427. package/bundles/mis-crystal-design-system-utils.umd.js +0 -33
  428. package/bundles/mis-crystal-design-system-utils.umd.js.map +0 -1
  429. package/bundles/mis-crystal-design-system-utils.umd.min.js +0 -2
  430. package/bundles/mis-crystal-design-system-utils.umd.min.js.map +0 -1
  431. package/bundles/mis-crystal-design-system-virtual-scroll.umd.js +0 -471
  432. package/bundles/mis-crystal-design-system-virtual-scroll.umd.js.map +0 -1
  433. package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js +0 -16
  434. package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js.map +0 -1
  435. package/bundles/mis-crystal-design-system-widgets.umd.js +0 -478
  436. package/bundles/mis-crystal-design-system-widgets.umd.js.map +0 -1
  437. package/bundles/mis-crystal-design-system-widgets.umd.min.js +0 -16
  438. package/bundles/mis-crystal-design-system-widgets.umd.min.js.map +0 -1
  439. package/bundles/mis-crystal-design-system.umd.js +0 -31
  440. package/bundles/mis-crystal-design-system.umd.js.map +0 -1
  441. package/bundles/mis-crystal-design-system.umd.min.js +0 -2
  442. package/bundles/mis-crystal-design-system.umd.min.js.map +0 -1
  443. package/button/mis-crystal-design-system-button.d.ts +0 -4
  444. package/button/mis-crystal-design-system-button.metadata.json +0 -1
  445. package/button/package.json +0 -11
  446. package/checkbox/mis-crystal-design-system-checkbox.d.ts +0 -4
  447. package/checkbox/mis-crystal-design-system-checkbox.metadata.json +0 -1
  448. package/checkbox/package.json +0 -11
  449. package/chip/mis-crystal-design-system-chip.d.ts +0 -4
  450. package/chip/mis-crystal-design-system-chip.metadata.json +0 -1
  451. package/chip/package.json +0 -11
  452. package/datepicker_v2/mis-crystal-design-system-datepicker_v2.d.ts +0 -7
  453. package/datepicker_v2/mis-crystal-design-system-datepicker_v2.metadata.json +0 -1
  454. package/datepicker_v2/package.json +0 -11
  455. package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.d.ts +0 -7
  456. package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.metadata.json +0 -1
  457. package/daterangepicker_v2/package.json +0 -11
  458. package/drawer/mis-crystal-design-system-drawer.d.ts +0 -5
  459. package/drawer/mis-crystal-design-system-drawer.metadata.json +0 -1
  460. package/drawer/package.json +0 -11
  461. package/dropdown/mis-crystal-design-system-dropdown.d.ts +0 -5
  462. package/dropdown/mis-crystal-design-system-dropdown.metadata.json +0 -1
  463. package/dropdown/package.json +0 -11
  464. package/dynamic-form/mis-crystal-design-system-dynamic-form.d.ts +0 -4
  465. package/dynamic-form/mis-crystal-design-system-dynamic-form.metadata.json +0 -1
  466. package/dynamic-form/package.json +0 -11
  467. package/esm2015/action-list/action-list.component.js +0 -161
  468. package/esm2015/action-list/action-list.module.js +0 -19
  469. package/esm2015/analytics/analytics.module.js +0 -14
  470. package/esm2015/analytics/analytics.service.js +0 -62
  471. package/esm2015/async-search-dropdown/async-dropdown.component.js +0 -243
  472. package/esm2015/async-search-dropdown/async-dropdown.module.js +0 -16
  473. package/esm2015/button/button.component.js +0 -43
  474. package/esm2015/button/button.directive.js +0 -57
  475. package/esm2015/button/button.module.js +0 -17
  476. package/esm2015/checkbox/checkbox.component.js +0 -79
  477. package/esm2015/checkbox/checkbox.module.js +0 -17
  478. package/esm2015/chip/chip.component.js +0 -31
  479. package/esm2015/chip/chip.module.js +0 -16
  480. package/esm2015/datepicker_v2/datepicker.module.js +0 -18
  481. package/esm2015/datepicker_v2/mis-crystal-design-system-datepicker_v2.js +0 -7
  482. package/esm2015/datepicker_v2/public_api.js +0 -3
  483. package/esm2015/datepicker_v2/tz-datepicker.directive.js +0 -144
  484. package/esm2015/datepicker_v2/tz-dp-container/tz-dp-container.component.js +0 -149
  485. package/esm2015/datepicker_v2/utils/index.js +0 -45
  486. package/esm2015/daterangepicker_v2/daterangepicker.module.js +0 -18
  487. package/esm2015/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.js +0 -7
  488. package/esm2015/daterangepicker_v2/public_api.js +0 -3
  489. package/esm2015/daterangepicker_v2/tz-daterangepicker.directive.js +0 -123
  490. package/esm2015/daterangepicker_v2/tz-drp-container/tz-drp-container.component.js +0 -226
  491. package/esm2015/drawer/drawer-body/drawer-body.component.js +0 -41
  492. package/esm2015/drawer/drawer.module.js +0 -28
  493. package/esm2015/drawer/drawer.service.js +0 -59
  494. package/esm2015/drawer/mis-crystal-design-system-drawer.js +0 -6
  495. package/esm2015/dropdown/calculate-container-height.directive.js +0 -40
  496. package/esm2015/dropdown/dropdown.component.js +0 -169
  497. package/esm2015/dropdown/dropdown.module.js +0 -21
  498. package/esm2015/dropdown/mis-crystal-design-system-dropdown.js +0 -6
  499. package/esm2015/dynamic-form/dynamic-form.component.js +0 -308
  500. package/esm2015/dynamic-form/dynamic-form.module.js +0 -34
  501. package/esm2015/fab/fab.component.js +0 -63
  502. package/esm2015/fab/fab.module.js +0 -16
  503. package/esm2015/input/directives/input/input.directive.js +0 -38
  504. package/esm2015/input/mis-input.component.js +0 -45
  505. package/esm2015/input/mis-input.module.js +0 -15
  506. package/esm2015/input-stepper/input-stepper/input-stepper.component.js +0 -49
  507. package/esm2015/input-stepper/input-stepper.module.js +0 -19
  508. package/esm2015/loader/loader.component.js +0 -20
  509. package/esm2015/loader/loader.module.js +0 -16
  510. package/esm2015/menu/menu-close.directive.js +0 -18
  511. package/esm2015/menu/menu.directive.js +0 -70
  512. package/esm2015/menu/menu.module.js +0 -17
  513. package/esm2015/mobile-filter/mobile-filter.component.js +0 -54
  514. package/esm2015/mobile-filter/mobile-filter.module.js +0 -15
  515. package/esm2015/modal/mis-crystal-design-system-modal.js +0 -6
  516. package/esm2015/modal/modal.module.js +0 -28
  517. package/esm2015/modal/modal.service.js +0 -72
  518. package/esm2015/modal/module-wrapper/module-wrapper.component.js +0 -33
  519. package/esm2015/multi-select-dropdown/multi-select-dropdown.component.js +0 -269
  520. package/esm2015/multi-select-dropdown/multi-select-dropdown.module.js +0 -20
  521. package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.component.js +0 -265
  522. package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.module.js +0 -20
  523. package/esm2015/phone-input/phone-input.component.js +0 -85
  524. package/esm2015/phone-input/phone-input.module.js +0 -21
  525. package/esm2015/radio-button/radio-button.component.js +0 -45
  526. package/esm2015/radio-button/radio-button.module.js +0 -17
  527. package/esm2015/ske-loader/ske-loader.component.js +0 -31
  528. package/esm2015/ske-loader/ske-loader.module.js +0 -13
  529. package/esm2015/slider/slider.component.js +0 -38
  530. package/esm2015/slider/slider.module.js +0 -20
  531. package/esm2015/snackbar/snackbar/snackbar.component.js +0 -22
  532. package/esm2015/snackbar/snackbar.module.js +0 -31
  533. package/esm2015/snackbar/snackbar.service.js +0 -48
  534. package/esm2015/specificdatepicker/mis-crystal-design-system-specificdatepicker.js +0 -7
  535. package/esm2015/specificdatepicker/public_api.js +0 -3
  536. package/esm2015/specificdatepicker/specificdatepicker.module.js +0 -20
  537. package/esm2015/specificdatepicker/tz-sdp-container/tz-sdp-container.component.js +0 -356
  538. package/esm2015/specificdatepicker/tz-specificdatepicker.directive.js +0 -179
  539. package/esm2015/specificdatepicker/utils/index.js +0 -45
  540. package/esm2015/star-rating/star-rating.component.js +0 -78
  541. package/esm2015/star-rating/star-rating.module.js +0 -13
  542. package/esm2015/switch/switch.component.js +0 -39
  543. package/esm2015/switch/switch.module.js +0 -17
  544. package/esm2015/table/custom-table-cell.directive.js +0 -42
  545. package/esm2015/table/filter/filter.component.js +0 -75
  546. package/esm2015/table/mis-crystal-design-system-table.js +0 -6
  547. package/esm2015/table/public_api.js +0 -5
  548. package/esm2015/table/sub-table/sub-table.component.js +0 -69
  549. package/esm2015/table/table.component.js +0 -200
  550. package/esm2015/table/table.module.js +0 -21
  551. package/esm2015/timepicker/mis-crystal-design-system-timepicker.js +0 -6
  552. package/esm2015/timepicker/timepicker.component.js +0 -248
  553. package/esm2015/timepicker/timepicker.directive.js +0 -62
  554. package/esm2015/timepicker/timepicker.module.js +0 -20
  555. package/esm2015/timerangepicker/timerangepicker.component.js +0 -194
  556. package/esm2015/timerangepicker/timerangepicker.module.js +0 -18
  557. package/esm2015/toast/toast.component.js +0 -28
  558. package/esm2015/toast/toast.data.service.js +0 -29
  559. package/esm2015/toast/toast.module.js +0 -28
  560. package/esm2015/toast/toast.service.js +0 -96
  561. package/esm2015/tooltip/tooltip-container/tooltip.component.js +0 -35
  562. package/esm2015/tooltip/tooltip.directive.js +0 -128
  563. package/esm2015/tooltip/tooltip.module.js +0 -19
  564. package/esm2015/virtual-scroll/virtual-scroll.component.js +0 -111
  565. package/esm2015/virtual-scroll/virtual-scroll.module.js +0 -24
  566. package/esm2015/widgets/classes/async-widget.js +0 -23
  567. package/esm2015/widgets/classes/base-widget.js +0 -32
  568. package/esm2015/widgets/classes/sync-widget.js +0 -20
  569. package/esm2015/widgets/classes/widget-group.js +0 -32
  570. package/esm2015/widgets/services/widget.service.js +0 -16
  571. package/esm2015/widgets/widgets.module.js +0 -12
  572. package/fab/mis-crystal-design-system-fab.d.ts +0 -4
  573. package/fab/mis-crystal-design-system-fab.metadata.json +0 -1
  574. package/fab/package.json +0 -11
  575. package/fesm2015/mis-crystal-design-system-action-list.js +0 -184
  576. package/fesm2015/mis-crystal-design-system-action-list.js.map +0 -1
  577. package/fesm2015/mis-crystal-design-system-analytics.js.map +0 -1
  578. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js +0 -262
  579. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js.map +0 -1
  580. package/fesm2015/mis-crystal-design-system-button.js +0 -120
  581. package/fesm2015/mis-crystal-design-system-button.js.map +0 -1
  582. package/fesm2015/mis-crystal-design-system-checkbox.js +0 -100
  583. package/fesm2015/mis-crystal-design-system-checkbox.js.map +0 -1
  584. package/fesm2015/mis-crystal-design-system-chip.js +0 -52
  585. package/fesm2015/mis-crystal-design-system-chip.js.map +0 -1
  586. package/fesm2015/mis-crystal-design-system-datepicker_v2.js +0 -357
  587. package/fesm2015/mis-crystal-design-system-datepicker_v2.js.map +0 -1
  588. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js +0 -413
  589. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js.map +0 -1
  590. package/fesm2015/mis-crystal-design-system-drawer.js +0 -153
  591. package/fesm2015/mis-crystal-design-system-drawer.js.map +0 -1
  592. package/fesm2015/mis-crystal-design-system-dropdown.js +0 -232
  593. package/fesm2015/mis-crystal-design-system-dropdown.js.map +0 -1
  594. package/fesm2015/mis-crystal-design-system-dynamic-form.js +0 -346
  595. package/fesm2015/mis-crystal-design-system-dynamic-form.js.map +0 -1
  596. package/fesm2015/mis-crystal-design-system-fab.js +0 -84
  597. package/fesm2015/mis-crystal-design-system-fab.js.map +0 -1
  598. package/fesm2015/mis-crystal-design-system-input-stepper.js +0 -73
  599. package/fesm2015/mis-crystal-design-system-input-stepper.js.map +0 -1
  600. package/fesm2015/mis-crystal-design-system-input.js +0 -99
  601. package/fesm2015/mis-crystal-design-system-input.js.map +0 -1
  602. package/fesm2015/mis-crystal-design-system-loader.js +0 -41
  603. package/fesm2015/mis-crystal-design-system-loader.js.map +0 -1
  604. package/fesm2015/mis-crystal-design-system-menu.js +0 -106
  605. package/fesm2015/mis-crystal-design-system-menu.js.map +0 -1
  606. package/fesm2015/mis-crystal-design-system-mobile-filter.js +0 -74
  607. package/fesm2015/mis-crystal-design-system-mobile-filter.js.map +0 -1
  608. package/fesm2015/mis-crystal-design-system-modal.js +0 -147
  609. package/fesm2015/mis-crystal-design-system-modal.js.map +0 -1
  610. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js +0 -293
  611. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js.map +0 -1
  612. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js +0 -289
  613. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js.map +0 -1
  614. package/fesm2015/mis-crystal-design-system-phone-input.js +0 -109
  615. package/fesm2015/mis-crystal-design-system-phone-input.js.map +0 -1
  616. package/fesm2015/mis-crystal-design-system-radio-button.js +0 -66
  617. package/fesm2015/mis-crystal-design-system-radio-button.js.map +0 -1
  618. package/fesm2015/mis-crystal-design-system-ske-loader.js +0 -49
  619. package/fesm2015/mis-crystal-design-system-ske-loader.js.map +0 -1
  620. package/fesm2015/mis-crystal-design-system-slider.js +0 -62
  621. package/fesm2015/mis-crystal-design-system-slider.js.map +0 -1
  622. package/fesm2015/mis-crystal-design-system-snackbar.js +0 -101
  623. package/fesm2015/mis-crystal-design-system-snackbar.js.map +0 -1
  624. package/fesm2015/mis-crystal-design-system-specificdatepicker.js +0 -599
  625. package/fesm2015/mis-crystal-design-system-specificdatepicker.js.map +0 -1
  626. package/fesm2015/mis-crystal-design-system-star-rating.js +0 -96
  627. package/fesm2015/mis-crystal-design-system-star-rating.js.map +0 -1
  628. package/fesm2015/mis-crystal-design-system-styles.js +0 -4
  629. package/fesm2015/mis-crystal-design-system-styles.js.map +0 -1
  630. package/fesm2015/mis-crystal-design-system-switch.js +0 -60
  631. package/fesm2015/mis-crystal-design-system-switch.js.map +0 -1
  632. package/fesm2015/mis-crystal-design-system-table.js +0 -406
  633. package/fesm2015/mis-crystal-design-system-table.js.map +0 -1
  634. package/fesm2015/mis-crystal-design-system-timepicker.js +0 -330
  635. package/fesm2015/mis-crystal-design-system-timepicker.js.map +0 -1
  636. package/fesm2015/mis-crystal-design-system-timerangepicker.js.map +0 -1
  637. package/fesm2015/mis-crystal-design-system-toast.js +0 -174
  638. package/fesm2015/mis-crystal-design-system-toast.js.map +0 -1
  639. package/fesm2015/mis-crystal-design-system-tooltip.js +0 -183
  640. package/fesm2015/mis-crystal-design-system-tooltip.js.map +0 -1
  641. package/fesm2015/mis-crystal-design-system-utils.js.map +0 -1
  642. package/fesm2015/mis-crystal-design-system-virtual-scroll.js +0 -141
  643. package/fesm2015/mis-crystal-design-system-virtual-scroll.js.map +0 -1
  644. package/fesm2015/mis-crystal-design-system-widgets.js.map +0 -1
  645. package/fesm2015/mis-crystal-design-system.js.map +0 -1
  646. package/input/mis-crystal-design-system-input.d.ts +0 -4
  647. package/input/mis-crystal-design-system-input.metadata.json +0 -1
  648. package/input/package.json +0 -11
  649. package/input-stepper/mis-crystal-design-system-input-stepper.d.ts +0 -4
  650. package/input-stepper/mis-crystal-design-system-input-stepper.metadata.json +0 -1
  651. package/input-stepper/package.json +0 -11
  652. package/loader/mis-crystal-design-system-loader.d.ts +0 -4
  653. package/loader/mis-crystal-design-system-loader.metadata.json +0 -1
  654. package/loader/package.json +0 -11
  655. package/menu/mis-crystal-design-system-menu.d.ts +0 -4
  656. package/menu/mis-crystal-design-system-menu.metadata.json +0 -1
  657. package/menu/package.json +0 -11
  658. package/mis-crystal-design-system.d.ts +0 -4
  659. package/mis-crystal-design-system.metadata.json +0 -1
  660. package/mobile-filter/mis-crystal-design-system-mobile-filter.d.ts +0 -4
  661. package/mobile-filter/mis-crystal-design-system-mobile-filter.metadata.json +0 -1
  662. package/mobile-filter/package.json +0 -11
  663. package/modal/mis-crystal-design-system-modal.d.ts +0 -5
  664. package/modal/mis-crystal-design-system-modal.metadata.json +0 -1
  665. package/modal/package.json +0 -11
  666. package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.d.ts +0 -4
  667. package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.metadata.json +0 -1
  668. package/multi-select-dropdown/package.json +0 -11
  669. package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.d.ts +0 -4
  670. package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.metadata.json +0 -1
  671. package/nested-multi-select-dropdown/package.json +0 -11
  672. package/phone-input/mis-crystal-design-system-phone-input.d.ts +0 -4
  673. package/phone-input/mis-crystal-design-system-phone-input.metadata.json +0 -1
  674. package/phone-input/package.json +0 -11
  675. package/radio-button/mis-crystal-design-system-radio-button.d.ts +0 -4
  676. package/radio-button/mis-crystal-design-system-radio-button.metadata.json +0 -1
  677. package/radio-button/package.json +0 -11
  678. package/ske-loader/mis-crystal-design-system-ske-loader.d.ts +0 -4
  679. package/ske-loader/mis-crystal-design-system-ske-loader.metadata.json +0 -1
  680. package/ske-loader/package.json +0 -11
  681. package/slider/mis-crystal-design-system-slider.d.ts +0 -4
  682. package/slider/mis-crystal-design-system-slider.metadata.json +0 -1
  683. package/slider/package.json +0 -11
  684. package/snackbar/mis-crystal-design-system-snackbar.d.ts +0 -4
  685. package/snackbar/mis-crystal-design-system-snackbar.metadata.json +0 -1
  686. package/snackbar/package.json +0 -11
  687. package/specificdatepicker/mis-crystal-design-system-specificdatepicker.d.ts +0 -7
  688. package/specificdatepicker/mis-crystal-design-system-specificdatepicker.metadata.json +0 -1
  689. package/specificdatepicker/package.json +0 -11
  690. package/star-rating/mis-crystal-design-system-star-rating.d.ts +0 -4
  691. package/star-rating/mis-crystal-design-system-star-rating.metadata.json +0 -1
  692. package/star-rating/package.json +0 -11
  693. package/styles/mis-crystal-design-system-styles.d.ts +0 -4
  694. package/styles/mis-crystal-design-system-styles.metadata.json +0 -1
  695. package/styles/package.json +0 -11
  696. package/switch/mis-crystal-design-system-switch.d.ts +0 -4
  697. package/switch/mis-crystal-design-system-switch.metadata.json +0 -1
  698. package/switch/package.json +0 -11
  699. package/table/mis-crystal-design-system-table.d.ts +0 -5
  700. package/table/mis-crystal-design-system-table.metadata.json +0 -1
  701. package/table/package.json +0 -11
  702. package/timepicker/mis-crystal-design-system-timepicker.d.ts +0 -5
  703. package/timepicker/mis-crystal-design-system-timepicker.metadata.json +0 -1
  704. package/timepicker/package.json +0 -11
  705. package/timerangepicker/mis-crystal-design-system-timerangepicker.d.ts +0 -4
  706. package/timerangepicker/mis-crystal-design-system-timerangepicker.metadata.json +0 -1
  707. package/timerangepicker/package.json +0 -11
  708. package/toast/mis-crystal-design-system-toast.d.ts +0 -4
  709. package/toast/mis-crystal-design-system-toast.metadata.json +0 -1
  710. package/toast/package.json +0 -11
  711. package/tooltip/mis-crystal-design-system-tooltip.d.ts +0 -4
  712. package/tooltip/mis-crystal-design-system-tooltip.metadata.json +0 -1
  713. package/tooltip/package.json +0 -11
  714. package/utils/mis-crystal-design-system-utils.d.ts +0 -4
  715. package/utils/mis-crystal-design-system-utils.metadata.json +0 -1
  716. package/utils/package.json +0 -11
  717. package/virtual-scroll/mis-crystal-design-system-virtual-scroll.d.ts +0 -4
  718. package/virtual-scroll/mis-crystal-design-system-virtual-scroll.metadata.json +0 -1
  719. package/virtual-scroll/package.json +0 -11
  720. package/widgets/mis-crystal-design-system-widgets.d.ts +0 -4
  721. package/widgets/mis-crystal-design-system-widgets.metadata.json +0 -1
  722. package/widgets/package.json +0 -11
  723. /package/{esm2015/action-list/index.js → esm2022/action-list/index.mjs} +0 -0
  724. /package/{esm2015/action-list/mis-crystal-design-system-action-list.js → esm2022/action-list/mis-crystal-design-system-action-list.mjs} +0 -0
  725. /package/{esm2015/action-list/public_api.js → esm2022/action-list/public_api.mjs} +0 -0
  726. /package/{esm2015/analytics/index.js → esm2022/analytics/index.mjs} +0 -0
  727. /package/{esm2015/analytics/mis-crystal-design-system-analytics.js → esm2022/analytics/mis-crystal-design-system-analytics.mjs} +0 -0
  728. /package/{esm2015/analytics/public_api.js → esm2022/analytics/public_api.mjs} +0 -0
  729. /package/{esm2015/async-search-dropdown/index.js → esm2022/async-search-dropdown/index.mjs} +0 -0
  730. /package/{esm2015/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.js → esm2022/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.mjs} +0 -0
  731. /package/{esm2015/async-search-dropdown/public_api.js → esm2022/async-search-dropdown/public_api.mjs} +0 -0
  732. /package/{esm2015/button/index.js → esm2022/button/index.mjs} +0 -0
  733. /package/{esm2015/button/mis-crystal-design-system-button.js → esm2022/button/mis-crystal-design-system-button.mjs} +0 -0
  734. /package/{esm2015/button/public_api.js → esm2022/button/public_api.mjs} +0 -0
  735. /package/{esm2015/checkbox/index.js → esm2022/checkbox/index.mjs} +0 -0
  736. /package/{esm2015/checkbox/mis-crystal-design-system-checkbox.js → esm2022/checkbox/mis-crystal-design-system-checkbox.mjs} +0 -0
  737. /package/{esm2015/checkbox/public_api.js → esm2022/checkbox/public_api.mjs} +0 -0
  738. /package/{esm2015/chip/index.js → esm2022/chip/index.mjs} +0 -0
  739. /package/{esm2015/chip/mis-crystal-design-system-chip.js → esm2022/chip/mis-crystal-design-system-chip.mjs} +0 -0
  740. /package/{esm2015/chip/public_api.js → esm2022/chip/public_api.mjs} +0 -0
  741. /package/{esm2015/datepicker_v2/datepicker-constants.js → esm2022/datepicker_v2/datepicker-constants.mjs} +0 -0
  742. /package/{esm2015/datepicker_v2/index.js → esm2022/datepicker_v2/index.mjs} +0 -0
  743. /package/{esm2015/datepicker_v2/models/dp-config.model.js → esm2022/datepicker_v2/models/dp-config.model.mjs} +0 -0
  744. /package/{esm2015/daterangepicker_v2/daterangepicker-constants.js → esm2022/daterangepicker_v2/daterangepicker-constants.mjs} +0 -0
  745. /package/{esm2015/daterangepicker_v2/index.js → esm2022/daterangepicker_v2/index.mjs} +0 -0
  746. /package/{esm2015/daterangepicker_v2/models/drp-config.model.js → esm2022/daterangepicker_v2/models/drp-config.model.mjs} +0 -0
  747. /package/{esm2015/drawer/drawer-constants.js → esm2022/drawer/drawer-constants.mjs} +0 -0
  748. /package/{esm2015/drawer/index.js → esm2022/drawer/index.mjs} +0 -0
  749. /package/{esm2015/drawer/public_api.js → esm2022/drawer/public_api.mjs} +0 -0
  750. /package/{esm2015/dropdown/index.js → esm2022/dropdown/index.mjs} +0 -0
  751. /package/{esm2015/dropdown/public_api.js → esm2022/dropdown/public_api.mjs} +0 -0
  752. /package/{esm2015/dynamic-form/dynamic-form.namespace.js → esm2022/dynamic-form/dynamic-form.namespace.mjs} +0 -0
  753. /package/{esm2015/dynamic-form/index.js → esm2022/dynamic-form/index.mjs} +0 -0
  754. /package/{esm2015/dynamic-form/mis-crystal-design-system-dynamic-form.js → esm2022/dynamic-form/mis-crystal-design-system-dynamic-form.mjs} +0 -0
  755. /package/{esm2015/dynamic-form/public_api.js → esm2022/dynamic-form/public_api.mjs} +0 -0
  756. /package/{esm2015/fab/index.js → esm2022/fab/index.mjs} +0 -0
  757. /package/{esm2015/fab/mis-crystal-design-system-fab.js → esm2022/fab/mis-crystal-design-system-fab.mjs} +0 -0
  758. /package/{esm2015/fab/public_api.js → esm2022/fab/public_api.mjs} +0 -0
  759. /package/{esm2015/index.js → esm2022/index.mjs} +0 -0
  760. /package/{esm2015/input/index.js → esm2022/input/index.mjs} +0 -0
  761. /package/{esm2015/input/mis-crystal-design-system-input.js → esm2022/input/mis-crystal-design-system-input.mjs} +0 -0
  762. /package/{esm2015/input/public_api.js → esm2022/input/public_api.mjs} +0 -0
  763. /package/{esm2015/input-stepper/index.js → esm2022/input-stepper/index.mjs} +0 -0
  764. /package/{esm2015/input-stepper/mis-crystal-design-system-input-stepper.js → esm2022/input-stepper/mis-crystal-design-system-input-stepper.mjs} +0 -0
  765. /package/{esm2015/input-stepper/public_api.js → esm2022/input-stepper/public_api.mjs} +0 -0
  766. /package/{esm2015/loader/index.js → esm2022/loader/index.mjs} +0 -0
  767. /package/{esm2015/loader/mis-crystal-design-system-loader.js → esm2022/loader/mis-crystal-design-system-loader.mjs} +0 -0
  768. /package/{esm2015/loader/public_api.js → esm2022/loader/public_api.mjs} +0 -0
  769. /package/{esm2015/menu/index.js → esm2022/menu/index.mjs} +0 -0
  770. /package/{esm2015/menu/mis-crystal-design-system-menu.js → esm2022/menu/mis-crystal-design-system-menu.mjs} +0 -0
  771. /package/{esm2015/menu/public_api.js → esm2022/menu/public_api.mjs} +0 -0
  772. /package/{esm2015/mis-crystal-design-system.js → esm2022/mis-crystal-design-system.mjs} +0 -0
  773. /package/{esm2015/mobile-filter/index.js → esm2022/mobile-filter/index.mjs} +0 -0
  774. /package/{esm2015/mobile-filter/mis-crystal-design-system-mobile-filter.js → esm2022/mobile-filter/mis-crystal-design-system-mobile-filter.mjs} +0 -0
  775. /package/{esm2015/mobile-filter/public_api.js → esm2022/mobile-filter/public_api.mjs} +0 -0
  776. /package/{esm2015/modal/index.js → esm2022/modal/index.mjs} +0 -0
  777. /package/{esm2015/modal/modal-constants.js → esm2022/modal/modal-constants.mjs} +0 -0
  778. /package/{esm2015/modal/modal-ref.js → esm2022/modal/modal-ref.mjs} +0 -0
  779. /package/{esm2015/modal/public_api.js → esm2022/modal/public_api.mjs} +0 -0
  780. /package/{esm2015/multi-select-dropdown/index.js → esm2022/multi-select-dropdown/index.mjs} +0 -0
  781. /package/{esm2015/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.js → esm2022/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.mjs} +0 -0
  782. /package/{esm2015/multi-select-dropdown/public_api.js → esm2022/multi-select-dropdown/public_api.mjs} +0 -0
  783. /package/{esm2015/nested-multi-select-dropdown/index.js → esm2022/nested-multi-select-dropdown/index.mjs} +0 -0
  784. /package/{esm2015/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.js → esm2022/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.mjs} +0 -0
  785. /package/{esm2015/nested-multi-select-dropdown/public_api.js → esm2022/nested-multi-select-dropdown/public_api.mjs} +0 -0
  786. /package/{esm2015/phone-input/index.js → esm2022/phone-input/index.mjs} +0 -0
  787. /package/{esm2015/phone-input/mis-crystal-design-system-phone-input.js → esm2022/phone-input/mis-crystal-design-system-phone-input.mjs} +0 -0
  788. /package/{esm2015/phone-input/public_api.js → esm2022/phone-input/public_api.mjs} +0 -0
  789. /package/{esm2015/public-api.js → esm2022/public-api.mjs} +0 -0
  790. /package/{esm2015/radio-button/index.js → esm2022/radio-button/index.mjs} +0 -0
  791. /package/{esm2015/radio-button/mis-crystal-design-system-radio-button.js → esm2022/radio-button/mis-crystal-design-system-radio-button.mjs} +0 -0
  792. /package/{esm2015/radio-button/public_api.js → esm2022/radio-button/public_api.mjs} +0 -0
  793. /package/{esm2015/ske-loader/index.js → esm2022/ske-loader/index.mjs} +0 -0
  794. /package/{esm2015/ske-loader/mis-crystal-design-system-ske-loader.js → esm2022/ske-loader/mis-crystal-design-system-ske-loader.mjs} +0 -0
  795. /package/{esm2015/ske-loader/public_api.js → esm2022/ske-loader/public_api.mjs} +0 -0
  796. /package/{esm2015/slider/index.js → esm2022/slider/index.mjs} +0 -0
  797. /package/{esm2015/slider/mis-crystal-design-system-slider.js → esm2022/slider/mis-crystal-design-system-slider.mjs} +0 -0
  798. /package/{esm2015/slider/public_api.js → esm2022/slider/public_api.mjs} +0 -0
  799. /package/{esm2015/snackbar/index.js → esm2022/snackbar/index.mjs} +0 -0
  800. /package/{esm2015/snackbar/mis-crystal-design-system-snackbar.js → esm2022/snackbar/mis-crystal-design-system-snackbar.mjs} +0 -0
  801. /package/{esm2015/snackbar/public_api.js → esm2022/snackbar/public_api.mjs} +0 -0
  802. /package/{esm2015/specificdatepicker/daterangepicker-constants.js → esm2022/specificdatepicker/daterangepicker-constants.mjs} +0 -0
  803. /package/{esm2015/specificdatepicker/index.js → esm2022/specificdatepicker/index.mjs} +0 -0
  804. /package/{esm2015/specificdatepicker/models/sdp-config.model.js → esm2022/specificdatepicker/models/sdp-config.model.mjs} +0 -0
  805. /package/{esm2015/star-rating/index.js → esm2022/star-rating/index.mjs} +0 -0
  806. /package/{esm2015/star-rating/mis-crystal-design-system-star-rating.js → esm2022/star-rating/mis-crystal-design-system-star-rating.mjs} +0 -0
  807. /package/{esm2015/star-rating/public_api.js → esm2022/star-rating/public_api.mjs} +0 -0
  808. /package/{esm2015/styles/index.js → esm2022/styles/index.mjs} +0 -0
  809. /package/{esm2015/styles/mis-crystal-design-system-styles.js → esm2022/styles/mis-crystal-design-system-styles.mjs} +0 -0
  810. /package/{esm2015/styles/public_api.js → esm2022/styles/public_api.mjs} +0 -0
  811. /package/{esm2015/switch/index.js → esm2022/switch/index.mjs} +0 -0
  812. /package/{esm2015/switch/mis-crystal-design-system-switch.js → esm2022/switch/mis-crystal-design-system-switch.mjs} +0 -0
  813. /package/{esm2015/switch/public_api.js → esm2022/switch/public_api.mjs} +0 -0
  814. /package/{esm2015/table/index.js → esm2022/table/index.mjs} +0 -0
  815. /package/{esm2015/timepicker/index.js → esm2022/timepicker/index.mjs} +0 -0
  816. /package/{esm2015/timepicker/public_api.js → esm2022/timepicker/public_api.mjs} +0 -0
  817. /package/{esm2015/timepicker/time.namespace.js → esm2022/timepicker/time.namespace.mjs} +0 -0
  818. /package/{esm2015/timerangepicker/index.js → esm2022/timerangepicker/index.mjs} +0 -0
  819. /package/{esm2015/timerangepicker/mis-crystal-design-system-timerangepicker.js → esm2022/timerangepicker/mis-crystal-design-system-timerangepicker.mjs} +0 -0
  820. /package/{esm2015/timerangepicker/public_api.js → esm2022/timerangepicker/public_api.mjs} +0 -0
  821. /package/{esm2015/timerangepicker/timerange.namespace.js → esm2022/timerangepicker/timerange.namespace.mjs} +0 -0
  822. /package/{esm2015/toast/index.js → esm2022/toast/index.mjs} +0 -0
  823. /package/{esm2015/toast/mis-crystal-design-system-toast.js → esm2022/toast/mis-crystal-design-system-toast.mjs} +0 -0
  824. /package/{esm2015/toast/public_api.js → esm2022/toast/public_api.mjs} +0 -0
  825. /package/{esm2015/tooltip/index.js → esm2022/tooltip/index.mjs} +0 -0
  826. /package/{esm2015/tooltip/mis-crystal-design-system-tooltip.js → esm2022/tooltip/mis-crystal-design-system-tooltip.mjs} +0 -0
  827. /package/{esm2015/tooltip/models/tooltip.model.js → esm2022/tooltip/models/tooltip.model.mjs} +0 -0
  828. /package/{esm2015/tooltip/public_api.js → esm2022/tooltip/public_api.mjs} +0 -0
  829. /package/{esm2015/utils/index.js → esm2022/utils/index.mjs} +0 -0
  830. /package/{esm2015/utils/mis-crystal-design-system-utils.js → esm2022/utils/mis-crystal-design-system-utils.mjs} +0 -0
  831. /package/{esm2015/virtual-scroll/index.js → esm2022/virtual-scroll/index.mjs} +0 -0
  832. /package/{esm2015/virtual-scroll/mis-crystal-design-system-virtual-scroll.js → esm2022/virtual-scroll/mis-crystal-design-system-virtual-scroll.mjs} +0 -0
  833. /package/{esm2015/virtual-scroll/public_api.js → esm2022/virtual-scroll/public_api.mjs} +0 -0
  834. /package/{esm2015/virtual-scroll/virtual-scroll.constants.js → esm2022/virtual-scroll/virtual-scroll.constants.mjs} +0 -0
  835. /package/{esm2015/widgets/index.js → esm2022/widgets/index.mjs} +0 -0
  836. /package/{esm2015/widgets/interfaces/widgets.model.js → esm2022/widgets/interfaces/widgets.model.mjs} +0 -0
  837. /package/{esm2015/widgets/mis-crystal-design-system-widgets.js → esm2022/widgets/mis-crystal-design-system-widgets.mjs} +0 -0
  838. /package/{esm2015/widgets/public_api.js → esm2022/widgets/public_api.mjs} +0 -0
@@ -1,16 +0,0 @@
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
@@ -1 +0,0 @@
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,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hF5B,EAAAK,UAAAmB,YAAA,SAAYQ,GACL9B,KAAKC,aAIN,OAAJ2B,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"]}
@@ -1,279 +0,0 @@
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
- this.disableCopyPaste = false;
19
- // tslint:disable-next-line
20
- this.onSelect = new core.EventEmitter(true); // emit selected values
21
- this.searchInput = new forms.FormControl();
22
- this.data = [];
23
- this.opened = false;
24
- this.loading = false;
25
- this.error = false;
26
- // tslint:disable-next-line
27
- this.selections = new Map();
28
- this.searchQueryChange = new core.EventEmitter();
29
- this.clear = new core.EventEmitter(false);
30
- this.itemSelected = new core.EventEmitter();
31
- this.itemRemoved = new core.EventEmitter();
32
- this.handleControlChanges = function (values) {
33
- values.forEach(function (el) {
34
- _this.selectData(el, true);
35
- });
36
- // tslint:disable-next-line
37
- };
38
- }
39
- AsyncDropdownComponent.prototype.ngOnInit = function () {
40
- var _this = this;
41
- var _a, _b;
42
- if (this.multi && !this.uniqueKey) {
43
- throw new Error("[uniqueKey] required in multi mode.");
44
- }
45
- if (this.disabled) {
46
- this.searchInput.disable();
47
- }
48
- this.searchSubscription = this.searchInput.valueChanges
49
- .pipe(
50
- // filter(val => val && val.length >= this.minInputLength),
51
- operators.tap(function (val) { return _this.searchQueryChange.emit(val); }), operators.debounceTime(this.debounceTime), operators.distinctUntilChanged())
52
- .subscribe(function (res) {
53
- _this._ngZone.run(function () {
54
- var _a;
55
- if ((res === null || res === void 0 ? void 0 : res.length) < _this.minInputLength || !(res === null || res === void 0 ? void 0 : res.length)) {
56
- _this.closeDropdown();
57
- return;
58
- }
59
- else if ((res === null || res === void 0 ? void 0 : res.length) > _this.minInputLength && _this.httpStream) {
60
- _this.loading = true;
61
- _this.error = false;
62
- if (!((_a = _this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()))
63
- _this.openDropdown(_this.dd, _this.origin.nativeElement);
64
- _this.httpStream(res).subscribe(function (list) {
65
- var _a;
66
- _this.loading = false;
67
- _this.data = list;
68
- if (!((_a = _this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) && list.length > 0) {
69
- _this.openDropdown(_this.dd, _this.origin.nativeElement);
70
- }
71
- }, function (error) {
72
- _this.loading = false;
73
- _this.error = true;
74
- });
75
- }
76
- });
77
- });
78
- if ((_a = this.control) === null || _a === void 0 ? void 0 : _a.value) {
79
- this.handleControlChanges(this.control.value);
80
- }
81
- this.controlSubscription = (_b = this.control) === null || _b === void 0 ? void 0 : _b.valueChanges.subscribe(this.handleControlChanges);
82
- };
83
- AsyncDropdownComponent.prototype.ngOnChanges = function (changes) {
84
- var _a;
85
- if (changes && ((_a = changes === null || changes === void 0 ? void 0 : changes.searchValue) === null || _a === void 0 ? void 0 : _a.currentValue)) {
86
- this.searchInput.patchValue(changes.searchValue.currentValue);
87
- }
88
- if (changes && changes.disabled) {
89
- this.searchInput.enable();
90
- if (this.disabled) {
91
- this.searchInput.disable();
92
- }
93
- }
94
- };
95
- AsyncDropdownComponent.prototype.ngOnDestroy = function () {
96
- var _a, _b;
97
- (_a = this.searchSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
98
- (_b = this.defaultCallSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
99
- };
100
- AsyncDropdownComponent.prototype.openDropdown = function (template, origin) {
101
- var _this = this;
102
- var positionStrategy = this.overlay
103
- .position()
104
- .flexibleConnectedTo(origin)
105
- .withPositions([
106
- new overlay.ConnectionPositionPair({ originX: "start", originY: "bottom" }, { overlayX: "start", overlayY: "top" }),
107
- new overlay.ConnectionPositionPair({ originX: "start", originY: "top" }, { overlayX: "start", overlayY: "bottom" })
108
- ])
109
- .withPush(true);
110
- var configs = new overlay.OverlayConfig({
111
- hasBackdrop: true,
112
- backdropClass: "cdk-overlay-transparent-backdrop",
113
- scrollStrategy: this.overlay.scrollStrategies.reposition(),
114
- positionStrategy: positionStrategy,
115
- width: origin.clientWidth
116
- });
117
- this.overlayRef = this.overlay.create(configs);
118
- this.overlayRef.attach(new portal.TemplatePortal(template, this.viewContainerRef));
119
- this.overlayRef.backdropClick().subscribe(function (res) {
120
- _this.closeDropdown();
121
- });
122
- };
123
- /**
124
- * closes the dropdown
125
- */
126
- AsyncDropdownComponent.prototype.closeDropdown = function () {
127
- var _a;
128
- this.opened = false;
129
- (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
130
- this.data = [];
131
- };
132
- /**
133
- *
134
- * @param item item to select
135
- * if item property disabled is set to true, selection will be disabled
136
- * @param effectedFromOutside set to true if calling from parent component, if true will focus on search input
137
- */
138
- AsyncDropdownComponent.prototype.selectData = function (item, effectedFromOutside) {
139
- var _this = this;
140
- if (effectedFromOutside === void 0) { effectedFromOutside = true; }
141
- if (item.disabled) {
142
- return;
143
- }
144
- this.itemSelected.emit(item);
145
- if (!this.multi) {
146
- this.searchInput.patchValue(item[this.displayKey], { emitEvent: false });
147
- this.setControlValue(item);
148
- }
149
- else {
150
- if (!this.selections.has(item[this.uniqueKey])) {
151
- this.selections.set(item[this.uniqueKey], item);
152
- }
153
- this.setControlValue(this.selectedItems);
154
- if (!effectedFromOutside) {
155
- setTimeout(function () {
156
- _this.input.nativeElement.focus();
157
- _this.input.nativeElement.scrollIntoView();
158
- }, 10);
159
- }
160
- this.searchInput.patchValue("");
161
- this.data = [];
162
- }
163
- this.closeDropdown();
164
- };
165
- /**
166
- *
167
- * @param item remove item from selected list
168
- */
169
- AsyncDropdownComponent.prototype.removeItem = function (item) {
170
- this.itemRemoved.emit(item);
171
- this.selections.delete(item[this.uniqueKey]);
172
- this.setControlValue(this.selectedItems);
173
- // tslint:disable-next-line
174
- this.input["nativeElement"].focus();
175
- };
176
- AsyncDropdownComponent.prototype.setControlValue = function (value) {
177
- var _a;
178
- this.onSelect.emit(value);
179
- (_a = this.control) === null || _a === void 0 ? void 0 : _a.patchValue(value, { emitEvent: false });
180
- };
181
- Object.defineProperty(AsyncDropdownComponent.prototype, "selectedItems", {
182
- /**
183
- * @returns list of selected items
184
- */
185
- get: function () {
186
- return Array.from(this.selections.values());
187
- },
188
- enumerable: false,
189
- configurable: true
190
- });
191
- AsyncDropdownComponent.prototype.removeInputValue = function () {
192
- this.searchInput.reset();
193
- this.data = [];
194
- this.clear.emit(true);
195
- };
196
- AsyncDropdownComponent.prototype.defaultCall = function () {
197
- var _this = this;
198
- if (this.minInputLength === -1) {
199
- this.loading = true;
200
- this.defaultCallSubscription = this.httpStream(this.searchInput.value || '').subscribe(function (list) {
201
- var _a, _b;
202
- _this.loading = false;
203
- _this.data = list;
204
- if (!((_a = _this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) && ((_b = _this.data) === null || _b === void 0 ? void 0 : _b.length) > 0) {
205
- _this.openDropdown(_this.dd, _this.origin.nativeElement);
206
- }
207
- }, function (error) {
208
- _this.loading = false;
209
- _this.error = true;
210
- });
211
- }
212
- };
213
- return AsyncDropdownComponent;
214
- }());
215
- AsyncDropdownComponent.decorators = [
216
- { type: core.Component, args: [{
217
- selector: "mis-async-search-dropdown",
218
- 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 *ngIf=\"disableCopyPaste; else enableCopyPaste\" [ngClass]=\"{'ip-md': size === 'md', 'ip-sm': size === 'sm'}\" oncopy=\"return false;\" onpaste=\"return false\" oncut=\"return false\" tabindex=\"0\" type=\"text\" class=\"black-text h6\" #input [placeholder]=\"placeholder\" [formControl]=\"searchInput\" (focus)=\"defaultCall()\"/>\n <ng-template #enableCopyPaste>\n <input [ngClass]=\"{'ip-md': size === 'md', 'ip-sm': size === 'sm'}\" tabindex=\"0\" type=\"text\" class=\"black-text h6\" #input [placeholder]=\"placeholder\" [formControl]=\"searchInput\" (focus)=\"defaultCall()\" />\n </ng-template>\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",
219
- 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;overflow-wrap:anywhere;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}"]
220
- },] }
221
- ];
222
- AsyncDropdownComponent.ctorParameters = function () { return [
223
- { type: overlay.Overlay },
224
- { type: core.ViewContainerRef },
225
- { type: core.NgZone }
226
- ]; };
227
- AsyncDropdownComponent.propDecorators = {
228
- height: [{ type: core.Input }],
229
- size: [{ type: core.Input }],
230
- httpStream: [{ type: core.Input }],
231
- displayKey: [{ type: core.Input }],
232
- secondaryDisplayKey: [{ type: core.Input }],
233
- placeholder: [{ type: core.Input }],
234
- debounceTime: [{ type: core.Input }],
235
- minInputLength: [{ type: core.Input }],
236
- multi: [{ type: core.Input }],
237
- uniqueKey: [{ type: core.Input }],
238
- control: [{ type: core.Input }],
239
- disabled: [{ type: core.Input }],
240
- readonly: [{ type: core.Input }],
241
- disableCopyPaste: [{ type: core.Input }],
242
- origin: [{ type: core.ViewChild, args: ["ddBtn", { static: false },] }],
243
- input: [{ type: core.ViewChild, args: ["input", { static: false },] }],
244
- dd: [{ type: core.ViewChild, args: ["dd", { static: false },] }],
245
- customItem: [{ type: core.ContentChild, args: ["misCustomItem", { static: false },] }],
246
- customLoader: [{ type: core.ContentChild, args: ["asyncCustomLoader", { static: false },] }],
247
- onSelect: [{ type: core.Output }],
248
- selections: [{ type: core.Input }],
249
- searchValue: [{ type: core.Input }],
250
- searchQueryChange: [{ type: core.Output }],
251
- clear: [{ type: core.Output }],
252
- itemSelected: [{ type: core.Output }],
253
- itemRemoved: [{ type: core.Output }]
254
- };
255
-
256
- var AsyncDropdownModule = /** @class */ (function () {
257
- function AsyncDropdownModule() {
258
- }
259
- return AsyncDropdownModule;
260
- }());
261
- AsyncDropdownModule.decorators = [
262
- { type: core.NgModule, args: [{
263
- declarations: [AsyncDropdownComponent],
264
- imports: [common.CommonModule, overlay.OverlayModule, forms.ReactiveFormsModule, forms.FormsModule, loader.LoaderModule],
265
- exports: [AsyncDropdownComponent]
266
- },] }
267
- ];
268
-
269
- /**
270
- * Generated bundle index. Do not edit.
271
- */
272
-
273
- exports.AsyncDropdownComponent = AsyncDropdownComponent;
274
- exports.AsyncDropdownModule = AsyncDropdownModule;
275
-
276
- Object.defineProperty(exports, '__esModule', { value: true });
277
-
278
- })));
279
- //# sourceMappingURL=mis-crystal-design-system-async-search-dropdown.umd.js.map
@@ -1 +0,0 @@
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 @Input() disableCopyPaste: boolean = false;\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 @Input() selections: Map<string, any> = new Map();\n private searchSubscription: Subscription;\n private defaultCallSubscription: 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 this.defaultCallSubscription?.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 defaultCall(): void {\n if (this.minInputLength === -1) {\n this.loading = true;\n this.defaultCallSubscription = this.httpStream(this.searchInput.value || '').subscribe(list => {\n this.loading = false;\n this.data = list;\n if (!this.overlayRef?.hasAttached() && this.data?.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","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","ContentChild","Output","NgModule","CommonModule","OverlayModule","ReactiveFormsModule","FormsModule","LoaderModule"],"mappings":";;;;;;;QAiCE,gCAAoB,OAAgB,EAAU,gBAAkC,EAAU,OAAe;YAAzG,iBAA8G;YAA1F,YAAO,GAAP,OAAO,CAAS;YAAU,qBAAgB,GAAhB,gBAAgB,CAAkB;YAAU,YAAO,GAAP,OAAO,CAAQ;YAEhG,SAAI,GAAgB,IAAI,CAAA;YAIxB,gBAAW,GAAG,QAAQ,CAAC;YACvB,iBAAY,GAAG,GAAG,CAAC;YACnB,mBAAc,GAAG,CAAC,CAAC;YACnB,U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A,UAAK;2BACLA,UAAK;2BACLA,UAAK;mCACLA,UAAK;yBACLC,cAAS,SAAC,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;wBACpCA,cAAS,SAAC,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;qBACpCA,cAAS,SAAC,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;6BACjCC,iBAAY,SAAC,eAAe,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;+BAE/CA,iBAAY,SAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAC;2BAGlDC,WAAM;6BAONH,UAAK;8BAKLA,UAAK;oCACLG,WAAM;wBACNA,WAAM;+BACNA,WAAM;8BACNA,WAAM;;;;QC5DT;;;;;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;;;;;;;;;;;;;"}
@@ -1,2 +0,0 @@
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,a,s,r){"use strict";var l=function(){function e(e,t,n){var a=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.disableCopyPaste=!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){a.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(a.tap((function(e){return n.searchQueryChange.emit(e)})),a.debounceTime(this.debounceTime),a.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,t;null===(e=this.searchSubscription)||void 0===e||e.unsubscribe(),null===(t=this.defaultCallSubscription)||void 0===t||t.unsubscribe()},e.prototype.openDropdown=function(e,i){var o=this,a=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),s=new t.OverlayConfig({hasBackdrop:!0,backdropClass:"cdk-overlay-transparent-backdrop",scrollStrategy:this.overlay.scrollStrategies.reposition(),positionStrategy:a,width:i.clientWidth});this.overlayRef=this.overlay.create(s),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.prototype.defaultCall=function(){var e=this;-1===this.minInputLength&&(this.loading=!0,this.defaultCallSubscription=this.httpStream(this.searchInput.value||"").subscribe((function(t){var n,i;e.loading=!1,e.data=t,!(null===(n=e.overlayRef)||void 0===n?void 0:n.hasAttached())&&(null===(i=e.data)||void 0===i?void 0:i.length)>0&&e.openDropdown(e.dd,e.origin.nativeElement)}),(function(t){e.loading=!1,e.error=!0})))},e}();l.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 *ngIf="disableCopyPaste; else enableCopyPaste" [ngClass]="{\'ip-md\': size === \'md\', \'ip-sm\': size === \'sm\'}" oncopy="return false;" onpaste="return false" oncut="return false" tabindex="0" type="text" class="black-text h6" #input [placeholder]="placeholder" [formControl]="searchInput" (focus)="defaultCall()"/>\n <ng-template #enableCopyPaste>\n <input [ngClass]="{\'ip-md\': size === \'md\', \'ip-sm\': size === \'sm\'}" tabindex="0" type="text" class="black-text h6" #input [placeholder]="placeholder" [formControl]="searchInput" (focus)="defaultCall()" />\n </ng-template>\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;overflow-wrap:anywhere;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}"]}]}],l.ctorParameters=function(){return[{type:t.Overlay},{type:i.ViewContainerRef},{type:i.NgZone}]},l.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}],disableCopyPaste:[{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}],selections:[{type:i.Input}],searchValue:[{type:i.Input}],searchQueryChange:[{type:i.Output}],clear:[{type:i.Output}],itemSelected:[{type:i.Output}],itemRemoved:[{type:i.Output}]};var d=function(){};d.decorators=[{type:i.NgModule,args:[{declarations:[l],imports:[s.CommonModule,t.OverlayModule,o.ReactiveFormsModule,o.FormsModule,r.LoaderModule],exports:[l]}]}],e.AsyncDropdownComponent=l,e.AsyncDropdownModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
2
- //# sourceMappingURL=mis-crystal-design-system-async-search-dropdown.umd.min.js.map
@@ -1 +0,0 @@
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","disableCopyPaste","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","defaultCallSubscription","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","defaultCall","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,EAKRL,KAAAM,kBAA4B,EAS3BN,KAAAO,SAAkD,IAAIC,EAAAA,cAAa,GAC7ER,KAAAS,YAA2B,IAAIC,EAAAA,YAC/BV,KAAAW,KAAoB,GACpBX,KAAAY,QAAS,EACTZ,KAAAa,SAAmB,EACnBb,KAAAc,OAAiB,EAERd,KAAAe,WAA+B,IAAIC,IAMlChB,KAAAiB,kBAAoB,IAAIT,EAAAA,aACxBR,KAAAkB,MAA+B,IAAIV,EAAAA,cAAa,GAChDR,KAAAmB,aAAe,IAAIX,EAAAA,aACnBR,KAAAoB,YAAc,IAAIZ,EAAAA,aA6DpBR,KAAAqB,qBAAuB,SAACC,GAC9BA,EAAOC,SAAQ,SAAAC,GACbzB,EAAK0B,WAAWD,GAAI,cA9DxB7B,EAAA+B,UAAAC,SAAA,WAAA,QAAA5B,EAAAC,KACE,GAAIA,KAAKK,QAAUL,KAAK4B,UACtB,MAAM,IAAIC,MAAM,uCAEd7B,KAAK8B,UACP9B,KAAKS,YAAYsB,UAEnB/B,KAAKgC,mBAAqBhC,KAAKS,YAAYwB,aACxCC,KAECC,EAAAA,KAAI,SAACC,GAAQ,OAAArC,EAAKkB,kBAAkBoB,KAAKD,MACzCjC,EAAAA,aAAaH,KAAKG,cAClBmC,EAAAA,wBAEDC,WAAU,SAAAC,GACTzC,EAAKD,QAAQ2C,KAAI,kBACXD,MAAAA,OAAG,EAAHA,EAAKE,QAAS3C,EAAKK,kBAAm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ARAC,EAAAA,0CAwBCC,EAAAA,oBACAA,EAAAA,0BACAA,EAAAA,0BACAA,EAAAA,mCACAA,EAAAA,2BACAA,EAAAA,4BACAA,EAAAA,8BACAA,EAAAA,qBACAA,EAAAA,yBACAA,EAAAA,uBACAA,EAAAA,wBACAA,EAAAA,wBACAA,EAAAA,gCACAA,EAAAA,sBACAC,EAAAA,UAASN,KAAA,CAAC,QAAS,CAAEO,QAAQ,mBAC7BD,EAAAA,UAASN,KAAA,CAAC,QAAS,CAAEO,QAAQ,gBAC7BD,EAAAA,UAASN,KAAA,CAAC,KAAM,CAAEO,QAAQ,wBAC1BC,EAAAA,aAAYR,KAAA,CAAC,gBAAiB,CAAEO,QAAQ,0BAExCC,EAAAA,aAAYR,KAAA,CAAC,oBAAqB,CAAEO,QAAQ,sBAG5CE,EAAAA,2BAOAJ,EAAAA,2BAKAA,EAAAA,iCACAI,EAAAA,sBACAA,EAAAA,6BACAA,EAAAA,4BACAA,EAAAA,gBC5DH,iCALCC,EAAAA,SAAQV,KAAA,CAAC,CACRW,aAAc,CAACjI,GACfkI,QAAS,CAACC,EAAAA,aAAcC,EAAAA,cAAeC,EAAAA,oBAAqBC,EAAAA,YAAaC,EAAAA,cACzEC,QAAS,CAACxI","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 @Input() disableCopyPaste: boolean = false;\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 @Input() selections: Map<string, any> = new Map();\n private searchSubscription: Subscription;\n private defaultCallSubscription: 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 this.defaultCallSubscription?.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 defaultCall(): void {\n if (this.minInputLength === -1) {\n this.loading = true;\n this.defaultCallSubscription = this.httpStream(this.searchInput.value || '').subscribe(list => {\n this.loading = false;\n this.data = list;\n if (!this.overlayRef?.hasAttached() && this.data?.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","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"]}
@@ -1,134 +0,0 @@
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