@angular/material 14.0.0-next.6 → 14.0.0-next.9

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 (379) hide show
  1. package/_index.scss +20 -1
  2. package/badge/_badge-theme.scss +11 -2
  3. package/checkbox/testing/checkbox-harness-filters.d.ts +2 -0
  4. package/core/_core.scss +5 -7
  5. package/core/ripple/_ripple.scss +2 -2
  6. package/core/ripple/ripple-renderer.d.ts +7 -1
  7. package/core/style/_menu-common.scss +3 -2
  8. package/core/style/_vendor-prefixes.scss +1 -17
  9. package/core/typography/_typography.scss +51 -14
  10. package/datepicker/calendar-body.d.ts +22 -1
  11. package/dialog/dialog-animations.d.ts +10 -0
  12. package/dialog/dialog-config.d.ts +10 -1
  13. package/dialog/dialog-container.d.ts +7 -0
  14. package/dialog/public-api.d.ts +1 -1
  15. package/esm2020/autocomplete/autocomplete-module.mjs +4 -4
  16. package/esm2020/autocomplete/autocomplete-origin.mjs +6 -6
  17. package/esm2020/autocomplete/autocomplete-trigger.mjs +32 -19
  18. package/esm2020/autocomplete/autocomplete.mjs +7 -7
  19. package/esm2020/badge/badge-module.mjs +4 -4
  20. package/esm2020/badge/badge.mjs +3 -3
  21. package/esm2020/bottom-sheet/bottom-sheet-container.mjs +12 -7
  22. package/esm2020/bottom-sheet/bottom-sheet-module.mjs +4 -4
  23. package/esm2020/bottom-sheet/bottom-sheet.mjs +3 -3
  24. package/esm2020/button/button-module.mjs +4 -4
  25. package/esm2020/button/button.mjs +8 -8
  26. package/esm2020/button-toggle/button-toggle-module.mjs +4 -4
  27. package/esm2020/button-toggle/button-toggle.mjs +7 -7
  28. package/esm2020/card/card-module.mjs +4 -4
  29. package/esm2020/card/card.mjs +43 -43
  30. package/esm2020/checkbox/checkbox-module.mjs +8 -8
  31. package/esm2020/checkbox/checkbox-required-validator.mjs +3 -3
  32. package/esm2020/checkbox/checkbox.mjs +7 -6
  33. package/esm2020/checkbox/testing/checkbox-harness-filters.mjs +1 -1
  34. package/esm2020/checkbox/testing/checkbox-harness.mjs +3 -2
  35. package/esm2020/chips/chip-input.mjs +3 -3
  36. package/esm2020/chips/chip-list.mjs +4 -4
  37. package/esm2020/chips/chip.mjs +12 -12
  38. package/esm2020/chips/chips-module.mjs +4 -4
  39. package/esm2020/core/common-behaviors/common-module.mjs +4 -4
  40. package/esm2020/core/common-behaviors/error-state.mjs +1 -1
  41. package/esm2020/core/datetime/index.mjs +8 -8
  42. package/esm2020/core/datetime/native-date-adapter.mjs +3 -3
  43. package/esm2020/core/error/error-options.mjs +6 -6
  44. package/esm2020/core/line/line.mjs +7 -7
  45. package/esm2020/core/option/index.mjs +4 -4
  46. package/esm2020/core/option/optgroup.mjs +7 -7
  47. package/esm2020/core/option/option.mjs +7 -7
  48. package/esm2020/core/ripple/index.mjs +4 -4
  49. package/esm2020/core/ripple/ripple-renderer.mjs +27 -10
  50. package/esm2020/core/ripple/ripple.mjs +3 -3
  51. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +4 -4
  52. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  53. package/esm2020/core/version.mjs +1 -1
  54. package/esm2020/datepicker/calendar-body.mjs +35 -12
  55. package/esm2020/datepicker/calendar.mjs +7 -7
  56. package/esm2020/datepicker/date-range-input-parts.mjs +9 -9
  57. package/esm2020/datepicker/date-range-input.mjs +5 -5
  58. package/esm2020/datepicker/date-range-picker.mjs +3 -3
  59. package/esm2020/datepicker/date-range-selection-strategy.mjs +3 -3
  60. package/esm2020/datepicker/date-selection-model.mjs +9 -9
  61. package/esm2020/datepicker/datepicker-actions.mjs +11 -11
  62. package/esm2020/datepicker/datepicker-base.mjs +8 -8
  63. package/esm2020/datepicker/datepicker-input-base.mjs +3 -3
  64. package/esm2020/datepicker/datepicker-input.mjs +3 -3
  65. package/esm2020/datepicker/datepicker-intl.mjs +3 -3
  66. package/esm2020/datepicker/datepicker-module.mjs +4 -4
  67. package/esm2020/datepicker/datepicker-toggle.mjs +7 -7
  68. package/esm2020/datepicker/datepicker.mjs +3 -3
  69. package/esm2020/datepicker/month-view.mjs +5 -5
  70. package/esm2020/datepicker/multi-year-view.mjs +3 -3
  71. package/esm2020/datepicker/year-view.mjs +3 -3
  72. package/esm2020/dialog/dialog-animations.mjs +12 -5
  73. package/esm2020/dialog/dialog-config.mjs +6 -1
  74. package/esm2020/dialog/dialog-container.mjs +26 -12
  75. package/esm2020/dialog/dialog-content-directives.mjs +17 -13
  76. package/esm2020/dialog/dialog-module.mjs +4 -4
  77. package/esm2020/dialog/dialog.mjs +10 -10
  78. package/esm2020/dialog/public-api.mjs +2 -2
  79. package/esm2020/divider/divider-module.mjs +4 -4
  80. package/esm2020/divider/divider.mjs +4 -4
  81. package/esm2020/expansion/accordion.mjs +3 -3
  82. package/esm2020/expansion/expansion-module.mjs +4 -4
  83. package/esm2020/expansion/expansion-panel-content.mjs +3 -3
  84. package/esm2020/expansion/expansion-panel-header.mjs +11 -11
  85. package/esm2020/expansion/expansion-panel.mjs +9 -9
  86. package/esm2020/form-field/error.mjs +3 -3
  87. package/esm2020/form-field/form-field-control.mjs +4 -4
  88. package/esm2020/form-field/form-field-module.mjs +4 -4
  89. package/esm2020/form-field/form-field.mjs +11 -8
  90. package/esm2020/form-field/hint.mjs +3 -3
  91. package/esm2020/form-field/label.mjs +3 -3
  92. package/esm2020/form-field/placeholder.mjs +3 -3
  93. package/esm2020/form-field/prefix.mjs +3 -3
  94. package/esm2020/form-field/suffix.mjs +3 -3
  95. package/esm2020/form-field/testing/public-api.mjs +4 -4
  96. package/esm2020/grid-list/grid-list-module.mjs +4 -4
  97. package/esm2020/grid-list/grid-list.mjs +5 -5
  98. package/esm2020/grid-list/grid-tile.mjs +16 -16
  99. package/esm2020/icon/icon-module.mjs +4 -4
  100. package/esm2020/icon/icon-registry.mjs +3 -3
  101. package/esm2020/icon/icon.mjs +5 -12
  102. package/esm2020/icon/testing/fake-icon-registry.mjs +7 -7
  103. package/esm2020/input/input-module.mjs +4 -4
  104. package/esm2020/input/input.mjs +29 -22
  105. package/esm2020/list/list-module.mjs +4 -4
  106. package/esm2020/list/list.mjs +20 -20
  107. package/esm2020/list/selection-list.mjs +7 -7
  108. package/esm2020/menu/menu-content.mjs +6 -6
  109. package/esm2020/menu/menu-item.mjs +3 -3
  110. package/esm2020/menu/menu-module.mjs +4 -4
  111. package/esm2020/menu/menu-trigger.mjs +6 -6
  112. package/esm2020/menu/menu.mjs +8 -8
  113. package/esm2020/paginator/paginator-intl.mjs +3 -3
  114. package/esm2020/paginator/paginator-module.mjs +4 -4
  115. package/esm2020/paginator/paginator.mjs +7 -7
  116. package/esm2020/progress-bar/progress-bar-module.mjs +4 -4
  117. package/esm2020/progress-bar/progress-bar.mjs +4 -4
  118. package/esm2020/progress-spinner/progress-spinner-module.mjs +4 -4
  119. package/esm2020/progress-spinner/progress-spinner.mjs +4 -4
  120. package/esm2020/radio/radio-module.mjs +4 -4
  121. package/esm2020/radio/radio.mjs +42 -14
  122. package/esm2020/radio/testing/radio-harness-filters.mjs +1 -1
  123. package/esm2020/radio/testing/radio-harness.mjs +3 -2
  124. package/esm2020/select/select-module.mjs +4 -4
  125. package/esm2020/select/select.mjs +31 -22
  126. package/esm2020/sidenav/drawer.mjs +19 -14
  127. package/esm2020/sidenav/sidenav-module.mjs +4 -4
  128. package/esm2020/sidenav/sidenav.mjs +12 -12
  129. package/esm2020/slide-toggle/slide-toggle-module.mjs +8 -8
  130. package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +3 -3
  131. package/esm2020/slide-toggle/slide-toggle.mjs +4 -4
  132. package/esm2020/slide-toggle/testing/slide-toggle-harness-filters.mjs +1 -1
  133. package/esm2020/slide-toggle/testing/slide-toggle-harness.mjs +3 -2
  134. package/esm2020/slider/slider-module.mjs +4 -4
  135. package/esm2020/slider/slider.mjs +4 -4
  136. package/esm2020/snack-bar/simple-snack-bar.mjs +4 -4
  137. package/esm2020/snack-bar/snack-bar-container.mjs +24 -18
  138. package/esm2020/snack-bar/snack-bar-module.mjs +4 -4
  139. package/esm2020/snack-bar/snack-bar.mjs +6 -6
  140. package/esm2020/sort/sort-header-intl.mjs +3 -3
  141. package/esm2020/sort/sort-header.mjs +5 -5
  142. package/esm2020/sort/sort-module.mjs +4 -4
  143. package/esm2020/sort/sort.mjs +3 -3
  144. package/esm2020/stepper/public-api.mjs +2 -2
  145. package/esm2020/stepper/step-content.mjs +3 -3
  146. package/esm2020/stepper/step-header.mjs +4 -4
  147. package/esm2020/stepper/step-label.mjs +3 -3
  148. package/esm2020/stepper/stepper-animations.mjs +9 -3
  149. package/esm2020/stepper/stepper-button.mjs +6 -6
  150. package/esm2020/stepper/stepper-icon.mjs +3 -3
  151. package/esm2020/stepper/stepper-intl.mjs +3 -3
  152. package/esm2020/stepper/stepper-module.mjs +4 -4
  153. package/esm2020/stepper/stepper.mjs +35 -9
  154. package/esm2020/table/cell.mjs +21 -21
  155. package/esm2020/table/row.mjs +21 -21
  156. package/esm2020/table/table-module.mjs +4 -4
  157. package/esm2020/table/table.mjs +8 -8
  158. package/esm2020/table/text-column.mjs +3 -3
  159. package/esm2020/tabs/ink-bar.mjs +11 -22
  160. package/esm2020/tabs/paginated-tab-header.mjs +8 -6
  161. package/esm2020/tabs/tab-body.mjs +11 -11
  162. package/esm2020/tabs/tab-content.mjs +3 -3
  163. package/esm2020/tabs/tab-group.mjs +28 -11
  164. package/esm2020/tabs/tab-header.mjs +7 -7
  165. package/esm2020/tabs/tab-label-wrapper.mjs +3 -3
  166. package/esm2020/tabs/tab-label.mjs +3 -3
  167. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +18 -18
  168. package/esm2020/tabs/tab.mjs +3 -3
  169. package/esm2020/tabs/tabs-module.mjs +4 -4
  170. package/esm2020/toolbar/toolbar-module.mjs +4 -4
  171. package/esm2020/toolbar/toolbar.mjs +7 -7
  172. package/esm2020/tooltip/tooltip-module.mjs +4 -4
  173. package/esm2020/tooltip/tooltip.mjs +13 -13
  174. package/esm2020/tree/node.mjs +9 -9
  175. package/esm2020/tree/outlet.mjs +3 -3
  176. package/esm2020/tree/padding.mjs +3 -3
  177. package/esm2020/tree/toggle.mjs +3 -3
  178. package/esm2020/tree/tree-module.mjs +4 -4
  179. package/esm2020/tree/tree.mjs +4 -4
  180. package/fesm2015/autocomplete.mjs +48 -35
  181. package/fesm2015/autocomplete.mjs.map +1 -1
  182. package/fesm2015/badge.mjs +7 -7
  183. package/fesm2015/bottom-sheet.mjs +18 -13
  184. package/fesm2015/bottom-sheet.mjs.map +1 -1
  185. package/fesm2015/button-toggle.mjs +11 -11
  186. package/fesm2015/button.mjs +12 -12
  187. package/fesm2015/button.mjs.map +1 -1
  188. package/fesm2015/card.mjs +47 -47
  189. package/fesm2015/card.mjs.map +1 -1
  190. package/fesm2015/checkbox/testing.mjs +2 -1
  191. package/fesm2015/checkbox/testing.mjs.map +1 -1
  192. package/fesm2015/checkbox.mjs +17 -16
  193. package/fesm2015/checkbox.mjs.map +1 -1
  194. package/fesm2015/chips.mjs +23 -23
  195. package/fesm2015/chips.mjs.map +1 -1
  196. package/fesm2015/core.mjs +89 -71
  197. package/fesm2015/core.mjs.map +1 -1
  198. package/fesm2015/datepicker.mjs +121 -98
  199. package/fesm2015/datepicker.mjs.map +1 -1
  200. package/fesm2015/dialog.mjs +96 -66
  201. package/fesm2015/dialog.mjs.map +1 -1
  202. package/fesm2015/divider.mjs +8 -8
  203. package/fesm2015/divider.mjs.map +1 -1
  204. package/fesm2015/expansion.mjs +28 -28
  205. package/fesm2015/expansion.mjs.map +1 -1
  206. package/fesm2015/form-field/testing.mjs +1 -1
  207. package/fesm2015/form-field/testing.mjs.map +1 -1
  208. package/fesm2015/form-field.mjs +35 -32
  209. package/fesm2015/form-field.mjs.map +1 -1
  210. package/fesm2015/grid-list.mjs +25 -25
  211. package/fesm2015/grid-list.mjs.map +1 -1
  212. package/fesm2015/icon/testing.mjs +7 -7
  213. package/fesm2015/icon.mjs +11 -18
  214. package/fesm2015/icon.mjs.map +1 -1
  215. package/fesm2015/input.mjs +33 -26
  216. package/fesm2015/input.mjs.map +1 -1
  217. package/fesm2015/list.mjs +31 -31
  218. package/fesm2015/list.mjs.map +1 -1
  219. package/fesm2015/menu.mjs +26 -26
  220. package/fesm2015/menu.mjs.map +1 -1
  221. package/fesm2015/paginator.mjs +14 -14
  222. package/fesm2015/paginator.mjs.map +1 -1
  223. package/fesm2015/progress-bar.mjs +8 -8
  224. package/fesm2015/progress-bar.mjs.map +1 -1
  225. package/fesm2015/progress-spinner.mjs +8 -8
  226. package/fesm2015/progress-spinner.mjs.map +1 -1
  227. package/fesm2015/radio/testing.mjs +2 -1
  228. package/fesm2015/radio/testing.mjs.map +1 -1
  229. package/fesm2015/radio.mjs +46 -17
  230. package/fesm2015/radio.mjs.map +1 -1
  231. package/fesm2015/select.mjs +34 -25
  232. package/fesm2015/select.mjs.map +1 -1
  233. package/fesm2015/sidenav.mjs +33 -28
  234. package/fesm2015/sidenav.mjs.map +1 -1
  235. package/fesm2015/slide-toggle/testing.mjs +2 -1
  236. package/fesm2015/slide-toggle/testing.mjs.map +1 -1
  237. package/fesm2015/slide-toggle.mjs +15 -15
  238. package/fesm2015/slide-toggle.mjs.map +1 -1
  239. package/fesm2015/slider.mjs +8 -8
  240. package/fesm2015/slider.mjs.map +1 -1
  241. package/fesm2015/snack-bar.mjs +37 -31
  242. package/fesm2015/snack-bar.mjs.map +1 -1
  243. package/fesm2015/sort.mjs +14 -14
  244. package/fesm2015/sort.mjs.map +1 -1
  245. package/fesm2015/stepper.mjs +67 -35
  246. package/fesm2015/stepper.mjs.map +1 -1
  247. package/fesm2015/table.mjs +57 -57
  248. package/fesm2015/table.mjs.map +1 -1
  249. package/fesm2015/tabs.mjs +94 -86
  250. package/fesm2015/tabs.mjs.map +1 -1
  251. package/fesm2015/toolbar.mjs +11 -11
  252. package/fesm2015/toolbar.mjs.map +1 -1
  253. package/fesm2015/tooltip.mjs +17 -17
  254. package/fesm2015/tooltip.mjs.map +1 -1
  255. package/fesm2015/tree.mjs +26 -26
  256. package/fesm2015/tree.mjs.map +1 -1
  257. package/fesm2020/autocomplete.mjs +48 -35
  258. package/fesm2020/autocomplete.mjs.map +1 -1
  259. package/fesm2020/badge.mjs +7 -7
  260. package/fesm2020/bottom-sheet.mjs +18 -13
  261. package/fesm2020/bottom-sheet.mjs.map +1 -1
  262. package/fesm2020/button-toggle.mjs +11 -11
  263. package/fesm2020/button.mjs +12 -12
  264. package/fesm2020/button.mjs.map +1 -1
  265. package/fesm2020/card.mjs +47 -47
  266. package/fesm2020/card.mjs.map +1 -1
  267. package/fesm2020/checkbox/testing.mjs +2 -1
  268. package/fesm2020/checkbox/testing.mjs.map +1 -1
  269. package/fesm2020/checkbox.mjs +17 -16
  270. package/fesm2020/checkbox.mjs.map +1 -1
  271. package/fesm2020/chips.mjs +23 -23
  272. package/fesm2020/chips.mjs.map +1 -1
  273. package/fesm2020/core.mjs +88 -71
  274. package/fesm2020/core.mjs.map +1 -1
  275. package/fesm2020/datepicker.mjs +121 -98
  276. package/fesm2020/datepicker.mjs.map +1 -1
  277. package/fesm2020/dialog.mjs +95 -66
  278. package/fesm2020/dialog.mjs.map +1 -1
  279. package/fesm2020/divider.mjs +8 -8
  280. package/fesm2020/divider.mjs.map +1 -1
  281. package/fesm2020/expansion.mjs +28 -28
  282. package/fesm2020/expansion.mjs.map +1 -1
  283. package/fesm2020/form-field/testing.mjs +1 -1
  284. package/fesm2020/form-field/testing.mjs.map +1 -1
  285. package/fesm2020/form-field.mjs +35 -32
  286. package/fesm2020/form-field.mjs.map +1 -1
  287. package/fesm2020/grid-list.mjs +25 -25
  288. package/fesm2020/grid-list.mjs.map +1 -1
  289. package/fesm2020/icon/testing.mjs +7 -7
  290. package/fesm2020/icon.mjs +11 -18
  291. package/fesm2020/icon.mjs.map +1 -1
  292. package/fesm2020/input.mjs +32 -25
  293. package/fesm2020/input.mjs.map +1 -1
  294. package/fesm2020/list.mjs +31 -31
  295. package/fesm2020/list.mjs.map +1 -1
  296. package/fesm2020/menu.mjs +26 -26
  297. package/fesm2020/menu.mjs.map +1 -1
  298. package/fesm2020/paginator.mjs +14 -14
  299. package/fesm2020/paginator.mjs.map +1 -1
  300. package/fesm2020/progress-bar.mjs +8 -8
  301. package/fesm2020/progress-bar.mjs.map +1 -1
  302. package/fesm2020/progress-spinner.mjs +8 -8
  303. package/fesm2020/progress-spinner.mjs.map +1 -1
  304. package/fesm2020/radio/testing.mjs +2 -1
  305. package/fesm2020/radio/testing.mjs.map +1 -1
  306. package/fesm2020/radio.mjs +45 -17
  307. package/fesm2020/radio.mjs.map +1 -1
  308. package/fesm2020/select.mjs +34 -25
  309. package/fesm2020/select.mjs.map +1 -1
  310. package/fesm2020/sidenav.mjs +33 -28
  311. package/fesm2020/sidenav.mjs.map +1 -1
  312. package/fesm2020/slide-toggle/testing.mjs +2 -1
  313. package/fesm2020/slide-toggle/testing.mjs.map +1 -1
  314. package/fesm2020/slide-toggle.mjs +15 -15
  315. package/fesm2020/slide-toggle.mjs.map +1 -1
  316. package/fesm2020/slider.mjs +8 -8
  317. package/fesm2020/slider.mjs.map +1 -1
  318. package/fesm2020/snack-bar.mjs +37 -31
  319. package/fesm2020/snack-bar.mjs.map +1 -1
  320. package/fesm2020/sort.mjs +14 -14
  321. package/fesm2020/sort.mjs.map +1 -1
  322. package/fesm2020/stepper.mjs +67 -35
  323. package/fesm2020/stepper.mjs.map +1 -1
  324. package/fesm2020/table.mjs +57 -57
  325. package/fesm2020/table.mjs.map +1 -1
  326. package/fesm2020/tabs.mjs +93 -86
  327. package/fesm2020/tabs.mjs.map +1 -1
  328. package/fesm2020/toolbar.mjs +11 -11
  329. package/fesm2020/toolbar.mjs.map +1 -1
  330. package/fesm2020/tooltip.mjs +17 -17
  331. package/fesm2020/tooltip.mjs.map +1 -1
  332. package/fesm2020/tree.mjs +26 -26
  333. package/fesm2020/tree.mjs.map +1 -1
  334. package/form-field/form-field-control.d.ts +3 -3
  335. package/form-field/form-field.d.ts +6 -3
  336. package/form-field/testing/public-api.d.ts +1 -1
  337. package/input/input.d.ts +1 -0
  338. package/package.json +2 -2
  339. package/prebuilt-themes/deeppurple-amber.css +1 -1
  340. package/prebuilt-themes/indigo-pink.css +1 -1
  341. package/prebuilt-themes/pink-bluegrey.css +1 -1
  342. package/prebuilt-themes/purple-green.css +1 -1
  343. package/radio/radio.d.ts +7 -2
  344. package/radio/testing/radio-harness-filters.d.ts +2 -0
  345. package/schematics/collection.json +4 -2
  346. package/schematics/ng-add/fonts/material-fonts.js +4 -13
  347. package/schematics/ng-add/fonts/material-fonts.mjs +4 -13
  348. package/schematics/ng-add/index.js +1 -1
  349. package/schematics/ng-add/index.mjs +1 -1
  350. package/schematics/ng-add/setup-project.js +10 -19
  351. package/schematics/ng-add/setup-project.mjs +10 -19
  352. package/schematics/ng-add/theming/theming.js +28 -39
  353. package/schematics/ng-add/theming/theming.mjs +28 -39
  354. package/schematics/ng-generate/address-form/index.js +5 -14
  355. package/schematics/ng-generate/address-form/index.mjs +5 -14
  356. package/schematics/ng-generate/dashboard/index.js +5 -14
  357. package/schematics/ng-generate/dashboard/index.mjs +5 -14
  358. package/schematics/ng-generate/navigation/index.js +5 -14
  359. package/schematics/ng-generate/navigation/index.mjs +5 -14
  360. package/schematics/ng-generate/table/index.js +5 -14
  361. package/schematics/ng-generate/table/index.mjs +5 -14
  362. package/schematics/ng-generate/tree/index.js +5 -14
  363. package/schematics/ng-generate/tree/index.mjs +5 -14
  364. package/schematics/ng-update/data/index.js +6 -2
  365. package/schematics/ng-update/data/index.mjs +6 -2
  366. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +3 -12
  367. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.mjs +3 -12
  368. package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +2 -3
  369. package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.mjs +2 -3
  370. package/schematics/ng-update/migrations/theming-api-v12/migration.js +5 -5
  371. package/schematics/ng-update/migrations/theming-api-v12/migration.mjs +5 -5
  372. package/select/select.d.ts +3 -1
  373. package/slide-toggle/testing/slide-toggle-harness-filters.d.ts +2 -0
  374. package/stepper/public-api.d.ts +1 -1
  375. package/stepper/stepper-animations.d.ts +2 -0
  376. package/stepper/stepper.d.ts +13 -3
  377. package/tabs/_tabs-common.scss +6 -5
  378. package/tabs/ink-bar.d.ts +0 -5
  379. package/tabs/tab-group.d.ts +3 -1
