@angular/material 14.0.0-next.0 → 14.0.0-next.11

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 (542) hide show
  1. package/_index.scss +20 -1
  2. package/autocomplete/autocomplete-trigger.d.ts +14 -3
  3. package/autocomplete/autocomplete.d.ts +7 -1
  4. package/badge/_badge-theme.scss +11 -2
  5. package/button-toggle/_button-toggle-theme.scss +14 -2
  6. package/checkbox/_checkbox-theme.scss +1 -1
  7. package/checkbox/checkbox.d.ts +1 -1
  8. package/checkbox/testing/checkbox-harness-filters.d.ts +2 -0
  9. package/chips/chip-input.d.ts +2 -5
  10. package/chips/chip-list.d.ts +21 -6
  11. package/chips/chip.d.ts +4 -4
  12. package/core/_core.scss +5 -7
  13. package/core/common-behaviors/error-state.d.ts +1 -2
  14. package/core/datetime/index.d.ts +1 -2
  15. package/core/ripple/_ripple.scss +2 -2
  16. package/core/ripple/index.d.ts +1 -2
  17. package/core/ripple/ripple-ref.d.ts +2 -1
  18. package/core/ripple/ripple-renderer.d.ts +16 -3
  19. package/core/style/_menu-common.scss +3 -2
  20. package/core/style/_vendor-prefixes.scss +1 -17
  21. package/core/theming/_theming.scss +9 -0
  22. package/core/typography/_typography.scss +51 -14
  23. package/datepicker/calendar-body.d.ts +34 -4
  24. package/datepicker/date-range-input-parts.d.ts +4 -1
  25. package/datepicker/datepicker-base.d.ts +2 -0
  26. package/datepicker/month-view.d.ts +18 -0
  27. package/datepicker/multi-year-view.d.ts +18 -0
  28. package/datepicker/year-view.d.ts +18 -0
  29. package/dialog/dialog-animations.d.ts +10 -0
  30. package/dialog/dialog-config.d.ts +12 -1
  31. package/dialog/dialog-container.d.ts +12 -4
  32. package/dialog/dialog-content-directives.d.ts +5 -1
  33. package/dialog/dialog.d.ts +12 -6
  34. package/dialog/public-api.d.ts +1 -1
  35. package/dialog/testing/dialog-opener.d.ts +33 -0
  36. package/dialog/testing/public-api.d.ts +1 -0
  37. package/esm2020/autocomplete/autocomplete-module.mjs +5 -5
  38. package/esm2020/autocomplete/autocomplete-origin.mjs +7 -7
  39. package/esm2020/autocomplete/autocomplete-trigger.mjs +96 -49
  40. package/esm2020/autocomplete/autocomplete.mjs +19 -9
  41. package/esm2020/autocomplete/testing/autocomplete-harness.mjs +7 -1
  42. package/esm2020/badge/badge-module.mjs +5 -5
  43. package/esm2020/badge/badge.mjs +4 -4
  44. package/esm2020/bottom-sheet/bottom-sheet-animations.mjs +10 -4
  45. package/esm2020/bottom-sheet/bottom-sheet-container.mjs +12 -7
  46. package/esm2020/bottom-sheet/bottom-sheet-module.mjs +5 -5
  47. package/esm2020/bottom-sheet/bottom-sheet.mjs +4 -4
  48. package/esm2020/button/button-module.mjs +5 -5
  49. package/esm2020/button/button.mjs +10 -10
  50. package/esm2020/button-toggle/button-toggle-module.mjs +5 -5
  51. package/esm2020/button-toggle/button-toggle.mjs +8 -8
  52. package/esm2020/card/card-module.mjs +5 -5
  53. package/esm2020/card/card.mjs +44 -44
  54. package/esm2020/checkbox/checkbox-module.mjs +9 -9
  55. package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
  56. package/esm2020/checkbox/checkbox.mjs +12 -8
  57. package/esm2020/checkbox/testing/checkbox-harness-filters.mjs +1 -1
  58. package/esm2020/checkbox/testing/checkbox-harness.mjs +3 -2
  59. package/esm2020/chips/chip-input.mjs +4 -4
  60. package/esm2020/chips/chip-list.mjs +34 -9
  61. package/esm2020/chips/chip.mjs +20 -17
  62. package/esm2020/chips/chips-module.mjs +5 -5
  63. package/esm2020/core/common-behaviors/common-module.mjs +5 -5
  64. package/esm2020/core/common-behaviors/error-state.mjs +1 -8
  65. package/esm2020/core/datetime/index.mjs +9 -11
  66. package/esm2020/core/datetime/native-date-adapter.mjs +4 -4
  67. package/esm2020/core/error/error-options.mjs +7 -7
  68. package/esm2020/core/line/line.mjs +8 -8
  69. package/esm2020/core/option/index.mjs +5 -5
  70. package/esm2020/core/option/optgroup.mjs +8 -8
  71. package/esm2020/core/option/option.mjs +8 -8
  72. package/esm2020/core/ripple/index.mjs +6 -7
  73. package/esm2020/core/ripple/ripple-ref.mjs +5 -2
  74. package/esm2020/core/ripple/ripple-renderer.mjs +112 -54
  75. package/esm2020/core/ripple/ripple.mjs +4 -4
  76. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
  77. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +5 -5
  78. package/esm2020/core/version.mjs +1 -1
  79. package/esm2020/datepicker/calendar-body.mjs +57 -12
  80. package/esm2020/datepicker/calendar.mjs +26 -15
  81. package/esm2020/datepicker/date-range-input-parts.mjs +10 -10
  82. package/esm2020/datepicker/date-range-input.mjs +6 -6
  83. package/esm2020/datepicker/date-range-picker.mjs +4 -4
  84. package/esm2020/datepicker/date-range-selection-strategy.mjs +4 -4
  85. package/esm2020/datepicker/date-selection-model.mjs +10 -10
  86. package/esm2020/datepicker/datepicker-actions.mjs +12 -12
  87. package/esm2020/datepicker/datepicker-base.mjs +9 -17
  88. package/esm2020/datepicker/datepicker-input-base.mjs +12 -7
  89. package/esm2020/datepicker/datepicker-input.mjs +4 -4
  90. package/esm2020/datepicker/datepicker-intl.mjs +4 -4
  91. package/esm2020/datepicker/datepicker-module.mjs +5 -5
  92. package/esm2020/datepicker/datepicker-toggle.mjs +8 -8
  93. package/esm2020/datepicker/datepicker.mjs +4 -4
  94. package/esm2020/datepicker/month-view.mjs +36 -9
  95. package/esm2020/datepicker/multi-year-view.mjs +42 -10
  96. package/esm2020/datepicker/year-view.mjs +41 -10
  97. package/esm2020/dialog/dialog-animations.mjs +17 -4
  98. package/esm2020/dialog/dialog-config.mjs +8 -1
  99. package/esm2020/dialog/dialog-container.mjs +44 -26
  100. package/esm2020/dialog/dialog-content-directives.mjs +31 -15
  101. package/esm2020/dialog/dialog-module.mjs +5 -5
  102. package/esm2020/dialog/dialog.mjs +24 -40
  103. package/esm2020/dialog/public-api.mjs +2 -2
  104. package/esm2020/dialog/testing/dialog-opener.mjs +67 -0
  105. package/esm2020/dialog/testing/public-api.mjs +2 -1
  106. package/esm2020/divider/divider-module.mjs +5 -5
  107. package/esm2020/divider/divider.mjs +5 -5
  108. package/esm2020/expansion/accordion.mjs +4 -4
  109. package/esm2020/expansion/expansion-module.mjs +5 -5
  110. package/esm2020/expansion/expansion-panel-base.mjs +14 -0
  111. package/esm2020/expansion/expansion-panel-content.mjs +14 -7
  112. package/esm2020/expansion/expansion-panel-header.mjs +11 -11
  113. package/esm2020/expansion/expansion-panel.mjs +13 -10
  114. package/esm2020/expansion/public-api.mjs +2 -1
  115. package/esm2020/form-field/error.mjs +4 -4
  116. package/esm2020/form-field/form-field-control.mjs +4 -4
  117. package/esm2020/form-field/form-field-module.mjs +5 -5
  118. package/esm2020/form-field/form-field.mjs +22 -14
  119. package/esm2020/form-field/hint.mjs +4 -4
  120. package/esm2020/form-field/label.mjs +4 -4
  121. package/esm2020/form-field/placeholder.mjs +4 -4
  122. package/esm2020/form-field/prefix.mjs +4 -4
  123. package/esm2020/form-field/suffix.mjs +4 -4
  124. package/esm2020/form-field/testing/public-api.mjs +4 -4
  125. package/esm2020/grid-list/grid-list-module.mjs +5 -5
  126. package/esm2020/grid-list/grid-list.mjs +6 -6
  127. package/esm2020/grid-list/grid-tile.mjs +17 -17
  128. package/esm2020/icon/icon-module.mjs +5 -5
  129. package/esm2020/icon/icon-registry.mjs +12 -14
  130. package/esm2020/icon/icon.mjs +31 -28
  131. package/esm2020/icon/testing/fake-icon-registry.mjs +9 -9
  132. package/esm2020/input/input-module.mjs +5 -5
  133. package/esm2020/input/input.mjs +41 -24
  134. package/esm2020/list/list-module.mjs +5 -5
  135. package/esm2020/list/list.mjs +21 -23
  136. package/esm2020/list/selection-list.mjs +15 -38
  137. package/esm2020/list/testing/list-item-harness-base.mjs +1 -9
  138. package/esm2020/menu/menu-content.mjs +7 -7
  139. package/esm2020/menu/menu-errors.mjs +1 -12
  140. package/esm2020/menu/menu-item.mjs +8 -4
  141. package/esm2020/menu/menu-module.mjs +5 -5
  142. package/esm2020/menu/menu-trigger.mjs +79 -65
  143. package/esm2020/menu/menu.mjs +35 -14
  144. package/esm2020/paginator/paginator-intl.mjs +4 -4
  145. package/esm2020/paginator/paginator-module.mjs +5 -5
  146. package/esm2020/paginator/paginator.mjs +12 -8
  147. package/esm2020/paginator/testing/paginator-harness.mjs +11 -1
  148. package/esm2020/progress-bar/progress-bar-module.mjs +5 -5
  149. package/esm2020/progress-bar/progress-bar.mjs +8 -5
  150. package/esm2020/progress-spinner/progress-spinner-module.mjs +8 -8
  151. package/esm2020/progress-spinner/progress-spinner.mjs +14 -51
  152. package/esm2020/progress-spinner/public-api.mjs +10 -2
  153. package/esm2020/radio/radio-module.mjs +5 -5
  154. package/esm2020/radio/radio.mjs +42 -14
  155. package/esm2020/radio/testing/radio-harness-filters.mjs +1 -1
  156. package/esm2020/radio/testing/radio-harness.mjs +3 -2
  157. package/esm2020/select/select-module.mjs +5 -5
  158. package/esm2020/select/select.mjs +66 -28
  159. package/esm2020/sidenav/drawer.mjs +19 -14
  160. package/esm2020/sidenav/sidenav-module.mjs +7 -8
  161. package/esm2020/sidenav/sidenav.mjs +12 -12
  162. package/esm2020/slide-toggle/slide-toggle-module.mjs +9 -9
  163. package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +4 -4
  164. package/esm2020/slide-toggle/slide-toggle.mjs +6 -5
  165. package/esm2020/slide-toggle/testing/slide-toggle-harness-filters.mjs +1 -1
  166. package/esm2020/slide-toggle/testing/slide-toggle-harness.mjs +4 -2
  167. package/esm2020/slider/slider-module.mjs +5 -5
  168. package/esm2020/slider/slider.mjs +15 -8
  169. package/esm2020/snack-bar/simple-snack-bar.mjs +5 -5
  170. package/esm2020/snack-bar/snack-bar-container.mjs +24 -18
  171. package/esm2020/snack-bar/snack-bar-module.mjs +5 -5
  172. package/esm2020/snack-bar/snack-bar.mjs +7 -7
  173. package/esm2020/sort/sort-header-intl.mjs +4 -4
  174. package/esm2020/sort/sort-header.mjs +16 -8
  175. package/esm2020/sort/sort-module.mjs +5 -5
  176. package/esm2020/sort/sort.mjs +4 -4
  177. package/esm2020/stepper/public-api.mjs +2 -2
  178. package/esm2020/stepper/step-content.mjs +4 -4
  179. package/esm2020/stepper/step-header.mjs +5 -5
  180. package/esm2020/stepper/step-label.mjs +4 -4
  181. package/esm2020/stepper/stepper-animations.mjs +9 -3
  182. package/esm2020/stepper/stepper-button.mjs +7 -7
  183. package/esm2020/stepper/stepper-icon.mjs +4 -4
  184. package/esm2020/stepper/stepper-intl.mjs +4 -4
  185. package/esm2020/stepper/stepper-module.mjs +6 -10
  186. package/esm2020/stepper/stepper.mjs +39 -63
  187. package/esm2020/table/cell.mjs +22 -22
  188. package/esm2020/table/row.mjs +22 -22
  189. package/esm2020/table/table-module.mjs +5 -5
  190. package/esm2020/table/table.mjs +9 -9
  191. package/esm2020/table/text-column.mjs +4 -4
  192. package/esm2020/tabs/ink-bar.mjs +11 -22
  193. package/esm2020/tabs/paginated-tab-header.mjs +27 -13
  194. package/esm2020/tabs/tab-body.mjs +18 -12
  195. package/esm2020/tabs/tab-config.mjs +1 -1
  196. package/esm2020/tabs/tab-content.mjs +4 -4
  197. package/esm2020/tabs/tab-group.mjs +55 -11
  198. package/esm2020/tabs/tab-header.mjs +8 -8
  199. package/esm2020/tabs/tab-label-wrapper.mjs +4 -4
  200. package/esm2020/tabs/tab-label.mjs +4 -4
  201. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +18 -18
  202. package/esm2020/tabs/tab.mjs +4 -4
  203. package/esm2020/tabs/tabs-animations.mjs +16 -6
  204. package/esm2020/tabs/tabs-module.mjs +5 -5
  205. package/esm2020/toolbar/toolbar-module.mjs +5 -5
  206. package/esm2020/toolbar/toolbar.mjs +8 -8
  207. package/esm2020/tooltip/testing/tooltip-harness.mjs +12 -7
  208. package/esm2020/tooltip/tooltip-module.mjs +5 -5
  209. package/esm2020/tooltip/tooltip.mjs +126 -51
  210. package/esm2020/tree/node.mjs +10 -10
  211. package/esm2020/tree/outlet.mjs +4 -4
  212. package/esm2020/tree/padding.mjs +4 -4
  213. package/esm2020/tree/toggle.mjs +4 -4
  214. package/esm2020/tree/tree-module.mjs +5 -5
  215. package/esm2020/tree/tree.mjs +5 -5
  216. package/expansion/expansion-panel-base.d.ts +22 -0
  217. package/expansion/expansion-panel-content.d.ts +4 -2
  218. package/expansion/public-api.d.ts +1 -0
  219. package/fesm2015/autocomplete/testing.mjs +6 -0
  220. package/fesm2015/autocomplete/testing.mjs.map +1 -1
  221. package/fesm2015/autocomplete.mjs +125 -67
  222. package/fesm2015/autocomplete.mjs.map +1 -1
  223. package/fesm2015/badge/testing.mjs.map +1 -1
  224. package/fesm2015/badge.mjs +7 -7
  225. package/fesm2015/badge.mjs.map +1 -1
  226. package/fesm2015/bottom-sheet/testing.mjs.map +1 -1
  227. package/fesm2015/bottom-sheet.mjs +27 -16
  228. package/fesm2015/bottom-sheet.mjs.map +1 -1
  229. package/fesm2015/button/testing.mjs.map +1 -1
  230. package/fesm2015/button-toggle/testing.mjs.map +1 -1
  231. package/fesm2015/button-toggle.mjs +11 -11
  232. package/fesm2015/button-toggle.mjs.map +1 -1
  233. package/fesm2015/button.mjs +13 -13
  234. package/fesm2015/button.mjs.map +1 -1
  235. package/fesm2015/card/testing.mjs.map +1 -1
  236. package/fesm2015/card.mjs +47 -47
  237. package/fesm2015/card.mjs.map +1 -1
  238. package/fesm2015/checkbox/testing.mjs +2 -1
  239. package/fesm2015/checkbox/testing.mjs.map +1 -1
  240. package/fesm2015/checkbox.mjs +22 -18
  241. package/fesm2015/checkbox.mjs.map +1 -1
  242. package/fesm2015/chips/testing.mjs.map +1 -1
  243. package/fesm2015/chips.mjs +59 -31
  244. package/fesm2015/chips.mjs.map +1 -1
  245. package/fesm2015/core/testing.mjs.map +1 -1
  246. package/fesm2015/core.mjs +181 -126
  247. package/fesm2015/core.mjs.map +1 -1
  248. package/fesm2015/datepicker/testing.mjs.map +1 -1
  249. package/fesm2015/datepicker.mjs +273 -130
  250. package/fesm2015/datepicker.mjs.map +1 -1
  251. package/fesm2015/dialog/testing.mjs +65 -2
  252. package/fesm2015/dialog/testing.mjs.map +1 -1
  253. package/fesm2015/dialog.mjs +144 -106
  254. package/fesm2015/dialog.mjs.map +1 -1
  255. package/fesm2015/divider/testing.mjs.map +1 -1
  256. package/fesm2015/divider.mjs +8 -8
  257. package/fesm2015/divider.mjs.map +1 -1
  258. package/fesm2015/expansion/testing.mjs.map +1 -1
  259. package/fesm2015/expansion.mjs +56 -33
  260. package/fesm2015/expansion.mjs.map +1 -1
  261. package/fesm2015/form-field/testing/control.mjs.map +1 -1
  262. package/fesm2015/form-field/testing.mjs +1 -1
  263. package/fesm2015/form-field/testing.mjs.map +1 -1
  264. package/fesm2015/form-field.mjs +47 -38
  265. package/fesm2015/form-field.mjs.map +1 -1
  266. package/fesm2015/grid-list/testing.mjs.map +1 -1
  267. package/fesm2015/grid-list.mjs +25 -25
  268. package/fesm2015/grid-list.mjs.map +1 -1
  269. package/fesm2015/icon/testing.mjs +8 -8
  270. package/fesm2015/icon/testing.mjs.map +1 -1
  271. package/fesm2015/icon.mjs +45 -44
  272. package/fesm2015/icon.mjs.map +1 -1
  273. package/fesm2015/input/testing.mjs.map +1 -1
  274. package/fesm2015/input.mjs +45 -28
  275. package/fesm2015/input.mjs.map +1 -1
  276. package/fesm2015/list/testing.mjs +0 -10
  277. package/fesm2015/list/testing.mjs.map +1 -1
  278. package/fesm2015/list.mjs +41 -67
  279. package/fesm2015/list.mjs.map +1 -1
  280. package/fesm2015/material.mjs.map +1 -1
  281. package/fesm2015/menu/testing.mjs.map +1 -1
  282. package/fesm2015/menu.mjs +131 -99
  283. package/fesm2015/menu.mjs.map +1 -1
  284. package/fesm2015/paginator/testing.mjs +14 -0
  285. package/fesm2015/paginator/testing.mjs.map +1 -1
  286. package/fesm2015/paginator.mjs +18 -14
  287. package/fesm2015/paginator.mjs.map +1 -1
  288. package/fesm2015/progress-bar/testing.mjs.map +1 -1
  289. package/fesm2015/progress-bar.mjs +11 -8
  290. package/fesm2015/progress-bar.mjs.map +1 -1
  291. package/fesm2015/progress-spinner/testing.mjs.map +1 -1
  292. package/fesm2015/progress-spinner.mjs +31 -63
  293. package/fesm2015/progress-spinner.mjs.map +1 -1
  294. package/fesm2015/radio/testing.mjs +2 -1
  295. package/fesm2015/radio/testing.mjs.map +1 -1
  296. package/fesm2015/radio.mjs +46 -17
  297. package/fesm2015/radio.mjs.map +1 -1
  298. package/fesm2015/select/testing.mjs.map +1 -1
  299. package/fesm2015/select.mjs +70 -32
  300. package/fesm2015/select.mjs.map +1 -1
  301. package/fesm2015/sidenav/testing.mjs.map +1 -1
  302. package/fesm2015/sidenav.mjs +36 -32
  303. package/fesm2015/sidenav.mjs.map +1 -1
  304. package/fesm2015/slide-toggle/testing.mjs +3 -1
  305. package/fesm2015/slide-toggle/testing.mjs.map +1 -1
  306. package/fesm2015/slide-toggle.mjs +16 -15
  307. package/fesm2015/slide-toggle.mjs.map +1 -1
  308. package/fesm2015/slider/testing.mjs.map +1 -1
  309. package/fesm2015/slider.mjs +18 -11
  310. package/fesm2015/slider.mjs.map +1 -1
  311. package/fesm2015/snack-bar/testing.mjs.map +1 -1
  312. package/fesm2015/snack-bar.mjs +37 -31
  313. package/fesm2015/snack-bar.mjs.map +1 -1
  314. package/fesm2015/sort/testing.mjs.map +1 -1
  315. package/fesm2015/sort.mjs +128 -120
  316. package/fesm2015/sort.mjs.map +1 -1
  317. package/fesm2015/stepper/testing.mjs.map +1 -1
  318. package/fesm2015/stepper.mjs +72 -93
  319. package/fesm2015/stepper.mjs.map +1 -1
  320. package/fesm2015/table/testing.mjs.map +1 -1
  321. package/fesm2015/table.mjs +57 -57
  322. package/fesm2015/table.mjs.map +1 -1
  323. package/fesm2015/tabs/testing.mjs.map +1 -1
  324. package/fesm2015/tabs.mjs +162 -99
  325. package/fesm2015/tabs.mjs.map +1 -1
  326. package/fesm2015/toolbar/testing.mjs.map +1 -1
  327. package/fesm2015/toolbar.mjs +11 -11
  328. package/fesm2015/toolbar.mjs.map +1 -1
  329. package/fesm2015/tooltip/testing.mjs +11 -8
  330. package/fesm2015/tooltip/testing.mjs.map +1 -1
  331. package/fesm2015/tooltip.mjs +154 -79
  332. package/fesm2015/tooltip.mjs.map +1 -1
  333. package/fesm2015/tree/testing.mjs.map +1 -1
  334. package/fesm2015/tree.mjs +26 -26
  335. package/fesm2015/tree.mjs.map +1 -1
  336. package/fesm2020/autocomplete/testing.mjs +6 -0
  337. package/fesm2020/autocomplete/testing.mjs.map +1 -1
  338. package/fesm2020/autocomplete.mjs +124 -67
  339. package/fesm2020/autocomplete.mjs.map +1 -1
  340. package/fesm2020/badge/testing.mjs.map +1 -1
  341. package/fesm2020/badge.mjs +7 -7
  342. package/fesm2020/badge.mjs.map +1 -1
  343. package/fesm2020/bottom-sheet/testing.mjs.map +1 -1
  344. package/fesm2020/bottom-sheet.mjs +27 -16
  345. package/fesm2020/bottom-sheet.mjs.map +1 -1
  346. package/fesm2020/button/testing.mjs.map +1 -1
  347. package/fesm2020/button-toggle/testing.mjs.map +1 -1
  348. package/fesm2020/button-toggle.mjs +11 -11
  349. package/fesm2020/button-toggle.mjs.map +1 -1
  350. package/fesm2020/button.mjs +13 -13
  351. package/fesm2020/button.mjs.map +1 -1
  352. package/fesm2020/card/testing.mjs.map +1 -1
  353. package/fesm2020/card.mjs +47 -47
  354. package/fesm2020/card.mjs.map +1 -1
  355. package/fesm2020/checkbox/testing.mjs +2 -1
  356. package/fesm2020/checkbox/testing.mjs.map +1 -1
  357. package/fesm2020/checkbox.mjs +22 -18
  358. package/fesm2020/checkbox.mjs.map +1 -1
  359. package/fesm2020/chips/testing.mjs.map +1 -1
  360. package/fesm2020/chips.mjs +59 -31
  361. package/fesm2020/chips.mjs.map +1 -1
  362. package/fesm2020/core/testing.mjs.map +1 -1
  363. package/fesm2020/core.mjs +180 -126
  364. package/fesm2020/core.mjs.map +1 -1
  365. package/fesm2020/datepicker/testing.mjs.map +1 -1
  366. package/fesm2020/datepicker.mjs +273 -130
  367. package/fesm2020/datepicker.mjs.map +1 -1
  368. package/fesm2020/dialog/testing.mjs +65 -1
  369. package/fesm2020/dialog/testing.mjs.map +1 -1
  370. package/fesm2020/dialog.mjs +143 -106
  371. package/fesm2020/dialog.mjs.map +1 -1
  372. package/fesm2020/divider/testing.mjs.map +1 -1
  373. package/fesm2020/divider.mjs +8 -8
  374. package/fesm2020/divider.mjs.map +1 -1
  375. package/fesm2020/expansion/testing.mjs.map +1 -1
  376. package/fesm2020/expansion.mjs +54 -33
  377. package/fesm2020/expansion.mjs.map +1 -1
  378. package/fesm2020/form-field/testing/control.mjs.map +1 -1
  379. package/fesm2020/form-field/testing.mjs +1 -1
  380. package/fesm2020/form-field/testing.mjs.map +1 -1
  381. package/fesm2020/form-field.mjs +46 -38
  382. package/fesm2020/form-field.mjs.map +1 -1
  383. package/fesm2020/grid-list/testing.mjs.map +1 -1
  384. package/fesm2020/grid-list.mjs +25 -25
  385. package/fesm2020/grid-list.mjs.map +1 -1
  386. package/fesm2020/icon/testing.mjs +8 -8
  387. package/fesm2020/icon/testing.mjs.map +1 -1
  388. package/fesm2020/icon.mjs +45 -44
  389. package/fesm2020/icon.mjs.map +1 -1
  390. package/fesm2020/input/testing.mjs.map +1 -1
  391. package/fesm2020/input.mjs +44 -27
  392. package/fesm2020/input.mjs.map +1 -1
  393. package/fesm2020/list/testing.mjs +0 -8
  394. package/fesm2020/list/testing.mjs.map +1 -1
  395. package/fesm2020/list.mjs +38 -63
  396. package/fesm2020/list.mjs.map +1 -1
  397. package/fesm2020/material.mjs.map +1 -1
  398. package/fesm2020/menu/testing.mjs.map +1 -1
  399. package/fesm2020/menu.mjs +127 -99
  400. package/fesm2020/menu.mjs.map +1 -1
  401. package/fesm2020/paginator/testing.mjs +10 -0
  402. package/fesm2020/paginator/testing.mjs.map +1 -1
  403. package/fesm2020/paginator.mjs +18 -14
  404. package/fesm2020/paginator.mjs.map +1 -1
  405. package/fesm2020/progress-bar/testing.mjs.map +1 -1
  406. package/fesm2020/progress-bar.mjs +11 -8
  407. package/fesm2020/progress-bar.mjs.map +1 -1
  408. package/fesm2020/progress-spinner/testing.mjs.map +1 -1
  409. package/fesm2020/progress-spinner.mjs +31 -61
  410. package/fesm2020/progress-spinner.mjs.map +1 -1
  411. package/fesm2020/radio/testing.mjs +2 -1
  412. package/fesm2020/radio/testing.mjs.map +1 -1
  413. package/fesm2020/radio.mjs +45 -17
  414. package/fesm2020/radio.mjs.map +1 -1
  415. package/fesm2020/select/testing.mjs.map +1 -1
  416. package/fesm2020/select.mjs +70 -32
  417. package/fesm2020/select.mjs.map +1 -1
  418. package/fesm2020/sidenav/testing.mjs.map +1 -1
  419. package/fesm2020/sidenav.mjs +36 -32
  420. package/fesm2020/sidenav.mjs.map +1 -1
  421. package/fesm2020/slide-toggle/testing.mjs +3 -1
  422. package/fesm2020/slide-toggle/testing.mjs.map +1 -1
  423. package/fesm2020/slide-toggle.mjs +16 -15
  424. package/fesm2020/slide-toggle.mjs.map +1 -1
  425. package/fesm2020/slider/testing.mjs.map +1 -1
  426. package/fesm2020/slider.mjs +18 -11
  427. package/fesm2020/slider.mjs.map +1 -1
  428. package/fesm2020/snack-bar/testing.mjs.map +1 -1
  429. package/fesm2020/snack-bar.mjs +37 -31
  430. package/fesm2020/snack-bar.mjs.map +1 -1
  431. package/fesm2020/sort/testing.mjs.map +1 -1
  432. package/fesm2020/sort.mjs +24 -16
  433. package/fesm2020/sort.mjs.map +1 -1
  434. package/fesm2020/stepper/testing.mjs.map +1 -1
  435. package/fesm2020/stepper.mjs +72 -93
  436. package/fesm2020/stepper.mjs.map +1 -1
  437. package/fesm2020/table/testing.mjs.map +1 -1
  438. package/fesm2020/table.mjs +57 -57
  439. package/fesm2020/table.mjs.map +1 -1
  440. package/fesm2020/tabs/testing.mjs.map +1 -1
  441. package/fesm2020/tabs.mjs +161 -99
  442. package/fesm2020/tabs.mjs.map +1 -1
  443. package/fesm2020/toolbar/testing.mjs.map +1 -1
  444. package/fesm2020/toolbar.mjs +11 -11
  445. package/fesm2020/toolbar.mjs.map +1 -1
  446. package/fesm2020/tooltip/testing.mjs +11 -6
  447. package/fesm2020/tooltip/testing.mjs.map +1 -1
  448. package/fesm2020/tooltip.mjs +147 -71
  449. package/fesm2020/tooltip.mjs.map +1 -1
  450. package/fesm2020/tree/testing.mjs.map +1 -1
  451. package/fesm2020/tree.mjs +26 -26
  452. package/fesm2020/tree.mjs.map +1 -1
  453. package/form-field/form-field-control.d.ts +3 -3
  454. package/form-field/form-field.d.ts +15 -8
  455. package/form-field/testing/public-api.d.ts +1 -1
  456. package/icon/icon-registry.d.ts +7 -9
  457. package/icon/icon.d.ts +12 -3
  458. package/icon/testing/fake-icon-registry.d.ts +1 -1
  459. package/input/input.d.ts +12 -1
  460. package/list/selection-list.d.ts +4 -21
  461. package/list/testing/list-item-harness-base.d.ts +1 -7
  462. package/menu/menu-errors.d.ts +0 -5
  463. package/menu/menu-item.d.ts +3 -2
  464. package/menu/menu-trigger.d.ts +21 -11
  465. package/menu/menu.d.ts +8 -3
  466. package/package.json +7 -7
  467. package/paginator/paginator.d.ts +12 -1
  468. package/paginator/testing/paginator-harness.d.ts +3 -0
  469. package/prebuilt-themes/deeppurple-amber.css +1 -1
  470. package/prebuilt-themes/indigo-pink.css +1 -1
  471. package/prebuilt-themes/pink-bluegrey.css +1 -1
  472. package/prebuilt-themes/purple-green.css +1 -1
  473. package/progress-spinner/progress-spinner-module.d.ts +1 -1
  474. package/progress-spinner/progress-spinner.d.ts +4 -19
  475. package/progress-spinner/public-api.d.ts +8 -1
  476. package/radio/radio.d.ts +7 -2
  477. package/radio/testing/radio-harness-filters.d.ts +2 -0
  478. package/schematics/collection.json +4 -2
  479. package/schematics/migration.json +5 -0
  480. package/schematics/ng-add/fonts/material-fonts.js +4 -13
  481. package/schematics/ng-add/fonts/material-fonts.mjs +4 -13
  482. package/schematics/ng-add/index.js +2 -2
  483. package/schematics/ng-add/index.mjs +2 -2
  484. package/schematics/ng-add/schema.d.ts +2 -2
  485. package/schematics/ng-add/schema.js +1 -1
  486. package/schematics/ng-add/schema.json +29 -9
  487. package/schematics/ng-add/schema.mjs +1 -1
  488. package/schematics/ng-add/setup-project.js +16 -23
  489. package/schematics/ng-add/setup-project.mjs +16 -23
  490. package/schematics/ng-add/theming/theming.js +28 -39
  491. package/schematics/ng-add/theming/theming.mjs +28 -39
  492. package/schematics/ng-generate/address-form/index.js +5 -14
  493. package/schematics/ng-generate/address-form/index.mjs +5 -14
  494. package/schematics/ng-generate/address-form/schema.json +1 -1
  495. package/schematics/ng-generate/dashboard/index.js +5 -14
  496. package/schematics/ng-generate/dashboard/index.mjs +5 -14
  497. package/schematics/ng-generate/dashboard/schema.json +1 -1
  498. package/schematics/ng-generate/navigation/index.js +5 -14
  499. package/schematics/ng-generate/navigation/index.mjs +5 -14
  500. package/schematics/ng-generate/navigation/schema.json +1 -1
  501. package/schematics/ng-generate/table/index.js +5 -14
  502. package/schematics/ng-generate/table/index.mjs +5 -14
  503. package/schematics/ng-generate/table/schema.json +1 -1
  504. package/schematics/ng-generate/tree/index.js +5 -14
  505. package/schematics/ng-generate/tree/index.mjs +5 -14
  506. package/schematics/ng-generate/tree/schema.json +1 -1
  507. package/schematics/ng-update/data/constructor-checks.js +11 -1
  508. package/schematics/ng-update/data/constructor-checks.mjs +11 -1
  509. package/schematics/ng-update/data/css-selectors.js +7 -1
  510. package/schematics/ng-update/data/css-selectors.mjs +7 -1
  511. package/schematics/ng-update/data/index.js +6 -2
  512. package/schematics/ng-update/data/index.mjs +6 -2
  513. package/schematics/ng-update/index.d.ts +2 -0
  514. package/schematics/ng-update/index.js +7 -2
  515. package/schematics/ng-update/index.mjs +7 -2
  516. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +4 -4
  517. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.mjs +4 -4
  518. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +14 -23
  519. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.mjs +14 -23
  520. package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +3 -15
  521. package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.mjs +3 -15
  522. package/schematics/ng-update/migrations/theming-api-v12/migration.js +5 -5
  523. package/schematics/ng-update/migrations/theming-api-v12/migration.mjs +5 -5
  524. package/schematics/tsconfig.json +1 -4
  525. package/select/select.d.ts +25 -4
  526. package/sidenav/sidenav-module.d.ts +2 -3
  527. package/slide-toggle/testing/slide-toggle-harness-filters.d.ts +4 -0
  528. package/snack-bar/snack-bar.d.ts +1 -1
  529. package/sort/sort-header.d.ts +4 -4
  530. package/sort/sort.d.ts +4 -0
  531. package/stepper/public-api.d.ts +1 -1
  532. package/stepper/stepper-animations.d.ts +2 -0
  533. package/stepper/stepper-module.d.ts +1 -1
  534. package/stepper/stepper.d.ts +15 -38
  535. package/tabs/_tabs-common.scss +15 -5
  536. package/tabs/ink-bar.d.ts +0 -5
  537. package/tabs/paginated-tab-header.d.ts +4 -2
  538. package/tabs/tab-body.d.ts +3 -1
  539. package/tabs/tab-config.d.ts +6 -0
  540. package/tabs/tab-group.d.ts +15 -3
  541. package/tooltip/testing/tooltip-harness.d.ts +6 -0
  542. package/tooltip/tooltip.d.ts +36 -8
