@ptsecurity/mosaic 11.6.0 → 12.2.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 (630) hide show
  1. package/_theming.scss +407 -99
  2. package/_visual.scss +63 -26
  3. package/autocomplete/autocomplete-origin.directive.d.ts +3 -0
  4. package/autocomplete/autocomplete-trigger.directive.d.ts +3 -0
  5. package/autocomplete/autocomplete.component.d.ts +3 -0
  6. package/autocomplete/autocomplete.module.d.ts +10 -0
  7. package/autocomplete/package.json +0 -1
  8. package/autocomplete/ptsecurity-mosaic-autocomplete.d.ts +1 -0
  9. package/bundles/ptsecurity-mosaic-autocomplete.umd.js +178 -114
  10. package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +1 -1
  11. package/bundles/ptsecurity-mosaic-button-toggle.umd.js +107 -71
  12. package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +1 -1
  13. package/bundles/ptsecurity-mosaic-button.umd.js +106 -77
  14. package/bundles/ptsecurity-mosaic-button.umd.js.map +1 -1
  15. package/bundles/ptsecurity-mosaic-card.umd.js +74 -43
  16. package/bundles/ptsecurity-mosaic-card.umd.js.map +1 -1
  17. package/bundles/ptsecurity-mosaic-checkbox.umd.js +114 -69
  18. package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +1 -1
  19. package/bundles/ptsecurity-mosaic-core.umd.js +804 -256
  20. package/bundles/ptsecurity-mosaic-core.umd.js.map +1 -1
  21. package/bundles/ptsecurity-mosaic-datepicker.umd.js +599 -420
  22. package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +1 -1
  23. package/bundles/ptsecurity-mosaic-design-tokens.umd.js +108 -26
  24. package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +1 -1
  25. package/bundles/ptsecurity-mosaic-divider.umd.js +55 -28
  26. package/bundles/ptsecurity-mosaic-divider.umd.js.map +1 -1
  27. package/bundles/ptsecurity-mosaic-dropdown.umd.js +263 -187
  28. package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +1 -1
  29. package/bundles/ptsecurity-mosaic-form-field.umd.js +200 -125
  30. package/bundles/ptsecurity-mosaic-form-field.umd.js.map +1 -1
  31. package/bundles/ptsecurity-mosaic-icon.umd.js +79 -41
  32. package/bundles/ptsecurity-mosaic-icon.umd.js.map +1 -1
  33. package/bundles/ptsecurity-mosaic-input.umd.js +222 -124
  34. package/bundles/ptsecurity-mosaic-input.umd.js.map +1 -1
  35. package/bundles/ptsecurity-mosaic-link.umd.js +76 -45
  36. package/bundles/ptsecurity-mosaic-link.umd.js.map +1 -1
  37. package/bundles/ptsecurity-mosaic-list.umd.js +344 -200
  38. package/bundles/ptsecurity-mosaic-list.umd.js.map +1 -1
  39. package/bundles/ptsecurity-mosaic-modal.umd.js +324 -220
  40. package/bundles/ptsecurity-mosaic-modal.umd.js.map +1 -1
  41. package/bundles/ptsecurity-mosaic-navbar.umd.js +289 -208
  42. package/bundles/ptsecurity-mosaic-navbar.umd.js.map +1 -1
  43. package/bundles/ptsecurity-mosaic-popover.umd.js +346 -640
  44. package/bundles/ptsecurity-mosaic-popover.umd.js.map +1 -1
  45. package/bundles/ptsecurity-mosaic-progress-bar.umd.js +69 -40
  46. package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +1 -1
  47. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +69 -40
  48. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +1 -1
  49. package/bundles/ptsecurity-mosaic-radio.umd.js +126 -81
  50. package/bundles/ptsecurity-mosaic-radio.umd.js.map +1 -1
  51. package/bundles/ptsecurity-mosaic-select.umd.js +276 -154
  52. package/bundles/ptsecurity-mosaic-select.umd.js.map +1 -1
  53. package/bundles/ptsecurity-mosaic-sidebar.umd.js +105 -68
  54. package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +1 -1
  55. package/bundles/ptsecurity-mosaic-sidepanel.umd.js +236 -158
  56. package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +1 -1
  57. package/bundles/ptsecurity-mosaic-splitter.umd.js +112 -83
  58. package/bundles/ptsecurity-mosaic-splitter.umd.js.map +1 -1
  59. package/bundles/ptsecurity-mosaic-table.umd.js +77 -44
  60. package/bundles/ptsecurity-mosaic-table.umd.js.map +1 -1
  61. package/bundles/ptsecurity-mosaic-tabs.umd.js +894 -687
  62. package/bundles/ptsecurity-mosaic-tabs.umd.js.map +1 -1
  63. package/bundles/ptsecurity-mosaic-tags.umd.js +313 -209
  64. package/bundles/ptsecurity-mosaic-tags.umd.js.map +1 -1
  65. package/bundles/ptsecurity-mosaic-textarea.umd.js +107 -53
  66. package/bundles/ptsecurity-mosaic-textarea.umd.js.map +1 -1
  67. package/bundles/ptsecurity-mosaic-timepicker.umd.js +116 -71
  68. package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +1 -1
  69. package/bundles/ptsecurity-mosaic-toggle.umd.js +97 -58
  70. package/bundles/ptsecurity-mosaic-toggle.umd.js.map +1 -1
  71. package/bundles/ptsecurity-mosaic-tooltip.umd.js +347 -615
  72. package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +1 -1
  73. package/bundles/ptsecurity-mosaic-tree-select.umd.js +223 -118
  74. package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +1 -1
  75. package/bundles/ptsecurity-mosaic-tree.umd.js +1162 -344
  76. package/bundles/ptsecurity-mosaic-tree.umd.js.map +1 -1
  77. package/bundles/ptsecurity-mosaic.umd.js +2 -2
  78. package/button/button.component.d.ts +7 -0
  79. package/button/button.module.d.ts +8 -0
  80. package/button/package.json +0 -1
  81. package/button/ptsecurity-mosaic-button.d.ts +1 -0
  82. package/button-toggle/button-toggle.component.d.ts +5 -0
  83. package/button-toggle/button-toggle.module.d.ts +7 -0
  84. package/button-toggle/package.json +0 -1
  85. package/button-toggle/ptsecurity-mosaic-button-toggle.d.ts +1 -0
  86. package/card/card.component.d.ts +3 -0
  87. package/card/card.module.d.ts +8 -0
  88. package/card/package.json +0 -1
  89. package/card/ptsecurity-mosaic-card.d.ts +1 -0
  90. package/checkbox/checkbox-module.d.ts +7 -0
  91. package/checkbox/checkbox-required-validator.d.ts +3 -0
  92. package/checkbox/checkbox.d.ts +3 -0
  93. package/checkbox/package.json +0 -1
  94. package/checkbox/ptsecurity-mosaic-checkbox.d.ts +1 -0
  95. package/core/common-behaviors/color.d.ts +3 -3
  96. package/core/common-behaviors/common-module.d.ts +5 -0
  97. package/core/common-behaviors/disabled.d.ts +4 -3
  98. package/core/common-behaviors/tabindex.d.ts +2 -1
  99. package/core/error/error-options.d.ts +5 -0
  100. package/core/formatters/date/formatter.d.ts +3 -0
  101. package/core/formatters/index.d.ts +5 -0
  102. package/core/formatters/number/formatter.d.ts +4 -0
  103. package/core/forms/forms-module.d.ts +5 -0
  104. package/core/forms/forms.directive.d.ts +5 -0
  105. package/core/highlight/highlight.pipe.d.ts +3 -0
  106. package/core/highlight/index.d.ts +6 -0
  107. package/core/line/line.d.ts +6 -0
  108. package/core/option/action.d.ts +42 -0
  109. package/core/option/index.d.ts +1 -0
  110. package/core/option/optgroup.d.ts +3 -0
  111. package/core/option/option-module.d.ts +9 -0
  112. package/core/option/option.d.ts +3 -0
  113. package/core/overlay/overlay-position-map.d.ts +0 -4
  114. package/core/package.json +0 -1
  115. package/core/pop-up/constants.d.ts +29 -0
  116. package/core/pop-up/index.d.ts +3 -0
  117. package/core/pop-up/pop-up-trigger.d.ts +70 -0
  118. package/core/pop-up/pop-up.d.ts +35 -0
  119. package/core/ptsecurity-mosaic-core.d.ts +1 -1
  120. package/core/public-api.d.ts +1 -0
  121. package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -0
  122. package/core/selection/pseudo-checkbox/pseudo-checkbox.module.d.ts +6 -0
  123. package/core/services/measure-scrollbar.service.d.ts +3 -0
  124. package/datepicker/calendar-body.component.d.ts +5 -6
  125. package/datepicker/calendar.component.d.ts +5 -0
  126. package/datepicker/datepicker-input.directive.d.ts +6 -2
  127. package/datepicker/datepicker-intl.d.ts +3 -0
  128. package/datepicker/datepicker-module.d.ts +18 -0
  129. package/datepicker/datepicker-toggle.component.d.ts +5 -0
  130. package/datepicker/datepicker.component.d.ts +5 -0
  131. package/datepicker/month-view.component.d.ts +3 -0
  132. package/datepicker/multi-year-view.component.d.ts +3 -0
  133. package/datepicker/package.json +0 -1
  134. package/datepicker/ptsecurity-mosaic-datepicker.d.ts +1 -0
  135. package/datepicker/year-view.component.d.ts +3 -0
  136. package/design-tokens/package.json +0 -1
  137. package/design-tokens/ptsecurity-mosaic-design-tokens.d.ts +1 -0
  138. package/design-tokens/tokens/components/list.json5 +0 -4
  139. package/design-tokens/tokens/components/popover.json5 +32 -4
  140. package/design-tokens/tokens/components/tooltip.json5 +49 -3
  141. package/design-tokens/tokens/components/tree.json5 +3 -3
  142. package/design-tokens/tokens/properties/globals.json5 +1 -1
  143. package/design-tokens/tokens.d.ts +56 -15
  144. package/divider/divider.component.d.ts +3 -0
  145. package/divider/divider.module.d.ts +6 -0
  146. package/divider/package.json +0 -1
  147. package/divider/ptsecurity-mosaic-divider.d.ts +1 -0
  148. package/dropdown/dropdown-content.directive.d.ts +3 -0
  149. package/dropdown/dropdown-item.component.d.ts +3 -0
  150. package/dropdown/dropdown-trigger.directive.d.ts +6 -8
  151. package/dropdown/dropdown.component.d.ts +5 -1
  152. package/dropdown/dropdown.module.d.ts +11 -0
  153. package/dropdown/package.json +0 -1
  154. package/dropdown/ptsecurity-mosaic-dropdown.d.ts +1 -0
  155. package/esm2015/autocomplete/autocomplete-origin.directive.js +11 -11
  156. package/esm2015/autocomplete/autocomplete-trigger.directive.js +53 -38
  157. package/esm2015/autocomplete/autocomplete.component.js +56 -37
  158. package/esm2015/autocomplete/autocomplete.module.js +25 -15
  159. package/esm2015/button/button.component.js +52 -56
  160. package/esm2015/button/button.module.js +35 -20
  161. package/esm2015/button-toggle/button-toggle.component.js +76 -55
  162. package/esm2015/button-toggle/button-toggle.module.js +13 -8
  163. package/esm2015/card/card.component.js +32 -30
  164. package/esm2015/card/card.module.js +23 -12
  165. package/esm2015/checkbox/checkbox-module.js +13 -8
  166. package/esm2015/checkbox/checkbox-required-validator.js +12 -8
  167. package/esm2015/checkbox/checkbox.js +61 -44
  168. package/esm2015/core/common-behaviors/color.js +2 -5
  169. package/esm2015/core/common-behaviors/common-module.js +17 -11
  170. package/esm2015/core/common-behaviors/disabled.js +1 -1
  171. package/esm2015/core/common-behaviors/tabindex.js +4 -13
  172. package/esm2015/core/error/error-options.js +12 -8
  173. package/esm2015/core/formatters/date/formatter.js +13 -10
  174. package/esm2015/core/formatters/index.js +13 -8
  175. package/esm2015/core/formatters/number/formatter.js +16 -10
  176. package/esm2015/core/forms/forms-module.js +20 -13
  177. package/esm2015/core/forms/forms.directive.js +32 -29
  178. package/esm2015/core/highlight/highlight.pipe.js +8 -4
  179. package/esm2015/core/highlight/index.js +13 -8
  180. package/esm2015/core/line/line.js +22 -14
  181. package/esm2015/core/option/action.js +131 -0
  182. package/esm2015/core/option/index.js +2 -1
  183. package/esm2015/core/option/optgroup.js +22 -19
  184. package/esm2015/core/option/option-module.js +14 -8
  185. package/esm2015/core/option/option.js +44 -35
  186. package/esm2015/core/overlay/overlay-position-map.js +16 -18
  187. package/esm2015/core/pop-up/constants.js +34 -0
  188. package/esm2015/core/pop-up/index.js +4 -0
  189. package/esm2015/core/pop-up/pop-up-trigger.js +241 -0
  190. package/esm2015/core/pop-up/pop-up.js +87 -0
  191. package/esm2015/core/ptsecurity-mosaic-core.js +1 -2
  192. package/esm2015/core/public-api.js +2 -1
  193. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +25 -21
  194. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js +13 -8
  195. package/esm2015/core/services/measure-scrollbar.service.js +12 -12
  196. package/esm2015/datepicker/calendar-body.component.js +39 -32
  197. package/esm2015/datepicker/calendar.component.js +92 -58
  198. package/esm2015/datepicker/datepicker-input.directive.js +92 -61
  199. package/esm2015/datepicker/datepicker-intl.js +7 -5
  200. package/esm2015/datepicker/datepicker-module.js +89 -48
  201. package/esm2015/datepicker/datepicker-toggle.component.js +44 -32
  202. package/esm2015/datepicker/datepicker.component.js +88 -63
  203. package/esm2015/datepicker/month-view.component.js +48 -29
  204. package/esm2015/datepicker/multi-year-view.component.js +40 -27
  205. package/esm2015/datepicker/year-view.component.js +45 -28
  206. package/esm2015/design-tokens/tokens.js +57 -16
  207. package/esm2015/divider/divider.component.js +24 -20
  208. package/esm2015/divider/divider.module.js +13 -8
  209. package/esm2015/dropdown/dropdown-content.directive.js +13 -15
  210. package/esm2015/dropdown/dropdown-item.component.js +40 -30
  211. package/esm2015/dropdown/dropdown-trigger.directive.js +75 -67
  212. package/esm2015/dropdown/dropdown.component.js +63 -38
  213. package/esm2015/dropdown/dropdown.module.js +40 -23
  214. package/esm2015/form-field/cleaner.js +20 -11
  215. package/esm2015/form-field/form-field.js +77 -53
  216. package/esm2015/form-field/form-field.module.js +41 -24
  217. package/esm2015/form-field/hint.js +16 -13
  218. package/esm2015/form-field/prefix.js +10 -6
  219. package/esm2015/form-field/stepper.js +22 -11
  220. package/esm2015/form-field/suffix.js +10 -6
  221. package/esm2015/icon/icon.component.js +27 -22
  222. package/esm2015/icon/icon.module.js +31 -18
  223. package/esm2015/input/input-number-validators.js +48 -29
  224. package/esm2015/input/input-number.js +42 -28
  225. package/esm2015/input/input.js +94 -52
  226. package/esm2015/input/input.module.js +13 -8
  227. package/esm2015/link/link.component.js +38 -34
  228. package/esm2015/link/link.module.js +20 -11
  229. package/esm2015/list/list-selection.component.js +224 -122
  230. package/esm2015/list/list.component.js +35 -32
  231. package/esm2015/list/list.module.js +47 -25
  232. package/esm2015/modal/css-unit.pipe.js +10 -6
  233. package/esm2015/modal/modal-control.service.js +11 -8
  234. package/esm2015/modal/modal.component.js +107 -61
  235. package/esm2015/modal/modal.directive.js +43 -30
  236. package/esm2015/modal/modal.module.js +59 -31
  237. package/esm2015/modal/modal.service.js +9 -9
  238. package/esm2015/modal/ptsecurity-mosaic-modal.js +1 -3
  239. package/esm2015/navbar/navbar-item.component.js +111 -95
  240. package/esm2015/navbar/navbar.component.js +40 -30
  241. package/esm2015/navbar/navbar.module.js +66 -35
  242. package/esm2015/navbar/ptsecurity-mosaic-navbar.js +1 -2
  243. package/esm2015/navbar/vertical-navbar.component.js +68 -46
  244. package/esm2015/popover/popover-confirm.component.js +115 -0
  245. package/esm2015/popover/popover.component.js +180 -587
  246. package/esm2015/popover/popover.module.js +18 -12
  247. package/esm2015/popover/public-api.js +2 -1
  248. package/esm2015/progress-bar/progress-bar.component.js +26 -24
  249. package/esm2015/progress-bar/progress-bar.module.js +24 -15
  250. package/esm2015/progress-spinner/progress-spinner.component.js +26 -24
  251. package/esm2015/progress-spinner/progress-spinner.module.js +24 -15
  252. package/esm2015/radio/radio.component.js +87 -67
  253. package/esm2015/radio/radio.module.js +13 -8
  254. package/esm2015/select/select.component.js +181 -105
  255. package/esm2015/select/select.module.js +54 -28
  256. package/esm2015/sidebar/ptsecurity-mosaic-sidebar.js +1 -2
  257. package/esm2015/sidebar/sidebar.component.js +61 -50
  258. package/esm2015/sidebar/sidebar.module.js +25 -16
  259. package/esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js +1 -2
  260. package/esm2015/sidepanel/sidepanel-container.component.js +46 -40
  261. package/esm2015/sidepanel/sidepanel-directives.js +87 -57
  262. package/esm2015/sidepanel/sidepanel.module.js +63 -30
  263. package/esm2015/sidepanel/sidepanel.service.js +20 -12
  264. package/esm2015/splitter/splitter.component.js +62 -64
  265. package/esm2015/splitter/splitter.module.js +32 -19
  266. package/esm2015/table/table.component.js +13 -9
  267. package/esm2015/table/table.module.js +23 -12
  268. package/esm2015/tabs/paginated-tab-header.js +20 -18
  269. package/esm2015/tabs/ptsecurity-mosaic-tabs.js +1 -6
  270. package/esm2015/tabs/tab-body.component.js +52 -42
  271. package/esm2015/tabs/tab-content.directive.js +8 -8
  272. package/esm2015/tabs/tab-group.component.js +145 -74
  273. package/esm2015/tabs/tab-header.component.js +50 -36
  274. package/esm2015/tabs/tab-label-wrapper.directive.js +30 -16
  275. package/esm2015/tabs/tab-label.directive.js +11 -7
  276. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +46 -46
  277. package/esm2015/tabs/tab.component.js +67 -33
  278. package/esm2015/tabs/tabs.module.js +87 -45
  279. package/esm2015/tags/tag-input.js +48 -34
  280. package/esm2015/tags/tag-list.component.js +93 -56
  281. package/esm2015/tags/tag.component.js +90 -73
  282. package/esm2015/tags/tag.module.js +46 -29
  283. package/esm2015/textarea/textarea.component.js +70 -41
  284. package/esm2015/textarea/textarea.module.js +13 -8
  285. package/esm2015/timepicker/timepicker.directive.js +64 -52
  286. package/esm2015/timepicker/timepicker.module.js +26 -13
  287. package/esm2015/toggle/toggle.component.js +65 -47
  288. package/esm2015/toggle/toggle.module.js +13 -8
  289. package/esm2015/tooltip/tooltip.animations.js +19 -0
  290. package/esm2015/tooltip/tooltip.component.js +239 -555
  291. package/esm2015/tooltip/tooltip.module.js +38 -11
  292. package/esm2015/tree/control/base-tree-control.js +60 -0
  293. package/esm2015/tree/control/flat-tree-control.js +123 -0
  294. package/esm2015/tree/control/nested-tree-control.js +41 -0
  295. package/esm2015/tree/control/tree-control.js +2 -0
  296. package/esm2015/tree/data-source/flat-data-source.js +1 -1
  297. package/esm2015/tree/node.js +31 -0
  298. package/esm2015/tree/outlet.js +15 -0
  299. package/esm2015/tree/padding.directive.js +98 -25
  300. package/esm2015/tree/public-api.js +9 -2
  301. package/esm2015/tree/toggle.js +65 -70
  302. package/esm2015/tree/tree-base.js +243 -0
  303. package/esm2015/tree/tree-errors.js +36 -0
  304. package/esm2015/tree/tree-option.component.js +102 -56
  305. package/esm2015/tree/tree-selection.component.js +180 -115
  306. package/esm2015/tree/tree.js +23 -0
  307. package/esm2015/tree/tree.module.js +38 -12
  308. package/esm2015/tree-select/tree-select.component.js +153 -85
  309. package/esm2015/tree-select/tree-select.module.js +33 -18
  310. package/fesm2015/ptsecurity-mosaic-autocomplete.js +140 -102
  311. package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +1 -1
  312. package/fesm2015/ptsecurity-mosaic-button-toggle.js +87 -63
  313. package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +1 -1
  314. package/fesm2015/ptsecurity-mosaic-button.js +86 -76
  315. package/fesm2015/ptsecurity-mosaic-button.js.map +1 -1
  316. package/fesm2015/ptsecurity-mosaic-card.js +54 -42
  317. package/fesm2015/ptsecurity-mosaic-card.js.map +1 -1
  318. package/fesm2015/ptsecurity-mosaic-checkbox.js +82 -59
  319. package/fesm2015/ptsecurity-mosaic-checkbox.js.map +1 -1
  320. package/fesm2015/ptsecurity-mosaic-core.js +758 -239
  321. package/fesm2015/ptsecurity-mosaic-core.js.map +1 -1
  322. package/fesm2015/ptsecurity-mosaic-datepicker.js +544 -376
  323. package/fesm2015/ptsecurity-mosaic-datepicker.js.map +1 -1
  324. package/fesm2015/ptsecurity-mosaic-design-tokens.js +57 -16
  325. package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +1 -1
  326. package/fesm2015/ptsecurity-mosaic-divider.js +34 -26
  327. package/fesm2015/ptsecurity-mosaic-divider.js.map +1 -1
  328. package/fesm2015/ptsecurity-mosaic-dropdown.js +219 -171
  329. package/fesm2015/ptsecurity-mosaic-dropdown.js.map +1 -1
  330. package/fesm2015/ptsecurity-mosaic-form-field.js +184 -119
  331. package/fesm2015/ptsecurity-mosaic-form-field.js.map +1 -1
  332. package/fesm2015/ptsecurity-mosaic-icon.js +56 -39
  333. package/fesm2015/ptsecurity-mosaic-icon.js.map +1 -1
  334. package/fesm2015/ptsecurity-mosaic-input.js +191 -116
  335. package/fesm2015/ptsecurity-mosaic-input.js.map +1 -1
  336. package/fesm2015/ptsecurity-mosaic-link.js +57 -45
  337. package/fesm2015/ptsecurity-mosaic-link.js.map +1 -1
  338. package/fesm2015/ptsecurity-mosaic-list.js +301 -177
  339. package/fesm2015/ptsecurity-mosaic-list.js.map +1 -1
  340. package/fesm2015/ptsecurity-mosaic-modal.js +243 -159
  341. package/fesm2015/ptsecurity-mosaic-modal.js.map +1 -1
  342. package/fesm2015/ptsecurity-mosaic-navbar.js +280 -205
  343. package/fesm2015/ptsecurity-mosaic-navbar.js.map +1 -1
  344. package/fesm2015/ptsecurity-mosaic-popover.js +297 -597
  345. package/fesm2015/ptsecurity-mosaic-popover.js.map +1 -1
  346. package/fesm2015/ptsecurity-mosaic-progress-bar.js +48 -38
  347. package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +1 -1
  348. package/fesm2015/ptsecurity-mosaic-progress-spinner.js +48 -38
  349. package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +1 -1
  350. package/fesm2015/ptsecurity-mosaic-radio.js +99 -76
  351. package/fesm2015/ptsecurity-mosaic-radio.js.map +1 -1
  352. package/fesm2015/ptsecurity-mosaic-select.js +236 -136
  353. package/fesm2015/ptsecurity-mosaic-select.js.map +1 -1
  354. package/fesm2015/ptsecurity-mosaic-sidebar.js +85 -66
  355. package/fesm2015/ptsecurity-mosaic-sidebar.js.map +1 -1
  356. package/fesm2015/ptsecurity-mosaic-sidepanel.js +207 -139
  357. package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +1 -1
  358. package/fesm2015/ptsecurity-mosaic-splitter.js +92 -82
  359. package/fesm2015/ptsecurity-mosaic-splitter.js.map +1 -1
  360. package/fesm2015/ptsecurity-mosaic-table.js +33 -19
  361. package/fesm2015/ptsecurity-mosaic-table.js.map +1 -1
  362. package/fesm2015/ptsecurity-mosaic-tabs.js +557 -387
  363. package/fesm2015/ptsecurity-mosaic-tabs.js.map +1 -1
  364. package/fesm2015/ptsecurity-mosaic-tags.js +273 -192
  365. package/fesm2015/ptsecurity-mosaic-tags.js.map +1 -1
  366. package/fesm2015/ptsecurity-mosaic-textarea.js +83 -50
  367. package/fesm2015/ptsecurity-mosaic-textarea.js.map +1 -1
  368. package/fesm2015/ptsecurity-mosaic-timepicker.js +87 -64
  369. package/fesm2015/ptsecurity-mosaic-timepicker.js.map +1 -1
  370. package/fesm2015/ptsecurity-mosaic-toggle.js +77 -55
  371. package/fesm2015/ptsecurity-mosaic-toggle.js.map +1 -1
  372. package/fesm2015/ptsecurity-mosaic-tooltip.js +293 -566
  373. package/fesm2015/ptsecurity-mosaic-tooltip.js.map +1 -1
  374. package/fesm2015/ptsecurity-mosaic-tree-select.js +188 -106
  375. package/fesm2015/ptsecurity-mosaic-tree-select.js.map +1 -1
  376. package/fesm2015/ptsecurity-mosaic-tree.js +1001 -279
  377. package/fesm2015/ptsecurity-mosaic-tree.js.map +1 -1
  378. package/form-field/cleaner.d.ts +5 -0
  379. package/form-field/form-field.d.ts +5 -0
  380. package/form-field/form-field.module.d.ts +12 -0
  381. package/form-field/hint.d.ts +3 -0
  382. package/form-field/package.json +0 -1
  383. package/form-field/prefix.d.ts +3 -0
  384. package/form-field/ptsecurity-mosaic-form-field.d.ts +1 -0
  385. package/form-field/stepper.d.ts +3 -0
  386. package/form-field/suffix.d.ts +3 -0
  387. package/icon/icon.component.d.ts +5 -0
  388. package/icon/icon.module.d.ts +8 -0
  389. package/icon/package.json +0 -1
  390. package/icon/ptsecurity-mosaic-icon.d.ts +1 -0
  391. package/input/input-number-validators.d.ts +7 -2
  392. package/input/input-number.d.ts +3 -0
  393. package/input/input.d.ts +5 -0
  394. package/input/input.module.d.ts +11 -0
  395. package/input/package.json +0 -1
  396. package/input/ptsecurity-mosaic-input.d.ts +1 -0
  397. package/link/link.component.d.ts +3 -0
  398. package/link/link.module.d.ts +7 -0
  399. package/link/package.json +0 -1
  400. package/link/ptsecurity-mosaic-link.d.ts +1 -0
  401. package/list/list-selection.component.d.ts +30 -3
  402. package/list/list.component.d.ts +5 -0
  403. package/list/list.module.d.ts +9 -0
  404. package/list/package.json +0 -1
  405. package/list/ptsecurity-mosaic-list.d.ts +1 -0
  406. package/modal/css-unit.pipe.d.ts +3 -0
  407. package/modal/modal-control.service.d.ts +3 -0
  408. package/modal/modal.component.d.ts +5 -0
  409. package/modal/modal.directive.d.ts +9 -0
  410. package/modal/modal.module.d.ts +12 -0
  411. package/modal/modal.service.d.ts +3 -0
  412. package/modal/package.json +0 -1
  413. package/modal/ptsecurity-mosaic-modal.d.ts +1 -2
  414. package/navbar/navbar-item.component.d.ts +13 -0
  415. package/navbar/navbar.component.d.ts +5 -0
  416. package/navbar/navbar.module.d.ts +11 -0
  417. package/navbar/package.json +0 -1
  418. package/navbar/ptsecurity-mosaic-navbar.d.ts +1 -1
  419. package/navbar/vertical-navbar.component.d.ts +5 -0
  420. package/package.json +8 -9
  421. package/popover/package.json +0 -1
  422. package/popover/popover-confirm.component.d.ts +33 -0
  423. package/popover/popover.component.d.ts +50 -136
  424. package/popover/popover.module.d.ts +9 -0
  425. package/popover/ptsecurity-mosaic-popover.d.ts +1 -0
  426. package/popover/public-api.d.ts +1 -0
  427. package/prebuilt-themes/dark-theme.css +1 -1
  428. package/prebuilt-themes/default-theme.css +1 -1
  429. package/prebuilt-visual/default-visual.css +1 -0
  430. package/progress-bar/package.json +0 -1
  431. package/progress-bar/progress-bar.component.d.ts +3 -0
  432. package/progress-bar/progress-bar.module.d.ts +7 -0
  433. package/progress-bar/ptsecurity-mosaic-progress-bar.d.ts +1 -0
  434. package/progress-spinner/package.json +0 -1
  435. package/progress-spinner/progress-spinner.component.d.ts +3 -0
  436. package/progress-spinner/progress-spinner.module.d.ts +7 -0
  437. package/progress-spinner/ptsecurity-mosaic-progress-spinner.d.ts +1 -0
  438. package/ptsecurity-mosaic.d.ts +1 -0
  439. package/radio/package.json +0 -1
  440. package/radio/ptsecurity-mosaic-radio.d.ts +1 -0
  441. package/radio/radio.component.d.ts +5 -0
  442. package/radio/radio.module.d.ts +8 -0
  443. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +6 -3
  444. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
  445. package/select/package.json +0 -1
  446. package/select/ptsecurity-mosaic-select.d.ts +1 -0
  447. package/select/select.component.d.ts +11 -7
  448. package/select/select.module.d.ts +11 -0
  449. package/sidebar/package.json +0 -1
  450. package/sidebar/ptsecurity-mosaic-sidebar.d.ts +1 -1
  451. package/sidebar/sidebar.component.d.ts +7 -0
  452. package/sidebar/sidebar.module.d.ts +6 -0
  453. package/sidepanel/package.json +0 -1
  454. package/sidepanel/ptsecurity-mosaic-sidepanel.d.ts +1 -1
  455. package/sidepanel/sidepanel-container.component.d.ts +3 -0
  456. package/sidepanel/sidepanel-directives.d.ts +13 -0
  457. package/sidepanel/sidepanel.module.d.ts +13 -0
  458. package/sidepanel/sidepanel.service.d.ts +3 -0
  459. package/splitter/package.json +0 -1
  460. package/splitter/ptsecurity-mosaic-splitter.d.ts +1 -0
  461. package/splitter/splitter.component.d.ts +7 -0
  462. package/splitter/splitter.module.d.ts +7 -0
  463. package/table/package.json +0 -1
  464. package/table/ptsecurity-mosaic-table.d.ts +1 -0
  465. package/table/table.component.d.ts +3 -0
  466. package/table/table.module.d.ts +8 -0
  467. package/tabs/package.json +0 -1
  468. package/tabs/paginated-tab-header.d.ts +3 -0
  469. package/tabs/ptsecurity-mosaic-tabs.d.ts +1 -5
  470. package/tabs/tab-body.component.d.ts +5 -0
  471. package/tabs/tab-content.directive.d.ts +3 -0
  472. package/tabs/tab-group.component.d.ts +24 -4
  473. package/tabs/tab-header.component.d.ts +3 -0
  474. package/tabs/tab-label-wrapper.directive.d.ts +9 -0
  475. package/tabs/tab-label.directive.d.ts +3 -0
  476. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +5 -0
  477. package/tabs/tab.component.d.ts +12 -3
  478. package/tabs/tabs.module.d.ts +18 -0
  479. package/tags/package.json +0 -1
  480. package/tags/ptsecurity-mosaic-tags.d.ts +1 -0
  481. package/tags/tag-input.d.ts +3 -0
  482. package/tags/tag-list.component.d.ts +3 -0
  483. package/tags/tag.component.d.ts +9 -0
  484. package/tags/tag.module.d.ts +9 -0
  485. package/textarea/package.json +0 -1
  486. package/textarea/ptsecurity-mosaic-textarea.d.ts +1 -0
  487. package/textarea/textarea.component.d.ts +3 -0
  488. package/textarea/textarea.module.d.ts +9 -0
  489. package/timepicker/package.json +0 -1
  490. package/timepicker/ptsecurity-mosaic-timepicker.d.ts +1 -0
  491. package/timepicker/timepicker.directive.d.ts +5 -2
  492. package/timepicker/timepicker.module.d.ts +9 -0
  493. package/toggle/package.json +0 -1
  494. package/toggle/ptsecurity-mosaic-toggle.d.ts +1 -0
  495. package/toggle/toggle.component.d.ts +3 -0
  496. package/toggle/toggle.module.d.ts +8 -0
  497. package/tooltip/package.json +0 -1
  498. package/tooltip/ptsecurity-mosaic-tooltip.d.ts +1 -0
  499. package/tooltip/tooltip.animations.d.ts +8 -0
  500. package/tooltip/tooltip.component.d.ts +74 -134
  501. package/tooltip/tooltip.module.d.ts +7 -0
  502. package/tree/control/base-tree-control.d.ts +40 -0
  503. package/tree/control/flat-tree-control.d.ts +48 -0
  504. package/tree/control/nested-tree-control.d.ts +19 -0
  505. package/tree/control/tree-control.d.ts +44 -0
  506. package/tree/data-source/flat-data-source.d.ts +2 -1
  507. package/tree/node.d.ts +34 -0
  508. package/tree/outlet.d.ts +9 -0
  509. package/tree/package.json +0 -1
  510. package/tree/padding.directive.d.ts +36 -5
  511. package/tree/ptsecurity-mosaic-tree.d.ts +1 -0
  512. package/tree/public-api.d.ts +8 -1
  513. package/tree/toggle.d.ts +20 -15
  514. package/tree/tree-base.d.ts +97 -0
  515. package/tree/tree-errors.d.ts +25 -0
  516. package/tree/tree-option.component.d.ts +15 -4
  517. package/tree/tree-selection.component.d.ts +46 -24
  518. package/tree/tree.d.ts +6 -0
  519. package/tree/tree.module.d.ts +14 -0
  520. package/tree-select/package.json +0 -1
  521. package/tree-select/ptsecurity-mosaic-tree-select.d.ts +1 -0
  522. package/tree-select/tree-select.component.d.ts +8 -8
  523. package/tree-select/tree-select.module.d.ts +11 -0
  524. package/autocomplete/ptsecurity-mosaic-autocomplete.metadata.json +0 -1
  525. package/bundles/ptsecurity-mosaic-autocomplete.umd.min.js +0 -2
  526. package/bundles/ptsecurity-mosaic-autocomplete.umd.min.js.map +0 -1
  527. package/bundles/ptsecurity-mosaic-button-toggle.umd.min.js +0 -16
  528. package/bundles/ptsecurity-mosaic-button-toggle.umd.min.js.map +0 -1
  529. package/bundles/ptsecurity-mosaic-button.umd.min.js +0 -16
  530. package/bundles/ptsecurity-mosaic-button.umd.min.js.map +0 -1
  531. package/bundles/ptsecurity-mosaic-card.umd.min.js +0 -16
  532. package/bundles/ptsecurity-mosaic-card.umd.min.js.map +0 -1
  533. package/bundles/ptsecurity-mosaic-checkbox.umd.min.js +0 -16
  534. package/bundles/ptsecurity-mosaic-checkbox.umd.min.js.map +0 -1
  535. package/bundles/ptsecurity-mosaic-core.umd.min.js +0 -17
  536. package/bundles/ptsecurity-mosaic-core.umd.min.js.map +0 -1
  537. package/bundles/ptsecurity-mosaic-datepicker.umd.min.js +0 -2
  538. package/bundles/ptsecurity-mosaic-datepicker.umd.min.js.map +0 -1
  539. package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js +0 -2
  540. package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js.map +0 -1
  541. package/bundles/ptsecurity-mosaic-divider.umd.min.js +0 -2
  542. package/bundles/ptsecurity-mosaic-divider.umd.min.js.map +0 -1
  543. package/bundles/ptsecurity-mosaic-dropdown.umd.min.js +0 -17
  544. package/bundles/ptsecurity-mosaic-dropdown.umd.min.js.map +0 -1
  545. package/bundles/ptsecurity-mosaic-form-field.umd.min.js +0 -17
  546. package/bundles/ptsecurity-mosaic-form-field.umd.min.js.map +0 -1
  547. package/bundles/ptsecurity-mosaic-icon.umd.min.js +0 -16
  548. package/bundles/ptsecurity-mosaic-icon.umd.min.js.map +0 -1
  549. package/bundles/ptsecurity-mosaic-input.umd.min.js +0 -16
  550. package/bundles/ptsecurity-mosaic-input.umd.min.js.map +0 -1
  551. package/bundles/ptsecurity-mosaic-link.umd.min.js +0 -16
  552. package/bundles/ptsecurity-mosaic-link.umd.min.js.map +0 -1
  553. package/bundles/ptsecurity-mosaic-list.umd.min.js +0 -16
  554. package/bundles/ptsecurity-mosaic-list.umd.min.js.map +0 -1
  555. package/bundles/ptsecurity-mosaic-modal.umd.min.js +0 -16
  556. package/bundles/ptsecurity-mosaic-modal.umd.min.js.map +0 -1
  557. package/bundles/ptsecurity-mosaic-navbar.umd.min.js +0 -16
  558. package/bundles/ptsecurity-mosaic-navbar.umd.min.js.map +0 -1
  559. package/bundles/ptsecurity-mosaic-popover.umd.min.js +0 -16
  560. package/bundles/ptsecurity-mosaic-popover.umd.min.js.map +0 -1
  561. package/bundles/ptsecurity-mosaic-progress-bar.umd.min.js +0 -16
  562. package/bundles/ptsecurity-mosaic-progress-bar.umd.min.js.map +0 -1
  563. package/bundles/ptsecurity-mosaic-progress-spinner.umd.min.js +0 -16
  564. package/bundles/ptsecurity-mosaic-progress-spinner.umd.min.js.map +0 -1
  565. package/bundles/ptsecurity-mosaic-radio.umd.min.js +0 -16
  566. package/bundles/ptsecurity-mosaic-radio.umd.min.js.map +0 -1
  567. package/bundles/ptsecurity-mosaic-select.umd.min.js +0 -16
  568. package/bundles/ptsecurity-mosaic-select.umd.min.js.map +0 -1
  569. package/bundles/ptsecurity-mosaic-sidebar.umd.min.js +0 -2
  570. package/bundles/ptsecurity-mosaic-sidebar.umd.min.js.map +0 -1
  571. package/bundles/ptsecurity-mosaic-sidepanel.umd.min.js +0 -2
  572. package/bundles/ptsecurity-mosaic-sidepanel.umd.min.js.map +0 -1
  573. package/bundles/ptsecurity-mosaic-splitter.umd.min.js +0 -2
  574. package/bundles/ptsecurity-mosaic-splitter.umd.min.js.map +0 -1
  575. package/bundles/ptsecurity-mosaic-table.umd.min.js +0 -2
  576. package/bundles/ptsecurity-mosaic-table.umd.min.js.map +0 -1
  577. package/bundles/ptsecurity-mosaic-tabs.umd.min.js +0 -16
  578. package/bundles/ptsecurity-mosaic-tabs.umd.min.js.map +0 -1
  579. package/bundles/ptsecurity-mosaic-tags.umd.min.js +0 -16
  580. package/bundles/ptsecurity-mosaic-tags.umd.min.js.map +0 -1
  581. package/bundles/ptsecurity-mosaic-textarea.umd.min.js +0 -16
  582. package/bundles/ptsecurity-mosaic-textarea.umd.min.js.map +0 -1
  583. package/bundles/ptsecurity-mosaic-timepicker.umd.min.js +0 -2
  584. package/bundles/ptsecurity-mosaic-timepicker.umd.min.js.map +0 -1
  585. package/bundles/ptsecurity-mosaic-toggle.umd.min.js +0 -16
  586. package/bundles/ptsecurity-mosaic-toggle.umd.min.js.map +0 -1
  587. package/bundles/ptsecurity-mosaic-tooltip.umd.min.js +0 -16
  588. package/bundles/ptsecurity-mosaic-tooltip.umd.min.js.map +0 -1
  589. package/bundles/ptsecurity-mosaic-tree-select.umd.min.js +0 -16
  590. package/bundles/ptsecurity-mosaic-tree-select.umd.min.js.map +0 -1
  591. package/bundles/ptsecurity-mosaic-tree.umd.min.js +0 -16
  592. package/bundles/ptsecurity-mosaic-tree.umd.min.js.map +0 -1
  593. package/bundles/ptsecurity-mosaic.umd.min.js +0 -2
  594. package/bundles/ptsecurity-mosaic.umd.min.js.map +0 -1
  595. package/button/ptsecurity-mosaic-button.metadata.json +0 -1
  596. package/button-toggle/ptsecurity-mosaic-button-toggle.metadata.json +0 -1
  597. package/card/ptsecurity-mosaic-card.metadata.json +0 -1
  598. package/checkbox/ptsecurity-mosaic-checkbox.metadata.json +0 -1
  599. package/core/ptsecurity-mosaic-core.metadata.json +0 -1
  600. package/datepicker/ptsecurity-mosaic-datepicker.metadata.json +0 -1
  601. package/design-tokens/ptsecurity-mosaic-design-tokens.metadata.json +0 -1
  602. package/divider/ptsecurity-mosaic-divider.metadata.json +0 -1
  603. package/dropdown/ptsecurity-mosaic-dropdown.metadata.json +0 -1
  604. package/esm2015/tree/node.directive.js +0 -15
  605. package/form-field/ptsecurity-mosaic-form-field.metadata.json +0 -1
  606. package/icon/ptsecurity-mosaic-icon.metadata.json +0 -1
  607. package/input/ptsecurity-mosaic-input.metadata.json +0 -1
  608. package/link/ptsecurity-mosaic-link.metadata.json +0 -1
  609. package/list/ptsecurity-mosaic-list.metadata.json +0 -1
  610. package/modal/ptsecurity-mosaic-modal.metadata.json +0 -1
  611. package/navbar/ptsecurity-mosaic-navbar.metadata.json +0 -1
  612. package/popover/ptsecurity-mosaic-popover.metadata.json +0 -1
  613. package/progress-bar/ptsecurity-mosaic-progress-bar.metadata.json +0 -1
  614. package/progress-spinner/ptsecurity-mosaic-progress-spinner.metadata.json +0 -1
  615. package/ptsecurity-mosaic.metadata.json +0 -1
  616. package/radio/ptsecurity-mosaic-radio.metadata.json +0 -1
  617. package/select/ptsecurity-mosaic-select.metadata.json +0 -1
  618. package/sidebar/ptsecurity-mosaic-sidebar.metadata.json +0 -1
  619. package/sidepanel/ptsecurity-mosaic-sidepanel.metadata.json +0 -1
  620. package/splitter/ptsecurity-mosaic-splitter.metadata.json +0 -1
  621. package/table/ptsecurity-mosaic-table.metadata.json +0 -1
  622. package/tabs/ptsecurity-mosaic-tabs.metadata.json +0 -1
  623. package/tags/ptsecurity-mosaic-tags.metadata.json +0 -1
  624. package/textarea/ptsecurity-mosaic-textarea.metadata.json +0 -1
  625. package/timepicker/ptsecurity-mosaic-timepicker.metadata.json +0 -1
  626. package/toggle/ptsecurity-mosaic-toggle.metadata.json +0 -1
  627. package/tooltip/ptsecurity-mosaic-tooltip.metadata.json +0 -1
  628. package/tree/node.directive.d.ts +0 -4
  629. package/tree/ptsecurity-mosaic-tree.metadata.json +0 -1
  630. package/tree-select/ptsecurity-mosaic-tree-select.metadata.json +0 -1