@@ -8,14 +8,51 @@ import { MatCommonModule } from '@angular/material/core';
8
8
  import { Directionality } from '@angular/cdk/bidi';
9
9
  import { Subject, defer, of } from 'rxjs';
10
10
  import { filter, take, startWith } from 'rxjs/operators';
11
+ import { trigger, state, style, transition, group, animate, query, animateChild } from '@angular/animations';
11
12
  import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
12
13
  import * as i2 from '@angular/common';
13
14
  import { DOCUMENT } from '@angular/common';
14
- import { trigger, state, style, transition, group, animate, query, animateChild } from '@angular/animations';
15
15
  import * as i1 from '@angular/cdk/a11y';
16
16
  import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
17
17
  import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
18
18
 
19
+ /**
20
+ * @license
21
+ * Copyright Google LLC All Rights Reserved.
22
+ *
23
+ * Use of this source code is governed by an MIT-style license that can be
24
+ * found in the LICENSE file at https://angular.io/license
25
+ */
26
+ /**
27
+ * Default parameters for the animation for backwards compatibility.
28
+ * @docs-private
29
+ */
30
+ const defaultParams = {
31
+ params: { enterAnimationDuration: '150ms', exitAnimationDuration: '75ms' },
32
+ };
33
+ /**
34
+ * Animations used by MatDialog.
35
+ * @docs-private
36
+ */
37
+ const matDialogAnimations = {
38
+ /** Animation that is applied on the dialog container by default. */
39
+ dialogContainer: trigger('dialogContainer', [
40
+ // Note: The `enter` animation transitions to `transform: none`, because for some reason
41
+ // specifying the transform explicitly, causes IE both to blur the dialog content and
42
+ // decimate the animation performance. Leaving it as `none` solves both issues.
43
+ state('void, exit', style({ opacity: 0, transform: 'scale(0.7)' })),
44
+ state('enter', style({ transform: 'none' })),
45
+ transition('* => enter', group([
46
+ animate('{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'none', opacity: 1 })),
47
+ query('@*', animateChild(), { optional: true }),
48
+ ]), defaultParams),
49
+ transition('* => void, * => exit', group([
50
+ animate('{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)', style({ opacity: 0 })),
51
+ query('@*', animateChild(), { optional: true }),
52
+ ]), defaultParams),
53
+ ]),
54
+ };
55
+
19
56
  /**
20
57
  * @license
21
58
  * Copyright Google LLC All Rights Reserved.
@@ -71,40 +108,14 @@ class MatDialogConfig {
71
108
  * the `HashLocationStrategy`).
72
109
  */
73
110
  this.closeOnNavigation = true;
111
+ /** Duration of the enter animation. Has to be a valid CSS value (e.g. 100ms). */
112
+ this.enterAnimationDuration = defaultParams.params.enterAnimationDuration;
113
+ /** Duration of the exit animation. Has to be a valid CSS value (e.g. 50ms). */
114
+ this.exitAnimationDuration = defaultParams.params.exitAnimationDuration;
74
115
  // TODO(jelbourn): add configuration for lifecycle hooks, ARIA labelling.
75
116
  }