@@ -9,7 +9,7 @@ import { Directionality } from '@angular/cdk/bidi';
9
9
  import { CdkStep, CdkStepper, StepperOptions } from '@angular/cdk/stepper';
10
10
  import { AnimationEvent } from '@angular/animations';
11
11
  import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, TemplateRef, ViewContainerRef } from '@angular/core';
12
- import { FormControl, FormGroupDirective, NgForm } from '@angular/forms';
12
+ import { UntypedFormControl, FormGroupDirective, NgForm } from '@angular/forms';
13
13
  import { ErrorStateMatcher, ThemePalette } from '@angular/material/core';
14
14
  import { TemplatePortal } from '@angular/cdk/portal';
15
15
  import { Subject } from 'rxjs';
@@ -34,42 +34,10 @@ export declare class MatStep extends CdkStep implements ErrorStateMatcher, After
34
34
  ngAfterContentInit(): void;
35
35
  ngOnDestroy(): void;
36
36
  /** Custom error state matcher that additionally checks for validity of interacted form. */
37
- isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;
37
+ isErrorState(control: UntypedFormControl | null, form: FormGroupDirective | NgForm | null): boolean;
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<MatStep, [null, { skipSelf: true; }, null, { optional: true; }]>;
39
39
  static ɵcmp: i0.ɵɵComponentDeclaration<MatStep, "mat-step", ["matStep"], { "color": "color"; }, {}, ["stepLabel", "_lazyContent"], ["*"]>;