@@ -1,8 +1,10 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/bidi'), require('@angular/core'), require('@angular/cdk/coercion'), require('rxjs'), require('@ptsecurity/cdk/datetime'), require('messageformat'), require('@angular/forms'), require('@angular/common'), require('@angular/cdk/overlay'), require('@angular/animations'), require('@ptsecurity/cdk/keycodes')) :
3
- typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/core', ['exports', '@angular/cdk/bidi', '@angular/core', '@angular/cdk/coercion', 'rxjs', '@ptsecurity/cdk/datetime', 'messageformat', '@angular/forms', '@angular/common', '@angular/cdk/overlay', '@angular/animations', '@ptsecurity/cdk/keycodes'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic.core = {}), global.ng.cdk.bidi, global.ng.core, global.ng.cdk.coercion, global.rxjs, global.mc.cdk.datetime, global.messageformat, global.ng.forms, global.ng.common, global.ng.cdk.overlay, global.ng.animations, global.mc.cdk.keycodes));
5
- }(this, (function (exports, bidi, i0, coercion, rxjs, datetime, MessageFormat, forms, i1, overlay, animations, keycodes) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/bidi'), require('@angular/core'), require('@angular/cdk/coercion'), require('rxjs'), require('@messageformat/core'), require('@ptsecurity/cdk/datetime'), require('@angular/forms'), require('@angular/common'), require('@angular/cdk/overlay'), require('@angular/animations'), require('@ptsecurity/cdk/keycodes'), require('rxjs/operators'), require('@angular/cdk/a11y'), require('@angular/cdk/portal')) :
3
+ typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/core', ['exports', '@angular/cdk/bidi', '@angular/core', '@angular/cdk/coercion', 'rxjs', '@messageformat/core', '@ptsecurity/cdk/datetime', '@angular/forms', '@angular/common', '@angular/cdk/overlay', '@angular/animations', '@ptsecurity/cdk/keycodes', 'rxjs/operators', '@angular/cdk/a11y', '@angular/cdk/portal'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic.core = {}), global.ng.cdk.bidi, global.ng.core, global.ng.cdk.coercion, global.rxjs, global["@messageformat/core"], global.mc.cdk.datetime, global.ng.forms, global.ng.common, global.ng.cdk.overlay, global.ng.animations, global.mc.cdk.keycodes, global.rxjs.operators, global.ng.cdk.a11y, global.ng.cdk.portal));
5
+ })(this, (function (exports, i2, i0, coercion, rxjs, MessageFormat, i1, forms, i2$1, i1$1, animations, keycodes, operators, i1$2, portal) { 'use strict';
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
8
 
7
9
  function _interopNamespace(e) {
8
10
  if (e && e.__esModule) return e;
@@ -13,20 +15,22 @@
13
15
  var d = Object.getOwnPropertyDescriptor(e, k);
14
16
  Object.defineProperty(n, k, d.get ? d : {
15
17
  enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
18
+ get: function () { return e[k]; }
19
19
  });
20
20
  }
21
21
  });
22
22
  }
