@ptsecurity/mosaic 15.6.0 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (750) hide show
  1. package/_theming.scss +19 -0
  2. package/_visual.scss +2 -0
  3. package/autocomplete/autocomplete-trigger.directive.d.ts +6 -16
  4. package/autocomplete/autocomplete.component.d.ts +1 -1
  5. package/button/button.component.d.ts +1 -1
  6. package/button-toggle/button-toggle.component.d.ts +3 -3
  7. package/card/card.component.d.ts +1 -1
  8. package/checkbox/_checkbox-theme.scss +4 -0
  9. package/checkbox/checkbox-config.d.ts +1 -1
  10. package/checkbox/checkbox.d.ts +1 -1
  11. package/code-block/actionbar.component.d.ts +1 -1
  12. package/code-block/code-block.component.d.ts +1 -1
  13. package/core/common-behaviors/color.d.ts +1 -1
  14. package/core/common-behaviors/constructor.d.ts +2 -2
  15. package/core/common-behaviors/disabled.d.ts +1 -1
  16. package/core/common-behaviors/error-state.d.ts +1 -1
  17. package/core/common-behaviors/tabindex.d.ts +1 -1
  18. package/core/datetime/date-formats.d.ts +1 -1
  19. package/core/formatters/index.d.ts +1 -1
  20. package/core/formatters/number/formatter.d.ts +55 -0
  21. package/core/label/label-options.d.ts +1 -1
  22. package/core/locales/en-US.d.ts +13 -2
  23. package/core/locales/es-LA.d.ts +21 -0
  24. package/core/locales/fa-IR.d.ts +22 -0
  25. package/core/locales/locale-service.d.ts +111 -5
  26. package/core/locales/pt-BR.d.ts +21 -0
  27. package/core/locales/ru-RU.d.ts +13 -2
  28. package/core/locales/zh-CN.d.ts +20 -0
  29. package/core/option/action.d.ts +1 -1
  30. package/core/option/optgroup.d.ts +1 -1
  31. package/core/option/option.d.ts +37 -8
  32. package/core/overlay/overlay-position-map.d.ts +7 -1
  33. package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +2 -2
  34. package/core/styles/_variables.scss +1 -0
  35. package/core/styles/theming/_theming.scss +1 -0
  36. package/datepicker/calendar-body.component.d.ts +2 -2
  37. package/datepicker/calendar-header.component.d.ts +9 -3
  38. package/datepicker/calendar.component.d.ts +4 -5
  39. package/datepicker/datepicker-input.directive.d.ts +1 -1
  40. package/datepicker/datepicker-toggle.component.d.ts +1 -1
  41. package/datepicker/datepicker.component.d.ts +1 -1
  42. package/datepicker/month-view.component.d.ts +4 -5
  43. package/divider/divider.component.d.ts +1 -1
  44. package/dl/dl.component.d.ts +1 -1
  45. package/dropdown/dropdown-item.component.d.ts +1 -1
  46. package/dropdown/dropdown-trigger.directive.d.ts +1 -1
  47. package/dropdown/dropdown.component.d.ts +1 -1
  48. package/dropdown/dropdown.types.d.ts +3 -3
  49. package/ellipsis-center/ellipsis-center.directive.d.ts +1 -1
  50. package/{esm2020 → esm2022}/autocomplete/autocomplete-origin.directive.mjs +4 -4
  51. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +555 -0
  52. package/{esm2020 → esm2022}/autocomplete/autocomplete.component.mjs +26 -26
  53. package/{esm2020 → esm2022}/autocomplete/autocomplete.module.mjs +10 -10
  54. package/esm2022/button/button.component.mjs +148 -0
  55. package/{esm2020 → esm2022}/button/button.module.mjs +13 -13
  56. package/esm2022/button-toggle/button-toggle.component.mjs +381 -0
  57. package/{esm2020 → esm2022}/button-toggle/button-toggle.module.mjs +5 -5
  58. package/esm2022/card/card.component.mjs +80 -0
  59. package/{esm2020 → esm2022}/card/card.module.mjs +9 -9
  60. package/{esm2020 → esm2022}/checkbox/checkbox-module.mjs +5 -5
  61. package/{esm2020 → esm2022}/checkbox/checkbox-required-validator.mjs +4 -4
  62. package/esm2022/checkbox/checkbox.mjs +300 -0
  63. package/{esm2020 → esm2022}/code-block/actionbar.component.mjs +4 -4
  64. package/esm2022/code-block/code-block.component.mjs +157 -0
  65. package/esm2022/code-block/code-block.module.mjs +60 -0
  66. package/esm2022/core/common-behaviors/color.mjs +33 -0
  67. package/{esm2020 → esm2022}/core/common-behaviors/common-module.mjs +5 -5
  68. package/{esm2020 → esm2022}/core/common-behaviors/disabled.mjs +6 -6
  69. package/{esm2020 → esm2022}/core/common-behaviors/tabindex.mjs +6 -6
  70. package/{esm2020 → esm2022}/core/error/error-options.mjs +7 -7
  71. package/{esm2020 → esm2022}/core/formatters/date/formatter.mjs +4 -4
  72. package/{esm2020 → esm2022}/core/formatters/date/formatter.pipe.mjs +40 -40
  73. package/esm2022/core/formatters/index.mjs +86 -0
  74. package/esm2022/core/formatters/number/formatter.mjs +350 -0
  75. package/{esm2020 → esm2022}/core/forms/forms-module.mjs +7 -7
  76. package/{esm2020 → esm2022}/core/forms/forms.directive.mjs +7 -7
  77. package/{esm2020 → esm2022}/core/highlight/highlight.pipe.mjs +4 -4
  78. package/{esm2020 → esm2022}/core/highlight/index.mjs +5 -5
  79. package/{esm2020 → esm2022}/core/line/line.mjs +8 -8
  80. package/esm2022/core/locales/en-US.mjs +21 -0
  81. package/esm2022/core/locales/es-LA.mjs +27 -0
  82. package/esm2022/core/locales/fa-IR.mjs +28 -0
  83. package/{esm2020 → esm2022}/core/locales/locale-service.mjs +7 -7
  84. package/{esm2020 → esm2022}/core/locales/locale-service.module.mjs +7 -7
  85. package/esm2022/core/locales/pt-BR.mjs +27 -0
  86. package/esm2022/core/locales/ru-RU.mjs +21 -0
  87. package/esm2022/core/locales/zh-CN.mjs +26 -0
  88. package/{esm2020 → esm2022}/core/option/action.mjs +9 -9
  89. package/{esm2020 → esm2022}/core/option/optgroup.mjs +4 -4
  90. package/{esm2020 → esm2022}/core/option/option-module.mjs +5 -5
  91. package/esm2022/core/option/option.mjs +298 -0
  92. package/esm2022/core/overlay/overlay-position-map.mjs +251 -0
  93. package/{esm2020 → esm2022}/core/pop-up/pop-up-trigger.mjs +4 -4
  94. package/{esm2020 → esm2022}/core/pop-up/pop-up.mjs +4 -4
  95. package/{esm2020 → esm2022}/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  96. package/{esm2020 → esm2022}/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +5 -5
  97. package/esm2022/core/services/measure-scrollbar.service.mjs +48 -0
  98. package/{esm2020 → esm2022}/core/utils/data-size/data-size.pipe.mjs +8 -8
  99. package/{esm2020 → esm2022}/core/version.mjs +2 -2
  100. package/{esm2020 → esm2022}/datepicker/calendar-body.component.mjs +4 -4
  101. package/esm2022/datepicker/calendar-header.component.mjs +135 -0
  102. package/esm2022/datepicker/calendar.component.mjs +166 -0
  103. package/esm2022/datepicker/datepicker-input.directive.mjs +955 -0
  104. package/{esm2020 → esm2022}/datepicker/datepicker-intl.mjs +4 -4
  105. package/{esm2020 → esm2022}/datepicker/datepicker-module.mjs +38 -38
  106. package/esm2022/datepicker/datepicker-toggle.component.mjs +86 -0
  107. package/esm2022/datepicker/datepicker.component.mjs +393 -0
  108. package/esm2022/datepicker/month-view.component.mjs +149 -0
  109. package/{esm2020 → esm2022}/divider/divider.component.mjs +4 -4
  110. package/{esm2020 → esm2022}/divider/divider.module.mjs +5 -5
  111. package/{esm2020 → esm2022}/dl/dl.component.mjs +10 -10
  112. package/{esm2020 → esm2022}/dl/dl.module.mjs +13 -13
  113. package/{esm2020 → esm2022}/dropdown/dropdown-content.directive.mjs +4 -4
  114. package/{esm2020 → esm2022}/dropdown/dropdown-item.component.mjs +6 -6
  115. package/esm2022/dropdown/dropdown-trigger.directive.mjs +489 -0
  116. package/esm2022/dropdown/dropdown.component.mjs +292 -0
  117. package/{esm2020 → esm2022}/dropdown/dropdown.module.mjs +15 -15
  118. package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +106 -0
  119. package/{esm2020 → esm2022}/file-upload/file-drop.mjs +4 -4
  120. package/{esm2020 → esm2022}/file-upload/file-upload.module.mjs +25 -25
  121. package/esm2022/file-upload/multiple-file-upload.component.mjs +165 -0
  122. package/esm2022/file-upload/single-file-upload.component.mjs +134 -0
  123. package/{esm2020 → esm2022}/form-field/cleaner.mjs +4 -4
  124. package/esm2022/form-field/form-field.mjs +267 -0
  125. package/{esm2020 → esm2022}/form-field/form-field.module.mjs +23 -23
  126. package/{esm2020 → esm2022}/form-field/hint.mjs +4 -4
  127. package/{esm2020 → esm2022}/form-field/password-hint.mjs +9 -9
  128. package/{esm2020 → esm2022}/form-field/prefix.mjs +4 -4
  129. package/{esm2020 → esm2022}/form-field/stepper.mjs +6 -6
  130. package/{esm2020 → esm2022}/form-field/suffix.mjs +4 -4
  131. package/esm2022/form-field/validate.directive.mjs +158 -0
  132. package/{esm2020 → esm2022}/icon/icon.component.mjs +7 -7
  133. package/{esm2020 → esm2022}/icon/icon.module.mjs +11 -11
  134. package/{esm2020 → esm2022}/input/input-number-validators.mjs +7 -7
  135. package/esm2022/input/input-number.mjs +168 -0
  136. package/esm2022/input/input-password.mjs +343 -0
  137. package/esm2022/input/input.mjs +297 -0
  138. package/{esm2020 → esm2022}/input/input.module.mjs +23 -23
  139. package/esm2022/link/link.component.mjs +122 -0
  140. package/{esm2020 → esm2022}/link/link.module.mjs +7 -7
  141. package/esm2022/list/list-selection.component.mjs +705 -0
  142. package/{esm2020 → esm2022}/list/list.component.mjs +7 -7
  143. package/{esm2020 → esm2022}/list/list.module.mjs +20 -20
  144. package/esm2022/loader-overlay/loader-overlay.component.mjs +103 -0
  145. package/{esm2020 → esm2022}/loader-overlay/loader-overlay.module.mjs +17 -17
  146. package/{esm2020 → esm2022}/markdown/markdown.component.mjs +13 -13
  147. package/{esm2020 → esm2022}/markdown/markdown.module.mjs +5 -5
  148. package/{esm2020 → esm2022}/markdown/markdown.service.mjs +4 -4
  149. package/{esm2020 → esm2022}/modal/css-unit.pipe.mjs +4 -4
  150. package/esm2022/modal/modal-control.service.mjs +85 -0
  151. package/esm2022/modal/modal.component.mjs +520 -0
  152. package/{esm2020 → esm2022}/modal/modal.directive.mjs +13 -13
  153. package/esm2022/modal/modal.module.mjs +75 -0
  154. package/{esm2020 → esm2022}/modal/modal.service.mjs +8 -8
  155. package/esm2022/navbar/navbar-item.component.mjs +606 -0
  156. package/esm2022/navbar/navbar.component.mjs +248 -0
  157. package/{esm2020 → esm2022}/navbar/navbar.module.mjs +37 -37
  158. package/{esm2020 → esm2022}/navbar/vertical-navbar.component.mjs +20 -17
  159. package/esm2022/popover/popover-confirm.component.mjs +108 -0
  160. package/esm2022/popover/popover.component.mjs +266 -0
  161. package/{esm2020 → esm2022}/popover/popover.module.mjs +8 -8
  162. package/{esm2020 → esm2022}/progress-bar/progress-bar.component.mjs +4 -4
  163. package/{esm2020 → esm2022}/progress-bar/progress-bar.module.mjs +7 -7
  164. package/{esm2020 → esm2022}/progress-spinner/progress-spinner.component.mjs +12 -12
  165. package/{esm2020 → esm2022}/progress-spinner/progress-spinner.module.mjs +7 -7
  166. package/esm2022/radio/radio.component.mjs +457 -0
  167. package/{esm2020 → esm2022}/radio/radio.module.mjs +5 -5
  168. package/esm2022/select/select-option.directive.mjs +65 -0
  169. package/esm2022/select/select.component.mjs +1160 -0
  170. package/{esm2020 → esm2022}/select/select.module.mjs +32 -32
  171. package/esm2022/sidebar/sidebar.component.mjs +146 -0
  172. package/{esm2020 → esm2022}/sidebar/sidebar.module.mjs +9 -9
  173. package/esm2022/sidepanel/sidepanel-container.component.mjs +110 -0
  174. package/{esm2020 → esm2022}/sidepanel/sidepanel-directives.mjs +18 -18
  175. package/{esm2020 → esm2022}/sidepanel/sidepanel.module.mjs +32 -32
  176. package/{esm2020 → esm2022}/sidepanel/sidepanel.service.mjs +10 -10
  177. package/esm2022/splitter/splitter.component.mjs +482 -0
  178. package/{esm2020 → esm2022}/splitter/splitter.module.mjs +12 -12
  179. package/{esm2020 → esm2022}/table/table.component.mjs +4 -4
  180. package/{esm2020 → esm2022}/table/table.module.mjs +9 -9
  181. package/esm2022/tabs/paginated-tab-header.mjs +488 -0
  182. package/esm2022/tabs/tab-body.component.mjs +179 -0
  183. package/{esm2020 → esm2022}/tabs/tab-content.directive.mjs +4 -4
  184. package/esm2022/tabs/tab-group.component.mjs +349 -0
  185. package/{esm2020 → esm2022}/tabs/tab-header.component.mjs +4 -4
  186. package/{esm2020 → esm2022}/tabs/tab-label-wrapper.directive.mjs +4 -4
  187. package/{esm2020 → esm2022}/tabs/tab-label.directive.mjs +4 -4
  188. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +111 -0
  189. package/{esm2020 → esm2022}/tabs/tab.component.mjs +43 -34
  190. package/{esm2020 → esm2022}/tabs/tabs.module.mjs +42 -42
  191. package/esm2022/tags/tag-input.mjs +250 -0
  192. package/esm2022/tags/tag-list.component.mjs +718 -0
  193. package/esm2022/tags/tag.component.mjs +381 -0
  194. package/esm2022/tags/tag.module.mjs +56 -0
  195. package/esm2022/textarea/textarea.component.mjs +254 -0
  196. package/{esm2020 → esm2022}/textarea/textarea.module.mjs +5 -5
  197. package/esm2022/timepicker/timepicker.directive.mjs +647 -0
  198. package/{esm2020 → esm2022}/timepicker/timepicker.module.mjs +11 -11
  199. package/{esm2020 → esm2022}/timezone/cities-by-filter.pipe.mjs +4 -4
  200. package/esm2022/timezone/timezone-option.component.mjs +48 -0
  201. package/{esm2020 → esm2022}/timezone/timezone-option.directive.mjs +4 -4
  202. package/{esm2020 → esm2022}/timezone/timezone-select.component.mjs +11 -11
  203. package/{esm2020 → esm2022}/timezone/timezone.module.mjs +29 -29
  204. package/{esm2020 → esm2022}/timezone/utc-offset.pipe.mjs +4 -4
  205. package/esm2022/title/title.directive.mjs +107 -0
  206. package/{esm2020 → esm2022}/title/title.module.mjs +5 -5
  207. package/{esm2020 → esm2022}/toast/toast-container.component.mjs +4 -4
  208. package/esm2022/toast/toast.component.mjs +92 -0
  209. package/esm2022/toast/toast.module.mjs +48 -0
  210. package/esm2022/toast/toast.service.mjs +188 -0
  211. package/esm2022/toggle/toggle.component.mjs +156 -0
  212. package/{esm2020 → esm2022}/toggle/toggle.module.mjs +5 -5
  213. package/esm2022/tooltip/tooltip.component.mjs +299 -0
  214. package/{esm2020 → esm2022}/tooltip/tooltip.module.mjs +14 -14
  215. package/esm2022/tree/data-source/flat-data-source.mjs +162 -0
  216. package/{esm2020 → esm2022}/tree/node.mjs +4 -4
  217. package/{esm2020 → esm2022}/tree/outlet.mjs +4 -4
  218. package/esm2022/tree/padding.directive.mjs +113 -0
  219. package/esm2022/tree/toggle.mjs +81 -0
  220. package/esm2022/tree/tree-base.mjs +243 -0
  221. package/esm2022/tree/tree-option.component.mjs +303 -0
  222. package/esm2022/tree/tree-selection.component.mjs +558 -0
  223. package/{esm2020 → esm2022}/tree/tree.mjs +4 -4
  224. package/{esm2020 → esm2022}/tree/tree.module.mjs +21 -21
  225. package/esm2022/tree-select/tree-select.component.mjs +936 -0
  226. package/{esm2020 → esm2022}/tree-select/tree-select.module.mjs +17 -17
  227. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-autocomplete.mjs +80 -77
  228. package/fesm2022/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  229. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button-toggle.mjs +47 -47
  230. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
  231. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button.mjs +25 -25
  232. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button.mjs.map +1 -1
  233. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-card.mjs +17 -17
  234. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-card.mjs.map +1 -1
  235. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-checkbox.mjs +39 -39
  236. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  237. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-code-block.mjs +34 -34
  238. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-code-block.mjs.map +1 -1
  239. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-core.mjs +598 -222
  240. package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -0
  241. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-datepicker.mjs +335 -351
  242. package/fesm2022/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  243. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-divider.mjs +7 -7
  244. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-divider.mjs.map +1 -1
  245. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dl.mjs +21 -21
  246. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dl.mjs.map +1 -1
  247. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dropdown.mjs +89 -89
  248. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  249. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-ellipsis-center.mjs +11 -11
  250. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-ellipsis-center.mjs.map +1 -1
  251. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-file-upload.mjs +55 -47
  252. package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -0
  253. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-form-field.mjs +80 -80
  254. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-form-field.mjs.map +1 -1
  255. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-icon.mjs +16 -16
  256. package/fesm2022/ptsecurity-mosaic-icon.mjs.map +1 -0
  257. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-input.mjs +128 -128
  258. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-input.mjs.map +1 -1
  259. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-link.mjs +22 -22
  260. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-link.mjs.map +1 -1
  261. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-list.mjs +86 -86
  262. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-list.mjs.map +1 -1
  263. package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +155 -0
  264. package/{fesm2015 → fesm2022}/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
  265. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-markdown.mjs +19 -19
  266. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-markdown.mjs.map +1 -1
  267. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-modal.mjs +157 -144
  268. package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -0
  269. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-navbar.mjs +184 -176
  270. package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -0
  271. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-popover.mjs +37 -37
  272. package/{fesm2015 → fesm2022}/ptsecurity-mosaic-popover.mjs.map +1 -1
  273. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-bar.mjs +9 -9
  274. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  275. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-spinner.mjs +18 -18
  276. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  277. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-radio.mjs +78 -78
  278. package/{fesm2015 → fesm2022}/ptsecurity-mosaic-radio.mjs.map +1 -1
  279. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-select.mjs +188 -174
  280. package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -0
  281. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidebar.mjs +29 -29
  282. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidebar.mjs.map +1 -1
  283. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidepanel.mjs +63 -63
  284. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  285. package/{fesm2015 → fesm2022}/ptsecurity-mosaic-splitter.mjs +55 -55
  286. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-splitter.mjs.map +1 -1
  287. package/fesm2022/ptsecurity-mosaic-table.mjs +45 -0
  288. package/fesm2022/ptsecurity-mosaic-table.mjs.map +1 -0
  289. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tabs.mjs +188 -179
  290. package/fesm2022/ptsecurity-mosaic-tabs.mjs.map +1 -0
  291. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tags.mjs +131 -131
  292. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tags.mjs.map +1 -1
  293. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-textarea.mjs +41 -41
  294. package/{fesm2015 → fesm2022}/ptsecurity-mosaic-textarea.mjs.map +1 -1
  295. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timepicker.mjs +95 -95
  296. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timepicker.mjs.map +1 -1
  297. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timezone.mjs +53 -53
  298. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timezone.mjs.map +1 -1
  299. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-title.mjs +18 -18
  300. package/fesm2022/ptsecurity-mosaic-title.mjs.map +1 -0
  301. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toast.mjs +47 -41
  302. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toast.mjs.map +1 -1
  303. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toggle.mjs +35 -35
  304. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toggle.mjs.map +1 -1
  305. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tooltip.mjs +47 -47
  306. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  307. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tree-select.mjs +122 -122
  308. package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  309. package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tree.mjs +202 -198
  310. package/fesm2022/ptsecurity-mosaic-tree.mjs.map +1 -0
  311. package/file-upload/file-upload.d.ts +1 -1
  312. package/file-upload/multiple-file-upload.component.d.ts +5 -4
  313. package/file-upload/single-file-upload.component.d.ts +5 -4
  314. package/form-field/_form-field-theme.scss +4 -0
  315. package/form-field/form-field.d.ts +1 -1
  316. package/form-field/hint.d.ts +1 -1
  317. package/form-field/password-hint.d.ts +1 -1
  318. package/icon/icon.component.d.ts +1 -1
  319. package/input/input-number-validators.d.ts +2 -2
  320. package/input/input-number.d.ts +1 -1
  321. package/input/input-password.d.ts +2 -2
  322. package/input/input.d.ts +1 -1
  323. package/link/link.component.d.ts +1 -1
  324. package/list/list-selection.component.d.ts +2 -2
  325. package/loader-overlay/loader-overlay.component.d.ts +1 -1
  326. package/loader-overlay/loader-overlay.scss +3 -0
  327. package/markdown/markdown.component.d.ts +1 -1
  328. package/modal/modal.component.d.ts +5 -2
  329. package/modal/modal.module.d.ts +2 -1
  330. package/modal/modal.scss +14 -2
  331. package/modal/modal.type.d.ts +3 -3
  332. package/navbar/navbar-item.component.d.ts +3 -3
  333. package/navbar/navbar.component.d.ts +7 -4
  334. package/navbar/vertical-navbar.component.d.ts +5 -3
  335. package/package.json +149 -239
  336. package/popover/popover-confirm.component.d.ts +1 -1
  337. package/popover/popover.component.d.ts +1 -1
  338. package/prebuilt-themes/dark-theme.css +1 -1
  339. package/prebuilt-themes/default-theme.css +1 -1
  340. package/prebuilt-visual/default-visual.css +1 -1
  341. package/progress-bar/progress-bar.component.d.ts +2 -2
  342. package/progress-spinner/progress-spinner.component.d.ts +3 -3
  343. package/radio/_radio-theme.scss +4 -0
  344. package/radio/radio.component.d.ts +2 -2
  345. package/select/select.component.d.ts +12 -9
  346. package/select/select.scss +1 -1
  347. package/sidebar/sidebar.component.d.ts +3 -3
  348. package/sidepanel/sidepanel-directives.d.ts +2 -2
  349. package/splitter/splitter.component.d.ts +3 -3
  350. package/tabs/paginated-tab-header.d.ts +3 -3
  351. package/tabs/tab-body.component.d.ts +3 -3
  352. package/tabs/tab-group.component.d.ts +2 -2
  353. package/tabs/tab-header.component.d.ts +2 -2
  354. package/tabs/tab-label-wrapper.directive.d.ts +1 -1
  355. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +1 -1
  356. package/tabs/tab.component.d.ts +1 -1
  357. package/tags/tag-input.d.ts +1 -1
  358. package/tags/tag-list.component.d.ts +1 -1
  359. package/tags/tag.component.d.ts +1 -1
  360. package/textarea/textarea.component.d.ts +1 -1
  361. package/timepicker/timepicker.directive.d.ts +1 -1
  362. package/timezone/timezone-option.component.d.ts +1 -1
  363. package/toast/toast.type.d.ts +1 -1
  364. package/toggle/toggle.component.d.ts +2 -2
  365. package/tooltip/tooltip.component.d.ts +3 -3
  366. package/tree/node.d.ts +1 -1
  367. package/tree/padding.directive.d.ts +1 -1
  368. package/tree/toggle.d.ts +2 -2
  369. package/tree/tree-base.d.ts +1 -1
  370. package/tree/tree-option.component.d.ts +1 -1
  371. package/tree/tree-option.scss +4 -2
  372. package/tree/tree-selection.component.d.ts +1 -1
  373. package/tree-select/tree-select.component.d.ts +1 -1
  374. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +0 -552
  375. package/esm2020/button/button.component.mjs +0 -148
  376. package/esm2020/button-toggle/button-toggle.component.mjs +0 -381
  377. package/esm2020/card/card.component.mjs +0 -80
  378. package/esm2020/checkbox/checkbox.mjs +0 -300
  379. package/esm2020/code-block/code-block.component.mjs +0 -157
  380. package/esm2020/code-block/code-block.module.mjs +0 -60
  381. package/esm2020/core/common-behaviors/color.mjs +0 -33
  382. package/esm2020/core/formatters/index.mjs +0 -78
  383. package/esm2020/core/formatters/number/formatter.mjs +0 -129
  384. package/esm2020/core/locales/en-US.mjs +0 -10
  385. package/esm2020/core/locales/es-LA.mjs +0 -6
  386. package/esm2020/core/locales/fa-IR.mjs +0 -6
  387. package/esm2020/core/locales/pt-BR.mjs +0 -6
  388. package/esm2020/core/locales/ru-RU.mjs +0 -10
  389. package/esm2020/core/locales/zh-CN.mjs +0 -6
  390. package/esm2020/core/option/option.mjs +0 -262
  391. package/esm2020/core/overlay/overlay-position-map.mjs +0 -245
  392. package/esm2020/core/services/measure-scrollbar.service.mjs +0 -48
  393. package/esm2020/datepicker/calendar-header.component.mjs +0 -134
  394. package/esm2020/datepicker/calendar.component.mjs +0 -175
  395. package/esm2020/datepicker/datepicker-input.directive.mjs +0 -954
  396. package/esm2020/datepicker/datepicker-toggle.component.mjs +0 -86
  397. package/esm2020/datepicker/datepicker.component.mjs +0 -393
  398. package/esm2020/datepicker/month-view.component.mjs +0 -158
  399. package/esm2020/dropdown/dropdown-trigger.directive.mjs +0 -489
  400. package/esm2020/dropdown/dropdown.component.mjs +0 -292
  401. package/esm2020/ellipsis-center/ellipsis-center.directive.mjs +0 -106
  402. package/esm2020/file-upload/multiple-file-upload.component.mjs +0 -161
  403. package/esm2020/file-upload/single-file-upload.component.mjs +0 -130
  404. package/esm2020/form-field/form-field.mjs +0 -267
  405. package/esm2020/form-field/validate.directive.mjs +0 -158
  406. package/esm2020/input/input-number.mjs +0 -168
  407. package/esm2020/input/input-password.mjs +0 -343
  408. package/esm2020/input/input.mjs +0 -297
  409. package/esm2020/link/link.component.mjs +0 -122
  410. package/esm2020/list/list-selection.component.mjs +0 -705
  411. package/esm2020/loader-overlay/loader-overlay.component.mjs +0 -103
  412. package/esm2020/modal/modal-control.service.mjs +0 -85
  413. package/esm2020/modal/modal.component.mjs +0 -510
  414. package/esm2020/modal/modal.module.mjs +0 -71
  415. package/esm2020/navbar/navbar-item.component.mjs +0 -606
  416. package/esm2020/navbar/navbar.component.mjs +0 -239
  417. package/esm2020/popover/popover-confirm.component.mjs +0 -108
  418. package/esm2020/popover/popover.component.mjs +0 -266
  419. package/esm2020/radio/radio.component.mjs +0 -457
  420. package/esm2020/select/select-option.directive.mjs +0 -65
  421. package/esm2020/select/select.component.mjs +0 -1146
  422. package/esm2020/sidebar/sidebar.component.mjs +0 -146
  423. package/esm2020/sidepanel/sidepanel-container.component.mjs +0 -110
  424. package/esm2020/splitter/splitter.component.mjs +0 -482
  425. package/esm2020/tabs/paginated-tab-header.mjs +0 -488
  426. package/esm2020/tabs/tab-body.component.mjs +0 -179
  427. package/esm2020/tabs/tab-group.component.mjs +0 -349
  428. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +0 -111
  429. package/esm2020/tags/tag-input.mjs +0 -250
  430. package/esm2020/tags/tag-list.component.mjs +0 -718
  431. package/esm2020/tags/tag.component.mjs +0 -381
  432. package/esm2020/tags/tag.module.mjs +0 -56
  433. package/esm2020/textarea/textarea.component.mjs +0 -254
  434. package/esm2020/timepicker/timepicker.directive.mjs +0 -647
  435. package/esm2020/timezone/timezone-option.component.mjs +0 -48
  436. package/esm2020/title/title.directive.mjs +0 -107
  437. package/esm2020/toast/toast.component.mjs +0 -92
  438. package/esm2020/toast/toast.module.mjs +0 -42
  439. package/esm2020/toast/toast.service.mjs +0 -188
  440. package/esm2020/toggle/toggle.component.mjs +0 -156
  441. package/esm2020/tooltip/tooltip.component.mjs +0 -299
  442. package/esm2020/tree/data-source/flat-data-source.mjs +0 -162
  443. package/esm2020/tree/padding.directive.mjs +0 -113
  444. package/esm2020/tree/toggle.mjs +0 -81
  445. package/esm2020/tree/tree-base.mjs +0 -243
  446. package/esm2020/tree/tree-option.component.mjs +0 -300
  447. package/esm2020/tree/tree-selection.component.mjs +0 -557
  448. package/esm2020/tree-select/tree-select.component.mjs +0 -936
  449. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +0 -753
  450. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +0 -1
  451. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +0 -405
  452. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +0 -1
  453. package/fesm2015/ptsecurity-mosaic-button.mjs +0 -193
  454. package/fesm2015/ptsecurity-mosaic-button.mjs.map +0 -1
  455. package/fesm2015/ptsecurity-mosaic-card.mjs +0 -111
  456. package/fesm2015/ptsecurity-mosaic-card.mjs.map +0 -1
  457. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +0 -351
  458. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +0 -1
  459. package/fesm2015/ptsecurity-mosaic-code-block.mjs +0 -280
  460. package/fesm2015/ptsecurity-mosaic-code-block.mjs.map +0 -1
  461. package/fesm2015/ptsecurity-mosaic-core.mjs +0 -2314
  462. package/fesm2015/ptsecurity-mosaic-core.mjs.map +0 -1
  463. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +0 -2112
  464. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +0 -1
  465. package/fesm2015/ptsecurity-mosaic-divider.mjs +0 -61
  466. package/fesm2015/ptsecurity-mosaic-divider.mjs.map +0 -1
  467. package/fesm2015/ptsecurity-mosaic-dl.mjs +0 -126
  468. package/fesm2015/ptsecurity-mosaic-dl.mjs.map +0 -1
  469. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +0 -1115
  470. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +0 -1
  471. package/fesm2015/ptsecurity-mosaic-ellipsis-center.mjs +0 -113
  472. package/fesm2015/ptsecurity-mosaic-ellipsis-center.mjs.map +0 -1
  473. package/fesm2015/ptsecurity-mosaic-file-upload.mjs +0 -392
  474. package/fesm2015/ptsecurity-mosaic-file-upload.mjs.map +0 -1
  475. package/fesm2015/ptsecurity-mosaic-form-field.mjs +0 -772
  476. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +0 -1
  477. package/fesm2015/ptsecurity-mosaic-icon.mjs +0 -86
  478. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +0 -1
  479. package/fesm2015/ptsecurity-mosaic-input.mjs +0 -951
  480. package/fesm2015/ptsecurity-mosaic-input.mjs.map +0 -1
  481. package/fesm2015/ptsecurity-mosaic-link.mjs +0 -150
  482. package/fesm2015/ptsecurity-mosaic-link.mjs.map +0 -1
  483. package/fesm2015/ptsecurity-mosaic-list.mjs +0 -807
  484. package/fesm2015/ptsecurity-mosaic-list.mjs.map +0 -1
  485. package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs +0 -157
  486. package/fesm2015/ptsecurity-mosaic-markdown.mjs +0 -128
  487. package/fesm2015/ptsecurity-mosaic-markdown.mjs.map +0 -1
  488. package/fesm2015/ptsecurity-mosaic-modal.mjs +0 -875
  489. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +0 -1
  490. package/fesm2015/ptsecurity-mosaic-navbar.mjs +0 -1055
  491. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +0 -1
  492. package/fesm2015/ptsecurity-mosaic-popover.mjs +0 -411
  493. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +0 -74
  494. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +0 -1
  495. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +0 -93
  496. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +0 -1
  497. package/fesm2015/ptsecurity-mosaic-radio.mjs +0 -481
  498. package/fesm2015/ptsecurity-mosaic-select.mjs +0 -1286
  499. package/fesm2015/ptsecurity-mosaic-select.mjs.map +0 -1
  500. package/fesm2015/ptsecurity-mosaic-sidebar.mjs +0 -202
  501. package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +0 -1
  502. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +0 -622
  503. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +0 -1
  504. package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +0 -1
  505. package/fesm2015/ptsecurity-mosaic-table.mjs +0 -45
  506. package/fesm2015/ptsecurity-mosaic-table.mjs.map +0 -1
  507. package/fesm2015/ptsecurity-mosaic-tabs.mjs +0 -1523
  508. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +0 -1
  509. package/fesm2015/ptsecurity-mosaic-tags.mjs +0 -1397
  510. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +0 -1
  511. package/fesm2015/ptsecurity-mosaic-textarea.mjs +0 -280
  512. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +0 -708
  513. package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +0 -1
  514. package/fesm2015/ptsecurity-mosaic-timezone.mjs +0 -316
  515. package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +0 -1
  516. package/fesm2015/ptsecurity-mosaic-title.mjs +0 -128
  517. package/fesm2015/ptsecurity-mosaic-title.mjs.map +0 -1
  518. package/fesm2015/ptsecurity-mosaic-toast.mjs +0 -379
  519. package/fesm2015/ptsecurity-mosaic-toast.mjs.map +0 -1
  520. package/fesm2015/ptsecurity-mosaic-toggle.mjs +0 -178
  521. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +0 -1
  522. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +0 -369
  523. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +0 -1
  524. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +0 -983
  525. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +0 -1
  526. package/fesm2015/ptsecurity-mosaic-tree.mjs +0 -1816
  527. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +0 -1
  528. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +0 -1
  529. package/fesm2020/ptsecurity-mosaic-core.mjs.map +0 -1
  530. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +0 -1
  531. package/fesm2020/ptsecurity-mosaic-file-upload.mjs.map +0 -1
  532. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +0 -1
  533. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs +0 -155
  534. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs.map +0 -1
  535. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +0 -1
  536. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +0 -1
  537. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +0 -1
  538. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +0 -1
  539. package/fesm2020/ptsecurity-mosaic-select.mjs.map +0 -1
  540. package/fesm2020/ptsecurity-mosaic-splitter.mjs +0 -524
  541. package/fesm2020/ptsecurity-mosaic-table.mjs +0 -45
  542. package/fesm2020/ptsecurity-mosaic-table.mjs.map +0 -1
  543. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +0 -1
  544. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +0 -1
  545. package/fesm2020/ptsecurity-mosaic-title.mjs.map +0 -1
  546. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +0 -1
  547. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +0 -1
  548. package/fesm2020/ptsecurity-mosaic.mjs +0 -4
  549. package/fesm2020/ptsecurity-mosaic.mjs.map +0 -1
  550. /package/{esm2020 → esm2022}/autocomplete/index.mjs +0 -0
  551. /package/{esm2020 → esm2022}/autocomplete/ptsecurity-mosaic-autocomplete.mjs +0 -0
  552. /package/{esm2020 → esm2022}/autocomplete/public-api.mjs +0 -0
  553. /package/{esm2020 → esm2022}/button/index.mjs +0 -0
  554. /package/{esm2020 → esm2022}/button/ptsecurity-mosaic-button.mjs +0 -0
  555. /package/{esm2020 → esm2022}/button/public-api.mjs +0 -0
  556. /package/{esm2020 → esm2022}/button-toggle/index.mjs +0 -0
  557. /package/{esm2020 → esm2022}/button-toggle/ptsecurity-mosaic-button-toggle.mjs +0 -0
  558. /package/{esm2020 → esm2022}/button-toggle/public-api.mjs +0 -0
  559. /package/{esm2020 → esm2022}/card/index.mjs +0 -0
  560. /package/{esm2020 → esm2022}/card/ptsecurity-mosaic-card.mjs +0 -0
  561. /package/{esm2020 → esm2022}/card/public-api.mjs +0 -0
  562. /package/{esm2020 → esm2022}/checkbox/checkbox-config.mjs +0 -0
  563. /package/{esm2020 → esm2022}/checkbox/index.mjs +0 -0
  564. /package/{esm2020 → esm2022}/checkbox/ptsecurity-mosaic-checkbox.mjs +0 -0
  565. /package/{esm2020 → esm2022}/checkbox/public-api.mjs +0 -0
  566. /package/{esm2020 → esm2022}/code-block/code-block.types.mjs +0 -0
  567. /package/{esm2020 → esm2022}/code-block/index.mjs +0 -0
  568. /package/{esm2020 → esm2022}/code-block/ptsecurity-mosaic-code-block.mjs +0 -0
  569. /package/{esm2020 → esm2022}/code-block/public-api.mjs +0 -0
  570. /package/{esm2020 → esm2022}/core/animation/animation.mjs +0 -0
  571. /package/{esm2020 → esm2022}/core/animation/fade-animations.mjs +0 -0
  572. /package/{esm2020 → esm2022}/core/animation/index.mjs +0 -0
  573. /package/{esm2020 → esm2022}/core/animation/select-animations.mjs +0 -0
  574. /package/{esm2020 → esm2022}/core/common-behaviors/constructor.mjs +0 -0
  575. /package/{esm2020 → esm2022}/core/common-behaviors/error-state.mjs +0 -0
  576. /package/{esm2020 → esm2022}/core/common-behaviors/index.mjs +0 -0
  577. /package/{esm2020 → esm2022}/core/datetime/date-adapter.mjs +0 -0
  578. /package/{esm2020 → esm2022}/core/datetime/date-formats.mjs +0 -0
  579. /package/{esm2020 → esm2022}/core/datetime/index.mjs +0 -0
  580. /package/{esm2020 → esm2022}/core/forms/index.mjs +0 -0
  581. /package/{esm2020 → esm2022}/core/index.mjs +0 -0
  582. /package/{esm2020 → esm2022}/core/label/label-options.mjs +0 -0
  583. /package/{esm2020 → esm2022}/core/locales/index.mjs +0 -0
  584. /package/{esm2020 → esm2022}/core/option/index.mjs +0 -0
  585. /package/{esm2020 → esm2022}/core/pop-up/constants.mjs +0 -0
  586. /package/{esm2020 → esm2022}/core/pop-up/index.mjs +0 -0
  587. /package/{esm2020 → esm2022}/core/ptsecurity-mosaic-core.mjs +0 -0
  588. /package/{esm2020 → esm2022}/core/public-api.mjs +0 -0
  589. /package/{esm2020 → esm2022}/core/select/constants.mjs +0 -0
  590. /package/{esm2020 → esm2022}/core/select/errors.mjs +0 -0
  591. /package/{esm2020 → esm2022}/core/select/events.mjs +0 -0
  592. /package/{esm2020 → esm2022}/core/select/index.mjs +0 -0
  593. /package/{esm2020 → esm2022}/core/selection/constants.mjs +0 -0
  594. /package/{esm2020 → esm2022}/core/selection/index.mjs +0 -0
  595. /package/{esm2020 → esm2022}/core/title/index.mjs +0 -0
  596. /package/{esm2020 → esm2022}/core/title/title-text-ref.mjs +0 -0
  597. /package/{esm2020 → esm2022}/core/utils/data-size/config.mjs +0 -0
  598. /package/{esm2020 → esm2022}/core/utils/data-size/index.mjs +0 -0
  599. /package/{esm2020 → esm2022}/core/utils/data-size/size.mjs +0 -0
  600. /package/{esm2020 → esm2022}/core/utils/index.mjs +0 -0
  601. /package/{esm2020 → esm2022}/core/utils/public-api.mjs +0 -0
  602. /package/{esm2020 → esm2022}/core/utils/utils.mjs +0 -0
  603. /package/{esm2020 → esm2022}/core/validation/index.mjs +0 -0
  604. /package/{esm2020 → esm2022}/core/validation/validation.mjs +0 -0
  605. /package/{esm2020 → esm2022}/datepicker/datepicker-animations.mjs +0 -0
  606. /package/{esm2020 → esm2022}/datepicker/datepicker-errors.mjs +0 -0
  607. /package/{esm2020 → esm2022}/datepicker/index.mjs +0 -0
  608. /package/{esm2020 → esm2022}/datepicker/ptsecurity-mosaic-datepicker.mjs +0 -0
  609. /package/{esm2020 → esm2022}/datepicker/public-api.mjs +0 -0
  610. /package/{esm2020 → esm2022}/divider/index.mjs +0 -0
  611. /package/{esm2020 → esm2022}/divider/ptsecurity-mosaic-divider.mjs +0 -0
  612. /package/{esm2020 → esm2022}/divider/public-api.mjs +0 -0
  613. /package/{esm2020 → esm2022}/dl/index.mjs +0 -0
  614. /package/{esm2020 → esm2022}/dl/ptsecurity-mosaic-dl.mjs +0 -0
  615. /package/{esm2020 → esm2022}/dl/public-api.mjs +0 -0
  616. /package/{esm2020 → esm2022}/dropdown/dropdown-animations.mjs +0 -0
  617. /package/{esm2020 → esm2022}/dropdown/dropdown-errors.mjs +0 -0
  618. /package/{esm2020 → esm2022}/dropdown/dropdown.types.mjs +0 -0
  619. /package/{esm2020 → esm2022}/dropdown/index.mjs +0 -0
  620. /package/{esm2020 → esm2022}/dropdown/ptsecurity-mosaic-dropdown.mjs +0 -0
  621. /package/{esm2020 → esm2022}/dropdown/public-api.mjs +0 -0
  622. /package/{esm2020 → esm2022}/ellipsis-center/index.mjs +0 -0
  623. /package/{esm2020 → esm2022}/ellipsis-center/ptsecurity-mosaic-ellipsis-center.mjs +0 -0
  624. /package/{esm2020 → esm2022}/ellipsis-center/public-api.mjs +0 -0
  625. /package/{esm2020 → esm2022}/file-upload/file-upload.mjs +0 -0
  626. /package/{esm2020 → esm2022}/file-upload/index.mjs +0 -0
  627. /package/{esm2020 → esm2022}/file-upload/ptsecurity-mosaic-file-upload.mjs +0 -0
  628. /package/{esm2020 → esm2022}/file-upload/public-api.mjs +0 -0
  629. /package/{esm2020 → esm2022}/form-field/form-field-control.mjs +0 -0
  630. /package/{esm2020 → esm2022}/form-field/form-field-errors.mjs +0 -0
  631. /package/{esm2020 → esm2022}/form-field/index.mjs +0 -0
  632. /package/{esm2020 → esm2022}/form-field/ptsecurity-mosaic-form-field.mjs +0 -0
  633. /package/{esm2020 → esm2022}/form-field/public-api.mjs +0 -0
  634. /package/{esm2020 → esm2022}/icon/index.mjs +0 -0
  635. /package/{esm2020 → esm2022}/icon/ptsecurity-mosaic-icon.mjs +0 -0
  636. /package/{esm2020 → esm2022}/icon/public-api.mjs +0 -0
  637. /package/{esm2020 → esm2022}/index.mjs +0 -0
  638. /package/{esm2020 → esm2022}/input/index.mjs +0 -0
  639. /package/{esm2020 → esm2022}/input/input-errors.mjs +0 -0
  640. /package/{esm2020 → esm2022}/input/input-value-accessor.mjs +0 -0
  641. /package/{esm2020 → esm2022}/input/ptsecurity-mosaic-input.mjs +0 -0
  642. /package/{esm2020 → esm2022}/input/public-api.mjs +0 -0
  643. /package/{esm2020 → esm2022}/link/index.mjs +0 -0
  644. /package/{esm2020 → esm2022}/link/ptsecurity-mosaic-link.mjs +0 -0
  645. /package/{esm2020 → esm2022}/link/public-api.mjs +0 -0
  646. /package/{esm2020 → esm2022}/list/index.mjs +0 -0
  647. /package/{esm2020 → esm2022}/list/ptsecurity-mosaic-list.mjs +0 -0
  648. /package/{esm2020 → esm2022}/list/public-api.mjs +0 -0
  649. /package/{esm2020 → esm2022}/loader-overlay/index.mjs +0 -0
  650. /package/{esm2020 → esm2022}/loader-overlay/ptsecurity-mosaic-loader-overlay.mjs +0 -0
  651. /package/{esm2020 → esm2022}/loader-overlay/public-api.mjs +0 -0
  652. /package/{esm2020 → esm2022}/markdown/index.mjs +0 -0
  653. /package/{esm2020 → esm2022}/markdown/markdown.values.mjs +0 -0
  654. /package/{esm2020 → esm2022}/markdown/ptsecurity-mosaic-markdown.mjs +0 -0
  655. /package/{esm2020 → esm2022}/markdown/public-api.mjs +0 -0
  656. /package/{esm2020 → esm2022}/modal/index.mjs +0 -0
  657. /package/{esm2020 → esm2022}/modal/modal-ref.class.mjs +0 -0
  658. /package/{esm2020 → esm2022}/modal/modal-util.mjs +0 -0
  659. /package/{esm2020 → esm2022}/modal/modal.type.mjs +0 -0
  660. /package/{esm2020 → esm2022}/modal/ptsecurity-mosaic-modal.mjs +0 -0
  661. /package/{esm2020 → esm2022}/modal/public-api.mjs +0 -0
  662. /package/{esm2020 → esm2022}/navbar/index.mjs +0 -0
  663. /package/{esm2020 → esm2022}/navbar/ptsecurity-mosaic-navbar.mjs +0 -0
  664. /package/{esm2020 → esm2022}/navbar/public-api.mjs +0 -0
  665. /package/{esm2020 → esm2022}/navbar/vertical-navbar.animation.mjs +0 -0
  666. /package/{esm2020 → esm2022}/popover/index.mjs +0 -0
  667. /package/{esm2020 → esm2022}/popover/popover-animations.mjs +0 -0
  668. /package/{esm2020 → esm2022}/popover/ptsecurity-mosaic-popover.mjs +0 -0
  669. /package/{esm2020 → esm2022}/popover/public-api.mjs +0 -0
  670. /package/{esm2020 → esm2022}/progress-bar/index.mjs +0 -0
  671. /package/{esm2020 → esm2022}/progress-bar/ptsecurity-mosaic-progress-bar.mjs +0 -0
  672. /package/{esm2020 → esm2022}/progress-bar/public-api.mjs +0 -0
  673. /package/{esm2020 → esm2022}/progress-spinner/index.mjs +0 -0
  674. /package/{esm2020 → esm2022}/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs +0 -0
  675. /package/{esm2020 → esm2022}/progress-spinner/public-api.mjs +0 -0
  676. /package/{esm2020 → esm2022}/ptsecurity-mosaic.mjs +0 -0
  677. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  678. /package/{esm2020 → esm2022}/radio/index.mjs +0 -0
  679. /package/{esm2020 → esm2022}/radio/ptsecurity-mosaic-radio.mjs +0 -0
  680. /package/{esm2020 → esm2022}/radio/public-api.mjs +0 -0
  681. /package/{esm2020 → esm2022}/select/index.mjs +0 -0
  682. /package/{esm2020 → esm2022}/select/ptsecurity-mosaic-select.mjs +0 -0
  683. /package/{esm2020 → esm2022}/select/public-api.mjs +0 -0
  684. /package/{esm2020 → esm2022}/sidebar/index.mjs +0 -0
  685. /package/{esm2020 → esm2022}/sidebar/ptsecurity-mosaic-sidebar.mjs +0 -0
  686. /package/{esm2020 → esm2022}/sidebar/public-api.mjs +0 -0
  687. /package/{esm2020 → esm2022}/sidebar/sidebar-animations.mjs +0 -0
  688. /package/{esm2020 → esm2022}/sidepanel/index.mjs +0 -0
  689. /package/{esm2020 → esm2022}/sidepanel/ptsecurity-mosaic-sidepanel.mjs +0 -0
  690. /package/{esm2020 → esm2022}/sidepanel/public-api.mjs +0 -0
  691. /package/{esm2020 → esm2022}/sidepanel/sidepanel-animations.mjs +0 -0
  692. /package/{esm2020 → esm2022}/sidepanel/sidepanel-config.mjs +0 -0
  693. /package/{esm2020 → esm2022}/sidepanel/sidepanel-ref.mjs +0 -0
  694. /package/{esm2020 → esm2022}/splitter/index.mjs +0 -0
  695. /package/{esm2020 → esm2022}/splitter/ptsecurity-mosaic-splitter.mjs +0 -0
  696. /package/{esm2020 → esm2022}/splitter/public-api.mjs +0 -0
  697. /package/{esm2020 → esm2022}/table/index.mjs +0 -0
  698. /package/{esm2020 → esm2022}/table/ptsecurity-mosaic-table.mjs +0 -0
  699. /package/{esm2020 → esm2022}/table/public-api.mjs +0 -0
  700. /package/{esm2020 → esm2022}/tabs/index.mjs +0 -0
  701. /package/{esm2020 → esm2022}/tabs/ptsecurity-mosaic-tabs.mjs +0 -0
  702. /package/{esm2020 → esm2022}/tabs/public-api.mjs +0 -0
  703. /package/{esm2020 → esm2022}/tabs/tab-nav-bar/index.mjs +0 -0
  704. /package/{esm2020 → esm2022}/tabs/tabs-animations.mjs +0 -0
  705. /package/{esm2020 → esm2022}/tags/index.mjs +0 -0
  706. /package/{esm2020 → esm2022}/tags/ptsecurity-mosaic-tags.mjs +0 -0
  707. /package/{esm2020 → esm2022}/tags/public-api.mjs +0 -0
  708. /package/{esm2020 → esm2022}/tags/tag-default-options.mjs +0 -0
  709. /package/{esm2020 → esm2022}/tags/tag-text-control.mjs +0 -0
  710. /package/{esm2020 → esm2022}/textarea/index.mjs +0 -0
  711. /package/{esm2020 → esm2022}/textarea/ptsecurity-mosaic-textarea.mjs +0 -0
  712. /package/{esm2020 → esm2022}/textarea/public-api.mjs +0 -0
  713. /package/{esm2020 → esm2022}/timepicker/index.mjs +0 -0
  714. /package/{esm2020 → esm2022}/timepicker/ptsecurity-mosaic-timepicker.mjs +0 -0
  715. /package/{esm2020 → esm2022}/timepicker/public-api.mjs +0 -0
  716. /package/{esm2020 → esm2022}/timepicker/timepicker.constants.mjs +0 -0
  717. /package/{esm2020 → esm2022}/timezone/index.mjs +0 -0
  718. /package/{esm2020 → esm2022}/timezone/ptsecurity-mosaic-timezone.mjs +0 -0
  719. /package/{esm2020 → esm2022}/timezone/public-api.mjs +0 -0
  720. /package/{esm2020 → esm2022}/timezone/timezone.models.mjs +0 -0
  721. /package/{esm2020 → esm2022}/timezone/timezone.utils.mjs +0 -0
  722. /package/{esm2020 → esm2022}/title/index.mjs +0 -0
  723. /package/{esm2020 → esm2022}/title/ptsecurity-mosaic-title.mjs +0 -0
  724. /package/{esm2020 → esm2022}/title/public-api.mjs +0 -0
  725. /package/{esm2020 → esm2022}/toast/index.mjs +0 -0
  726. /package/{esm2020 → esm2022}/toast/ptsecurity-mosaic-toast.mjs +0 -0
  727. /package/{esm2020 → esm2022}/toast/public-api.mjs +0 -0
  728. /package/{esm2020 → esm2022}/toast/toast-animations.mjs +0 -0
  729. /package/{esm2020 → esm2022}/toast/toast.type.mjs +0 -0
  730. /package/{esm2020 → esm2022}/toggle/index.mjs +0 -0
  731. /package/{esm2020 → esm2022}/toggle/ptsecurity-mosaic-toggle.mjs +0 -0
  732. /package/{esm2020 → esm2022}/toggle/public-api.mjs +0 -0
  733. /package/{esm2020 → esm2022}/tooltip/index.mjs +0 -0
  734. /package/{esm2020 → esm2022}/tooltip/ptsecurity-mosaic-tooltip.mjs +0 -0
  735. /package/{esm2020 → esm2022}/tooltip/public-api.mjs +0 -0
  736. /package/{esm2020 → esm2022}/tooltip/tooltip.animations.mjs +0 -0
  737. /package/{esm2020 → esm2022}/tree/control/base-tree-control.mjs +0 -0
  738. /package/{esm2020 → esm2022}/tree/control/flat-tree-control.mjs +0 -0
  739. /package/{esm2020 → esm2022}/tree/control/nested-tree-control.mjs +0 -0
  740. /package/{esm2020 → esm2022}/tree/control/tree-control.mjs +0 -0
  741. /package/{esm2020 → esm2022}/tree/data-source/nested-data-source.mjs +0 -0
  742. /package/{esm2020 → esm2022}/tree/index.mjs +0 -0
  743. /package/{esm2020 → esm2022}/tree/ptsecurity-mosaic-tree.mjs +0 -0
  744. /package/{esm2020 → esm2022}/tree/public-api.mjs +0 -0
  745. /package/{esm2020 → esm2022}/tree/tree-errors.mjs +0 -0
  746. /package/{esm2020 → esm2022}/tree-select/index.mjs +0 -0
  747. /package/{esm2020 → esm2022}/tree-select/ptsecurity-mosaic-tree-select.mjs +0 -0
  748. /package/{esm2020 → esm2022}/tree-select/public-api.mjs +0 -0
  749. /package/{fesm2015 → fesm2022}/ptsecurity-mosaic.mjs +0 -0
  750. /package/{fesm2015 → fesm2022}/ptsecurity-mosaic.mjs.map +0 -0