76
117
  }
77
118
 
78
- /**
79
- * @license
80
- * Copyright Google LLC All Rights Reserved.
81
- *
82
- * Use of this source code is governed by an MIT-style license that can be
83
- * found in the LICENSE file at https://angular.io/license
84
- */
85
- /**
86
- * Animations used by MatDialog.
87
- * @docs-private
88
- */
89
- const matDialogAnimations = {
90
- /** Animation that is applied on the dialog container by default. */
91
- dialogContainer: trigger('dialogContainer', [
92
- // Note: The `enter` animation transitions to `transform: none`, because for some reason
93
- // specifying the transform explicitly, causes IE both to blur the dialog content and
94
- // decimate the animation performance. Leaving it as `none` solves both issues.
95
- state('void, exit', style({ opacity: 0, transform: 'scale(0.7)' })),
96
- state('enter', style({ transform: 'none' })),
97
- transition('* => enter', group([
98
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'none', opacity: 1 })),
99
- query('@*', animateChild(), { optional: true }),
100
- ])),
101
- transition('* => void, * => exit', group([
102
- animate('75ms cubic-bezier(0.4, 0.0, 0.2, 1)', style({ opacity: 0 })),
103
- query('@*', animateChild(), { optional: true }),
104
- ])),
105
- ]),
106
- };
107
-
108
119
  /**
109
120
  * Throws an exception for the case when a ComponentPortal is
110
121
  * attached to a DomPortalOutlet without an origin.
@@ -199,8 +210,13 @@ class _MatDialogContainerBase extends BasePortalOutlet {
199
210
  element.tabIndex = -1;
200
211
  // The tabindex attribute should be removed to avoid navigating to that element again
201
212
  this._ngZone.runOutsideAngular(() => {
202
- element.addEventListener('blur', () => element.removeAttribute('tabindex'));
203
- element.addEventListener('mousedown', () => element.removeAttribute('tabindex'));
213
+ const callback = () => {
214
+ element.removeEventListener('blur', callback);
215
+ element.removeEventListener('mousedown', callback);
216
+ element.removeAttribute('tabindex');
217
+ };
218
+ element.addEventListener('blur', callback);
219
+ element.addEventListener('mousedown', callback);
204
220
  });
205
221
  }
206
222
  element.focus(options);
@@ -300,9 +316,9 @@ class _MatDialogContainerBase extends BasePortalOutlet {
300
316
  return element === activeElement || element.contains(activeElement);
301
317
  }
302
318
  }
303
- _MatDialogContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: _MatDialogContainerBase, deps: [{ token: i0.ElementRef }, { token: i1.FocusTrapFactory }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT, optional: true }, { token: MatDialogConfig }, { token: i1.InteractivityChecker }, { token: i0.NgZone }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });
304
- _MatDialogContainerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.5", type: _MatDialogContainerBase, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0 });
305
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: _MatDialogContainerBase, decorators: [{
319
+ _MatDialogContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: _MatDialogContainerBase, deps: [{ token: i0.ElementRef }, { token: i1.FocusTrapFactory }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT, optional: true }, { token: MatDialogConfig }, { token: i1.InteractivityChecker }, { token: i0.NgZone }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });
320
+ _MatDialogContainerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: _MatDialogContainerBase, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0 });
321
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: _MatDialogContainerBase, decorators: [{
306
322
  type: Directive
307
323
  }], ctorParameters: function () {
308
324
  return [{ type: i0.ElementRef }, { type: i1.FocusTrapFactory }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
@@ -361,10 +377,19 @@ class MatDialogContainer extends _MatDialogContainerBase {
361
377
  this._trapFocus();
362
378
  }
363
379
  }
380
+ _getAnimationState() {
381
+ return {
382
+ value: this._state,
383
+ params: {
384
+ 'enterAnimationDuration': this._config.enterAnimationDuration || defaultParams.params.enterAnimationDuration,
385
+ 'exitAnimationDuration': this._config.exitAnimationDuration || defaultParams.params.exitAnimationDuration,
386
+ },
387
+ };
388
+ }
364
389
  }
365
- MatDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogContainer, deps: null, target: i0.ɵɵFactoryTarget.Component });
366
- MatDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "14.0.0-next.5", type: MatDialogContainer, selector: "mat-dialog-container", host: { attributes: { "tabindex": "-1", "aria-modal": "true" }, listeners: { "@dialogContainer.start": "_onAnimationStart($event)", "@dialogContainer.done": "_onAnimationDone($event)" }, properties: { "id": "_id", "attr.role": "_config.role", "attr.aria-labelledby": "_config.ariaLabel ? null : _ariaLabelledBy", "attr.aria-label": "_config.ariaLabel", "attr.aria-describedby": "_config.ariaDescribedBy || null", "@dialogContainer": "_state" }, classAttribute: "mat-dialog-container" }, usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet></ng-template>\n", styles: [".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"], directives: [{ type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [matDialogAnimations.dialogContainer], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
367
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogContainer, decorators: [{
390
+ MatDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogContainer, deps: null, target: i0.ɵɵFactoryTarget.Component });
391
+ MatDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "14.0.0-next.9", type: MatDialogContainer, selector: "mat-dialog-container", host: { attributes: { "tabindex": "-1", "aria-modal": "true" }, listeners: { "@dialogContainer.start": "_onAnimationStart($event)", "@dialogContainer.done": "_onAnimationDone($event)" }, properties: { "id": "_id", "attr.role": "_config.role", "attr.aria-labelledby": "_config.ariaLabel ? null : _ariaLabelledBy", "attr.aria-label": "_config.ariaLabel", "attr.aria-describedby": "_config.ariaDescribedBy || null", "@dialogContainer": "_getAnimationState()" }, classAttribute: "mat-dialog-container" }, usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet></ng-template>\n", styles: [".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"], directives: [{ type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [matDialogAnimations.dialogContainer], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogContainer, decorators: [{
368
393
  type: Component,
369
394
  args: [{ selector: 'mat-dialog-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [matDialogAnimations.dialogContainer], host: {
370
395
  'class': 'mat-dialog-container',
@@ -375,10 +400,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5",
375
400
  '[attr.aria-labelledby]': '_config.ariaLabel ? null : _ariaLabelledBy',
376
401
  '[attr.aria-label]': '_config.ariaLabel',
377
402
  '[attr.aria-describedby]': '_config.ariaDescribedBy || null',
378
- '[@dialogContainer]': '_state',
403
+ '[@dialogContainer]': `_getAnimationState()`,
379
404
  '(@dialogContainer.start)': '_onAnimationStart($event)',
380
405
  '(@dialogContainer.done)': '_onAnimationDone($event)',
381
- }, template: "<ng-template cdkPortalOutlet></ng-template>\n", styles: [".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"] }]
406
+ }, template: "<ng-template cdkPortalOutlet></ng-template>\n", styles: [".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"] }]
382
407
  }] });
383
408
 
384
409
  /**
@@ -731,7 +756,8 @@ class _MatDialogBase {
731
756
  * @returns A promise resolving to a ComponentRef for the attached container.
732
757
  */