23
- n['default'] = e;
23
+ n["default"] = e;
24
24
  return Object.freeze(n);
25
25
  }
26
26
 
27
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
27
28
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var MessageFormat__namespace = /*#__PURE__*/_interopNamespace(MessageFormat);
29
+ var MessageFormat__default = /*#__PURE__*/_interopDefaultLegacy(MessageFormat);
29
30
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
31
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2$1);
32
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$1);
33
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
30
34
 
31
35
  function isBoolean(val) { return typeof val === 'boolean'; }
32
36
  function toBoolean(value) {
@@ -98,16 +102,23 @@
98
102
  };
99
103
  return McCommonModule;
100
104
  }());
101
- McCommonModule.decorators = [
102
- { type: i0.NgModule, args: [{
103
- imports: [bidi.BidiModule],
104
- exports: [bidi.BidiModule]
105
- },] }
106
- ];
107
- /** @nocollapse */
108
- McCommonModule.ctorParameters = function () { return [
109
- { type: Boolean, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MC_SANITY_CHECKS,] }] }
110
- ]; };
105
+ /** @nocollapse */ McCommonModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCommonModule, deps: [{ token: MC_SANITY_CHECKS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
106
+ /** @nocollapse */ McCommonModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCommonModule, imports: [i2.BidiModule], exports: [i2.BidiModule] });
107
+ /** @nocollapse */ McCommonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCommonModule, imports: [[i2.BidiModule], i2.BidiModule] });
108
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCommonModule, decorators: [{
109
+ type: i0.NgModule,
110
+ args: [{
111
+ imports: [i2.BidiModule],
112
+ exports: [i2.BidiModule]
113
+ }]
114
+ }], ctorParameters: function () {
115
+ return [{ type: undefined, decorators: [{
116
+ type: i0.Optional
117
+ }, {
118
+ type: i0.Inject,
119
+ args: [MC_SANITY_CHECKS]
120
+ }] }];
121
+ } });
111
122
 