@@ -1,1523 +0,0 @@
1
- import * as i1$2 from '@angular/cdk/a11y';
2
- import { FocusKeyManager, A11yModule } from '@angular/cdk/a11y';
3
- import * as i2$1 from '@angular/cdk/portal';
4
- import { CdkPortalOutlet, CdkPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
5
- import * as i1 from '@angular/cdk/scrolling';
6
- import { CdkScrollableModule } from '@angular/cdk/scrolling';
7
- import * as i1$1 from '@angular/common';
8
- import { CommonModule } from '@angular/common';
9
- import * as i0 from '@angular/core';
10
- import { EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Input, Output, ViewChild, forwardRef, Directive, Inject, InjectionToken, TemplateRef, ContentChild, ContentChildren, Attribute, NgModule } from '@angular/core';
11
- import { mixinDisabled, PopUpPlacements, mixinTabIndex, McCommonModule } from '@ptsecurity/mosaic/core';
12
- import * as i4 from '@ptsecurity/mosaic/icon';
13
- import { McIconModule } from '@ptsecurity/mosaic/icon';
14
- import * as i4$1 from '@ptsecurity/mosaic/tooltip';
15
- import { McToolTipModule } from '@ptsecurity/mosaic/tooltip';
16
- import { Subscription, Subject, fromEvent, of, merge, timer } from 'rxjs';
17
- import { startWith, takeUntil, debounceTime, delay } from 'rxjs/operators';
18
- import { trigger, state, style, transition, animate } from '@angular/animations';
19
- import * as i3 from '@angular/cdk/bidi';
20
- import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
21
- import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
22
- import { hasModifierKey, ENTER, SPACE } from '@angular/cdk/keycodes';
23
- import * as i2 from '@angular/cdk/platform';
24
- import { normalizePassiveListenerOptions } from '@angular/cdk/platform';
25
- import { HOME, END, UP_ARROW, DOWN_ARROW, RIGHT_ARROW, LEFT_ARROW } from '@ptsecurity/cdk/keycodes';
26
-
27
- const mcTabsAnimations = {
28
- /** Animation translates a tab along the X axis. */
29
- translateTab: trigger('translateTab', [
30
- // Note: transitions to `none` instead of 0, because some browsers might blur the content.
31
- state('center, void, left-origin-center, right-origin-center', style({ transform: 'none' })),
32
- // If the tab is either on the left or right, we additionally add a `min-height` of 1px
33
- // in order to ensure that the element has a height before its state changes. This is
34
- // necessary because Chrome does seem to skip the transition in RTL mode if the element does
35
- // not have a static height and is not rendered. See related issue: #9465
36
- state('left', style({ transform: 'translate3d(-100%, 0, 0)', minHeight: '1px' })),
37
- state('right', style({ transform: 'translate3d(100%, 0, 0)', minHeight: '1px' })),
38
- transition('* => left, * => right, left => center, right => center', animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')),
39
- transition('void => left-origin-center', [
40
- style({ transform: 'translate3d(-100%, 0, 0)' }),
41
- animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')
42
- ]),
43
- transition('void => right-origin-center', [
44
- style({ transform: 'translate3d(100%, 0, 0)' }),
45
- animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')
46
- ])
47
- ])
48
- };
49
-
50
- /**
51
- * Wrapper for the contents of a tab.
52
- * @docs-private
53
- */
54
- class McTabBody {
55
- constructor(elementRef, dir, changeDetectorRef) {
56
- this.elementRef = elementRef;
57
- this.dir = dir;
58
- /** Event emitted when the tab begins to animate towards the center as the active tab. */
59
- this.onCentering = new EventEmitter();
60
- /** Event emitted before the centering of the tab begins. */
61
- this.beforeCentering = new EventEmitter();
62
- /** Event emitted before the centering of the tab begins. */
63
- this.afterLeavingCenter = new EventEmitter();
64
- /** Event emitted when the tab completes its animation towards the center. */
65
- this.onCentered = new EventEmitter(true);
66
- // Note that the default value will always be overwritten by `McTabBody`, but we need one
67
- // anyway to prevent the animations module from throwing an error if the body is used on its own.
68
- /** Duration for the tab's animation. */
69
- this.animationDuration = '0ms';
70
- /** Subscription to the directionality change observable. */
71
- this.dirChangeSubscription = Subscription.EMPTY;
72
- if (this.dir && changeDetectorRef) {
73
- this.dirChangeSubscription = this.dir.change
74
- .subscribe((direction) => {
75
- this.computePositionAnimationState(direction);
76
- changeDetectorRef.markForCheck();
77
- });
78
- }
79
- }
80
- /** The shifted index position of the tab body, where zero represents the active center tab. */
81
- set position(position) {
82
- this.positionIndex = position;
83
- this.computePositionAnimationState();
84
- }
85
- /**
86
- * After initialized, check if the content is centered and has an origin. If so, set the
87
- * special position states that transition the tab from the left or right before centering.
88
- */
89
- ngOnInit() {
90
- if (this.bodyPosition === 'center' && this.origin != null) {
91
- this.bodyPosition = this.computePositionFromOrigin();
92
- }
93
- }
94
- ngOnDestroy() {
95
- this.dirChangeSubscription.unsubscribe();
96
- }
97
- onTranslateTabStarted(e) {
98
- const isCentering = this.isCenterPosition(e.toState);
99
- this.beforeCentering.emit(isCentering);
100
- if (isCentering) {
101
- this.onCentering.emit(this.elementRef.nativeElement.clientHeight);
102
- }
103
- }
104
- onTranslateTabComplete(e) {
105
- // If the transition to the center is complete, emit an event.
106
- if (this.isCenterPosition(e.toState) && this.isCenterPosition(this.bodyPosition)) {
107
- this.onCentered.emit();
108
- }
109
- if (this.isCenterPosition(e.fromState) && !this.isCenterPosition(this.bodyPosition)) {
110
- this.afterLeavingCenter.emit();
111
- }
112
- }
113
- /** The text direction of the containing app. */
114
- getLayoutDirection() {
115
- return this.dir && this.dir.value === 'rtl' ? 'rtl' : 'ltr';
116
- }
117
- /** Whether the provided position state is considered center, regardless of origin. */
118
- isCenterPosition(position) {
119
- return position === 'center' || position === 'left-origin-center' || position === 'right-origin-center';
120
- }
121
- /** Computes the position state that will be used for the tab-body animation trigger. */
122
- computePositionAnimationState(dir = this.getLayoutDirection()) {
123
- if (this.positionIndex < 0) {
124
- this.bodyPosition = dir === 'ltr' ? 'left' : 'right';
125
- }
126
- else if (this.positionIndex > 0) {
127
- this.bodyPosition = dir === 'ltr' ? 'right' : 'left';
128
- }
129
- else {
130
- this.bodyPosition = 'center';
131
- }
132
- }
133
- /**
134
- * Computes the position state based on the specified origin position. This is used if the
135
- * tab is becoming visible immediately after creation.
136
- */
137
- computePositionFromOrigin() {
138
- const dir = this.getLayoutDirection();
139
- if ((dir === 'ltr' && this.origin <= 0) || (dir === 'rtl' && this.origin > 0)) {
140
- return 'left-origin-center';
141
- }
142
- return 'right-origin-center';
143
- }
144
- }
145
- /** @nocollapse */ McTabBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabBody, deps: [{ token: i0.ElementRef }, { token: i3.Directionality, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
146
- /** @nocollapse */ McTabBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McTabBody, selector: "mc-tab-body", inputs: { position: "position", content: "content", origin: "origin", animationDuration: "animationDuration" }, outputs: { onCentering: "onCentering", beforeCentering: "beforeCentering", afterLeavingCenter: "afterLeavingCenter", onCentered: "onCentered" }, host: { classAttribute: "mc-tab-body" }, viewQueries: [{ propertyName: "portalHost", first: true, predicate: CdkPortalOutlet, descendants: true }], ngImport: i0, template: "<div class=\"mc-tab-body__content\"\n #content\n [@translateTab]=\"{\n value: bodyPosition,\n params: {animationDuration: animationDuration}\n }\"\n (@translateTab.start)=\"onTranslateTabStarted($event)\"\n (@translateTab.done)=\"onTranslateTabComplete($event)\"\n cdk-scrollable>\n <ng-template mcTabBodyHost></ng-template>\n</div>\n", styles: [".mc-tab-body__content{height:100%;overflow:auto}.mc-tab-body__content .mc-tab-group_dynamic-height{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i1.CdkScrollable; }), selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i0.forwardRef(function () { return McTabBodyPortal; }), selector: "[mcTabBodyHost]" }], animations: [mcTabsAnimations.translateTab], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabBody, decorators: [{
148
- type: Component,
149
- args: [{ selector: 'mc-tab-body', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [mcTabsAnimations.translateTab], host: {
150
- class: 'mc-tab-body'
151
- }, template: "<div class=\"mc-tab-body__content\"\n #content\n [@translateTab]=\"{\n value: bodyPosition,\n params: {animationDuration: animationDuration}\n }\"\n (@translateTab.start)=\"onTranslateTabStarted($event)\"\n (@translateTab.done)=\"onTranslateTabComplete($event)\"\n cdk-scrollable>\n <ng-template mcTabBodyHost></ng-template>\n</div>\n", styles: [".mc-tab-body__content{height:100%;overflow:auto}.mc-tab-body__content .mc-tab-group_dynamic-height{overflow:hidden}\n"] }]
152
- }], ctorParameters: function () {
153
- return [{ type: i0.ElementRef }, { type: i3.Directionality, decorators: [{
154
- type: Optional
155
- }] }, { type: i0.ChangeDetectorRef }];
156
- }, propDecorators: { position: [{
157
- type: Input
158
- }], onCentering: [{
159
- type: Output
160
- }], beforeCentering: [{
161
- type: Output
162
- }], afterLeavingCenter: [{
163
- type: Output
164
- }], onCentered: [{
165
- type: Output
166
- }], portalHost: [{
167
- type: ViewChild,
168
- args: [CdkPortalOutlet, { static: false }]
169
- }], content: [{
170
- type: Input,
171
- args: ['content']
172
- }], origin: [{
173
- type: Input
174
- }], animationDuration: [{
175
- type: Input
176
- }] } });
177
- /**
178
- * The portal host directive for the contents of the tab.
179
- * @docs-private
180
- */
181
- class McTabBodyPortal extends CdkPortalOutlet {
182
- constructor(componentFactoryResolver, viewContainerRef, host) {
183
- super(componentFactoryResolver, viewContainerRef);
184
- this.host = host;
185
- /** Subscription to events for when the tab body begins centering. */
186
- this.centeringSub = Subscription.EMPTY;
187
- /** Subscription to events for when the tab body finishes leaving from center position. */
188
- this.leavingSub = Subscription.EMPTY;
189
- }
190
- /** Set initial visibility or set up subscription for changing visibility. */
191
- ngOnInit() {
192
- super.ngOnInit();
193
- this.centeringSub = this.host.beforeCentering
194
- .pipe(startWith(this.host.isCenterPosition(this.host.bodyPosition)))
195
- .subscribe((isCentering) => {
196
- if (isCentering && !this.hasAttached()) {
197
- this.attach(this.host.content);
198
- }
199
- });
200
- this.leavingSub = this.host.afterLeavingCenter
201
- .subscribe(() => { this.detach(); });
202
- }
203
- /** Clean up centering subscription. */
204
- ngOnDestroy() {
205
- super.ngOnDestroy();
206
- this.centeringSub.unsubscribe();
207
- this.leavingSub.unsubscribe();
208
- }
209
- }
210
- /** @nocollapse */ McTabBodyPortal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabBodyPortal, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: forwardRef(() => McTabBody) }], target: i0.ɵɵFactoryTarget.Directive });
211
- /** @nocollapse */ McTabBodyPortal.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McTabBodyPortal, selector: "[mcTabBodyHost]", usesInheritance: true, ngImport: i0 });
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabBodyPortal, decorators: [{
213
- type: Directive,
214
- args: [{
215
- selector: '[mcTabBodyHost]'
216
- }]
217
- }], ctorParameters: function () {
218
- return [{ type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: McTabBody, decorators: [{
219
- type: Inject,
220
- args: [forwardRef(() => McTabBody)]
221
- }] }];
222
- } });
223
-
224
- /** Decorates the `ng-template` tags and reads out the template from it. */
225
- class McTabContent {
226
- constructor(template) {
227
- this.template = template;
228
- }
229
- }
230
- /** @nocollapse */ McTabContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabContent, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
231
- /** @nocollapse */ McTabContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McTabContent, selector: "[mcTabContent]", ngImport: i0 });
232
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabContent, decorators: [{
233
- type: Directive,
234
- args: [{ selector: '[mcTabContent]' }]
235
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
236
-
237
- const MC_TAB_LABEL = new InjectionToken('McTabLabel');
238
- /** Used to flag tab labels for use with the portal directive */
239
- class McTabLabel extends CdkPortal {
240
- }
241
- /** @nocollapse */ McTabLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabLabel, deps: null, target: i0.ɵɵFactoryTarget.Directive });
242
- /** @nocollapse */ McTabLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McTabLabel, selector: "[mc-tab-label], [mcTabLabel]", providers: [{ provide: MC_TAB_LABEL, useExisting: McTabLabel }], usesInheritance: true, ngImport: i0 });
243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabLabel, decorators: [{
244
- type: Directive,
245
- args: [{
246
- selector: '[mc-tab-label], [mcTabLabel]',
247
- providers: [{ provide: MC_TAB_LABEL, useExisting: McTabLabel }]
248
- }]
249
- }] });
250
-
251
- /** @docs-private */
252
- class McTabBase {
253
- }
254
- /** @docs-private */
255
- const McTabMixinBase = mixinDisabled(McTabBase);
256
- class McTab extends McTabMixinBase {
257
- constructor(viewContainerRef) {
258
- super();
259
- this.viewContainerRef = viewContainerRef;
260
- this._tooltipTitle = '';
261
- this.tooltipPlacement = PopUpPlacements.Right;
262
- /** Plain text label for the tab, used when there is no template label. */
263
- this.textLabel = '';
264
- this.empty = false;
265
- /** Emits whenever the internal state of the tab changes. */
266
- this.stateChanges = new Subject();
267
- /**
268
- * The relatively indexed position where 0 represents the center, negative is left, and positive
269
- * represents the right.
270
- */
271
- this.position = null;
272
- /**
273
- * The initial relatively index origin of the tab if it was created and selected after there
274
- * was already a selected tab. Provides context of what position the tab should originate from.
275
- */
276
- this.origin = null;
277
- /**
278
- * Whether the tab is currently active.
279
- */
280
- this.isActive = false;
281
- this._overflowTooltipTitle = '';
282
- /** Portal that will be the hosted content of the tab */
283
- this.contentPortal = null;
284
- }
285
- /** @docs-private */
286
- get content() {
287
- return this.contentPortal;
288
- }
289
- get templateLabel() {
290
- return this._templateLabel;
291
- }
292
- set templateLabel(value) {
293
- this.setTemplateLabelInput(value);
294
- }
295
- get tooltipTitle() {
296
- return this.overflowTooltipTitle + this._tooltipTitle;
297
- }
298
- set tooltipTitle(value) {
299
- this._tooltipTitle = value;
300
- }
301
- get isOverflown() {
302
- return !!this._overflowTooltipTitle;
303
- }
304
- get overflowTooltipTitle() {
305
- if (this.isOverflown) {
306
- return `${this._overflowTooltipTitle}\n`;
307
- }
308
- return '';
309
- }
310
- set overflowTooltipTitle(value) {
311
- this._overflowTooltipTitle = value;
312
- }
313
- ngOnChanges(changes) {
314
- if (changes.hasOwnProperty('textLabel') || changes.hasOwnProperty('disabled')) {
315
- this.stateChanges.next();
316
- }
317
- }
318
- ngOnDestroy() {
319
- this.stateChanges.complete();
320
- }
321
- ngOnInit() {
322
- this.contentPortal = new TemplatePortal(this.explicitContent || this.implicitContent, this.viewContainerRef);
323
- }
324
- /**
325
- * This has been extracted to a util because of TS 4 and VE.
326
- * View Engine doesn't support property rename inheritance.
327
- * TS 4.0 doesn't allow properties to override accessors or vice-versa.
328
- * @docs-private
329
- */
330
- setTemplateLabelInput(value) {
331
- // Only update the templateLabel via query if there is actually
332
- // a McTabLabel found. This works around an issue where a user may have
333
- // manually set `templateLabel` during creation mode, which would then get clobbered
334
- // by `undefined` when this query resolves.
335
- if (value) {
336
- this._templateLabel = value;
337
- }
338
- }
339
- }
340
- /** @nocollapse */ McTab.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTab, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
341
- /** @nocollapse */ McTab.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McTab, selector: "mc-tab", inputs: { disabled: "disabled", tooltipTitle: "tooltipTitle", tooltipPlacement: "tooltipPlacement", textLabel: ["label", "textLabel"], empty: "empty", tabId: "tabId" }, queries: [{ propertyName: "templateLabel", first: true, predicate: MC_TAB_LABEL, descendants: true }, { propertyName: "explicitContent", first: true, predicate: McTabContent, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "implicitContent", first: true, predicate: TemplateRef, descendants: true, static: true }], exportAs: ["mcTab"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
342
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTab, decorators: [{
343
- type: Component,
344
- args: [{
345
- selector: 'mc-tab',
346
- exportAs: 'mcTab',
347
- // Create a template for the content of the <mc-tab> so that we can grab a reference to this
348
- // TemplateRef and use it in a Portal to render the tab content in the appropriate place in the
349
- // tab-group.
350
- template: '<ng-template><ng-content></ng-content></ng-template>',
351
- inputs: ['disabled'],
352
- changeDetection: ChangeDetectionStrategy.OnPush,
353
- encapsulation: ViewEncapsulation.None
354
- }]
355
- }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { templateLabel: [{
356
- type: ContentChild,
357
- args: [MC_TAB_LABEL]
358
- }], explicitContent: [{
359
- type: ContentChild,
360
- args: [McTabContent, { read: TemplateRef, static: true }]
361
- }], implicitContent: [{
362
- type: ViewChild,
363
- args: [TemplateRef, { static: true }]
364
- }], tooltipTitle: [{
365
- type: Input
366
- }], tooltipPlacement: [{
367
- type: Input
368
- }], textLabel: [{
369
- type: Input,
370
- args: ['label']
371
- }], empty: [{
372
- type: Input
373
- }], tabId: [{
374
- type: Input,
375
- args: ['tabId']
376
- }] } });
377
-
378
- // Boilerplate for applying mixins to McTabLabelWrapper.
379
- /** @docs-private */
380
- class McTabLabelWrapperBase {
381
- }
382
- /** @docs-private */
383
- const McTabLabelWrapperMixinBase = mixinDisabled(McTabLabelWrapperBase);
384
- /**
385
- * Used in the `mc-tab-group` view to display tab labels.
386
- * @docs-private
387
- */
388
- class McTabLabelWrapper extends McTabLabelWrapperMixinBase {
389
- constructor(elementRef, renderer) {
390
- super();
391
- this.elementRef = elementRef;
392
- this.renderer = renderer;
393
- }
394
- ngAfterViewInit() {
395
- this.addClassModifierForIcons(Array.from(this.elementRef.nativeElement.querySelectorAll('.mc-icon')));
396
- }
397
- /** Sets focus on the wrapper element */
398
- focus() {
399
- this.elementRef.nativeElement.focus();
400
- }
401
- getOffsetLeft() {
402
- return this.elementRef.nativeElement.offsetLeft;
403
- }
404
- getOffsetWidth() {
405
- return this.elementRef.nativeElement.offsetWidth;
406
- }
407
- checkOverflow() {
408
- this.tab.overflowTooltipTitle = this.isOverflown() ? this.getInnerText() : '';
409
- }
410
- isOverflown() {
411
- return this.labelContent.nativeElement.scrollWidth > this.labelContent.nativeElement.clientWidth;
412
- }
413
- getInnerText() {
414
- return this.labelContent.nativeElement.innerText;
415
- }
416
- addClassModifierForIcons(icons) {
417
- const twoIcons = 2;
418
- const [firstIconElement, secondIconElement] = icons;
419
- if (icons.length === 1) {
420
- const COMMENT_NODE = 8;
421
- if (firstIconElement.nextSibling && firstIconElement.nextSibling.nodeType !== COMMENT_NODE) {
422
- this.renderer.addClass(firstIconElement, 'mc-icon_left');
423
- }
424
- if (firstIconElement.previousSibling && firstIconElement.previousSibling.nodeType !== COMMENT_NODE) {
425
- this.renderer.addClass(firstIconElement, 'mc-icon_right');
426
- }
427
- }
428
- else if (icons.length === twoIcons) {
429
- this.renderer.addClass(firstIconElement, 'mc-icon_left');
430
- this.renderer.addClass(secondIconElement, 'mc-icon_right');
431
- }
432
- }
433
- }
434
- /** @nocollapse */ McTabLabelWrapper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabLabelWrapper, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
435
- /** @nocollapse */ McTabLabelWrapper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McTabLabelWrapper, selector: "[mcTabLabelWrapper]", inputs: { disabled: "disabled", tab: "tab" }, host: { properties: { "attr.disabled": "disabled || null" } }, queries: [{ propertyName: "labelContent", first: true, predicate: ["labelContent"], descendants: true }], usesInheritance: true, ngImport: i0 });
436
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabLabelWrapper, decorators: [{
437
- type: Directive,
438
- args: [{
439
- selector: '[mcTabLabelWrapper]',
440
- inputs: ['disabled'],
441
- host: {
442
- '[attr.disabled]': 'disabled || null'
443
- }
444
- }]
445
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { labelContent: [{
446
- type: ContentChild,
447
- args: ['labelContent']
448
- }], tab: [{
449
- type: Input
450
- }] } });
451
-
452
- /* tslint:disable:naming-convention */
453
- /** Config used to bind passive event listeners */
454
- const passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: true });
455
- /**
456
- * The distance in pixels that will be overshot when scrolling a tab label into view. This helps
457
- * provide a small affordance to the label next to it.
458
- */
459
- const EXAGGERATED_OVERSCROLL = 60;
460
- /**
461
- * Amount of milliseconds to wait before starting to scroll the header automatically.
462
- * Set a little conservatively in order to handle fake events dispatched on touch devices.
463
- */
464
- const HEADER_SCROLL_DELAY = 650;
465
- /**
466
- * Interval in milliseconds at which to scroll the header
467
- * while the user is holding their pointer.
468
- */
469
- const HEADER_SCROLL_INTERVAL = 100;
470
- const VIEWPORT_THROTTLE_TIME = 150;
471
- const SCROLL_DISTANCE = 0.8;
472
- /**
473
- * Base class for a tab header that supported pagination.
474
- * @docs-private
475
- */
476
- class McPaginatedTabHeader {
477
- constructor(elementRef, changeDetectorRef, viewportRuler, ngZone, platform, dir, animationMode) {
478
- this.elementRef = elementRef;
479
- this.changeDetectorRef = changeDetectorRef;
480
- this.viewportRuler = viewportRuler;
481
- this.ngZone = ngZone;
482
- this.platform = platform;
483
- this.dir = dir;
484
- this.animationMode = animationMode;
485
- this._selectedIndex = 0;
486
- /** The distance in pixels that the tab labels should be translated to the left. */
487
- this._scrollDistance = 0;
488
- /** Event emitted when the option is selected. */
489
- this.selectFocusedIndex = new EventEmitter();
490
- /** Event emitted when a label is focused. */
491
- this.indexFocused = new EventEmitter();
492
- /** Whether the controls for pagination should be displayed */
493
- this.showPaginationControls = false;
494
- /** Whether the tab list can be scrolled more towards the end of the tab label list. */
495
- this.disableScrollAfter = true;
496
- /** Whether the tab list can be scrolled more towards the beginning of the tab label list. */
497
- this.disableScrollBefore = true;
498
- /**
499
- * Whether pagination should be disabled. This can be used to avoid unnecessary
500
- * layout recalculations if it's known that pagination won't be required.
501
- */
502
- this.disablePagination = false;
503
- /** Emits when the component is destroyed. */
504
- this.destroyed = new Subject();
505
- this.vertical = false;
506
- /** Stream that will stop the automated scrolling. */
507
- this.stopScrolling = new Subject();
508
- /** Whether the header should scroll to the selected index after the view has been checked. */
509
- this.selectedIndexChanged = false;
510
- // Bind the `mouseleave` event on the outside since it doesn't change anything in the view.
511
- ngZone.runOutsideAngular(() => {
512
- fromEvent(elementRef.nativeElement, 'mouseleave')
513
- .pipe(takeUntil(this.destroyed))
514
- .subscribe(() => this.stopInterval());
515
- });
516
- }
517
- /** The index of the active tab. */
518
- get selectedIndex() {
519
- return this._selectedIndex;
520
- }
521
- set selectedIndex(value) {
522
- var _a;
523
- const coercedValue = coerceNumberProperty(value);
524
- this.selectedIndexChanged = this._selectedIndex !== coercedValue;
525
- this._selectedIndex = coercedValue;
526
- (_a = this.keyManager) === null || _a === void 0 ? void 0 : _a.updateActiveItem(coercedValue);
527
- }
528
- /** Tracks which element has focus; used for keyboard navigation */
529
- get focusIndex() {
530
- return this.keyManager ? this.keyManager.activeItemIndex : 0;
531
- }
532
- /** When the focus index is set, we must manually send focus to the correct label */
533
- set focusIndex(value) {
534
- if (!this.isValidIndex(value) || this.focusIndex === value || !this.keyManager) {
535
- return;
536
- }
537
- this.keyManager.setActiveItem(value);
538
- }
539
- /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
540
- get scrollDistance() {
541
- return this._scrollDistance;
542
- }
543
- set scrollDistance(v) {
544
- this._scrollDistance = Math.max(0, Math.min(this.getMaxScrollDistance(), v));
545
- // Mark that the scroll distance has changed so that after the view is checked, the CSS
546
- // transformation can move the header.
547
- this.scrollDistanceChanged = true;
548
- this.checkScrollingControls();
549
- }
550
- /** Called when the user has selected an item via the keyboard. */
551
- ngAfterViewInit() {
552
- // We need to handle these events manually, because we want to bind passive event listeners.
553
- fromEvent(this.previousPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)
554
- .pipe(takeUntil(this.destroyed))
555
- .subscribe(() => this.handlePaginatorPress('before'));
556
- fromEvent(this.nextPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)
557
- .pipe(takeUntil(this.destroyed))
558
- .subscribe(() => this.handlePaginatorPress('after'));
559
- }
560
- ngAfterContentInit() {
561
- const dirChange = this.dir ? this.dir.change : of('ltr');
562
- const resize = this.viewportRuler.change(VIEWPORT_THROTTLE_TIME);
563
- const realign = () => {
564
- this.updatePagination();
565
- };
566
- this.keyManager = new FocusKeyManager(this.items)
567
- .withHorizontalOrientation(this.getLayoutDirection());
568
- this.keyManager.updateActiveItem(this._selectedIndex);
569
- // Defer the first call in order to allow for slower browsers to lay out the elements.
570
- // This helps in cases where the user lands directly on a page with paginated tabs.
571
- typeof requestAnimationFrame !== undefined ? requestAnimationFrame(realign) : realign();
572
- // On dir change or window resize, realign the ink bar and update the orientation of
573
- // the key manager if the direction has changed.
574
- merge(dirChange, resize, this.items.changes)
575
- .pipe(takeUntil(this.destroyed))
576
- .subscribe(() => {
577
- // We need to defer this to give the browser some time to recalculate
578
- // the element dimensions. The call has to be wrapped in `NgZone.run`,
579
- // because the viewport change handler runs outside of Angular.
580
- this.ngZone.run(() => Promise.resolve().then(() => {
581
- this.updateScrollPosition();
582
- realign();
583
- }));
584
- this.keyManager.withHorizontalOrientation(this.getLayoutDirection());
585
- });
586
- // If there is a change in the focus key manager we need to emit the `indexFocused`
587
- // event in order to provide a public event that notifies about focus changes. Also we realign
588
- // the tabs container by scrolling the new focused tab into the visible section.
589
- this.keyManager.change
590
- .pipe(takeUntil(this.destroyed))
591
- .subscribe((newFocusIndex) => {
592
- this.indexFocused.emit(newFocusIndex);
593
- this.setTabFocus(newFocusIndex);
594
- });
595
- }
596
- ngAfterContentChecked() {
597
- // If the number of tab labels have changed, check if scrolling should be enabled
598
- if (this.tabLabelCount !== this.items.length) {
599
- this.updatePagination();
600
- this.tabLabelCount = this.items.length;
601
- this.changeDetectorRef.markForCheck();
602
- }
603
- // If the selected index has changed, scroll to the label and check if the scrolling controls
604
- // should be disabled.
605
- if (this.selectedIndexChanged) {
606
- this.scrollToLabel(this._selectedIndex);
607
- this.checkScrollingControls();
608
- this.selectedIndexChanged = false;
609
- this.changeDetectorRef.markForCheck();
610
- }
611
- // If the scroll distance has been changed (tab selected, focused, scroll controls activated),
612
- // then translate the header to reflect this.
613
- if (this.scrollDistanceChanged) {
614
- this.updateTabScrollPosition();
615
- this.scrollDistanceChanged = false;
616
- this.changeDetectorRef.markForCheck();
617
- }
618
- }
619
- ngOnDestroy() {
620
- this.destroyed.next();
621
- this.destroyed.complete();
622
- this.stopScrolling.complete();
623
- }
624
- handleKeydown(event) {
625
- // We don't handle any key bindings with a modifier key.
626
- if (hasModifierKey(event)) {
627
- return;
628
- }
629
- // tslint:disable-next-line: deprecation
630
- const key = event.keyCode;
631
- if (key === HOME) {
632
- this.keyManager.setFirstItemActive();
633
- }
634
- else if (key === END) {
635
- this.keyManager.setLastItemActive();
636
- }
637
- else if (key === UP_ARROW && this.vertical) {
638
- this.keyManager.setPreviousItemActive();
639
- }
640
- else if (key === DOWN_ARROW && this.vertical) {
641
- this.keyManager.setNextItemActive();
642
- }
643
- else if (key === RIGHT_ARROW && !this.vertical) {
644
- this.keyManager.setNextItemActive();
645
- }
646
- else if (key === LEFT_ARROW && !this.vertical) {
647
- this.keyManager.setPreviousItemActive();
648
- }
649
- else if ([ENTER, SPACE].includes(key)) {
650
- this.selectFocusedIndex.emit(this.focusIndex);
651
- }
652
- if ([HOME, END, UP_ARROW, DOWN_ARROW, RIGHT_ARROW, LEFT_ARROW, SPACE, ENTER].includes(key)) {
653
- event.preventDefault();
654
- }
655
- }
656
- /**
657
- * Callback for when the MutationObserver detects that the content has changed.
658
- */
659
- onContentChanges() {
660
- const textContent = this.elementRef.nativeElement.textContent;
661
- // We need to diff the text content of the header, because the MutationObserver callback
662
- // will fire even if the text content didn't change which is inefficient and is prone
663
- // to infinite loops if a poorly constructed expression is passed in (see #14249).
664
- if (textContent !== this.currentTextContent) {
665
- this.currentTextContent = textContent || '';
666
- // The content observer runs outside the `NgZone` by default, which
667
- // means that we need to bring the callback back in ourselves.
668
- this.ngZone.run(() => {
669
- this.updatePagination();
670
- this.changeDetectorRef.markForCheck();
671
- });
672
- }
673
- }
674
- /**
675
- * Updates the view whether pagination should be enabled or not.
676
- *
677
- * WARNING: Calling this method can be very costly in terms of performance. It should be called
678
- * as infrequently as possible from outside of the Tabs component as it causes a reflow of the
679
- * page.
680
- */
681
- updatePagination() {
682
- this.checkPaginationEnabled();
683
- this.checkScrollingControls();
684
- this.updateTabScrollPosition();
685
- }
686
- /**
687
- * Determines if an index is valid. If the tabs are not ready yet, we assume that the user is
688
- * providing a valid index and return true.
689
- */
690
- isValidIndex(index) {
691
- if (!this.items) {
692
- return true;
693
- }
694
- const tab = this.items ? this.items.toArray()[index] : null;
695
- return !!tab && !tab.disabled;
696
- }
697
- /**
698
- * Sets focus on the HTML element for the label wrapper and scrolls it into the view if
699
- * scrolling is enabled.
700
- */
701
- setTabFocus(tabIndex) {
702
- var _a;
703
- if (this.showPaginationControls) {
704
- this.scrollToLabel(tabIndex);
705
- }
706
- if ((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) {
707
- this.items.toArray()[tabIndex].focus();
708
- // Do not let the browser manage scrolling to focus the element, this will be handled
709
- // by using translation. In LTR, the scroll left should be 0. In RTL, the scroll width
710
- // should be the full width minus the offset width.
711
- const containerEl = this.tabListContainer.nativeElement;
712
- const dir = this.getLayoutDirection();
713
- if (dir === 'ltr') {
714
- containerEl.scrollLeft = 0;
715
- }
716
- else {
717
- containerEl.scrollLeft = containerEl.scrollWidth - containerEl.offsetWidth;
718
- }
719
- }
720
- }
721
- /** The layout direction of the containing app. */
722
- getLayoutDirection() {
723
- var _a;
724
- return ((_a = this.dir) === null || _a === void 0 ? void 0 : _a.value) === 'rtl' ? 'rtl' : 'ltr';
725
- }
726
- /** Performs the CSS transformation on the tab list that will cause the list to scroll. */
727
- updateTabScrollPosition() {
728
- if (this.disablePagination) {
729
- return;
730
- }
731
- const scrollDistance = this.scrollDistance;
732
- const translateX = this.getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance;
733
- // Don't use `translate3d` here because we don't want to create a new layer. A new layer
734
- // seems to cause flickering and overflow in Internet Explorer. For example, the ink bar
735
- // and ripples will exceed the boundaries of the visible tab bar.
736
- // See: https://github.com/angular/components/issues/10276
737
- // We round the `transform` here, because transforms with sub-pixel precision cause some
738
- // browsers to blur the content of the element.
739
- this.tabList.nativeElement.style.transform = `translateX(${Math.round(translateX)}px)`;
740
- // Setting the `transform` on IE will change the scroll offset of the parent, causing the
741
- // position to be thrown off in some cases. We have to reset it ourselves to ensure that
742
- // it doesn't get thrown off. Note that we scope it only to IE and Edge, because messing
743
- // with the scroll position throws off Chrome 71+ in RTL mode (see #14689).
744
- if (this.platform.TRIDENT || this.platform.EDGE) {
745
- this.tabListContainer.nativeElement.scrollLeft = 0;
746
- }
747
- }
748
- /**
749
- * Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or
750
- * the end of the list, respectively). The distance to scroll is computed to be a third of the
751
- * length of the tab list view window.
752
- *
753
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
754
- * should be called sparingly.
755
- */
756
- scrollHeader(direction) {
757
- const viewLength = this.tabListContainer.nativeElement.offsetWidth;
758
- // Move the scroll distance one-third the length of the tab list's viewport.
759
- const scrollAmount = (direction === 'before' ? -1 : 1) * viewLength * SCROLL_DISTANCE;
760
- return this.scrollTo(this.scrollDistance + scrollAmount);
761
- }
762
- /** Handles click events on the pagination arrows. */
763
- handlePaginatorClick(direction) {
764
- this.stopInterval();
765
- this.scrollHeader(direction);
766
- }
767
- /**
768
- * Moves the tab list such that the desired tab label (marked by index) is moved into view.
769
- *
770
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
771
- * should be called sparingly.
772
- */
773
- scrollToLabel(labelIndex) {
774
- if (this.disablePagination) {
775
- return;
776
- }
777
- const selectedLabel = this.items ? this.items.toArray()[labelIndex] : null;
778
- if (!selectedLabel) {
779
- return;
780
- }
781
- // The view length is the visible width of the tab labels.
782
- const viewLength = this.tabListContainer.nativeElement.offsetWidth;
783
- const { offsetLeft, offsetWidth } = selectedLabel.elementRef.nativeElement;
784
- let labelBeforePos;
785
- let labelAfterPos;
786
- if (this.getLayoutDirection() === 'ltr') {
787
- labelBeforePos = offsetLeft;
788
- labelAfterPos = labelBeforePos + offsetWidth;
789
- }
790
- else {
791
- labelAfterPos = this.tabList.nativeElement.offsetWidth - offsetLeft;
792
- labelBeforePos = labelAfterPos - offsetWidth;
793
- }
794
- const beforeVisiblePos = this.scrollDistance;
795
- const afterVisiblePos = this.scrollDistance + viewLength;
796
- if (labelBeforePos < beforeVisiblePos) {
797
- // Scroll header to move label to the before direction
798
- this.scrollDistance -= beforeVisiblePos - labelBeforePos + EXAGGERATED_OVERSCROLL;
799
- }
800
- else if (labelAfterPos > afterVisiblePos) {
801
- // Scroll header to move label to the after direction
802
- this.scrollDistance += labelAfterPos - afterVisiblePos + EXAGGERATED_OVERSCROLL;
803
- }
804
- }
805
- /**
806
- * Evaluate whether the pagination controls should be displayed. If the scroll width of the
807
- * tab list is wider than the size of the header container, then the pagination controls should
808
- * be shown.
809
- *
810
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
811
- * should be called sparingly.
812
- */
813
- checkPaginationEnabled() {
814
- if (this.disablePagination || this.vertical) {
815
- this.showPaginationControls = false;
816
- }
817
- else {
818
- const isEnabled = this.tabList.nativeElement.scrollWidth > this.elementRef.nativeElement.offsetWidth;
819
- if (!isEnabled) {
820
- this.scrollDistance = 0;
821
- }
822
- if (isEnabled !== this.showPaginationControls) {
823
- this.changeDetectorRef.markForCheck();
824
- }
825
- this.showPaginationControls = isEnabled;
826
- }
827
- }
828
- /**
829
- * Evaluate whether the before and after controls should be enabled or disabled.
830
- * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the
831
- * before button. If the header is at the end of the list (scroll distance is equal to the
832
- * maximum distance we can scroll), then disable the after button.
833
- *
834
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
835
- * should be called sparingly.
836
- */
837
- checkScrollingControls() {
838
- if (this.disablePagination) {
839
- this.disableScrollAfter = this.disableScrollBefore = true;
840
- }
841
- else {
842
- // Check if the pagination arrows should be activated.
843
- this.disableScrollBefore = this.scrollDistance === 0;
844
- this.disableScrollAfter = this.scrollDistance === this.getMaxScrollDistance();
845
- this.changeDetectorRef.markForCheck();
846
- }
847
- }
848
- /**
849
- * Determines what is the maximum length in pixels that can be set for the scroll distance. This
850
- * is equal to the difference in width between the tab list container and tab header container.
851
- *
852
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
853
- * should be called sparingly.
854
- */
855
- getMaxScrollDistance() {
856
- const lengthOfTabList = this.tabList.nativeElement.scrollWidth;
857
- const viewLength = this.tabListContainer.nativeElement.offsetWidth;
858
- return (lengthOfTabList - viewLength) || 0;
859
- }
860
- /** Stops the currently-running paginator interval. */
861
- stopInterval() {
862
- this.stopScrolling.next();
863
- }
864
- /**
865
- * Handles the user pressing down on one of the paginators.
866
- * Starts scrolling the header after a certain amount of time.
867
- * @param direction In which direction the paginator should be scrolled.
868
- */
869
- handlePaginatorPress(direction, mouseEvent) {
870
- // Don't start auto scrolling for right mouse button clicks. Note that we shouldn't have to
871
- // null check the `button`, but we do it so we don't break tests that use fake events.
872
- if (mouseEvent && mouseEvent.button != null && mouseEvent.button !== 0) {
873
- return;
874
- }
875
- // Avoid overlapping timers.
876
- this.stopInterval();
877
- // Start a timer after the delay and keep firing based on the interval.
878
- timer(HEADER_SCROLL_DELAY, HEADER_SCROLL_INTERVAL)
879
- // Keep the timer going until something tells it to stop or the component is destroyed.
880
- .pipe(takeUntil(merge(this.stopScrolling, this.destroyed)))
881
- .subscribe(() => {
882
- const { maxScrollDistance, distance } = this.scrollHeader(direction);
883
- // Stop the timer if we've reached the start or the end.
884
- if (distance === 0 || distance >= maxScrollDistance) {
885
- this.stopInterval();
886
- }
887
- });
888
- }
889
- /**
890
- * Scrolls the header to a given position.
891
- * @param position Position to which to scroll.
892
- * @returns Information on the current scroll distance and the maximum.
893
- */
894
- scrollTo(position) {
895
- if (this.disablePagination) {
896
- return { maxScrollDistance: 0, distance: 0 };
897
- }
898
- const maxScrollDistance = this.getMaxScrollDistance();
899
- this.scrollDistance = Math.max(0, Math.min(maxScrollDistance, position));
900
- // Mark that the scroll distance has changed so that after the view is checked, the CSS
901
- // transformation can move the header.
902
- this.scrollDistanceChanged = true;
903
- this.checkScrollingControls();
904
- return { maxScrollDistance, distance: this.scrollDistance };
905
- }
906
- updateScrollPosition() {
907
- const maxScrollDistance = this.getMaxScrollDistance();
908
- if (this.scrollDistance > maxScrollDistance) {
909
- this.scrollTo(maxScrollDistance);
910
- }
911
- }
912
- }
913
- /** @nocollapse */ McPaginatedTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPaginatedTabHeader, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.ViewportRuler }, { token: i0.NgZone }, { token: i2.Platform }, { token: i3.Directionality, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
914
- /** @nocollapse */ McPaginatedTabHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McPaginatedTabHeader, inputs: { disablePagination: "disablePagination" }, ngImport: i0 });
915
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPaginatedTabHeader, decorators: [{
916
- type: Directive
917
- }], ctorParameters: function () {
918
- return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.ViewportRuler }, { type: i0.NgZone }, { type: i2.Platform }, { type: i3.Directionality, decorators: [{
919
- type: Optional
920
- }] }, { type: undefined, decorators: [{
921
- type: Optional
922
- }, {
923
- type: Inject,
924
- args: [ANIMATION_MODULE_TYPE]
925
- }] }];
926
- }, propDecorators: { disablePagination: [{
927
- type: Input
928
- }] } });
929
-
930
- /**
931
- * The header of the tab group which displays a list of all the tabs in the tab group.
932
- * When the tabs list's width exceeds the width of the header container,
933
- * then arrows will be displayed to allow the user to scroll
934
- * left and right across the header.
935
- * @docs-private
936
- */
937
- class McTabHeader extends McPaginatedTabHeader {
938
- constructor(elementRef, changeDetectorRef, viewportRuler, ngZone, platform, dir, animationMode) {
939
- super(elementRef, changeDetectorRef, viewportRuler, ngZone, platform, dir, animationMode);
940
- this.elementRef = elementRef;
941
- this.changeDetectorRef = changeDetectorRef;
942
- /** The index of the active tab. */
943
- this.vertical = false;
944
- }
945
- itemSelected(event) {
946
- event.preventDefault();
947
- }
948
- }
949
- /** @nocollapse */ McTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabHeader, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.ViewportRuler }, { token: i0.NgZone }, { token: i2.Platform }, { token: i3.Directionality, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
950
- /** @nocollapse */ McTabHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McTabHeader, selector: "mc-tab-header", inputs: { selectedIndex: "selectedIndex", vertical: "vertical" }, outputs: { selectFocusedIndex: "selectFocusedIndex", indexFocused: "indexFocused" }, host: { properties: { "class.mc-tab-header_vertical": "vertical", "class.mc-tab-header__pagination-controls_enabled": "showPaginationControls", "class.mc-tab-header_rtl": "getLayoutDirection() == 'rtl'" }, classAttribute: "mc-tab-header" }, queries: [{ propertyName: "items", predicate: McTabLabelWrapper }], viewQueries: [{ propertyName: "tabListContainer", first: true, predicate: ["tabListContainer"], descendants: true, static: true }, { propertyName: "tabList", first: true, predicate: ["tabList"], descendants: true, static: true }, { propertyName: "nextPaginator", first: true, predicate: ["nextPaginator"], descendants: true }, { propertyName: "previousPaginator", first: true, predicate: ["previousPaginator"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"mc-tab-header__pagination mc-tab-header__pagination_before\"\n #previousPaginator\n [class.mc-disabled]=\"disableScrollBefore\"\n (click)=\"handlePaginatorClick('before')\"\n (mousedown)=\"handlePaginatorPress('before', $event)\"\n (touchend)=\"stopInterval()\">\n\n <i mc-icon=\"mc-angle-left-M_16\"></i>\n</div>\n\n<div class=\"mc-tab-header__content\"\n #tabListContainer\n (keydown)=\"handleKeydown($event)\">\n\n <div class=\"mc-tab-list\"\n #tabList\n (cdkObserveContent)=\"onContentChanges()\">\n <div class=\"mc-tab-list__content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n\n<div class=\"mc-tab-header__pagination mc-tab-header__pagination_after\"\n #nextPaginator\n [class.mc-disabled]=\"disableScrollAfter\"\n (mousedown)=\"handlePaginatorPress('after', $event)\"\n (click)=\"handlePaginatorClick('after')\"\n (touchend)=\"stopInterval()\">\n\n <i mc-icon=\"mc-angle-right-M_16\"></i>\n</div>\n", styles: [".mc-tab-label.cdk-keyboard-focused:after{display:block;content:\"\";position:absolute;top:0;right:calc(-1 * var(--mc-tabs-size-border-width, 1px));bottom:calc(-1 * var(--mc-tabs-size-border-width, 1px));left:calc(-1 * var(--mc-tabs-size-border-width, 1px))}.mc-tab-label.mc-tab-label_horizontal.cdk-keyboard-focused:after,.mc-tab-label_old.cdk-keyboard-focused:after{border-width:calc(var(--mc-tabs-size-border-width, 1px) * 2);border-style:solid;border-top-left-radius:var(--mc-tabs-size-border-radius, 4px);border-top-right-radius:var(--mc-tabs-size-border-radius, 4px);border-bottom-color:transparent}.mc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mc-tab-list__content{display:flex}.mc-tab-group_align-labels-center .mc-tab-list__content{justify-content:center}.mc-tab-group_align-labels-end .mc-tab-list__content{justify-content:flex-end}.mc-tab-header_vertical .mc-tab-list__content{flex-direction:column}.mc-tab-header__pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;padding-left:12px;padding-right:12px;border-bottom-style:solid;border-bottom-width:var(--mc-tabs-size-border-width, 1px)}.mc-tab-header__pagination.mc-tab-header__pagination_before{border-right-style:solid;border-right-width:var(--mc-tabs-size-border-width, 1px)}.mc-tab-header__pagination.mc-tab-header__pagination_after{border-left-style:solid;border-left-width:var(--mc-tabs-size-border-width, 1px)}.mc-tab-header__pagination-controls_enabled .mc-tab-header__pagination{display:flex}.mc-tab-header__content{display:flex;flex-grow:1;z-index:1;overflow:hidden}.mc-tab-list{position:relative;width:100%;transition:transform .5s cubic-bezier(.35,0,.25,1)}.mc-tab-label{position:relative;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;height:var(--mc-tabs-size-height, 40px);text-align:center;white-space:nowrap;cursor:pointer;padding-right:var(--mc-tabs-size-padding-horizontal, 16px);padding-left:var(--mc-tabs-size-padding-horizontal, 16px);outline:none;-webkit-user-select:none;user-select:none}.mc-tab-label.mc-active{cursor:default}.mc-tab-label.mc-active:before{display:block;content:\"\";position:absolute}.mc-tab-label.cdk-keyboard-focused{z-index:1}.mc-tab-label:first-child.cdk-keyboard-focused:after{left:0}.mc-tab-label:last-child.cdk-keyboard-focused:after{right:0}.mc-tab-label[disabled]{pointer-events:none}.mc-tab-label .mc-tab-label__content>.mc-icon.mc-icon_left{margin-right:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-label .mc-tab-label__content>.mc-icon.mc-icon_right{margin-left:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-label.mc-tab-label_horizontal{border-bottom-width:var(--mc-tabs-size-border-width, 1px);border-bottom-style:solid}.mc-tab-label.mc-tab-label_horizontal.mc-active:before{bottom:calc(-1 * var(--mc-tabs-size-border-width, 1px));left:0;right:0;height:var(--mc-tabs-size-highlight-height, 4px)}.mc-tab-label.mc-tab-label_vertical{justify-content:flex-start}.mc-tab-label.mc-tab-label_vertical.mc-active:before{top:0;bottom:0;left:calc(-1 * var(--mc-tabs-size-border-width, 1px));width:var(--mc-tabs-size-highlight-height, 5px)}.mc-tab-label.mc-tab-label_vertical.cdk-keyboard-focused:after{right:0;left:0;border-width:calc(var(--mc-tabs-size-border-width, 1px) * 2);border-style:solid}.mc-tab-label.mc-tab-label_vertical .mc-tab-label__content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mc-tab-label_old{border-bottom-width:var(--mc-tabs-size-border-width, 1px);border-bottom-style:solid;border-width:var(--mc-tabs-size-border-width, 1px);border-style:solid;border-top-left-radius:var(--mc-tabs-size-border-radius, 4px);border-top-right-radius:var(--mc-tabs-size-border-radius, 4px);border-left:none;border-left-color:transparent;border-right:none;border-right-color:transparent}.mc-tab-label_old.mc-active{border-width:var(--mc-tabs-size-border-width, 1px);border-style:solid;padding-right:calc(var(--mc-tabs-size-padding-horizontal, 16px) - var(--mc-tabs-size-border-width, 1px));padding-left:calc(var(--mc-tabs-size-padding-horizontal, 16px) - var(--mc-tabs-size-border-width, 1px))}.mc-tab-label_old.mc-active.cdk-keyboard-focused:after{right:calc(-2 * var(--mc-tabs-size-border-width, 1px));left:calc(-2 * var(--mc-tabs-size-border-width, 1px))}.mc-tab-label_old.cdk-keyboard-focused:after{top:-1px}.mc-tab-group_stretch-labels .mc-tab-label,.mc-tab-group_stretch-labels .mc-tab-label_old{flex-basis:0;flex-grow:1}\n"], dependencies: [{ kind: "component", type: i4.McIcon, selector: "[mc-icon]", inputs: ["color"] }, { kind: "directive", type: i4.McIconCSSStyler, selector: "[mc-icon]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
951
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabHeader, decorators: [{
952
- type: Component,
953
- args: [{ selector: 'mc-tab-header', inputs: ['selectedIndex'], outputs: ['selectFocusedIndex', 'indexFocused'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, host: {
954
- class: 'mc-tab-header',
955
- '[class.mc-tab-header_vertical]': 'vertical',
956
- '[class.mc-tab-header__pagination-controls_enabled]': 'showPaginationControls',
957
- '[class.mc-tab-header_rtl]': 'getLayoutDirection() == \'rtl\''
958
- }, template: "<div class=\"mc-tab-header__pagination mc-tab-header__pagination_before\"\n #previousPaginator\n [class.mc-disabled]=\"disableScrollBefore\"\n (click)=\"handlePaginatorClick('before')\"\n (mousedown)=\"handlePaginatorPress('before', $event)\"\n (touchend)=\"stopInterval()\">\n\n <i mc-icon=\"mc-angle-left-M_16\"></i>\n</div>\n\n<div class=\"mc-tab-header__content\"\n #tabListContainer\n (keydown)=\"handleKeydown($event)\">\n\n <div class=\"mc-tab-list\"\n #tabList\n (cdkObserveContent)=\"onContentChanges()\">\n <div class=\"mc-tab-list__content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n\n<div class=\"mc-tab-header__pagination mc-tab-header__pagination_after\"\n #nextPaginator\n [class.mc-disabled]=\"disableScrollAfter\"\n (mousedown)=\"handlePaginatorPress('after', $event)\"\n (click)=\"handlePaginatorClick('after')\"\n (touchend)=\"stopInterval()\">\n\n <i mc-icon=\"mc-angle-right-M_16\"></i>\n</div>\n", styles: [".mc-tab-label.cdk-keyboard-focused:after{display:block;content:\"\";position:absolute;top:0;right:calc(-1 * var(--mc-tabs-size-border-width, 1px));bottom:calc(-1 * var(--mc-tabs-size-border-width, 1px));left:calc(-1 * var(--mc-tabs-size-border-width, 1px))}.mc-tab-label.mc-tab-label_horizontal.cdk-keyboard-focused:after,.mc-tab-label_old.cdk-keyboard-focused:after{border-width:calc(var(--mc-tabs-size-border-width, 1px) * 2);border-style:solid;border-top-left-radius:var(--mc-tabs-size-border-radius, 4px);border-top-right-radius:var(--mc-tabs-size-border-radius, 4px);border-bottom-color:transparent}.mc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mc-tab-list__content{display:flex}.mc-tab-group_align-labels-center .mc-tab-list__content{justify-content:center}.mc-tab-group_align-labels-end .mc-tab-list__content{justify-content:flex-end}.mc-tab-header_vertical .mc-tab-list__content{flex-direction:column}.mc-tab-header__pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;padding-left:12px;padding-right:12px;border-bottom-style:solid;border-bottom-width:var(--mc-tabs-size-border-width, 1px)}.mc-tab-header__pagination.mc-tab-header__pagination_before{border-right-style:solid;border-right-width:var(--mc-tabs-size-border-width, 1px)}.mc-tab-header__pagination.mc-tab-header__pagination_after{border-left-style:solid;border-left-width:var(--mc-tabs-size-border-width, 1px)}.mc-tab-header__pagination-controls_enabled .mc-tab-header__pagination{display:flex}.mc-tab-header__content{display:flex;flex-grow:1;z-index:1;overflow:hidden}.mc-tab-list{position:relative;width:100%;transition:transform .5s cubic-bezier(.35,0,.25,1)}.mc-tab-label{position:relative;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;height:var(--mc-tabs-size-height, 40px);text-align:center;white-space:nowrap;cursor:pointer;padding-right:var(--mc-tabs-size-padding-horizontal, 16px);padding-left:var(--mc-tabs-size-padding-horizontal, 16px);outline:none;-webkit-user-select:none;user-select:none}.mc-tab-label.mc-active{cursor:default}.mc-tab-label.mc-active:before{display:block;content:\"\";position:absolute}.mc-tab-label.cdk-keyboard-focused{z-index:1}.mc-tab-label:first-child.cdk-keyboard-focused:after{left:0}.mc-tab-label:last-child.cdk-keyboard-focused:after{right:0}.mc-tab-label[disabled]{pointer-events:none}.mc-tab-label .mc-tab-label__content>.mc-icon.mc-icon_left{margin-right:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-label .mc-tab-label__content>.mc-icon.mc-icon_right{margin-left:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-label.mc-tab-label_horizontal{border-bottom-width:var(--mc-tabs-size-border-width, 1px);border-bottom-style:solid}.mc-tab-label.mc-tab-label_horizontal.mc-active:before{bottom:calc(-1 * var(--mc-tabs-size-border-width, 1px));left:0;right:0;height:var(--mc-tabs-size-highlight-height, 4px)}.mc-tab-label.mc-tab-label_vertical{justify-content:flex-start}.mc-tab-label.mc-tab-label_vertical.mc-active:before{top:0;bottom:0;left:calc(-1 * var(--mc-tabs-size-border-width, 1px));width:var(--mc-tabs-size-highlight-height, 5px)}.mc-tab-label.mc-tab-label_vertical.cdk-keyboard-focused:after{right:0;left:0;border-width:calc(var(--mc-tabs-size-border-width, 1px) * 2);border-style:solid}.mc-tab-label.mc-tab-label_vertical .mc-tab-label__content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mc-tab-label_old{border-bottom-width:var(--mc-tabs-size-border-width, 1px);border-bottom-style:solid;border-width:var(--mc-tabs-size-border-width, 1px);border-style:solid;border-top-left-radius:var(--mc-tabs-size-border-radius, 4px);border-top-right-radius:var(--mc-tabs-size-border-radius, 4px);border-left:none;border-left-color:transparent;border-right:none;border-right-color:transparent}.mc-tab-label_old.mc-active{border-width:var(--mc-tabs-size-border-width, 1px);border-style:solid;padding-right:calc(var(--mc-tabs-size-padding-horizontal, 16px) - var(--mc-tabs-size-border-width, 1px));padding-left:calc(var(--mc-tabs-size-padding-horizontal, 16px) - var(--mc-tabs-size-border-width, 1px))}.mc-tab-label_old.mc-active.cdk-keyboard-focused:after{right:calc(-2 * var(--mc-tabs-size-border-width, 1px));left:calc(-2 * var(--mc-tabs-size-border-width, 1px))}.mc-tab-label_old.cdk-keyboard-focused:after{top:-1px}.mc-tab-group_stretch-labels .mc-tab-label,.mc-tab-group_stretch-labels .mc-tab-label_old{flex-basis:0;flex-grow:1}\n"] }]
959
- }], ctorParameters: function () {
960
- return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.ViewportRuler }, { type: i0.NgZone }, { type: i2.Platform }, { type: i3.Directionality, decorators: [{
961
- type: Optional
962
- }] }, { type: undefined, decorators: [{
963
- type: Optional
964
- }, {
965
- type: Inject,
966
- args: [ANIMATION_MODULE_TYPE]
967
- }] }];
968
- }, propDecorators: { vertical: [{
969
- type: Input
970
- }], items: [{
971
- type: ContentChildren,
972
- args: [McTabLabelWrapper, { descendants: false }]
973
- }], tabListContainer: [{
974
- type: ViewChild,
975
- args: ['tabListContainer', { static: true }]
976
- }], tabList: [{
977
- type: ViewChild,
978
- args: ['tabList', { static: true }]
979
- }], nextPaginator: [{
980
- type: ViewChild,
981
- args: ['nextPaginator']
982
- }], previousPaginator: [{
983
- type: ViewChild,
984
- args: ['previousPaginator']
985
- }] } });
986
-
987
- class McOldTabsCssStyler {
988
- }
989
- /** @nocollapse */ McOldTabsCssStyler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McOldTabsCssStyler, deps: [], target: i0.ɵɵFactoryTarget.Directive });
990
- /** @nocollapse */ McOldTabsCssStyler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McOldTabsCssStyler, selector: "mc-tab-group[mc-old-tabs]", host: { classAttribute: "mc-tab-group_old" }, ngImport: i0 });
991
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McOldTabsCssStyler, decorators: [{
992
- type: Directive,
993
- args: [{
994
- selector: 'mc-tab-group[mc-old-tabs]',
995
- host: { class: 'mc-tab-group_old' }
996
- }]
997
- }] });
998
- class McAlignTabsCenterCssStyler {
999
- }
1000
- /** @nocollapse */ McAlignTabsCenterCssStyler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAlignTabsCenterCssStyler, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1001
- /** @nocollapse */ McAlignTabsCenterCssStyler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McAlignTabsCenterCssStyler, selector: "mc-tab-group[mc-align-tabs-center], [mc-tab-nav-bar][mc-align-tabs-center]", host: { classAttribute: "mc-tab-group_align-labels-center" }, ngImport: i0 });
1002
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAlignTabsCenterCssStyler, decorators: [{
1003
- type: Directive,
1004
- args: [{
1005
- selector: 'mc-tab-group[mc-align-tabs-center], [mc-tab-nav-bar][mc-align-tabs-center]',
1006
- host: { class: 'mc-tab-group_align-labels-center' }
1007
- }]
1008
- }] });
1009
- class McAlignTabsEndCssStyler {
1010
- }
1011
- /** @nocollapse */ McAlignTabsEndCssStyler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAlignTabsEndCssStyler, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1012
- /** @nocollapse */ McAlignTabsEndCssStyler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McAlignTabsEndCssStyler, selector: "mc-tab-group[mc-align-tabs-end], [mc-tab-nav-bar][mc-align-tabs-end]", host: { classAttribute: "mc-tab-group_align-labels-end" }, ngImport: i0 });
1013
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAlignTabsEndCssStyler, decorators: [{
1014
- type: Directive,
1015
- args: [{
1016
- selector: 'mc-tab-group[mc-align-tabs-end], [mc-tab-nav-bar][mc-align-tabs-end]',
1017
- host: { class: 'mc-tab-group_align-labels-end' }
1018
- }]
1019
- }] });
1020
- class McStretchTabsCssStyler {
1021
- }
1022
- /** @nocollapse */ McStretchTabsCssStyler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McStretchTabsCssStyler, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1023
- /** @nocollapse */ McStretchTabsCssStyler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McStretchTabsCssStyler, selector: "mc-tab-group[mc-stretch-tabs], [mc-tab-nav-bar][mc-stretch-tabs]", host: { classAttribute: "mc-tab-group_stretch-labels" }, ngImport: i0 });
1024
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McStretchTabsCssStyler, decorators: [{
1025
- type: Directive,
1026
- args: [{
1027
- selector: 'mc-tab-group[mc-stretch-tabs], [mc-tab-nav-bar][mc-stretch-tabs]',
1028
- host: { class: 'mc-tab-group_stretch-labels' }
1029
- }]
1030
- }] });
1031
- class McVerticalTabsCssStyler {
1032
- }
1033
- /** @nocollapse */ McVerticalTabsCssStyler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McVerticalTabsCssStyler, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1034
- /** @nocollapse */ McVerticalTabsCssStyler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McVerticalTabsCssStyler, selector: "mc-tab-group[vertical], [mc-tab-nav-bar][vertical]", host: { classAttribute: "mc-tab-group_vertical" }, ngImport: i0 });
1035
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McVerticalTabsCssStyler, decorators: [{
1036
- type: Directive,
1037
- args: [{
1038
- selector: 'mc-tab-group[vertical], [mc-tab-nav-bar][vertical]',
1039
- host: { class: 'mc-tab-group_vertical' }
1040
- }]
1041
- }] });
1042
- /** Used to generate unique ID's for each tab component */
1043
- let nextId = 0;
1044
- /** A simple change event emitted on focus or selection changes. */
1045
- class McTabChangeEvent {
1046
- }
1047
- /** Injection token that can be used to provide the default options the tabs module. */
1048
- const MC_TABS_CONFIG = new InjectionToken('MC_TABS_CONFIG');
1049
- // Boilerplate for applying mixins to McTabGroup.
1050
- /** @docs-private */
1051
- class McTabGroupBase {
1052
- constructor(elementRef) {
1053
- this.elementRef = elementRef;
1054
- }
1055
- }
1056
- /** @docs-private */
1057
- const McTabGroupMixinBase = mixinDisabled(McTabGroupBase);
1058
- /**
1059
- * Tab-group component. Supports basic tab pairs (label + content) and includes
1060
- * keyboard navigation.
1061
- */
1062
- class McTabGroup extends McTabGroupMixinBase {
1063
- constructor(elementRef, changeDetectorRef, lightTabs, vertical, defaultConfig) {
1064
- super(elementRef);
1065
- this.changeDetectorRef = changeDetectorRef;
1066
- this.resizeStream = new Subject();
1067
- this._dynamicHeight = false;
1068
- this._selectedIndex = null;
1069
- /** Position of the tab header. */
1070
- this.headerPosition = 'above';
1071
- /** Output to enable support for two-way binding on `[(selectedIndex)]` */
1072
- this.selectedIndexChange = new EventEmitter();
1073
- /** Event emitted when focus has changed within a tab group. */
1074
- this.focusChange = new EventEmitter();
1075
- /** Event emitted when the body animation has completed */
1076
- this.animationDone = new EventEmitter();
1077
- /** Event emitted when the tab selection has changed. */
1078
- this.selectedTabChange = new EventEmitter(true);
1079
- /** The tab index that should be selected after the content has been checked. */
1080
- this.indexToSelect = 0;
1081
- /** Snapshot of the height of the tab body wrapper before another tab is activated. */
1082
- this.tabBodyWrapperHeight = 0;
1083
- /** Subscription to tabs being added/removed. */
1084
- this.tabsSubscription = Subscription.EMPTY;
1085
- /** Subscription to changes in the tab labels. */
1086
- this.tabLabelSubscription = Subscription.EMPTY;
1087
- this.resizeSubscription = Subscription.EMPTY;
1088
- this.resizeDebounceInterval = 100;
1089
- this.checkOverflow = () => {
1090
- this.tabHeader.items
1091
- .forEach((headerTab) => headerTab.checkOverflow());
1092
- };
1093
- this.oldTab = coerceBooleanProperty(lightTabs);
1094
- this.vertical = coerceBooleanProperty(vertical);
1095
- this.groupId = nextId++;
1096
- this.animationDuration = (defaultConfig === null || defaultConfig === void 0 ? void 0 : defaultConfig.animationDuration) || '0ms';
1097
- this.subscribeToResize();
1098
- }
1099
- /** Whether the tab group should grow to the size of the active tab. */
1100
- get dynamicHeight() {
1101
- return this._dynamicHeight;
1102
- }
1103
- set dynamicHeight(value) {
1104
- this._dynamicHeight = coerceBooleanProperty(value);
1105
- }
1106
- /** The index of the active tab. */
1107
- get selectedIndex() {
1108
- return this._selectedIndex;
1109
- }
1110
- set selectedIndex(value) {
1111
- this.indexToSelect = coerceNumberProperty(value, null);
1112
- }
1113
- /**
1114
- * After the content is checked, this component knows what tabs have been defined
1115
- * and what the selected index should be. This is where we can know exactly what position
1116
- * each tab should be in according to the new selected index, and additionally we know how
1117
- * a new selected tab should transition in (from the left or right).
1118
- */
1119
- ngAfterContentChecked() {
1120
- // Don't clamp the `indexToSelect` immediately in the setter because it can happen that
1121
- // the amount of tabs changes before the actual change detection runs.
1122
- const indexToSelect = this.indexToSelect = this.clampTabIndex(this.indexToSelect);
1123
- // If there is a change in selected index, emit a change event. Should not trigger if
1124
- // the selected index has not yet been initialized.
1125
- if (this._selectedIndex !== indexToSelect) {
1126
- const isFirstRun = this._selectedIndex == null;
1127
- if (!isFirstRun) {
1128
- this.selectedTabChange.emit(this.createChangeEvent(indexToSelect));
1129
- }
1130
- // Changing these values after change detection has run
1131
- // since the checked content may contain references to them.
1132
- Promise.resolve().then(() => {
1133
- this.tabs.forEach((tab, index) => tab.isActive = index === indexToSelect);
1134
- if (!isFirstRun) {
1135
- this.selectedIndexChange.emit(indexToSelect);
1136
- }
1137
- });
1138
- }
1139
- // Setup the position for each tab and optionally setup an origin on the next selected tab.
1140
- this.tabs.forEach((tab, index) => {
1141
- tab.position = index - indexToSelect;
1142
- // If there is already a selected tab, then set up an origin for the next selected tab
1143
- // if it doesn't have one already.
1144
- if (this._selectedIndex != null && tab.position === 0 && !tab.origin) {
1145
- tab.origin = indexToSelect - this._selectedIndex;
1146
- }
1147
- });
1148
- if (this._selectedIndex !== indexToSelect) {
1149
- this._selectedIndex = indexToSelect;
1150
- this.changeDetectorRef.markForCheck();
1151
- }
1152
- }
1153
- ngAfterContentInit() {
1154
- this.subscribeToTabLabels();
1155
- // Subscribe to changes in the amount of tabs, in order to be
1156
- // able to re-render the content as new tabs are added or removed.
1157
- this.tabsSubscription = this.tabs.changes
1158
- .subscribe(() => {
1159
- const indexToSelect = this.clampTabIndex(this.indexToSelect);
1160
- // Maintain the previously-selected tab if a new tab is added or removed and there is no
1161
- // explicit change that selects a different tab.
1162
- if (indexToSelect === this._selectedIndex) {
1163
- const tabs = this.tabs.toArray();
1164
- for (let i = 0; i < tabs.length; i++) {
1165
- if (tabs[i].isActive) {
1166
- // Assign both to the `_indexToSelect` and `_selectedIndex` so we don't fire a changed
1167
- // event, otherwise the consumer may end up in an infinite loop in some edge cases like
1168
- // adding a tab within the `selectedIndexChange` event.
1169
- this.indexToSelect = this._selectedIndex = i;
1170
- break;
1171
- }
1172
- }
1173
- }
1174
- this.subscribeToTabLabels();
1175
- this.changeDetectorRef.markForCheck();
1176
- });
1177
- }
1178
- ngAfterViewInit() {
1179
- this.checkOverflow();
1180
- }
1181
- ngOnDestroy() {
1182
- this.tabsSubscription.unsubscribe();
1183
- this.tabLabelSubscription.unsubscribe();
1184
- this.resizeSubscription.unsubscribe();
1185
- }
1186
- focusChanged(index) {
1187
- this.focusChange.emit(this.createChangeEvent(index));
1188
- }
1189
- /** Returns a unique id for each tab label element */
1190
- getTabLabelId(i) {
1191
- return `mc-tab-label-${this.groupId}-${i}`;
1192
- }
1193
- /** Returns a unique id for each tab content element */
1194
- getTabContentId(i) {
1195
- return `mc-tab-content-${this.groupId}-${i}`;
1196
- }
1197
- /**
1198
- * Sets the height of the body wrapper to the height of the activating tab if dynamic
1199
- * height property is true.
1200
- */
1201
- setTabBodyWrapperHeight(tabHeight) {
1202
- if (!this._dynamicHeight || !this.tabBodyWrapperHeight) {
1203
- return;
1204
- }
1205
- const wrapper = this.tabBodyWrapper.nativeElement;
1206
- wrapper.style.height = `${this.tabBodyWrapperHeight}px`;
1207
- // This conditional forces the browser to paint the height so that
1208
- // the animation to the new height can have an origin.
1209
- if (this.tabBodyWrapper.nativeElement.offsetHeight) {
1210
- wrapper.style.height = `${tabHeight}px`;
1211
- }
1212
- }
1213
- /** Removes the height of the tab body wrapper. */
1214
- removeTabBodyWrapperHeight() {
1215
- this.tabBodyWrapperHeight = this.tabBodyWrapper.nativeElement.clientHeight;
1216
- this.tabBodyWrapper.nativeElement.style.height = '';
1217
- this.animationDone.emit();
1218
- }
1219
- /** Handle click events, setting new selected index if appropriate. */
1220
- handleClick(tab, tabHeader, index) {
1221
- if (tab.disabled) {
1222
- return;
1223
- }
1224
- this.selectedIndex = tabHeader.focusIndex = index;
1225
- }
1226
- /** Retrieves the tabindex for the tab. */
1227
- getTabIndex(tab, index) {
1228
- if (tab.disabled) {
1229
- return null;
1230
- }
1231
- return this.selectedIndex === index ? 0 : -1;
1232
- }
1233
- createChangeEvent(index) {
1234
- const event = new McTabChangeEvent();
1235
- event.index = index;
1236
- if (this.tabs && this.tabs.length) {
1237
- event.tab = this.tabs.toArray()[index];
1238
- }
1239
- return event;
1240
- }
1241
- /**
1242
- * Subscribes to changes in the tab labels. This is needed, because the @Input for the label is
1243
- * on the McTab component, whereas the data binding is inside the McTabGroup. In order for the
1244
- * binding to be updated, we need to subscribe to changes in it and trigger change detection
1245
- * manually.
1246
- */
1247
- subscribeToTabLabels() {
1248
- if (this.tabLabelSubscription) {
1249
- this.tabLabelSubscription.unsubscribe();
1250
- }
1251
- this.tabLabelSubscription = merge(...this.tabs.map((tab) => tab.stateChanges))
1252
- .subscribe(() => this.changeDetectorRef.markForCheck());
1253
- }
1254
- subscribeToResize() {
1255
- if (!this.vertical) {
1256
- return;
1257
- }
1258
- if (this.resizeSubscription) {
1259
- this.resizeSubscription.unsubscribe();
1260
- }
1261
- this.resizeSubscription = this.resizeStream
1262
- .pipe(debounceTime(this.resizeDebounceInterval))
1263
- .subscribe(this.checkOverflow);
1264
- }
1265
- /** Clamps the given index to the bounds of 0 and the tabs length. */
1266
- clampTabIndex(index) {
1267
- // Note the `|| 0`, which ensures that values like NaN can't get through
1268
- // and which would otherwise throw the component into an infinite loop
1269
- // (since Mch.max(NaN, 0) === NaN).
1270
- return Math.min(this.tabs.length - 1, Math.max(index || 0, 0));
1271
- }
1272
- }
1273
- /** @nocollapse */ McTabGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabGroup, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: 'mc-old-tabs', attribute: true }, { token: 'vertical', attribute: true }, { token: MC_TABS_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1274
- /** @nocollapse */ McTabGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McTabGroup, selector: "mc-tab-group", inputs: { disabled: "disabled", dynamicHeight: "dynamicHeight", selectedIndex: "selectedIndex", headerPosition: "headerPosition", animationDuration: "animationDuration" }, outputs: { selectedIndexChange: "selectedIndexChange", focusChange: "focusChange", animationDone: "animationDone", selectedTabChange: "selectedTabChange" }, host: { listeners: { "window:resize": "resizeStream.next($event)" }, properties: { "class.mc-tab-group_dynamic-height": "dynamicHeight", "class.mc-tab-group_inverted-header": "headerPosition === \"below\"" }, classAttribute: "mc-tab-group" }, queries: [{ propertyName: "tabs", predicate: McTab }], viewQueries: [{ propertyName: "tabBodyWrapper", first: true, predicate: ["tabBodyWrapper"], descendants: true }, { propertyName: "tabHeader", first: true, predicate: ["tabHeader"], descendants: true }], exportAs: ["mcTabGroup"], usesInheritance: true, ngImport: i0, template: "<mc-tab-header\n #tabHeader\n [vertical]=\"vertical\"\n [selectedIndex]=\"selectedIndex\"\n (indexFocused)=\"focusChanged($event)\"\n (selectFocusedIndex)=\"selectedIndex = $event\">\n\n <div class=\"mc-tab-label\"\n mcTabLabelWrapper\n cdkMonitorElementFocus\n [attr.tabindex]=\"getTabIndex(tab, i)\"\n [class.mc-tab-label_old]=\"oldTab\"\n [class.mc-tab-label_horizontal]=\"!vertical && !oldTab\"\n [class.mc-tab-label_vertical]=\"vertical && !oldTab\"\n [class.mc-tab-label_empty]=\"tab.empty\"\n [class.mc-active]=\"selectedIndex == i\"\n *ngFor=\"let tab of tabs; let i = index\"\n [tab]=\"tab\"\n [id]=\"getTabLabelId(i)\"\n [disabled]=\"tab.disabled\"\n (click)=\"handleClick(tab, tabHeader, i)\"\n\n [mcTooltip]=\"tab.tooltipTitle\"\n [mcTooltipDisabled]=\"!tab.empty && !tab.isOverflown\"\n [mcTrigger]=\"'hover, focus'\"\n [mcPlacement]=\"tab.tooltipPlacement\">\n\n <div #labelContent class=\"mc-tab-label__content\"\n [class.mc-tab-label__template]=\"tab.templateLabel\">\n <!-- If there is a label template, use it. -->\n <ng-template [ngIf]=\"tab.templateLabel\">\n <ng-template [cdkPortalOutlet]=\"tab.templateLabel\"></ng-template>\n </ng-template>\n\n <!-- If there is not a label template, fall back to the text label. -->\n <ng-template [ngIf]=\"!tab.templateLabel\">{{ tab.textLabel }}</ng-template>\n </div>\n </div>\n</mc-tab-header>\n\n<div class=\"mc-tab-body__wrapper\" #tabBodyWrapper>\n <mc-tab-body\n *ngFor=\"let tab of tabs; let i = index\"\n [id]=\"getTabContentId(i)\"\n [class.mc-tab-body__active]=\"selectedIndex == i\"\n [content]=\"tab.content!\"\n [position]=\"tab.position!\"\n [origin]=\"tab.origin!\"\n [animationDuration]=\"animationDuration\"\n (onCentered)=\"removeTabBodyWrapperHeight()\"\n (onCentering)=\"setTabBodyWrapperHeight($event)\">\n </mc-tab-body>\n</div>\n", styles: [".mc-tab-group{display:flex;flex-direction:column;box-sizing:border-box;text-align:left}.mc-tab-group.mc-tab-group_inverted-header{flex-direction:column-reverse}.mc-tab-group_vertical{flex-direction:row}.mc-tab-group_vertical .mc-tab-header__content{overflow-y:auto;padding-top:8px;padding-bottom:1px;border-right-width:var(--mc-tabs-size-border-width, 1px);border-right-style:solid}.mc-tab-body__wrapper{display:flex;overflow:hidden;position:relative}.mc-tab-body{inset:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mc-tab-body.mc-tab-body__active{overflow-x:hidden;overflow-y:auto;position:relative;z-index:1;flex-grow:1}.mc-tab-group.mc-tab-group_dynamic-height .mc-tab-body.mc-tab-body__active{overflow-y:hidden}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: i1$2.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"], exportAs: ["cdkMonitorFocus"] }, { kind: "directive", type: i4$1.McTooltipTrigger, selector: "[mcTooltip]", inputs: ["mcVisible", "mcPlacement", "mcPlacementPriority", "mcTooltip", "mcTooltipDisabled", "mcEnterDelay", "mcLeaveDelay", "mcTrigger", "mcTooltipClass"], outputs: ["mcPlacementChange", "mcVisibleChange"], exportAs: ["mcTooltip"] }, { kind: "directive", type: McTabLabelWrapper, selector: "[mcTabLabelWrapper]", inputs: ["disabled", "tab"] }, { kind: "component", type: McTabBody, selector: "mc-tab-body", inputs: ["position", "content", "origin", "animationDuration"], outputs: ["onCentering", "beforeCentering", "afterLeavingCenter", "onCentered"] }, { kind: "component", type: McTabHeader, selector: "mc-tab-header", inputs: ["selectedIndex", "vertical"], outputs: ["selectFocusedIndex", "indexFocused"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1275
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabGroup, decorators: [{
1276
- type: Component,
1277
- args: [{ selector: 'mc-tab-group', exportAs: 'mcTabGroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled'], host: {
1278
- class: 'mc-tab-group',
1279
- '[class.mc-tab-group_dynamic-height]': 'dynamicHeight',
1280
- '[class.mc-tab-group_inverted-header]': 'headerPosition === "below"',
1281
- '(window:resize)': 'resizeStream.next($event)'
1282
- }, template: "<mc-tab-header\n #tabHeader\n [vertical]=\"vertical\"\n [selectedIndex]=\"selectedIndex\"\n (indexFocused)=\"focusChanged($event)\"\n (selectFocusedIndex)=\"selectedIndex = $event\">\n\n <div class=\"mc-tab-label\"\n mcTabLabelWrapper\n cdkMonitorElementFocus\n [attr.tabindex]=\"getTabIndex(tab, i)\"\n [class.mc-tab-label_old]=\"oldTab\"\n [class.mc-tab-label_horizontal]=\"!vertical && !oldTab\"\n [class.mc-tab-label_vertical]=\"vertical && !oldTab\"\n [class.mc-tab-label_empty]=\"tab.empty\"\n [class.mc-active]=\"selectedIndex == i\"\n *ngFor=\"let tab of tabs; let i = index\"\n [tab]=\"tab\"\n [id]=\"getTabLabelId(i)\"\n [disabled]=\"tab.disabled\"\n (click)=\"handleClick(tab, tabHeader, i)\"\n\n [mcTooltip]=\"tab.tooltipTitle\"\n [mcTooltipDisabled]=\"!tab.empty && !tab.isOverflown\"\n [mcTrigger]=\"'hover, focus'\"\n [mcPlacement]=\"tab.tooltipPlacement\">\n\n <div #labelContent class=\"mc-tab-label__content\"\n [class.mc-tab-label__template]=\"tab.templateLabel\">\n <!-- If there is a label template, use it. -->\n <ng-template [ngIf]=\"tab.templateLabel\">\n <ng-template [cdkPortalOutlet]=\"tab.templateLabel\"></ng-template>\n </ng-template>\n\n <!-- If there is not a label template, fall back to the text label. -->\n <ng-template [ngIf]=\"!tab.templateLabel\">{{ tab.textLabel }}</ng-template>\n </div>\n </div>\n</mc-tab-header>\n\n<div class=\"mc-tab-body__wrapper\" #tabBodyWrapper>\n <mc-tab-body\n *ngFor=\"let tab of tabs; let i = index\"\n [id]=\"getTabContentId(i)\"\n [class.mc-tab-body__active]=\"selectedIndex == i\"\n [content]=\"tab.content!\"\n [position]=\"tab.position!\"\n [origin]=\"tab.origin!\"\n [animationDuration]=\"animationDuration\"\n (onCentered)=\"removeTabBodyWrapperHeight()\"\n (onCentering)=\"setTabBodyWrapperHeight($event)\">\n </mc-tab-body>\n</div>\n", styles: [".mc-tab-group{display:flex;flex-direction:column;box-sizing:border-box;text-align:left}.mc-tab-group.mc-tab-group_inverted-header{flex-direction:column-reverse}.mc-tab-group_vertical{flex-direction:row}.mc-tab-group_vertical .mc-tab-header__content{overflow-y:auto;padding-top:8px;padding-bottom:1px;border-right-width:var(--mc-tabs-size-border-width, 1px);border-right-style:solid}.mc-tab-body__wrapper{display:flex;overflow:hidden;position:relative}.mc-tab-body{inset:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mc-tab-body.mc-tab-body__active{overflow-x:hidden;overflow-y:auto;position:relative;z-index:1;flex-grow:1}.mc-tab-group.mc-tab-group_dynamic-height .mc-tab-body.mc-tab-body__active{overflow-y:hidden}\n"] }]
1283
- }], ctorParameters: function () {
1284
- return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
1285
- type: Attribute,
1286
- args: ['mc-old-tabs']
1287
- }] }, { type: undefined, decorators: [{
1288
- type: Attribute,
1289
- args: ['vertical']
1290
- }] }, { type: undefined, decorators: [{
1291
- type: Inject,
1292
- args: [MC_TABS_CONFIG]
1293
- }, {
1294
- type: Optional
1295
- }] }];
1296
- }, propDecorators: { tabs: [{
1297
- type: ContentChildren,
1298
- args: [McTab]
1299
- }], tabBodyWrapper: [{
1300
- type: ViewChild,
1301
- args: ['tabBodyWrapper', { static: false }]
1302
- }], tabHeader: [{
1303
- type: ViewChild,
1304
- args: ['tabHeader', { static: false }]
1305
- }], dynamicHeight: [{
1306
- type: Input
1307
- }], selectedIndex: [{
1308
- type: Input
1309
- }], headerPosition: [{
1310
- type: Input
1311
- }], animationDuration: [{
1312
- type: Input
1313
- }], selectedIndexChange: [{
1314
- type: Output
1315
- }], focusChange: [{
1316
- type: Output
1317
- }], animationDone: [{
1318
- type: Output
1319
- }], selectedTabChange: [{
1320
- type: Output
1321
- }] } });
1322
-
1323
- // Boilerplate for applying mixins to McTabLink.
1324
- /** @docs-private */
1325
- class McTabLinkBase {
1326
- }
1327
- /** @docs-private */
1328
- const McTabLinkMixinBase = mixinTabIndex(mixinDisabled(McTabLinkBase));
1329
- /**
1330
- * Link inside of a `mc-tab-nav-bar`.
1331
- */
1332
- class McTabLink extends McTabLinkMixinBase {
1333
- constructor(elementRef, focusMonitor, renderer) {
1334
- super();
1335
- this.elementRef = elementRef;
1336
- this.focusMonitor = focusMonitor;
1337
- this.renderer = renderer;
1338
- this.vertical = false;
1339
- /** Whether the tab link is active or not. */
1340
- this.isActive = false;
1341
- this.focusMonitor.monitor(this.elementRef.nativeElement);
1342
- }
1343
- /** Whether the link is active. */
1344
- get active() {
1345
- return this.isActive;
1346
- }
1347
- set active(value) {
1348
- if (value !== this.isActive) {
1349
- this.isActive = value;
1350
- }
1351
- }
1352
- ngAfterViewInit() {
1353
- this.addClassModifierForIcons(Array.from(this.elementRef.nativeElement.querySelectorAll('.mc-icon')));
1354
- }
1355
- ngOnDestroy() {
1356
- this.focusMonitor.stopMonitoring(this.elementRef.nativeElement);
1357
- }
1358
- addClassModifierForIcons(icons) {
1359
- const twoIcons = 2;
1360
- const [firstIconElement, secondIconElement] = icons;
1361
- if (icons.length === 1) {
1362
- const COMMENT_NODE = 8;
1363
- if (firstIconElement.nextSibling && firstIconElement.nextSibling.nodeType !== COMMENT_NODE) {
1364
- this.renderer.addClass(firstIconElement, 'mc-icon_left');
1365
- }
1366
- if (firstIconElement.previousSibling && firstIconElement.previousSibling.nodeType !== COMMENT_NODE) {
1367
- this.renderer.addClass(firstIconElement, 'mc-icon_right');
1368
- }
1369
- }
1370
- else if (icons.length === twoIcons) {
1371
- this.renderer.addClass(firstIconElement, 'mc-icon_left');
1372
- this.renderer.addClass(secondIconElement, 'mc-icon_right');
1373
- }
1374
- }
1375
- }
1376
- /** @nocollapse */ McTabLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabLink, deps: [{ token: i0.ElementRef }, { token: i1$2.FocusMonitor }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1377
- /** @nocollapse */ McTabLink.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McTabLink, selector: "a[mc-tab-link], a[mcTabLink]", inputs: { disabled: "disabled", tabIndex: "tabIndex", active: "active" }, host: { properties: { "class.mc-active": "active", "class.mc-tab-label_vertical": "vertical", "class.mc-tab-label_horizontal": "!vertical", "attr.tabindex": "tabIndex", "attr.disabled": "disabled || null" }, classAttribute: "mc-tab-link" }, exportAs: ["mcTabLink"], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
1378
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabLink, decorators: [{
1379
- type: Component,
1380
- args: [{
1381
- selector: 'a[mc-tab-link], a[mcTabLink]',
1382
- exportAs: 'mcTabLink',
1383
- template: '<ng-content></ng-content>',
1384
- inputs: ['disabled', 'tabIndex'],
1385
- host: {
1386
- class: 'mc-tab-link',
1387
- '[class.mc-active]': 'active',
1388
- '[class.mc-tab-label_vertical]': 'vertical',
1389
- '[class.mc-tab-label_horizontal]': '!vertical',
1390
- '[attr.tabindex]': 'tabIndex',
1391
- '[attr.disabled]': 'disabled || null'
1392
- }
1393
- }]
1394
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.FocusMonitor }, { type: i0.Renderer2 }]; }, propDecorators: { active: [{
1395
- type: Input
1396
- }] } });
1397
- /**
1398
- * Navigation component matching the styles of the tab group header.
1399
- */
1400
- class McTabNav {
1401
- constructor(vertical) {
1402
- this.vertical = false;
1403
- this.vertical = coerceBooleanProperty(vertical);
1404
- }
1405
- ngAfterContentInit() {
1406
- this.links.changes
1407
- .pipe(delay(0))
1408
- .subscribe((links) => links.forEach((link) => link.vertical = this.vertical));
1409
- this.links.notifyOnChanges();
1410
- }
1411
- }
1412
- /** @nocollapse */ McTabNav.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabNav, deps: [{ token: 'vertical', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
1413
- /** @nocollapse */ McTabNav.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McTabNav, selector: "[mc-tab-nav-bar]", host: { classAttribute: "mc-tab-nav-bar" }, queries: [{ propertyName: "links", predicate: McTabLink }], exportAs: ["mcTabNavBar", "mcTabNav"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".mc-tab-link.cdk-keyboard-focused:after{display:block;content:\"\";position:absolute;top:0;right:calc(-1 * var(--mc-tabs-size-border-width, 1px));bottom:calc(-1 * var(--mc-tabs-size-border-width, 1px));left:calc(-1 * var(--mc-tabs-size-border-width, 1px))}.mc-tab-link.mc-tab-label_horizontal.cdk-keyboard-focused:after{border-width:calc(var(--mc-tabs-size-border-width, 1px) * 2);border-style:solid;border-top-left-radius:var(--mc-tabs-size-border-radius, 4px);border-top-right-radius:var(--mc-tabs-size-border-radius, 4px);border-bottom-color:transparent}.mc-tab-link{vertical-align:top;text-decoration:none;-webkit-tap-highlight-color:transparent;position:relative;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;height:var(--mc-tabs-size-height, 40px);text-align:center;white-space:nowrap;cursor:pointer;padding-right:var(--mc-tabs-size-padding-horizontal, 16px);padding-left:var(--mc-tabs-size-padding-horizontal, 16px);outline:none}.mc-tab-link.mc-active{cursor:default}.mc-tab-link.mc-active:before{display:block;content:\"\";position:absolute}.mc-tab-link.cdk-keyboard-focused{z-index:1}.mc-tab-link:first-child.cdk-keyboard-focused:after{left:0}.mc-tab-link:last-child.cdk-keyboard-focused:after{right:0}.mc-tab-link[disabled]{pointer-events:none}.mc-tab-link .mc-tab-label__content>.mc-icon.mc-icon_left{margin-right:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-link .mc-tab-label__content>.mc-icon.mc-icon_right{margin-left:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-link.mc-tab-label_horizontal{border-bottom-width:var(--mc-tabs-size-border-width, 1px);border-bottom-style:solid}.mc-tab-link.mc-tab-label_horizontal.mc-active:before{bottom:calc(-1 * var(--mc-tabs-size-border-width, 1px));left:0;right:0;height:var(--mc-tabs-size-highlight-height, 4px)}.mc-tab-link.mc-tab-label_vertical{justify-content:flex-start}.mc-tab-link.mc-tab-label_vertical.mc-active:before{top:0;bottom:0;left:calc(-1 * var(--mc-tabs-size-border-width, 1px));width:var(--mc-tabs-size-highlight-height, 5px)}.mc-tab-link.mc-tab-label_vertical.cdk-keyboard-focused:after{right:0;left:0;border-width:calc(var(--mc-tabs-size-border-width, 1px) * 2);border-style:solid}.mc-tab-link.mc-tab-label_vertical .mc-tab-label__content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mc-tab-link .mc-tab-group_stretch-labels .mc-tab-link{flex-basis:0;flex-grow:1}.mc-tab-link>.mc-icon.mc-icon_left{margin-right:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-link>.mc-icon.mc-icon_right{margin-left:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-nav-bar{display:flex;flex-grow:1;position:relative;padding:1px 1px 0}.mc-tab-nav-bar .mc-tab-group_align-labels-center{justify-content:center}.mc-tab-nav-bar .mc-tab-group_align-labels-end{justify-content:flex-end}.mc-tab-nav-bar.mc-tab-group_vertical{flex-direction:column;flex-grow:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1414
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabNav, decorators: [{
1415
- type: Component,
1416
- args: [{ selector: '[mc-tab-nav-bar]', exportAs: 'mcTabNavBar, mcTabNav', template: '<ng-content></ng-content>', host: {
1417
- class: 'mc-tab-nav-bar'
1418
- }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mc-tab-link.cdk-keyboard-focused:after{display:block;content:\"\";position:absolute;top:0;right:calc(-1 * var(--mc-tabs-size-border-width, 1px));bottom:calc(-1 * var(--mc-tabs-size-border-width, 1px));left:calc(-1 * var(--mc-tabs-size-border-width, 1px))}.mc-tab-link.mc-tab-label_horizontal.cdk-keyboard-focused:after{border-width:calc(var(--mc-tabs-size-border-width, 1px) * 2);border-style:solid;border-top-left-radius:var(--mc-tabs-size-border-radius, 4px);border-top-right-radius:var(--mc-tabs-size-border-radius, 4px);border-bottom-color:transparent}.mc-tab-link{vertical-align:top;text-decoration:none;-webkit-tap-highlight-color:transparent;position:relative;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;height:var(--mc-tabs-size-height, 40px);text-align:center;white-space:nowrap;cursor:pointer;padding-right:var(--mc-tabs-size-padding-horizontal, 16px);padding-left:var(--mc-tabs-size-padding-horizontal, 16px);outline:none}.mc-tab-link.mc-active{cursor:default}.mc-tab-link.mc-active:before{display:block;content:\"\";position:absolute}.mc-tab-link.cdk-keyboard-focused{z-index:1}.mc-tab-link:first-child.cdk-keyboard-focused:after{left:0}.mc-tab-link:last-child.cdk-keyboard-focused:after{right:0}.mc-tab-link[disabled]{pointer-events:none}.mc-tab-link .mc-tab-label__content>.mc-icon.mc-icon_left{margin-right:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-link .mc-tab-label__content>.mc-icon.mc-icon_right{margin-left:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-link.mc-tab-label_horizontal{border-bottom-width:var(--mc-tabs-size-border-width, 1px);border-bottom-style:solid}.mc-tab-link.mc-tab-label_horizontal.mc-active:before{bottom:calc(-1 * var(--mc-tabs-size-border-width, 1px));left:0;right:0;height:var(--mc-tabs-size-highlight-height, 4px)}.mc-tab-link.mc-tab-label_vertical{justify-content:flex-start}.mc-tab-link.mc-tab-label_vertical.mc-active:before{top:0;bottom:0;left:calc(-1 * var(--mc-tabs-size-border-width, 1px));width:var(--mc-tabs-size-highlight-height, 5px)}.mc-tab-link.mc-tab-label_vertical.cdk-keyboard-focused:after{right:0;left:0;border-width:calc(var(--mc-tabs-size-border-width, 1px) * 2);border-style:solid}.mc-tab-link.mc-tab-label_vertical .mc-tab-label__content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mc-tab-link .mc-tab-group_stretch-labels .mc-tab-link{flex-basis:0;flex-grow:1}.mc-tab-link>.mc-icon.mc-icon_left{margin-right:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-link>.mc-icon.mc-icon_right{margin-left:var(--mc-tabs-size-label-icon-margin, 8px)}.mc-tab-nav-bar{display:flex;flex-grow:1;position:relative;padding:1px 1px 0}.mc-tab-nav-bar .mc-tab-group_align-labels-center{justify-content:center}.mc-tab-nav-bar .mc-tab-group_align-labels-end{justify-content:flex-end}.mc-tab-nav-bar.mc-tab-group_vertical{flex-direction:column;flex-grow:0}\n"] }]
1419
- }], ctorParameters: function () {
1420
- return [{ type: undefined, decorators: [{
1421
- type: Attribute,
1422
- args: ['vertical']
1423
- }] }];
1424
- }, propDecorators: { links: [{
1425
- type: ContentChildren,
1426
- args: [McTabLink]
1427
- }] } });
1428
-
1429
- class McTabsModule {
1430
- }
1431
- /** @nocollapse */ McTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1432
- /** @nocollapse */ McTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McTabsModule, declarations: [McTabGroup,
1433
- McTabLabel,
1434
- McTab,
1435
- McTabLabelWrapper,
1436
- McTabNav,
1437
- McTabLink,
1438
- McTabBody,
1439
- McTabBodyPortal,
1440
- McTabHeader,
1441
- McTabContent,
1442
- McOldTabsCssStyler,
1443
- McAlignTabsCenterCssStyler,
1444
- McAlignTabsEndCssStyler,
1445
- McStretchTabsCssStyler,
1446
- McVerticalTabsCssStyler], imports: [CommonModule,
1447
- PortalModule,
1448
- A11yModule,
1449
- CdkScrollableModule,
1450
- McCommonModule,
1451
- McIconModule,
1452
- McToolTipModule], exports: [McCommonModule,
1453
- McTabGroup,
1454
- McTabLabel,
1455
- McTab,
1456
- McTabNav,
1457
- McTabLink,
1458
- McTabContent,
1459
- McOldTabsCssStyler,
1460
- McAlignTabsCenterCssStyler,
1461
- McAlignTabsEndCssStyler,
1462
- McStretchTabsCssStyler,
1463
- McVerticalTabsCssStyler] });
1464
- /** @nocollapse */ McTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabsModule, imports: [CommonModule,
1465
- PortalModule,
1466
- A11yModule,
1467
- CdkScrollableModule,
1468
- McCommonModule,
1469
- McIconModule,
1470
- McToolTipModule, McCommonModule] });
1471
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McTabsModule, decorators: [{
1472
- type: NgModule,
1473
- args: [{
1474
- imports: [
1475
- CommonModule,
1476
- PortalModule,
1477
- A11yModule,
1478
- CdkScrollableModule,
1479
- McCommonModule,
1480
- McIconModule,
1481
- McToolTipModule
1482
- ],
1483
- // Don't export all components because some are only to be used internally.
1484
- exports: [
1485
- McCommonModule,
1486
- McTabGroup,
1487
- McTabLabel,
1488
- McTab,
1489
- McTabNav,
1490
- McTabLink,
1491
- McTabContent,
1492
- McOldTabsCssStyler,
1493
- McAlignTabsCenterCssStyler,
1494
- McAlignTabsEndCssStyler,
1495
- McStretchTabsCssStyler,
1496
- McVerticalTabsCssStyler
1497
- ],
1498
- declarations: [
1499
- McTabGroup,
1500
- McTabLabel,
1501
- McTab,
1502
- McTabLabelWrapper,
1503
- McTabNav,
1504
- McTabLink,
1505
- McTabBody,
1506
- McTabBodyPortal,
1507
- McTabHeader,
1508
- McTabContent,
1509
- McOldTabsCssStyler,
1510
- McAlignTabsCenterCssStyler,
1511
- McAlignTabsEndCssStyler,
1512
- McStretchTabsCssStyler,
1513
- McVerticalTabsCssStyler
1514
- ]
1515
- }]
1516
- }] });
1517
-
1518
- /**
1519
- * Generated bundle index. Do not edit.
1520
- */
1521
-
1522
- export { MC_TABS_CONFIG, McAlignTabsCenterCssStyler, McAlignTabsEndCssStyler, McOldTabsCssStyler, McStretchTabsCssStyler, McTab, McTabBody, McTabBodyPortal, McTabChangeEvent, McTabContent, McTabGroup, McTabGroupBase, McTabGroupMixinBase, McTabHeader, McTabLabel, McTabLabelWrapper, McTabLink, McTabNav, McTabsModule, McVerticalTabsCssStyler, mcTabsAnimations };
1523
- //# sourceMappingURL=ptsecurity-mosaic-tabs.mjs.map