733
758
  _attachDialogContainer(overlay, config) {
734
- const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
759
+ var _a, _b;
760
+ const userInjector = (_a = config.injector) !== null && _a !== void 0 ? _a : (_b = config.viewContainerRef) === null || _b === void 0 ? void 0 : _b.injector;
735
761
  const injector = Injector.create({
736
762
  parent: userInjector || this._injector,
737
763
  providers: [{ provide: MatDialogConfig, useValue: config }],
@@ -753,14 +779,14 @@ class _MatDialogBase {
753
779
  // Create a reference to the dialog we're creating in order to give the user a handle
754
780
  // to modify and close it.
755
781
  const dialogRef = new this._dialogRefConstructor(overlayRef, dialogContainer, config.id);
782
+ const injector = this._createInjector(config, dialogRef, dialogContainer);
756
783
  if (componentOrTemplateRef instanceof TemplateRef) {
757
784
  dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, {
758
785
  $implicit: config.data,
759
786
  dialogRef,
760
- }));
787
+ }, injector));
761
788
  }
762
789
  else {
763
- const injector = this._createInjector(config, dialogRef, dialogContainer);
764
790
  const contentRef = dialogContainer.attachComponentPortal(new ComponentPortal(componentOrTemplateRef, config.viewContainerRef, injector, config.componentFactoryResolver));
765
791
  dialogRef.componentInstance = contentRef.instance;
766
792
  }