112
123
  /*! *****************************************************************************
113
124
  Copyright (c) Microsoft Corporation.
@@ -435,7 +446,7 @@
435
446
  for (var _i = 0; _i < arguments.length; _i++) {
436
447
  args[_i] = arguments[_i];
437
448
  }
438
- var _this = _super.apply(this, __spread(args)) || this;
449
+ var _this = _super.apply(this, __spreadArray([], __read(args))) || this;
439
450
  _this._disabled = false;
440
451
  return _this;
441
452
  }
@@ -461,7 +472,6 @@
461
472
  ThemePalette["Default"] = "second";
462
473
  ThemePalette["Empty"] = "";
463
474
  })(exports.ThemePalette || (exports.ThemePalette = {}));
464
- /** Mixin to augment a directive with a `color` property. */
465
475
  function mixinColor(base, defaultColor) {
466
476
  if (defaultColor === void 0) { defaultColor = exports.ThemePalette.Default; }
467
477
  return /** @class */ (function (_super) {
@@ -471,14 +481,12 @@
471
481
  for (var _i = 0; _i < arguments.length; _i++) {
472
482
  args[_i] = arguments[_i];
473
483
  }
474
- var _this = _super.apply(this, __spread(args)) || this;
484
+ var _this = _super.apply(this, __spreadArray([], __read(args))) || this;
475
485
  _this.color = defaultColor;
476
486
  return _this;
477
487
  }
478
488
  Object.defineProperty(class_1.prototype, "color", {
479
- get: function () {
480
- return this._color;
481
- },
489
+ get: function () { return this._color; },
482
490
  set: function (value) {
483
491
  var colorPalette = value || defaultColor;
484
492
  if (colorPalette !== this._color) {
@@ -498,26 +506,21 @@
498
506
  }(base));
499
507
  }
500
508
 
501
- // Mixin to augment a directive with a `tabIndex` property.
502
509
  function mixinTabIndex(base, defaultTabIndex) {
503
510
  if (defaultTabIndex === void 0) { defaultTabIndex = 0; }
504
- // Note: We cast `base` to `unknown` and then `Constructor`. It could be an abstract class,
505
- // but given we `extend` it from another class, we can assume a constructor being accessible.
506
- // tslint:disable-next-line:naming-convention
507
- var Mixin = /** @class */ (function (_super) {
508
- __extends(Mixin, _super);
509
- function Mixin() {
511
+ return /** @class */ (function (_super) {
512
+ __extends(class_1, _super);
513
+ function class_1() {
510
514
  var args = [];
511
515
  for (var _i = 0; _i < arguments.length; _i++) {
512
516
  args[_i] = arguments[_i];
513
517
  }
514
- var _this = _super.apply(this, __spread(args)) || this;
515
- // tslint:disable-next-line:orthodox-getter-and-setter
516
- _this._tabIndex = defaultTabIndex;
518
+ var _this = _super.apply(this, __spreadArray([], __read(args))) || this;
517
519
  _this.defaultTabIndex = defaultTabIndex;
520
+ _this._tabIndex = defaultTabIndex;
518
521
  return _this;
519
522
  }
520
- Object.defineProperty(Mixin.prototype, "tabIndex", {
523
+ Object.defineProperty(class_1.prototype, "tabIndex", {
521
524
  get: function () {
522
525
  return this.disabled ? -1 : this._tabIndex;
523
526
  },
@@ -528,12 +531,8 @@
528
531
  enumerable: false,
529
532
  configurable: true
530
533
  });
531
- return Mixin;
534
+ return class_1;
532
535
  }(base));
533
- // Since we don't directly extend from `base` with it's original types, and we instruct
534
- // TypeScript that `T` actually is instantiatable through `new`, the types don't overlap.
535
- // This is a limitation in TS as abstract classes cannot be typed properly dynamically.
536
- return Mixin;
537
536
  }
538
537
 
539
538
  /**
@@ -548,7 +547,7 @@
548
547
  for (var _i = 0; _i < arguments.length; _i++) {
549
548
  args[_i] = arguments[_i];
550
549
  }
551
- var _this = _super.apply(this, __spread(args)) || this;
550
+ var _this = _super.apply(this, __spreadArray([], __read(args))) || this;
552
551
  /** Whether the component is in an error state. */
553
552
  _this.errorState = false;
554
553
  /**
@@ -583,12 +582,15 @@
583
582
  }
584
583
  return McLine;
585
584
  }());
586
- McLine.decorators = [
587
- { type: i0.Directive, args: [{
588
- selector: '[mc-line], [mcLine]',
589
- host: { class: 'mc-line' }
590
- },] }
591
- ];
585
+ /** @nocollapse */ McLine.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLine, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
586
+ /** @nocollapse */ McLine.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McLine, selector: "[mc-line], [mcLine]", host: { classAttribute: "mc-line" }, ngImport: i0__namespace });
587
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLine, decorators: [{
588
+ type: i0.Directive,
589
+ args: [{
590
+ selector: '[mc-line], [mcLine]',
591
+ host: { class: 'mc-line' }
592
+ }]
593
+ }] });
592
594
  /**
593
595
  * Helper that takes a query list of lines and sets the correct class on the host.
594
596
  * @docs-private
@@ -634,13 +636,17 @@
634
636
  }
635
637
  return McLineModule;
636
638
  }());
637
- McLineModule.decorators = [
638
- { type: i0.NgModule, args: [{
639
- imports: [],
640
- exports: [McLine],
641
- declarations: [McLine]
642
- },] }
643
- ];
639
+ /** @nocollapse */ McLineModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLineModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
640
+ /** @nocollapse */ McLineModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLineModule, declarations: [McLine], exports: [McLine] });
641
+ /** @nocollapse */ McLineModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLineModule, imports: [[]] });
642
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McLineModule, decorators: [{
643
+ type: i0.NgModule,
644
+ args: [{
645
+ imports: [],
646
+ exports: [McLine],
647
+ declarations: [McLine]
648
+ }]
649
+ }] });
644
650
 
645
651
  /** Error state matcher that matches when a control is invalid and dirty. */
646
652
  var ShowOnDirtyErrorStateMatcher = /** @class */ (function () {
@@ -651,9 +657,11 @@
651
657
  };
652
658
  return ShowOnDirtyErrorStateMatcher;
653
659
  }());
654
- ShowOnDirtyErrorStateMatcher.decorators = [
655
- { type: i0.Injectable }
656
- ];
660
+ /** @nocollapse */ ShowOnDirtyErrorStateMatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ShowOnDirtyErrorStateMatcher, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
661
+ /** @nocollapse */ ShowOnDirtyErrorStateMatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ShowOnDirtyErrorStateMatcher });
662
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ShowOnDirtyErrorStateMatcher, decorators: [{
663
+ type: i0.Injectable
664
+ }] });
657
665
  /** Provider that defines how form controls behave with regards to displaying error messages. */
658
666
  var ErrorStateMatcher = /** @class */ (function () {
659
667
  function ErrorStateMatcher() {
@@ -663,10 +671,12 @@
663
671
  };
664
672
  return ErrorStateMatcher;
665
673
  }());
666
- /** @nocollapse */ ErrorStateMatcher.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ErrorStateMatcher_Factory() { return new ErrorStateMatcher(); }, token: ErrorStateMatcher, providedIn: "root" });
667
- ErrorStateMatcher.decorators = [
668
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
669
- ];
674
+ /** @nocollapse */ ErrorStateMatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ErrorStateMatcher, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
675
+ /** @nocollapse */ ErrorStateMatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ErrorStateMatcher, providedIn: 'root' });
676
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ErrorStateMatcher, decorators: [{
677
+ type: i0.Injectable,
678
+ args: [{ providedIn: 'root' }]
679
+ }] });
670
680
 
671
681
  var enUS = {
672
682
  relativeTemplates: {
@@ -824,7 +834,7 @@
824
834
  this.adapter = adapter;
825
835
  this.invalidDateErrorText = 'Invalid date';
826
836
  this.config = locale === 'en' ? enUS : ruRU;
827
- this.messageFormat = new MessageFormat__namespace(locale);
837
+ this.messageFormat = new MessageFormat__default["default"](locale);
828
838
  }
829
839
  DateFormatter.prototype.setLocale = function (locale) {
830
840
  this.config = locale === 'en' ? enUS : ruRU;
@@ -1092,14 +1102,16 @@
1092
1102
  };
1093
1103
  return DateFormatter;
1094
1104
  }());
1095
- DateFormatter.decorators = [
1096
- { type: i0.Injectable }
1097
- ];
1098
- /** @nocollapse */
1099
- DateFormatter.ctorParameters = function () { return [
1100
- { type: datetime.DateAdapter },
1101
- { type: String, decorators: [{ type: i0.Inject, args: [datetime.MC_DATE_LOCALE,] }] }
1102
- ]; };
1105
+ /** @nocollapse */ DateFormatter.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DateFormatter, deps: [{ token: i1__namespace.DateAdapter }, { token: i1.MC_DATE_LOCALE }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1106
+ /** @nocollapse */ DateFormatter.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DateFormatter });
1107
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DateFormatter, decorators: [{
1108
+ type: i0.Injectable
1109
+ }], ctorParameters: function () {
1110
+ return [{ type: i1__namespace.DateAdapter }, { type: undefined, decorators: [{
1111
+ type: i0.Inject,
1112
+ args: [i1.MC_DATE_LOCALE]
1113
+ }] }];
1114
+ } });
1103
1115
 
1104
1116
  /* tslint:disable:naming-convention */
1105
1117
  var MC_LOCALE_ID = new i0.InjectionToken('McLocaleId');
@@ -1186,28 +1198,40 @@
1186
1198
  };
1187
1199
  return McDecimalPipe;
1188
1200
  }());