40
40
  }
41
- /**
42
- * Proxies the public APIs from `MatStepper` to the deprecated `MatHorizontalStepper` and
43
- * `MatVerticalStepper`.
44
- * @deprecated Use `MatStepper` instead.
45
- * @breaking-change 13.0.0
46
- * @docs-private
47
- */
48
- declare abstract class _MatProxyStepperBase extends CdkStepper {
49
- readonly steps: QueryList<MatStep>;
50
- readonly animationDone: EventEmitter<void>;
51
- disableRipple: boolean;
52
- color: ThemePalette;
53
- labelPosition: 'bottom' | 'end';
54
- static ɵfac: i0.ɵɵFactoryDeclaration<_MatProxyStepperBase, never>;
55
- static ɵdir: i0.ɵɵDirectiveDeclaration<_MatProxyStepperBase, never, never, {}, {}, never>;
56
- }
57
- /**
58
- * @deprecated Use `MatStepper` instead.
59
- * @breaking-change 13.0.0
60
- */
61
- export declare class MatHorizontalStepper extends _MatProxyStepperBase {
62
- static ɵfac: i0.ɵɵFactoryDeclaration<MatHorizontalStepper, never>;
63
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatHorizontalStepper, "mat-horizontal-stepper", never, {}, {}, never>;
64
- }
65
- /**
66
- * @deprecated Use `MatStepper` instead.
67
- * @breaking-change 13.0.0
68
- */
69
- export declare class MatVerticalStepper extends _MatProxyStepperBase {
70
- static ɵfac: i0.ɵɵFactoryDeclaration<MatVerticalStepper, never>;
71
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatVerticalStepper, "mat-vertical-stepper", never, {}, {}, never>;
72
- }
73
41
  export declare class MatStepper extends CdkStepper implements AfterContentInit {
74
42
  /** The list of step headers of the steps in the stepper. */
75
43
  _stepHeader: QueryList<MatStepHeader>;
@@ -90,14 +58,23 @@ export declare class MatStepper extends CdkStepper implements AfterContentInit {
90
58
  * Only applies in the `horizontal` orientation.
91
59
  */
92
60
  labelPosition: 'bottom' | 'end';
61
+ /**
62
+ * Position of the stepper's header.
63
+ * Only applies in the `horizontal` orientation.
64
+ */
65
+ headerPosition: 'top' | 'bottom';
93
66
  /** Consumer-specified template-refs to be used to override the header icons. */
94
67
  _iconOverrides: Record<string, TemplateRef<MatStepperIconContext>>;
95
68
  /** Stream of animation `done` events when the body expands/collapses. */
96
69
  readonly _animationDone: Subject<AnimationEvent>;
97
- constructor(dir: Directionality, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, _document: any);
70
+ /** Duration for the animation. Will be normalized to milliseconds if no units are set. */
71
+ get animationDuration(): string;
72
+ set animationDuration(value: string);
73
+ private _animationDuration;
74
+ constructor(dir: Directionality, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>);
98
75
  ngAfterContentInit(): void;
99
76
  _stepIsNavigable(index: number, step: MatStep): boolean;
100
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepper, [{ optional: true; }, null, null, null]>;
101
- static ɵcmp: i0.ɵɵComponentDeclaration<MatStepper, "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", ["matStepper", "matVerticalStepper", "matHorizontalStepper"], { "selectedIndex": "selectedIndex"; "disableRipple": "disableRipple"; "color": "color"; "labelPosition": "labelPosition"; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], never>;
77
+ _getAnimationDuration(): string;
78
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatStepper, [{ optional: true; }, null, null]>;
79
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatStepper, "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", ["matStepper", "matVerticalStepper", "matHorizontalStepper"], { "selectedIndex": "selectedIndex"; "disableRipple": "disableRipple"; "color": "color"; "labelPosition": "labelPosition"; "headerPosition": "headerPosition"; "animationDuration": "animationDuration"; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], never>;
102
80
  }
103
- export {};
@@ -1,7 +1,8 @@
1
+ @use '@angular/cdk';
2
+
1
3
  @use '../core/style/variables';
2
4
  @use '../core/style/private';
3
5
  @use '../core/style/vendor-prefixes';
4
- @use '../../cdk/a11y';
5
6
 
6
7
  $tab-bar-height: 48px !default;
7
8
  $tab-animation-duration: 500ms !default;
@@ -27,7 +28,7 @@ $tab-animation-duration: 500ms !default;
27
28
  opacity: 1;
28
29
  }