@@ -852,9 +878,9 @@ class _MatDialogBase {
852
878
  }
853
879
  }
854
880
  }
855
- _MatDialogBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: _MatDialogBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
856
- _MatDialogBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.5", type: _MatDialogBase, ngImport: i0 });
857
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: _MatDialogBase, decorators: [{
881
+ _MatDialogBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: _MatDialogBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
882
+ _MatDialogBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: _MatDialogBase, ngImport: i0 });
883
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: _MatDialogBase, decorators: [{
858
884
  type: Directive
859
885
  }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: undefined }, { type: undefined }, { type: i1$1.OverlayContainer }, { type: undefined }, { type: i0.Type }, { type: i0.Type }, { type: i0.InjectionToken }, { type: undefined }]; } });
860
886
  /**
@@ -875,9 +901,9 @@ class MatDialog extends _MatDialogBase {
875
901
  super(overlay, injector, defaultOptions, parentDialog, overlayContainer, scrollStrategy, MatDialogRef, MatDialogContainer, MAT_DIALOG_DATA, animationMode);
876
902
  }
877
903
  }
878
- MatDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialog, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: i2.Location, optional: true }, { token: MAT_DIALOG_DEFAULT_OPTIONS, optional: true }, { token: MAT_DIALOG_SCROLL_STRATEGY }, { token: MatDialog, optional: true, skipSelf: true }, { token: i1$1.OverlayContainer }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
879
- MatDialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialog });
880
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialog, decorators: [{
904
+ MatDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialog, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: i2.Location, optional: true }, { token: MAT_DIALOG_DEFAULT_OPTIONS, optional: true }, { token: MAT_DIALOG_SCROLL_STRATEGY }, { token: MatDialog, optional: true, skipSelf: true }, { token: i1$1.OverlayContainer }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
905
+ MatDialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialog });
906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialog, decorators: [{
881
907
  type: Injectable
882
908
  }], ctorParameters: function () {
883
909
  return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: i2.Location, decorators: [{
@@ -963,9 +989,9 @@ class MatDialogClose {
963
989
  _closeDialogVia(this.dialogRef, event.screenX === 0 && event.screenY === 0 ? 'keyboard' : 'mouse', this.dialogResult);
964
990
  }
965
991
  }
966
- MatDialogClose.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogClose, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
967
- MatDialogClose.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.5", type: MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: { ariaLabel: ["aria-label", "ariaLabel"], type: "type", dialogResult: ["mat-dialog-close", "dialogResult"], _matDialogClose: ["matDialogClose", "_matDialogClose"] }, host: { listeners: { "click": "_onButtonClick($event)" }, properties: { "attr.aria-label": "ariaLabel || null", "attr.type": "type" } }, exportAs: ["matDialogClose"], usesOnChanges: true, ngImport: i0 });
968
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogClose, decorators: [{
992
+ MatDialogClose.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogClose, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
993
+ MatDialogClose.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: { ariaLabel: ["aria-label", "ariaLabel"], type: "type", dialogResult: ["mat-dialog-close", "dialogResult"], _matDialogClose: ["matDialogClose", "_matDialogClose"] }, host: { listeners: { "click": "_onButtonClick($event)" }, properties: { "attr.aria-label": "ariaLabel || null", "attr.type": "type" } }, exportAs: ["matDialogClose"], usesOnChanges: true, ngImport: i0 });
994
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogClose, decorators: [{
969
995
  type: Directive,
970
996
  args: [{
971
997
  selector: '[mat-dialog-close], [matDialogClose]',
@@ -1020,9 +1046,9 @@ class MatDialogTitle {
1020
1046
  }
1021
1047
  }
1022
1048
  }
1023
- MatDialogTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogTitle, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
1024
- MatDialogTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.5", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: { id: "id" }, host: { properties: { "id": "id" }, classAttribute: "mat-dialog-title" }, exportAs: ["matDialogTitle"], ngImport: i0 });
1025
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogTitle, decorators: [{
1049
+ MatDialogTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogTitle, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
1050
+ MatDialogTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: { id: "id" }, host: { properties: { "id": "id" }, classAttribute: "mat-dialog-title" }, exportAs: ["matDialogTitle"], ngImport: i0 });
1051
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogTitle, decorators: [{
1026
1052
  type: Directive,
1027
1053
  args: [{
1028
1054
  selector: '[mat-dialog-title], [matDialogTitle]',
@@ -1044,9 +1070,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5",
1044
1070
  */