1189
- /** @nocollapse */ McDecimalPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function McDecimalPipe_Factory() { return new McDecimalPipe(i0__namespace.ɵɵinject(MC_LOCALE_ID, 8)); }, token: McDecimalPipe, providedIn: "root" });
1190
- McDecimalPipe.decorators = [
1191
- { type: i0.Injectable, args: [{ providedIn: 'root' },] },
1192
- { type: i0.Pipe, args: [{ name: 'mcNumber' },] }
1193
- ];
1194
- /** @nocollapse */
1195
- McDecimalPipe.ctorParameters = function () { return [
1196
- { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MC_LOCALE_ID,] }] }
1197
- ]; };
1201
+ /** @nocollapse */ McDecimalPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDecimalPipe, deps: [{ token: MC_LOCALE_ID, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1202
+ /** @nocollapse */ McDecimalPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDecimalPipe, name: "mcNumber" });
1203
+ /** @nocollapse */ McDecimalPipe.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDecimalPipe, providedIn: 'root' });
1204
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDecimalPipe, decorators: [{
1205
+ type: i0.Injectable,
1206
+ args: [{ providedIn: 'root' }]
1207
+ }, {
1208
+ type: i0.Pipe,
1209
+ args: [{ name: 'mcNumber' }]
1210
+ }], ctorParameters: function () {
1211
+ return [{ type: undefined, decorators: [{
1212
+ type: i0.Optional
1213
+ }, {
1214
+ type: i0.Inject,
1215
+ args: [MC_LOCALE_ID]
1216
+ }] }];
1217
+ } });
1198
1218
 
1199
1219
  var McFormattersModule = /** @class */ (function () {
1200
1220
  function McFormattersModule() {
1201
1221
  }
1202
1222
  return McFormattersModule;
1203
1223
  }());
1204
- McFormattersModule.decorators = [
1205
- { type: i0.NgModule, args: [{
1206
- exports: [McDecimalPipe],
1207
- declarations: [McDecimalPipe],
1208
- providers: [DateFormatter]
1209
- },] }
1210
- ];
1224
+ /** @nocollapse */ McFormattersModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormattersModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1225
+ /** @nocollapse */ McFormattersModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormattersModule, declarations: [McDecimalPipe], exports: [McDecimalPipe] });
1226
+ /** @nocollapse */ McFormattersModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormattersModule, providers: [DateFormatter] });
1227
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormattersModule, decorators: [{
1228
+ type: i0.NgModule,
1229
+ args: [{
1230
+ exports: [McDecimalPipe],
1231
+ declarations: [McDecimalPipe],
1232
+ providers: [DateFormatter]
1233
+ }]
1234
+ }] });
1211
1235
 
1212
1236
  var validationTooltipShowDelay = 10;
1213
1237
  var validationTooltipHideDelay = 3000;
@@ -1302,22 +1326,29 @@
1302
1326
  };
1303
1327
  return McHighlightPipe;
1304
1328
  }());
1305
- McHighlightPipe.decorators = [
1306
- { type: i0.Pipe, args: [{ name: 'mcHighlight' },] }
1307
- ];
1329
+ /** @nocollapse */ McHighlightPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1330
+ /** @nocollapse */ McHighlightPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightPipe, name: "mcHighlight" });
1331
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightPipe, decorators: [{
1332
+ type: i0.Pipe,
1333
+ args: [{ name: 'mcHighlight' }]
1334
+ }] });
1308
1335
 
1309
1336
  var McHighlightModule = /** @class */ (function () {
1310
1337
  function McHighlightModule() {
1311
1338
  }
1312
1339
  return McHighlightModule;
1313
1340
  }());
1314
- McHighlightModule.decorators = [
1315
- { type: i0.NgModule, args: [{
1316
- imports: [i1.CommonModule],
1317
- exports: [McHighlightPipe],
1318
- declarations: [McHighlightPipe]
1319
- },] }
1320
- ];
1341
+ /** @nocollapse */ McHighlightModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1342
+ /** @nocollapse */ McHighlightModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightModule, declarations: [McHighlightPipe], imports: [i2$1.CommonModule], exports: [McHighlightPipe] });
1343
+ /** @nocollapse */ McHighlightModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightModule, imports: [[i2$1.CommonModule]] });
1344
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHighlightModule, decorators: [{
1345
+ type: i0.NgModule,
1346
+ args: [{
1347
+ imports: [i2$1.CommonModule],
1348
+ exports: [McHighlightPipe],
1349
+ declarations: [McHighlightPipe]
1350
+ }]
1351
+ }] });
1321
1352
 
1322
1353
  var selectEvents = 'selectEvents';
1323
1354
 
@@ -1368,7 +1399,7 @@
1368
1399
  /** @docs-private */
1369
1400
  var MC_SELECT_SCROLL_STRATEGY_PROVIDER = {
1370
1401
  provide: MC_SELECT_SCROLL_STRATEGY,
1371
- deps: [overlay.Overlay],
1402
+ deps: [i1$1.Overlay],
1372
1403
  useFactory: mcSelectScrollStrategyProviderFactory
1373
1404
  };
1374
1405
 
@@ -1458,13 +1489,19 @@
1458
1489
  overlayY: 'bottom'
1459
1490
  }
1460
1491
  };
1461
- var DEFAULT_4_POSITIONS = objectValues([
1462
- POSITION_MAP.top, POSITION_MAP.right, POSITION_MAP.bottom, POSITION_MAP.left
1463
- ]);
1464
1492
  var EXTENDED_OVERLAY_POSITIONS = objectValues([
1465
- POSITION_MAP.top, POSITION_MAP.topLeft, POSITION_MAP.topRight, POSITION_MAP.right, POSITION_MAP.rightTop,
1466
- POSITION_MAP.rightBottom, POSITION_MAP.bottom, POSITION_MAP.bottomLeft, POSITION_MAP.bottomRight,
1467
- POSITION_MAP.left, POSITION_MAP.leftTop, POSITION_MAP.leftBottom
1493
+ POSITION_MAP.top,
1494
+ POSITION_MAP.topLeft,
1495
+ POSITION_MAP.topRight,
1496
+ POSITION_MAP.right,
1497
+ POSITION_MAP.rightTop,
1498
+ POSITION_MAP.rightBottom,
1499
+ POSITION_MAP.bottom,
1500
+ POSITION_MAP.bottomLeft,
1501
+ POSITION_MAP.bottomRight,
1502
+ POSITION_MAP.left,
1503
+ POSITION_MAP.leftTop,
1504
+ POSITION_MAP.leftBottom
1468
1505
  ]);
1469
1506
  var TOP_POSITION_PRIORITY = objectValues([
1470
1507
  POSITION_MAP.top,
@@ -1594,15 +1631,9 @@
1594
1631
  bottomLeft: 'bottom-left',
1595
1632
  bottomRight: 'bottom-right'
1596
1633
  };
1597
- var DEFAULT_4_POSITIONS_TO_CSS_MAP = {
1598
- top: 'top',
1599
- bottom: 'bottom',
1600
- right: 'right',
1601
- left: 'left'
1602
- };
1603
1634
  function arrayMap(array, iteratee) {
1604
1635
  var index = -1;
1605
- var length = array == null ? 0 : array.length;
1636
+ var length = array === null ? 0 : array.length;
1606
1637
  var result = Array(length);
1607
1638
  while (++index < length) {
1608
1639
  result[index] = iteratee(array[index], index, array);
@@ -1610,12 +1641,10 @@
1610
1641
  return result;
1611
1642
  }
1612
1643
  function baseValues(object, props) {
1613
- return arrayMap(props, function (key) {
1614
- return object[key];
1615
- });
1644
+ return arrayMap(props, function (key) { return object[key]; });
1616
1645
  }
1617
1646
  function objectValues(object) {
1618
- return object == null ? [] : baseValues(object, Object.keys(object));
1647
+ return object === null ? [] : baseValues(object, Object.keys(object));
1619
1648
  }
1620
1649
 
1621
1650
  var fadeAnimation = animations.trigger('fadeAnimation', [
@@ -1707,39 +1736,46 @@
1707
1736
  }
1708
1737
  return McPseudoCheckbox;
1709
1738
  }());
1710
- McPseudoCheckbox.decorators = [
1711
- { type: i0.Component, args: [{
1712
- selector: 'mc-pseudo-checkbox',
1713
- template: "<i class=\"mc-checkbox-checkmark mc mc-check_16\"></i>\n<i class=\"mc-checkbox-mixedmark mc mc-minus_16\"></i>\n",
1714
- host: {
1715
- class: 'mc-pseudo-checkbox',
1716
- '[class.mc-indeterminate]': 'state === "indeterminate"',
1717
- '[class.mc-checked]': 'state === "checked"',
1718
- '[class.mc-disabled]': 'disabled'
1719
- },
1720
- preserveWhitespaces: false,
1721
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1722
- encapsulation: i0.ViewEncapsulation.None,
1723
- styles: [".mc-pseudo-checkbox{position:relative;display:inline-block;box-sizing:border-box;width:var(--mc-checkbox-size-width,16px);height:var(--mc-checkbox-size-width,16px);border-radius:3px;border-width:var(--mc-checkbox-size-border-width,1px);border-style:solid;cursor:pointer;vertical-align:middle;flex-shrink:0}.mc-pseudo-checkbox .mc-checkbox-checkmark,.mc-pseudo-checkbox .mc-checkbox-mixedmark{display:none;position:absolute;top:calc(-1 * var(--mc-checkbox-size-border-width, 1px));left:calc(-1 * var(--mc-checkbox-size-border-width, 1px))}.mc-pseudo-checkbox.mc-pseudo-checkbox-checked,.mc-pseudo-checkbox.mc-pseudo-checkbox-indeterminate{border-color:transparent}.mc-pseudo-checkbox.mc-checked .mc-checkbox-checkmark,.mc-pseudo-checkbox.mc-indeterminate .mc-checkbox-mixedmark{display:inline-block}.mc-pseudo-checkbox.mc-disabled{cursor:default}"]
1724
- },] }
1725
- ];
1726
- McPseudoCheckbox.propDecorators = {
1727
- state: [{ type: i0.Input }],
1728
- disabled: [{ type: i0.Input }]
1729
- };
1739
+ /** @nocollapse */ McPseudoCheckbox.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckbox, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1740
+ /** @nocollapse */ McPseudoCheckbox.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: { state: "state", disabled: "disabled" }, host: { properties: { "class.mc-indeterminate": "state === \"indeterminate\"", "class.mc-checked": "state === \"checked\"", "class.mc-disabled": "disabled" }, classAttribute: "mc-pseudo-checkbox" }, ngImport: i0__namespace, template: "<i class=\"mc-checkbox-checkmark mc mc-check_16\"></i>\n<i class=\"mc-checkbox-mixedmark mc mc-minus_16\"></i>\n", styles: [".mc-pseudo-checkbox{position:relative;display:inline-block;box-sizing:border-box;width:16px;width:var(--mc-checkbox-size-width, 16px);height:16px;height:var(--mc-checkbox-size-width, 16px);border-radius:3px;border-width:1px;border-width:var(--mc-checkbox-size-border-width, 1px);border-style:solid;cursor:pointer;vertical-align:middle;flex-shrink:0}.mc-pseudo-checkbox .mc-checkbox-checkmark,.mc-pseudo-checkbox .mc-checkbox-mixedmark{display:none;position:absolute;top:calc(-1 * 1px);top:calc(-1 * var(--mc-checkbox-size-border-width, 1px));left:calc(-1 * 1px);left:calc(-1 * var(--mc-checkbox-size-border-width, 1px))}.mc-pseudo-checkbox.mc-pseudo-checkbox-checked,.mc-pseudo-checkbox.mc-pseudo-checkbox-indeterminate{border-color:transparent}.mc-pseudo-checkbox.mc-checked .mc-checkbox-checkmark{display:inline-block}.mc-pseudo-checkbox.mc-indeterminate .mc-checkbox-mixedmark{display:inline-block}.mc-pseudo-checkbox.mc-disabled{cursor:default}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1741
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckbox, decorators: [{
1742
+ type: i0.Component,
1743
+ args: [{
1744
+ selector: 'mc-pseudo-checkbox',
1745
+ templateUrl: 'pseudo-checkbox.partial.html',
1746
+ styleUrls: ['pseudo-checkbox.scss'],
1747
+ host: {
1748
+ class: 'mc-pseudo-checkbox',
1749
+ '[class.mc-indeterminate]': 'state === "indeterminate"',
1750
+ '[class.mc-checked]': 'state === "checked"',
1751
+ '[class.mc-disabled]': 'disabled'
1752
+ },
1753
+ preserveWhitespaces: false,
1754
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1755
+ encapsulation: i0.ViewEncapsulation.None
1756
+ }]
1757
+ }], propDecorators: { state: [{
1758
+ type: i0.Input
1759
+ }], disabled: [{
1760
+ type: i0.Input
1761
+ }] } });
1730
1762
 
1731
1763
  var McPseudoCheckboxModule = /** @class */ (function () {
1732
1764
  function McPseudoCheckboxModule() {
1733
1765
  }
1734
1766
  return McPseudoCheckboxModule;
1735
1767
  }());
1736
- McPseudoCheckboxModule.decorators = [
1737
- { type: i0.NgModule, args: [{
1738
- imports: [i1.CommonModule],
1739
- exports: [McPseudoCheckbox],
1740
- declarations: [McPseudoCheckbox]
1741
- },] }
1742
- ];
1768
+ /** @nocollapse */ McPseudoCheckboxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckboxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1769
+ /** @nocollapse */ McPseudoCheckboxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckboxModule, declarations: [McPseudoCheckbox], imports: [i2$1.CommonModule], exports: [McPseudoCheckbox] });
1770
+ /** @nocollapse */ McPseudoCheckboxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckboxModule, imports: [[i2$1.CommonModule]] });
1771
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPseudoCheckboxModule, decorators: [{
1772
+ type: i0.NgModule,
1773
+ args: [{
1774
+ imports: [i2$1.CommonModule],
1775
+ exports: [McPseudoCheckbox],
1776
+ declarations: [McPseudoCheckbox]
1777
+ }]
1778
+ }] });
1743
1779
 
1744
1780
  var McMeasureScrollbarService = /** @class */ (function () {
1745
1781
  function McMeasureScrollbarService(document) {
@@ -1779,16 +1815,19 @@
1779
1815
  };
1780
1816
  return McMeasureScrollbarService;
1781
1817
  }());
1782
- /** @nocollapse */ McMeasureScrollbarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function McMeasureScrollbarService_Factory() { return new McMeasureScrollbarService(i0__namespace.ɵɵinject(i1__namespace.DOCUMENT)); }, token: McMeasureScrollbarService, providedIn: "root" });
1783
- McMeasureScrollbarService.decorators = [
1784
- { type: i0.Injectable, args: [{
1785
- providedIn: 'root'
1786
- },] }
1787
- ];
1788
- /** @nocollapse */
1789
- McMeasureScrollbarService.ctorParameters = function () { return [
1790
- { type: undefined, decorators: [{ type: i0.Inject, args: [i1.DOCUMENT,] }] }
1791
- ]; };
1818
+ /** @nocollapse */ McMeasureScrollbarService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McMeasureScrollbarService, deps: [{ token: i2$1.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1819
+ /** @nocollapse */ McMeasureScrollbarService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McMeasureScrollbarService, providedIn: 'root' });
1820
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McMeasureScrollbarService, decorators: [{
1821
+ type: i0.Injectable,
1822
+ args: [{
1823
+ providedIn: 'root'
1824
+ }]
1825
+ }], ctorParameters: function () {
1826
+ return [{ type: undefined, decorators: [{
1827
+ type: i0.Inject,
1828
+ args: [i2$1.DOCUMENT]
1829
+ }] }];
1830
+ } });
1792
1831
 
