mis-crystal-design-system 4.0.51 → 14.0.1

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 (901) 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 +5 -2
  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/public_api.d.ts +1 -0
  16. package/datepicker_v2/tz-datepicker.directive.d.ts +3 -0
  17. package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +3 -0
  18. package/daterangepicker_v2/daterangepicker.module.d.ts +10 -0
  19. package/daterangepicker_v2/public_api.d.ts +1 -0
  20. package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +3 -0
  21. package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +3 -0
  22. package/drawer/drawer-body/drawer-body.component.d.ts +3 -1
  23. package/drawer/drawer.module.d.ts +8 -0
  24. package/drawer/drawer.service.d.ts +3 -0
  25. package/dropdown/calculate-container-height.directive.d.ts +3 -0
  26. package/dropdown/dropdown.component.d.ts +3 -0
  27. package/dropdown/dropdown.module.d.ts +11 -0
  28. package/dynamic-form/dynamic-form.component.d.ts +11 -8
  29. package/dynamic-form/dynamic-form.module.d.ts +13 -0
  30. package/esm2020/action-list/action-list.component.mjs +370 -0
  31. package/esm2020/action-list/action-list.module.mjs +25 -0
  32. package/esm2020/analytics/analytics.module.mjs +18 -0
  33. package/esm2020/analytics/analytics.service.mjs +63 -0
  34. package/esm2020/async-search-dropdown/async-dropdown.component.mjs +473 -0
  35. package/esm2020/async-search-dropdown/async-dropdown.module.mjs +22 -0
  36. package/esm2020/button/button.component.mjs +87 -0
  37. package/esm2020/button/button.directive.mjs +61 -0
  38. package/esm2020/button/button.module.mjs +23 -0
  39. package/esm2020/checkbox/checkbox.component.mjs +124 -0
  40. package/esm2020/checkbox/checkbox.module.mjs +23 -0
  41. package/esm2020/chip/chip.component.mjs +82 -0
  42. package/esm2020/chip/chip.module.mjs +22 -0
  43. package/esm2020/datepicker_v2/datepicker.module.mjs +24 -0
  44. package/esm2020/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs +5 -0
  45. package/esm2020/datepicker_v2/public_api.mjs +4 -0
  46. package/esm2020/datepicker_v2/tz-datepicker.directive.mjs +164 -0
  47. package/esm2020/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +245 -0
  48. package/esm2020/daterangepicker_v2/daterangepicker.module.mjs +25 -0
  49. package/esm2020/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.mjs +5 -0
  50. package/esm2020/daterangepicker_v2/public_api.mjs +4 -0
  51. package/esm2020/daterangepicker_v2/tz-daterangepicker.directive.mjs +135 -0
  52. package/esm2020/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +364 -0
  53. package/esm2020/drawer/drawer-body/drawer-body.component.mjs +58 -0
  54. package/esm2020/drawer/drawer.module.mjs +33 -0
  55. package/esm2020/drawer/drawer.service.mjs +56 -0
  56. package/esm2020/drawer/mis-crystal-design-system-drawer.mjs +5 -0
  57. package/esm2020/dropdown/calculate-container-height.directive.mjs +41 -0
  58. package/esm2020/dropdown/dropdown.component.mjs +410 -0
  59. package/esm2020/dropdown/dropdown.module.mjs +27 -0
  60. package/esm2020/dropdown/mis-crystal-design-system-dropdown.mjs +5 -0
  61. package/esm2020/dynamic-form/dynamic-form.component.mjs +712 -0
  62. package/esm2020/dynamic-form/dynamic-form.module.mjs +56 -0
  63. package/esm2020/fab/fab.component.mjs +144 -0
  64. package/esm2020/fab/fab.module.mjs +22 -0
  65. package/esm2020/input/directives/input/input.directive.mjs +40 -0
  66. package/esm2020/input/mis-input.component.mjs +84 -0
  67. package/esm2020/input/mis-input.module.mjs +21 -0
  68. package/esm2020/input-stepper/input-stepper/input-stepper.component.mjs +74 -0
  69. package/esm2020/input-stepper/input-stepper.module.mjs +25 -0
  70. package/esm2020/loader/loader.component.mjs +24 -0
  71. package/esm2020/loader/loader.module.mjs +22 -0
  72. package/esm2020/menu/menu-close.directive.mjs +25 -0
  73. package/esm2020/menu/menu.directive.mjs +77 -0
  74. package/esm2020/menu/menu.module.mjs +23 -0
  75. package/esm2020/mobile-filter/mobile-filter.component.mjs +179 -0
  76. package/esm2020/mobile-filter/mobile-filter.module.mjs +21 -0
  77. package/esm2020/modal/mis-crystal-design-system-modal.mjs +5 -0
  78. package/esm2020/modal/modal.module.mjs +33 -0
  79. package/esm2020/modal/modal.service.mjs +70 -0
  80. package/esm2020/modal/module-wrapper/module-wrapper.component.mjs +55 -0
  81. package/esm2020/multi-select-dropdown/multi-select-dropdown.component.mjs +483 -0
  82. package/esm2020/multi-select-dropdown/multi-select-dropdown.module.mjs +26 -0
  83. package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +510 -0
  84. package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +26 -0
  85. package/esm2020/phone-input/phone-input.component.mjs +115 -0
  86. package/esm2020/phone-input/phone-input.module.mjs +27 -0
  87. package/esm2020/radio-button/radio-button.component.mjs +56 -0
  88. package/esm2020/radio-button/radio-button.module.mjs +23 -0
  89. package/esm2020/ske-loader/ske-loader.component.mjs +53 -0
  90. package/esm2020/ske-loader/ske-loader.module.mjs +19 -0
  91. package/esm2020/slider/slider.component.mjs +45 -0
  92. package/esm2020/slider/slider.module.mjs +30 -0
  93. package/esm2020/snackbar/snackbar/snackbar.component.mjs +72 -0
  94. package/esm2020/snackbar/snackbar.module.mjs +36 -0
  95. package/esm2020/snackbar/snackbar.service.mjs +47 -0
  96. package/esm2020/specificdatepicker/mis-crystal-design-system-specificdatepicker.mjs +5 -0
  97. package/esm2020/specificdatepicker/public_api.mjs +4 -0
  98. package/esm2020/specificdatepicker/specificdatepicker.module.mjs +27 -0
  99. package/esm2020/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +619 -0
  100. package/esm2020/specificdatepicker/tz-specificdatepicker.directive.mjs +196 -0
  101. package/esm2020/star-rating/star-rating.component.mjs +112 -0
  102. package/esm2020/star-rating/star-rating.module.mjs +19 -0
  103. package/esm2020/switch/switch.component.mjs +55 -0
  104. package/esm2020/switch/switch.module.mjs +23 -0
  105. package/esm2020/table/custom-table-cell.directive.mjs +42 -0
  106. package/esm2020/table/filter/filter.component.mjs +168 -0
  107. package/esm2020/table/mis-crystal-design-system-table.mjs +5 -0
  108. package/esm2020/table/public_api.mjs +6 -0
  109. package/esm2020/table/sub-table/sub-table.component.mjs +193 -0
  110. package/esm2020/table/table.component.mjs +476 -0
  111. package/esm2020/table/table.module.mjs +27 -0
  112. package/esm2020/timepicker/mis-crystal-design-system-timepicker.mjs +5 -0
  113. package/esm2020/timepicker/timepicker.component.mjs +339 -0
  114. package/esm2020/timepicker/timepicker.directive.mjs +65 -0
  115. package/esm2020/timepicker/timepicker.module.mjs +26 -0
  116. package/esm2020/timerangepicker/timerangepicker.component.mjs +227 -0
  117. package/esm2020/timerangepicker/timerangepicker.module.mjs +24 -0
  118. package/esm2020/toast/toast.component.mjs +50 -0
  119. package/{esm2015/toast/toast.data.service.js → esm2020/toast/toast.data.service.mjs} +8 -7
  120. package/esm2020/toast/toast.module.mjs +33 -0
  121. package/esm2020/toast/toast.service.mjs +91 -0
  122. package/esm2020/tooltip/tooltip-container/tooltip.component.mjs +78 -0
  123. package/esm2020/tooltip/tooltip.directive.mjs +137 -0
  124. package/esm2020/tooltip/tooltip.module.mjs +24 -0
  125. package/esm2020/virtual-scroll/virtual-scroll.component.mjs +190 -0
  126. package/esm2020/virtual-scroll/virtual-scroll.module.mjs +34 -0
  127. package/{esm2015/widgets/classes/base-widget.js → esm2020/widgets/classes/base-widget.mjs} +2 -2
  128. package/esm2020/widgets/classes/widget-group.mjs +32 -0
  129. package/esm2020/widgets/services/widget.service.mjs +18 -0
  130. package/esm2020/widgets/widgets.module.mjs +18 -0
  131. package/fab/fab.component.d.ts +3 -0
  132. package/fab/fab.module.d.ts +6 -0
  133. package/fesm2015/mis-crystal-design-system-action-list.mjs +446 -0
  134. package/fesm2015/mis-crystal-design-system-action-list.mjs.map +1 -0
  135. package/fesm2015/{mis-crystal-design-system-analytics.js → mis-crystal-design-system-analytics.mjs} +26 -14
  136. package/fesm2015/mis-crystal-design-system-analytics.mjs.map +1 -0
  137. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs +563 -0
  138. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -0
  139. package/fesm2015/mis-crystal-design-system-button.mjs +189 -0
  140. package/fesm2015/mis-crystal-design-system-button.mjs.map +1 -0
  141. package/fesm2015/mis-crystal-design-system-checkbox.mjs +166 -0
  142. package/fesm2015/mis-crystal-design-system-checkbox.mjs.map +1 -0
  143. package/fesm2015/mis-crystal-design-system-chip.mjs +123 -0
  144. package/fesm2015/mis-crystal-design-system-chip.mjs.map +1 -0
  145. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs +501 -0
  146. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs.map +1 -0
  147. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs +599 -0
  148. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -0
  149. package/fesm2015/mis-crystal-design-system-drawer.mjs +185 -0
  150. package/fesm2015/mis-crystal-design-system-drawer.mjs.map +1 -0
  151. package/fesm2015/mis-crystal-design-system-dropdown.mjs +536 -0
  152. package/fesm2015/mis-crystal-design-system-dropdown.mjs.map +1 -0
  153. package/fesm2015/mis-crystal-design-system-dynamic-form.mjs +867 -0
  154. package/fesm2015/mis-crystal-design-system-dynamic-form.mjs.map +1 -0
  155. package/fesm2015/mis-crystal-design-system-fab.mjs +186 -0
  156. package/fesm2015/mis-crystal-design-system-fab.mjs.map +1 -0
  157. package/fesm2015/mis-crystal-design-system-input-stepper.mjs +110 -0
  158. package/fesm2015/mis-crystal-design-system-input-stepper.mjs.map +1 -0
  159. package/fesm2015/mis-crystal-design-system-input.mjs +165 -0
  160. package/fesm2015/mis-crystal-design-system-input.mjs.map +1 -0
  161. package/fesm2015/mis-crystal-design-system-loader.mjs +57 -0
  162. package/fesm2015/mis-crystal-design-system-loader.mjs.map +1 -0
  163. package/fesm2015/mis-crystal-design-system-menu.mjs +135 -0
  164. package/fesm2015/mis-crystal-design-system-menu.mjs.map +1 -0
  165. package/fesm2015/mis-crystal-design-system-mobile-filter.mjs +225 -0
  166. package/fesm2015/mis-crystal-design-system-mobile-filter.mjs.map +1 -0
  167. package/fesm2015/mis-crystal-design-system-modal.mjs +184 -0
  168. package/fesm2015/mis-crystal-design-system-modal.mjs.map +1 -0
  169. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs +542 -0
  170. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -0
  171. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs +552 -0
  172. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -0
  173. package/fesm2015/mis-crystal-design-system-phone-input.mjs +151 -0
  174. package/fesm2015/mis-crystal-design-system-phone-input.mjs.map +1 -0
  175. package/fesm2015/mis-crystal-design-system-radio-button.mjs +89 -0
  176. package/fesm2015/mis-crystal-design-system-radio-button.mjs.map +1 -0
  177. package/fesm2015/mis-crystal-design-system-ske-loader.mjs +86 -0
  178. package/fesm2015/mis-crystal-design-system-ske-loader.mjs.map +1 -0
  179. package/fesm2015/mis-crystal-design-system-slider.mjs +88 -0
  180. package/fesm2015/mis-crystal-design-system-slider.mjs.map +1 -0
  181. package/fesm2015/mis-crystal-design-system-snackbar.mjs +175 -0
  182. package/fesm2015/mis-crystal-design-system-snackbar.mjs.map +1 -0
  183. package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs +942 -0
  184. package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs.map +1 -0
  185. package/fesm2015/mis-crystal-design-system-star-rating.mjs +145 -0
  186. package/fesm2015/mis-crystal-design-system-star-rating.mjs.map +1 -0
  187. package/fesm2015/mis-crystal-design-system-styles.mjs +4 -0
  188. package/fesm2015/mis-crystal-design-system-styles.mjs.map +1 -0
  189. package/fesm2015/mis-crystal-design-system-switch.mjs +88 -0
  190. package/fesm2015/mis-crystal-design-system-switch.mjs.map +1 -0
  191. package/fesm2015/mis-crystal-design-system-table.mjs +1017 -0
  192. package/fesm2015/mis-crystal-design-system-table.mjs.map +1 -0
  193. package/fesm2015/mis-crystal-design-system-timepicker.mjs +448 -0
  194. package/fesm2015/mis-crystal-design-system-timepicker.mjs.map +1 -0
  195. package/fesm2015/mis-crystal-design-system-timerangepicker.mjs +264 -0
  196. package/fesm2015/mis-crystal-design-system-timerangepicker.mjs.map +1 -0
  197. package/fesm2015/mis-crystal-design-system-toast.mjs +214 -0
  198. package/fesm2015/mis-crystal-design-system-toast.mjs.map +1 -0
  199. package/fesm2015/mis-crystal-design-system-tooltip.mjs +265 -0
  200. package/fesm2015/mis-crystal-design-system-tooltip.mjs.map +1 -0
  201. package/fesm2015/{mis-crystal-design-system-utils.js → mis-crystal-design-system-utils.mjs} +1 -1
  202. package/fesm2015/mis-crystal-design-system-utils.mjs.map +1 -0
  203. package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs +259 -0
  204. package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs.map +1 -0
  205. package/fesm2015/{mis-crystal-design-system-widgets.js → mis-crystal-design-system-widgets.mjs} +16 -8
  206. package/fesm2015/mis-crystal-design-system-widgets.mjs.map +1 -0
  207. package/fesm2015/{mis-crystal-design-system.js → mis-crystal-design-system.mjs} +1 -1
  208. package/fesm2015/mis-crystal-design-system.mjs.map +1 -0
  209. package/fesm2020/mis-crystal-design-system-action-list.mjs +398 -0
  210. package/fesm2020/mis-crystal-design-system-action-list.mjs.map +1 -0
  211. package/fesm2020/mis-crystal-design-system-analytics.mjs +85 -0
  212. package/fesm2020/mis-crystal-design-system-analytics.mjs.map +1 -0
  213. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs +497 -0
  214. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -0
  215. package/fesm2020/mis-crystal-design-system-button.mjs +172 -0
  216. package/fesm2020/mis-crystal-design-system-button.mjs.map +1 -0
  217. package/fesm2020/mis-crystal-design-system-checkbox.mjs +150 -0
  218. package/fesm2020/mis-crystal-design-system-checkbox.mjs.map +1 -0
  219. package/fesm2020/mis-crystal-design-system-chip.mjs +108 -0
  220. package/fesm2020/mis-crystal-design-system-chip.mjs.map +1 -0
  221. package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs +477 -0
  222. package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs.map +1 -0
  223. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs +567 -0
  224. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -0
  225. package/{fesm2015/mis-crystal-design-system-drawer.js → fesm2020/mis-crystal-design-system-drawer.mjs} +55 -36
  226. package/fesm2020/mis-crystal-design-system-drawer.mjs.map +1 -0
  227. package/fesm2020/mis-crystal-design-system-dropdown.mjs +477 -0
  228. package/fesm2020/mis-crystal-design-system-dropdown.mjs.map +1 -0
  229. package/fesm2020/mis-crystal-design-system-dynamic-form.mjs +770 -0
  230. package/fesm2020/mis-crystal-design-system-dynamic-form.mjs.map +1 -0
  231. package/fesm2020/mis-crystal-design-system-fab.mjs +170 -0
  232. package/fesm2020/mis-crystal-design-system-fab.mjs.map +1 -0
  233. package/fesm2020/mis-crystal-design-system-input-stepper.mjs +103 -0
  234. package/fesm2020/mis-crystal-design-system-input-stepper.mjs.map +1 -0
  235. package/fesm2020/mis-crystal-design-system-input.mjs +145 -0
  236. package/fesm2020/mis-crystal-design-system-input.mjs.map +1 -0
  237. package/fesm2020/mis-crystal-design-system-loader.mjs +50 -0
  238. package/fesm2020/mis-crystal-design-system-loader.mjs.map +1 -0
  239. package/fesm2020/mis-crystal-design-system-menu.mjs +124 -0
  240. package/fesm2020/mis-crystal-design-system-menu.mjs.map +1 -0
  241. package/fesm2020/mis-crystal-design-system-mobile-filter.mjs +204 -0
  242. package/fesm2020/mis-crystal-design-system-mobile-filter.mjs.map +1 -0
  243. package/fesm2020/mis-crystal-design-system-modal.mjs +172 -0
  244. package/fesm2020/mis-crystal-design-system-modal.mjs.map +1 -0
  245. package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs +512 -0
  246. package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -0
  247. package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs +539 -0
  248. package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -0
  249. package/fesm2020/mis-crystal-design-system-phone-input.mjs +144 -0
  250. package/fesm2020/mis-crystal-design-system-phone-input.mjs.map +1 -0
  251. package/fesm2020/mis-crystal-design-system-radio-button.mjs +82 -0
  252. package/fesm2020/mis-crystal-design-system-radio-button.mjs.map +1 -0
  253. package/fesm2020/mis-crystal-design-system-ske-loader.mjs +76 -0
  254. package/fesm2020/mis-crystal-design-system-ske-loader.mjs.map +1 -0
  255. package/fesm2020/mis-crystal-design-system-slider.mjs +79 -0
  256. package/fesm2020/mis-crystal-design-system-slider.mjs.map +1 -0
  257. package/fesm2020/mis-crystal-design-system-snackbar.mjs +155 -0
  258. package/fesm2020/mis-crystal-design-system-snackbar.mjs.map +1 -0
  259. package/fesm2020/mis-crystal-design-system-specificdatepicker.mjs +884 -0
  260. package/fesm2020/mis-crystal-design-system-specificdatepicker.mjs.map +1 -0
  261. package/fesm2020/mis-crystal-design-system-star-rating.mjs +135 -0
  262. package/fesm2020/mis-crystal-design-system-star-rating.mjs.map +1 -0
  263. package/fesm2020/mis-crystal-design-system-styles.mjs +4 -0
  264. package/fesm2020/mis-crystal-design-system-styles.mjs.map +1 -0
  265. package/fesm2020/mis-crystal-design-system-switch.mjs +81 -0
  266. package/fesm2020/mis-crystal-design-system-switch.mjs.map +1 -0
  267. package/fesm2020/mis-crystal-design-system-table.mjs +895 -0
  268. package/fesm2020/mis-crystal-design-system-table.mjs.map +1 -0
  269. package/fesm2020/mis-crystal-design-system-timepicker.mjs +425 -0
  270. package/fesm2020/mis-crystal-design-system-timepicker.mjs.map +1 -0
  271. package/{fesm2015/mis-crystal-design-system-timerangepicker.js → fesm2020/mis-crystal-design-system-timerangepicker.mjs} +73 -36
  272. package/fesm2020/mis-crystal-design-system-timerangepicker.mjs.map +1 -0
  273. package/fesm2020/mis-crystal-design-system-toast.mjs +198 -0
  274. package/fesm2020/mis-crystal-design-system-toast.mjs.map +1 -0
  275. package/fesm2020/mis-crystal-design-system-tooltip.mjs +238 -0
  276. package/fesm2020/mis-crystal-design-system-tooltip.mjs.map +1 -0
  277. package/fesm2020/mis-crystal-design-system-utils.mjs +24 -0
  278. package/fesm2020/mis-crystal-design-system-utils.mjs.map +1 -0
  279. package/fesm2020/mis-crystal-design-system-virtual-scroll.mjs +229 -0
  280. package/fesm2020/mis-crystal-design-system-virtual-scroll.mjs.map +1 -0
  281. package/fesm2020/mis-crystal-design-system-widgets.mjs +129 -0
  282. package/fesm2020/mis-crystal-design-system-widgets.mjs.map +1 -0
  283. package/fesm2020/mis-crystal-design-system.mjs +24 -0
  284. package/fesm2020/mis-crystal-design-system.mjs.map +1 -0
  285. package/input/directives/input/input.directive.d.ts +3 -0
  286. package/input/mis-input.component.d.ts +3 -0
  287. package/input/mis-input.module.d.ts +8 -0
  288. package/input-stepper/input-stepper/input-stepper.component.d.ts +3 -0
  289. package/input-stepper/input-stepper.module.d.ts +6 -0
  290. package/loader/loader.component.d.ts +3 -0
  291. package/loader/loader.module.d.ts +6 -0
  292. package/menu/menu-close.directive.d.ts +3 -0
  293. package/menu/menu.directive.d.ts +3 -0
  294. package/menu/menu.module.d.ts +9 -1
  295. package/mobile-filter/mobile-filter.component.d.ts +3 -0
  296. package/mobile-filter/mobile-filter.module.d.ts +8 -0
  297. package/modal/modal.module.d.ts +8 -0
  298. package/modal/modal.service.d.ts +3 -0
  299. package/modal/module-wrapper/module-wrapper.component.d.ts +3 -0
  300. package/multi-select-dropdown/multi-select-dropdown.component.d.ts +4 -0
  301. package/multi-select-dropdown/multi-select-dropdown.module.d.ts +10 -0
  302. package/nested-multi-select-dropdown/nested-multi-select-dropdown.component.d.ts +3 -0
  303. package/nested-multi-select-dropdown/nested-multi-select-dropdown.module.d.ts +10 -0
  304. package/package.json +320 -9
  305. package/phone-input/phone-input.component.d.ts +5 -2
  306. package/phone-input/phone-input.module.d.ts +10 -0
  307. package/radio-button/radio-button.component.d.ts +3 -0
  308. package/radio-button/radio-button.module.d.ts +7 -0
  309. package/ske-loader/ske-loader.component.d.ts +3 -0
  310. package/ske-loader/ske-loader.module.d.ts +6 -0
  311. package/slider/slider.component.d.ts +6 -3
  312. package/slider/slider.module.d.ts +7 -0
  313. package/snackbar/snackbar/snackbar.component.d.ts +3 -0
  314. package/snackbar/snackbar.module.d.ts +6 -0
  315. package/snackbar/snackbar.service.d.ts +5 -2
  316. package/specificdatepicker/public_api.d.ts +1 -0
  317. package/specificdatepicker/specificdatepicker.module.d.ts +12 -0
  318. package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +5 -2
  319. package/specificdatepicker/tz-specificdatepicker.directive.d.ts +3 -0
  320. package/star-rating/star-rating.component.d.ts +3 -0
  321. package/star-rating/star-rating.module.d.ts +6 -0
  322. package/switch/switch.component.d.ts +3 -0
  323. package/switch/switch.module.d.ts +7 -0
  324. package/table/custom-table-cell.directive.d.ts +3 -0
  325. package/table/filter/filter.component.d.ts +3 -0
  326. package/table/public_api.d.ts +1 -0
  327. package/table/sub-table/sub-table.component.d.ts +3 -0
  328. package/table/table.component.d.ts +3 -0
  329. package/table/table.module.d.ts +11 -0
  330. package/timepicker/timepicker.component.d.ts +3 -0
  331. package/timepicker/timepicker.directive.d.ts +3 -0
  332. package/timepicker/timepicker.module.d.ts +10 -0
  333. package/timerangepicker/timerangepicker.component.d.ts +3 -0
  334. package/timerangepicker/timerangepicker.module.d.ts +8 -0
  335. package/toast/toast.component.d.ts +3 -0
  336. package/toast/toast.data.service.d.ts +3 -0
  337. package/toast/toast.module.d.ts +7 -0
  338. package/toast/toast.service.d.ts +3 -0
  339. package/tooltip/tooltip-container/tooltip.component.d.ts +3 -0
  340. package/tooltip/tooltip.directive.d.ts +3 -0
  341. package/tooltip/tooltip.module.d.ts +8 -0
  342. package/virtual-scroll/virtual-scroll.component.d.ts +3 -0
  343. package/virtual-scroll/virtual-scroll.module.d.ts +8 -0
  344. package/widgets/services/widget.service.d.ts +3 -0
  345. package/widgets/widgets.module.d.ts +5 -0
  346. package/action-list/mis-crystal-design-system-action-list.d.ts +0 -4
  347. package/action-list/mis-crystal-design-system-action-list.metadata.json +0 -1
  348. package/action-list/package.json +0 -11
  349. package/analytics/mis-crystal-design-system-analytics.d.ts +0 -4
  350. package/analytics/mis-crystal-design-system-analytics.metadata.json +0 -1
  351. package/analytics/package.json +0 -11
  352. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.d.ts +0 -4
  353. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.metadata.json +0 -1
  354. package/async-search-dropdown/package.json +0 -11
  355. package/bundles/mis-crystal-design-system-action-list.umd.js +0 -509
  356. package/bundles/mis-crystal-design-system-action-list.umd.js.map +0 -1
  357. package/bundles/mis-crystal-design-system-action-list.umd.min.js +0 -16
  358. package/bundles/mis-crystal-design-system-action-list.umd.min.js.map +0 -1
  359. package/bundles/mis-crystal-design-system-analytics.umd.js +0 -422
  360. package/bundles/mis-crystal-design-system-analytics.umd.js.map +0 -1
  361. package/bundles/mis-crystal-design-system-analytics.umd.min.js +0 -16
  362. package/bundles/mis-crystal-design-system-analytics.umd.min.js.map +0 -1
  363. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js +0 -279
  364. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js.map +0 -1
  365. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js +0 -2
  366. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js.map +0 -1
  367. package/bundles/mis-crystal-design-system-button.umd.js +0 -134
  368. package/bundles/mis-crystal-design-system-button.umd.js.map +0 -1
  369. package/bundles/mis-crystal-design-system-button.umd.min.js +0 -2
  370. package/bundles/mis-crystal-design-system-button.umd.min.js.map +0 -1
  371. package/bundles/mis-crystal-design-system-checkbox.umd.js +0 -127
  372. package/bundles/mis-crystal-design-system-checkbox.umd.js.map +0 -1
  373. package/bundles/mis-crystal-design-system-checkbox.umd.min.js +0 -2
  374. package/bundles/mis-crystal-design-system-checkbox.umd.min.js.map +0 -1
  375. package/bundles/mis-crystal-design-system-chip.umd.js +0 -64
  376. package/bundles/mis-crystal-design-system-chip.umd.js.map +0 -1
  377. package/bundles/mis-crystal-design-system-chip.umd.min.js +0 -2
  378. package/bundles/mis-crystal-design-system-chip.umd.min.js.map +0 -1
  379. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js +0 -706
  380. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js.map +0 -1
  381. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js +0 -16
  382. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js.map +0 -1
  383. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js +0 -464
  384. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js.map +0 -1
  385. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js +0 -2
  386. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js.map +0 -1
  387. package/bundles/mis-crystal-design-system-drawer.umd.js +0 -169
  388. package/bundles/mis-crystal-design-system-drawer.umd.js.map +0 -1
  389. package/bundles/mis-crystal-design-system-drawer.umd.min.js +0 -2
  390. package/bundles/mis-crystal-design-system-drawer.umd.min.js.map +0 -1
  391. package/bundles/mis-crystal-design-system-dropdown.umd.js +0 -558
  392. package/bundles/mis-crystal-design-system-dropdown.umd.js.map +0 -1
  393. package/bundles/mis-crystal-design-system-dropdown.umd.min.js +0 -16
  394. package/bundles/mis-crystal-design-system-dropdown.umd.min.js.map +0 -1
  395. package/bundles/mis-crystal-design-system-dynamic-form.umd.js +0 -740
  396. package/bundles/mis-crystal-design-system-dynamic-form.umd.js.map +0 -1
  397. package/bundles/mis-crystal-design-system-dynamic-form.umd.min.js +0 -16
  398. package/bundles/mis-crystal-design-system-dynamic-form.umd.min.js.map +0 -1
  399. package/bundles/mis-crystal-design-system-fab.umd.js +0 -95
  400. package/bundles/mis-crystal-design-system-fab.umd.js.map +0 -1
  401. package/bundles/mis-crystal-design-system-fab.umd.min.js +0 -2
  402. package/bundles/mis-crystal-design-system-fab.umd.min.js.map +0 -1
  403. package/bundles/mis-crystal-design-system-input-stepper.umd.js +0 -85
  404. package/bundles/mis-crystal-design-system-input-stepper.umd.js.map +0 -1
  405. package/bundles/mis-crystal-design-system-input-stepper.umd.min.js +0 -2
  406. package/bundles/mis-crystal-design-system-input-stepper.umd.min.js.map +0 -1
  407. package/bundles/mis-crystal-design-system-input.umd.js +0 -116
  408. package/bundles/mis-crystal-design-system-input.umd.js.map +0 -1
  409. package/bundles/mis-crystal-design-system-input.umd.min.js +0 -2
  410. package/bundles/mis-crystal-design-system-input.umd.min.js.map +0 -1
  411. package/bundles/mis-crystal-design-system-loader.umd.js +0 -53
  412. package/bundles/mis-crystal-design-system-loader.umd.js.map +0 -1
  413. package/bundles/mis-crystal-design-system-loader.umd.min.js +0 -2
  414. package/bundles/mis-crystal-design-system-loader.umd.min.js.map +0 -1
  415. package/bundles/mis-crystal-design-system-menu.umd.js +0 -119
  416. package/bundles/mis-crystal-design-system-menu.umd.js.map +0 -1
  417. package/bundles/mis-crystal-design-system-menu.umd.min.js +0 -2
  418. package/bundles/mis-crystal-design-system-menu.umd.min.js.map +0 -1
  419. package/bundles/mis-crystal-design-system-mobile-filter.umd.js +0 -89
  420. package/bundles/mis-crystal-design-system-mobile-filter.umd.js.map +0 -1
  421. package/bundles/mis-crystal-design-system-mobile-filter.umd.min.js +0 -2
  422. package/bundles/mis-crystal-design-system-mobile-filter.umd.min.js.map +0 -1
  423. package/bundles/mis-crystal-design-system-modal.umd.js +0 -161
  424. package/bundles/mis-crystal-design-system-modal.umd.js.map +0 -1
  425. package/bundles/mis-crystal-design-system-modal.umd.min.js +0 -2
  426. package/bundles/mis-crystal-design-system-modal.umd.min.js.map +0 -1
  427. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js +0 -623
  428. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js.map +0 -1
  429. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js +0 -16
  430. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js.map +0 -1
  431. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js +0 -636
  432. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js.map +0 -1
  433. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js +0 -16
  434. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js.map +0 -1
  435. package/bundles/mis-crystal-design-system-phone-input.umd.js +0 -117
  436. package/bundles/mis-crystal-design-system-phone-input.umd.js.map +0 -1
  437. package/bundles/mis-crystal-design-system-phone-input.umd.min.js +0 -2
  438. package/bundles/mis-crystal-design-system-phone-input.umd.min.js.map +0 -1
  439. package/bundles/mis-crystal-design-system-radio-button.umd.js +0 -77
  440. package/bundles/mis-crystal-design-system-radio-button.umd.js.map +0 -1
  441. package/bundles/mis-crystal-design-system-radio-button.umd.min.js +0 -2
  442. package/bundles/mis-crystal-design-system-radio-button.umd.min.js.map +0 -1
  443. package/bundles/mis-crystal-design-system-ske-loader.umd.js +0 -65
  444. package/bundles/mis-crystal-design-system-ske-loader.umd.js.map +0 -1
  445. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js +0 -2
  446. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js.map +0 -1
  447. package/bundles/mis-crystal-design-system-slider.umd.js +0 -73
  448. package/bundles/mis-crystal-design-system-slider.umd.js.map +0 -1
  449. package/bundles/mis-crystal-design-system-slider.umd.min.js +0 -2
  450. package/bundles/mis-crystal-design-system-slider.umd.min.js.map +0 -1
  451. package/bundles/mis-crystal-design-system-snackbar.umd.js +0 -114
  452. package/bundles/mis-crystal-design-system-snackbar.umd.js.map +0 -1
  453. package/bundles/mis-crystal-design-system-snackbar.umd.min.js +0 -2
  454. package/bundles/mis-crystal-design-system-snackbar.umd.min.js.map +0 -1
  455. package/bundles/mis-crystal-design-system-specificdatepicker.umd.js +0 -977
  456. package/bundles/mis-crystal-design-system-specificdatepicker.umd.js.map +0 -1
  457. package/bundles/mis-crystal-design-system-specificdatepicker.umd.min.js +0 -16
  458. package/bundles/mis-crystal-design-system-specificdatepicker.umd.min.js.map +0 -1
  459. package/bundles/mis-crystal-design-system-star-rating.umd.js +0 -112
  460. package/bundles/mis-crystal-design-system-star-rating.umd.js.map +0 -1
  461. package/bundles/mis-crystal-design-system-star-rating.umd.min.js +0 -2
  462. package/bundles/mis-crystal-design-system-star-rating.umd.min.js.map +0 -1
  463. package/bundles/mis-crystal-design-system-styles.umd.js +0 -11
  464. package/bundles/mis-crystal-design-system-styles.umd.js.map +0 -1
  465. package/bundles/mis-crystal-design-system-styles.umd.min.js +0 -2
  466. package/bundles/mis-crystal-design-system-styles.umd.min.js.map +0 -1
  467. package/bundles/mis-crystal-design-system-switch.umd.js +0 -79
  468. package/bundles/mis-crystal-design-system-switch.umd.js.map +0 -1
  469. package/bundles/mis-crystal-design-system-switch.umd.min.js +0 -2
  470. package/bundles/mis-crystal-design-system-switch.umd.min.js.map +0 -1
  471. package/bundles/mis-crystal-design-system-table.umd.js +0 -784
  472. package/bundles/mis-crystal-design-system-table.umd.js.map +0 -1
  473. package/bundles/mis-crystal-design-system-table.umd.min.js +0 -16
  474. package/bundles/mis-crystal-design-system-table.umd.min.js.map +0 -1
  475. package/bundles/mis-crystal-design-system-timepicker.umd.js +0 -688
  476. package/bundles/mis-crystal-design-system-timepicker.umd.js.map +0 -1
  477. package/bundles/mis-crystal-design-system-timepicker.umd.min.js +0 -16
  478. package/bundles/mis-crystal-design-system-timepicker.umd.min.js.map +0 -1
  479. package/bundles/mis-crystal-design-system-timerangepicker.umd.js +0 -248
  480. package/bundles/mis-crystal-design-system-timerangepicker.umd.js.map +0 -1
  481. package/bundles/mis-crystal-design-system-timerangepicker.umd.min.js +0 -2
  482. package/bundles/mis-crystal-design-system-timerangepicker.umd.min.js.map +0 -1
  483. package/bundles/mis-crystal-design-system-toast.umd.js +0 -202
  484. package/bundles/mis-crystal-design-system-toast.umd.js.map +0 -1
  485. package/bundles/mis-crystal-design-system-toast.umd.min.js +0 -2
  486. package/bundles/mis-crystal-design-system-toast.umd.min.js.map +0 -1
  487. package/bundles/mis-crystal-design-system-tooltip.umd.js +0 -214
  488. package/bundles/mis-crystal-design-system-tooltip.umd.js.map +0 -1
  489. package/bundles/mis-crystal-design-system-tooltip.umd.min.js +0 -2
  490. package/bundles/mis-crystal-design-system-tooltip.umd.min.js.map +0 -1
  491. package/bundles/mis-crystal-design-system-utils.umd.js +0 -33
  492. package/bundles/mis-crystal-design-system-utils.umd.js.map +0 -1
  493. package/bundles/mis-crystal-design-system-utils.umd.min.js +0 -2
  494. package/bundles/mis-crystal-design-system-utils.umd.min.js.map +0 -1
  495. package/bundles/mis-crystal-design-system-virtual-scroll.umd.js +0 -471
  496. package/bundles/mis-crystal-design-system-virtual-scroll.umd.js.map +0 -1
  497. package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js +0 -16
  498. package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js.map +0 -1
  499. package/bundles/mis-crystal-design-system-widgets.umd.js +0 -478
  500. package/bundles/mis-crystal-design-system-widgets.umd.js.map +0 -1
  501. package/bundles/mis-crystal-design-system-widgets.umd.min.js +0 -16
  502. package/bundles/mis-crystal-design-system-widgets.umd.min.js.map +0 -1
  503. package/bundles/mis-crystal-design-system.umd.js +0 -31
  504. package/bundles/mis-crystal-design-system.umd.js.map +0 -1
  505. package/bundles/mis-crystal-design-system.umd.min.js +0 -2
  506. package/bundles/mis-crystal-design-system.umd.min.js.map +0 -1
  507. package/button/mis-crystal-design-system-button.d.ts +0 -4
  508. package/button/mis-crystal-design-system-button.metadata.json +0 -1
  509. package/button/package.json +0 -11
  510. package/checkbox/mis-crystal-design-system-checkbox.d.ts +0 -4
  511. package/checkbox/mis-crystal-design-system-checkbox.metadata.json +0 -1
  512. package/checkbox/package.json +0 -11
  513. package/chip/mis-crystal-design-system-chip.d.ts +0 -4
  514. package/chip/mis-crystal-design-system-chip.metadata.json +0 -1
  515. package/chip/package.json +0 -11
  516. package/datepicker_v2/mis-crystal-design-system-datepicker_v2.d.ts +0 -7
  517. package/datepicker_v2/mis-crystal-design-system-datepicker_v2.metadata.json +0 -1
  518. package/datepicker_v2/package.json +0 -11
  519. package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.d.ts +0 -7
  520. package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.metadata.json +0 -1
  521. package/daterangepicker_v2/package.json +0 -11
  522. package/drawer/mis-crystal-design-system-drawer.d.ts +0 -5
  523. package/drawer/mis-crystal-design-system-drawer.metadata.json +0 -1
  524. package/drawer/package.json +0 -11
  525. package/dropdown/mis-crystal-design-system-dropdown.d.ts +0 -5
  526. package/dropdown/mis-crystal-design-system-dropdown.metadata.json +0 -1
  527. package/dropdown/package.json +0 -11
  528. package/dynamic-form/mis-crystal-design-system-dynamic-form.d.ts +0 -4
  529. package/dynamic-form/mis-crystal-design-system-dynamic-form.metadata.json +0 -1
  530. package/dynamic-form/package.json +0 -11
  531. package/esm2015/action-list/action-list.component.js +0 -161
  532. package/esm2015/action-list/action-list.module.js +0 -19
  533. package/esm2015/analytics/analytics.module.js +0 -14
  534. package/esm2015/analytics/analytics.service.js +0 -62
  535. package/esm2015/async-search-dropdown/async-dropdown.component.js +0 -243
  536. package/esm2015/async-search-dropdown/async-dropdown.module.js +0 -16
  537. package/esm2015/button/button.component.js +0 -43
  538. package/esm2015/button/button.directive.js +0 -57
  539. package/esm2015/button/button.module.js +0 -17
  540. package/esm2015/checkbox/checkbox.component.js +0 -79
  541. package/esm2015/checkbox/checkbox.module.js +0 -17
  542. package/esm2015/chip/chip.component.js +0 -31
  543. package/esm2015/chip/chip.module.js +0 -16
  544. package/esm2015/datepicker_v2/datepicker.module.js +0 -18
  545. package/esm2015/datepicker_v2/mis-crystal-design-system-datepicker_v2.js +0 -7
  546. package/esm2015/datepicker_v2/public_api.js +0 -3
  547. package/esm2015/datepicker_v2/tz-datepicker.directive.js +0 -144
  548. package/esm2015/datepicker_v2/tz-dp-container/tz-dp-container.component.js +0 -149
  549. package/esm2015/daterangepicker_v2/daterangepicker.module.js +0 -18
  550. package/esm2015/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.js +0 -7
  551. package/esm2015/daterangepicker_v2/public_api.js +0 -3
  552. package/esm2015/daterangepicker_v2/tz-daterangepicker.directive.js +0 -123
  553. package/esm2015/daterangepicker_v2/tz-drp-container/tz-drp-container.component.js +0 -226
  554. package/esm2015/drawer/drawer-body/drawer-body.component.js +0 -41
  555. package/esm2015/drawer/drawer.module.js +0 -28
  556. package/esm2015/drawer/drawer.service.js +0 -59
  557. package/esm2015/drawer/mis-crystal-design-system-drawer.js +0 -6
  558. package/esm2015/dropdown/calculate-container-height.directive.js +0 -40
  559. package/esm2015/dropdown/dropdown.component.js +0 -169
  560. package/esm2015/dropdown/dropdown.module.js +0 -21
  561. package/esm2015/dropdown/mis-crystal-design-system-dropdown.js +0 -6
  562. package/esm2015/dynamic-form/dynamic-form.component.js +0 -308
  563. package/esm2015/dynamic-form/dynamic-form.module.js +0 -34
  564. package/esm2015/fab/fab.component.js +0 -63
  565. package/esm2015/fab/fab.module.js +0 -16
  566. package/esm2015/input/directives/input/input.directive.js +0 -38
  567. package/esm2015/input/mis-input.component.js +0 -45
  568. package/esm2015/input/mis-input.module.js +0 -15
  569. package/esm2015/input-stepper/input-stepper/input-stepper.component.js +0 -49
  570. package/esm2015/input-stepper/input-stepper.module.js +0 -19
  571. package/esm2015/loader/loader.component.js +0 -20
  572. package/esm2015/loader/loader.module.js +0 -16
  573. package/esm2015/menu/menu-close.directive.js +0 -18
  574. package/esm2015/menu/menu.directive.js +0 -70
  575. package/esm2015/menu/menu.module.js +0 -17
  576. package/esm2015/mobile-filter/mobile-filter.component.js +0 -54
  577. package/esm2015/mobile-filter/mobile-filter.module.js +0 -15
  578. package/esm2015/modal/mis-crystal-design-system-modal.js +0 -6
  579. package/esm2015/modal/modal.module.js +0 -28
  580. package/esm2015/modal/modal.service.js +0 -72
  581. package/esm2015/modal/module-wrapper/module-wrapper.component.js +0 -33
  582. package/esm2015/multi-select-dropdown/multi-select-dropdown.component.js +0 -269
  583. package/esm2015/multi-select-dropdown/multi-select-dropdown.module.js +0 -20
  584. package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.component.js +0 -265
  585. package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.module.js +0 -20
  586. package/esm2015/phone-input/phone-input.component.js +0 -85
  587. package/esm2015/phone-input/phone-input.module.js +0 -21
  588. package/esm2015/radio-button/radio-button.component.js +0 -45
  589. package/esm2015/radio-button/radio-button.module.js +0 -17
  590. package/esm2015/ske-loader/ske-loader.component.js +0 -31
  591. package/esm2015/ske-loader/ske-loader.module.js +0 -13
  592. package/esm2015/slider/slider.component.js +0 -38
  593. package/esm2015/slider/slider.module.js +0 -20
  594. package/esm2015/snackbar/snackbar/snackbar.component.js +0 -22
  595. package/esm2015/snackbar/snackbar.module.js +0 -31
  596. package/esm2015/snackbar/snackbar.service.js +0 -48
  597. package/esm2015/specificdatepicker/mis-crystal-design-system-specificdatepicker.js +0 -7
  598. package/esm2015/specificdatepicker/public_api.js +0 -3
  599. package/esm2015/specificdatepicker/specificdatepicker.module.js +0 -20
  600. package/esm2015/specificdatepicker/tz-sdp-container/tz-sdp-container.component.js +0 -356
  601. package/esm2015/specificdatepicker/tz-specificdatepicker.directive.js +0 -179
  602. package/esm2015/star-rating/star-rating.component.js +0 -78
  603. package/esm2015/star-rating/star-rating.module.js +0 -13
  604. package/esm2015/switch/switch.component.js +0 -39
  605. package/esm2015/switch/switch.module.js +0 -17
  606. package/esm2015/table/custom-table-cell.directive.js +0 -42
  607. package/esm2015/table/filter/filter.component.js +0 -75
  608. package/esm2015/table/mis-crystal-design-system-table.js +0 -6
  609. package/esm2015/table/public_api.js +0 -5
  610. package/esm2015/table/sub-table/sub-table.component.js +0 -69
  611. package/esm2015/table/table.component.js +0 -200
  612. package/esm2015/table/table.module.js +0 -21
  613. package/esm2015/timepicker/mis-crystal-design-system-timepicker.js +0 -6
  614. package/esm2015/timepicker/timepicker.component.js +0 -248
  615. package/esm2015/timepicker/timepicker.directive.js +0 -62
  616. package/esm2015/timepicker/timepicker.module.js +0 -20
  617. package/esm2015/timerangepicker/timerangepicker.component.js +0 -194
  618. package/esm2015/timerangepicker/timerangepicker.module.js +0 -18
  619. package/esm2015/toast/toast.component.js +0 -28
  620. package/esm2015/toast/toast.module.js +0 -28
  621. package/esm2015/toast/toast.service.js +0 -96
  622. package/esm2015/tooltip/tooltip-container/tooltip.component.js +0 -35
  623. package/esm2015/tooltip/tooltip.directive.js +0 -128
  624. package/esm2015/tooltip/tooltip.module.js +0 -19
  625. package/esm2015/virtual-scroll/virtual-scroll.component.js +0 -111
  626. package/esm2015/virtual-scroll/virtual-scroll.module.js +0 -24
  627. package/esm2015/widgets/classes/widget-group.js +0 -32
  628. package/esm2015/widgets/services/widget.service.js +0 -16
  629. package/esm2015/widgets/widgets.module.js +0 -12
  630. package/fab/mis-crystal-design-system-fab.d.ts +0 -4
  631. package/fab/mis-crystal-design-system-fab.metadata.json +0 -1
  632. package/fab/package.json +0 -11
  633. package/fesm2015/mis-crystal-design-system-action-list.js +0 -184
  634. package/fesm2015/mis-crystal-design-system-action-list.js.map +0 -1
  635. package/fesm2015/mis-crystal-design-system-analytics.js.map +0 -1
  636. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js +0 -262
  637. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js.map +0 -1
  638. package/fesm2015/mis-crystal-design-system-button.js +0 -120
  639. package/fesm2015/mis-crystal-design-system-button.js.map +0 -1
  640. package/fesm2015/mis-crystal-design-system-checkbox.js +0 -100
  641. package/fesm2015/mis-crystal-design-system-checkbox.js.map +0 -1
  642. package/fesm2015/mis-crystal-design-system-chip.js +0 -52
  643. package/fesm2015/mis-crystal-design-system-chip.js.map +0 -1
  644. package/fesm2015/mis-crystal-design-system-datepicker_v2.js +0 -357
  645. package/fesm2015/mis-crystal-design-system-datepicker_v2.js.map +0 -1
  646. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js +0 -413
  647. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js.map +0 -1
  648. package/fesm2015/mis-crystal-design-system-drawer.js.map +0 -1
  649. package/fesm2015/mis-crystal-design-system-dropdown.js +0 -232
  650. package/fesm2015/mis-crystal-design-system-dropdown.js.map +0 -1
  651. package/fesm2015/mis-crystal-design-system-dynamic-form.js +0 -346
  652. package/fesm2015/mis-crystal-design-system-dynamic-form.js.map +0 -1
  653. package/fesm2015/mis-crystal-design-system-fab.js +0 -84
  654. package/fesm2015/mis-crystal-design-system-fab.js.map +0 -1
  655. package/fesm2015/mis-crystal-design-system-input-stepper.js +0 -73
  656. package/fesm2015/mis-crystal-design-system-input-stepper.js.map +0 -1
  657. package/fesm2015/mis-crystal-design-system-input.js +0 -99
  658. package/fesm2015/mis-crystal-design-system-input.js.map +0 -1
  659. package/fesm2015/mis-crystal-design-system-loader.js +0 -41
  660. package/fesm2015/mis-crystal-design-system-loader.js.map +0 -1
  661. package/fesm2015/mis-crystal-design-system-menu.js +0 -106
  662. package/fesm2015/mis-crystal-design-system-menu.js.map +0 -1
  663. package/fesm2015/mis-crystal-design-system-mobile-filter.js +0 -74
  664. package/fesm2015/mis-crystal-design-system-mobile-filter.js.map +0 -1
  665. package/fesm2015/mis-crystal-design-system-modal.js +0 -147
  666. package/fesm2015/mis-crystal-design-system-modal.js.map +0 -1
  667. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js +0 -293
  668. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js.map +0 -1
  669. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js +0 -289
  670. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js.map +0 -1
  671. package/fesm2015/mis-crystal-design-system-phone-input.js +0 -109
  672. package/fesm2015/mis-crystal-design-system-phone-input.js.map +0 -1
  673. package/fesm2015/mis-crystal-design-system-radio-button.js +0 -66
  674. package/fesm2015/mis-crystal-design-system-radio-button.js.map +0 -1
  675. package/fesm2015/mis-crystal-design-system-ske-loader.js +0 -49
  676. package/fesm2015/mis-crystal-design-system-ske-loader.js.map +0 -1
  677. package/fesm2015/mis-crystal-design-system-slider.js +0 -62
  678. package/fesm2015/mis-crystal-design-system-slider.js.map +0 -1
  679. package/fesm2015/mis-crystal-design-system-snackbar.js +0 -101
  680. package/fesm2015/mis-crystal-design-system-snackbar.js.map +0 -1
  681. package/fesm2015/mis-crystal-design-system-specificdatepicker.js +0 -599
  682. package/fesm2015/mis-crystal-design-system-specificdatepicker.js.map +0 -1
  683. package/fesm2015/mis-crystal-design-system-star-rating.js +0 -96
  684. package/fesm2015/mis-crystal-design-system-star-rating.js.map +0 -1
  685. package/fesm2015/mis-crystal-design-system-styles.js +0 -4
  686. package/fesm2015/mis-crystal-design-system-styles.js.map +0 -1
  687. package/fesm2015/mis-crystal-design-system-switch.js +0 -60
  688. package/fesm2015/mis-crystal-design-system-switch.js.map +0 -1
  689. package/fesm2015/mis-crystal-design-system-table.js +0 -406
  690. package/fesm2015/mis-crystal-design-system-table.js.map +0 -1
  691. package/fesm2015/mis-crystal-design-system-timepicker.js +0 -330
  692. package/fesm2015/mis-crystal-design-system-timepicker.js.map +0 -1
  693. package/fesm2015/mis-crystal-design-system-timerangepicker.js.map +0 -1
  694. package/fesm2015/mis-crystal-design-system-toast.js +0 -174
  695. package/fesm2015/mis-crystal-design-system-toast.js.map +0 -1
  696. package/fesm2015/mis-crystal-design-system-tooltip.js +0 -183
  697. package/fesm2015/mis-crystal-design-system-tooltip.js.map +0 -1
  698. package/fesm2015/mis-crystal-design-system-utils.js.map +0 -1
  699. package/fesm2015/mis-crystal-design-system-virtual-scroll.js +0 -141
  700. package/fesm2015/mis-crystal-design-system-virtual-scroll.js.map +0 -1
  701. package/fesm2015/mis-crystal-design-system-widgets.js.map +0 -1
  702. package/fesm2015/mis-crystal-design-system.js.map +0 -1
  703. package/input/mis-crystal-design-system-input.d.ts +0 -4
  704. package/input/mis-crystal-design-system-input.metadata.json +0 -1
  705. package/input/package.json +0 -11
  706. package/input-stepper/mis-crystal-design-system-input-stepper.d.ts +0 -4
  707. package/input-stepper/mis-crystal-design-system-input-stepper.metadata.json +0 -1
  708. package/input-stepper/package.json +0 -11
  709. package/loader/mis-crystal-design-system-loader.d.ts +0 -4
  710. package/loader/mis-crystal-design-system-loader.metadata.json +0 -1
  711. package/loader/package.json +0 -11
  712. package/menu/mis-crystal-design-system-menu.d.ts +0 -4
  713. package/menu/mis-crystal-design-system-menu.metadata.json +0 -1
  714. package/menu/package.json +0 -11
  715. package/mis-crystal-design-system.d.ts +0 -4
  716. package/mis-crystal-design-system.metadata.json +0 -1
  717. package/mobile-filter/mis-crystal-design-system-mobile-filter.d.ts +0 -4
  718. package/mobile-filter/mis-crystal-design-system-mobile-filter.metadata.json +0 -1
  719. package/mobile-filter/package.json +0 -11
  720. package/modal/mis-crystal-design-system-modal.d.ts +0 -5
  721. package/modal/mis-crystal-design-system-modal.metadata.json +0 -1
  722. package/modal/package.json +0 -11
  723. package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.d.ts +0 -4
  724. package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.metadata.json +0 -1
  725. package/multi-select-dropdown/package.json +0 -11
  726. package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.d.ts +0 -4
  727. package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.metadata.json +0 -1
  728. package/nested-multi-select-dropdown/package.json +0 -11
  729. package/phone-input/mis-crystal-design-system-phone-input.d.ts +0 -4
  730. package/phone-input/mis-crystal-design-system-phone-input.metadata.json +0 -1
  731. package/phone-input/package.json +0 -11
  732. package/radio-button/mis-crystal-design-system-radio-button.d.ts +0 -4
  733. package/radio-button/mis-crystal-design-system-radio-button.metadata.json +0 -1
  734. package/radio-button/package.json +0 -11
  735. package/ske-loader/mis-crystal-design-system-ske-loader.d.ts +0 -4
  736. package/ske-loader/mis-crystal-design-system-ske-loader.metadata.json +0 -1
  737. package/ske-loader/package.json +0 -11
  738. package/slider/mis-crystal-design-system-slider.d.ts +0 -4
  739. package/slider/mis-crystal-design-system-slider.metadata.json +0 -1
  740. package/slider/package.json +0 -11
  741. package/snackbar/mis-crystal-design-system-snackbar.d.ts +0 -4
  742. package/snackbar/mis-crystal-design-system-snackbar.metadata.json +0 -1
  743. package/snackbar/package.json +0 -11
  744. package/specificdatepicker/mis-crystal-design-system-specificdatepicker.d.ts +0 -7
  745. package/specificdatepicker/mis-crystal-design-system-specificdatepicker.metadata.json +0 -1
  746. package/specificdatepicker/package.json +0 -11
  747. package/star-rating/mis-crystal-design-system-star-rating.d.ts +0 -4
  748. package/star-rating/mis-crystal-design-system-star-rating.metadata.json +0 -1
  749. package/star-rating/package.json +0 -11
  750. package/styles/mis-crystal-design-system-styles.d.ts +0 -4
  751. package/styles/mis-crystal-design-system-styles.metadata.json +0 -1
  752. package/styles/package.json +0 -11
  753. package/switch/mis-crystal-design-system-switch.d.ts +0 -4
  754. package/switch/mis-crystal-design-system-switch.metadata.json +0 -1
  755. package/switch/package.json +0 -11
  756. package/table/mis-crystal-design-system-table.d.ts +0 -5
  757. package/table/mis-crystal-design-system-table.metadata.json +0 -1
  758. package/table/package.json +0 -11
  759. package/timepicker/mis-crystal-design-system-timepicker.d.ts +0 -5
  760. package/timepicker/mis-crystal-design-system-timepicker.metadata.json +0 -1
  761. package/timepicker/package.json +0 -11
  762. package/timerangepicker/mis-crystal-design-system-timerangepicker.d.ts +0 -4
  763. package/timerangepicker/mis-crystal-design-system-timerangepicker.metadata.json +0 -1
  764. package/timerangepicker/package.json +0 -11
  765. package/toast/mis-crystal-design-system-toast.d.ts +0 -4
  766. package/toast/mis-crystal-design-system-toast.metadata.json +0 -1
  767. package/toast/package.json +0 -11
  768. package/tooltip/mis-crystal-design-system-tooltip.d.ts +0 -4
  769. package/tooltip/mis-crystal-design-system-tooltip.metadata.json +0 -1
  770. package/tooltip/package.json +0 -11
  771. package/utils/mis-crystal-design-system-utils.d.ts +0 -4
  772. package/utils/mis-crystal-design-system-utils.metadata.json +0 -1
  773. package/utils/package.json +0 -11
  774. package/virtual-scroll/mis-crystal-design-system-virtual-scroll.d.ts +0 -4
  775. package/virtual-scroll/mis-crystal-design-system-virtual-scroll.metadata.json +0 -1
  776. package/virtual-scroll/package.json +0 -11
  777. package/widgets/mis-crystal-design-system-widgets.d.ts +0 -4
  778. package/widgets/mis-crystal-design-system-widgets.metadata.json +0 -1
  779. package/widgets/package.json +0 -11
  780. /package/{esm2015/action-list/index.js → esm2020/action-list/index.mjs} +0 -0
  781. /package/{esm2015/action-list/mis-crystal-design-system-action-list.js → esm2020/action-list/mis-crystal-design-system-action-list.mjs} +0 -0
  782. /package/{esm2015/action-list/public_api.js → esm2020/action-list/public_api.mjs} +0 -0
  783. /package/{esm2015/analytics/index.js → esm2020/analytics/index.mjs} +0 -0
  784. /package/{esm2015/analytics/mis-crystal-design-system-analytics.js → esm2020/analytics/mis-crystal-design-system-analytics.mjs} +0 -0
  785. /package/{esm2015/analytics/public_api.js → esm2020/analytics/public_api.mjs} +0 -0
  786. /package/{esm2015/async-search-dropdown/index.js → esm2020/async-search-dropdown/index.mjs} +0 -0
  787. /package/{esm2015/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.js → esm2020/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.mjs} +0 -0
  788. /package/{esm2015/async-search-dropdown/public_api.js → esm2020/async-search-dropdown/public_api.mjs} +0 -0
  789. /package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
  790. /package/{esm2015/button/mis-crystal-design-system-button.js → esm2020/button/mis-crystal-design-system-button.mjs} +0 -0
  791. /package/{esm2015/button/public_api.js → esm2020/button/public_api.mjs} +0 -0
  792. /package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
  793. /package/{esm2015/checkbox/mis-crystal-design-system-checkbox.js → esm2020/checkbox/mis-crystal-design-system-checkbox.mjs} +0 -0
  794. /package/{esm2015/checkbox/public_api.js → esm2020/checkbox/public_api.mjs} +0 -0
  795. /package/{esm2015/chip/index.js → esm2020/chip/index.mjs} +0 -0
  796. /package/{esm2015/chip/mis-crystal-design-system-chip.js → esm2020/chip/mis-crystal-design-system-chip.mjs} +0 -0
  797. /package/{esm2015/chip/public_api.js → esm2020/chip/public_api.mjs} +0 -0
  798. /package/{esm2015/datepicker_v2/datepicker-constants.js → esm2020/datepicker_v2/datepicker-constants.mjs} +0 -0
  799. /package/{esm2015/datepicker_v2/index.js → esm2020/datepicker_v2/index.mjs} +0 -0
  800. /package/{esm2015/datepicker_v2/models/dp-config.model.js → esm2020/datepicker_v2/models/dp-config.model.mjs} +0 -0
  801. /package/{esm2015/datepicker_v2/utils/index.js → esm2020/datepicker_v2/utils/index.mjs} +0 -0
  802. /package/{esm2015/daterangepicker_v2/daterangepicker-constants.js → esm2020/daterangepicker_v2/daterangepicker-constants.mjs} +0 -0
  803. /package/{esm2015/daterangepicker_v2/index.js → esm2020/daterangepicker_v2/index.mjs} +0 -0
  804. /package/{esm2015/daterangepicker_v2/models/drp-config.model.js → esm2020/daterangepicker_v2/models/drp-config.model.mjs} +0 -0
  805. /package/{esm2015/daterangepicker_v2/utils/index.js → esm2020/daterangepicker_v2/utils/index.mjs} +0 -0
  806. /package/{esm2015/drawer/drawer-constants.js → esm2020/drawer/drawer-constants.mjs} +0 -0
  807. /package/{esm2015/drawer/drawer-ref.js → esm2020/drawer/drawer-ref.mjs} +0 -0
  808. /package/{esm2015/drawer/index.js → esm2020/drawer/index.mjs} +0 -0
  809. /package/{esm2015/drawer/public_api.js → esm2020/drawer/public_api.mjs} +0 -0
  810. /package/{esm2015/dropdown/index.js → esm2020/dropdown/index.mjs} +0 -0
  811. /package/{esm2015/dropdown/public_api.js → esm2020/dropdown/public_api.mjs} +0 -0
  812. /package/{esm2015/dynamic-form/dynamic-form.namespace.js → esm2020/dynamic-form/dynamic-form.namespace.mjs} +0 -0
  813. /package/{esm2015/dynamic-form/index.js → esm2020/dynamic-form/index.mjs} +0 -0
  814. /package/{esm2015/dynamic-form/mis-crystal-design-system-dynamic-form.js → esm2020/dynamic-form/mis-crystal-design-system-dynamic-form.mjs} +0 -0
  815. /package/{esm2015/dynamic-form/public_api.js → esm2020/dynamic-form/public_api.mjs} +0 -0
  816. /package/{esm2015/fab/index.js → esm2020/fab/index.mjs} +0 -0
  817. /package/{esm2015/fab/mis-crystal-design-system-fab.js → esm2020/fab/mis-crystal-design-system-fab.mjs} +0 -0
  818. /package/{esm2015/fab/public_api.js → esm2020/fab/public_api.mjs} +0 -0
  819. /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  820. /package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
  821. /package/{esm2015/input/mis-crystal-design-system-input.js → esm2020/input/mis-crystal-design-system-input.mjs} +0 -0
  822. /package/{esm2015/input/public_api.js → esm2020/input/public_api.mjs} +0 -0
  823. /package/{esm2015/input-stepper/index.js → esm2020/input-stepper/index.mjs} +0 -0
  824. /package/{esm2015/input-stepper/mis-crystal-design-system-input-stepper.js → esm2020/input-stepper/mis-crystal-design-system-input-stepper.mjs} +0 -0
  825. /package/{esm2015/input-stepper/public_api.js → esm2020/input-stepper/public_api.mjs} +0 -0
  826. /package/{esm2015/loader/index.js → esm2020/loader/index.mjs} +0 -0
  827. /package/{esm2015/loader/mis-crystal-design-system-loader.js → esm2020/loader/mis-crystal-design-system-loader.mjs} +0 -0
  828. /package/{esm2015/loader/public_api.js → esm2020/loader/public_api.mjs} +0 -0
  829. /package/{esm2015/menu/index.js → esm2020/menu/index.mjs} +0 -0
  830. /package/{esm2015/menu/mis-crystal-design-system-menu.js → esm2020/menu/mis-crystal-design-system-menu.mjs} +0 -0
  831. /package/{esm2015/menu/public_api.js → esm2020/menu/public_api.mjs} +0 -0
  832. /package/{esm2015/mis-crystal-design-system.js → esm2020/mis-crystal-design-system.mjs} +0 -0
  833. /package/{esm2015/mobile-filter/index.js → esm2020/mobile-filter/index.mjs} +0 -0
  834. /package/{esm2015/mobile-filter/mis-crystal-design-system-mobile-filter.js → esm2020/mobile-filter/mis-crystal-design-system-mobile-filter.mjs} +0 -0
  835. /package/{esm2015/mobile-filter/public_api.js → esm2020/mobile-filter/public_api.mjs} +0 -0
  836. /package/{esm2015/modal/index.js → esm2020/modal/index.mjs} +0 -0
  837. /package/{esm2015/modal/modal-constants.js → esm2020/modal/modal-constants.mjs} +0 -0
  838. /package/{esm2015/modal/modal-ref.js → esm2020/modal/modal-ref.mjs} +0 -0
  839. /package/{esm2015/modal/public_api.js → esm2020/modal/public_api.mjs} +0 -0
  840. /package/{esm2015/multi-select-dropdown/index.js → esm2020/multi-select-dropdown/index.mjs} +0 -0
  841. /package/{esm2015/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.js → esm2020/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.mjs} +0 -0
  842. /package/{esm2015/multi-select-dropdown/public_api.js → esm2020/multi-select-dropdown/public_api.mjs} +0 -0
  843. /package/{esm2015/nested-multi-select-dropdown/index.js → esm2020/nested-multi-select-dropdown/index.mjs} +0 -0
  844. /package/{esm2015/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.js → esm2020/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.mjs} +0 -0
  845. /package/{esm2015/nested-multi-select-dropdown/public_api.js → esm2020/nested-multi-select-dropdown/public_api.mjs} +0 -0
  846. /package/{esm2015/phone-input/index.js → esm2020/phone-input/index.mjs} +0 -0
  847. /package/{esm2015/phone-input/mis-crystal-design-system-phone-input.js → esm2020/phone-input/mis-crystal-design-system-phone-input.mjs} +0 -0
  848. /package/{esm2015/phone-input/public_api.js → esm2020/phone-input/public_api.mjs} +0 -0
  849. /package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  850. /package/{esm2015/radio-button/index.js → esm2020/radio-button/index.mjs} +0 -0
  851. /package/{esm2015/radio-button/mis-crystal-design-system-radio-button.js → esm2020/radio-button/mis-crystal-design-system-radio-button.mjs} +0 -0
  852. /package/{esm2015/radio-button/public_api.js → esm2020/radio-button/public_api.mjs} +0 -0
  853. /package/{esm2015/ske-loader/index.js → esm2020/ske-loader/index.mjs} +0 -0
  854. /package/{esm2015/ske-loader/mis-crystal-design-system-ske-loader.js → esm2020/ske-loader/mis-crystal-design-system-ske-loader.mjs} +0 -0
  855. /package/{esm2015/ske-loader/public_api.js → esm2020/ske-loader/public_api.mjs} +0 -0
  856. /package/{esm2015/slider/index.js → esm2020/slider/index.mjs} +0 -0
  857. /package/{esm2015/slider/mis-crystal-design-system-slider.js → esm2020/slider/mis-crystal-design-system-slider.mjs} +0 -0
  858. /package/{esm2015/slider/public_api.js → esm2020/slider/public_api.mjs} +0 -0
  859. /package/{esm2015/snackbar/index.js → esm2020/snackbar/index.mjs} +0 -0
  860. /package/{esm2015/snackbar/mis-crystal-design-system-snackbar.js → esm2020/snackbar/mis-crystal-design-system-snackbar.mjs} +0 -0
  861. /package/{esm2015/snackbar/public_api.js → esm2020/snackbar/public_api.mjs} +0 -0
  862. /package/{esm2015/specificdatepicker/daterangepicker-constants.js → esm2020/specificdatepicker/daterangepicker-constants.mjs} +0 -0
  863. /package/{esm2015/specificdatepicker/index.js → esm2020/specificdatepicker/index.mjs} +0 -0
  864. /package/{esm2015/specificdatepicker/models/sdp-config.model.js → esm2020/specificdatepicker/models/sdp-config.model.mjs} +0 -0
  865. /package/{esm2015/specificdatepicker/utils/index.js → esm2020/specificdatepicker/utils/index.mjs} +0 -0
  866. /package/{esm2015/star-rating/index.js → esm2020/star-rating/index.mjs} +0 -0
  867. /package/{esm2015/star-rating/mis-crystal-design-system-star-rating.js → esm2020/star-rating/mis-crystal-design-system-star-rating.mjs} +0 -0
  868. /package/{esm2015/star-rating/public_api.js → esm2020/star-rating/public_api.mjs} +0 -0
  869. /package/{esm2015/styles/index.js → esm2020/styles/index.mjs} +0 -0
  870. /package/{esm2015/styles/mis-crystal-design-system-styles.js → esm2020/styles/mis-crystal-design-system-styles.mjs} +0 -0
  871. /package/{esm2015/styles/public_api.js → esm2020/styles/public_api.mjs} +0 -0
  872. /package/{esm2015/switch/index.js → esm2020/switch/index.mjs} +0 -0
  873. /package/{esm2015/switch/mis-crystal-design-system-switch.js → esm2020/switch/mis-crystal-design-system-switch.mjs} +0 -0
  874. /package/{esm2015/switch/public_api.js → esm2020/switch/public_api.mjs} +0 -0
  875. /package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
  876. /package/{esm2015/timepicker/index.js → esm2020/timepicker/index.mjs} +0 -0
  877. /package/{esm2015/timepicker/public_api.js → esm2020/timepicker/public_api.mjs} +0 -0
  878. /package/{esm2015/timepicker/time.namespace.js → esm2020/timepicker/time.namespace.mjs} +0 -0
  879. /package/{esm2015/timerangepicker/index.js → esm2020/timerangepicker/index.mjs} +0 -0
  880. /package/{esm2015/timerangepicker/mis-crystal-design-system-timerangepicker.js → esm2020/timerangepicker/mis-crystal-design-system-timerangepicker.mjs} +0 -0
  881. /package/{esm2015/timerangepicker/public_api.js → esm2020/timerangepicker/public_api.mjs} +0 -0
  882. /package/{esm2015/timerangepicker/timerange.namespace.js → esm2020/timerangepicker/timerange.namespace.mjs} +0 -0
  883. /package/{esm2015/toast/index.js → esm2020/toast/index.mjs} +0 -0
  884. /package/{esm2015/toast/mis-crystal-design-system-toast.js → esm2020/toast/mis-crystal-design-system-toast.mjs} +0 -0
  885. /package/{esm2015/toast/public_api.js → esm2020/toast/public_api.mjs} +0 -0
  886. /package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
  887. /package/{esm2015/tooltip/mis-crystal-design-system-tooltip.js → esm2020/tooltip/mis-crystal-design-system-tooltip.mjs} +0 -0
  888. /package/{esm2015/tooltip/models/tooltip.model.js → esm2020/tooltip/models/tooltip.model.mjs} +0 -0
  889. /package/{esm2015/tooltip/public_api.js → esm2020/tooltip/public_api.mjs} +0 -0
  890. /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
  891. /package/{esm2015/utils/mis-crystal-design-system-utils.js → esm2020/utils/mis-crystal-design-system-utils.mjs} +0 -0
  892. /package/{esm2015/virtual-scroll/index.js → esm2020/virtual-scroll/index.mjs} +0 -0
  893. /package/{esm2015/virtual-scroll/mis-crystal-design-system-virtual-scroll.js → esm2020/virtual-scroll/mis-crystal-design-system-virtual-scroll.mjs} +0 -0
  894. /package/{esm2015/virtual-scroll/public_api.js → esm2020/virtual-scroll/public_api.mjs} +0 -0
  895. /package/{esm2015/virtual-scroll/virtual-scroll.constants.js → esm2020/virtual-scroll/virtual-scroll.constants.mjs} +0 -0
  896. /package/{esm2015/widgets/classes/async-widget.js → esm2020/widgets/classes/async-widget.mjs} +0 -0
  897. /package/{esm2015/widgets/classes/sync-widget.js → esm2020/widgets/classes/sync-widget.mjs} +0 -0
  898. /package/{esm2015/widgets/index.js → esm2020/widgets/index.mjs} +0 -0
  899. /package/{esm2015/widgets/interfaces/widgets.model.js → esm2020/widgets/interfaces/widgets.model.mjs} +0 -0
  900. /package/{esm2015/widgets/mis-crystal-design-system-widgets.js → esm2020/widgets/mis-crystal-design-system-widgets.mjs} +0 -0
  901. /package/{esm2015/widgets/public_api.js → esm2020/widgets/public_api.mjs} +0 -0