29
30
 
30
- @include a11y.high-contrast(active, off) {
31
+ @include cdk.high-contrast(active, off) {
31
32
  $outline-width: 2px;
32
33
  outline: dotted $outline-width;
33
34
  outline-offset: -$outline-width; // Not supported on IE, but looks better everywhere else.
@@ -37,7 +38,7 @@ $tab-animation-duration: 500ms !default;
37
38
  &.mat-tab-disabled {
38
39
  cursor: default;
39
40
 
40
- @include a11y.high-contrast(active, off) {
41
+ @include cdk.high-contrast(active, off) {
41
42
  opacity: 0.5;
42
43
  }
43
44
  }
@@ -49,7 +50,7 @@ $tab-animation-duration: 500ms !default;
49
50
  white-space: nowrap;
50
51
  }
51
52
 
52
- @include a11y.high-contrast(active, off) {
53
+ @include cdk.high-contrast(active, off) {
53
54
  opacity: 1;
54
55
  }
55
56
  }
@@ -69,7 +70,7 @@ $tab-animation-duration: 500ms !default;
69
70
  top: 0;
70
71
  }
71
72
 
72
- @include a11y.high-contrast(active, off) {
73
+ @include cdk.high-contrast(active, off) {
73
74
  outline: solid $height;
74
75
  height: 0;
75
76
  }
@@ -95,6 +96,15 @@ $tab-animation-duration: 500ms !default;
95
96
  z-index: 2;
96
97
  -webkit-tap-highlight-color: transparent;
97
98
  touch-action: none;
99
+ box-sizing: content-box;
100
+ background: none;
101
+ border: none;
102
+ outline: 0;
103
+ padding: 0;
104
+
105
+ &::-moz-focus-inner {
106
+ border: 0;
107
+ }
98
108
 
99
109
  .mat-tab-header-pagination-controls-enabled & {
100
110
  display: flex;
package/tabs/ink-bar.d.ts CHANGED
@@ -44,11 +44,6 @@ export declare class MatInkBar {
44
44
  show(): void;
45
45
  /** Hides the ink bar. */
46
46
  hide(): void;
47
- /**
48
- * Sets the proper styles to the ink bar element.
49
- * @param element
50
- */
51
- private _setStyles;
52
47
  static ɵfac: i0.ɵɵFactoryDeclaration<MatInkBar, [null, null, null, { optional: true; }]>;
53
48
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatInkBar, "mat-ink-bar", never, {}, {}, never>;
54
49
  }
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { ChangeDetectorRef, ElementRef, NgZone, QueryList, EventEmitter, AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy } from '@angular/core';
9
9
  import { Direction, Directionality } from '@angular/cdk/bidi';
10
- import { NumberInput } from '@angular/cdk/coercion';
10
+ import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
11
11
  import { ViewportRuler } from '@angular/cdk/scrolling';
12
12
  import { FocusableOption } from '@angular/cdk/a11y';
13
13
  import { Subject } from 'rxjs';
@@ -74,7 +74,9 @@ export declare abstract class MatPaginatedTabHeader implements AfterContentCheck
74
74
  * Whether pagination should be disabled. This can be used to avoid unnecessary
75
75
  * layout recalculations if it's known that pagination won't be required.
76
76
  */
77
- disablePagination: boolean;
77
+ get disablePagination(): boolean;
78
+ set disablePagination(value: BooleanInput);
79
+ private _disablePagination;
78
80
  /** The index of the active tab. */
79
81
  get selectedIndex(): number;
80
82
  set selectedIndex(value: NumberInput);
@@ -78,6 +78,8 @@ export declare abstract class _MatTabBodyBase implements OnInit, OnDestroy {
78
78
  origin: number | null;
79
79
  /** Duration for the tab's animation. */
80
80
  animationDuration: string;
81
+ /** Whether the tab's content should be kept in the DOM while it's off-screen. */
82
+ preserveContent: boolean;
81
83
  /** The shifted index position of the tab body, where zero represents the active center tab. */
82
84
  set position(position: number);
83
85
  constructor(_elementRef: ElementRef<HTMLElement>, _dir: Directionality, changeDetectorRef: ChangeDetectorRef);
@@ -100,7 +102,7 @@ export declare abstract class _MatTabBodyBase implements OnInit, OnDestroy {
100
102
  */
101
103
  private _computePositionFromOrigin;
102
104
  static ɵfac: i0.ɵɵFactoryDeclaration<_MatTabBodyBase, [null, { optional: true; }, null]>;
103
- static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabBodyBase, never, never, { "_content": "content"; "origin": "origin"; "animationDuration": "animationDuration"; "position": "position"; }, { "_onCentering": "_onCentering"; "_beforeCentering": "_beforeCentering"; "_afterLeavingCenter": "_afterLeavingCenter"; "_onCentered": "_onCentered"; }, never>;
105
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabBodyBase, never, never, { "_content": "content"; "origin": "origin"; "animationDuration": "animationDuration"; "preserveContent": "preserveContent"; "position": "position"; }, { "_onCentering": "_onCentering"; "_beforeCentering": "_beforeCentering"; "_afterLeavingCenter": "_afterLeavingCenter"; "_onCentered": "_onCentered"; }, never>;
104
106
  }
105
107
  /**
106
108
  * Wrapper for the contents of a tab.
@@ -24,6 +24,12 @@ export interface MatTabsConfig {
24
24
  dynamicHeight?: boolean;
25
25
  /** `tabindex` to be set on the inner element that wraps the tab content. */
26
26
  contentTabIndex?: number;
27
+ /**
28
+ * By default tabs remove their content from the DOM while it's off-screen.
29
+ * Setting this to `true` will keep it in the DOM which will prevent elements
30
+ * like iframes and videos from reloading next time it comes back into the view.
31
+ */
32
+ preserveContent?: boolean;
27
33
  }
28
34
  /** Injection token that can be used to provide the default options the tabs module. */
29
35
  export declare const MAT_TABS_CONFIG: InjectionToken<MatTabsConfig>;
@@ -50,6 +50,8 @@ export declare abstract class _MatTabGroupBase extends _MatTabGroupMixinBase imp
50
50
  _tabs: QueryList<MatTab>;
51
51
  /** The tab index that should be selected after the content has been checked. */
52
52
  private _indexToSelect;
53
+ /** Index of the tab that was focused last. */
54
+ private _lastFocusedTabIndex;
53
55
  /** Snapshot of the height of the tab body wrapper before another tab is activated. */
54
56
  private _tabBodyWrapperHeight;
55
57
  /** Subscription to tabs being added/removed. */
@@ -83,7 +85,17 @@ export declare abstract class _MatTabGroupBase extends _MatTabGroupMixinBase imp
83
85
  * Whether pagination should be disabled. This can be used to avoid unnecessary
84
86
  * layout recalculations if it's known that pagination won't be required.
85
87
  */
86
- disablePagination: boolean;
88
+ get disablePagination(): boolean;
89
+ set disablePagination(value: BooleanInput);
90
+ private _disablePagination;
91
+ /**
92
+ * By default tabs remove their content from the DOM while it's off-screen.
93
+ * Setting this to `true` will keep it in the DOM which will prevent elements
94
+ * like iframes and videos from reloading next time it comes back into the view.
95
+ */
96
+ get preserveContent(): boolean;
97
+ set preserveContent(value: BooleanInput);
98
+ private _preserveContent;
87
99
  /** Background color of the tab group. */
88
100
  get backgroundColor(): ThemePalette;
89
101
  set backgroundColor(value: ThemePalette);
@@ -149,11 +161,11 @@ export declare abstract class _MatTabGroupBase extends _MatTabGroupMixinBase imp
149
161
  /** Handle click events, setting new selected index if appropriate. */
150
162
  _handleClick(tab: MatTab, tabHeader: MatTabGroupBaseHeader, index: number): void;
151
163
  /** Retrieves the tabindex for the tab. */
152
- _getTabIndex(tab: MatTab, idx: number): number | null;
164
+ _getTabIndex(tab: MatTab, index: number): number | null;
153
165
  /** Callback for when the focused state of a tab has changed. */
154
166
  _tabFocusChanged(focusOrigin: FocusOrigin, index: number): void;
155
167
  static ɵfac: i0.ɵɵFactoryDeclaration<_MatTabGroupBase, [null, null, { optional: true; }, { optional: true; }]>;
156
- static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabGroupBase, never, never, { "dynamicHeight": "dynamicHeight"; "selectedIndex": "selectedIndex"; "headerPosition": "headerPosition"; "animationDuration": "animationDuration"; "contentTabIndex": "contentTabIndex"; "disablePagination": "disablePagination"; "backgroundColor": "backgroundColor"; }, { "selectedIndexChange": "selectedIndexChange"; "focusChange": "focusChange"; "animationDone": "animationDone"; "selectedTabChange": "selectedTabChange"; }, never>;
168
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabGroupBase, never, never, { "dynamicHeight": "dynamicHeight"; "selectedIndex": "selectedIndex"; "headerPosition": "headerPosition"; "animationDuration": "animationDuration"; "contentTabIndex": "contentTabIndex"; "disablePagination": "disablePagination"; "preserveContent": "preserveContent"; "backgroundColor": "backgroundColor"; }, { "selectedIndexChange": "selectedIndexChange"; "focusChange": "focusChange"; "animationDone": "animationDone"; "selectedTabChange": "selectedTabChange"; }, never>;
157
169
  }
158
170
  /**
159
171
  * Material design tab-group component. Supports basic tab pairs (label + content) and includes
@@ -9,6 +9,9 @@ import { AsyncFactoryFn, ComponentHarness, HarnessPredicate, TestElement } from
9
9
  import { TooltipHarnessFilters } from './tooltip-harness-filters';
10
10
  export declare abstract class _MatTooltipHarnessBase extends ComponentHarness {
11
11
  protected abstract _optionalPanel: AsyncFactoryFn<TestElement | null>;
12
+ protected abstract _hiddenClass: string;
13
+ protected abstract _showAnimationName: string;
14
+ protected abstract _hideAnimationName: string;
12
15
  /** Shows the tooltip. */
13
16
  show(): Promise<void>;
14
17
  /** Hides the tooltip. */
@@ -21,6 +24,9 @@ export declare abstract class _MatTooltipHarnessBase extends ComponentHarness {
21
24
  /** Harness for interacting with a standard mat-tooltip in tests. */
22
25
  export declare class MatTooltipHarness extends _MatTooltipHarnessBase {
23
26
  protected _optionalPanel: AsyncFactoryFn<TestElement | null>;
27
+ protected _hiddenClass: string;
28
+ protected _showAnimationName: string;
29
+ protected _hideAnimationName: string;
24
30
  static hostSelector: string;
25
31
  /**
26
32
  * Gets a `HarnessPredicate` that can be used to search
@@ -5,12 +5,11 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- import { AnimationEvent } from '@angular/animations';
9
8
  import { AriaDescriber, FocusMonitor } from '@angular/cdk/a11y';
10
9
  import { Directionality } from '@angular/cdk/bidi';
11
10
  import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
12
11
  import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout';
13
- import { ConnectedPosition, OriginConnectionPosition, Overlay, OverlayConnectionPosition, OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';
12
+ import { OriginConnectionPosition, Overlay, OverlayConnectionPosition, OverlayRef, ScrollStrategy, ConnectedPosition } from '@angular/cdk/overlay';
14
13
  import { Platform } from '@angular/cdk/platform';
15
14
  import { ComponentType } from '@angular/cdk/portal';
16
15
  import { ScrollDispatcher } from '@angular/cdk/scrolling';
@@ -51,11 +50,18 @@ export declare const MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER: {
51
50
  };
52
51
  /** Default `matTooltip` options that can be overridden. */
53
52
  export interface MatTooltipDefaultOptions {
53
+ /** Default delay when the tooltip is shown. */
54
54
  showDelay: number;
55
+ /** Default delay when the tooltip is hidden. */
55
56
  hideDelay: number;
57
+ /** Default delay when hiding the tooltip on a touch device. */
56
58
  touchendHideDelay: number;
59
+ /** Default touch gesture handling for tooltips. */
57
60
  touchGestures?: TooltipTouchGestures;
61
+ /** Default position for tooltips. */
58
62
  position?: TooltipPosition;
63
+ /** Disables the ability for the user to interact with the tooltip element. */
64
+ disableTooltipInteractivity?: boolean;
59
65
  }
60
66
  /** Injection token to be used to override the default options for `matTooltip`. */
61
67
  export declare const MAT_TOOLTIP_DEFAULT_OPTIONS: InjectionToken<MatTooltipDefaultOptions>;
@@ -214,11 +220,25 @@ export declare abstract class _TooltipComponentBase implements OnDestroy {
214
220
  _hideTimeoutId: number | undefined;
215
221
  /** Property watched by the animation framework to show or hide the tooltip */
216
222
  _visibility: TooltipVisibility;
223
+ /** Element that caused the tooltip to open. */
224
+ _triggerElement: HTMLElement;
225
+ /** Amount of milliseconds to delay the closing sequence. */
226
+ _mouseLeaveHideDelay: number;
227
+ /** Whether animations are currently disabled. */
228
+ private _animationsDisabled;
229
+ /** Reference to the internal tooltip element. */
230
+ abstract _tooltip: ElementRef<HTMLElement>;
217
231
  /** Whether interactions on the page should close the tooltip */
218
232
  private _closeOnInteraction;
233
+ /** Whether the tooltip is currently visible. */
234
+ private _isVisible;
219
235
  /** Subject for notifying that the tooltip has been hidden from the view */
220
236
  private readonly _onHide;
221
- constructor(_changeDetectorRef: ChangeDetectorRef);
237
+ /** Name of the show animation and the class that toggles it. */
238
+ protected abstract readonly _showAnimation: string;
239
+ /** Name of the hide animation and the class that toggles it. */
240
+ protected abstract readonly _hideAnimation: string;
241
+ constructor(_changeDetectorRef: ChangeDetectorRef, animationMode?: string);
222
242
  /**
223
243
  * Shows the tooltip with an animation originating from the provided origin
224
244
  * @param delay Amount of milliseconds to the delay showing the tooltip.
@@ -234,8 +254,6 @@ export declare abstract class _TooltipComponentBase implements OnDestroy {
234
254
  /** Whether the tooltip is being displayed. */
235
255
  isVisible(): boolean;
236
256
  ngOnDestroy(): void;
237
- _animationStart(): void;
238
- _animationDone(event: AnimationEvent): void;
239
257
  /**
240
258
  * Interactions on the HTML body should close the tooltip immediately as defined in the
241
259
  * material design spec.
@@ -248,13 +266,20 @@ export declare abstract class _TooltipComponentBase implements OnDestroy {
248
266
  * can be problematic in components with OnPush change detection.
249
267
  */
250
268
  _markForCheck(): void;
269
+ _handleMouseLeave({ relatedTarget }: MouseEvent): void;
251
270
  /**
252
271
  * Callback for when the timeout in this.show() gets completed.
253
272
  * This method is only needed by the mdc-tooltip, and so it is only implemented
254
273
  * in the mdc-tooltip, not here.
255
274
  */
256
275
  protected _onShow(): void;
257
- static ɵfac: i0.ɵɵFactoryDeclaration<_TooltipComponentBase, never>;
276
+ /** Event listener dispatched when an animation on the tooltip finishes. */
277
+ _handleAnimationEnd({ animationName }: AnimationEvent): void;
278
+ /** Handles the cleanup after an animation has finished. */
279
+ private _finalizeAnimation;
280
+ /** Toggles the visibility of the tooltip element. */
281
+ private _toggleVisibility;
282
+ static ɵfac: i0.ɵɵFactoryDeclaration<_TooltipComponentBase, [null, { optional: true; }]>;
258
283
  static ɵdir: i0.ɵɵDirectiveDeclaration<_TooltipComponentBase, never, never, {}, {}, never>;
259
284
  }
260
285
  /**
@@ -265,7 +290,10 @@ export declare class TooltipComponent extends _TooltipComponentBase {
265
290
  private _breakpointObserver;
266
291
  /** Stream that emits whether the user has a handset-sized display. */
267
292
  _isHandset: Observable<BreakpointState>;
268
- constructor(changeDetectorRef: ChangeDetectorRef, _breakpointObserver: BreakpointObserver);
269
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
293
+ _showAnimation: string;
294
+ _hideAnimation: string;
295
+ _tooltip: ElementRef<HTMLElement>;
296
+ constructor(changeDetectorRef: ChangeDetectorRef, _breakpointObserver: BreakpointObserver, animationMode?: string);
297
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, [null, null, { optional: true; }]>;
270
298
  static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "mat-tooltip-component", never, {}, {}, never, never>;
271
299
  }