1793
1832
  /** @docs-private */
1794
1833
  var McOptgroupBase = /** @class */ (function () {
@@ -1805,31 +1844,33 @@
1805
1844
  var McOptgroup = /** @class */ (function (_super) {
1806
1845
  __extends(McOptgroup, _super);
1807
1846
  function McOptgroup() {
1808
- var _this = _super.apply(this, __spread(arguments)) || this;
1847
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1809
1848
  /** Unique id for the underlying label. */
1810
1849
  _this.labelId = "mc-optgroup-label-" + uniqueOptgroupIdCounter++;
1811
1850
  return _this;
1812
1851
  }
1813
1852
  return McOptgroup;
1814
1853
  }(McOptgroupMixinBase));
1815
- McOptgroup.decorators = [
1816
- { type: i0.Component, args: [{
1817
- selector: 'mc-optgroup',
1818
- exportAs: 'mcOptgroup',
1819
- template: "<label class=\"mc-optgroup-label\" [id]=\"labelId\">{{ label }}</label>\n<ng-content select=\"mc-option, mc-list-option, ng-container\"></ng-content>\n",
1820
- encapsulation: i0.ViewEncapsulation.None,
1821
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1822
- inputs: ['disabled'],
1823
- host: {
1824
- class: 'mc-optgroup',
1825
- '[class.mc-disabled]': 'disabled'
1826
- },
1827
- styles: [".mc-optgroup-label{padding-left:var(--mc-optgroup-size-padding-left,17px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}"]
1828
- },] }
1829
- ];
1830
- McOptgroup.propDecorators = {
1831
- label: [{ type: i0.Input }]
1832
- };
1854
+ /** @nocollapse */ McOptgroup.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptgroup, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
1855
+ /** @nocollapse */ McOptgroup.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McOptgroup, selector: "mc-optgroup", inputs: { disabled: "disabled", label: "label" }, host: { properties: { "class.mc-disabled": "disabled" }, classAttribute: "mc-optgroup" }, exportAs: ["mcOptgroup"], usesInheritance: true, ngImport: i0__namespace, template: "<label class=\"mc-optgroup-label\" [id]=\"labelId\">{{ label }}</label>\n<ng-content select=\"mc-option, mc-list-option, ng-container\"></ng-content>\n", styles: [".mc-optgroup-label{padding-left:17px;padding-left:var(--mc-optgroup-size-padding-left, 17px);-webkit-user-select:none;user-select:none;cursor:default}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1856
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptgroup, decorators: [{
1857
+ type: i0.Component,
1858
+ args: [{
1859
+ selector: 'mc-optgroup',
1860
+ exportAs: 'mcOptgroup',
1861
+ templateUrl: 'optgroup.html',
1862
+ styleUrls: ['./optgroup.scss'],
1863
+ encapsulation: i0.ViewEncapsulation.None,
1864
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1865
+ inputs: ['disabled'],
1866
+ host: {
1867
+ class: 'mc-optgroup',
1868
+ '[class.mc-disabled]': 'disabled'
1869
+ }
1870
+ }]
1871
+ }], propDecorators: { label: [{
1872
+ type: i0.Input
1873
+ }] } });
1833
1874
 
1834
1875
  /**
1835
1876
  * Option IDs need to be unique across components, so this counter exists outside of
@@ -2037,40 +2078,47 @@
2037
2078
  };
2038
2079
  return McOption;
2039
2080
  }());
2040
- McOption.decorators = [
2041
- { type: i0.Component, args: [{
2042
- selector: 'mc-option',
2043
- exportAs: 'mcOption',
2044
- host: {
2045
- '[attr.tabindex]': 'getTabIndex()',
2046
- class: 'mc-option',
2047
- '[class.mc-selected]': 'selected',
2048
- '[class.mc-option-multiple]': 'multiple',
2049
- '[class.mc-active]': 'active',
2050
- '[class.mc-disabled]': 'disabled',
2051
- '[id]': 'id',
2052
- '(click)': 'selectViaInteraction()',
2053
- '(keydown)': 'handleKeydown($event)'
2054
- },
2055
- template: "<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : ''\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<span class=\"mc-option-text\"><ng-content></ng-content></span>\n\n<div class=\"mc-option-overlay\"></div>\n",
2056
- encapsulation: i0.ViewEncapsulation.None,
2057
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2058
- styles: [".mc-option{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;position:relative;max-width:100%;height:var(--mc-option-size-height,32px);border:var(--mc-option-size-border-width,2px) solid transparent;cursor:pointer;outline:none;padding-left:var(--mc-option-size-horizontal-padding,16px);padding-right:var(--mc-option-size-horizontal-padding,16px);-webkit-tap-highlight-color:transparent}.mc-option.mc-disabled{cursor:default}.mc-option .mc-pseudo-checkbox{margin-right:8px}.mc-option .mc-option-overlay{position:absolute;top:calc(-1 * var(--mc-option-size-border-width, 2px));left:calc(-1 * var(--mc-option-size-border-width, 2px));right:calc(-1 * var(--mc-option-size-border-width, 2px));bottom:calc(-1 * var(--mc-option-size-border-width, 2px));pointer-events:none;border-radius:inherit}.mc-option-text{display:inline-block;flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]
2059
- },] }
2060
- ];
2061
- /** @nocollapse */
2062
- McOption.ctorParameters = function () { return [
2063
- { type: i0.ElementRef },
2064
- { type: i0.ChangeDetectorRef },
2065
- { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MC_OPTION_PARENT_COMPONENT,] }] },
2066
- { type: McOptgroup, decorators: [{ type: i0.Optional }] }
2067
- ]; };
2068
- McOption.propDecorators = {
2069
- value: [{ type: i0.Input }],
2070
- showCheckbox: [{ type: i0.Input }],
2071
- onSelectionChange: [{ type: i0.Output }],
2072
- disabled: [{ type: i0.Input }]
2073
- };
2081
+ /** @nocollapse */ McOption.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOption, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: MC_OPTION_PARENT_COMPONENT, optional: true }, { token: McOptgroup, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
2082
+ /** @nocollapse */ McOption.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McOption, selector: "mc-option", inputs: { value: "value", showCheckbox: "showCheckbox", disabled: "disabled" }, outputs: { onSelectionChange: "onSelectionChange" }, host: { listeners: { "click": "selectViaInteraction()", "keydown": "handleKeydown($event)" }, properties: { "attr.tabindex": "getTabIndex()", "class.mc-selected": "selected", "class.mc-option-multiple": "multiple", "class.mc-active": "active", "class.mc-disabled": "disabled", "id": "id" }, classAttribute: "mc-option" }, exportAs: ["mcOption"], ngImport: i0__namespace, template: "<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<span class=\"mc-option-text\"><ng-content></ng-content></span>\n\n<div class=\"mc-option-overlay\"></div>\n", styles: [".mc-option{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;position:relative;max-width:100%;height:32px;height:var(--mc-option-size-height, 32px);border:2px solid transparent;border:var(--mc-option-size-border-width, 2px) solid transparent;cursor:pointer;outline:none;padding-left:16px;padding-left:var(--mc-option-size-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mc-option-size-horizontal-padding, 16px);-webkit-tap-highlight-color:transparent}.mc-option.mc-disabled{cursor:default}.mc-option .mc-pseudo-checkbox{margin-right:8px}.mc-option .mc-option-overlay{position:absolute;top:calc(-1 * 2px);top:calc(-1 * var(--mc-option-size-border-width, 2px));left:calc(-1 * 2px);left:calc(-1 * var(--mc-option-size-border-width, 2px));right:calc(-1 * 2px);right:calc(-1 * var(--mc-option-size-border-width, 2px));bottom:calc(-1 * 2px);bottom:calc(-1 * var(--mc-option-size-border-width, 2px));pointer-events:none;border-radius:inherit}.mc-option-text{display:inline-block;flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"], components: [{ type: McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: ["state", "disabled"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
2083
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOption, decorators: [{
2084
+ type: i0.Component,
2085
+ args: [{
2086
+ selector: 'mc-option',
2087
+ exportAs: 'mcOption',
2088
+ host: {
2089
+ '[attr.tabindex]': 'getTabIndex()',
2090
+ class: 'mc-option',
2091
+ '[class.mc-selected]': 'selected',
2092
+ '[class.mc-option-multiple]': 'multiple',
2093
+ '[class.mc-active]': 'active',
2094
+ '[class.mc-disabled]': 'disabled',
2095
+ '[id]': 'id',
2096
+ '(click)': 'selectViaInteraction()',
2097
+ '(keydown)': 'handleKeydown($event)'
2098
+ },
2099
+ styleUrls: ['option.scss'],
2100
+ templateUrl: 'option.html',
2101
+ encapsulation: i0.ViewEncapsulation.None,
2102
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2103
+ }]
2104
+ }], ctorParameters: function () {
2105
+ return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: undefined, decorators: [{
2106
+ type: i0.Optional
2107
+ }, {
2108
+ type: i0.Inject,
2109
+ args: [MC_OPTION_PARENT_COMPONENT]
2110
+ }] }, { type: McOptgroup, decorators: [{
2111
+ type: i0.Optional
2112
+ }] }];
2113
+ }, propDecorators: { value: [{
2114
+ type: i0.Input
2115
+ }], showCheckbox: [{
2116
+ type: i0.Input
2117
+ }], onSelectionChange: [{
2118
+ type: i0.Output
2119
+ }], disabled: [{
2120
+ type: i0.Input
2121
+ }] } });
2074
2122
  /**
2075
2123
  * Counts the amount of option group labels that precede the specified option.
2076
2124
  * @param optionIndex Index of the option at which to start counting.
@@ -2111,18 +2159,148 @@
2111
2159
  return currentScrollPosition;
2112
2160
  }
2113
2161
 
2162
+ var MC_OPTION_ACTION_PARENT = new i0.InjectionToken('MC_OPTION_ACTION_PARENT');
2163
+ var McOptionActionBase = /** @class */ (function () {
2164
+ function McOptionActionBase() {
2165
+ }
2166
+ return McOptionActionBase;
2167
+ }());
2168
+ // tslint:disable-next-line:naming-convention
2169
+ var McOptionActionMixinBase = mixinTabIndex(mixinDisabled(McOptionActionBase));
2170
+ var McOptionActionComponent = /** @class */ (function (_super) {
2171
+ __extends(McOptionActionComponent, _super);
2172
+ function McOptionActionComponent(elementRef, focusMonitor, option) {
2173
+ var _this = _super.call(this) || this;
2174
+ _this.elementRef = elementRef;
2175
+ _this.focusMonitor = focusMonitor;
2176
+ _this.option = option;
2177
+ _this.hasFocus = false;
2178
+ _this.destroy = new rxjs.Subject();
2179
+ _this.focusMonitor.monitor(_this.elementRef.nativeElement);
2180
+ return _this;
2181
+ }
2182
+ Object.defineProperty(McOptionActionComponent.prototype, "active", {
2183
+ get: function () {
2184
+ var _a;
2185
+ return this.hasFocus || !!((_a = this.option.dropdownTrigger) === null || _a === void 0 ? void 0 : _a.opened);
2186
+ },
2187
+ enumerable: false,
2188
+ configurable: true
2189
+ });
2190
+ McOptionActionComponent.prototype.ngAfterViewInit = function () {
2191
+ var _this = this;
2192
+ if (!this.option.dropdownTrigger) {
2193
+ return;
2194
+ }
2195
+ this.option.dropdownTrigger.restoreFocus = false;
2196
+ this.option.dropdownTrigger.dropdownClosed
2197
+ .pipe(operators.takeUntil(this.destroy))
2198
+ .subscribe(function () {
2199
+ _this.preventShowingTooltip();
2200
+ var destroyReason = _this.option.dropdownTrigger.lastDestroyReason === 'keydown' ?
2201
+ 'keyboard' :
2202
+ 'program';
2203
+ _this.focus(destroyReason);
2204
+ });
2205
+ };
2206
+ McOptionActionComponent.prototype.ngOnDestroy = function () {
2207
+ this.destroy.next();
2208
+ this.destroy.complete();
2209
+ this.focusMonitor.stopMonitoring(this.elementRef.nativeElement);
2210
+ };
2211
+ McOptionActionComponent.prototype.focus = function (origin, options) {
2212
+ if (this.focusMonitor && origin) {
2213
+ this.focusMonitor.focusVia(this.elementRef.nativeElement, origin, options);
2214
+ }
2215
+ else {
2216
+ this.elementRef.nativeElement.focus();
2217
+ }
2218
+ this.hasFocus = true;
2219
+ };
2220
+ McOptionActionComponent.prototype.onFocus = function ($event) {
2221
+ $event.stopPropagation();
2222
+ this.hasFocus = true;
2223
+ };
2224
+ McOptionActionComponent.prototype.onBlur = function () {
2225
+ this.hasFocus = false;
2226
+ };
2227
+ McOptionActionComponent.prototype.onClick = function ($event) {
2228
+ $event.stopPropagation();
2229
+ };
2230
+ McOptionActionComponent.prototype.onKeyDown = function ($event) {
2231
+ if ([keycodes.SPACE, keycodes.ENTER].includes($event.keyCode) && this.option.dropdownTrigger) {
2232
+ this.option.dropdownTrigger.openedBy = 'keyboard';
2233
+ this.option.dropdownTrigger.toggle();
2234
+ }
2235
+ else if ($event.shiftKey && $event.keyCode === keycodes.TAB) {
2236
+ this.hasFocus = false;
2237
+ this.option.focus();
2238
+ }
2239
+ else if ($event.keyCode === keycodes.TAB) {
2240
+ return;
2241
+ }
2242
+ $event.preventDefault();
2243
+ $event.stopPropagation();
2244
+ };
2245
+ McOptionActionComponent.prototype.preventShowingTooltip = function () {
2246
+ var _this = this;
2247
+ if (!this.option.tooltipTrigger) {
2248
+ return;
2249
+ }
2250
+ this.option.tooltipTrigger.disabled = true;
2251
+ setTimeout(function () { return _this.option.tooltipTrigger.disabled = false; });
2252
+ };
2253
+ return McOptionActionComponent;
2254
+ }(McOptionActionMixinBase));
2255
+ /** @nocollapse */ McOptionActionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionActionComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$1.FocusMonitor }, { token: MC_OPTION_ACTION_PARENT }], target: i0__namespace.ɵɵFactoryTarget.Component });
2256
+ /** @nocollapse */ McOptionActionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McOptionActionComponent, selector: "mc-option-action", inputs: { disabled: "disabled" }, host: { listeners: { "focus": "onFocus($event)", "blur": "onBlur()", "click": "onClick($event)", "keydown": "onKeyDown($event)" }, properties: { "class.mc-opened": "false", "attr.disabled": "disabled || null", "attr.tabIndex": "-1" }, classAttribute: "mc-option-action" }, queries: [{ propertyName: "customIcon", first: true, predicate: ["customIcon"], descendants: true }], exportAs: ["mcOptionAction"], usesInheritance: true, ngImport: i0__namespace, template: "\n <ng-container [ngSwitch]=\"!!customIcon\">\n <i class=\"mc mc-icon mc-ellipsis_16\" *ngSwitchCase=\"false\"></i>\n <ng-content select=\"[mc-icon]\" *ngSwitchCase=\"true\"></ng-content>\n </ng-container>\n ", isInline: true, styles: [".mc-option-action{box-sizing:unset;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:-2px;width:28px;height:100%;cursor:pointer;outline:none;border:2px solid transparent;background:transparent}.mc-option-action[disabled]{cursor:default}\n"], directives: [{ type: i2__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
2257
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionActionComponent, decorators: [{
2258
+ type: i0.Component,
2259
+ args: [{
2260
+ selector: 'mc-option-action',
2261
+ exportAs: 'mcOptionAction',
2262
+ template: "\n <ng-container [ngSwitch]=\"!!customIcon\">\n <i class=\"mc mc-icon mc-ellipsis_16\" *ngSwitchCase=\"false\"></i>\n <ng-content select=\"[mc-icon]\" *ngSwitchCase=\"true\"></ng-content>\n </ng-container>\n ",
2263
+ styleUrls: ['./action.scss'],
2264
+ host: {
2265
+ class: 'mc-option-action',
2266
+ '[class.mc-opened]': 'false',
2267
+ '[attr.disabled]': 'disabled || null',
2268
+ '[attr.tabIndex]': '-1',
2269
+ '(focus)': 'onFocus($event)',
2270
+ '(blur)': 'onBlur()',
2271
+ '(click)': 'onClick($event)',
2272
+ '(keydown)': 'onKeyDown($event)'
2273
+ },
2274
+ inputs: ['disabled'],
2275
+ encapsulation: i0.ViewEncapsulation.None,
2276
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
2277
+ }]
2278
+ }], ctorParameters: function () {
2279
+ return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.FocusMonitor }, { type: undefined, decorators: [{
2280
+ type: i0.Inject,
2281
+ args: [MC_OPTION_ACTION_PARENT]
2282
+ }] }];
2283
+ }, propDecorators: { customIcon: [{
2284
+ type: i0.ContentChild,
2285
+ args: ['customIcon']
2286
+ }] } });
2287
+
2114
2288
  var McOptionModule = /** @class */ (function () {
2115
2289
  function McOptionModule() {
2116
2290
  }
2117
2291
  return McOptionModule;
2118
2292
  }());
