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

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 (640) hide show
  1. package/action-list/action-list.component.d.ts +0 -3
  2. package/action-list/action-list.module.d.ts +0 -9
  3. package/action-list/mis-crystal-design-system-action-list.d.ts +4 -0
  4. package/action-list/mis-crystal-design-system-action-list.metadata.json +1 -0
  5. package/action-list/package.json +11 -0
  6. package/analytics/analytics.module.d.ts +0 -4
  7. package/analytics/analytics.service.d.ts +0 -3
  8. package/analytics/mis-crystal-design-system-analytics.d.ts +4 -0
  9. package/analytics/mis-crystal-design-system-analytics.metadata.json +1 -0
  10. package/analytics/package.json +11 -0
  11. package/async-search-dropdown/async-dropdown.component.d.ts +2 -5
  12. package/async-search-dropdown/async-dropdown.module.d.ts +0 -9
  13. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.d.ts +4 -0
  14. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.metadata.json +1 -0
  15. package/async-search-dropdown/package.json +11 -0
  16. package/bundles/mis-crystal-design-system-action-list.umd.js +508 -0
  17. package/bundles/mis-crystal-design-system-action-list.umd.js.map +1 -0
  18. package/bundles/mis-crystal-design-system-action-list.umd.min.js +16 -0
  19. package/bundles/mis-crystal-design-system-action-list.umd.min.js.map +1 -0
  20. package/bundles/mis-crystal-design-system-analytics.umd.js +422 -0
  21. package/bundles/mis-crystal-design-system-analytics.umd.js.map +1 -0
  22. package/bundles/mis-crystal-design-system-analytics.umd.min.js +16 -0
  23. package/bundles/mis-crystal-design-system-analytics.umd.min.js.map +1 -0
  24. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js +258 -0
  25. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js.map +1 -0
  26. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js +2 -0
  27. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js.map +1 -0
  28. package/bundles/mis-crystal-design-system-button.umd.js +134 -0
  29. package/bundles/mis-crystal-design-system-button.umd.js.map +1 -0
  30. package/bundles/mis-crystal-design-system-button.umd.min.js +2 -0
  31. package/bundles/mis-crystal-design-system-button.umd.min.js.map +1 -0
  32. package/bundles/mis-crystal-design-system-checkbox.umd.js +127 -0
  33. package/bundles/mis-crystal-design-system-checkbox.umd.js.map +1 -0
  34. package/bundles/mis-crystal-design-system-checkbox.umd.min.js +2 -0
  35. package/bundles/mis-crystal-design-system-checkbox.umd.min.js.map +1 -0
  36. package/bundles/mis-crystal-design-system-chip.umd.js +64 -0
  37. package/bundles/mis-crystal-design-system-chip.umd.js.map +1 -0
  38. package/bundles/mis-crystal-design-system-chip.umd.min.js +2 -0
  39. package/bundles/mis-crystal-design-system-chip.umd.min.js.map +1 -0
  40. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js +688 -0
  41. package/bundles/mis-crystal-design-system-datepicker_v2.umd.js.map +1 -0
  42. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js +16 -0
  43. package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js.map +1 -0
  44. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js +740 -0
  45. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js.map +1 -0
  46. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js +16 -0
  47. package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js.map +1 -0
  48. package/bundles/mis-crystal-design-system-drawer.umd.js +169 -0
  49. package/bundles/mis-crystal-design-system-drawer.umd.js.map +1 -0
  50. package/bundles/mis-crystal-design-system-drawer.umd.min.js +2 -0
  51. package/bundles/mis-crystal-design-system-drawer.umd.min.js.map +1 -0
  52. package/bundles/mis-crystal-design-system-dropdown.umd.js +493 -0
  53. package/bundles/mis-crystal-design-system-dropdown.umd.js.map +1 -0
  54. package/bundles/mis-crystal-design-system-dropdown.umd.min.js +16 -0
  55. package/bundles/mis-crystal-design-system-dropdown.umd.min.js.map +1 -0
  56. package/bundles/mis-crystal-design-system-fab.umd.js +95 -0
  57. package/bundles/mis-crystal-design-system-fab.umd.js.map +1 -0
  58. package/bundles/mis-crystal-design-system-fab.umd.min.js +2 -0
  59. package/bundles/mis-crystal-design-system-fab.umd.min.js.map +1 -0
  60. package/bundles/mis-crystal-design-system-input.umd.js +114 -0
  61. package/bundles/mis-crystal-design-system-input.umd.js.map +1 -0
  62. package/bundles/mis-crystal-design-system-input.umd.min.js +2 -0
  63. package/bundles/mis-crystal-design-system-input.umd.min.js.map +1 -0
  64. package/bundles/mis-crystal-design-system-loader.umd.js +53 -0
  65. package/bundles/mis-crystal-design-system-loader.umd.js.map +1 -0
  66. package/bundles/mis-crystal-design-system-loader.umd.min.js +2 -0
  67. package/bundles/mis-crystal-design-system-loader.umd.min.js.map +1 -0
  68. package/bundles/mis-crystal-design-system-menu.umd.js +119 -0
  69. package/bundles/mis-crystal-design-system-menu.umd.js.map +1 -0
  70. package/bundles/mis-crystal-design-system-menu.umd.min.js +2 -0
  71. package/bundles/mis-crystal-design-system-menu.umd.min.js.map +1 -0
  72. package/bundles/mis-crystal-design-system-modal.umd.js +161 -0
  73. package/bundles/mis-crystal-design-system-modal.umd.js.map +1 -0
  74. package/bundles/mis-crystal-design-system-modal.umd.min.js +2 -0
  75. package/bundles/mis-crystal-design-system-modal.umd.min.js.map +1 -0
  76. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js +622 -0
  77. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js.map +1 -0
  78. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js +16 -0
  79. package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js.map +1 -0
  80. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js +636 -0
  81. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js.map +1 -0
  82. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js +16 -0
  83. package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js.map +1 -0
  84. package/bundles/mis-crystal-design-system-radio-button.umd.js +77 -0
  85. package/bundles/mis-crystal-design-system-radio-button.umd.js.map +1 -0
  86. package/bundles/mis-crystal-design-system-radio-button.umd.min.js +2 -0
  87. package/bundles/mis-crystal-design-system-radio-button.umd.min.js.map +1 -0
  88. package/bundles/mis-crystal-design-system-ske-loader.umd.js +65 -0
  89. package/bundles/mis-crystal-design-system-ske-loader.umd.js.map +1 -0
  90. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js +2 -0
  91. package/bundles/mis-crystal-design-system-ske-loader.umd.min.js.map +1 -0
  92. package/bundles/mis-crystal-design-system-styles.umd.js +11 -0
  93. package/bundles/mis-crystal-design-system-styles.umd.js.map +1 -0
  94. package/bundles/mis-crystal-design-system-styles.umd.min.js +2 -0
  95. package/bundles/mis-crystal-design-system-styles.umd.min.js.map +1 -0
  96. package/bundles/mis-crystal-design-system-switch.umd.js +79 -0
  97. package/bundles/mis-crystal-design-system-switch.umd.js.map +1 -0
  98. package/bundles/mis-crystal-design-system-switch.umd.min.js +2 -0
  99. package/bundles/mis-crystal-design-system-switch.umd.min.js.map +1 -0
  100. package/bundles/mis-crystal-design-system-table.umd.js +783 -0
  101. package/bundles/mis-crystal-design-system-table.umd.js.map +1 -0
  102. package/bundles/mis-crystal-design-system-table.umd.min.js +16 -0
  103. package/bundles/mis-crystal-design-system-table.umd.min.js.map +1 -0
  104. package/bundles/mis-crystal-design-system-toast.umd.js +202 -0
  105. package/bundles/mis-crystal-design-system-toast.umd.js.map +1 -0
  106. package/bundles/mis-crystal-design-system-toast.umd.min.js +2 -0
  107. package/bundles/mis-crystal-design-system-toast.umd.min.js.map +1 -0
  108. package/bundles/mis-crystal-design-system-tooltip.umd.js +194 -0
  109. package/bundles/mis-crystal-design-system-tooltip.umd.js.map +1 -0
  110. package/bundles/mis-crystal-design-system-tooltip.umd.min.js +2 -0
  111. package/bundles/mis-crystal-design-system-tooltip.umd.min.js.map +1 -0
  112. package/bundles/mis-crystal-design-system-utils.umd.js +33 -0
  113. package/bundles/mis-crystal-design-system-utils.umd.js.map +1 -0
  114. package/bundles/mis-crystal-design-system-utils.umd.min.js +2 -0
  115. package/bundles/mis-crystal-design-system-utils.umd.min.js.map +1 -0
  116. package/bundles/mis-crystal-design-system-widgets.umd.js +478 -0
  117. package/bundles/mis-crystal-design-system-widgets.umd.js.map +1 -0
  118. package/bundles/mis-crystal-design-system-widgets.umd.min.js +16 -0
  119. package/bundles/mis-crystal-design-system-widgets.umd.min.js.map +1 -0
  120. package/bundles/mis-crystal-design-system.umd.js +31 -0
  121. package/bundles/mis-crystal-design-system.umd.js.map +1 -0
  122. package/bundles/mis-crystal-design-system.umd.min.js +2 -0
  123. package/bundles/mis-crystal-design-system.umd.min.js.map +1 -0
  124. package/button/button.component.d.ts +0 -3
  125. package/button/button.directive.d.ts +0 -3
  126. package/button/button.directive.scss +13 -17
  127. package/button/button.module.d.ts +0 -7
  128. package/button/mis-crystal-design-system-button.d.ts +4 -0
  129. package/button/mis-crystal-design-system-button.metadata.json +1 -0
  130. package/button/package.json +11 -0
  131. package/checkbox/checkbox.component.d.ts +0 -3
  132. package/checkbox/checkbox.module.d.ts +0 -7
  133. package/checkbox/mis-crystal-design-system-checkbox.d.ts +4 -0
  134. package/checkbox/mis-crystal-design-system-checkbox.metadata.json +1 -0
  135. package/checkbox/package.json +11 -0
  136. package/chip/chip.component.d.ts +0 -3
  137. package/chip/chip.module.d.ts +0 -6
  138. package/chip/mis-crystal-design-system-chip.d.ts +4 -0
  139. package/chip/mis-crystal-design-system-chip.metadata.json +1 -0
  140. package/chip/package.json +11 -0
  141. package/datepicker_v2/datepicker.module.d.ts +0 -10
  142. package/datepicker_v2/mis-crystal-design-system-datepicker_v2.d.ts +7 -0
  143. package/datepicker_v2/mis-crystal-design-system-datepicker_v2.metadata.json +1 -0
  144. package/datepicker_v2/package.json +11 -0
  145. package/datepicker_v2/public_api.d.ts +0 -1
  146. package/datepicker_v2/tz-datepicker.directive.d.ts +0 -3
  147. package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +0 -3
  148. package/daterangepicker_v2/daterangepicker.module.d.ts +0 -10
  149. package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.d.ts +7 -0
  150. package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.metadata.json +1 -0
  151. package/daterangepicker_v2/package.json +11 -0
  152. package/daterangepicker_v2/public_api.d.ts +0 -1
  153. package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +0 -3
  154. package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +0 -3
  155. package/drawer/drawer-body/drawer-body.component.d.ts +1 -3
  156. package/drawer/drawer.module.d.ts +0 -8
  157. package/drawer/drawer.service.d.ts +0 -3
  158. package/drawer/mis-crystal-design-system-drawer.d.ts +5 -0
  159. package/drawer/mis-crystal-design-system-drawer.metadata.json +1 -0
  160. package/drawer/package.json +11 -0
  161. package/dropdown/dropdown.component.d.ts +3 -3
  162. package/dropdown/dropdown.module.d.ts +0 -9
  163. package/dropdown/mis-crystal-design-system-dropdown.d.ts +4 -0
  164. package/dropdown/mis-crystal-design-system-dropdown.metadata.json +1 -0
  165. package/dropdown/package.json +11 -0
  166. package/esm2015/action-list/action-list.component.js +160 -0
  167. package/esm2015/action-list/action-list.module.js +19 -0
  168. package/{esm2020/action-list/index.mjs → esm2015/action-list/index.js} +0 -0
  169. package/{esm2020/action-list/mis-crystal-design-system-action-list.mjs → esm2015/action-list/mis-crystal-design-system-action-list.js} +0 -0
  170. package/{esm2020/action-list/public_api.mjs → esm2015/action-list/public_api.js} +0 -0
  171. package/esm2015/analytics/analytics.module.js +14 -0
  172. package/esm2015/analytics/analytics.service.js +62 -0
  173. package/{esm2020/analytics/index.mjs → esm2015/analytics/index.js} +0 -0
  174. package/{esm2020/analytics/mis-crystal-design-system-analytics.mjs → esm2015/analytics/mis-crystal-design-system-analytics.js} +0 -0
  175. package/{esm2020/analytics/public_api.mjs → esm2015/analytics/public_api.js} +0 -0
  176. package/esm2015/async-search-dropdown/async-dropdown.component.js +223 -0
  177. package/esm2015/async-search-dropdown/async-dropdown.module.js +16 -0
  178. package/{esm2020/async-search-dropdown/index.mjs → esm2015/async-search-dropdown/index.js} +0 -0
  179. package/{esm2020/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.mjs → esm2015/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.js} +0 -0
  180. package/{esm2020/async-search-dropdown/public_api.mjs → esm2015/async-search-dropdown/public_api.js} +0 -0
  181. package/esm2015/button/button.component.js +43 -0
  182. package/esm2015/button/button.directive.js +57 -0
  183. package/esm2015/button/button.module.js +17 -0
  184. package/{esm2020/button/index.mjs → esm2015/button/index.js} +0 -0
  185. package/{esm2020/button/mis-crystal-design-system-button.mjs → esm2015/button/mis-crystal-design-system-button.js} +0 -0
  186. package/{esm2020/button/public_api.mjs → esm2015/button/public_api.js} +0 -0
  187. package/esm2015/checkbox/checkbox.component.js +79 -0
  188. package/esm2015/checkbox/checkbox.module.js +17 -0
  189. package/{esm2020/checkbox/index.mjs → esm2015/checkbox/index.js} +0 -0
  190. package/{esm2020/checkbox/mis-crystal-design-system-checkbox.mjs → esm2015/checkbox/mis-crystal-design-system-checkbox.js} +0 -0
  191. package/{esm2020/checkbox/public_api.mjs → esm2015/checkbox/public_api.js} +0 -0
  192. package/esm2015/chip/chip.component.js +31 -0
  193. package/esm2015/chip/chip.module.js +16 -0
  194. package/{esm2020/chip/index.mjs → esm2015/chip/index.js} +0 -0
  195. package/{esm2020/chip/mis-crystal-design-system-chip.mjs → esm2015/chip/mis-crystal-design-system-chip.js} +0 -0
  196. package/{esm2020/chip/public_api.mjs → esm2015/chip/public_api.js} +0 -0
  197. package/{esm2020/datepicker_v2/datepicker-constants.mjs → esm2015/datepicker_v2/datepicker-constants.js} +0 -0
  198. package/esm2015/datepicker_v2/datepicker.module.js +18 -0
  199. package/{esm2020/datepicker_v2/index.mjs → esm2015/datepicker_v2/index.js} +0 -0
  200. package/esm2015/datepicker_v2/mis-crystal-design-system-datepicker_v2.js +7 -0
  201. package/{esm2020/datepicker_v2/models/dp-config.model.mjs → esm2015/datepicker_v2/models/dp-config.model.js} +0 -0
  202. package/esm2015/datepicker_v2/public_api.js +3 -0
  203. package/esm2015/datepicker_v2/tz-datepicker.directive.js +126 -0
  204. package/esm2015/datepicker_v2/tz-dp-container/tz-dp-container.component.js +149 -0
  205. package/{esm2020/datepicker_v2/utils/index.mjs → esm2015/datepicker_v2/utils/index.js} +0 -0
  206. package/{esm2020/daterangepicker_v2/daterangepicker-constants.mjs → esm2015/daterangepicker_v2/daterangepicker-constants.js} +0 -0
  207. package/esm2015/daterangepicker_v2/daterangepicker.module.js +18 -0
  208. package/{esm2020/daterangepicker_v2/index.mjs → esm2015/daterangepicker_v2/index.js} +0 -0
  209. package/esm2015/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.js +7 -0
  210. package/{esm2020/daterangepicker_v2/models/drp-config.model.mjs → esm2015/daterangepicker_v2/models/drp-config.model.js} +0 -0
  211. package/esm2015/daterangepicker_v2/public_api.js +3 -0
  212. package/esm2015/daterangepicker_v2/tz-daterangepicker.directive.js +123 -0
  213. package/esm2015/daterangepicker_v2/tz-drp-container/tz-drp-container.component.js +205 -0
  214. package/{esm2020/daterangepicker_v2/utils/index.mjs → esm2015/daterangepicker_v2/utils/index.js} +0 -0
  215. package/esm2015/drawer/drawer-body/drawer-body.component.js +41 -0
  216. package/{esm2020/drawer/drawer-constants.mjs → esm2015/drawer/drawer-constants.js} +0 -0
  217. package/{esm2020/drawer/drawer-ref.mjs → esm2015/drawer/drawer-ref.js} +0 -0
  218. package/esm2015/drawer/drawer.module.js +28 -0
  219. package/{esm2020/drawer/drawer.service.mjs → esm2015/drawer/drawer.service.js} +15 -12
  220. package/{esm2020/drawer/index.mjs → esm2015/drawer/index.js} +0 -0
  221. package/esm2015/drawer/mis-crystal-design-system-drawer.js +6 -0
  222. package/{esm2020/drawer/public_api.mjs → esm2015/drawer/public_api.js} +0 -0
  223. package/esm2015/dropdown/dropdown.component.js +145 -0
  224. package/esm2015/dropdown/dropdown.module.js +20 -0
  225. package/{esm2020/dropdown/index.mjs → esm2015/dropdown/index.js} +0 -0
  226. package/{esm2020/dropdown/mis-crystal-design-system-dropdown.mjs → esm2015/dropdown/mis-crystal-design-system-dropdown.js} +0 -0
  227. package/{esm2020/dropdown/public_api.mjs → esm2015/dropdown/public_api.js} +0 -0
  228. package/esm2015/fab/fab.component.js +63 -0
  229. package/esm2015/fab/fab.module.js +16 -0
  230. package/{esm2020/fab/index.mjs → esm2015/fab/index.js} +0 -0
  231. package/{esm2020/fab/mis-crystal-design-system-fab.mjs → esm2015/fab/mis-crystal-design-system-fab.js} +0 -0
  232. package/{esm2020/fab/public_api.mjs → esm2015/fab/public_api.js} +0 -0
  233. package/{esm2020/index.mjs → esm2015/index.js} +0 -0
  234. package/esm2015/input/directives/input/input.directive.js +38 -0
  235. package/{esm2020/input/index.mjs → esm2015/input/index.js} +0 -0
  236. package/{esm2020/input/mis-crystal-design-system-input.mjs → esm2015/input/mis-crystal-design-system-input.js} +0 -0
  237. package/esm2015/input/mis-input.component.js +43 -0
  238. package/esm2015/input/mis-input.module.js +15 -0
  239. package/{esm2020/input/public_api.mjs → esm2015/input/public_api.js} +0 -0
  240. package/{esm2020/loader/index.mjs → esm2015/loader/index.js} +0 -0
  241. package/esm2015/loader/loader.component.js +20 -0
  242. package/esm2015/loader/loader.module.js +16 -0
  243. package/{esm2020/loader/mis-crystal-design-system-loader.mjs → esm2015/loader/mis-crystal-design-system-loader.js} +0 -0
  244. package/{esm2020/loader/public_api.mjs → esm2015/loader/public_api.js} +0 -0
  245. package/{esm2020/menu/index.mjs → esm2015/menu/index.js} +0 -0
  246. package/esm2015/menu/menu-close.directive.js +18 -0
  247. package/esm2015/menu/menu.directive.js +70 -0
  248. package/esm2015/menu/menu.module.js +17 -0
  249. package/{esm2020/menu/mis-crystal-design-system-menu.mjs → esm2015/menu/mis-crystal-design-system-menu.js} +0 -0
  250. package/{esm2020/menu/public_api.mjs → esm2015/menu/public_api.js} +0 -0
  251. package/{esm2020/mis-crystal-design-system.mjs → esm2015/mis-crystal-design-system.js} +0 -0
  252. package/{esm2020/modal/index.mjs → esm2015/modal/index.js} +0 -0
  253. package/esm2015/modal/mis-crystal-design-system-modal.js +6 -0
  254. package/{esm2020/modal/modal-constants.mjs → esm2015/modal/modal-constants.js} +0 -0
  255. package/{esm2020/modal/modal-ref.mjs → esm2015/modal/modal-ref.js} +0 -0
  256. package/esm2015/modal/modal.module.js +28 -0
  257. package/esm2015/modal/modal.service.js +72 -0
  258. package/esm2015/modal/module-wrapper/module-wrapper.component.js +33 -0
  259. package/{esm2020/modal/public_api.mjs → esm2015/modal/public_api.js} +0 -0
  260. package/{esm2020/multi-select-dropdown/index.mjs → esm2015/multi-select-dropdown/index.js} +0 -0
  261. package/{esm2020/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.mjs → esm2015/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.js} +0 -0
  262. package/esm2015/multi-select-dropdown/multi-select-dropdown.component.js +268 -0
  263. package/esm2015/multi-select-dropdown/multi-select-dropdown.module.js +20 -0
  264. package/{esm2020/multi-select-dropdown/public_api.mjs → esm2015/multi-select-dropdown/public_api.js} +0 -0
  265. package/{esm2020/nested-multi-select-dropdown/index.mjs → esm2015/nested-multi-select-dropdown/index.js} +0 -0
  266. package/{esm2020/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.mjs → esm2015/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.js} +0 -0
  267. package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.component.js +265 -0
  268. package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.module.js +20 -0
  269. package/{esm2020/nested-multi-select-dropdown/public_api.mjs → esm2015/nested-multi-select-dropdown/public_api.js} +0 -0
  270. package/{esm2020/public-api.mjs → esm2015/public-api.js} +0 -0
  271. package/{esm2020/radio-button/index.mjs → esm2015/radio-button/index.js} +0 -0
  272. package/{esm2020/radio-button/mis-crystal-design-system-radio-button.mjs → esm2015/radio-button/mis-crystal-design-system-radio-button.js} +0 -0
  273. package/{esm2020/radio-button/public_api.mjs → esm2015/radio-button/public_api.js} +0 -0
  274. package/esm2015/radio-button/radio-button.component.js +45 -0
  275. package/esm2015/radio-button/radio-button.module.js +17 -0
  276. package/{esm2020/ske-loader/index.mjs → esm2015/ske-loader/index.js} +0 -0
  277. package/{esm2020/ske-loader/mis-crystal-design-system-ske-loader.mjs → esm2015/ske-loader/mis-crystal-design-system-ske-loader.js} +0 -0
  278. package/{esm2020/ske-loader/public_api.mjs → esm2015/ske-loader/public_api.js} +0 -0
  279. package/esm2015/ske-loader/ske-loader.component.js +31 -0
  280. package/esm2015/ske-loader/ske-loader.module.js +13 -0
  281. package/{esm2020/styles/index.mjs → esm2015/styles/index.js} +0 -0
  282. package/{esm2020/styles/mis-crystal-design-system-styles.mjs → esm2015/styles/mis-crystal-design-system-styles.js} +0 -0
  283. package/{esm2020/styles/public_api.mjs → esm2015/styles/public_api.js} +0 -0
  284. package/{esm2020/switch/index.mjs → esm2015/switch/index.js} +0 -0
  285. package/{esm2020/switch/mis-crystal-design-system-switch.mjs → esm2015/switch/mis-crystal-design-system-switch.js} +0 -0
  286. package/{esm2020/switch/public_api.mjs → esm2015/switch/public_api.js} +0 -0
  287. package/esm2015/switch/switch.component.js +39 -0
  288. package/esm2015/switch/switch.module.js +17 -0
  289. package/esm2015/table/custom-table-cell.directive.js +42 -0
  290. package/esm2015/table/filter/filter.component.js +75 -0
  291. package/{esm2020/table/index.mjs → esm2015/table/index.js} +0 -0
  292. package/esm2015/table/mis-crystal-design-system-table.js +6 -0
  293. package/esm2015/table/public_api.js +5 -0
  294. package/esm2015/table/sub-table/sub-table.component.js +69 -0
  295. package/esm2015/table/table.component.js +199 -0
  296. package/esm2015/table/table.module.js +21 -0
  297. package/{esm2020/toast/index.mjs → esm2015/toast/index.js} +0 -0
  298. package/{esm2020/toast/mis-crystal-design-system-toast.mjs → esm2015/toast/mis-crystal-design-system-toast.js} +2 -1
  299. package/{esm2020/toast/public_api.mjs → esm2015/toast/public_api.js} +0 -0
  300. package/esm2015/toast/toast.component.js +28 -0
  301. package/esm2015/toast/toast.data.service.js +29 -0
  302. package/esm2015/toast/toast.module.js +28 -0
  303. package/esm2015/toast/toast.service.js +96 -0
  304. package/{esm2020/tooltip/index.mjs → esm2015/tooltip/index.js} +0 -0
  305. package/{esm2020/tooltip/mis-crystal-design-system-tooltip.mjs → esm2015/tooltip/mis-crystal-design-system-tooltip.js} +0 -0
  306. package/{esm2020/tooltip/models/tooltip.model.mjs → esm2015/tooltip/models/tooltip.model.js} +0 -0
  307. package/{esm2020/tooltip/public_api.mjs → esm2015/tooltip/public_api.js} +0 -0
  308. package/esm2015/tooltip/tooltip-container/tooltip.component.js +34 -0
  309. package/esm2015/tooltip/tooltip.directive.js +117 -0
  310. package/esm2015/tooltip/tooltip.module.js +19 -0
  311. package/{esm2020/utils/index.mjs → esm2015/utils/index.js} +0 -0
  312. package/{esm2020/utils/mis-crystal-design-system-utils.mjs → esm2015/utils/mis-crystal-design-system-utils.js} +0 -0
  313. package/{esm2020/widgets/classes/async-widget.mjs → esm2015/widgets/classes/async-widget.js} +0 -0
  314. package/{esm2020/widgets/classes/base-widget.mjs → esm2015/widgets/classes/base-widget.js} +2 -2
  315. package/{esm2020/widgets/classes/sync-widget.mjs → esm2015/widgets/classes/sync-widget.js} +0 -0
  316. package/esm2015/widgets/classes/widget-group.js +32 -0
  317. package/{esm2020/widgets/index.mjs → esm2015/widgets/index.js} +0 -0
  318. package/{esm2020/widgets/interfaces/widgets.model.mjs → esm2015/widgets/interfaces/widgets.model.js} +0 -0
  319. package/{esm2020/widgets/mis-crystal-design-system-widgets.mjs → esm2015/widgets/mis-crystal-design-system-widgets.js} +0 -0
  320. package/{esm2020/widgets/public_api.mjs → esm2015/widgets/public_api.js} +0 -0
  321. package/esm2015/widgets/services/widget.service.js +16 -0
  322. package/esm2015/widgets/widgets.module.js +12 -0
  323. package/fab/fab.component.d.ts +0 -3
  324. package/fab/fab.module.d.ts +0 -6
  325. package/fab/mis-crystal-design-system-fab.d.ts +4 -0
  326. package/fab/mis-crystal-design-system-fab.metadata.json +1 -0
  327. package/fab/package.json +11 -0
  328. package/fesm2015/mis-crystal-design-system-action-list.js +183 -0
  329. package/fesm2015/mis-crystal-design-system-action-list.js.map +1 -0
  330. package/fesm2015/{mis-crystal-design-system-analytics.mjs → mis-crystal-design-system-analytics.js} +14 -22
  331. package/fesm2015/mis-crystal-design-system-analytics.js.map +1 -0
  332. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js +242 -0
  333. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js.map +1 -0
  334. package/fesm2015/mis-crystal-design-system-button.js +120 -0
  335. package/fesm2015/mis-crystal-design-system-button.js.map +1 -0
  336. package/fesm2015/mis-crystal-design-system-checkbox.js +100 -0
  337. package/fesm2015/mis-crystal-design-system-checkbox.js.map +1 -0
  338. package/fesm2015/mis-crystal-design-system-chip.js +52 -0
  339. package/fesm2015/mis-crystal-design-system-chip.js.map +1 -0
  340. package/fesm2015/mis-crystal-design-system-datepicker_v2.js +339 -0
  341. package/fesm2015/mis-crystal-design-system-datepicker_v2.js.map +1 -0
  342. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js +392 -0
  343. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js.map +1 -0
  344. package/fesm2015/mis-crystal-design-system-drawer.js +153 -0
  345. package/fesm2015/mis-crystal-design-system-drawer.js.map +1 -0
  346. package/fesm2015/mis-crystal-design-system-dropdown.js +169 -0
  347. package/fesm2015/mis-crystal-design-system-dropdown.js.map +1 -0
  348. package/fesm2015/mis-crystal-design-system-fab.js +84 -0
  349. package/fesm2015/mis-crystal-design-system-fab.js.map +1 -0
  350. package/fesm2015/mis-crystal-design-system-input.js +97 -0
  351. package/fesm2015/mis-crystal-design-system-input.js.map +1 -0
  352. package/fesm2015/mis-crystal-design-system-loader.js +41 -0
  353. package/fesm2015/mis-crystal-design-system-loader.js.map +1 -0
  354. package/fesm2015/mis-crystal-design-system-menu.js +106 -0
  355. package/fesm2015/mis-crystal-design-system-menu.js.map +1 -0
  356. package/fesm2015/mis-crystal-design-system-modal.js +147 -0
  357. package/fesm2015/mis-crystal-design-system-modal.js.map +1 -0
  358. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js +292 -0
  359. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js.map +1 -0
  360. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js +289 -0
  361. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js.map +1 -0
  362. package/fesm2015/mis-crystal-design-system-radio-button.js +66 -0
  363. package/fesm2015/mis-crystal-design-system-radio-button.js.map +1 -0
  364. package/fesm2015/mis-crystal-design-system-ske-loader.js +49 -0
  365. package/fesm2015/mis-crystal-design-system-ske-loader.js.map +1 -0
  366. package/fesm2015/mis-crystal-design-system-styles.js +4 -0
  367. package/fesm2015/mis-crystal-design-system-styles.js.map +1 -0
  368. package/fesm2015/mis-crystal-design-system-switch.js +60 -0
  369. package/fesm2015/mis-crystal-design-system-switch.js.map +1 -0
  370. package/fesm2015/mis-crystal-design-system-table.js +405 -0
  371. package/fesm2015/mis-crystal-design-system-table.js.map +1 -0
  372. package/fesm2015/mis-crystal-design-system-toast.js +174 -0
  373. package/fesm2015/mis-crystal-design-system-toast.js.map +1 -0
  374. package/fesm2015/mis-crystal-design-system-tooltip.js +171 -0
  375. package/fesm2015/mis-crystal-design-system-tooltip.js.map +1 -0
  376. package/{fesm2020/mis-crystal-design-system-utils.mjs → fesm2015/mis-crystal-design-system-utils.js} +1 -1
  377. package/fesm2015/mis-crystal-design-system-utils.js.map +1 -0
  378. package/fesm2015/{mis-crystal-design-system-widgets.mjs → mis-crystal-design-system-widgets.js} +8 -13
  379. package/fesm2015/mis-crystal-design-system-widgets.js.map +1 -0
  380. package/fesm2015/{mis-crystal-design-system.mjs → mis-crystal-design-system.js} +1 -1
  381. package/fesm2015/mis-crystal-design-system.js.map +1 -0
  382. package/input/directives/input/input.directive.d.ts +0 -3
  383. package/input/mis-crystal-design-system-input.d.ts +4 -0
  384. package/input/mis-crystal-design-system-input.metadata.json +1 -0
  385. package/input/mis-input.component.d.ts +0 -3
  386. package/input/mis-input.component.scss +18 -20
  387. package/input/mis-input.module.d.ts +0 -8
  388. package/input/package.json +11 -0
  389. package/loader/loader.component.d.ts +0 -3
  390. package/loader/loader.module.d.ts +0 -6
  391. package/loader/mis-crystal-design-system-loader.d.ts +4 -0
  392. package/loader/mis-crystal-design-system-loader.metadata.json +1 -0
  393. package/loader/package.json +11 -0
  394. package/menu/menu-close.directive.d.ts +0 -3
  395. package/menu/menu.directive.d.ts +0 -3
  396. package/menu/menu.module.d.ts +1 -9
  397. package/menu/mis-crystal-design-system-menu.d.ts +4 -0
  398. package/menu/mis-crystal-design-system-menu.metadata.json +1 -0
  399. package/menu/package.json +11 -0
  400. package/mis-crystal-design-system.d.ts +4 -0
  401. package/mis-crystal-design-system.metadata.json +1 -0
  402. package/modal/mis-crystal-design-system-modal.d.ts +5 -0
  403. package/modal/mis-crystal-design-system-modal.metadata.json +1 -0
  404. package/modal/modal.module.d.ts +0 -8
  405. package/modal/modal.service.d.ts +0 -3
  406. package/modal/module-wrapper/module-wrapper.component.d.ts +0 -3
  407. package/modal/package.json +11 -0
  408. package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.d.ts +4 -0
  409. package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.metadata.json +1 -0
  410. package/multi-select-dropdown/multi-select-dropdown.component.d.ts +0 -3
  411. package/multi-select-dropdown/multi-select-dropdown.module.d.ts +0 -10
  412. package/multi-select-dropdown/package.json +11 -0
  413. package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.d.ts +4 -0
  414. package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.metadata.json +1 -0
  415. package/nested-multi-select-dropdown/nested-multi-select-dropdown.component.d.ts +0 -3
  416. package/nested-multi-select-dropdown/nested-multi-select-dropdown.module.d.ts +0 -10
  417. package/nested-multi-select-dropdown/package.json +11 -0
  418. package/package.json +8 -228
  419. package/radio-button/mis-crystal-design-system-radio-button.d.ts +4 -0
  420. package/radio-button/mis-crystal-design-system-radio-button.metadata.json +1 -0
  421. package/radio-button/package.json +11 -0
  422. package/radio-button/radio-button.component.d.ts +0 -3
  423. package/radio-button/radio-button.module.d.ts +0 -7
  424. package/ske-loader/mis-crystal-design-system-ske-loader.d.ts +4 -0
  425. package/ske-loader/mis-crystal-design-system-ske-loader.metadata.json +1 -0
  426. package/ske-loader/package.json +11 -0
  427. package/ske-loader/ske-loader.component.d.ts +0 -3
  428. package/ske-loader/ske-loader.module.d.ts +0 -6
  429. package/styles/mis-crystal-design-system-styles.d.ts +4 -0
  430. package/styles/mis-crystal-design-system-styles.metadata.json +1 -0
  431. package/styles/mis-fonts.scss +47 -37
  432. package/styles/package.json +11 -0
  433. package/switch/mis-crystal-design-system-switch.d.ts +4 -0
  434. package/switch/mis-crystal-design-system-switch.metadata.json +1 -0
  435. package/switch/package.json +11 -0
  436. package/switch/switch.component.d.ts +0 -3
  437. package/switch/switch.module.d.ts +0 -7
  438. package/table/custom-table-cell.directive.d.ts +0 -3
  439. package/table/filter/filter.component.d.ts +0 -3
  440. package/table/mis-crystal-design-system-table.d.ts +5 -0
  441. package/table/mis-crystal-design-system-table.metadata.json +1 -0
  442. package/table/package.json +11 -0
  443. package/table/public_api.d.ts +0 -1
  444. package/table/sub-table/sub-table.component.d.ts +0 -3
  445. package/table/table.component.d.ts +0 -3
  446. package/table/table.module.d.ts +0 -11
  447. package/toast/mis-crystal-design-system-toast.d.ts +5 -0
  448. package/toast/mis-crystal-design-system-toast.metadata.json +1 -0
  449. package/toast/package.json +11 -0
  450. package/toast/toast.component.d.ts +0 -3
  451. package/toast/toast.data.service.d.ts +0 -3
  452. package/toast/toast.module.d.ts +0 -7
  453. package/toast/toast.service.d.ts +0 -3
  454. package/tooltip/mis-crystal-design-system-tooltip.d.ts +4 -0
  455. package/tooltip/mis-crystal-design-system-tooltip.metadata.json +1 -0
  456. package/tooltip/package.json +11 -0
  457. package/tooltip/tooltip-container/tooltip.component.d.ts +0 -3
  458. package/tooltip/tooltip.directive.d.ts +0 -3
  459. package/tooltip/tooltip.module.d.ts +0 -8
  460. package/utils/mis-crystal-design-system-utils.d.ts +4 -0
  461. package/utils/mis-crystal-design-system-utils.metadata.json +1 -0
  462. package/utils/package.json +11 -0
  463. package/widgets/mis-crystal-design-system-widgets.d.ts +4 -0
  464. package/widgets/mis-crystal-design-system-widgets.metadata.json +1 -0
  465. package/widgets/package.json +11 -0
  466. package/widgets/services/widget.service.d.ts +0 -3
  467. package/widgets/widgets.module.d.ts +0 -5
  468. package/esm2020/action-list/action-list.component.mjs +0 -174
  469. package/esm2020/action-list/action-list.module.mjs +0 -24
  470. package/esm2020/analytics/analytics.module.mjs +0 -18
  471. package/esm2020/analytics/analytics.service.mjs +0 -63
  472. package/esm2020/async-search-dropdown/async-dropdown.component.mjs +0 -242
  473. package/esm2020/async-search-dropdown/async-dropdown.module.mjs +0 -21
  474. package/esm2020/button/button.component.mjs +0 -52
  475. package/esm2020/button/button.directive.mjs +0 -59
  476. package/esm2020/button/button.module.mjs +0 -22
  477. package/esm2020/checkbox/checkbox.component.mjs +0 -87
  478. package/esm2020/checkbox/checkbox.module.mjs +0 -22
  479. package/esm2020/chip/chip.component.mjs +0 -36
  480. package/esm2020/chip/chip.module.mjs +0 -21
  481. package/esm2020/datepicker_v2/datepicker.module.mjs +0 -23
  482. package/esm2020/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs +0 -5
  483. package/esm2020/datepicker_v2/public_api.mjs +0 -4
  484. package/esm2020/datepicker_v2/tz-datepicker.directive.mjs +0 -143
  485. package/esm2020/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +0 -151
  486. package/esm2020/daterangepicker_v2/daterangepicker.module.mjs +0 -24
  487. package/esm2020/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.mjs +0 -5
  488. package/esm2020/daterangepicker_v2/public_api.mjs +0 -4
  489. package/esm2020/daterangepicker_v2/tz-daterangepicker.directive.mjs +0 -133
  490. package/esm2020/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +0 -209
  491. package/esm2020/drawer/drawer-body/drawer-body.component.mjs +0 -43
  492. package/esm2020/drawer/drawer.module.mjs +0 -32
  493. package/esm2020/drawer/mis-crystal-design-system-drawer.mjs +0 -5
  494. package/esm2020/dropdown/dropdown.component.mjs +0 -148
  495. package/esm2020/dropdown/dropdown.module.mjs +0 -24
  496. package/esm2020/fab/fab.component.mjs +0 -82
  497. package/esm2020/fab/fab.module.mjs +0 -21
  498. package/esm2020/input/directives/input/input.directive.mjs +0 -40
  499. package/esm2020/input/mis-input.component.mjs +0 -46
  500. package/esm2020/input/mis-input.module.mjs +0 -20
  501. package/esm2020/loader/loader.component.mjs +0 -19
  502. package/esm2020/loader/loader.module.mjs +0 -21
  503. package/esm2020/menu/menu-close.directive.mjs +0 -23
  504. package/esm2020/menu/menu.directive.mjs +0 -75
  505. package/esm2020/menu/menu.module.mjs +0 -22
  506. package/esm2020/modal/mis-crystal-design-system-modal.mjs +0 -5
  507. package/esm2020/modal/modal.module.mjs +0 -32
  508. package/esm2020/modal/modal.service.mjs +0 -70
  509. package/esm2020/modal/module-wrapper/module-wrapper.component.mjs +0 -40
  510. package/esm2020/multi-select-dropdown/multi-select-dropdown.component.mjs +0 -297
  511. package/esm2020/multi-select-dropdown/multi-select-dropdown.module.mjs +0 -25
  512. package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +0 -313
  513. package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +0 -25
  514. package/esm2020/radio-button/radio-button.component.mjs +0 -49
  515. package/esm2020/radio-button/radio-button.module.mjs +0 -22
  516. package/esm2020/ske-loader/ske-loader.component.mjs +0 -34
  517. package/esm2020/ske-loader/ske-loader.module.mjs +0 -18
  518. package/esm2020/switch/switch.component.mjs +0 -43
  519. package/esm2020/switch/switch.module.mjs +0 -22
  520. package/esm2020/table/custom-table-cell.directive.mjs +0 -42
  521. package/esm2020/table/filter/filter.component.mjs +0 -79
  522. package/esm2020/table/mis-crystal-design-system-table.mjs +0 -5
  523. package/esm2020/table/public_api.mjs +0 -6
  524. package/esm2020/table/sub-table/sub-table.component.mjs +0 -69
  525. package/esm2020/table/table.component.mjs +0 -208
  526. package/esm2020/table/table.module.mjs +0 -26
  527. package/esm2020/toast/toast.component.mjs +0 -33
  528. package/esm2020/toast/toast.data.service.mjs +0 -30
  529. package/esm2020/toast/toast.module.mjs +0 -32
  530. package/esm2020/toast/toast.service.mjs +0 -91
  531. package/esm2020/tooltip/tooltip-container/tooltip.component.mjs +0 -33
  532. package/esm2020/tooltip/tooltip.directive.mjs +0 -122
  533. package/esm2020/tooltip/tooltip.module.mjs +0 -23
  534. package/esm2020/widgets/classes/widget-group.mjs +0 -32
  535. package/esm2020/widgets/services/widget.service.mjs +0 -18
  536. package/esm2020/widgets/widgets.module.mjs +0 -17
  537. package/fesm2015/mis-crystal-design-system-action-list.mjs +0 -199
  538. package/fesm2015/mis-crystal-design-system-action-list.mjs.map +0 -1
  539. package/fesm2015/mis-crystal-design-system-analytics.mjs.map +0 -1
  540. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs +0 -272
  541. package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
  542. package/fesm2015/mis-crystal-design-system-button.mjs +0 -134
  543. package/fesm2015/mis-crystal-design-system-button.mjs.map +0 -1
  544. package/fesm2015/mis-crystal-design-system-checkbox.mjs +0 -112
  545. package/fesm2015/mis-crystal-design-system-checkbox.mjs.map +0 -1
  546. package/fesm2015/mis-crystal-design-system-chip.mjs +0 -61
  547. package/fesm2015/mis-crystal-design-system-chip.mjs.map +0 -1
  548. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs +0 -360
  549. package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
  550. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs +0 -412
  551. package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
  552. package/fesm2015/mis-crystal-design-system-drawer.mjs +0 -157
  553. package/fesm2015/mis-crystal-design-system-drawer.mjs.map +0 -1
  554. package/fesm2015/mis-crystal-design-system-dropdown.mjs +0 -176
  555. package/fesm2015/mis-crystal-design-system-dropdown.mjs.map +0 -1
  556. package/fesm2015/mis-crystal-design-system-fab.mjs +0 -102
  557. package/fesm2015/mis-crystal-design-system-fab.mjs.map +0 -1
  558. package/fesm2015/mis-crystal-design-system-input.mjs +0 -112
  559. package/fesm2015/mis-crystal-design-system-input.mjs.map +0 -1
  560. package/fesm2015/mis-crystal-design-system-loader.mjs +0 -44
  561. package/fesm2015/mis-crystal-design-system-loader.mjs.map +0 -1
  562. package/fesm2015/mis-crystal-design-system-menu.mjs +0 -120
  563. package/fesm2015/mis-crystal-design-system-menu.mjs.map +0 -1
  564. package/fesm2015/mis-crystal-design-system-modal.mjs +0 -156
  565. package/fesm2015/mis-crystal-design-system-modal.mjs.map +0 -1
  566. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs +0 -312
  567. package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
  568. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -310
  569. package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
  570. package/fesm2015/mis-crystal-design-system-radio-button.mjs +0 -74
  571. package/fesm2015/mis-crystal-design-system-radio-button.mjs.map +0 -1
  572. package/fesm2015/mis-crystal-design-system-ske-loader.mjs +0 -56
  573. package/fesm2015/mis-crystal-design-system-ske-loader.mjs.map +0 -1
  574. package/fesm2015/mis-crystal-design-system-styles.mjs +0 -4
  575. package/fesm2015/mis-crystal-design-system-styles.mjs.map +0 -1
  576. package/fesm2015/mis-crystal-design-system-switch.mjs +0 -68
  577. package/fesm2015/mis-crystal-design-system-switch.mjs.map +0 -1
  578. package/fesm2015/mis-crystal-design-system-table.mjs +0 -421
  579. package/fesm2015/mis-crystal-design-system-table.mjs.map +0 -1
  580. package/fesm2015/mis-crystal-design-system-toast.mjs +0 -182
  581. package/fesm2015/mis-crystal-design-system-toast.mjs.map +0 -1
  582. package/fesm2015/mis-crystal-design-system-tooltip.mjs +0 -179
  583. package/fesm2015/mis-crystal-design-system-tooltip.mjs.map +0 -1
  584. package/fesm2015/mis-crystal-design-system-utils.mjs +0 -24
  585. package/fesm2015/mis-crystal-design-system-utils.mjs.map +0 -1
  586. package/fesm2015/mis-crystal-design-system-widgets.mjs.map +0 -1
  587. package/fesm2015/mis-crystal-design-system.mjs.map +0 -1
  588. package/fesm2020/mis-crystal-design-system-action-list.mjs +0 -201
  589. package/fesm2020/mis-crystal-design-system-action-list.mjs.map +0 -1
  590. package/fesm2020/mis-crystal-design-system-analytics.mjs +0 -85
  591. package/fesm2020/mis-crystal-design-system-analytics.mjs.map +0 -1
  592. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs +0 -265
  593. package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
  594. package/fesm2020/mis-crystal-design-system-button.mjs +0 -134
  595. package/fesm2020/mis-crystal-design-system-button.mjs.map +0 -1
  596. package/fesm2020/mis-crystal-design-system-checkbox.mjs +0 -112
  597. package/fesm2020/mis-crystal-design-system-checkbox.mjs.map +0 -1
  598. package/fesm2020/mis-crystal-design-system-chip.mjs +0 -61
  599. package/fesm2020/mis-crystal-design-system-chip.mjs.map +0 -1
  600. package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs +0 -361
  601. package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
  602. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs +0 -409
  603. package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
  604. package/fesm2020/mis-crystal-design-system-drawer.mjs +0 -156
  605. package/fesm2020/mis-crystal-design-system-drawer.mjs.map +0 -1
  606. package/fesm2020/mis-crystal-design-system-dropdown.mjs +0 -175
  607. package/fesm2020/mis-crystal-design-system-dropdown.mjs.map +0 -1
  608. package/fesm2020/mis-crystal-design-system-fab.mjs +0 -107
  609. package/fesm2020/mis-crystal-design-system-fab.mjs.map +0 -1
  610. package/fesm2020/mis-crystal-design-system-input.mjs +0 -106
  611. package/fesm2020/mis-crystal-design-system-input.mjs.map +0 -1
  612. package/fesm2020/mis-crystal-design-system-loader.mjs +0 -44
  613. package/fesm2020/mis-crystal-design-system-loader.mjs.map +0 -1
  614. package/fesm2020/mis-crystal-design-system-menu.mjs +0 -119
  615. package/fesm2020/mis-crystal-design-system-menu.mjs.map +0 -1
  616. package/fesm2020/mis-crystal-design-system-modal.mjs +0 -156
  617. package/fesm2020/mis-crystal-design-system-modal.mjs.map +0 -1
  618. package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs +0 -325
  619. package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
  620. package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -341
  621. package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
  622. package/fesm2020/mis-crystal-design-system-radio-button.mjs +0 -74
  623. package/fesm2020/mis-crystal-design-system-radio-button.mjs.map +0 -1
  624. package/fesm2020/mis-crystal-design-system-ske-loader.mjs +0 -56
  625. package/fesm2020/mis-crystal-design-system-ske-loader.mjs.map +0 -1
  626. package/fesm2020/mis-crystal-design-system-styles.mjs +0 -4
  627. package/fesm2020/mis-crystal-design-system-styles.mjs.map +0 -1
  628. package/fesm2020/mis-crystal-design-system-switch.mjs +0 -68
  629. package/fesm2020/mis-crystal-design-system-switch.mjs.map +0 -1
  630. package/fesm2020/mis-crystal-design-system-table.mjs +0 -413
  631. package/fesm2020/mis-crystal-design-system-table.mjs.map +0 -1
  632. package/fesm2020/mis-crystal-design-system-toast.mjs +0 -180
  633. package/fesm2020/mis-crystal-design-system-toast.mjs.map +0 -1
  634. package/fesm2020/mis-crystal-design-system-tooltip.mjs +0 -177
  635. package/fesm2020/mis-crystal-design-system-tooltip.mjs.map +0 -1
  636. package/fesm2020/mis-crystal-design-system-utils.mjs.map +0 -1
  637. package/fesm2020/mis-crystal-design-system-widgets.mjs +0 -128
  638. package/fesm2020/mis-crystal-design-system-widgets.mjs.map +0 -1
  639. package/fesm2020/mis-crystal-design-system.mjs +0 -24
  640. package/fesm2020/mis-crystal-design-system.mjs.map +0 -1