1045
1071
  class MatDialogContent {
1046
1072
  }
1047
- MatDialogContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1048
- MatDialogContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.5", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]", host: { classAttribute: "mat-dialog-content" }, ngImport: i0 });
1049
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogContent, decorators: [{
1073
+ MatDialogContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1074
+ MatDialogContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]", host: { classAttribute: "mat-dialog-content" }, ngImport: i0 });
1075
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogContent, decorators: [{
1050
1076
  type: Directive,
1051
1077
  args: [{
1052
1078
  selector: `[mat-dialog-content], mat-dialog-content, [matDialogContent]`,
@@ -1065,9 +1091,9 @@ class MatDialogActions {
1065
1091
  this.align = 'start';
1066
1092
  }
1067
1093
  }
1068
- MatDialogActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1069
- MatDialogActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.5", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: { align: "align" }, host: { properties: { "class.mat-dialog-actions-align-center": "align === \"center\"", "class.mat-dialog-actions-align-end": "align === \"end\"" }, classAttribute: "mat-dialog-actions" }, ngImport: i0 });
1070
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogActions, decorators: [{
1094
+ MatDialogActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1095
+ MatDialogActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: { align: "align" }, host: { properties: { "class.mat-dialog-actions-align-center": "align === \"center\"", "class.mat-dialog-actions-align-end": "align === \"end\"" }, classAttribute: "mat-dialog-actions" }, ngImport: i0 });
1096
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogActions, decorators: [{
1071
1097
  type: Directive,
1072
1098
  args: [{
1073
1099
  selector: `[mat-dialog-actions], mat-dialog-actions, [matDialogActions]`,
@@ -1080,6 +1106,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5",
1080
1106
  }], propDecorators: { align: [{
1081
1107
  type: Input
1082
1108
  }] } });