2119
- McOptionModule.decorators = [
2120
- { type: i0.NgModule, args: [{
2121
- imports: [i1.CommonModule, McPseudoCheckboxModule],
2122
- exports: [McOption, McOptgroup],
2123
- declarations: [McOption, McOptgroup]
2124
- },] }
2125
- ];
2293
+ /** @nocollapse */ McOptionModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2294
+ /** @nocollapse */ McOptionModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionModule, declarations: [McOption, McOptgroup, McOptionActionComponent], imports: [i2$1.CommonModule, McPseudoCheckboxModule], exports: [McOption, McOptgroup, McOptionActionComponent] });
2295
+ /** @nocollapse */ McOptionModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionModule, imports: [[i2$1.CommonModule, McPseudoCheckboxModule]] });
2296
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McOptionModule, decorators: [{
2297
+ type: i0.NgModule,
2298
+ args: [{
2299
+ imports: [i2$1.CommonModule, McPseudoCheckboxModule],
2300
+ declarations: [McOption, McOptgroup, McOptionActionComponent],
2301
+ exports: [McOption, McOptgroup, McOptionActionComponent]
2302
+ }]
2303
+ }] });
2126
2304
 
2127
2305
  var McFormElement = /** @class */ (function () {
2128
2306
  function McFormElement(element) {
@@ -2144,22 +2322,21 @@
2144
2322
  };
2145
2323
  return McFormElement;
2146
2324
  }());
2147
- McFormElement.decorators = [
2148
- { type: i0.Directive, args: [{
2149
- selector: '.mc-form__row, .mc-form__fieldset, .mc-form__legend',
2150
- exportAs: 'mcFormElement',
2151
- host: {
2152
- '[class.mc-form-row_margin]': 'margin'
2153
- }
2154
- },] }
2155
- ];
2156
- /** @nocollapse */
2157
- McFormElement.ctorParameters = function () { return [
2158
- { type: i0.ElementRef }
2159
- ]; };
2160
- McFormElement.propDecorators = {
2161
- elements: [{ type: i0.ContentChildren, args: [McFormElement,] }]
2162
- };
2325
+ /** @nocollapse */ McFormElement.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormElement, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2326
+ /** @nocollapse */ McFormElement.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McFormElement, selector: ".mc-form__row, .mc-form__fieldset, .mc-form__legend", host: { properties: { "class.mc-form-row_margin": "margin" } }, queries: [{ propertyName: "elements", predicate: McFormElement }], exportAs: ["mcFormElement"], ngImport: i0__namespace });
2327
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormElement, decorators: [{
2328
+ type: i0.Directive,
2329
+ args: [{
2330
+ selector: '.mc-form__row, .mc-form__fieldset, .mc-form__legend',
2331
+ exportAs: 'mcFormElement',
2332
+ host: {
2333
+ '[class.mc-form-row_margin]': 'margin'
2334
+ }
2335
+ }]
2336
+ }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { elements: [{
2337
+ type: i0.ContentChildren,
2338
+ args: [McFormElement]
2339
+ }] } });
2163
2340
  var McForm = /** @class */ (function () {
2164
2341
  function McForm() {
2165
2342
  }
@@ -2178,36 +2355,404 @@
2178
2355
  };
2179
2356
  return McForm;
2180
2357
  }());
2181
- McForm.decorators = [
2182
- { type: i0.Directive, args: [{
2183
- selector: '.mc-form-vertical, .mc-form-horizontal',
2184
- exportAs: 'mcForm',
2185
- host: {
2186
- class: 'mc-form'
2187
- }
2188
- },] }
2189
- ];
2190
- McForm.propDecorators = {
2191
- elements: [{ type: i0.ContentChildren, args: [McFormElement,] }]
2192
- };
2358
+ /** @nocollapse */ McForm.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McForm, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
2359
+ /** @nocollapse */ McForm.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McForm, selector: ".mc-form-vertical, .mc-form-horizontal", host: { classAttribute: "mc-form" }, queries: [{ propertyName: "elements", predicate: McFormElement }], exportAs: ["mcForm"], ngImport: i0__namespace });
2360
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McForm, decorators: [{
2361
+ type: i0.Directive,
2362
+ args: [{
2363
+ selector: '.mc-form-vertical, .mc-form-horizontal',
2364
+ exportAs: 'mcForm',
2365
+ host: {
2366
+ class: 'mc-form'
2367
+ }
2368
+ }]
2369
+ }], propDecorators: { elements: [{
2370
+ type: i0.ContentChildren,
2371
+ args: [McFormElement]
2372
+ }] } });
2193
2373
 
2194
2374
  var McFormsModule = /** @class */ (function () {
2195
2375
  function McFormsModule() {
2196
2376
  }
2197
2377
  return McFormsModule;
2198
2378
  }());