@@ -1,232 +0,0 @@
1
- import { ConnectionPositionPair, OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';
2
- import { TemplatePortal } from '@angular/cdk/portal';
3
- import { EventEmitter, Component, ElementRef, ViewContainerRef, Input, Output, ViewChild, Directive, NgModule } from '@angular/core';
4
- import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
5
- import { CommonModule } from '@angular/common';
6
- import { FormsModule } from '@angular/forms';
7
- import { ScrollingModule } from '@angular/cdk-experimental/scrolling';
8
- import { LoaderModule } from 'mis-crystal-design-system/loader';
9
-
10
- class DropdownComponent {
11
- constructor(eRef, overlay, viewContainerRef) {
12
- this.eRef = eRef;
13
- this.overlay = overlay;
14
- this.viewContainerRef = viewContainerRef;
15
- this.isOpen = false;
16
- this.loading = false;
17
- this.isSearchInputFocused = false;
18
- this.searchInput = "";
19
- this.searchData = [];
20
- this.visibleItems = 10;
21
- this.data = [];
22
- this.height = "";
23
- this.width = "";
24
- this.label = "Select";
25
- this.showOnlyIcon = false;
26
- this.higlightSelectedValue = false;
27
- this.dropdownListHeight = "";
28
- this.dropdownListWidth = "";
29
- this.dropdownListPosition = "Left";
30
- this.searchEnabled = true;
31
- this.selectedItem = { value: "", label: "" };
32
- this.noDataMessage = "No Data";
33
- this.multiLine = false;
34
- this.scrollIntoView = false;
35
- this.searchLabel = "Search Keyword";
36
- this.activeItem = false;
37
- this.onChange = new EventEmitter();
38
- }
39
- ngOnInit() {
40
- }
41
- getIconStyles(item, activeItem) {
42
- return {
43
- 'color': item && activeItem ? '#0937B2' : '',
44
- 'font-weight': item && activeItem ? '700' : ''
45
- };
46
- }
47
- setUpAsyncDataSearch() {
48
- if (this.config) {
49
- this.loading = true;
50
- this.config.dataStream().pipe().subscribe(res => {
51
- this.data = res;
52
- this.loading = false;
53
- });
54
- }
55
- const index = this.data.findIndex((dataItem) => dataItem.value === this.selectedItem.value);
56
- if (this.scrollIntoView)
57
- this.viewPort.scrollToIndex(index, 'smooth');
58
- }
59
- filterByValue(array, string) {
60
- return array.filter(o => o.label.toLowerCase().includes(string.toLowerCase().trim()));
61
- }
62
- filterByPrimaryText(array, string) {
63
- return array.filter(o => o.label.primaryText.toLowerCase().includes(string.toLowerCase().trim()));
64
- }
65
- searchInputOnChange(newValue) {
66
- this.searchInput = newValue;
67
- if (newValue) {
68
- this.searchData = this.multiLine ? this.filterByPrimaryText(this.data, newValue) : this.filterByValue(this.data, newValue);
69
- }
70
- else {
71
- this.searchData = [];
72
- this.searchInput = "";
73
- }
74
- }
75
- searchInputFocused(isFocused) {
76
- this.isSearchInputFocused = isFocused;
77
- }
78
- searchInputCanceled(event) {
79
- event.stopPropagation();
80
- this.searchInput = "";
81
- this.isSearchInputFocused = false;
82
- }
83
- toggleDropdown() {
84
- this.isOpen = !this.isOpen;
85
- if (this.isOpen)
86
- this.openDropdown(this.popupContainer, this.selectElement.nativeElement);
87
- else
88
- this.onCancel();
89
- }
90
- openDropdown(template, origin) {
91
- const positionsBottom = [
92
- new ConnectionPositionPair({ originX: "start", originY: "bottom" }, { overlayX: "start", overlayY: "top" }, 0, 4),
93
- new ConnectionPositionPair({ originX: "end", originY: "bottom" }, { overlayX: "end", overlayY: "top" }, 0, 4)
94
- ];
95
- const positionsTop = [
96
- new ConnectionPositionPair({ originX: "start", originY: "top" }, { overlayX: "start", overlayY: "bottom" }, 0, -4),
97
- new ConnectionPositionPair({ originX: "end", originY: "top" }, { overlayX: "end", overlayY: "bottom" }, 0, -4)
98
- ];
99
- const positionStrategy = this.overlay
100
- .position()
101
- .flexibleConnectedTo(origin)
102
- .withPositions([
103
- ...(this.dropdownListPosition === "Right" ? positionsBottom.reverse() : positionsBottom),
104
- ...(this.dropdownListPosition === "Right" ? positionsTop.reverse() : positionsTop)
105
- ])
106
- .withPush(true);
107
- const configs = new OverlayConfig({
108
- hasBackdrop: true,
109
- backdropClass: "cdk-overlay-transparent-backdrop",
110
- scrollStrategy: this.overlay.scrollStrategies.reposition(),
111
- positionStrategy,
112
- width: origin.clientWidth
113
- });
114
- this.overlayRef = this.overlay.create(configs);
115
- if (this.dropdownListWidth)
116
- this.overlayRef.updateSize({ width: this.dropdownListWidth });
117
- if (this.dropdownListHeight)
118
- this.overlayRef.updateSize({ height: this.dropdownListHeight });
119
- this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));
120
- this.overlayRef.backdropClick().subscribe(res => {
121
- this.onCancel();
122
- });
123
- }
124
- selectItem(item) {
125
- this.onChange.emit(item);
126
- this.toggleDropdown();
127
- }
128
- onCancel() {
129
- var _a;
130
- this.isSearchInputFocused = false;
131
- this.isOpen = false;
132
- (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
133
- this.searchInput = "";
134
- }
135
- }
136
- DropdownComponent.decorators = [
137
- { type: Component, args: [{
138
- selector: "mis-dropdown",
139
- template: "<div (click)=\"setUpAsyncDataSearch()\"\n class=\"main-container\"\n [ngStyle]=\"{\n height: height.length > 0 ? height : '',\n width: width.length > 0 ? width : ''\n }\"\n>\n <div\n class=\"dropdown\"\n #select\n tabindex=\"0\"\n (keyup.enter)=\"toggleDropdown()\"\n (click)=\"toggleDropdown()\"\n [ngStyle]=\"customStyles\"\n [ngClass]=\"isOpen ? 'dropdown-port': ''\"\n >\n <img class=\"img-container\" [src]=\"selectedItem.customIcon\" *ngIf=\"selectedItem.customIcon\">\n <div class=\"label\">\n <p class=\"text\" *ngIf=\"!showOnlyIcon; else showIcon\">\n {{ multiLine ? selectedItem.label?.primaryText : selectedItem.label || label }}\n </p>\n <ng-template #showIcon>\n <p class=\"text\" *ngIf=\"!selectedItem.icon\">\n {{ label }}\n </p>\n <img class=\"icon\" *ngIf=\"!!selectedItem.icon\" [src]=\"selectedItem.icon\" alt=\"no img\" />\n </ng-template>\n </div>\n <svg\n class=\"handle\"\n [ngStyle]=\"{ transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)' }\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.825 7.15845L10 10.9751L6.175 7.15845L5 8.33345L10 13.3334L15 8.33345L13.825 7.15845Z\"\n fill=\"#181F33\"\n />\n </svg>\n </div>\n</div>\n<ng-template #popupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n >\n <div *ngIf=\"searchEnabled\" class=\"search-container\">\n <svg\n *ngIf=\"!isSearchInputFocused\"\n class=\"search-icon\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4.21508 11.1456C4.21508 7.3179 7.33722 4.21165 11.1926 4.21165C15.048 4.21165 18.1702 7.3179 18.1702 11.1456C18.1702 12.6931 17.6599 14.1226 16.7972 15.2767L15.3685 16.7013C14.2044 17.5668 12.759 18.0796 11.1926 18.0796C7.33722 18.0796 4.21508 14.9734 4.21508 11.1456ZM15.9421 17.7835C14.6021 18.7329 12.9627 19.2913 11.1926 19.2913C6.66977 19.2913 3 15.6461 3 11.1456C3 6.64512 6.66977 3 11.1926 3C15.7155 3 19.3852 6.64512 19.3852 11.1456C19.3852 12.9371 18.8037 14.5931 17.8184 15.9375L19.8361 17.4048C20.6705 17.912 21.7554 18.6543 20.2454 20.215C18.7353 21.7756 18.0099 20.6663 17.4991 19.8364L15.9421 17.7835Z\"\n fill=\"#6A737D\"\n />\n </svg>\n <input\n [ngModel]=\"searchInput\"\n [ngStyle]=\"{\n paddingLeft: isSearchInputFocused ? '12px' : '45px',\n border: isSearchInputFocused ? '1px solid #0937B2' : '1px solid #e0e0e0',\n paddingRight: isSearchInputFocused ? '45px' : '10px'\n }\"\n (ngModelChange)=\"searchInputOnChange($event)\"\n [placeholder]=\"isSearchInputFocused ? '' : searchLabel\"\n (focus)=\"searchInputFocused(true)\"\n class=\"search-input\"\n />\n <svg\n *ngIf=\"isSearchInputFocused\"\n class=\"cancel-icon\"\n (click)=\"searchInputCanceled($event)\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M8.87446 7.32144C8.44588 6.89285 7.751 6.89285 7.32242 7.32144C6.89383 7.75002 6.89383 8.4449 7.32242 8.87349L10.4488 11.9999L7.32357 15.1252C6.89498 15.5538 6.89498 16.2486 7.32357 16.6772C7.75215 17.1058 8.44703 17.1058 8.87561 16.6772L12.0009 13.552L15.1261 16.6772C15.5547 17.1058 16.2496 17.1058 16.6781 16.6772C17.1067 16.2486 17.1067 15.5537 16.6781 15.1251L13.5529 11.9999L16.6793 8.87354C17.1079 8.44496 17.1079 7.75008 16.6793 7.3215C16.2507 6.89291 15.5558 6.89291 15.1273 7.3215L12.0009 10.4479L8.87446 7.32144Z\"\n fill=\"#6A737D\"\n />\n </svg>\n </div>\n <div class=\"status-container\" *ngIf=\"loading\">\n <mis-loader [mobileView]=\"true\"></mis-loader>\n </div>\n <div class=\"items\" *ngIf=\"!loading\"> \n <cdk-virtual-scroll-viewport [itemSize]=\"itemSizeForCdk\" class=\"dropdown-viewport\">\n <div\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item.disabled, 'item-selected': (higlightSelectedValue && item.value === selectedItem.value), 'icon-only' : showOnlyIcon }\"\n (click)=\"item.disabled ? null : selectItem(item)\"\n (keyup.enter)=\"item.disabled ? null : selectItem(item)\"\n *cdkVirtualFor=\"let item of searchInput ? searchData : data;\"\n >\n <div class=\"label\" *ngIf=\"!showOnlyIcon\" [ngStyle]=\"{ width: item.icon ? '90%' : '100%', 'display': multiLine ? 'flex': 'inherit', 'flex-direction': multiLine ? 'column': 'inherit' }\">\n <span class=\"primaryText\" [ngStyle]=\"getIconStyles(item.icon, activeItem)\">{{ multiLine ? item.label?.primaryText : item.label }}</span>\n <span class=\"secondaryText\" *ngIf=\"multiLine\" [ngStyle]=\"getIconStyles(item.icon, activeItem)\"> {{ item.label?.secondaryText ? item.label?.secondaryText : additionalInfoMessage }} </span>\n </div>\n <div class=\"icon-container\" *ngIf=\"item.icon\">\n <img class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n </div>\n </div>\n </cdk-virtual-scroll-viewport>\n <div class=\"noData\" *ngIf=\"(searchInput ? searchData : data).length === 0\">\n {{ searchInput === \"\" ? noDataMessage : \"No results\" }}\n </div>\n </div>\n </div>\n</ng-template>\n",
140
- styles: [".main-container{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;height:32px;width:256px;font-family:Lato,sans-serif!important}.main-container .dropdown{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:inherit;border:1px solid #e0e0e0;border-radius:6px;background-color:#fff;cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;padding:0 12px}.main-container .dropdown:focus-visible,.main-container .dropdown:hover{background-color:#f5f7fc;outline:none}.main-container .dropdown .label{box-sizing:border-box;display:flex;justify-content:flex-start;align-items:center;width:calc(100% - 32px)}.main-container .dropdown .label,.main-container .dropdown .label .text{font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container .dropdown .label .text{margin:0!important;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.main-container .dropdown .label .count{background-color:#e0e0e0;border-radius:50%;padding:2px 7px;margin:0}.main-container .dropdown .handle{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.main-container .dropdown .img-container{width:20px;height:20px}.main-container .dropdown-port{background:#e6ebf7}.popup-container{width:100%;max-height:340px;padding-bottom:0;border:1px solid #e0e0e0;border-radius:8px;background-color:#fff;box-shadow:0 12px 24px 0 rgba(0,0,0,.12);display:flex;flex-direction:column;overflow:hidden;justify-content:space-between}.popup-container::-webkit-scrollbar{width:0;height:0}.popup-container .search-container{position:relative;box-sizing:border-box;padding:8px}.popup-container .search-container .search-icon{position:absolute;width:24px;height:24px;top:50%;transform:translateY(-50%);left:18px;z-index:1}.popup-container .search-container .search-input{height:40px;width:100%;padding:12px;border:1px solid #e0e0e0;box-sizing:border-box;border-radius:8px;outline:none;caret-color:#0937b2;font-style:normal;font-weight:400;font-size:12px;line-height:18px;display:flex;align-items:center;letter-spacing:.2px;color:#181f33}.popup-container .search-container .cancel-icon{position:absolute;cursor:pointer;width:24px;height:24px;top:50%;transform:translateY(-50%);right:18px;z-index:1}.popup-container .items{padding:8px 0 8px 8px;overflow-y:scroll}.popup-container .items::-webkit-scrollbar{width:5px;height:0}.popup-container .items::-webkit-scrollbar-thumb{background:#9aa7b4;border-radius:10px}.popup-container .items .noData{display:flex;justify-content:center;align-items:center;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.popup-container .items .dropdown-viewport{height:200px}.popup-container .items .dropdown-viewport .item{cursor:pointer;display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;height:auto;letter-spacing:.2px;color:#181f33}.popup-container .items .dropdown-viewport .item:focus-visible,.popup-container .items .dropdown-viewport .item:hover{background-color:#f5f7fc;outline:none}.popup-container .items .dropdown-viewport .item .label{width:100%;line-height:20px;font-size:14px;font-style:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden}.popup-container .items .dropdown-viewport .item .label .primaryText{color:#181f33;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container .items .dropdown-viewport .item .label .secondaryText{color:#6a737d;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container .items .dropdown-viewport .item .icon-container{width:10%;display:flex;justify-content:flex-end}.popup-container .items .dropdown-viewport .item .icon-container .icon{width:20px;height:20px}.popup-container .items .item-disabled{cursor:not-allowed!important}.popup-container .items .item-disabled:focus-visible,.popup-container .items .item-disabled:hover{background-color:transparent!important;outline:none!important}.popup-container .items .item-disabled .label>span{color:#929dab!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.popup-container .items .item-selected{background-color:#e0e6f6;outline:none}.popup-container .items .icon-only{justify-content:center!important}::-webkit-scrollbar{height:8px;width:8px;background:#fff;border-radius:13px}::-webkit-scrollbar-thumb{background:#c8cdd3;border-radius:13px;cursor:pointer}.status-container{display:flex;justify-content:center;align-items:center;height:128px}.status-container p{text-align:center}"]
141
- },] }
142
- ];
143
- DropdownComponent.ctorParameters = () => [
144
- { type: ElementRef },
145
- { type: Overlay },
146
- { type: ViewContainerRef }
147
- ];
148
- DropdownComponent.propDecorators = {
149
- data: [{ type: Input }],
150
- height: [{ type: Input }],
151
- width: [{ type: Input }],
152
- label: [{ type: Input }],
153
- itemSizeForCdk: [{ type: Input }],
154
- showOnlyIcon: [{ type: Input }],
155
- higlightSelectedValue: [{ type: Input }],
156
- dropdownListHeight: [{ type: Input }],
157
- dropdownListWidth: [{ type: Input }],
158
- dropdownListPosition: [{ type: Input }],
159
- config: [{ type: Input }],
160
- searchEnabled: [{ type: Input }],
161
- selectedItem: [{ type: Input }],
162
- noDataMessage: [{ type: Input }],
163
- multiLine: [{ type: Input }],
164
- additionalInfoMessage: [{ type: Input }],
165
- scrollIntoView: [{ type: Input }],
166
- searchLabel: [{ type: Input }],
167
- customStyles: [{ type: Input }],
168
- activeItem: [{ type: Input }],
169
- onChange: [{ type: Output }],
170
- selectElement: [{ type: ViewChild, args: ["select", { static: false },] }],
171
- popupContainer: [{ type: ViewChild, args: ["popupContainer", { static: false },] }],
172
- viewPort: [{ type: ViewChild, args: [CdkVirtualScrollViewport,] }]
173
- };
174
-
175
- class CalculateContainerHeightDirective {
176
- constructor(el) {
177
- this.el = el;
178
- }
179
- ngAfterViewInit() {
180
- setTimeout(() => {
181
- this.setContainerHeight();
182
- });
183
- }
184
- setContainerHeight() {
185
- const firstItemElement = this.el.nativeElement.querySelector('.item');
186
- const firstItemHeight = firstItemElement ? firstItemElement.getBoundingClientRect().height : 0;
187
- const numberOfItems = this.items.length;
188
- let containerHeight = 0;
189
- if (firstItemHeight * numberOfItems > 200) {
190
- containerHeight = 200;
191
- }
192
- else if (numberOfItems <= this.visibleItems) {
193
- containerHeight = firstItemHeight * numberOfItems;
194
- }
195
- else {
196
- containerHeight = firstItemHeight * this.visibleItems;
197
- }
198
- this.el.nativeElement.style.height = `${containerHeight}px`;
199
- }
200
- }
201
- CalculateContainerHeightDirective.decorators = [
202
- { type: Directive, args: [{
203
- selector: '[appcalculateContainerHeight]'
204
- },] }
205
- ];
206
- CalculateContainerHeightDirective.ctorParameters = () => [
207
- { type: ElementRef }
208
- ];
209
- CalculateContainerHeightDirective.propDecorators = {
210
- items: [{ type: Input }],
211
- visibleItems: [{ type: Input }]
212
- };
213
-
214
- class DropdownModule {
215
- static forRoot() {
216
- return { ngModule: DropdownModule, providers: [] };
217
- }
218
- }
219
- DropdownModule.decorators = [
220
- { type: NgModule, args: [{
221
- declarations: [DropdownComponent, CalculateContainerHeightDirective],
222
- imports: [CommonModule, FormsModule, OverlayModule, ScrollingModule, LoaderModule],
223
- exports: [DropdownComponent]
224
- },] }
225
- ];
226
-
227
- /**
228
- * Generated bundle index. Do not edit.
229
- */
230
-
231
- export { DropdownComponent, DropdownModule, CalculateContainerHeightDirective as ɵa };
232
- //# sourceMappingURL=mis-crystal-design-system-dropdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mis-crystal-design-system-dropdown.js","sources":["../../../projects/mis-components/dropdown/dropdown.component.ts","../../../projects/mis-components/dropdown/calculate-container-height.directive.ts","../../../projects/mis-components/dropdown/dropdown.module.ts","../../../projects/mis-components/dropdown/mis-crystal-design-system-dropdown.ts"],"sourcesContent":["import { ConnectionPositionPair, Overlay, OverlayConfig, OverlayRef } from \"@angular/cdk/overlay\";\nimport { TemplatePortal } from \"@angular/cdk/portal\";\nimport { Component, ElementRef, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild, ViewContainerRef } from \"@angular/core\";\nimport { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';\n\n@Component({\n selector: \"mis-dropdown\",\n templateUrl: \"./dropdown.component.html\",\n styleUrls: [\"./dropdown.component.scss\"],\n \n})\nexport class DropdownComponent implements OnInit {\n isOpen = false;\n loading: boolean = false;\n isSearchInputFocused: boolean = false;\n searchInput: string = \"\";\n searchData: DropdownItem[] = [];\n visibleItems = 10;\n @Input() data: DropdownItem[] = [];\n @Input() height: string = \"\";\n @Input() width: string = \"\";\n @Input() label: string = \"Select\";\n @Input() itemSizeForCdk: number;\n @Input() showOnlyIcon: boolean = false;\n @Input() higlightSelectedValue: boolean = false;\n @Input() dropdownListHeight: string = \"\";\n @Input() dropdownListWidth: string = \"\";\n @Input() dropdownListPosition: \"Left\" | \"Right\" = \"Left\";\n @Input() config\n @Input() searchEnabled: boolean = true;\n @Input() selectedItem: DropdownItem = { value: \"\", label: \"\" };\n @Input() noDataMessage: string = \"No Data\";\n @Input() multiLine: boolean = false;\n @Input() additionalInfoMessage : string;\n @Input() scrollIntoView: boolean = false;\n @Input() searchLabel:string = \"Search Keyword\";\n @Input() customStyles: { [key: string]: string };\n @Input() activeItem: boolean = false;\n @Output() onChange: EventEmitter<any> = new EventEmitter();\n @ViewChild(\"select\", { static: false }) selectElement: ElementRef;\n @ViewChild(\"popupContainer\", { static: false }) popupContainer: TemplateRef<Element>;\n @ViewChild(CdkVirtualScrollViewport) viewPort: CdkVirtualScrollViewport;\n private overlayRef: OverlayRef;\n constructor(private eRef: ElementRef, private overlay: Overlay, private viewContainerRef: ViewContainerRef) {}\n ngOnInit() {\n }\n\n getIconStyles(item: any, activeItem: boolean): { [key: string]: string } {\n return {\n 'color': item && activeItem ? '#0937B2' : '',\n 'font-weight': item && activeItem ? '700' : ''\n };\n }\n\nsetUpAsyncDataSearch()\n{\n if(this.config)\n {\n this.loading = true;\n this.config.dataStream().pipe().subscribe(res=> {\n this.data = res\n this.loading = false\n })\n }\n const index = this.data.findIndex((dataItem) => dataItem.value === this.selectedItem.value);\n if (this.scrollIntoView)\n this.viewPort.scrollToIndex(index, 'smooth');\n}\n filterByValue(array, string: string) {\n return array.filter(o => o.label.toLowerCase().includes(string.toLowerCase().trim()));\n }\n\n filterByPrimaryText(array, string: string) {\n return array.filter(o => o.label.primaryText.toLowerCase().includes(string.toLowerCase().trim()));\n }\n searchInputOnChange(newValue) {\n this.searchInput = newValue;\n if (newValue) {\n this.searchData = this.multiLine ? this.filterByPrimaryText(this.data, newValue) : this.filterByValue(this.data, newValue);\n } else {\n this.searchData = [];\n this.searchInput = \"\";\n }\n }\n searchInputFocused(isFocused: boolean) {\n this.isSearchInputFocused = isFocused;\n }\n searchInputCanceled(event) {\n event.stopPropagation();\n this.searchInput = \"\";\n this.isSearchInputFocused = false;\n }\n toggleDropdown() {\n this.isOpen = !this.isOpen;\n if (this.isOpen) this.openDropdown(this.popupContainer, this.selectElement.nativeElement);\n else this.onCancel();\n }\n private openDropdown(template: TemplateRef<Element>, origin: HTMLElement): void {\n const positionsBottom = [\n new ConnectionPositionPair({ originX: \"start\", originY: \"bottom\" }, { overlayX: \"start\", overlayY: \"top\" }, 0, 4),\n new ConnectionPositionPair({ originX: \"end\", originY: \"bottom\" }, { overlayX: \"end\", overlayY: \"top\" }, 0, 4)\n ];\n const positionsTop = [\n new ConnectionPositionPair({ originX: \"start\", originY: \"top\" }, { overlayX: \"start\", overlayY: \"bottom\" }, 0, -4),\n new ConnectionPositionPair({ originX: \"end\", originY: \"top\" }, { overlayX: \"end\", overlayY: \"bottom\" }, 0, -4)\n ];\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(origin)\n .withPositions([\n ...(this.dropdownListPosition === \"Right\" ? positionsBottom.reverse() : positionsBottom),\n ...(this.dropdownListPosition === \"Right\" ? positionsTop.reverse() : positionsTop)\n ])\n .withPush(true);\n const configs = new OverlayConfig({\n hasBackdrop: true,\n backdropClass: \"cdk-overlay-transparent-backdrop\",\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy,\n width: origin.clientWidth\n });\n this.overlayRef = this.overlay.create(configs);\n if (this.dropdownListWidth) this.overlayRef.updateSize({ width: this.dropdownListWidth });\n if (this.dropdownListHeight) this.overlayRef.updateSize({ height: this.dropdownListHeight });\n this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));\n this.overlayRef.backdropClick().subscribe(res => {\n this.onCancel();\n });\n }\n selectItem(item) {\n this.onChange.emit(item); \n this.toggleDropdown();\n }\n onCancel() {\n this.isSearchInputFocused = false;\n this.isOpen = false;\n this.overlayRef?.detach();\n this.searchInput = \"\";\n }\n}\nexport interface DropdownItem {\n label: any ;\n value: string;\n icon?: string;\n disabled?: boolean;\n customIcon?: string\n}\nexport interface ActionItemLabel {\n primaryText ?: string;\n secondaryText ?: string;\n}\n","import { AfterViewInit, Directive, ElementRef, Input } from '@angular/core';\n\n@Directive({\n selector: '[appcalculateContainerHeight]'\n})\nexport class CalculateContainerHeightDirective implements AfterViewInit{\n @Input() items: any[];\n @Input() visibleItems: number;\n\n constructor(private el: ElementRef) {\n }\n\n ngAfterViewInit() {\n setTimeout(() => {\n this.setContainerHeight();\n });\n }\n\n private setContainerHeight() {\n const firstItemElement = this.el.nativeElement.querySelector('.item');\n const firstItemHeight = firstItemElement ? firstItemElement.getBoundingClientRect().height : 0;\n const numberOfItems = this.items.length;\n\n let containerHeight = 0;\n if (firstItemHeight * numberOfItems > 200) {\n containerHeight = 200;\n } else if (numberOfItems <= this.visibleItems) {\n containerHeight = firstItemHeight * numberOfItems;\n } else {\n containerHeight = firstItemHeight * this.visibleItems;\n }\n\n this.el.nativeElement.style.height = `${containerHeight}px`;\n }\n\n}\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { DropdownComponent } from \"./dropdown.component\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { ScrollingModule } from \"@angular/cdk-experimental/scrolling\";\nimport { LoaderModule } from \"mis-crystal-design-system/loader\";\nimport { CalculateContainerHeightDirective } from './calculate-container-height.directive';\n\n@NgModule({\n declarations: [DropdownComponent, CalculateContainerHeightDirective],\n imports: [CommonModule, FormsModule, OverlayModule, ScrollingModule,LoaderModule],\n exports: [DropdownComponent]\n})\nexport class DropdownModule {\n static forRoot(): ModuleWithProviders<DropdownModule> {\n return { ngModule: DropdownModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {CalculateContainerHeightDirective as ɵa} from './calculate-container-height.directive';"],"names":[],"mappings":"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"}
@@ -1,346 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { FormArray, FormGroup, Validators, FormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';
3
- import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
4
- import { OverlayModule } from '@angular/cdk/overlay';
5
- import { ScrollingModule } from '@angular/cdk-experimental/scrolling';
6
- import { DropdownModule } from 'mis-crystal-design-system/dropdown';
7
- import * as moment from 'moment';
8
- import { tz } from 'moment';
9
- import 'moment-timezone';
10
- import { SwitchModule } from 'mis-crystal-design-system/switch';
11
- import { MultiSelectDropdownModule } from 'mis-crystal-design-system/multi-select-dropdown';
12
- import { DatepickerModuleV2 } from 'mis-crystal-design-system/datepicker_v2';
13
-
14
- class DynamicFormComponent {
15
- constructor() {
16
- /**
17
- * formFields: Dynamic fields recieved from the API metadata to build a dynamic form
18
- * formValues: Holds the value of the dynamic form with "key" being dynamic field "title"
19
- * and value being the user input.
20
- */
21
- this.formFields = [];
22
- this.formValues = {};
23
- // Need to deprecate these inputs and use constants.
24
- this.activeBtnIconUrl = "";
25
- this.calendarIconUrl = "";
26
- /**
27
- * formUpdated: Emits formValues Object whenever there is a change in the dynamic form.
28
- */
29
- this.formUpdated = new EventEmitter();
30
- /**
31
- * formValid: Emits boolean depending on validity of the form
32
- */
33
- this.formValid = new EventEmitter();
34
- /**
35
- * formInitialized: Emits dynamic form API on form initilization
36
- */
37
- this.formInitialized = new EventEmitter();
38
- }
39
- ngOnInit() {
40
- // Building the form
41
- this.dynamicForm = this.generateDynamicForm(this.formFields, this.formValues);
42
- // Subscribing to form changes and emiting values.
43
- this.valueChangesSubscription$ = this.dynamicForm.valueChanges.subscribe(formValue => {
44
- this.onFormValueChanges();
45
- });
46
- //api to expose functions
47
- this.dynamicFormAPI = {
48
- defaultFormValues: () => {
49
- return this.generateDynamicFieldsValueObject(this.dynamicForm.value.dynamicFields);
50
- }
51
- };
52
- this.formInitialized.emit(this.dynamicFormAPI);
53
- this.formValid.emit(this.dynamicForm.valid);
54
- }
55
- ngOnDestroy() {
56
- var _a;
57
- (_a = this.valueChangesSubscription$) === null || _a === void 0 ? void 0 : _a.unsubscribe();
58
- }
59
- onFormValueChanges() {
60
- let formValues = this.generateDynamicFieldsValueObject(this.dynamicForm.value.dynamicFields);
61
- this.formValid.emit(this.dynamicForm.valid);
62
- this.formUpdated.emit(formValues);
63
- console.log(formValues);
64
- }
65
- generateDynamicFieldsValueObject(formValues) {
66
- let dynamicFieldsValue = {};
67
- formValues.forEach((fieldValue, index) => {
68
- var _a;
69
- let formattedValue = this.mapFormFieldToFormValue(this.formFields[index], fieldValue.value);
70
- if (((_a = fieldValue.subFields) === null || _a === void 0 ? void 0 : _a.length) > 0) {
71
- let formattedSubFieldsValues = {};
72
- fieldValue.subFields.forEach((subFieldValue, subIndex) => {
73
- let subFormField = this.formFields[index].subFields[subIndex];
74
- formattedSubFieldsValues[subFormField.configName] = this.mapFormFieldToFormValue(subFormField, subFieldValue);
75
- });
76
- dynamicFieldsValue[this.formFields[index].configName] = {
77
- value: formattedValue,
78
- subFields: formattedSubFieldsValues
79
- };
80
- }
81
- else {
82
- dynamicFieldsValue[this.formFields[index].configName] = formattedValue;
83
- }
84
- });
85
- return dynamicFieldsValue;
86
- }
87
- generateDynamicForm(formFields, formValues) {
88
- var _a;
89
- let formArray = new FormArray([]);
90
- for (let field of formFields) {
91
- let fieldValue = ((_a = formValues[field.configName]) === null || _a === void 0 ? void 0 : _a.value) ? formValues[field.configName].value : formValues[field.configName];
92
- let fieldControl = this.mapFormValueToFormField(field, fieldValue);
93
- let subFieldsControls = this.generateSubDynamicFields(formValues, field, fieldControl.value);
94
- formArray.push(new FormGroup({
95
- value: fieldControl,
96
- subFields: subFieldsControls
97
- }));
98
- }
99
- return new FormGroup({
100
- dynamicFields: formArray
101
- });
102
- }
103
- getDynamicFieldsControls() {
104
- return this.dynamicForm.get("dynamicFields");
105
- }
106
- updateSubDynamicFields(field, formGroup, value) {
107
- var _a;
108
- if (((_a = field.subFields) === null || _a === void 0 ? void 0 : _a.length) > 0) {
109
- let subFieldsControls = this.generateSubDynamicFields(this.formValues, field, value);
110
- formGroup.removeControl('subFields');
111
- formGroup.addControl('subFields', subFieldsControls);
112
- }
113
- }
114
- updateSelectedValueForSingleSelect(field, control, formGroup, value) {
115
- var _a;
116
- if (((_a = control.value) === null || _a === void 0 ? void 0 : _a.value) !== value.value) {
117
- control.setValue(value);
118
- }
119
- else
120
- control.setValue('');
121
- this.updateSubDynamicFields(field, formGroup, value);
122
- control.markAsTouched();
123
- }
124
- updateSelectedValueForMultiSelect(field, control, formGroup, values) {
125
- let selectedValues = control.value;
126
- for (let value of values) {
127
- let itemIndex = selectedValues.findIndex(item => item.label === value.label);
128
- if (itemIndex > -1) {
129
- selectedValues.splice(itemIndex, 1);
130
- }
131
- else {
132
- selectedValues.push(Object.assign({}, value));
133
- }
134
- }
135
- control.setValue(selectedValues);
136
- this.updateSubDynamicFields(field, formGroup, values);
137
- control.markAsTouched();
138
- }
139
- isCheckBoxSelected(value, selectedValues) {
140
- return selectedValues.findIndex(item => item.label === value) > -1;
141
- }
142
- findSelectedIndex(subfields, value) {
143
- const selectedIndex = subfields.findIndex(item => item.parentConfigValue === value);
144
- return selectedIndex !== -1 ? selectedIndex : 0;
145
- }
146
- matchParentConfig(subfields, value) {
147
- if (!subfields || subfields.length === 0) {
148
- return false;
149
- }
150
- return subfields.some(item => item.parentConfigValue === value);
151
- }
152
- generateSubDynamicFields(formValues, parentField, parentValue) {
153
- var _a;
154
- let controls = new FormArray([]);
155
- let subFields = parentField.subFields;
156
- let subFieldsValues = ((_a = formValues[parentField.configName]) === null || _a === void 0 ? void 0 : _a.subFields) ? formValues[parentField.configName].subFields : {};
157
- if (!subFields)
158
- return controls;
159
- if (parentField.fieldType === 'singleSelect') {
160
- subFields = subFields.filter((subField) => { var _a; return subField.parentConfigValue === ((_a = parentValue) === null || _a === void 0 ? void 0 : _a.value); });
161
- }
162
- else if (parentField.fieldType === 'multiSelect') {
163
- let parentValues = new Set(parentValue.map((value) => value.value));
164
- subFields = subFields.filter((subField) => parentValues.has(subField.parentConfigValue));
165
- }
166
- if ((subFields === null || subFields === void 0 ? void 0 : subFields.length) > 0) {
167
- for (let subField of subFields) {
168
- controls.push(this.mapFormValueToFormField(subField, subFieldsValues[subField.configName]));
169
- }
170
- }
171
- return controls;
172
- }
173
- mapFormValueToFormField(formField, formValue) {
174
- let validators = formField.validators ? [dynamicFieldValidator(formField.validators)] : [];
175
- let control = new FormControl(null, validators);
176
- if (formField.fieldType === "input") {
177
- if (formField.fieldInputType === "text" || formField.fieldInputType === "textarea")
178
- control.setValue(formValue ? formValue : "");
179
- else if (formField.fieldInputType === "number")
180
- control.setValue(formValue ? formValue : 0);
181
- else if (formField.fieldInputType === "date") {
182
- if (formValue && typeof formValue === "number") {
183
- control.setValue(moment(formValue).tz(formField.fieldConfig.timezone).format(formField.fieldConfig.format));
184
- }
185
- else {
186
- control.setValue(moment().tz(formField.fieldConfig.timezone).format(formField.fieldConfig.format));
187
- }
188
- }
189
- }
190
- else if (formField.fieldType === "singleSelect") {
191
- const findSelectedValue = () => {
192
- let index = formField.itemsList.findIndex(item => item.value === formValue);
193
- return index >= 0 ? formField.itemsList[index] : "";
194
- };
195
- if (formField.fieldInputType === "dropdown") {
196
- if (!formValue)
197
- control.setValue(formField.itemsList[0]);
198
- else
199
- control.setValue(findSelectedValue());
200
- }
201
- else if (formField.fieldInputType === "radio") {
202
- control.setValue(findSelectedValue());
203
- }
204
- }
205
- else if (formField.fieldType === "multiSelect") {
206
- if (formValue && Array.isArray(formValue)) {
207
- let selectedValues = [];
208
- for (let value of formValue) {
209
- let index = formField.itemsList.findIndex(item => item.value === value);
210
- if (index > -1)
211
- selectedValues.push(Object.assign({}, formField.itemsList[index]));
212
- }
213
- control.setValue(selectedValues);
214
- }
215
- else {
216
- control.setValue([]);
217
- }
218
- }
219
- else if (formField.fieldType === "boolean") {
220
- control.setValue(!!formValue);
221
- }
222
- else
223
- control.setValue(null);
224
- return control;
225
- }
226
- mapFormFieldToFormValue(formField, formValue) {
227
- var _a;
228
- if (formField.fieldType === "input") {
229
- if (formField.fieldInputType === "text" || formField.fieldInputType === "textarea")
230
- return formValue;
231
- else if (formField.fieldInputType === "number")
232
- return +formValue;
233
- else if (formField.fieldInputType === "date") {
234
- return tz(formValue, formField.fieldConfig.format, formField.fieldConfig.timezone).valueOf();
235
- }
236
- }
237
- else if (formField.fieldType === "singleSelect") {
238
- return (_a = formValue === null || formValue === void 0 ? void 0 : formValue.value) !== null && _a !== void 0 ? _a : '';
239
- }
240
- else if (formField.fieldType === "multiSelect") {
241
- return formValue === null || formValue === void 0 ? void 0 : formValue.map(item => item.value);
242
- }
243
- else if (formField.fieldType === "boolean") {
244
- return formValue;
245
- }
246
- else
247
- return formValue;
248
- }
249
- }
250
- DynamicFormComponent.decorators = [
251
- { type: Component, args: [{
252
- selector: "mis-dynamic-form",
253
- template: "<form [formGroup]=\"dynamicForm\">\n <ng-container formArrayName=\"dynamicFields\">\n <ng-container [formGroupName]=\"i\" *ngFor=\"let fieldControl of getDynamicFieldsControls().controls; let i = index\">\n <ng-container\n [ngTemplateOutlet]=\"dynamicField\"\n [ngTemplateOutletContext]=\"{\n $implicit: formFields[i],\n formGroup: fieldControl,\n control: fieldControl.controls.value\n }\"\n >\n </ng-container>\n <div class=\"sub-dynamic-form\" *ngIf=\"fieldControl.value && (!!formFields[i]?.subFields && formFields[i]?.subFields?.length > 0 && matchParentConfig(formFields[i]?.subFields, fieldControl.controls.value.value.value))\">\n <ng-container *ngFor=\"let subFieldControl of fieldControl.controls.subFields.controls;\">\n <ng-container\n [ngTemplateOutlet]=\"dynamicField\"\n [ngTemplateOutletContext]=\"{\n $implicit: formFields[i].subFields[findSelectedIndex(formFields[i]?.subFields, fieldControl.controls.value.value.value)],\n control: subFieldControl\n }\">\n </ng-container>\n </ng-container>\n </div>\n </ng-container>\n </ng-container>\n</form>\n\n\n<ng-template #dynamicField let-field let-control=\"control\" let-formgroup=\"formGroup\">\n\n <!-- fieldType: 'input' fieldInputType: 'text' | 'number' -->\n <div class=\"dynamic-field multi-line-field-container\"\n *ngIf=\"field.fieldType === 'input' && (field.fieldInputType === 'text' || field.fieldInputType === 'number')\">\n <p class=\"h7 field-title-sm\">\n {{ field.title }}\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <input class=\"input-field ip-text\" [type]=\"field.fieldInputType\" [formControl]=\"control\"\n (ngModelChange)=\"updateSubDynamicFields(field, formgroup, $event)\" \n [ngStyle]=\"{'border': control.touched && control.errors ? '1px solid #B00020': ''}\"\n [placeholder]=\"field.placeholderText ? field.placeholderText : 'Input Text'\" \n [min]=\"field.fieldInputType === 'number' ? 0 : '' \"/>\n <ng-container *ngIf=\"control.touched && control.errors\"\n [ngTemplateOutlet]=\"dynamicFieldErrors\" \n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\"\n >\n </ng-container>\n </div>\n\n <!-- fieldType: 'input' fieldInputType: 'textarea' -->\n <div class=\"dynamic-field multi-line-field-container\"\n *ngIf=\"field.fieldType === 'input' && field.fieldInputType === 'textarea'\">\n <p class=\"h7 field-title-sm\">\n {{ field.title }}\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <textarea class=\"input-field ip-textarea\" type=\"text\"\n [ngStyle]=\"{'border': control.touched && control.errors ? '1px solid #B00020': ''}\"\n [placeholder]=\"field.placeholderText ? field.placeholderText : 'Input Text'\" [formControl]=\"control\" (ngModelChange)=\"updateSubDynamicFields(field, formgroup, $event)\"></textarea>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'input' fieldInputType: 'date' -->\n <div class=\"dynamic-field single-line-field-container\"\n *ngIf=\"field.fieldType === 'input' && field.fieldInputType === 'date'\">\n <p class=\"h6\">\n {{ field.title }}\n </p>\n <div class=\"date-picker-container\">\n <input class=\"date-picker\" readonly misTzDp [dpConfig]=\"field.fieldConfig\"\n (dateChange)=\"control.setValue($event)\" [selectedDate]=\"control.value\" [offsetY]=\"0\"\n [value]=\"control.value\" #dp />\n <img alt=\"data-picker\" *ngIf=\"calendarIconUrl\" class=\"date-picker-icon\" [src]=\"calendarIconUrl\"\n (click)=\"dp.click()\" />\n </div>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'boolean' fieldInputType: 'toggle' -->\n <div class=\"dynamic-field single-line-field-container\"\n *ngIf=\"field.fieldType === 'boolean' && field.fieldInputType === 'toggle'\">\n <p class=\"h6\">\n {{ field.title }}\n </p>\n <mis-switch [control]=\"control\" (valueChanged)=\"updateSubDynamicFields(field, formgroup, $event)\"></mis-switch>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'singleSelect' fieldInputType: 'dropdown' -->\n <div class=\"dynamic-field single-line-field-container\"\n *ngIf=\"field.fieldType === 'singleSelect' && field.fieldInputType === 'dropdown'\">\n <p class=\"h6\">\n {{ field.title }}\n </p>\n <mis-dropdown [searchEnabled]=\"false\" [width]=\"'140px'\" [data]=\"field.itemsList\" [selectedItem]=\"control.value\"\n (onChange)=\"updateSelectedValueForSingleSelect(field, control, formgroup, $event);\">\n </mis-dropdown>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'singleSelect' fieldInputType: 'radio' -->\n <div class=\"dynamic-field multi-line-field-container\"\n *ngIf=\"field.fieldType === 'singleSelect' && field.fieldInputType === 'radio'\">\n <p class=\"h7 field-title-sm\">\n {{ field.title }}\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <div id=\"checkboxes-container\">\n <div class=\"radio-checkbox-common\" *ngFor=\"let item of field.itemsList\"\n [ngClass]=\"{ 'checkbox-active': item.label === control.value?.label }\"\n (click)=\"updateSelectedValueForSingleSelect(field, control, formgroup, item);\">\n <img *ngIf=\"(item.label === control.value?.label) && activeBtnIconUrl\" [src]=\"activeBtnIconUrl\" alt=\"\" />\n <p class=\"h6\">{{ item.label }}</p>\n </div>\n </div>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'multiSelect' fieldInputType: 'checkbox' -->\n <div class=\"dynamic-field multi-line-field-container\"\n *ngIf=\"field.fieldType === 'multiSelect' && field.fieldInputType === 'checkbox'\">\n <p class=\"h7 field-title-sm\">\n {{ field.title }}\n </p>\n <div style=\"flex-basis: 100%\"></div>\n <div id=\"checkboxes-container\">\n <div class=\"radio-checkbox-common\" *ngFor=\"let item of field.itemsList\"\n [ngClass]=\"{ 'checkbox-active': isCheckBoxSelected(item.label, control.value) }\"\n (click)=\"updateSelectedValueForMultiSelect(field, control, formgroup, [item])\">\n <img *ngIf=\"isCheckBoxSelected(item.label, control.value) && activeBtnIconUrl\" [src]=\"activeBtnIconUrl\"\n alt=\"\" />\n <p class=\"h6\">{{ item.label }}</p>\n </div>\n </div>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n <!-- fieldType: 'multiSelect' fieldInputType: 'dropdown' -->\n <div class=\"dynamic-field single-line-field-container\"\n *ngIf=\"field.fieldType === 'multiSelect' && field.fieldInputType === 'dropdown'\">\n <p class=\"h6\">\n {{ field.title }}\n </p>\n <mis-multi-select-dropdown [width]=\"'140px'\" [showSelectedCount]=\"true\" [dropdownListWidth]=\"'256px'\"\n [searchEnabled]=\"false\" [hideApplyButton]=\"true\" [data]=\"field.itemsList\"\n [selectedItems]=\"control.value\" (onChange)=\"updateSelectedValueForMultiSelect(field, control, formgroup, $event);\"></mis-multi-select-dropdown>\n <ng-container *ngIf=\"control.touched && control.errors\" [ngTemplateOutlet]=\"dynamicFieldErrors\"\n [ngTemplateOutletContext]=\"{ $implicit: control.errors }\">\n </ng-container>\n </div>\n\n</ng-template>\n\n<ng-template #dynamicFieldErrors let-errors>\n <div id=\"error-messages-container\">\n <ng-container *ngFor=\"let error of errors | keyvalue\">\n <p class=\"h8\">\n {{\" \u2022 &nbsp;\" + error.value}}\n </p>\n <div style=\"flex-basis: 100%; height: 0\"></div>\n </ng-container>\n </div>\n</ng-template>",
254
- styles: ["p{margin:0;cursor:default}::ng-deep .main-container{margin:0;max-width:100%}.sub-dynamic-form{padding-left:24px}.dynamic-field ::ng-deep .container{height:32px!important}.single-line-field-container{justify-content:space-between;align-items:center}.multi-line-field-container,.single-line-field-container{display:flex;padding:28px 16px;border-bottom:1px solid var(--grey-seperators)}.multi-line-field-container{justify-content:flex-start;align-items:flex-start;flex-wrap:wrap}.field-title-sm{margin-bottom:8px;cursor:default}.input-field{width:100%;background-color:var(--grey-bg-1);border:1px solid var(--grey-seperators);border-radius:6px}.ip-text{height:44px;padding:8px 12px}.ip-textarea{max-height:94px;padding:8px}input:focus{outline:none}input::-moz-placeholder{color:var(--grey-seperators)}input:-ms-input-placeholder{color:var(--grey-seperators)}input::placeholder{color:var(--grey-seperators)}textarea:focus{outline:none}.date-picker-container{position:relative;width:140px}.date-picker-container .date-picker{cursor:pointer;height:32px;width:100%;font-size:14px;border-radius:6px;padding:0 12px;border:1px solid var(--grey-seperators);inset:10px auto auto 80px;background-color:var(--text-white)}.date-picker-container .date-picker:hover{background-color:var(--grey-hover)}.date-picker-container .date-picker-icon{position:absolute;top:50%;right:12px;transform:translateY(-50%);cursor:pointer}form .dynamic-field:last-child{border-bottom:none!important}#checkboxes-container{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}.radio-checkbox-common{display:flex;justify-content:center;align-items:center;cursor:pointer;margin-right:8px;margin-bottom:8px;background-color:var(--text-white);padding:12px 16px;border:1px solid var(--text-muted);border-radius:8px}.radio-checkbox-common p{color:var(--text-muted);cursor:pointer}.radio-checkbox-common img{margin-right:8px}.checkbox-active{background-color:var(--pmry-500)}.checkbox-active p{color:var(--text-white)}#error-messages-container{margin-top:4px;width:100%;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}#error-messages-container p{color:var(--sem-error)}"]
255
- },] }
256
- ];
257
- DynamicFormComponent.ctorParameters = () => [];
258
- DynamicFormComponent.propDecorators = {
259
- formFields: [{ type: Input }],
260
- formValues: [{ type: Input }],
261
- activeBtnIconUrl: [{ type: Input }],
262
- calendarIconUrl: [{ type: Input }],
263
- formUpdated: [{ type: Output }],
264
- formValid: [{ type: Output }],
265
- formInitialized: [{ type: Output }]
266
- };
267
- const dynamicFieldValidator = (validators) => {
268
- return (control) => {
269
- let value = control.value;
270
- if (Array.isArray(value)) {
271
- return null;
272
- }
273
- else if (typeof value === 'object') {
274
- value = (value === null || value === void 0 ? void 0 : value.value) ? value.value : '';
275
- }
276
- let errors = null;
277
- validators.forEach((validator) => {
278
- let error = null;
279
- let message = validator.message;
280
- switch (validator.type) {
281
- case "Required":
282
- error = Validators.required(control);
283
- if (error)
284
- error = { Required: message };
285
- break;
286
- case "MinLength":
287
- error = Validators.minLength(+validator.value)(control);
288
- message = message.replace('${0}', error === null || error === void 0 ? void 0 : error.minlength.requiredLength);
289
- if (error)
290
- error = { MinLength: message };
291
- break;
292
- case "MaxLength":
293
- error = Validators.maxLength(+validator.value)(control);
294
- message = message.replace('${0}', error === null || error === void 0 ? void 0 : error.actualLength);
295
- if (error)
296
- error = { MaxLength: message };
297
- break;
298
- case "Email":
299
- error = Validators.email(control);
300
- if (error)
301
- error = { Email: message };
302
- break;
303
- case "Custom":
304
- error = Validators.pattern(`${validator.value}`)(control);
305
- if (error)
306
- error = { Custom: message };
307
- break;
308
- default:
309
- break;
310
- }
311
- if (error)
312
- errors = Object.assign(Object.assign({}, errors), error);
313
- });
314
- return errors;
315
- };
316
- };
317
-
318
- class DynamicFormModule {
319
- static forRoot() {
320
- return { ngModule: DynamicFormModule, providers: [] };
321
- }
322
- }
323
- DynamicFormModule.decorators = [
324
- { type: NgModule, args: [{
325
- declarations: [DynamicFormComponent],
326
- imports: [
327
- CommonModule,
328
- ReactiveFormsModule,
329
- FormsModule,
330
- OverlayModule,
331
- ScrollingModule,
332
- DropdownModule,
333
- SwitchModule,
334
- MultiSelectDropdownModule,
335
- DatepickerModuleV2
336
- ],
337
- exports: [DynamicFormComponent]
338
- },] }
339
- ];
340
-
341
- /**
342
- * Generated bundle index. Do not edit.
343
- */
344
-
345
- export { DynamicFormComponent, DynamicFormModule };
346
- //# sourceMappingURL=mis-crystal-design-system-dynamic-form.js.map