@@ -0,0 +1,119 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/core'), require('rxjs/operators'), require('@angular/common')) :
3
+ typeof define === 'function' && define.amd ? define('mis-crystal-design-system/menu', ['exports', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/core', 'rxjs/operators', '@angular/common'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mis-crystal-design-system'] = global['mis-crystal-design-system'] || {}, global['mis-crystal-design-system'].menu = {}), global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.core, global.rxjs.operators, global.ng.common));
5
+ }(this, (function (exports, overlay, portal, core, operators, common) { 'use strict';
6
+
7
+ /** @format */
8
+ var MenuDirective = /** @class */ (function () {
9
+ function MenuDirective(overlay, element, viewContainerRef) {
10
+ this.overlay = overlay;
11
+ this.element = element;
12
+ this.viewContainerRef = viewContainerRef;
13
+ this.positionX = "start";
14
+ this.positionY = "bottom";
15
+ this.offsetX = 0;
16
+ this.offsetY = 0;
17
+ }
18
+ MenuDirective.prototype.onClick = function (event) {
19
+ this.menuShow();
20
+ };
21
+ MenuDirective.prototype.menuShow = function () {
22
+ var _this = this;
23
+ var positionStrategy = this.overlay
24
+ .position()
25
+ .flexibleConnectedTo(this.element)
26
+ .withPositions([
27
+ new overlay.ConnectionPositionPair({ originX: this.positionX, originY: this.positionY }, { overlayX: this.positionX, overlayY: this.positionY === "bottom" ? "top" : "bottom" }, this.offsetX, this.offsetY),
28
+ new overlay.ConnectionPositionPair({ originX: "start", originY: "bottom" }, { overlayX: "start", overlayY: "top" }, this.offsetX, this.offsetY),
29
+ new overlay.ConnectionPositionPair({ originX: "end", originY: "top" }, { overlayX: "end", overlayY: "bottom" }, this.offsetX, this.offsetY)
30
+ ])
31
+ .withPush(true);
32
+ var config = new overlay.OverlayConfig({
33
+ hasBackdrop: true,
34
+ positionStrategy: positionStrategy,
35
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
36
+ backdropClass: "cdk-overlay-transparent-backdrop"
37
+ });
38
+ this.overlayRef = this.overlay.create(config);
39
+ var tempRef = new portal.TemplatePortal(this.menu, this.viewContainerRef);
40
+ this.overlayRef.attach(tempRef);
41
+ this.overlayRef
42
+ .backdropClick()
43
+ .pipe(operators.take(1))
44
+ .subscribe(function (res) {
45
+ _this.close();
46
+ });
47
+ };
48
+ MenuDirective.prototype.close = function () {
49
+ var _a, _b;
50
+ (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
51
+ (_b = this.overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
52
+ };
53
+ return MenuDirective;
54
+ }());
55
+ MenuDirective.decorators = [
56
+ { type: core.Directive, args: [{
57
+ selector: "[misMenu]",
58
+ exportAs: "misMenu"
59
+ },] }
60
+ ];
61
+ MenuDirective.ctorParameters = function () { return [
62
+ { type: overlay.Overlay },
63
+ { type: core.ElementRef },
64
+ { type: core.ViewContainerRef }
65
+ ]; };
66
+ MenuDirective.propDecorators = {
67
+ menu: [{ type: core.Input, args: ["misMenu",] }],
68
+ positionX: [{ type: core.Input }],
69
+ positionY: [{ type: core.Input }],
70
+ offsetX: [{ type: core.Input }],
71
+ offsetY: [{ type: core.Input }],
72
+ onClick: [{ type: core.HostListener, args: ["click", ["$event"],] }]
73
+ };
74
+
75
+ var MenuCloseDirective = /** @class */ (function () {
76
+ function MenuCloseDirective() {
77
+ }
78
+ MenuCloseDirective.prototype.closeMenu = function () {
79
+ this.menu.close();
80
+ };
81
+ return MenuCloseDirective;
82
+ }());
83
+ MenuCloseDirective.decorators = [
84
+ { type: core.Directive, args: [{
85
+ selector: "[misMenuClose]"
86
+ },] }
87
+ ];
88
+ MenuCloseDirective.ctorParameters = function () { return []; };
89
+ MenuCloseDirective.propDecorators = {
90
+ menu: [{ type: core.Input, args: ["misMenuClose",] }],
91
+ closeMenu: [{ type: core.HostListener, args: ["click", [],] }]
92
+ };
93
+
94
+ /** @format */
95
+ var MisMenuModule = /** @class */ (function () {
96
+ function MisMenuModule() {
97
+ }
98
+ return MisMenuModule;
99
+ }());
100
+ MisMenuModule.decorators = [
101
+ { type: core.NgModule, args: [{
102
+ declarations: [MenuDirective, MenuCloseDirective],
103
+ imports: [common.CommonModule, overlay.OverlayModule, portal.PortalModule],
104
+ exports: [MenuDirective, MenuCloseDirective]
105
+ },] }
106
+ ];
107
+
108
+ /**
109
+ * Generated bundle index. Do not edit.
110
+ */
111
+
112
+ exports.MenuCloseDirective = MenuCloseDirective;
113
+ exports.MenuDirective = MenuDirective;
114
+ exports.MisMenuModule = MisMenuModule;
115
+
116
+ Object.defineProperty(exports, '__esModule', { value: true });
117
+
118
+ })));
119
+ //# sourceMappingURL=mis-crystal-design-system-menu.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mis-crystal-design-system-menu.umd.js","sources":["../../../projects/mis-components/menu/menu.directive.ts","../../../projects/mis-components/menu/menu-close.directive.ts","../../../projects/mis-components/menu/menu.module.ts","../../../projects/mis-components/menu/mis-crystal-design-system-menu.ts"],"sourcesContent":["/** @format */\n\nimport { ConnectionPositionPair, Overlay, OverlayConfig, OverlayRef } from \"@angular/cdk/overlay\";\nimport { TemplatePortal } from \"@angular/cdk/portal\";\nimport { Directive, ElementRef, HostListener, Input, TemplateRef, ViewContainerRef } from \"@angular/core\";\nimport { take } from \"rxjs/operators\";\n\n@Directive({\n selector: \"[misMenu]\",\n exportAs: \"misMenu\"\n})\nexport class MenuDirective {\n @Input(\"misMenu\") menu: TemplateRef<ElementRef>;\n @Input() positionX: \"start\" | \"end\" = \"start\";\n @Input() positionY: \"top\" | \"bottom\" = \"bottom\";\n @Input() offsetX = 0;\n @Input() offsetY = 0;\n private overlayRef: OverlayRef;\n\n constructor(private overlay: Overlay, private element: ElementRef, private viewContainerRef: ViewContainerRef) {}\n @HostListener(\"click\", [\"$event\"]) onClick(event) {\n this.menuShow();\n }\n private menuShow() {\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.element)\n .withPositions([\n new ConnectionPositionPair(\n { originX: this.positionX, originY: this.positionY },\n { overlayX: this.positionX, overlayY: this.positionY === \"bottom\" ? \"top\" : \"bottom\" },\n this.offsetX,\n this.offsetY\n ),\n new ConnectionPositionPair({ originX: \"start\", originY: \"bottom\" }, { overlayX: \"start\", overlayY: \"top\" }, this.offsetX, this.offsetY),\n new ConnectionPositionPair({ originX: \"end\", originY: \"top\" }, { overlayX: \"end\", overlayY: \"bottom\" }, this.offsetX, this.offsetY)\n ])\n .withPush(true);\n const config = new OverlayConfig({\n hasBackdrop: true,\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n backdropClass: \"cdk-overlay-transparent-backdrop\"\n });\n this.overlayRef = this.overlay.create(config);\n\n const tempRef = new TemplatePortal(this.menu, this.viewContainerRef);\n this.overlayRef.attach(tempRef);\n this.overlayRef\n .backdropClick()\n .pipe(take(1))\n .subscribe(res => {\n this.close();\n });\n }\n\n close(): void {\n this.overlayRef?.detach();\n this.overlayRef?.dispose();\n }\n}\n","import { Directive, HostListener, Input } from \"@angular/core\";\nimport { MenuDirective } from \"./menu.directive\";\n\n@Directive({\n selector: \"[misMenuClose]\"\n})\nexport class MenuCloseDirective {\n @Input(\"misMenuClose\") menu: MenuDirective;\n constructor() {}\n\n @HostListener(\"click\", []) closeMenu() {\n this.menu.close();\n }\n}\n","/** @format */\n\nimport { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { MenuDirective } from \"./menu.directive\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { PortalModule } from \"@angular/cdk/portal\";\nimport { MenuCloseDirective } from \"./menu-close.directive\";\n\n@NgModule({\n declarations: [MenuDirective, MenuCloseDirective],\n imports: [CommonModule, OverlayModule, PortalModule],\n exports: [MenuDirective, MenuCloseDirective]\n})\nexport class MisMenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ConnectionPositionPair","OverlayConfig","TemplatePortal","take","Directive","Overlay","ElementRef","ViewContainerRef","Input","HostListener","NgModule","CommonModule","OverlayModule","PortalModule"],"mappings":";;;;;;IAAA;;QAmBE,uBAAoB,OAAgB,EAAU,OAAmB,EAAU,gBAAkC;YAAzF,YAAO,GAAP,OAAO,CAAS;YAAU,YAAO,GAAP,OAAO,CAAY;YAAU,qBAAgB,GAAhB,gBAAgB,CAAkB;YANpG,cAAS,GAAoB,OAAO,CAAC;YACrC,cAAS,GAAqB,QAAQ,CAAC;YACvC,YAAO,GAAG,CAAC,CAAC;YACZ,YAAO,GAAG,CAAC,CAAC;SAG4F;QAC9E,+BAAO,GAAP,UAAQ,KAAK;YAC9C,IAAI,CAAC,QAAQ,EAAE,CAAC;SACjB;QACO,gCAAQ,GAAR;YAAA,iBA+BP;YA9BC,IAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO;iBAClC,QAAQ,EAAE;iBACV,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC;iBACjC,aAAa,CAAC;gBACb,IAAIA,8BAAsB,CACxB,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE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EAAE,CAAC;aACd,CAAC,CAAC;SACN;QAED,6BAAK,GAAL;;YACE,MAAA,IAAI,CAAC,UAAU,0CAAE,MAAM,GAAG;YAC1B,MAAA,IAAI,CAAC,UAAU,0CAAE,OAAO,GAAG;SAC5B;;;;gBApDFC,cAAS,SAAC;oBACT,QAAQ,EAAE,WAAW;oBACrB,QAAQ,EAAE,SAAS;iBACpB;;;gBARgCC,eAAO;gBAEpBC,eAAU;gBAAoCC,qBAAgB;;;uBAQ/EC,UAAK,SAAC,SAAS;4BACfA,UAAK;4BACLA,UAAK;0BACLA,UAAK;0BACLA,UAAK;0BAILC,iBAAY,SAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;;;QCZjC;SAAgB;QAEW,sCAAS,GAAT;YACzB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;SACnB;;;;gBATFL,cAAS,SAAC;oBACT,QAAQ,EAAE,gBAAgB;iBAC3B;;;;uBAEEI,UAAK,SAAC,cAAc;4BAGpBC,iBAAY,SAAC,OAAO,EAAE,EAAE;;;ICV3B;;QAcA;;;;;gBALCC,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,aAAa,EAAE,kBAAkB,CAAC;oBACjD,OAAO,EAAE,CAACC,mBAAY,EAAEC,qBAAa,EAAEC,mBAAY,CAAC;oBACpD,OAAO,EAAE,CAAC,aAAa,EAAE,kBAAkB,CAAC;iBAC7C;;;ICbD;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/core"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/menu",["exports","@angular/cdk/overlay","@angular/cdk/portal","@angular/core","rxjs/operators","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"].menu={}),e.ng.cdk.overlay,e.ng.cdk.portal,e.ng.core,e.rxjs.operators,e.ng.common)}(this,(function(e,t,o,i,r,s){"use strict";var n=function(){function e(e,t,o){this.overlay=e,this.element=t,this.viewContainerRef=o,this.positionX="start",this.positionY="bottom",this.offsetX=0,this.offsetY=0}return e.prototype.onClick=function(e){this.menuShow()},e.prototype.menuShow=function(){var e=this,i=this.overlay.position().flexibleConnectedTo(this.element).withPositions([new t.ConnectionPositionPair({originX:this.positionX,originY:this.positionY},{overlayX:this.positionX,overlayY:"bottom"===this.positionY?"top":"bottom"},this.offsetX,this.offsetY),new t.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"},this.offsetX,this.offsetY),new t.ConnectionPositionPair({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"},this.offsetX,this.offsetY)]).withPush(!0),s=new t.OverlayConfig({hasBackdrop:!0,positionStrategy:i,scrollStrategy:this.overlay.scrollStrategies.reposition(),backdropClass:"cdk-overlay-transparent-backdrop"});this.overlayRef=this.overlay.create(s);var n=new o.TemplatePortal(this.menu,this.viewContainerRef);this.overlayRef.attach(n),this.overlayRef.backdropClick().pipe(r.take(1)).subscribe((function(t){e.close()}))},e.prototype.close=function(){var e,t;null===(e=this.overlayRef)||void 0===e||e.detach(),null===(t=this.overlayRef)||void 0===t||t.dispose()},e}();n.decorators=[{type:i.Directive,args:[{selector:"[misMenu]",exportAs:"misMenu"}]}],n.ctorParameters=function(){return[{type:t.Overlay},{type:i.ElementRef},{type:i.ViewContainerRef}]},n.propDecorators={menu:[{type:i.Input,args:["misMenu"]}],positionX:[{type:i.Input}],positionY:[{type:i.Input}],offsetX:[{type:i.Input}],offsetY:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click",["$event"]]}]};var a=function(){function e(){}return e.prototype.closeMenu=function(){this.menu.close()},e}();a.decorators=[{type:i.Directive,args:[{selector:"[misMenuClose]"}]}],a.ctorParameters=function(){return[]},a.propDecorators={menu:[{type:i.Input,args:["misMenuClose"]}],closeMenu:[{type:i.HostListener,args:["click",[]]}]};var l=function(){};l.decorators=[{type:i.NgModule,args:[{declarations:[n,a],imports:[s.CommonModule,t.OverlayModule,o.PortalModule],exports:[n,a]}]}],e.MenuCloseDirective=a,e.MenuDirective=n,e.MisMenuModule=l,Object.defineProperty(e,"__esModule",{value:!0})}));
2
+ //# sourceMappingURL=mis-crystal-design-system-menu.umd.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../projects/mis-components/menu/menu.directive.ts","../../../projects/mis-components/menu/menu-close.directive.ts","../../../projects/mis-components/menu/menu.module.ts"],"names":["MenuDirective","overlay","element","viewContainerRef","this","positionX","positionY","offsetX","offsetY","prototype","onClick","event","menuShow","_this","positionStrategy","position","flexibleConnectedTo","withPositions","ConnectionPositionPair","originX","originY","overlayX","overlayY","withPush","config","OverlayConfig","hasBackdrop","scrollStrategy","scrollStrategies","reposition","backdropClass","overlayRef","create","tempRef","TemplatePortal","menu","attach","backdropClick","pipe","take","subscribe","res","close","_a","detach","_b","dispose","Directive","args","selector","exportAs","Overlay","ElementRef","ViewContainerRef","Input","HostListener","MenuCloseDirective","closeMenu","NgModule","declarations","imports","CommonModule","OverlayModule","PortalModule","exports"],"mappings":"8rBAmBE,SAAAA,EAAoBC,EAA0BC,EAA6BC,GAAvDC,KAAAH,QAAAA,EAA0BG,KAAAF,QAAAA,EAA6BE,KAAAD,iBAAAA,EANlEC,KAAAC,UAA6B,QAC7BD,KAAAE,UAA8B,SAC9BF,KAAAG,QAAU,EACVH,KAAAI,QAAU,SAIgBR,EAAAS,UAAAC,QAAA,SAAQC,GACzCP,KAAKQ,YAECZ,EAAAS,UAAAG,SAAA,WAAA,IAAAC,EAAAT,KACAU,EAAmBV,KAAKH,QAC3Bc,WACAC,oBAAoBZ,KAAKF,SACzBe,cAAc,CACb,IAAIC,EAAAA,uBACF,CAAEC,QAASf,KAAKC,UAAWe,QAAShB,KAAKE,WACzC,CAAEe,SAAUjB,KAAKC,UAAWiB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AA,aAAYP,KAAA,CAAC,QAAS,aCIzB,iCALCU,EAAAA,SAAQV,KAAA,CAAC,CACRW,aAAc,CAAC3D,EAAewD,GAC9BI,QAAS,CAACC,EAAAA,aAAcC,EAAAA,cAAeC,EAAAA,cACvCC,QAAS,CAAChE,EAAewD","sourcesContent":["/** @format */\n\nimport { ConnectionPositionPair, Overlay, OverlayConfig, OverlayRef } from \"@angular/cdk/overlay\";\nimport { TemplatePortal } from \"@angular/cdk/portal\";\nimport { Directive, ElementRef, HostListener, Input, TemplateRef, ViewContainerRef } from \"@angular/core\";\nimport { take } from \"rxjs/operators\";\n\n@Directive({\n selector: \"[misMenu]\",\n exportAs: \"misMenu\"\n})\nexport class MenuDirective {\n @Input(\"misMenu\") menu: TemplateRef<ElementRef>;\n @Input() positionX: \"start\" | \"end\" = \"start\";\n @Input() positionY: \"top\" | \"bottom\" = \"bottom\";\n @Input() offsetX = 0;\n @Input() offsetY = 0;\n private overlayRef: OverlayRef;\n\n constructor(private overlay: Overlay, private element: ElementRef, private viewContainerRef: ViewContainerRef) {}\n @HostListener(\"click\", [\"$event\"]) onClick(event) {\n this.menuShow();\n }\n private menuShow() {\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.element)\n .withPositions([\n new ConnectionPositionPair(\n { originX: this.positionX, originY: this.positionY },\n { overlayX: this.positionX, overlayY: this.positionY === \"bottom\" ? \"top\" : \"bottom\" },\n this.offsetX,\n this.offsetY\n ),\n new ConnectionPositionPair({ originX: \"start\", originY: \"bottom\" }, { overlayX: \"start\", overlayY: \"top\" }, this.offsetX, this.offsetY),\n new ConnectionPositionPair({ originX: \"end\", originY: \"top\" }, { overlayX: \"end\", overlayY: \"bottom\" }, this.offsetX, this.offsetY)\n ])\n .withPush(true);\n const config = new OverlayConfig({\n hasBackdrop: true,\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n backdropClass: \"cdk-overlay-transparent-backdrop\"\n });\n this.overlayRef = this.overlay.create(config);\n\n const tempRef = new TemplatePortal(this.menu, this.viewContainerRef);\n this.overlayRef.attach(tempRef);\n this.overlayRef\n .backdropClick()\n .pipe(take(1))\n .subscribe(res => {\n this.close();\n });\n }\n\n close(): void {\n this.overlayRef?.detach();\n this.overlayRef?.dispose();\n }\n}\n","import { Directive, HostListener, Input } from \"@angular/core\";\nimport { MenuDirective } from \"./menu.directive\";\n\n@Directive({\n selector: \"[misMenuClose]\"\n})\nexport class MenuCloseDirective {\n @Input(\"misMenuClose\") menu: MenuDirective;\n constructor() {}\n\n @HostListener(\"click\", []) closeMenu() {\n this.menu.close();\n }\n}\n","/** @format */\n\nimport { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { MenuDirective } from \"./menu.directive\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { PortalModule } from \"@angular/cdk/portal\";\nimport { MenuCloseDirective } from \"./menu-close.directive\";\n\n@NgModule({\n declarations: [MenuDirective, MenuCloseDirective],\n imports: [CommonModule, OverlayModule, PortalModule],\n exports: [MenuDirective, MenuCloseDirective]\n})\nexport class MisMenuModule {}\n"]}
@@ -0,0 +1,161 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/core'), require('rxjs'), require('@angular/animations'), require('@angular/common')) :
3
+ typeof define === 'function' && define.amd ? define('mis-crystal-design-system/modal', ['exports', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/core', 'rxjs', '@angular/animations', '@angular/common'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mis-crystal-design-system'] = global['mis-crystal-design-system'] || {}, global['mis-crystal-design-system'].modal = {}), global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.core, global.rxjs, global.ng.animations, global.ng.common));
5
+ }(this, (function (exports, i1, portal, i0, rxjs, animations, common) { 'use strict';
6
+
7
+ /** @format */
8
+ var MODAL_DATA_VAR = new i0.InjectionToken("MISModalDataInjectionToken");
9
+
10
+ /** @format */
11
+ var ModalRef = /** @class */ (function () {
12
+ function ModalRef(overlay) {
13
+ this.overlay = overlay;
14
+ this.afterClosed$ = new rxjs.Subject();
15
+ this.afterClosed = this.afterClosed$.asObservable();
16
+ }
17
+ ModalRef.prototype.close = function (data) {
18
+ this.overlay.detach();
19
+ this.overlay.dispose();
20
+ this.afterClosed$.next(data);
21
+ this.afterClosed$.complete();
22
+ };
23
+ return ModalRef;
24
+ }());
25
+
26
+ var ModuleWrapperComponent = /** @class */ (function () {
27
+ function ModuleWrapperComponent() {
28
+ }
29
+ ModuleWrapperComponent.prototype.bindComponent = function (type, injector) {
30
+ this.initComponent(type, injector);
31
+ };
32
+ ModuleWrapperComponent.prototype.initComponent = function (type, injector) {
33
+ this.modalPortal = new portal.ComponentPortal(type, this.place, injector);
34
+ };
35
+ return ModuleWrapperComponent;
36
+ }());
37
+ ModuleWrapperComponent.decorators = [
38
+ { type: i0.Component, args: [{
39
+ selector: "mis-module-wrapper",
40
+ template: "<div class=\"mis-modal-body\" #place @slideInOut>\n <ng-template [cdkPortalOutlet]=\"modalPortal\"></ng-template>\n</div>\n",
41
+ animations: [
42
+ animations.trigger("slideInOut", [
43
+ animations.transition(":enter", [
44
+ animations.style({ transform: "translateY(-30%)", opacity: 0 }),
45
+ animations.animate("200ms ease-out", animations.style({ transform: "translatey(0%)", opacity: 1 }))
46
+ ]),
47
+ animations.transition(":leave", [animations.animate("200ms ease-out", animations.style({ transform: "translatey(-30%)", opacity: 0 }))])
48
+ ])
49
+ ],
50
+ styles: [".mis-modal-body{display:block;width:100%;height:100%;background-color:transparent;border-radius:12px;box-shadow:0 12px 24px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.12);overflow:hidden}"]
51
+ },] }
52
+ ];
53
+ ModuleWrapperComponent.ctorParameters = function () { return []; };
54
+ ModuleWrapperComponent.propDecorators = {
55
+ place: [{ type: i0.ViewChild, args: ["place", { static: false, read: i0.ViewContainerRef },] }]
56
+ };
57
+
58
+ var ModalService = /** @class */ (function () {
59
+ function ModalService(overlay, injector) {
60
+ this.overlay = overlay;
61
+ this.injector = injector;
62
+ }
63
+ ModalService.prototype.show = function (component, data, options) {
64
+ var positionStrategy = this.calculatePosition(options);
65
+ var _a = options || {}, width = _a.width, height = _a.height;
66
+ var config = new i1.OverlayConfig({
67
+ hasBackdrop: true,
68
+ positionStrategy: positionStrategy,
69
+ scrollStrategy: this.overlay.scrollStrategies.noop(),
70
+ width: width,
71
+ height: height,
72
+ panelClass: "mis-modal",
73
+ backdropClass: "mis-modal-overlay"
74
+ });
75
+ var overlayRef = this.overlay.create(config);
76
+ var modalRef = new ModalRef(overlayRef);
77
+ var injector = this.createInjector(modalRef, this.injector, data);
78
+ var portal$1 = new portal.ComponentPortal(ModuleWrapperComponent, null);
79
+ this.componentInstance = overlayRef.attach(portal$1);
80
+ if (options === null || options === void 0 ? void 0 : options.closeOnBackdropClick) {
81
+ overlayRef.backdropClick().subscribe(function () { return modalRef.close(); });
82
+ }
83
+ this.componentInstance.instance.bindComponent(component, injector);
84
+ return modalRef;
85
+ };
86
+ ModalService.prototype.createInjector = function (ref, inj, data) {
87
+ var injectorTokens = new WeakMap();
88
+ injectorTokens.set(ModalRef, ref);
89
+ injectorTokens.set(MODAL_DATA_VAR, data);
90
+ return new portal.PortalInjector(inj, injectorTokens);
91
+ };
92
+ ModalService.prototype.calculatePosition = function (options) {
93
+ var position = this.overlay.position().global().centerHorizontally().centerVertically();
94
+ if (options && screen.width > 600) {
95
+ if (options.top) {
96
+ position.top(options.top);
97
+ }
98
+ if (options.left) {
99
+ position.left(options.left);
100
+ }
101
+ if (options.right) {
102
+ position.right(options.right);
103
+ }
104
+ if (options.bottom) {
105
+ position.bottom(options.bottom);
106
+ }
107
+ }
108
+ return position;
109
+ };
110
+ return ModalService;
111
+ }());
112
+ ModalService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ModalService_Factory() { return new ModalService(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR)); }, token: ModalService, providedIn: "root" });
113
+ ModalService.decorators = [
114
+ { type: i0.Injectable, args: [{
115
+ providedIn: "root"
116
+ },] }
117
+ ];
118
+ ModalService.ctorParameters = function () { return [
119
+ { type: i1.Overlay },
120
+ { type: i0.Injector }
121
+ ]; };
122
+
123
+ var ModalModule = /** @class */ (function () {
124
+ function ModalModule() {
125
+ }
126
+ ModalModule.forRoot = function () {
127
+ return {
128
+ ngModule: ModalModule,
129
+ providers: [ModalService]
130
+ };
131
+ };
132
+ ModalModule.forChild = function () {
133
+ return {
134
+ ngModule: ModalModule,
135
+ providers: [ModalService]
136
+ };
137
+ };
138
+ return ModalModule;
139
+ }());
140
+ ModalModule.decorators = [
141
+ { type: i0.NgModule, args: [{
142
+ declarations: [ModuleWrapperComponent],
143
+ imports: [common.CommonModule, i1.OverlayModule, portal.PortalModule],
144
+ entryComponents: [ModuleWrapperComponent]
145
+ },] }
146
+ ];
147
+
148
+ /**
149
+ * Generated bundle index. Do not edit.
150
+ */
151
+
152
+ exports.MODAL_DATA_VAR = MODAL_DATA_VAR;
153
+ exports.ModalModule = ModalModule;
154
+ exports.ModalRef = ModalRef;
155
+ exports.ModalService = ModalService;
156
+ exports.ɵa = ModuleWrapperComponent;
157
+
158
+ Object.defineProperty(exports, '__esModule', { value: true });
159
+
160
+ })));
161
+ //# sourceMappingURL=mis-crystal-design-system-modal.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mis-crystal-design-system-modal.umd.js","sources":["../../../projects/mis-components/modal/modal-constants.ts","../../../projects/mis-components/modal/modal-ref.ts","../../../projects/mis-components/modal/module-wrapper/module-wrapper.component.ts","../../../projects/mis-components/modal/modal.service.ts","../../../projects/mis-components/modal/modal.module.ts","../../../projects/mis-components/modal/mis-crystal-design-system-modal.ts"],"sourcesContent":["/** @format */\n\nimport { InjectionToken } from \"@angular/core\";\n\nexport const MODAL_DATA_VAR = new InjectionToken<any>(\"MISModalDataInjectionToken\");\n","/** @format */\n\nimport { OverlayRef } from \"@angular/cdk/overlay\";\nimport { Injectable } from \"@angular/core\";\nimport { Subject } from \"rxjs\";\n\nexport class ModalRef {\n private afterClosed$ = new Subject<unknown>();\n afterClosed = this.afterClosed$.asObservable();\n\n constructor(public overlay: OverlayRef) {}\n\n close(data?: unknown): void {\n this.overlay.detach();\n this.overlay.dispose();\n this.afterClosed$.next(data);\n this.afterClosed$.complete();\n }\n}\n","import { trigger, transition, style, animate } from \"@angular/animations\";\nimport { ComponentPortal, PortalInjector } from \"@angular/cdk/portal\";\nimport { Component, Injector, OnInit, ViewChild, ViewContainerRef } from \"@angular/core\";\nimport { ModalRef } from \"../modal-ref\";\n\n@Component({\n selector: \"mis-module-wrapper\",\n templateUrl: \"./module-wrapper.component.html\",\n styleUrls: [\"./module-wrapper.component.scss\"],\n animations: [\n trigger(\"slideInOut\", [\n transition(\":enter\", [\n style({ transform: \"translateY(-30%)\", opacity: 0 }),\n animate(\"200ms ease-out\", style({ transform: \"translatey(0%)\", opacity: 1 }))\n ]),\n transition(\":leave\", [animate(\"200ms ease-out\", style({ transform: \"translatey(-30%)\", opacity: 0 }))])\n ])\n ]\n})\nexport class ModuleWrapperComponent {\n modalPortal: ComponentPortal<any>;\n constructor() {}\n\n @ViewChild(\"place\", { static: false, read: ViewContainerRef }) place: ViewContainerRef;\n\n bindComponent(type: any, injector: PortalInjector) {\n this.initComponent(type, injector);\n }\n\n private initComponent(type: any, injector: PortalInjector) {\n this.modalPortal = new ComponentPortal(type, this.place, injector);\n }\n}\n","import { ComponentType, Overlay, OverlayConfig } from \"@angular/cdk/overlay\";\nimport { ComponentPortal, PortalInjector } from \"@angular/cdk/portal\";\nimport { ComponentRef, Injectable, Injector } from \"@angular/core\";\nimport { MODAL_DATA_VAR } from \"./modal-constants\";\nimport { ModalRef } from \"./modal-ref\";\nimport { ModuleWrapperComponent } from \"./module-wrapper/module-wrapper.component\";\n\ninterface IModalOptions {\n width?: string;\n height?: string;\n top?: string;\n right?: string;\n bottom?: string;\n left?: string;\n closeOnBackdropClick?: boolean;\n}\n@Injectable({\n providedIn: \"root\"\n})\nexport class ModalService {\n private componentInstance: ComponentRef<ModuleWrapperComponent>;\n\n constructor(private overlay: Overlay, private injector: Injector) {}\n\n show<T, D>(component: ComponentType<T>, data?: D, options?: IModalOptions): ModalRef {\n const positionStrategy = this.calculatePosition(options);\n const { width, height } = options || {};\n const config = new OverlayConfig({\n hasBackdrop: true,\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.noop(),\n width: width,\n height,\n panelClass: \"mis-modal\",\n backdropClass: \"mis-modal-overlay\"\n });\n const overlayRef = this.overlay.create(config);\n const modalRef = new ModalRef(overlayRef);\n const injector = this.createInjector(modalRef, this.injector, data);\n const portal = new ComponentPortal(ModuleWrapperComponent, null);\n this.componentInstance = overlayRef.attach(portal);\n if (options?.closeOnBackdropClick) {\n overlayRef.backdropClick().subscribe(() => modalRef.close());\n }\n this.componentInstance.instance.bindComponent(component, injector);\n return modalRef;\n }\n private createInjector<D>(ref: ModalRef, inj: Injector, data?: D): PortalInjector {\n const injectorTokens = new WeakMap();\n injectorTokens.set(ModalRef, ref);\n injectorTokens.set(MODAL_DATA_VAR, data);\n return new PortalInjector(inj, injectorTokens);\n }\n\n private calculatePosition(options: IModalOptions) {\n const position = this.overlay.position().global().centerHorizontally().centerVertically();\n if (options && screen.width > 600) {\n if (options.top) {\n position.top(options.top);\n }\n if (options.left) {\n position.left(options.left);\n }\n if (options.right) {\n position.right(options.right);\n }\n if (options.bottom) {\n position.bottom(options.bottom);\n }\n }\n return position;\n }\n}\n","import { ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { PortalModule } from \"@angular/cdk/portal\";\nimport { ModuleWrapperComponent } from \"./module-wrapper/module-wrapper.component\";\nimport { ModalService } from \"./modal.service\";\n\n@NgModule({\n declarations: [ModuleWrapperComponent],\n imports: [CommonModule, OverlayModule, PortalModule],\n entryComponents: [ModuleWrapperComponent]\n})\nexport class ModalModule {\n static forRoot(): ModuleWithProviders<ModalModule> {\n return {\n ngModule: ModalModule,\n providers: [ModalService]\n };\n }\n\n static forChild(): ModuleWithProviders<ModalModule> {\n return {\n ngModule: ModalModule,\n providers: [ModalService]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {ModuleWrapperComponent as ɵa} from './module-wrapper/module-wrapper.component';"],"names":["InjectionToken","Subject","ComponentPortal","Component","trigger","transition","style","animate","ViewChild","ViewContainerRef","OverlayConfig","portal","PortalInjector","Injectable","Overlay","Injector","NgModule","CommonModule","OverlayModule","PortalModule"],"mappings":";;;;;;IAAA;QAIa,cAAc,GAAG,IAAIA,iBAAc,CAAM,4BAA4B;;ICJlF;;QAUE,kBAAmB,OAAmB;YAAnB,YAAO,GAAP,OAAO,CAAY;YAH9B,iBAAY,GAAG,IAAIC,YAAO,EAAW,CAAC;YAC9C,gBAAW,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;SAEL;QAE1C,wBAAK,GAAL,UAAM,IAAc;YAClB,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YACtB,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7B,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;SAC9B;uBACF;KAAA;;;QCGC;SAAgB;QAIhB,8CAAa,GAAb,UAAc,IAAS,EAAE,QAAwB;YAC/C,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;SACpC;QAEO,8CAAa,GAAb,UAAc,IAAS,EAAE,QAAwB;YACvD,IAAI,CAAC,WAAW,GAAG,IAAIC,sBAAe,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CA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K,GAAG,GAAG,EAAE;gBACjC,IAAI,OAAO,CAAC,GAAG,EAAE;oBACf,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;iBAC3B;gBACD,IAAI,OAAO,CAAC,IAAI,EAAE;oBAChB,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iBAC7B;gBACD,IAAI,OAAO,CAAC,KAAK,EAAE;oBACjB,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;iBAC/B;gBACD,IAAI,OAAO,CAAC,MAAM,EAAE;oBAClB,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;iBACjC;aACF;YACD,OAAO,QAAQ,CAAC;SACjB;;;;;gBAvDFC,aAAU,SAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;gBAlBuBC,UAAO;gBAEIC,WAAQ;;;;QCU3C;;QACS,mBAAO,GAAd;YACE,OAAO;gBACL,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,CAAC,YAAY,CAAC;aAC1B,CAAC;SACH;QAEM,oBAAQ,GAAf;YACE,OAAO;gBACL,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,CAAC,YAAY,CAAC;aAC1B,CAAC;SACH;;;;gBAlBFC,WAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAACC,mBAAY,EAAEC,gBAAa,EAAEC,mBAAY,CAAC;oBACpD,eAAe,EAAE,CAAC,sBAAsB,CAAC;iBAC1C;;;ICXD;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/overlay"),require("@angular/cdk/portal"),require("@angular/core"),require("rxjs"),require("@angular/animations"),require("@angular/common")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/modal",["exports","@angular/cdk/overlay","@angular/cdk/portal","@angular/core","rxjs","@angular/animations","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"].modal={}),e.ng.cdk.overlay,e.ng.cdk.portal,e.ng.core,e.rxjs,e.ng.animations,e.ng.common)}(this,(function(e,t,o,n,r,a,i){"use strict";var s=new n.InjectionToken("MISModalDataInjectionToken"),l=function(){function e(e){this.overlay=e,this.afterClosed$=new r.Subject,this.afterClosed=this.afterClosed$.asObservable()}return e.prototype.close=function(e){this.overlay.detach(),this.overlay.dispose(),this.afterClosed$.next(e),this.afterClosed$.complete()},e}(),c=function(){function e(){}return e.prototype.bindComponent=function(e,t){this.initComponent(e,t)},e.prototype.initComponent=function(e,t){this.modalPortal=new o.ComponentPortal(e,this.place,t)},e}();c.decorators=[{type:n.Component,args:[{selector:"mis-module-wrapper",template:'<div class="mis-modal-body" #place @slideInOut>\n <ng-template [cdkPortalOutlet]="modalPortal"></ng-template>\n</div>\n',animations:[a.trigger("slideInOut",[a.transition(":enter",[a.style({transform:"translateY(-30%)",opacity:0}),a.animate("200ms ease-out",a.style({transform:"translatey(0%)",opacity:1}))]),a.transition(":leave",[a.animate("200ms ease-out",a.style({transform:"translatey(-30%)",opacity:0}))])])],styles:[".mis-modal-body{display:block;width:100%;height:100%;background-color:transparent;border-radius:12px;box-shadow:0 12px 24px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.12);overflow:hidden}"]}]}],c.ctorParameters=function(){return[]},c.propDecorators={place:[{type:n.ViewChild,args:["place",{static:!1,read:n.ViewContainerRef}]}]};var d=function(){function e(e,t){this.overlay=e,this.injector=t}return e.prototype.show=function(e,n,r){var a=this.calculatePosition(r),i=r||{},s=i.width,d=i.height,p=new t.OverlayConfig({hasBackdrop:!0,positionStrategy:a,scrollStrategy:this.overlay.scrollStrategies.noop(),width:s,height:d,panelClass:"mis-modal",backdropClass:"mis-modal-overlay"}),u=this.overlay.create(p),m=new l(u),y=this.createInjector(m,this.injector,n),f=new o.ComponentPortal(c,null);return this.componentInstance=u.attach(f),(null==r?void 0:r.closeOnBackdropClick)&&u.backdropClick().subscribe((function(){return m.close()})),this.componentInstance.instance.bindComponent(e,y),m},e.prototype.createInjector=function(e,t,n){var r=new WeakMap;return r.set(l,e),r.set(s,n),new o.PortalInjector(t,r)},e.prototype.calculatePosition=function(e){var t=this.overlay.position().global().centerHorizontally().centerVertically();return e&&screen.width>600&&(e.top&&t.top(e.top),e.left&&t.left(e.left),e.right&&t.right(e.right),e.bottom&&t.bottom(e.bottom)),t},e}();d.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new d(n.ɵɵinject(t.Overlay),n.ɵɵinject(n.INJECTOR))},token:d,providedIn:"root"}),d.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],d.ctorParameters=function(){return[{type:t.Overlay},{type:n.Injector}]};var p=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[d]}},e.forChild=function(){return{ngModule:e,providers:[d]}},e}();p.decorators=[{type:n.NgModule,args:[{declarations:[c],imports:[i.CommonModule,t.OverlayModule,o.PortalModule],entryComponents:[c]}]}],e.MODAL_DATA_VAR=s,e.ModalModule=p,e.ModalRef=l,e.ModalService=d,e.ɵa=c,Object.defineProperty(e,"__esModule",{value:!0})}));
2
+ //# sourceMappingURL=mis-crystal-design-system-modal.umd.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../projects/mis-components/modal/modal-constants.ts","../../../projects/mis-components/modal/modal-ref.ts","../../../projects/mis-components/modal/module-wrapper/module-wrapper.component.ts","../../../projects/mis-components/modal/modal.service.ts","../../../projects/mis-components/modal/modal.module.ts"],"names":["MODAL_DATA_VAR","InjectionToken","ModalRef","overlay","this","afterClosed$","Subject","afterClosed","asObservable","prototype","close","data","detach","dispose","next","complete","ModuleWrapperComponent","bindComponent","type","injector","initComponent","modalPortal","ComponentPortal","place","Component","args","selector","template","animations","trigger","transition","style","transform","opacity","animate","ViewChild","static","read","ViewContainerRef","ModalService","show","component","options","positionStrategy","calculatePosition","_a","width","height","config","OverlayConfig","hasBackdrop","scrollStrategy","scrollStrategies","noop","panelClass","backdropClass","overlayRef","create","modalRef","createInjector","portal","componentInstance","attach","closeOnBackdropClick","backdropClick","subscribe","instance","ref","inj","injectorTokens","WeakMap","set","PortalInjector","position","global","centerHorizontally","centerVertically","screen","top","left","right","bottom","Injectable","providedIn","Overlay","Injector","ModalModule","forRoot","ngModule","providers","forChild","NgModule","declarations","imports","CommonModule","OverlayModule","PortalModule","entryComponents"],"mappings":"4tBAIaA,EAAiB,IAAIC,EAAAA,eAAoB,2CCMpD,SAAAC,EAAmBC,GAAAC,KAAAD,QAAAA,EAHXC,KAAAC,aAAe,IAAIC,EAAAA,QAC3BF,KAAAG,YAAcH,KAAKC,aAAaG,sBAIhCN,EAAAO,UAAAC,MAAA,SAAMC,GACJP,KAAKD,QAAQS,SACbR,KAAKD,QAAQU,UACbT,KAAKC,aAAaS,KAAKH,GACvBP,KAAKC,aAAaU,8BCKpB,SAAAC,YAIAA,EAAAP,UAAAQ,cAAA,SAAcC,EAAWC,GACvBf,KAAKgB,cAAcF,EAAMC,IAGnBH,EAAAP,UAAAW,cAAA,SAAcF,EAAWC,GAC/Bf,KAAKiB,YAAc,IAAIC,EAAAA,gBAAgBJ,EAAMd,KAAKmB,MAAOJ,6BAzB5DK,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,qBACVC,SAAA,2HAEAC,WAAY,CACVC,EAAAA,QAAQ,aAAc,CACpBC,EAAAA,WAAW,SAAU,CACnBC,EAAAA,MAAM,CAAEC,UAAW,mBAAoBC,QAAS,IAChDC,EAAAA,QAAQ,iBAAkBH,EAAAA,MAAM,CAAEC,UAAW,iBAAkBC,QAAS,OAE1EH,EAAAA,WAAW,SAAU,CAACI,EAAAA,QAAQ,iBAAkBH,EAAAA,MAAM,CAAEC,UAAW,mBAAoBC,QAAS,qRAQnGE,EAAAA,UAASV,KAAA,CAAC,QAAS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,MAEpBrC,EAAQsC,OACVP,EAASO,MAAMtC,EAAQsC,OAErBtC,EAAQuC,QACVR,EAASQ,OAAOvC,EAAQuC,SAGrBR,qKAtDVS,EAAAA,WAAUzD,KAAA,CAAC,CACV0D,WAAY,oDAjBUC,EAAAA,eAEWC,EAAAA,6BCUnC,SAAAC,YACSA,EAAAC,QAAP,WACE,MAAO,CACLC,SAAUF,EACVG,UAAW,CAAClD,KAIT+C,EAAAI,SAAP,WACE,MAAO,CACLF,SAAUF,EACVG,UAAW,CAAClD,8BAhBjBoD,EAAAA,SAAQlE,KAAA,CAAC,CACRmE,aAAc,CAAC5E,GACf6E,QAAS,CAACC,EAAAA,aAAcC,EAAAA,cAAeC,EAAAA,cACvCC,gBAAiB,CAACjF","sourcesContent":["/** @format */\n\nimport { InjectionToken } from \"@angular/core\";\n\nexport const MODAL_DATA_VAR = new InjectionToken<any>(\"MISModalDataInjectionToken\");\n","/** @format */\n\nimport { OverlayRef } from \"@angular/cdk/overlay\";\nimport { Injectable } from \"@angular/core\";\nimport { Subject } from \"rxjs\";\n\nexport class ModalRef {\n private afterClosed$ = new Subject<unknown>();\n afterClosed = this.afterClosed$.asObservable();\n\n constructor(public overlay: OverlayRef) {}\n\n close(data?: unknown): void {\n this.overlay.detach();\n this.overlay.dispose();\n this.afterClosed$.next(data);\n this.afterClosed$.complete();\n }\n}\n","import { trigger, transition, style, animate } from \"@angular/animations\";\nimport { ComponentPortal, PortalInjector } from \"@angular/cdk/portal\";\nimport { Component, Injector, OnInit, ViewChild, ViewContainerRef } from \"@angular/core\";\nimport { ModalRef } from \"../modal-ref\";\n\n@Component({\n selector: \"mis-module-wrapper\",\n templateUrl: \"./module-wrapper.component.html\",\n styleUrls: [\"./module-wrapper.component.scss\"],\n animations: [\n trigger(\"slideInOut\", [\n transition(\":enter\", [\n style({ transform: \"translateY(-30%)\", opacity: 0 }),\n animate(\"200ms ease-out\", style({ transform: \"translatey(0%)\", opacity: 1 }))\n ]),\n transition(\":leave\", [animate(\"200ms ease-out\", style({ transform: \"translatey(-30%)\", opacity: 0 }))])\n ])\n ]\n})\nexport class ModuleWrapperComponent {\n modalPortal: ComponentPortal<any>;\n constructor() {}\n\n @ViewChild(\"place\", { static: false, read: ViewContainerRef }) place: ViewContainerRef;\n\n bindComponent(type: any, injector: PortalInjector) {\n this.initComponent(type, injector);\n }\n\n private initComponent(type: any, injector: PortalInjector) {\n this.modalPortal = new ComponentPortal(type, this.place, injector);\n }\n}\n","import { ComponentType, Overlay, OverlayConfig } from \"@angular/cdk/overlay\";\nimport { ComponentPortal, PortalInjector } from \"@angular/cdk/portal\";\nimport { ComponentRef, Injectable, Injector } from \"@angular/core\";\nimport { MODAL_DATA_VAR } from \"./modal-constants\";\nimport { ModalRef } from \"./modal-ref\";\nimport { ModuleWrapperComponent } from \"./module-wrapper/module-wrapper.component\";\n\ninterface IModalOptions {\n width?: string;\n height?: string;\n top?: string;\n right?: string;\n bottom?: string;\n left?: string;\n closeOnBackdropClick?: boolean;\n}\n@Injectable({\n providedIn: \"root\"\n})\nexport class ModalService {\n private componentInstance: ComponentRef<ModuleWrapperComponent>;\n\n constructor(private overlay: Overlay, private injector: Injector) {}\n\n show<T, D>(component: ComponentType<T>, data?: D, options?: IModalOptions): ModalRef {\n const positionStrategy = this.calculatePosition(options);\n const { width, height } = options || {};\n const config = new OverlayConfig({\n hasBackdrop: true,\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.noop(),\n width: width,\n height,\n panelClass: \"mis-modal\",\n backdropClass: \"mis-modal-overlay\"\n });\n const overlayRef = this.overlay.create(config);\n const modalRef = new ModalRef(overlayRef);\n const injector = this.createInjector(modalRef, this.injector, data);\n const portal = new ComponentPortal(ModuleWrapperComponent, null);\n this.componentInstance = overlayRef.attach(portal);\n if (options?.closeOnBackdropClick) {\n overlayRef.backdropClick().subscribe(() => modalRef.close());\n }\n this.componentInstance.instance.bindComponent(component, injector);\n return modalRef;\n }\n private createInjector<D>(ref: ModalRef, inj: Injector, data?: D): PortalInjector {\n const injectorTokens = new WeakMap();\n injectorTokens.set(ModalRef, ref);\n injectorTokens.set(MODAL_DATA_VAR, data);\n return new PortalInjector(inj, injectorTokens);\n }\n\n private calculatePosition(options: IModalOptions) {\n const position = this.overlay.position().global().centerHorizontally().centerVertically();\n if (options && screen.width > 600) {\n if (options.top) {\n position.top(options.top);\n }\n if (options.left) {\n position.left(options.left);\n }\n if (options.right) {\n position.right(options.right);\n }\n if (options.bottom) {\n position.bottom(options.bottom);\n }\n }\n return position;\n }\n}\n","import { ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { PortalModule } from \"@angular/cdk/portal\";\nimport { ModuleWrapperComponent } from \"./module-wrapper/module-wrapper.component\";\nimport { ModalService } from \"./modal.service\";\n\n@NgModule({\n declarations: [ModuleWrapperComponent],\n imports: [CommonModule, OverlayModule, PortalModule],\n entryComponents: [ModuleWrapperComponent]\n})\nexport class ModalModule {\n static forRoot(): ModuleWithProviders<ModalModule> {\n return {\n ngModule: ModalModule,\n providers: [ModalService]\n };\n }\n\n static forChild(): ModuleWithProviders<ModalModule> {\n return {\n ngModule: ModalModule,\n providers: [ModalService]\n };\n }\n}\n"]}