2199
- McFormsModule.decorators = [
2200
- { type: i0.NgModule, args: [{
2201
- exports: [
2202
- McForm,
2203
- McFormElement
2204
- ],
2205
- declarations: [
2206
- McForm,
2207
- McFormElement
2208
- ]
2209
- },] }
2210
- ];
2379
+ /** @nocollapse */ McFormsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2380
+ /** @nocollapse */ McFormsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormsModule, declarations: [McForm,
2381
+ McFormElement], exports: [McForm,
2382
+ McFormElement] });
2383
+ /** @nocollapse */ McFormsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormsModule });
2384
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormsModule, decorators: [{
2385
+ type: i0.NgModule,
2386
+ args: [{
2387
+ exports: [
2388
+ McForm,
2389
+ McFormElement
2390
+ ],
2391
+ declarations: [
2392
+ McForm,
2393
+ McFormElement
2394
+ ]
2395
+ }]
2396
+ }] });
2397
+
2398
+ exports.PopUpPlacements = void 0;
2399
+ (function (PopUpPlacements) {
2400
+ PopUpPlacements["Top"] = "top";
2401
+ PopUpPlacements["TopLeft"] = "topLeft";
2402
+ PopUpPlacements["TopRight"] = "topRight";
2403
+ PopUpPlacements["Right"] = "right";
2404
+ PopUpPlacements["RightTop"] = "rightTop";
2405
+ PopUpPlacements["RightBottom"] = "rightBottom";
2406
+ PopUpPlacements["Left"] = "left";
2407
+ PopUpPlacements["LeftTop"] = "leftTop";
2408
+ PopUpPlacements["LeftBottom"] = "leftBottom";
2409
+ PopUpPlacements["Bottom"] = "bottom";
2410
+ PopUpPlacements["BottomLeft"] = "bottomLeft";
2411
+ PopUpPlacements["BottomRight"] = "bottomRight";
2412
+ })(exports.PopUpPlacements || (exports.PopUpPlacements = {}));
2413
+ exports.PopUpVisibility = void 0;
2414
+ (function (PopUpVisibility) {
2415
+ PopUpVisibility["Initial"] = "initial";
2416
+ PopUpVisibility["Visible"] = "visible";
2417
+ PopUpVisibility["Hidden"] = "hidden";
2418
+ })(exports.PopUpVisibility || (exports.PopUpVisibility = {}));
2419
+ exports.PopUpTriggers = void 0;
2420
+ (function (PopUpTriggers) {
2421
+ PopUpTriggers["Click"] = "click";
2422
+ PopUpTriggers["Focus"] = "focus";
2423
+ PopUpTriggers["Hover"] = "hover";
2424
+ })(exports.PopUpTriggers || (exports.PopUpTriggers = {}));
2425
+ exports.PopUpSizes = void 0;
2426
+ (function (PopUpSizes) {
2427
+ PopUpSizes["Small"] = "small";
2428
+ PopUpSizes["Normal"] = "normal";
2429
+ PopUpSizes["Large"] = "large";
2430
+ })(exports.PopUpSizes || (exports.PopUpSizes = {}));
2431
+
2432
+ // tslint:disable-next-line:naming-convention
2433
+ var McPopUp = /** @class */ (function () {
2434
+ function McPopUp(changeDetectorRef) {
2435
+ this.changeDetectorRef = changeDetectorRef;
2436
+ this.classMap = {};
2437
+ this.visibility = exports.PopUpVisibility.Initial;
2438
+ this.visibleChange = new i0.EventEmitter();
2439
+ /** Subject for notifying that the tooltip has been hidden from the view */
2440
+ this.onHideSubject = new rxjs.Subject();
2441
+ this.closeOnInteraction = false;
2442
+ }
2443
+ McPopUp.prototype.ngOnDestroy = function () {
2444
+ clearTimeout(this.showTimeoutId);
2445
+ clearTimeout(this.hideTimeoutId);
2446
+ this.onHideSubject.complete();
2447
+ };
2448
+ McPopUp.prototype.isTemplateRef = function (value) {
2449
+ return value instanceof i0.TemplateRef;
2450
+ };
2451
+ McPopUp.prototype.show = function (delay) {
2452
+ var _this = this;
2453
+ if (this.hideTimeoutId) {
2454
+ clearTimeout(this.hideTimeoutId);
2455
+ }
2456
+ this.closeOnInteraction = true;
2457
+ this.showTimeoutId = setTimeout(function () {
2458
+ _this.showTimeoutId = undefined;
2459
+ _this.visibility = exports.PopUpVisibility.Visible;
2460
+ _this.visibleChange.emit(true);
2461
+ // Mark for check so if any parent component has set the
2462
+ // ChangeDetectionStrategy to OnPush it will be checked anyways
2463
+ _this.markForCheck();
2464
+ }, delay);
2465
+ };
2466
+ McPopUp.prototype.hide = function (delay) {
2467
+ var _this = this;
2468
+ if (this.showTimeoutId) {
2469
+ clearTimeout(this.showTimeoutId);
2470
+ }
2471
+ this.hideTimeoutId = setTimeout(function () {
2472
+ _this.hideTimeoutId = undefined;
2473
+ _this.visibility = exports.PopUpVisibility.Hidden;
2474
+ _this.visibleChange.emit(false);
2475
+ _this.onHideSubject.next();
2476
+ // Mark for check so if any parent component has set the
2477
+ // ChangeDetectionStrategy to OnPush it will be checked anyways
2478
+ _this.markForCheck();
2479
+ }, delay);
2480
+ };
2481
+ McPopUp.prototype.isVisible = function () {
2482
+ return this.visibility === exports.PopUpVisibility.Visible;
2483
+ };
2484
+ McPopUp.prototype.updateClassMap = function (placement, customClass, classMap) {
2485
+ var _a;
2486
+ this.classMap = Object.assign((_a = {}, _a[this.prefix + "_placement-" + placement] = true, _a[customClass] = !!customClass, _a), classMap);
2487
+ };
2488
+ /** Returns an observable that notifies when the tooltip has been hidden from view. */
2489
+ McPopUp.prototype.afterHidden = function () {
2490
+ return this.onHideSubject.asObservable();
2491
+ };
2492
+ McPopUp.prototype.markForCheck = function () {
2493
+ this.changeDetectorRef.markForCheck();
2494
+ };
2495
+ McPopUp.prototype.animationStart = function () {
2496
+ this.closeOnInteraction = false;
2497
+ };
2498
+ McPopUp.prototype.animationDone = function (_a) {
2499
+ var toState = _a.toState;
2500
+ if (toState === exports.PopUpVisibility.Hidden && !this.isVisible()) {
2501
+ this.onHideSubject.next();
2502
+ }
2503
+ if (toState === exports.PopUpVisibility.Visible || toState === exports.PopUpVisibility.Hidden) {
2504
+ this.closeOnInteraction = true;
2505
+ }
2506
+ };
2507
+ McPopUp.prototype.handleBodyInteraction = function () {
2508
+ if (this.closeOnInteraction) {
2509
+ this.hide(0);
2510
+ }
2511
+ };
2512
+ return McPopUp;
2513
+ }());
2514
+ /** @nocollapse */ McPopUp.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPopUp, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2515
+ /** @nocollapse */ McPopUp.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McPopUp, ngImport: i0__namespace });
2516
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPopUp, decorators: [{
2517
+ type: i0.Directive
2518
+ }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; } });
2519
+
2520
+ var VIEWPORT_MARGIN = 8;
2521
+ // tslint:disable-next-line:naming-convention
2522
+ var McPopUpTrigger = /** @class */ (function () {
2523
+ function McPopUpTrigger(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction) {
2524
+ var _this = this;
2525
+ this.overlay = overlay;
2526
+ this.elementRef = elementRef;
2527
+ this.ngZone = ngZone;
2528
+ this.scrollDispatcher = scrollDispatcher;
2529
+ this.hostView = hostView;
2530
+ this.scrollStrategy = scrollStrategy;
2531
+ this.direction = direction;
2532
+ this.isOpen = false;
2533
+ this.enterDelay = 0;
2534
+ this.leaveDelay = 0;
2535
+ this.placement = exports.PopUpPlacements.Top;
2536
+ this.placementPriority = null;
2537
+ this.visible = false;
2538
+ // tslint:disable-next-line:naming-convention orthodox-getter-and-setter
2539
+ this._disabled = false;
2540
+ this.listeners = new Map();
2541
+ this.destroyed = new rxjs.Subject();
2542
+ this.detach = function () {
2543
+ if (_this.overlayRef && _this.overlayRef.hasAttached()) {
2544
+ _this.overlayRef.detach();
2545
+ }
2546
+ _this.instance = null;
2547
+ };
2548
+ this.onPositionChange = function ($event) {
2549
+ if (!_this.instance) {
2550
+ return;
2551
+ }
2552
+ var newPlacement = _this.placement;
2553
+ var _a = $event.connectionPair, originX = _a.originX, originY = _a.originY, overlayX = _a.overlayX, overlayY = _a.overlayY;
2554
+ Object.keys(_this.availablePositions).some(function (key) {
2555
+ if (originX === _this.availablePositions[key].originX && originY === _this.availablePositions[key].originY &&
2556
+ overlayX === _this.availablePositions[key].overlayX && overlayY === _this.availablePositions[key].overlayY) {
2557
+ newPlacement = key;
2558
+ return true;
2559
+ }
2560
+ return false;
2561
+ });
2562
+ _this.placementChange.emit(newPlacement);
2563
+ _this.updateClassMap(newPlacement);
2564
+ if ($event.scrollableViewProperties.isOverlayClipped && _this.instance.isVisible()) {
2565
+ // After position changes occur and the overlay is clipped by
2566
+ // a parent scrollable then close the tooltip.
2567
+ _this.ngZone.run(function () { return _this.hide(); });
2568
+ }
2569
+ };
2570
+ this.addEventListener = function (listener, event) {
2571
+ _this.elementRef.nativeElement.addEventListener(event, listener);
2572
+ };
2573
+ this.removeEventListener = function (listener, event) {
2574
+ _this.elementRef.nativeElement.removeEventListener(event, listener);
2575
+ };
2576
+ this.availablePositions = POSITION_MAP;
2577
+ }
2578
+ McPopUpTrigger.prototype.ngOnInit = function () {
2579
+ this.initListeners();
2580
+ };
2581
+ McPopUpTrigger.prototype.ngOnDestroy = function () {
2582
+ if (this.overlayRef) {
2583
+ this.overlayRef.dispose();
2584
+ }
2585
+ this.listeners.forEach(this.removeEventListener);
2586
+ this.listeners.clear();
2587
+ this.destroyed.next();
2588
+ this.destroyed.complete();
2589
+ };
2590
+ McPopUpTrigger.prototype.updatePlacement = function (value) {
2591
+ if (POSITION_TO_CSS_MAP[value]) {
2592
+ this.placement = value;
2593
+ this.updateClassMap();
2594
+ }
2595
+ else {
2596
+ this.placement = exports.PopUpPlacements.Top;
2597
+ console.warn("Unknown position: " + value + ". Will used default position: " + this.placement);
2598
+ }
2599
+ if (this.visible) {
2600
+ this.updatePosition();
2601
+ }
2602
+ };
2603
+ McPopUpTrigger.prototype.updatePlacementPriority = function (value) {
2604
+ if (value && value.length > 0) {
2605
+ this.placementPriority = value;
2606
+ }
2607
+ else {
2608
+ this.placementPriority = null;
2609
+ }
2610
+ };
2611
+ McPopUpTrigger.prototype.updateVisible = function (externalValue) {
2612
+ var value = coercion.coerceBooleanProperty(externalValue);
2613
+ if (this.visible !== value) {
2614
+ this.visible = value;
2615
+ if (value) {
2616
+ this.show();
2617
+ }
2618
+ else {
2619
+ this.hide();
2620
+ }
2621
+ }
2622
+ };
2623
+ McPopUpTrigger.prototype.handleKeydown = function (event) {
2624
+ if (this.isOpen && event.keyCode === keycodes.ESCAPE) { // tslint:disable-line
2625
+ this.hide();
2626
+ }
2627
+ };
2628
+ McPopUpTrigger.prototype.handleTouchend = function () {
2629
+ this.hide();
2630
+ };
2631
+ McPopUpTrigger.prototype.show = function (delay) {
2632
+ var _this = this;
2633
+ if (delay === void 0) { delay = this.enterDelay; }
2634
+ if (this.disabled || this.instance) {
2635
+ return;
2636
+ }
2637
+ this.overlayRef = this.createOverlay();
2638
+ this.detach();
2639
+ this.portal = this.portal || new portal.ComponentPortal(this.getOverlayHandleComponentType(), this.hostView);
2640
+ this.instance = this.overlayRef.attach(this.portal).instance;
2641
+ this.instance.afterHidden()
2642
+ .pipe(operators.takeUntil(this.destroyed))
2643
+ .subscribe(this.detach);
2644
+ this.updateClassMap();
2645
+ this.updateData();
2646
+ this.instance.visibleChange
2647
+ .pipe(operators.takeUntil(this.destroyed), operators.distinctUntilChanged())
2648
+ .subscribe(function (value) {
2649
+ _this.visible = value;
2650
+ _this.visibleChange.emit(value);
2651
+ _this.isOpen = value;
2652
+ });
2653
+ this.updatePosition();
2654
+ this.instance.show(delay);
2655
+ };
2656
+ McPopUpTrigger.prototype.hide = function (delay) {
2657
+ if (delay === void 0) { delay = this.leaveDelay; }
2658
+ if (this.instance) {
2659
+ this.instance.hide(delay);
2660
+ }
2661
+ };
2662
+ /** Create the overlay config and position strategy */
2663
+ McPopUpTrigger.prototype.createOverlay = function () {
2664
+ var _this = this;
2665
+ if (this.overlayRef) {
2666
+ return this.overlayRef;
2667
+ }
2668
+ // Create connected position strategy that listens for scroll events to reposition.
2669
+ var strategy = this.overlay.position()
2670
+ .flexibleConnectedTo(this.elementRef)
2671
+ .withTransformOriginOn(this.originSelector)
2672
+ .withFlexibleDimensions(false)
2673
+ .withViewportMargin(VIEWPORT_MARGIN)
2674
+ .withPositions(__spreadArray([], __read(EXTENDED_OVERLAY_POSITIONS)))
2675
+ .withScrollableContainers(this.scrollDispatcher.getAncestorScrollContainers(this.elementRef));
2676
+ strategy.positionChanges
2677
+ .pipe(operators.takeUntil(this.destroyed))
2678
+ .subscribe(this.onPositionChange);
2679
+ this.overlayRef = this.overlay.create(Object.assign(Object.assign({}, this.overlayConfig), { direction: this.direction, positionStrategy: strategy, scrollStrategy: this.scrollStrategy() }));
2680
+ this.closingActions()
2681
+ .pipe(operators.takeUntil(this.destroyed))
2682
+ .pipe(operators.delay(0))
2683
+ .subscribe(function () { return _this.hide(); });
2684
+ this.overlayRef.outsidePointerEvents()
2685
+ .subscribe(function () { return _this.instance.handleBodyInteraction(); });
2686
+ this.overlayRef.detachments()
2687
+ .pipe(operators.takeUntil(this.destroyed))
2688
+ .subscribe(this.detach);
2689
+ return this.overlayRef;
2690
+ };
2691
+ McPopUpTrigger.prototype.initListeners = function () {
2692
+ var _this = this;
2693
+ this.clearListeners();
2694
+ if (this.trigger.includes(exports.PopUpTriggers.Click)) {
2695
+ this.listeners
2696
+ .set('click', function () { return _this.show(); })
2697
+ .forEach(this.addEventListener);
2698
+ }
2699
+ if (this.trigger.includes(exports.PopUpTriggers.Hover)) {
2700
+ this.listeners
2701
+ .set('mouseenter', function () { return _this.show(); })
2702
+ .set('mouseleave', function () { return _this.hide(); })
2703
+ .forEach(this.addEventListener);
2704
+ }
2705
+ if (this.trigger.includes(exports.PopUpTriggers.Focus)) {
2706
+ this.listeners
2707
+ .set('focus', function () { return _this.show(); })
2708
+ .set('blur', function () { return _this.hide(); })
2709
+ .forEach(this.addEventListener);
2710
+ }
2711
+ };
2712
+ /** Updates the position of the current popover. */
2713
+ McPopUpTrigger.prototype.updatePosition = function (reapplyPosition) {
2714
+ if (reapplyPosition === void 0) { reapplyPosition = false; }
2715
+ this.overlayRef = this.createOverlay();
2716
+ var position = this.overlayRef.getConfig().positionStrategy
2717
+ .withPositions(this.getPrioritizedPositions())
2718
+ .withPush(true);
2719
+ if (reapplyPosition) {
2720
+ setTimeout(function () { return position.reapplyLastPosition(); });
2721
+ }
2722
+ };
2723
+ McPopUpTrigger.prototype.getPriorityPlacementStrategy = function (value) {
2724
+ var _this = this;
2725
+ var result = [];
2726
+ var possiblePositions = Object.keys(this.availablePositions);
2727
+ if (Array.isArray(value)) {
2728
+ value.forEach(function (position) {
2729
+ if (possiblePositions.includes(position)) {
2730
+ result.push(_this.availablePositions[position]);
2731
+ }
2732
+ });
2733
+ }
2734
+ else if (possiblePositions.includes(value)) {
2735
+ result.push(this.availablePositions[value]);
2736
+ }
2737
+ return result;
2738
+ };
2739
+ McPopUpTrigger.prototype.getPrioritizedPositions = function () {
2740
+ if (this.placementPriority) {
2741
+ return this.getPriorityPlacementStrategy(this.placementPriority);
2742
+ }
2743
+ return POSITION_PRIORITY_STRATEGY[this.placement];
2744
+ };
2745
+ McPopUpTrigger.prototype.clearListeners = function () {
2746
+ this.listeners.forEach(this.removeEventListener);
2747
+ this.listeners.clear();
2748
+ };
2749
+ return McPopUpTrigger;
2750
+ }());
2751
+ /** @nocollapse */ McPopUpTrigger.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPopUpTrigger, deps: "invalid", target: i0__namespace.ɵɵFactoryTarget.Directive });
2752
+ /** @nocollapse */ McPopUpTrigger.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McPopUpTrigger, ngImport: i0__namespace });
2753
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPopUpTrigger, decorators: [{
2754
+ type: i0.Directive
2755
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.Overlay }, { type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }, { type: i1__namespace$2.ScrollDispatcher }, { type: i0__namespace.ViewContainerRef }, { type: undefined }, { type: i2__namespace$1.Directionality }]; } });
2211
2756
 
2212
2757
  /**
2213
2758
  * Generated bundle index. Do not edit.
@@ -2216,8 +2761,6 @@
2216
2761
  exports.BOTTOM_LEFT_POSITION_PRIORITY = BOTTOM_LEFT_POSITION_PRIORITY;
2217
2762
  exports.BOTTOM_POSITION_PRIORITY = BOTTOM_POSITION_PRIORITY;
2218
2763
  exports.BOTTOM_RIGHT_POSITION_PRIORITY = BOTTOM_RIGHT_POSITION_PRIORITY;
2219
- exports.DEFAULT_4_POSITIONS = DEFAULT_4_POSITIONS;
2220
- exports.DEFAULT_4_POSITIONS_TO_CSS_MAP = DEFAULT_4_POSITIONS_TO_CSS_MAP;
2221
2764
  exports.DEFAULT_MC_LOCALE_ID = DEFAULT_MC_LOCALE_ID;
2222
2765
  exports.DateFormatter = DateFormatter;
2223
2766
  exports.EXTENDED_OVERLAY_POSITIONS = EXTENDED_OVERLAY_POSITIONS;
@@ -2227,6 +2770,7 @@
2227
2770
  exports.LEFT_TOP_POSITION_PRIORITY = LEFT_TOP_POSITION_PRIORITY;
2228
2771
  exports.MC_LABEL_GLOBAL_OPTIONS = MC_LABEL_GLOBAL_OPTIONS;
2229
2772
  exports.MC_LOCALE_ID = MC_LOCALE_ID;
2773
+ exports.MC_OPTION_ACTION_PARENT = MC_OPTION_ACTION_PARENT;
2230
2774
  exports.MC_OPTION_PARENT_COMPONENT = MC_OPTION_PARENT_COMPONENT;
2231
2775
  exports.MC_SANITY_CHECKS = MC_SANITY_CHECKS;
2232
2776
  exports.MC_SELECT_SCROLL_STRATEGY = MC_SELECT_SCROLL_STRATEGY;
@@ -2248,8 +2792,13 @@
2248
2792
  exports.McOptgroupBase = McOptgroupBase;
2249
2793
  exports.McOptgroupMixinBase = McOptgroupMixinBase;
2250
2794
  exports.McOption = McOption;
2795
+ exports.McOptionActionBase = McOptionActionBase;
2796
+ exports.McOptionActionComponent = McOptionActionComponent;
2797
+ exports.McOptionActionMixinBase = McOptionActionMixinBase;
2251
2798
  exports.McOptionModule = McOptionModule;
2252
2799
  exports.McOptionSelectionChange = McOptionSelectionChange;
2800
+ exports.McPopUp = McPopUp;
2801
+ exports.McPopUpTrigger = McPopUpTrigger;
2253
2802
  exports.McPseudoCheckbox = McPseudoCheckbox;
2254
2803
  exports.McPseudoCheckboxModule = McPseudoCheckboxModule;
2255
2804
  exports.NUMBER_FORMAT_REGEXP = NUMBER_FORMAT_REGEXP;
@@ -2287,9 +2836,8 @@
2287
2836
  exports.toBoolean = toBoolean;
2288
2837
  exports.validationTooltipHideDelay = validationTooltipHideDelay;
2289
2838
  exports.validationTooltipShowDelay = validationTooltipShowDelay;
2290
- exports.ɵa = mcSanityChecksFactory;
2291
2839
 
2292
2840
  Object.defineProperty(exports, '__esModule', { value: true });
2293
2841
 
2294
- })));
2842
+ }));
2295
2843
  //# sourceMappingURL=ptsecurity-mosaic-core.umd.js.map