1109
+ // TODO(crisbeto): this utility shouldn't be necessary anymore, because the dialog ref is provided
1110
+ // both to component and template dialogs through DI. We need to keep it around, because there are
1111
+ // some internal wrappers around `MatDialog` that happened to work by accident, because we had this
1112
+ // fallback logic in place.
1083
1113
  /**
1084
1114
  * Finds the closest MatDialogRef to an element by looking at the DOM.
1085
1115
  * @param element Element relative to which to look for a dialog.
@@ -1102,8 +1132,8 @@ function getClosestDialog(element, openDialogs) {
1102
1132
  */
1103
1133
  class MatDialogModule {
1104
1134
  }
1105
- MatDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1106
- MatDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogModule, declarations: [MatDialogContainer,
1135
+ MatDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1136
+ MatDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogModule, declarations: [MatDialogContainer,
1107
1137
  MatDialogClose,
1108
1138
  MatDialogTitle,
1109
1139
  MatDialogActions,
@@ -1113,8 +1143,8 @@ MatDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
1113
1143
  MatDialogContent,
1114
1144
  MatDialogActions,
1115
1145
  MatCommonModule] });
1116
- MatDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogModule, providers: [MatDialog, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER], imports: [[OverlayModule, PortalModule, MatCommonModule], MatCommonModule] });
1117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: MatDialogModule, decorators: [{
1146
+ MatDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogModule, providers: [MatDialog, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER], imports: [[OverlayModule, PortalModule, MatCommonModule], MatCommonModule] });
1147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: MatDialogModule, decorators: [{
1118
1148
  type: NgModule,
1119
1149
  args: [{
1120
1150
  imports: [OverlayModule, PortalModule, MatCommonModule],