@angular/material 14.0.0-next.7 → 14.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (963) hide show
  1. package/_index.scss +20 -1
  2. package/autocomplete/index.d.ts +436 -6
  3. package/autocomplete/testing/index.d.ts +71 -8
  4. package/badge/_badge-theme.scss +3 -2
  5. package/badge/index.d.ts +107 -8
  6. package/badge/testing/index.d.ts +36 -8
  7. package/bottom-sheet/index.d.ts +266 -6
  8. package/bottom-sheet/testing/index.d.ts +27 -8
  9. package/button/index.d.ts +77 -6
  10. package/button/testing/index.d.ts +44 -8
  11. package/button-toggle/index.d.ts +245 -6
  12. package/button-toggle/testing/index.d.ts +91 -8
  13. package/card/index.d.ts +165 -5
  14. package/card/testing/index.d.ts +44 -8
  15. package/checkbox/index.d.ts +246 -6
  16. package/checkbox/testing/index.d.ts +91 -8
  17. package/chips/index.d.ts +650 -5
  18. package/chips/testing/index.d.ts +256 -8
  19. package/core/_core.scss +5 -7
  20. package/core/index.d.ts +1079 -5
  21. package/core/ripple/_ripple.scss +2 -2
  22. package/core/style/_menu-common.scss +3 -2
  23. package/core/style/_private.scss +5 -14
  24. package/core/style/_vendor-prefixes.scss +1 -17
  25. package/core/testing/index.d.ts +64 -8
  26. package/core/theming/_theming.scss +2 -2
  27. package/core/typography/_typography.scss +51 -14
  28. package/datepicker/index.d.ts +1782 -6
  29. package/datepicker/testing/index.d.ts +307 -8
  30. package/dialog/index.d.ts +489 -6
  31. package/dialog/testing/index.d.ts +97 -8
  32. package/divider/index.d.ts +30 -8
  33. package/divider/testing/index.d.ts +16 -8
  34. package/esm2020/autocomplete/autocomplete-module.mjs +5 -5
  35. package/esm2020/autocomplete/autocomplete-origin.mjs +7 -7
  36. package/esm2020/autocomplete/autocomplete-trigger.mjs +38 -20
  37. package/esm2020/autocomplete/autocomplete.mjs +9 -9
  38. package/esm2020/autocomplete/testing/autocomplete-harness.mjs +5 -1
  39. package/esm2020/badge/badge-module.mjs +5 -5
  40. package/esm2020/badge/badge.mjs +4 -4
  41. package/esm2020/bottom-sheet/bottom-sheet-container.mjs +12 -7
  42. package/esm2020/bottom-sheet/bottom-sheet-module.mjs +5 -5
  43. package/esm2020/bottom-sheet/bottom-sheet.mjs +4 -4
  44. package/esm2020/button/button-module.mjs +5 -5
  45. package/esm2020/button/button.mjs +9 -9
  46. package/esm2020/button-toggle/button-toggle-module.mjs +5 -5
  47. package/esm2020/button-toggle/button-toggle.mjs +8 -8
  48. package/esm2020/card/card-module.mjs +5 -5
  49. package/esm2020/card/card.mjs +44 -44
  50. package/esm2020/checkbox/checkbox-module.mjs +9 -9
  51. package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
  52. package/esm2020/checkbox/checkbox.mjs +23 -21
  53. package/esm2020/checkbox/testing/checkbox-harness-filters.mjs +1 -1
  54. package/esm2020/checkbox/testing/checkbox-harness.mjs +3 -2
  55. package/esm2020/chips/chip-input.mjs +4 -4
  56. package/esm2020/chips/chip-list.mjs +5 -5
  57. package/esm2020/chips/chip.mjs +15 -16
  58. package/esm2020/chips/chips-module.mjs +6 -6
  59. package/esm2020/core/common-behaviors/common-module.mjs +5 -5
  60. package/esm2020/core/common-behaviors/error-state.mjs +1 -1
  61. package/esm2020/core/datetime/index.mjs +9 -9
  62. package/esm2020/core/datetime/native-date-adapter.mjs +4 -4
  63. package/esm2020/core/error/error-options.mjs +7 -7
  64. package/esm2020/core/line/line.mjs +8 -8
  65. package/esm2020/core/option/index.mjs +5 -5
  66. package/esm2020/core/option/optgroup.mjs +8 -8
  67. package/esm2020/core/option/option.mjs +10 -10
  68. package/esm2020/core/ripple/index.mjs +5 -5
  69. package/esm2020/core/ripple/ripple-ref.mjs +2 -2
  70. package/esm2020/core/ripple/ripple-renderer.mjs +36 -19
  71. package/esm2020/core/ripple/ripple.mjs +4 -4
  72. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
  73. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +5 -5
  74. package/esm2020/core/version.mjs +1 -1
  75. package/esm2020/datepicker/calendar-body.mjs +5 -5
  76. package/esm2020/datepicker/calendar.mjs +26 -15
  77. package/esm2020/datepicker/date-range-input-parts.mjs +10 -10
  78. package/esm2020/datepicker/date-range-input.mjs +6 -6
  79. package/esm2020/datepicker/date-range-picker.mjs +4 -4
  80. package/esm2020/datepicker/date-range-selection-strategy.mjs +4 -4
  81. package/esm2020/datepicker/date-selection-model.mjs +10 -10
  82. package/esm2020/datepicker/datepicker-actions.mjs +12 -12
  83. package/esm2020/datepicker/datepicker-base.mjs +11 -11
  84. package/esm2020/datepicker/datepicker-input-base.mjs +6 -7
  85. package/esm2020/datepicker/datepicker-input.mjs +4 -4
  86. package/esm2020/datepicker/datepicker-intl.mjs +4 -4
  87. package/esm2020/datepicker/datepicker-module.mjs +10 -12
  88. package/esm2020/datepicker/datepicker-toggle.mjs +10 -10
  89. package/esm2020/datepicker/datepicker.mjs +4 -4
  90. package/esm2020/datepicker/month-view.mjs +6 -6
  91. package/esm2020/datepicker/multi-year-view.mjs +4 -4
  92. package/esm2020/datepicker/testing/calendar-harness.mjs +4 -4
  93. package/esm2020/datepicker/year-view.mjs +4 -4
  94. package/esm2020/dialog/dialog-config.mjs +1 -1
  95. package/esm2020/dialog/dialog-container.mjs +42 -215
  96. package/esm2020/dialog/dialog-content-directives.mjs +14 -14
  97. package/esm2020/dialog/dialog-module.mjs +8 -7
  98. package/esm2020/dialog/dialog-ref.mjs +28 -60
  99. package/esm2020/dialog/dialog.mjs +74 -197
  100. package/esm2020/dialog/testing/dialog-harness.mjs +4 -4
  101. package/esm2020/divider/divider-module.mjs +5 -5
  102. package/esm2020/divider/divider.mjs +5 -5
  103. package/esm2020/expansion/accordion.mjs +4 -4
  104. package/esm2020/expansion/expansion-module.mjs +5 -5
  105. package/esm2020/expansion/expansion-panel-content.mjs +4 -4
  106. package/esm2020/expansion/expansion-panel-header.mjs +11 -11
  107. package/esm2020/expansion/expansion-panel.mjs +9 -9
  108. package/esm2020/expansion/testing/expansion-harness.mjs +6 -6
  109. package/esm2020/form-field/error.mjs +4 -4
  110. package/esm2020/form-field/form-field-control.mjs +4 -4
  111. package/esm2020/form-field/form-field-module.mjs +5 -5
  112. package/esm2020/form-field/form-field.mjs +11 -8
  113. package/esm2020/form-field/hint.mjs +4 -4
  114. package/esm2020/form-field/label.mjs +4 -4
  115. package/esm2020/form-field/placeholder.mjs +4 -4
  116. package/esm2020/form-field/prefix.mjs +4 -4
  117. package/esm2020/form-field/suffix.mjs +4 -4
  118. package/esm2020/form-field/testing/public-api.mjs +4 -4
  119. package/esm2020/grid-list/grid-list-module.mjs +5 -5
  120. package/esm2020/grid-list/grid-list.mjs +6 -6
  121. package/esm2020/grid-list/grid-tile.mjs +17 -17
  122. package/esm2020/grid-list/testing/grid-tile-harness.mjs +3 -3
  123. package/esm2020/icon/icon-module.mjs +5 -5
  124. package/esm2020/icon/icon-registry.mjs +4 -4
  125. package/esm2020/icon/icon.mjs +5 -12
  126. package/esm2020/icon/testing/fake-icon-registry.mjs +8 -8
  127. package/esm2020/icon/testing/icon-harness.mjs +3 -3
  128. package/esm2020/input/input-module.mjs +5 -5
  129. package/esm2020/input/input.mjs +29 -22
  130. package/esm2020/list/list-module.mjs +5 -5
  131. package/esm2020/list/list.mjs +21 -21
  132. package/esm2020/list/selection-list.mjs +9 -9
  133. package/esm2020/menu/menu-content.mjs +7 -7
  134. package/esm2020/menu/menu-item.mjs +6 -6
  135. package/esm2020/menu/menu-module.mjs +5 -5
  136. package/esm2020/menu/menu-trigger.mjs +7 -7
  137. package/esm2020/menu/menu.mjs +28 -40
  138. package/esm2020/paginator/paginator-intl.mjs +4 -4
  139. package/esm2020/paginator/paginator-module.mjs +5 -5
  140. package/esm2020/paginator/paginator.mjs +13 -13
  141. package/esm2020/paginator/testing/paginator-harness.mjs +11 -1
  142. package/esm2020/progress-bar/progress-bar-module.mjs +5 -5
  143. package/esm2020/progress-bar/progress-bar.mjs +8 -5
  144. package/esm2020/progress-spinner/progress-spinner-module.mjs +5 -5
  145. package/esm2020/progress-spinner/progress-spinner.mjs +5 -5
  146. package/esm2020/radio/radio-module.mjs +5 -5
  147. package/esm2020/radio/radio.mjs +42 -14
  148. package/esm2020/radio/testing/radio-harness-filters.mjs +1 -1
  149. package/esm2020/radio/testing/radio-harness.mjs +3 -2
  150. package/esm2020/select/select-module.mjs +5 -5
  151. package/esm2020/select/select.mjs +44 -28
  152. package/esm2020/sidenav/drawer.mjs +19 -14
  153. package/esm2020/sidenav/sidenav-module.mjs +5 -5
  154. package/esm2020/sidenav/sidenav.mjs +12 -12
  155. package/esm2020/slide-toggle/slide-toggle-module.mjs +12 -14
  156. package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +4 -4
  157. package/esm2020/slide-toggle/slide-toggle.mjs +5 -5
  158. package/esm2020/slide-toggle/testing/slide-toggle-harness-filters.mjs +1 -1
  159. package/esm2020/slide-toggle/testing/slide-toggle-harness.mjs +4 -2
  160. package/esm2020/slider/slider-module.mjs +5 -5
  161. package/esm2020/slider/slider.mjs +5 -5
  162. package/esm2020/snack-bar/simple-snack-bar.mjs +7 -7
  163. package/esm2020/snack-bar/snack-bar-container.mjs +24 -18
  164. package/esm2020/snack-bar/snack-bar-module.mjs +5 -5
  165. package/esm2020/snack-bar/snack-bar-ref.mjs +2 -3
  166. package/esm2020/snack-bar/snack-bar.mjs +7 -7
  167. package/esm2020/sort/sort-header-intl.mjs +4 -4
  168. package/esm2020/sort/sort-header.mjs +5 -5
  169. package/esm2020/sort/sort-module.mjs +5 -5
  170. package/esm2020/sort/sort.mjs +4 -4
  171. package/esm2020/stepper/step-content.mjs +4 -4
  172. package/esm2020/stepper/step-header.mjs +8 -8
  173. package/esm2020/stepper/step-label.mjs +4 -4
  174. package/esm2020/stepper/stepper-button.mjs +7 -7
  175. package/esm2020/stepper/stepper-icon.mjs +4 -4
  176. package/esm2020/stepper/stepper-intl.mjs +4 -4
  177. package/esm2020/stepper/stepper-module.mjs +11 -13
  178. package/esm2020/stepper/stepper.mjs +11 -11
  179. package/esm2020/stepper/testing/stepper-harness.mjs +3 -3
  180. package/esm2020/table/cell.mjs +22 -22
  181. package/esm2020/table/row.mjs +22 -22
  182. package/esm2020/table/table-data-source.mjs +1 -1
  183. package/esm2020/table/table-module.mjs +5 -5
  184. package/esm2020/table/table.mjs +9 -9
  185. package/esm2020/table/text-column.mjs +5 -5
  186. package/esm2020/tabs/ink-bar.mjs +4 -4
  187. package/esm2020/tabs/paginated-tab-header.mjs +11 -5
  188. package/esm2020/tabs/tab-body.mjs +11 -11
  189. package/esm2020/tabs/tab-content.mjs +4 -4
  190. package/esm2020/tabs/tab-group.mjs +35 -18
  191. package/esm2020/tabs/tab-header.mjs +8 -8
  192. package/esm2020/tabs/tab-label-wrapper.mjs +4 -4
  193. package/esm2020/tabs/tab-label.mjs +4 -4
  194. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +17 -17
  195. package/esm2020/tabs/tab.mjs +4 -4
  196. package/esm2020/tabs/tabs-module.mjs +10 -12
  197. package/esm2020/toolbar/testing/toolbar-harness.mjs +2 -2
  198. package/esm2020/toolbar/toolbar-module.mjs +5 -5
  199. package/esm2020/toolbar/toolbar.mjs +8 -8
  200. package/esm2020/tooltip/tooltip-module.mjs +5 -5
  201. package/esm2020/tooltip/tooltip.mjs +14 -14
  202. package/esm2020/tree/node.mjs +10 -10
  203. package/esm2020/tree/outlet.mjs +4 -4
  204. package/esm2020/tree/padding.mjs +4 -4
  205. package/esm2020/tree/toggle.mjs +4 -4
  206. package/esm2020/tree/tree-module.mjs +5 -5
  207. package/esm2020/tree/tree.mjs +5 -5
  208. package/expansion/index.d.ts +343 -5
  209. package/expansion/testing/index.d.ts +106 -8
  210. package/fesm2015/autocomplete/testing.mjs +6 -0
  211. package/fesm2015/autocomplete/testing.mjs.map +1 -1
  212. package/fesm2015/autocomplete.mjs +55 -37
  213. package/fesm2015/autocomplete.mjs.map +1 -1
  214. package/fesm2015/badge.mjs +7 -7
  215. package/fesm2015/badge.mjs.map +1 -1
  216. package/fesm2015/bottom-sheet.mjs +18 -13
  217. package/fesm2015/bottom-sheet.mjs.map +1 -1
  218. package/fesm2015/button-toggle.mjs +11 -11
  219. package/fesm2015/button-toggle.mjs.map +1 -1
  220. package/fesm2015/button.mjs +12 -12
  221. package/fesm2015/button.mjs.map +1 -1
  222. package/fesm2015/card.mjs +47 -47
  223. package/fesm2015/card.mjs.map +1 -1
  224. package/fesm2015/checkbox/testing.mjs +2 -1
  225. package/fesm2015/checkbox/testing.mjs.map +1 -1
  226. package/fesm2015/checkbox.mjs +33 -31
  227. package/fesm2015/checkbox.mjs.map +1 -1
  228. package/fesm2015/chips.mjs +26 -27
  229. package/fesm2015/chips.mjs.map +1 -1
  230. package/fesm2015/core.mjs +99 -81
  231. package/fesm2015/core.mjs.map +1 -1
  232. package/fesm2015/datepicker/testing.mjs +3 -3
  233. package/fesm2015/datepicker/testing.mjs.map +1 -1
  234. package/fesm2015/datepicker.mjs +111 -103
  235. package/fesm2015/datepicker.mjs.map +1 -1
  236. package/fesm2015/dialog/testing.mjs +3 -3
  237. package/fesm2015/dialog/testing.mjs.map +1 -1
  238. package/fesm2015/dialog.mjs +152 -485
  239. package/fesm2015/dialog.mjs.map +1 -1
  240. package/fesm2015/divider.mjs +8 -8
  241. package/fesm2015/divider.mjs.map +1 -1
  242. package/fesm2015/expansion/testing.mjs +5 -5
  243. package/fesm2015/expansion/testing.mjs.map +1 -1
  244. package/fesm2015/expansion.mjs +28 -28
  245. package/fesm2015/expansion.mjs.map +1 -1
  246. package/fesm2015/form-field/testing.mjs +1 -1
  247. package/fesm2015/form-field/testing.mjs.map +1 -1
  248. package/fesm2015/form-field.mjs +35 -32
  249. package/fesm2015/form-field.mjs.map +1 -1
  250. package/fesm2015/grid-list/testing.mjs +2 -2
  251. package/fesm2015/grid-list/testing.mjs.map +1 -1
  252. package/fesm2015/grid-list.mjs +25 -25
  253. package/fesm2015/grid-list.mjs.map +1 -1
  254. package/fesm2015/icon/testing.mjs +9 -9
  255. package/fesm2015/icon/testing.mjs.map +1 -1
  256. package/fesm2015/icon.mjs +11 -18
  257. package/fesm2015/icon.mjs.map +1 -1
  258. package/fesm2015/input.mjs +33 -26
  259. package/fesm2015/input.mjs.map +1 -1
  260. package/fesm2015/list.mjs +32 -32
  261. package/fesm2015/list.mjs.map +1 -1
  262. package/fesm2015/menu.mjs +48 -60
  263. package/fesm2015/menu.mjs.map +1 -1
  264. package/fesm2015/paginator/testing.mjs +14 -0
  265. package/fesm2015/paginator/testing.mjs.map +1 -1
  266. package/fesm2015/paginator.mjs +19 -19
  267. package/fesm2015/paginator.mjs.map +1 -1
  268. package/fesm2015/progress-bar.mjs +11 -8
  269. package/fesm2015/progress-bar.mjs.map +1 -1
  270. package/fesm2015/progress-spinner.mjs +8 -8
  271. package/fesm2015/progress-spinner.mjs.map +1 -1
  272. package/fesm2015/radio/testing.mjs +2 -1
  273. package/fesm2015/radio/testing.mjs.map +1 -1
  274. package/fesm2015/radio.mjs +46 -17
  275. package/fesm2015/radio.mjs.map +1 -1
  276. package/fesm2015/select.mjs +48 -32
  277. package/fesm2015/select.mjs.map +1 -1
  278. package/fesm2015/sidenav.mjs +33 -28
  279. package/fesm2015/sidenav.mjs.map +1 -1
  280. package/fesm2015/slide-toggle/testing.mjs +3 -1
  281. package/fesm2015/slide-toggle/testing.mjs.map +1 -1
  282. package/fesm2015/slide-toggle.mjs +18 -20
  283. package/fesm2015/slide-toggle.mjs.map +1 -1
  284. package/fesm2015/slider.mjs +8 -8
  285. package/fesm2015/slider.mjs.map +1 -1
  286. package/fesm2015/snack-bar.mjs +40 -35
  287. package/fesm2015/snack-bar.mjs.map +1 -1
  288. package/fesm2015/sort.mjs +14 -14
  289. package/fesm2015/sort.mjs.map +1 -1
  290. package/fesm2015/stepper/testing.mjs +2 -2
  291. package/fesm2015/stepper/testing.mjs.map +1 -1
  292. package/fesm2015/stepper.mjs +42 -44
  293. package/fesm2015/stepper.mjs.map +1 -1
  294. package/fesm2015/table.mjs +58 -58
  295. package/fesm2015/table.mjs.map +1 -1
  296. package/fesm2015/tabs.mjs +97 -75
  297. package/fesm2015/tabs.mjs.map +1 -1
  298. package/fesm2015/toolbar/testing.mjs +1 -1
  299. package/fesm2015/toolbar/testing.mjs.map +1 -1
  300. package/fesm2015/toolbar.mjs +11 -11
  301. package/fesm2015/toolbar.mjs.map +1 -1
  302. package/fesm2015/tooltip.mjs +17 -17
  303. package/fesm2015/tooltip.mjs.map +1 -1
  304. package/fesm2015/tree.mjs +26 -26
  305. package/fesm2015/tree.mjs.map +1 -1
  306. package/fesm2020/autocomplete/testing.mjs +4 -0
  307. package/fesm2020/autocomplete/testing.mjs.map +1 -1
  308. package/fesm2020/autocomplete.mjs +55 -37
  309. package/fesm2020/autocomplete.mjs.map +1 -1
  310. package/fesm2020/badge.mjs +7 -7
  311. package/fesm2020/badge.mjs.map +1 -1
  312. package/fesm2020/bottom-sheet.mjs +18 -13
  313. package/fesm2020/bottom-sheet.mjs.map +1 -1
  314. package/fesm2020/button-toggle.mjs +11 -11
  315. package/fesm2020/button-toggle.mjs.map +1 -1
  316. package/fesm2020/button.mjs +12 -12
  317. package/fesm2020/button.mjs.map +1 -1
  318. package/fesm2020/card.mjs +47 -47
  319. package/fesm2020/card.mjs.map +1 -1
  320. package/fesm2020/checkbox/testing.mjs +2 -1
  321. package/fesm2020/checkbox/testing.mjs.map +1 -1
  322. package/fesm2020/checkbox.mjs +33 -31
  323. package/fesm2020/checkbox.mjs.map +1 -1
  324. package/fesm2020/chips.mjs +26 -27
  325. package/fesm2020/chips.mjs.map +1 -1
  326. package/fesm2020/core.mjs +98 -81
  327. package/fesm2020/core.mjs.map +1 -1
  328. package/fesm2020/datepicker/testing.mjs +3 -3
  329. package/fesm2020/datepicker/testing.mjs.map +1 -1
  330. package/fesm2020/datepicker.mjs +111 -103
  331. package/fesm2020/datepicker.mjs.map +1 -1
  332. package/fesm2020/dialog/testing.mjs +3 -3
  333. package/fesm2020/dialog/testing.mjs.map +1 -1
  334. package/fesm2020/dialog.mjs +155 -484
  335. package/fesm2020/dialog.mjs.map +1 -1
  336. package/fesm2020/divider.mjs +8 -8
  337. package/fesm2020/divider.mjs.map +1 -1
  338. package/fesm2020/expansion/testing.mjs +5 -5
  339. package/fesm2020/expansion/testing.mjs.map +1 -1
  340. package/fesm2020/expansion.mjs +28 -28
  341. package/fesm2020/expansion.mjs.map +1 -1
  342. package/fesm2020/form-field/testing.mjs +1 -1
  343. package/fesm2020/form-field/testing.mjs.map +1 -1
  344. package/fesm2020/form-field.mjs +35 -32
  345. package/fesm2020/form-field.mjs.map +1 -1
  346. package/fesm2020/grid-list/testing.mjs +2 -2
  347. package/fesm2020/grid-list/testing.mjs.map +1 -1
  348. package/fesm2020/grid-list.mjs +25 -25
  349. package/fesm2020/grid-list.mjs.map +1 -1
  350. package/fesm2020/icon/testing.mjs +9 -9
  351. package/fesm2020/icon/testing.mjs.map +1 -1
  352. package/fesm2020/icon.mjs +11 -18
  353. package/fesm2020/icon.mjs.map +1 -1
  354. package/fesm2020/input.mjs +32 -25
  355. package/fesm2020/input.mjs.map +1 -1
  356. package/fesm2020/list.mjs +32 -32
  357. package/fesm2020/list.mjs.map +1 -1
  358. package/fesm2020/menu.mjs +48 -60
  359. package/fesm2020/menu.mjs.map +1 -1
  360. package/fesm2020/paginator/testing.mjs +10 -0
  361. package/fesm2020/paginator/testing.mjs.map +1 -1
  362. package/fesm2020/paginator.mjs +19 -19
  363. package/fesm2020/paginator.mjs.map +1 -1
  364. package/fesm2020/progress-bar.mjs +11 -8
  365. package/fesm2020/progress-bar.mjs.map +1 -1
  366. package/fesm2020/progress-spinner.mjs +8 -8
  367. package/fesm2020/progress-spinner.mjs.map +1 -1
  368. package/fesm2020/radio/testing.mjs +2 -1
  369. package/fesm2020/radio/testing.mjs.map +1 -1
  370. package/fesm2020/radio.mjs +45 -17
  371. package/fesm2020/radio.mjs.map +1 -1
  372. package/fesm2020/select.mjs +48 -32
  373. package/fesm2020/select.mjs.map +1 -1
  374. package/fesm2020/sidenav.mjs +33 -28
  375. package/fesm2020/sidenav.mjs.map +1 -1
  376. package/fesm2020/slide-toggle/testing.mjs +3 -1
  377. package/fesm2020/slide-toggle/testing.mjs.map +1 -1
  378. package/fesm2020/slide-toggle.mjs +18 -20
  379. package/fesm2020/slide-toggle.mjs.map +1 -1
  380. package/fesm2020/slider.mjs +8 -8
  381. package/fesm2020/slider.mjs.map +1 -1
  382. package/fesm2020/snack-bar.mjs +40 -35
  383. package/fesm2020/snack-bar.mjs.map +1 -1
  384. package/fesm2020/sort.mjs +14 -14
  385. package/fesm2020/sort.mjs.map +1 -1
  386. package/fesm2020/stepper/testing.mjs +2 -2
  387. package/fesm2020/stepper/testing.mjs.map +1 -1
  388. package/fesm2020/stepper.mjs +42 -44
  389. package/fesm2020/stepper.mjs.map +1 -1
  390. package/fesm2020/table.mjs +58 -58
  391. package/fesm2020/table.mjs.map +1 -1
  392. package/fesm2020/tabs.mjs +96 -75
  393. package/fesm2020/tabs.mjs.map +1 -1
  394. package/fesm2020/toolbar/testing.mjs +1 -1
  395. package/fesm2020/toolbar/testing.mjs.map +1 -1
  396. package/fesm2020/toolbar.mjs +11 -11
  397. package/fesm2020/toolbar.mjs.map +1 -1
  398. package/fesm2020/tooltip.mjs +17 -17
  399. package/fesm2020/tooltip.mjs.map +1 -1
  400. package/fesm2020/tree.mjs +26 -26
  401. package/fesm2020/tree.mjs.map +1 -1
  402. package/form-field/index.d.ts +401 -5
  403. package/form-field/testing/control/index.d.ts +8 -6
  404. package/form-field/testing/index.d.ts +127 -8
  405. package/grid-list/index.d.ts +232 -5
  406. package/grid-list/testing/index.d.ts +86 -8
  407. package/icon/index.d.ts +443 -5
  408. package/icon/testing/index.d.ts +81 -6
  409. package/index.d.ts +3 -7
  410. package/input/index.d.ts +209 -6
  411. package/input/testing/index.d.ts +129 -8
  412. package/list/index.d.ts +369 -6
  413. package/list/testing/index.d.ts +329 -6
  414. package/menu/index.d.ts +613 -6
  415. package/menu/testing/index.d.ts +115 -8
  416. package/package.json +38 -38
  417. package/paginator/index.d.ts +224 -6
  418. package/paginator/testing/index.d.ts +65 -8
  419. package/prebuilt-themes/deeppurple-amber.css +1 -1
  420. package/prebuilt-themes/indigo-pink.css +1 -1
  421. package/prebuilt-themes/pink-bluegrey.css +1 -1
  422. package/prebuilt-themes/purple-green.css +1 -1
  423. package/progress-bar/index.d.ts +147 -6
  424. package/progress-bar/testing/index.d.ts +26 -8
  425. package/progress-spinner/index.d.ts +138 -6
  426. package/progress-spinner/testing/index.d.ts +27 -8
  427. package/radio/index.d.ts +305 -6
  428. package/radio/testing/index.d.ts +130 -8
  429. package/schematics/collection.json +4 -2
  430. package/schematics/ng-add/index.js +1 -1
  431. package/schematics/ng-add/index.mjs +1 -1
  432. package/schematics/ng-update/migrations/hammer-gestures-v9/gesture-config.template +1 -1
  433. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +5 -5
  434. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.mjs +5 -5
  435. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +23 -32
  436. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.mjs +23 -32
  437. package/select/index.d.ts +534 -5
  438. package/select/testing/index.d.ts +79 -8
  439. package/sidenav/index.d.ts +395 -5
  440. package/sidenav/testing/index.d.ts +124 -6
  441. package/slide-toggle/index.d.ts +173 -5
  442. package/slide-toggle/testing/index.d.ts +77 -8
  443. package/slider/index.d.ts +289 -6
  444. package/slider/testing/index.d.ts +60 -8
  445. package/snack-bar/index.d.ts +372 -6
  446. package/snack-bar/testing/index.d.ts +72 -8
  447. package/sort/index.d.ts +326 -5
  448. package/sort/testing/index.d.ts +50 -8
  449. package/stepper/index.d.ts +288 -6
  450. package/stepper/testing/index.d.ts +142 -6
  451. package/table/index.d.ts +382 -5
  452. package/table/testing/index.d.ts +178 -8
  453. package/tabs/_tabs-common.scss +6 -5
  454. package/tabs/index.d.ts +963 -5
  455. package/tabs/testing/index.d.ts +153 -8
  456. package/toolbar/index.d.ts +56 -6
  457. package/toolbar/testing/index.d.ts +35 -8
  458. package/tooltip/index.d.ts +362 -5
  459. package/tooltip/testing/index.d.ts +42 -8
  460. package/tree/index.d.ts +243 -5
  461. package/tree/testing/index.d.ts +122 -8
  462. package/autocomplete/autocomplete-module.d.ts +0 -13
  463. package/autocomplete/autocomplete-origin.d.ts +0 -27
  464. package/autocomplete/autocomplete-trigger.d.ts +0 -211
  465. package/autocomplete/autocomplete.d.ts +0 -150
  466. package/autocomplete/autocomplete_public_index.d.ts +0 -4
  467. package/autocomplete/package.json +0 -9
  468. package/autocomplete/public-api.d.ts +0 -11
  469. package/autocomplete/testing/autocomplete-harness-filters.d.ts +0 -13
  470. package/autocomplete/testing/autocomplete-harness.d.ts +0 -61
  471. package/autocomplete/testing/package.json +0 -9
  472. package/autocomplete/testing/public-api.d.ts +0 -9
  473. package/badge/badge-module.d.ts +0 -9
  474. package/badge/badge.d.ts +0 -86
  475. package/badge/badge_public_index.d.ts +0 -4
  476. package/badge/package.json +0 -9
  477. package/badge/public-api.d.ts +0 -9
  478. package/badge/testing/badge-harness-filters.d.ts +0 -11
  479. package/badge/testing/badge-harness.d.ts +0 -34
  480. package/badge/testing/package.json +0 -9
  481. package/badge/testing/public-api.d.ts +0 -9
  482. package/bottom-sheet/bottom-sheet-animations.d.ts +0 -12
  483. package/bottom-sheet/bottom-sheet-config.d.ts +0 -54
  484. package/bottom-sheet/bottom-sheet-container.d.ts +0 -87
  485. package/bottom-sheet/bottom-sheet-module.d.ts +0 -10
  486. package/bottom-sheet/bottom-sheet-ref.d.ts +0 -51
  487. package/bottom-sheet/bottom-sheet.d.ts +0 -59
  488. package/bottom-sheet/bottom-sheet_public_index.d.ts +0 -4
  489. package/bottom-sheet/package.json +0 -9
  490. package/bottom-sheet/public-api.d.ts +0 -13
  491. package/bottom-sheet/testing/bottom-sheet-harness-filters.d.ts +0 -10
  492. package/bottom-sheet/testing/bottom-sheet-harness.d.ts +0 -27
  493. package/bottom-sheet/testing/package.json +0 -9
  494. package/bottom-sheet/testing/public-api.d.ts +0 -9
  495. package/button/button-module.d.ts +0 -8
  496. package/button/button.d.ts +0 -58
  497. package/button/button_public_index.d.ts +0 -4
  498. package/button/package.json +0 -9
  499. package/button/public-api.d.ts +0 -9
  500. package/button/testing/button-harness-filters.d.ts +0 -13
  501. package/button/testing/button-harness.d.ts +0 -41
  502. package/button/testing/package.json +0 -9
  503. package/button/testing/public-api.d.ts +0 -9
  504. package/button-toggle/button-toggle-module.d.ts +0 -8
  505. package/button-toggle/button-toggle.d.ts +0 -212
  506. package/button-toggle/button-toggle_public_index.d.ts +0 -4
  507. package/button-toggle/package.json +0 -9
  508. package/button-toggle/public-api.d.ts +0 -9
  509. package/button-toggle/testing/button-toggle-group-harness-filters.d.ts +0 -11
  510. package/button-toggle/testing/button-toggle-group-harness.d.ts +0 -35
  511. package/button-toggle/testing/button-toggle-harness-filters.d.ts +0 -17
  512. package/button-toggle/testing/button-toggle-harness.d.ts +0 -56
  513. package/button-toggle/testing/package.json +0 -9
  514. package/button-toggle/testing/public-api.d.ts +0 -11
  515. package/card/card-module.d.ts +0 -8
  516. package/card/card.d.ts +0 -126
  517. package/card/card_public_index.d.ts +0 -4
  518. package/card/package.json +0 -9
  519. package/card/public-api.d.ts +0 -9
  520. package/card/testing/card-harness-filters.d.ts +0 -17
  521. package/card/testing/card-harness.d.ts +0 -36
  522. package/card/testing/package.json +0 -9
  523. package/card/testing/public-api.d.ts +0 -9
  524. package/checkbox/checkbox-config.d.ts +0 -28
  525. package/checkbox/checkbox-module.d.ts +0 -16
  526. package/checkbox/checkbox-required-validator.d.ts +0 -20
  527. package/checkbox/checkbox.d.ts +0 -166
  528. package/checkbox/checkbox_public_index.d.ts +0 -4
  529. package/checkbox/package.json +0 -9
  530. package/checkbox/public-api.d.ts +0 -11
  531. package/checkbox/testing/checkbox-harness-filters.d.ts +0 -15
  532. package/checkbox/testing/checkbox-harness.d.ts +0 -81
  533. package/checkbox/testing/package.json +0 -9
  534. package/checkbox/testing/public-api.d.ts +0 -9
  535. package/chips/chip-default-options.d.ts +0 -15
  536. package/chips/chip-input.d.ts +0 -91
  537. package/chips/chip-list.d.ts +0 -289
  538. package/chips/chip-text-control.d.ts +0 -20
  539. package/chips/chip.d.ts +0 -210
  540. package/chips/chips-module.d.ts +0 -10
  541. package/chips/chips_public_index.d.ts +0 -4
  542. package/chips/package.json +0 -9
  543. package/chips/public-api.d.ts +0 -12
  544. package/chips/testing/chip-avatar-harness.d.ts +0 -20
  545. package/chips/testing/chip-harness-filters.d.ts +0 -43
  546. package/chips/testing/chip-harness.d.ts +0 -63
  547. package/chips/testing/chip-input-harness.d.ts +0 -47
  548. package/chips/testing/chip-list-harness.d.ts +0 -54
  549. package/chips/testing/chip-listbox-harness.d.ts +0 -34
  550. package/chips/testing/chip-option-harness.d.ts +0 -29
  551. package/chips/testing/chip-remove-harness.d.ts +0 -22
  552. package/chips/testing/package.json +0 -9
  553. package/chips/testing/public-api.d.ts +0 -14
  554. package/core/animation/animation.d.ts +0 -20
  555. package/core/common-behaviors/color.d.ts +0 -26
  556. package/core/common-behaviors/common-module.d.ts +0 -44
  557. package/core/common-behaviors/constructor.d.ts +0 -14
  558. package/core/common-behaviors/disable-ripple.d.ts +0 -17
  559. package/core/common-behaviors/disabled.d.ts +0 -17
  560. package/core/common-behaviors/error-state.d.ts +0 -35
  561. package/core/common-behaviors/index.d.ts +0 -15
  562. package/core/common-behaviors/initialized.d.ts +0 -30
  563. package/core/common-behaviors/tabindex.d.ts +0 -20
  564. package/core/core_public_index.d.ts +0 -4
  565. package/core/datetime/date-adapter.d.ts +0 -215
  566. package/core/datetime/date-formats.d.ts +0 -21
  567. package/core/datetime/index.d.ts +0 -15
  568. package/core/datetime/native-date-adapter.d.ts +0 -74
  569. package/core/datetime/native-date-formats.d.ts +0 -9
  570. package/core/error/error-options.d.ts +0 -14
  571. package/core/line/line.d.ts +0 -29
  572. package/core/option/index.d.ts +0 -15
  573. package/core/option/optgroup.d.ts +0 -40
  574. package/core/option/option-parent.d.ts +0 -22
  575. package/core/option/option.d.ts +0 -135
  576. package/core/package.json +0 -9
  577. package/core/public-api.d.ts +0 -16
  578. package/core/ripple/index.d.ts +0 -11
  579. package/core/ripple/ripple-ref.d.ts +0 -54
  580. package/core/ripple/ripple-renderer.d.ts +0 -99
  581. package/core/ripple/ripple.d.ts +0 -113
  582. package/core/selection/index.d.ts +0 -9
  583. package/core/selection/pseudo-checkbox/pseudo-checkbox-module.d.ts +0 -8
  584. package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +0 -29
  585. package/core/testing/optgroup-harness-filters.d.ts +0 -11
  586. package/core/testing/optgroup-harness.d.ts +0 -33
  587. package/core/testing/option-harness-filters.d.ts +0 -12
  588. package/core/testing/option-harness.d.ts +0 -35
  589. package/core/testing/package.json +0 -9
  590. package/core/testing/public-api.d.ts +0 -11
  591. package/core/version.d.ts +0 -10
  592. package/datepicker/calendar-body.d.ts +0 -176
  593. package/datepicker/calendar.d.ts +0 -156
  594. package/datepicker/date-range-input-parts.d.ts +0 -108
  595. package/datepicker/date-range-input.d.ts +0 -133
  596. package/datepicker/date-range-picker.d.ts +0 -17
  597. package/datepicker/date-range-selection-strategy.d.ts +0 -48
  598. package/datepicker/date-selection-model.d.ts +0 -139
  599. package/datepicker/datepicker-actions.d.ts +0 -40
  600. package/datepicker/datepicker-animations.d.ts +0 -16
  601. package/datepicker/datepicker-base.d.ts +0 -272
  602. package/datepicker/datepicker-errors.d.ts +0 -9
  603. package/datepicker/datepicker-input-base.d.ts +0 -136
  604. package/datepicker/datepicker-input.d.ts +0 -67
  605. package/datepicker/datepicker-intl.d.ts +0 -36
  606. package/datepicker/datepicker-module.d.ts +0 -26
  607. package/datepicker/datepicker-toggle.d.ts +0 -47
  608. package/datepicker/datepicker.d.ts +0 -7
  609. package/datepicker/datepicker_public_index.d.ts +0 -4
  610. package/datepicker/month-view.d.ts +0 -139
  611. package/datepicker/multi-year-view.d.ts +0 -103
  612. package/datepicker/package.json +0 -9
  613. package/datepicker/public-api.d.ts +0 -26
  614. package/datepicker/testing/calendar-cell-harness.d.ts +0 -64
  615. package/datepicker/testing/calendar-harness.d.ts +0 -53
  616. package/datepicker/testing/date-range-input-harness.d.ts +0 -59
  617. package/datepicker/testing/datepicker-harness-filters.d.ts +0 -45
  618. package/datepicker/testing/datepicker-input-harness-base.d.ts +0 -44
  619. package/datepicker/testing/datepicker-input-harness.d.ts +0 -36
  620. package/datepicker/testing/datepicker-toggle-harness.d.ts +0 -28
  621. package/datepicker/testing/datepicker-trigger-harness-base.d.ts +0 -44
  622. package/datepicker/testing/package.json +0 -9
  623. package/datepicker/testing/public-api.d.ts +0 -13
  624. package/datepicker/year-view.d.ts +0 -114
  625. package/dialog/dialog-animations.d.ts +0 -25
  626. package/dialog/dialog-config.d.ts +0 -100
  627. package/dialog/dialog-container.d.ts +0 -133
  628. package/dialog/dialog-content-directives.d.ts +0 -76
  629. package/dialog/dialog-module.d.ts +0 -11
  630. package/dialog/dialog-ref.d.ts +0 -101
  631. package/dialog/dialog.d.ts +0 -154
  632. package/dialog/dialog_public_index.d.ts +0 -4
  633. package/dialog/package.json +0 -9
  634. package/dialog/public-api.d.ts +0 -14
  635. package/dialog/testing/dialog-harness-filters.d.ts +0 -11
  636. package/dialog/testing/dialog-harness.d.ts +0 -58
  637. package/dialog/testing/dialog-opener.d.ts +0 -33
  638. package/dialog/testing/package.json +0 -9
  639. package/dialog/testing/public-api.d.ts +0 -10
  640. package/divider/divider-module.d.ts +0 -8
  641. package/divider/divider.d.ts +0 -14
  642. package/divider/divider_public_index.d.ts +0 -4
  643. package/divider/package.json +0 -9
  644. package/divider/public-api.d.ts +0 -9
  645. package/divider/testing/divider-harness-filters.d.ts +0 -10
  646. package/divider/testing/divider-harness.d.ts +0 -16
  647. package/divider/testing/package.json +0 -9
  648. package/divider/testing/public-api.d.ts +0 -9
  649. package/expansion/accordion-base.d.ts +0 -34
  650. package/expansion/accordion.d.ts +0 -45
  651. package/expansion/expansion-animations.d.ts +0 -36
  652. package/expansion/expansion-module.d.ts +0 -14
  653. package/expansion/expansion-panel-base.d.ts +0 -22
  654. package/expansion/expansion-panel-content.d.ts +0 -21
  655. package/expansion/expansion-panel-header.d.ts +0 -83
  656. package/expansion/expansion-panel.d.ts +0 -96
  657. package/expansion/expansion_public_index.d.ts +0 -4
  658. package/expansion/package.json +0 -9
  659. package/expansion/public-api.d.ts +0 -15
  660. package/expansion/testing/accordion-harness.d.ts +0 -25
  661. package/expansion/testing/expansion-harness-filters.d.ts +0 -17
  662. package/expansion/testing/expansion-harness.d.ts +0 -79
  663. package/expansion/testing/package.json +0 -9
  664. package/expansion/testing/public-api.d.ts +0 -10
  665. package/form-field/error.d.ts +0 -22
  666. package/form-field/form-field-animations.d.ts +0 -15
  667. package/form-field/form-field-control.d.ts +0 -60
  668. package/form-field/form-field-errors.d.ts +0 -13
  669. package/form-field/form-field-module.d.ts +0 -16
  670. package/form-field/form-field.d.ts +0 -186
  671. package/form-field/form-field_public_index.d.ts +0 -4
  672. package/form-field/hint.d.ts +0 -27
  673. package/form-field/label.d.ts +0 -6
  674. package/form-field/package.json +0 -9
  675. package/form-field/placeholder.d.ts +0 -11
  676. package/form-field/prefix.d.ts +0 -20
  677. package/form-field/public-api.d.ts +0 -18
  678. package/form-field/suffix.d.ts +0 -20
  679. package/form-field/testing/control/form-field-control-harness.d.ts +0 -14
  680. package/form-field/testing/control/package.json +0 -9
  681. package/form-field/testing/form-field-harness-filters.d.ts +0 -15
  682. package/form-field/testing/form-field-harness.d.ts +0 -114
  683. package/form-field/testing/package.json +0 -9
  684. package/form-field/testing/public-api.d.ts +0 -10
  685. package/grid-list/grid-list-base.d.ts +0 -22
  686. package/grid-list/grid-list-module.d.ts +0 -9
  687. package/grid-list/grid-list.d.ts +0 -63
  688. package/grid-list/grid-list_public_index.d.ts +0 -4
  689. package/grid-list/grid-tile.d.ts +0 -64
  690. package/grid-list/package.json +0 -9
  691. package/grid-list/public-api.d.ts +0 -12
  692. package/grid-list/testing/grid-list-harness-filters.d.ts +0 -18
  693. package/grid-list/testing/grid-list-harness.d.ts +0 -41
  694. package/grid-list/testing/grid-tile-harness.d.ts +0 -43
  695. package/grid-list/testing/package.json +0 -9
  696. package/grid-list/testing/public-api.d.ts +0 -10
  697. package/grid-list/tile-coordinator.d.ts +0 -79
  698. package/grid-list/tile-styler.d.ts +0 -134
  699. package/icon/fake-svgs.d.ts +0 -23
  700. package/icon/icon-module.d.ts +0 -8
  701. package/icon/icon-registry.d.ts +0 -262
  702. package/icon/icon.d.ts +0 -147
  703. package/icon/icon_public_index.d.ts +0 -4
  704. package/icon/package.json +0 -9
  705. package/icon/public-api.d.ts +0 -10
  706. package/icon/testing/fake-icon-registry.d.ts +0 -46
  707. package/icon/testing/icon-harness-filters.d.ts +0 -22
  708. package/icon/testing/icon-harness.d.ts +0 -29
  709. package/icon/testing/package.json +0 -9
  710. package/icon/testing/public-api.d.ts +0 -10
  711. package/icon/testing/testing_public_index.d.ts +0 -4
  712. package/icon/trusted-types.d.ts +0 -37
  713. package/input/input-errors.d.ts +0 -9
  714. package/input/input-module.d.ts +0 -10
  715. package/input/input-value-accessor.d.ts +0 -17
  716. package/input/input.d.ts +0 -173
  717. package/input/input_public_index.d.ts +0 -4
  718. package/input/package.json +0 -9
  719. package/input/public-api.d.ts +0 -11
  720. package/input/testing/input-harness-filters.d.ts +0 -15
  721. package/input/testing/input-harness.d.ts +0 -57
  722. package/input/testing/native-option-harness.d.ts +0 -29
  723. package/input/testing/native-select-harness-filters.d.ts +0 -17
  724. package/input/testing/native-select-harness.d.ts +0 -45
  725. package/input/testing/package.json +0 -9
  726. package/input/testing/public-api.d.ts +0 -12
  727. package/list/list-module.d.ts +0 -11
  728. package/list/list.d.ts +0 -99
  729. package/list/list_public_index.d.ts +0 -4
  730. package/list/package.json +0 -9
  731. package/list/public-api.d.ts +0 -10
  732. package/list/selection-list.d.ts +0 -226
  733. package/list/testing/action-list-harness.d.ts +0 -44
  734. package/list/testing/list-harness-base.d.ts +0 -100
  735. package/list/testing/list-harness-filters.d.ts +0 -32
  736. package/list/testing/list-harness.d.ts +0 -36
  737. package/list/testing/list-item-harness-base.d.ts +0 -48
  738. package/list/testing/nav-list-harness.d.ts +0 -46
  739. package/list/testing/package.json +0 -9
  740. package/list/testing/public-api.d.ts +0 -13
  741. package/list/testing/selection-list-harness.d.ts +0 -74
  742. package/menu/menu-animations.d.ts +0 -30
  743. package/menu/menu-content.d.ts +0 -47
  744. package/menu/menu-errors.d.ts +0 -25
  745. package/menu/menu-item.d.ts +0 -61
  746. package/menu/menu-module.d.ts +0 -14
  747. package/menu/menu-panel.d.ts +0 -49
  748. package/menu/menu-positions.d.ts +0 -9
  749. package/menu/menu-trigger.d.ts +0 -180
  750. package/menu/menu.d.ts +0 -207
  751. package/menu/menu_public_index.d.ts +0 -4
  752. package/menu/package.json +0 -9
  753. package/menu/public-api.d.ts +0 -15
  754. package/menu/testing/menu-harness-filters.d.ts +0 -20
  755. package/menu/testing/menu-harness.d.ts +0 -98
  756. package/menu/testing/package.json +0 -9
  757. package/menu/testing/public-api.d.ts +0 -9
  758. package/paginator/package.json +0 -9
  759. package/paginator/paginator-intl.d.ts +0 -43
  760. package/paginator/paginator-module.d.ts +0 -12
  761. package/paginator/paginator.d.ts +0 -157
  762. package/paginator/paginator_public_index.d.ts +0 -4
  763. package/paginator/public-api.d.ts +0 -10
  764. package/paginator/testing/package.json +0 -9
  765. package/paginator/testing/paginator-harness-filters.d.ts +0 -11
  766. package/paginator/testing/paginator-harness.d.ts +0 -58
  767. package/paginator/testing/public-api.d.ts +0 -9
  768. package/progress-bar/package.json +0 -9
  769. package/progress-bar/progress-bar-module.d.ts +0 -9
  770. package/progress-bar/progress-bar.d.ts +0 -116
  771. package/progress-bar/progress-bar_public_index.d.ts +0 -4
  772. package/progress-bar/public-api.d.ts +0 -9
  773. package/progress-bar/testing/package.json +0 -9
  774. package/progress-bar/testing/progress-bar-harness-filters.d.ts +0 -11
  775. package/progress-bar/testing/progress-bar-harness.d.ts +0 -25
  776. package/progress-bar/testing/public-api.d.ts +0 -9
  777. package/progress-spinner/package.json +0 -9
  778. package/progress-spinner/progress-spinner-module.d.ts +0 -9
  779. package/progress-spinner/progress-spinner.d.ts +0 -107
  780. package/progress-spinner/progress-spinner_public_index.d.ts +0 -4
  781. package/progress-spinner/public-api.d.ts +0 -16
  782. package/progress-spinner/testing/package.json +0 -9
  783. package/progress-spinner/testing/progress-spinner-harness-filters.d.ts +0 -11
  784. package/progress-spinner/testing/progress-spinner-harness.d.ts +0 -26
  785. package/progress-spinner/testing/public-api.d.ts +0 -9
  786. package/radio/package.json +0 -9
  787. package/radio/public-api.d.ts +0 -9
  788. package/radio/radio-module.d.ts +0 -8
  789. package/radio/radio.d.ts +0 -260
  790. package/radio/radio_public_index.d.ts +0 -4
  791. package/radio/testing/package.json +0 -9
  792. package/radio/testing/public-api.d.ts +0 -9
  793. package/radio/testing/radio-harness-filters.d.ts +0 -20
  794. package/radio/testing/radio-harness.d.ts +0 -111
  795. package/select/package.json +0 -9
  796. package/select/public-api.d.ts +0 -10
  797. package/select/select-animations.d.ts +0 -19
  798. package/select/select-errors.d.ts +0 -26
  799. package/select/select-module.d.ts +0 -12
  800. package/select/select.d.ts +0 -450
  801. package/select/select_public_index.d.ts +0 -4
  802. package/select/testing/package.json +0 -9
  803. package/select/testing/public-api.d.ts +0 -9
  804. package/select/testing/select-harness-filters.d.ts +0 -11
  805. package/select/testing/select-harness.d.ts +0 -73
  806. package/sidenav/drawer-animations.d.ts +0 -15
  807. package/sidenav/drawer.d.ts +0 -299
  808. package/sidenav/package.json +0 -9
  809. package/sidenav/public-api.d.ts +0 -11
  810. package/sidenav/sidenav-module.d.ts +0 -11
  811. package/sidenav/sidenav.d.ts +0 -45
  812. package/sidenav/sidenav_public_index.d.ts +0 -4
  813. package/sidenav/testing/drawer-container-harness.d.ts +0 -30
  814. package/sidenav/testing/drawer-content-harness.d.ts +0 -21
  815. package/sidenav/testing/drawer-harness-filters.d.ts +0 -19
  816. package/sidenav/testing/drawer-harness.d.ts +0 -33
  817. package/sidenav/testing/package.json +0 -9
  818. package/sidenav/testing/public-api.d.ts +0 -14
  819. package/sidenav/testing/sidenav-container-harness.d.ts +0 -30
  820. package/sidenav/testing/sidenav-content-harness.d.ts +0 -21
  821. package/sidenav/testing/sidenav-harness.d.ts +0 -24
  822. package/slide-toggle/package.json +0 -9
  823. package/slide-toggle/public-api.d.ts +0 -11
  824. package/slide-toggle/slide-toggle-config.d.ts +0 -18
  825. package/slide-toggle/slide-toggle-module.d.ts +0 -16
  826. package/slide-toggle/slide-toggle-required-validator.d.ts +0 -23
  827. package/slide-toggle/slide-toggle.d.ts +0 -109
  828. package/slide-toggle/slide-toggle_public_index.d.ts +0 -4
  829. package/slide-toggle/testing/package.json +0 -9
  830. package/slide-toggle/testing/public-api.d.ts +0 -9
  831. package/slide-toggle/testing/slide-toggle-harness-filters.d.ts +0 -15
  832. package/slide-toggle/testing/slide-toggle-harness.d.ts +0 -65
  833. package/slider/package.json +0 -9
  834. package/slider/public-api.d.ts +0 -9
  835. package/slider/slider-module.d.ts +0 -9
  836. package/slider/slider.d.ts +0 -267
  837. package/slider/slider_public_index.d.ts +0 -4
  838. package/slider/testing/package.json +0 -9
  839. package/slider/testing/public-api.d.ts +0 -9
  840. package/slider/testing/slider-harness-filters.d.ts +0 -11
  841. package/slider/testing/slider-harness.d.ts +0 -59
  842. package/snack-bar/package.json +0 -9
  843. package/snack-bar/public-api.d.ts +0 -14
  844. package/snack-bar/simple-snack-bar.d.ts +0 -33
  845. package/snack-bar/snack-bar-animations.d.ts +0 -15
  846. package/snack-bar/snack-bar-config.d.ts +0 -45
  847. package/snack-bar/snack-bar-container.d.ts +0 -101
  848. package/snack-bar/snack-bar-module.d.ts +0 -13
  849. package/snack-bar/snack-bar-ref.d.ts +0 -64
  850. package/snack-bar/snack-bar.d.ts +0 -107
  851. package/snack-bar/snack-bar_public_index.d.ts +0 -4
  852. package/snack-bar/testing/package.json +0 -9
  853. package/snack-bar/testing/public-api.d.ts +0 -9
  854. package/snack-bar/testing/snack-bar-harness-filters.d.ts +0 -11
  855. package/snack-bar/testing/snack-bar-harness.d.ts +0 -71
  856. package/sort/package.json +0 -9
  857. package/sort/public-api.d.ts +0 -13
  858. package/sort/sort-animations.d.ts +0 -20
  859. package/sort/sort-direction.d.ts +0 -8
  860. package/sort/sort-errors.d.ts +0 -15
  861. package/sort/sort-header-intl.d.ts +0 -31
  862. package/sort/sort-header.d.ts +0 -166
  863. package/sort/sort-module.d.ts +0 -10
  864. package/sort/sort.d.ts +0 -93
  865. package/sort/sort_public_index.d.ts +0 -4
  866. package/sort/testing/package.json +0 -9
  867. package/sort/testing/public-api.d.ts +0 -10
  868. package/sort/testing/sort-harness-filters.d.ts +0 -15
  869. package/sort/testing/sort-harness.d.ts +0 -24
  870. package/sort/testing/sort-header-harness.d.ts +0 -30
  871. package/stepper/package.json +0 -9
  872. package/stepper/public-api.d.ts +0 -17
  873. package/stepper/step-content.d.ts +0 -18
  874. package/stepper/step-header.d.ts +0 -66
  875. package/stepper/step-label.d.ts +0 -6
  876. package/stepper/stepper-animations.d.ts +0 -18
  877. package/stepper/stepper-button.d.ts +0 -19
  878. package/stepper/stepper-icon.d.ts +0 -30
  879. package/stepper/stepper-intl.d.ts +0 -34
  880. package/stepper/stepper-module.d.ts +0 -18
  881. package/stepper/stepper.d.ts +0 -80
  882. package/stepper/stepper_public_index.d.ts +0 -4
  883. package/stepper/testing/package.json +0 -9
  884. package/stepper/testing/public-api.d.ts +0 -11
  885. package/stepper/testing/step-harness-filters.d.ts +0 -37
  886. package/stepper/testing/step-harness.d.ts +0 -52
  887. package/stepper/testing/stepper-button-harnesses.d.ts +0 -41
  888. package/stepper/testing/stepper-harness.d.ts +0 -35
  889. package/table/cell.d.ts +0 -59
  890. package/table/package.json +0 -9
  891. package/table/public-api.d.ts +0 -13
  892. package/table/row.d.ts +0 -55
  893. package/table/table-data-source.d.ts +0 -169
  894. package/table/table-module.d.ts +0 -12
  895. package/table/table.d.ts +0 -28
  896. package/table/table_public_index.d.ts +0 -4
  897. package/table/testing/cell-harness.d.ts +0 -49
  898. package/table/testing/package.json +0 -9
  899. package/table/testing/public-api.d.ts +0 -11
  900. package/table/testing/row-harness.d.ts +0 -66
  901. package/table/testing/table-harness-filters.d.ts +0 -21
  902. package/table/testing/table-harness.d.ts +0 -58
  903. package/table/text-column.d.ts +0 -22
  904. package/tabs/ink-bar.d.ts +0 -49
  905. package/tabs/package.json +0 -9
  906. package/tabs/paginated-tab-header.d.ts +0 -196
  907. package/tabs/public-api.d.ts +0 -20
  908. package/tabs/tab-body.d.ts +0 -116
  909. package/tabs/tab-config.d.ts +0 -35
  910. package/tabs/tab-content.d.ts +0 -22
  911. package/tabs/tab-group.d.ts +0 -181
  912. package/tabs/tab-header.d.ts +0 -49
  913. package/tabs/tab-label-wrapper.d.ts +0 -29
  914. package/tabs/tab-label.d.ts +0 -28
  915. package/tabs/tab-nav-bar/index.d.ts +0 -8
  916. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +0 -134
  917. package/tabs/tab.d.ts +0 -89
  918. package/tabs/tabs-animations.d.ts +0 -15
  919. package/tabs/tabs-module.d.ts +0 -20
  920. package/tabs/tabs_public_index.d.ts +0 -4
  921. package/tabs/testing/package.json +0 -9
  922. package/tabs/testing/public-api.d.ts +0 -12
  923. package/tabs/testing/tab-group-harness.d.ts +0 -35
  924. package/tabs/testing/tab-harness-filters.d.ts +0 -29
  925. package/tabs/testing/tab-harness.d.ts +0 -38
  926. package/tabs/testing/tab-link-harness.d.ts +0 -29
  927. package/tabs/testing/tab-nav-bar-harness.d.ts +0 -38
  928. package/tabs/testing/tab-nav-panel-harness.d.ts +0 -23
  929. package/toolbar/package.json +0 -9
  930. package/toolbar/public-api.d.ts +0 -9
  931. package/toolbar/testing/package.json +0 -9
  932. package/toolbar/testing/public-api.d.ts +0 -9
  933. package/toolbar/testing/toolbar-harness-filters.d.ts +0 -13
  934. package/toolbar/testing/toolbar-harness.d.ts +0 -31
  935. package/toolbar/toolbar-module.d.ts +0 -8
  936. package/toolbar/toolbar.d.ts +0 -41
  937. package/toolbar/toolbar_public_index.d.ts +0 -4
  938. package/tooltip/package.json +0 -9
  939. package/tooltip/public-api.d.ts +0 -10
  940. package/tooltip/testing/package.json +0 -9
  941. package/tooltip/testing/public-api.d.ts +0 -9
  942. package/tooltip/testing/tooltip-harness-filters.d.ts +0 -11
  943. package/tooltip/testing/tooltip-harness.d.ts +0 -38
  944. package/tooltip/tooltip-animations.d.ts +0 -15
  945. package/tooltip/tooltip-module.d.ts +0 -12
  946. package/tooltip/tooltip.d.ts +0 -299
  947. package/tooltip/tooltip_public_index.d.ts +0 -4
  948. package/tree/data-source/flat-data-source.d.ts +0 -83
  949. package/tree/data-source/nested-data-source.d.ts +0 -25
  950. package/tree/node.d.ts +0 -53
  951. package/tree/outlet.d.ts +0 -21
  952. package/tree/package.json +0 -9
  953. package/tree/padding.d.ts +0 -23
  954. package/tree/public-api.d.ts +0 -15
  955. package/tree/testing/node-harness.d.ts +0 -35
  956. package/tree/testing/package.json +0 -9
  957. package/tree/testing/public-api.d.ts +0 -10
  958. package/tree/testing/tree-harness-filters.d.ts +0 -22
  959. package/tree/testing/tree-harness.d.ts +0 -79
  960. package/tree/toggle.d.ts +0 -16
  961. package/tree/tree-module.d.ts +0 -13
  962. package/tree/tree.d.ts +0 -18
  963. package/tree/tree_public_index.d.ts +0 -4
@@ -1,15 +1,14 @@
1
+ import { CdkDialogContainer, Dialog, DialogConfig, DialogModule } from '@angular/cdk/dialog';
1
2
  import * as i1$1 from '@angular/cdk/overlay';
2
- import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
3
- import * as i3 from '@angular/cdk/portal';
4
- import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
3
+ import { Overlay, OverlayModule } from '@angular/cdk/overlay';
4
+ import * as i4 from '@angular/cdk/portal';
5
+ import { PortalModule } from '@angular/cdk/portal';
5
6
  import * as i0 from '@angular/core';
6
- import { EventEmitter, Directive, Optional, Inject, ViewChild, Component, ViewEncapsulation, ChangeDetectionStrategy, InjectionToken, Injector, TemplateRef, InjectFlags, Injectable, SkipSelf, Input, NgModule } from '@angular/core';
7
+ import { EventEmitter, Component, Optional, Inject, ViewEncapsulation, ChangeDetectionStrategy, InjectionToken, Injectable, SkipSelf, Directive, Input, NgModule } from '@angular/core';
7
8
  import { MatCommonModule } from '@angular/material/core';
8
- import { Directionality } from '@angular/cdk/bidi';
9
- import { Subject, defer, of } from 'rxjs';
9
+ import { Subject, merge, defer } from 'rxjs';
10
10
  import { filter, take, startWith } from 'rxjs/operators';
11
11
  import { trigger, state, style, transition, group, animate, query, animateChild } from '@angular/animations';
12
- import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
13
12
  import * as i2 from '@angular/common';
14
13
  import { DOCUMENT } from '@angular/common';
15
14
  import * as i1 from '@angular/cdk/a11y';
@@ -116,237 +115,64 @@ class MatDialogConfig {
116
115
  }
117
116
  }
118
117
 
119
- /**
120
- * Throws an exception for the case when a ComponentPortal is
121
- * attached to a DomPortalOutlet without an origin.
122
- * @docs-private
123
- */
124
- function throwMatDialogContentAlreadyAttachedError() {
125
- throw Error('Attempting to attach dialog content after content is already attached');
126
- }
127
118
  /**
128
119
  * Base class for the `MatDialogContainer`. The base class does not implement
129
120
  * animations as these are left to implementers of the dialog container.
130
121
  */
131
- class _MatDialogContainerBase extends BasePortalOutlet {
132
- constructor(_elementRef, _focusTrapFactory, _changeDetectorRef, _document,
133
- /** The dialog configuration. */
134
- _config, _interactivityChecker, _ngZone, _focusMonitor) {
135
- super();
136
- this._elementRef = _elementRef;
137
- this._focusTrapFactory = _focusTrapFactory;
138
- this._changeDetectorRef = _changeDetectorRef;
139
- this._config = _config;
140
- this._interactivityChecker = _interactivityChecker;
141
- this._ngZone = _ngZone;
142
- this._focusMonitor = _focusMonitor;
122
+ // tslint:disable-next-line:validate-decorators
123
+ class _MatDialogContainerBase extends CdkDialogContainer {
124
+ constructor(elementRef, focusTrapFactory, _document, dialogConfig, interactivityChecker, ngZone, overlayRef, focusMonitor) {
125
+ super(elementRef, focusTrapFactory, _document, dialogConfig, interactivityChecker, ngZone, overlayRef, focusMonitor);
143
126
  /** Emits when an animation state changes. */
144
127
  this._animationStateChanged = new EventEmitter();
145
- /** Element that was focused before the dialog was opened. Save this to restore upon close. */
146
- this._elementFocusedBeforeDialogWasOpened = null;
147
- /**
148
- * Type of interaction that led to the dialog being closed. This is used to determine
149
- * whether the focus style will be applied when returning focus to its original location
150
- * after the dialog is closed.
151
- */
152
- this._closeInteractionType = null;
153
- /**
154
- * Attaches a DOM portal to the dialog container.
155
- * @param portal Portal to be attached.
156
- * @deprecated To be turned into a method.
157
- * @breaking-change 10.0.0
158
- */
159
- this.attachDomPortal = (portal) => {
160
- if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {
161
- throwMatDialogContentAlreadyAttachedError();
162
- }
163
- return this._portalOutlet.attachDomPortal(portal);
164
- };
165
- this._ariaLabelledBy = _config.ariaLabelledBy || null;
166
- this._document = _document;
167
- }
168
- /** Initializes the dialog container with the attached content. */
169
- _initializeWithAttachedContent() {
170
- this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);
171
- // Save the previously focused element. This element will be re-focused
172
- // when the dialog closes.
173
- if (this._document) {
174
- this._elementFocusedBeforeDialogWasOpened = _getFocusedElementPierceShadowDom();
175
- }
176
- }
177
- /**
178
- * Attach a ComponentPortal as content to this dialog container.
179
- * @param portal Portal to be attached as the dialog content.
180
- */
181
- attachComponentPortal(portal) {
182
- if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {
183
- throwMatDialogContentAlreadyAttachedError();
184
- }
185
- return this._portalOutlet.attachComponentPortal(portal);
186
- }
187
- /**
188
- * Attach a TemplatePortal as content to this dialog container.
189
- * @param portal Portal to be attached as the dialog content.
190
- */
191
- attachTemplatePortal(portal) {
192
- if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {
193
- throwMatDialogContentAlreadyAttachedError();
194
- }
195
- return this._portalOutlet.attachTemplatePortal(portal);
196
128
  }
197
- /** Moves focus back into the dialog if it was moved out. */
198
- _recaptureFocus() {
199
- if (!this._containsFocus()) {
129
+ _captureInitialFocus() {
130
+ if (!this._config.delayFocusTrap) {
200
131
  this._trapFocus();
201
132
  }
202
133
  }
203
134
  /**
204
- * Focuses the provided element. If the element is not focusable, it will add a tabIndex
205
- * attribute to forcefully focus it. The attribute is removed after focus is moved.
206
- * @param element The element to focus.
207
- */
208
- _forceFocus(element, options) {
209
- if (!this._interactivityChecker.isFocusable(element)) {
210
- element.tabIndex = -1;
211
- // The tabindex attribute should be removed to avoid navigating to that element again
212
- this._ngZone.runOutsideAngular(() => {
213
- element.addEventListener('blur', () => element.removeAttribute('tabindex'));
214
- element.addEventListener('mousedown', () => element.removeAttribute('tabindex'));
215
- });
216
- }
217
- element.focus(options);
218
- }
219
- /**
220
- * Focuses the first element that matches the given selector within the focus trap.
221
- * @param selector The CSS selector for the element to set focus to.
222
- */
223
- _focusByCssSelector(selector, options) {
224
- let elementToFocus = this._elementRef.nativeElement.querySelector(selector);
225
- if (elementToFocus) {
226
- this._forceFocus(elementToFocus, options);
227
- }
228
- }
229
- /**
230
- * Moves the focus inside the focus trap. When autoFocus is not set to 'dialog', if focus
231
- * cannot be moved then focus will go to the dialog container.
135
+ * Callback for when the open dialog animation has finished. Intended to
136
+ * be called by sub-classes that use different animation implementations.
232
137
  */
233
- _trapFocus() {
234
- const element = this._elementRef.nativeElement;
235
- // If were to attempt to focus immediately, then the content of the dialog would not yet be
236
- // ready in instances where change detection has to run first. To deal with this, we simply
237
- // wait for the microtask queue to be empty when setting focus when autoFocus isn't set to
238
- // dialog. If the element inside the dialog can't be focused, then the container is focused
239
- // so the user can't tab into other elements behind it.
240
- switch (this._config.autoFocus) {
241
- case false:
242
- case 'dialog':
243
- // Ensure that focus is on the dialog container. It's possible that a different
244
- // component tried to move focus while the open animation was running. See:
245
- // https://github.com/angular/components/issues/16215. Note that we only want to do this
246
- // if the focus isn't inside the dialog already, because it's possible that the consumer
247
- // turned off `autoFocus` in order to move focus themselves.
248
- if (!this._containsFocus()) {
249
- element.focus();
250
- }
251
- break;
252
- case true:
253
- case 'first-tabbable':
254
- this._focusTrap.focusInitialElementWhenReady().then(focusedSuccessfully => {
255
- // If we weren't able to find a focusable element in the dialog, then focus the dialog
256
- // container instead.
257
- if (!focusedSuccessfully) {
258
- this._focusDialogContainer();
259
- }
260
- });
261
- break;
262
- case 'first-heading':
263
- this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');
264
- break;
265
- default:
266
- this._focusByCssSelector(this._config.autoFocus);
267
- break;
268
- }
269
- }
270
- /** Restores focus to the element that was focused before the dialog opened. */
271
- _restoreFocus() {
272
- const previousElement = this._elementFocusedBeforeDialogWasOpened;
273
- // We need the extra check, because IE can set the `activeElement` to null in some cases.
274
- if (this._config.restoreFocus &&
275
- previousElement &&
276
- typeof previousElement.focus === 'function') {
277
- const activeElement = _getFocusedElementPierceShadowDom();
278
- const element = this._elementRef.nativeElement;
279
- // Make sure that focus is still inside the dialog or is on the body (usually because a
280
- // non-focusable element like the backdrop was clicked) before moving it. It's possible that
281
- // the consumer moved it themselves before the animation was done, in which case we shouldn't
282
- // do anything.
283
- if (!activeElement ||
284
- activeElement === this._document.body ||
285
- activeElement === element ||
286
- element.contains(activeElement)) {
287
- if (this._focusMonitor) {
288
- this._focusMonitor.focusVia(previousElement, this._closeInteractionType);
289
- this._closeInteractionType = null;
290
- }
291
- else {
292
- previousElement.focus();
293
- }
294
- }
295
- }
296
- if (this._focusTrap) {
297
- this._focusTrap.destroy();
298
- }
299
- }
300
- /** Focuses the dialog container. */
301
- _focusDialogContainer() {
302
- // Note that there is no focus method when rendering on the server.
303
- if (this._elementRef.nativeElement.focus) {
304
- this._elementRef.nativeElement.focus();
138
+ _openAnimationDone(totalTime) {
139
+ if (this._config.delayFocusTrap) {
140
+ this._trapFocus();
305
141
  }
306
- }
307
- /** Returns whether focus is inside the dialog. */
308
- _containsFocus() {
309
- const element = this._elementRef.nativeElement;
310
- const activeElement = _getFocusedElementPierceShadowDom();
311
- return element === activeElement || element.contains(activeElement);
142
+ this._animationStateChanged.next({ state: 'opened', totalTime });
312
143
  }
313
144
  }
314
- _MatDialogContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", 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 });
315
- _MatDialogContainerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.6", type: _MatDialogContainerBase, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0 });
316
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: _MatDialogContainerBase, decorators: [{
317
- type: Directive
145
+ _MatDialogContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: _MatDialogContainerBase, deps: [{ token: i0.ElementRef }, { token: i1.FocusTrapFactory }, { token: DOCUMENT, optional: true }, { token: MatDialogConfig }, { token: i1.InteractivityChecker }, { token: i0.NgZone }, { token: i1$1.OverlayRef }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component });
146
+ _MatDialogContainerBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0-next.16", type: _MatDialogContainerBase, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: _MatDialogContainerBase, decorators: [{
148
+ type: Component,
149
+ args: [{ template: '' }]
318
150
  }], ctorParameters: function () {
319
- return [{ type: i0.ElementRef }, { type: i1.FocusTrapFactory }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
151
+ return [{ type: i0.ElementRef }, { type: i1.FocusTrapFactory }, { type: undefined, decorators: [{
320
152
  type: Optional
321
153
  }, {
322
154
  type: Inject,
323
155
  args: [DOCUMENT]
324
- }] }, { type: MatDialogConfig }, { type: i1.InteractivityChecker }, { type: i0.NgZone }, { type: i1.FocusMonitor }];
325
- }, propDecorators: { _portalOutlet: [{
326
- type: ViewChild,
327
- args: [CdkPortalOutlet, { static: true }]
328
- }] } });
156
+ }] }, { type: MatDialogConfig }, { type: i1.InteractivityChecker }, { type: i0.NgZone }, { type: i1$1.OverlayRef }, { type: i1.FocusMonitor }];
157
+ } });
329
158
  /**
330
159
  * Internal component that wraps user-provided dialog content.
331
160
  * Animation is based on https://material.io/guidelines/motion/choreography.html.
332
161
  * @docs-private
333
162
  */
334
163
  class MatDialogContainer extends _MatDialogContainerBase {
335
- constructor() {
336
- super(...arguments);
164
+ constructor(elementRef, focusTrapFactory, document, dialogConfig, checker, ngZone, overlayRef, _changeDetectorRef, focusMonitor) {
165
+ super(elementRef, focusTrapFactory, document, dialogConfig, checker, ngZone, overlayRef, focusMonitor);
166
+ this._changeDetectorRef = _changeDetectorRef;
337
167
  /** State of the dialog animation. */
338
168
  this._state = 'enter';
339
169
  }
340
170
  /** Callback, invoked whenever an animation on the host completes. */
341
171
  _onAnimationDone({ toState, totalTime }) {
342
172
  if (toState === 'enter') {
343
- if (this._config.delayFocusTrap) {
344
- this._trapFocus();
345
- }
346
- this._animationStateChanged.next({ state: 'opened', totalTime });
173
+ this._openAnimationDone(totalTime);
347
174
  }
348
175
  else if (toState === 'exit') {
349
- this._restoreFocus();
350
176
  this._animationStateChanged.next({ state: 'closed', totalTime });
351
177
  }
352
178
  }
@@ -366,12 +192,6 @@ class MatDialogContainer extends _MatDialogContainerBase {
366
192
  // view container is using OnPush change detection.
367
193
  this._changeDetectorRef.markForCheck();
368
194
  }
369
- _initializeWithAttachedContent() {
370
- super._initializeWithAttachedContent();
371
- if (!this._config.delayFocusTrap) {
372
- this._trapFocus();
373
- }
374
- }
375
195
  _getAnimationState() {
376
196
  return {
377
197
  value: this._state,
@@ -382,15 +202,15 @@ class MatDialogContainer extends _MatDialogContainerBase {
382
202
  };
383
203
  }
384
204
  }
385
- MatDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogContainer, deps: null, target: i0.ɵɵFactoryTarget.Component });
386
- MatDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "14.0.0-next.6", 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}\n"], directives: [{ type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [matDialogAnimations.dialogContainer], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
387
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogContainer, decorators: [{
205
+ MatDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogContainer, deps: [{ token: i0.ElementRef }, { token: i1.FocusTrapFactory }, { token: DOCUMENT, optional: true }, { token: MatDialogConfig }, { token: i1.InteractivityChecker }, { token: i0.NgZone }, { token: i1$1.OverlayRef }, { token: i0.ChangeDetectorRef }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component });
206
+ MatDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0-next.16", type: MatDialogContainer, selector: "mat-dialog-container", host: { attributes: { "tabindex": "-1" }, listeners: { "@dialogContainer.start": "_onAnimationStart($event)", "@dialogContainer.done": "_onAnimationDone($event)" }, properties: { "attr.aria-modal": "_config.ariaModal", "id": "_config.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}"], dependencies: [{ kind: "directive", type: i4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [matDialogAnimations.dialogContainer], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogContainer, decorators: [{
388
208
  type: Component,
389
209
  args: [{ selector: 'mat-dialog-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [matDialogAnimations.dialogContainer], host: {
390
210
  'class': 'mat-dialog-container',
391
211
  'tabindex': '-1',
392
- 'aria-modal': 'true',
393
- '[id]': '_id',
212
+ '[attr.aria-modal]': '_config.ariaModal',
213
+ '[id]': '_config.id',
394
214
  '[attr.role]': '_config.role',
395
215
  '[attr.aria-labelledby]': '_config.ariaLabel ? null : _ariaLabelledBy',
396
216
  '[attr.aria-label]': '_config.ariaLabel',
@@ -398,8 +218,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6",
398
218
  '[@dialogContainer]': `_getAnimationState()`,
399
219
  '(@dialogContainer.start)': '_onAnimationStart($event)',
400
220
  '(@dialogContainer.done)': '_onAnimationDone($event)',
401
- }, 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"] }]
402
- }] });
221
+ }, 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}"] }]
222
+ }], ctorParameters: function () {
223
+ return [{ type: i0.ElementRef }, { type: i1.FocusTrapFactory }, { type: undefined, decorators: [{
224
+ type: Optional
225
+ }, {
226
+ type: Inject,
227
+ args: [DOCUMENT]
228
+ }] }, { type: MatDialogConfig }, { type: i1.InteractivityChecker }, { type: i0.NgZone }, { type: i1$1.OverlayRef }, { type: i0.ChangeDetectorRef }, { type: i1.FocusMonitor }];
229
+ } });
403
230
 
404
231
  /**
405
232
  * @license
@@ -408,31 +235,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6",
408
235
  * Use of this source code is governed by an MIT-style license that can be
409
236
  * found in the LICENSE file at https://angular.io/license
410
237
  */
411
- // TODO(jelbourn): resizing
412
- // Counter for unique dialog ids.
413
- let uniqueId = 0;
414
238
  /**
415
239
  * Reference to a dialog opened via the MatDialog service.
416
240
  */
417
241
  class MatDialogRef {
418
- constructor(_overlayRef, _containerInstance,
419
- /** Id of the dialog. */
420
- id = `mat-dialog-${uniqueId++}`) {
421
- this._overlayRef = _overlayRef;
242
+ constructor(_ref, config, _containerInstance) {
243
+ this._ref = _ref;
422
244
  this._containerInstance = _containerInstance;
423
- this.id = id;
424
- /** Whether the user is allowed to close the dialog. */
425
- this.disableClose = this._containerInstance._config.disableClose;
426
245
  /** Subject for notifying the user that the dialog has finished opening. */
427
246
  this._afterOpened = new Subject();
428
- /** Subject for notifying the user that the dialog has finished closing. */
429
- this._afterClosed = new Subject();
430
247
  /** Subject for notifying the user that the dialog has started closing. */
431
248
  this._beforeClosed = new Subject();
432
249
  /** Current state of the dialog. */
433
- this._state = 0 /* OPEN */;
434
- // Pass the id along to the container.
435
- _containerInstance._id = id;
250
+ this._state = 0 /* MatDialogState.OPEN */;
251
+ this.disableClose = config.disableClose;
252
+ this.id = _ref.id;
436
253
  // Emit when opening animation completes
437
254
  _containerInstance._animationStateChanged
438
255
  .pipe(filter(event => event.state === 'opened'), take(1))
@@ -447,29 +264,15 @@ class MatDialogRef {
447
264
  clearTimeout(this._closeFallbackTimeout);
448
265
  this._finishDialogClose();
449
266
  });
450
- _overlayRef.detachments().subscribe(() => {
267
+ _ref.overlayRef.detachments().subscribe(() => {
451
268
  this._beforeClosed.next(this._result);
452
269
  this._beforeClosed.complete();
453
- this._afterClosed.next(this._result);
454
- this._afterClosed.complete();
455
- this.componentInstance = null;
456
- this._overlayRef.dispose();
457
- });
458
- _overlayRef
459
- .keydownEvents()
460
- .pipe(filter(event => {
461
- return event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event);
462
- }))
463
- .subscribe(event => {
464
- event.preventDefault();
465
- _closeDialogVia(this, 'keyboard');
270
+ this._finishDialogClose();
466
271
  });
467
- _overlayRef.backdropClick().subscribe(() => {
468
- if (this.disableClose) {
469
- this._containerInstance._recaptureFocus();
470
- }
471
- else {
472
- _closeDialogVia(this, 'mouse');
272
+ merge(this.backdropClick(), this.keydownEvents().pipe(filter(event => event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event)))).subscribe(event => {
273
+ if (!this.disableClose) {
274
+ event.preventDefault();
275
+ _closeDialogVia(this, event.type === 'keydown' ? 'keyboard' : 'mouse');
473
276
  }
474
277
  });
475
278
  }
@@ -485,7 +288,7 @@ class MatDialogRef {
485
288
  .subscribe(event => {
486
289
  this._beforeClosed.next(dialogResult);
487
290
  this._beforeClosed.complete();
488
- this._overlayRef.detachBackdrop();
291
+ this._ref.overlayRef.detachBackdrop();
489
292
  // The logic that disposes of the overlay depends on the exit animation completing, however
490
293
  // it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback
491
294
  // timeout which will clean everything up if the animation hasn't fired within the specified
@@ -493,7 +296,7 @@ class MatDialogRef {
493
296
  // vast majority of cases the timeout will have been cleared before it has the chance to fire.
494
297
  this._closeFallbackTimeout = setTimeout(() => this._finishDialogClose(), event.totalTime + 100);
495
298
  });
496
- this._state = 1 /* CLOSING */;
299
+ this._state = 1 /* MatDialogState.CLOSING */;
497
300
  this._containerInstance._startExitAnimation();
498
301
  }
499
302
  /**
@@ -506,7 +309,7 @@ class MatDialogRef {
506
309
  * Gets an observable that is notified when the dialog is finished closing.
507
310
  */
508
311
  afterClosed() {
509
- return this._afterClosed;
312
+ return this._ref.closed;
510
313
  }
511
314
  /**
512
315
  * Gets an observable that is notified when the dialog has started closing.
@@ -518,20 +321,20 @@ class MatDialogRef {
518
321
  * Gets an observable that emits when the overlay's backdrop has been clicked.
519
322
  */
520
323
  backdropClick() {
521
- return this._overlayRef.backdropClick();
324
+ return this._ref.backdropClick;
522
325
  }
523
326
  /**
524
327
  * Gets an observable that emits when keydown events are targeted on the overlay.
525
328
  */
526
329
  keydownEvents() {
527
- return this._overlayRef.keydownEvents();
330
+ return this._ref.keydownEvents;
528
331
  }
529
332
  /**
530
333
  * Updates the dialog's position.
531
334
  * @param position New dialog position.
532
335
  */
533
336
  updatePosition(position) {
534
- let strategy = this._getPositionStrategy();
337
+ let strategy = this._ref.config.positionStrategy;
535
338
  if (position && (position.left || position.right)) {
536
339
  position.left ? strategy.left(position.left) : strategy.right(position.right);
537
340
  }
@@ -544,7 +347,7 @@ class MatDialogRef {
544
347
  else {
545
348
  strategy.centerVertically();
546
349
  }
547
- this._overlayRef.updatePosition();
350
+ this._ref.updatePosition();
548
351
  return this;
549
352
  }
550
353
  /**
@@ -553,18 +356,17 @@ class MatDialogRef {
553
356
  * @param height New height of the dialog.
554
357
  */
555
358
  updateSize(width = '', height = '') {
556
- this._overlayRef.updateSize({ width, height });
557
- this._overlayRef.updatePosition();
359
+ this._ref.updateSize(width, height);
558
360
  return this;
559
361
  }
560
362
  /** Add a CSS class or an array of classes to the overlay pane. */
561
363
  addPanelClass(classes) {
562
- this._overlayRef.addPanelClass(classes);
364
+ this._ref.addPanelClass(classes);
563
365
  return this;
564
366
  }
565
367
  /** Remove a CSS class or an array of classes from the overlay pane. */
566
368
  removePanelClass(classes) {
567
- this._overlayRef.removePanelClass(classes);
369
+ this._ref.removePanelClass(classes);
568
370
  return this;
569
371
  }
570
372
  /** Gets the current state of the dialog's lifecycle. */
@@ -576,12 +378,9 @@ class MatDialogRef {
576
378
  * and disposing the overlay.
577
379
  */
578
380
  _finishDialogClose() {
579
- this._state = 2 /* CLOSED */;
580
- this._overlayRef.dispose();
581
- }
582
- /** Fetches the position strategy object from the overlay ref. */
583
- _getPositionStrategy() {
584
- return this._overlayRef.getConfig().positionStrategy;
381
+ this._state = 2 /* MatDialogState.CLOSED */;
382
+ this._ref.close(this._result, { focusOrigin: this._closeInteractionType });
383
+ this.componentInstance = null;
585
384
  }
586
385
  }
587
386
  /**
@@ -589,13 +388,9 @@ class MatDialogRef {
589
388
  * `MatDialogRef` as that would conflict with custom dialog ref mocks provided in tests.
590
389
  * More details. See: https://github.com/angular/components/pull/9257#issuecomment-651342226.
591
390
  */
592
- // TODO: TODO: Move this back into `MatDialogRef` when we provide an official mock dialog ref.
391
+ // TODO: Move this back into `MatDialogRef` when we provide an official mock dialog ref.
593
392
  function _closeDialogVia(ref, interactionType, result) {
594
- // Some mock dialog ref instances in tests do not have the `_containerInstance` property.
595
- // For those, we keep the behavior as is and do not deal with the interaction type.
596
- if (ref._containerInstance !== undefined) {
597
- ref._containerInstance._closeInteractionType = interactionType;
598
- }
393
+ ref._closeInteractionType = interactionType;
599
394
  return ref.close(result);
600
395
  }
601
396
 
@@ -626,30 +421,34 @@ const MAT_DIALOG_SCROLL_STRATEGY_PROVIDER = {
626
421
  deps: [Overlay],
627
422
  useFactory: MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY,
628
423
  };
424
+ // Counter for unique dialog ids.
425
+ let uniqueId = 0;
629
426
  /**
630
427
  * Base class for dialog services. The base dialog service allows
631
428
  * for arbitrary dialog refs and dialog container components.
632
429
  */
633
430
  class _MatDialogBase {
634
- constructor(_overlay, _injector, _defaultOptions, _parentDialog, _overlayContainer, scrollStrategy, _dialogRefConstructor, _dialogContainerType, _dialogDataToken,
431
+ constructor(_overlay, injector, _defaultOptions, _parentDialog,
432
+ /**
433
+ * @deprecated No longer used. To be removed.
434
+ * @breaking-change 15.0.0
435
+ */
436
+ _overlayContainer, scrollStrategy, _dialogRefConstructor, _dialogContainerType, _dialogDataToken,
635
437
  /**
636
438
  * @deprecated No longer used. To be removed.
637
439
  * @breaking-change 14.0.0
638
440
  */
639
441
  _animationMode) {
640
442
  this._overlay = _overlay;
641
- this._injector = _injector;
642
443
  this._defaultOptions = _defaultOptions;
643
444
  this._parentDialog = _parentDialog;
644
- this._overlayContainer = _overlayContainer;
645
445
  this._dialogRefConstructor = _dialogRefConstructor;
646
446
  this._dialogContainerType = _dialogContainerType;
647
447
  this._dialogDataToken = _dialogDataToken;
648
448
  this._openDialogsAtThisLevel = [];
649
449
  this._afterAllClosedAtThisLevel = new Subject();
650
450
  this._afterOpenedAtThisLevel = new Subject();
651
- this._ariaHiddenElements = new Map();
652
- // TODO (jelbourn): tighten the typing right-hand side of this expression.
451
+ this._idPrefix = 'mat-dialog-';
653
452
  /**
654
453
  * Stream that emits when all open dialog have finished closing.
655
454
  * Will emit on subscribe if there are no open dialogs to begin with.
@@ -658,6 +457,7 @@ class _MatDialogBase {
658
457
  ? this._getAfterAllClosed()
659
458
  : this._getAfterAllClosed().pipe(startWith(undefined)));
660
459
  this._scrollStrategy = scrollStrategy;
460
+ this._dialog = injector.get(Dialog);
661
461
  }
662
462
  /** Keeps track of the currently-open dialogs. */
663
463
  get openDialogs() {
@@ -672,24 +472,48 @@ class _MatDialogBase {
672
472
  return parent ? parent._getAfterAllClosed() : this._afterAllClosedAtThisLevel;
673
473
  }
674
474
  open(componentOrTemplateRef, config) {
675
- config = _applyConfigDefaults(config, this._defaultOptions || new MatDialogConfig());
676
- if (config.id &&
677
- this.getDialogById(config.id) &&
678
- (typeof ngDevMode === 'undefined' || ngDevMode)) {
679
- throw Error(`Dialog with id "${config.id}" exists already. The dialog id must be unique.`);
680
- }
681
- const overlayRef = this._createOverlay(config);
682
- const dialogContainer = this._attachDialogContainer(overlayRef, config);
683
- const dialogRef = this._attachDialogContent(componentOrTemplateRef, dialogContainer, overlayRef, config);
684
- // If this is the first dialog that we're opening, hide all the non-overlay content.
685
- if (!this.openDialogs.length) {
686
- this._hideNonDialogContentFromAssistiveTechnology();
687
- }
475
+ let dialogRef;
476
+ config = Object.assign(Object.assign({}, (this._defaultOptions || new MatDialogConfig())), config);
477
+ config.id = config.id || `${this._idPrefix}${uniqueId++}`;
478
+ config.scrollStrategy = config.scrollStrategy || this._scrollStrategy();
479
+ const cdkRef = this._dialog.open(componentOrTemplateRef, Object.assign(Object.assign({}, config), { positionStrategy: this._overlay.position().global().centerHorizontally().centerVertically(),
480
+ // Disable closing since we need to sync it up to the animation ourselves.
481
+ disableClose: true,
482
+ // Disable closing on destroy, because this service cleans up its open dialogs as well.
483
+ // We want to do the cleanup here, rather than the CDK service, because the CDK destroys
484
+ // the dialogs immediately whereas we want it to wait for the animations to finish.
485
+ closeOnDestroy: false, container: {
486
+ type: this._dialogContainerType,
487
+ providers: () => [
488
+ // Provide our config as the CDK config as well since it has the same interface as the
489
+ // CDK one, but it contains the actual values passed in by the user for things like
490
+ // `disableClose` which we disable for the CDK dialog since we handle it ourselves.
491
+ { provide: MatDialogConfig, useValue: config },
492
+ { provide: DialogConfig, useValue: config },
493
+ ],
494
+ }, templateContext: () => ({ dialogRef }), providers: (ref, cdkConfig, dialogContainer) => {
495
+ dialogRef = new this._dialogRefConstructor(ref, config, dialogContainer);
496
+ dialogRef.updatePosition(config === null || config === void 0 ? void 0 : config.position);
497
+ return [
498
+ { provide: this._dialogContainerType, useValue: dialogContainer },
499
+ { provide: this._dialogDataToken, useValue: cdkConfig.data },
500
+ { provide: this._dialogRefConstructor, useValue: dialogRef },
501
+ ];
502
+ } }));
503
+ // This can't be assigned in the `providers` callback, because
504
+ // the instance hasn't been assigned to the CDK ref yet.
505
+ dialogRef.componentInstance = cdkRef.componentInstance;
688
506
  this.openDialogs.push(dialogRef);
689
- dialogRef.afterClosed().subscribe(() => this._removeOpenDialog(dialogRef));
690
507
  this.afterOpened.next(dialogRef);
691
- // Notify the dialog container that the content has been attached.
692
- dialogContainer._initializeWithAttachedContent();
508
+ dialogRef.afterClosed().subscribe(() => {
509
+ const index = this.openDialogs.indexOf(dialogRef);
510
+ if (index > -1) {
511
+ this.openDialogs.splice(index, 1);
512
+ if (!this.openDialogs.length) {
513
+ this._getAfterAllClosed().next();
514
+ }
515
+ }
516
+ });
693
517
  return dialogRef;
694
518
  }
695
519
  /**
@@ -712,170 +536,17 @@ class _MatDialogBase {
712
536
  this._afterAllClosedAtThisLevel.complete();
713
537
  this._afterOpenedAtThisLevel.complete();
714
538
  }
715
- /**
716
- * Creates the overlay into which the dialog will be loaded.
717
- * @param config The dialog configuration.
718
- * @returns A promise resolving to the OverlayRef for the created overlay.
719
- */
720
- _createOverlay(config) {
721
- const overlayConfig = this._getOverlayConfig(config);
722
- return this._overlay.create(overlayConfig);
723
- }
724
- /**
725
- * Creates an overlay config from a dialog config.
726
- * @param dialogConfig The dialog configuration.
727
- * @returns The overlay configuration.
728
- */
729
- _getOverlayConfig(dialogConfig) {
730
- const state = new OverlayConfig({
731
- positionStrategy: this._overlay.position().global(),
732
- scrollStrategy: dialogConfig.scrollStrategy || this._scrollStrategy(),
733
- panelClass: dialogConfig.panelClass,
734
- hasBackdrop: dialogConfig.hasBackdrop,
735
- direction: dialogConfig.direction,
736
- minWidth: dialogConfig.minWidth,
737
- minHeight: dialogConfig.minHeight,
738
- maxWidth: dialogConfig.maxWidth,
739
- maxHeight: dialogConfig.maxHeight,
740
- disposeOnNavigation: dialogConfig.closeOnNavigation,
741
- });
742
- if (dialogConfig.backdropClass) {
743
- state.backdropClass = dialogConfig.backdropClass;
744
- }
745
- return state;
746
- }
747
- /**
748
- * Attaches a dialog container to a dialog's already-created overlay.
749
- * @param overlay Reference to the dialog's underlying overlay.
750
- * @param config The dialog configuration.
751
- * @returns A promise resolving to a ComponentRef for the attached container.
752
- */
753
- _attachDialogContainer(overlay, config) {
754
- const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
755
- const injector = Injector.create({
756
- parent: userInjector || this._injector,
757
- providers: [{ provide: MatDialogConfig, useValue: config }],
758
- });
759
- const containerPortal = new ComponentPortal(this._dialogContainerType, config.viewContainerRef, injector, config.componentFactoryResolver);
760
- const containerRef = overlay.attach(containerPortal);
761
- return containerRef.instance;
762
- }
763
- /**
764
- * Attaches the user-provided component to the already-created dialog container.
765
- * @param componentOrTemplateRef The type of component being loaded into the dialog,
766
- * or a TemplateRef to instantiate as the content.
767
- * @param dialogContainer Reference to the wrapping dialog container.
768
- * @param overlayRef Reference to the overlay in which the dialog resides.
769
- * @param config The dialog configuration.
770
- * @returns A promise resolving to the MatDialogRef that should be returned to the user.
771
- */
772
- _attachDialogContent(componentOrTemplateRef, dialogContainer, overlayRef, config) {
773
- // Create a reference to the dialog we're creating in order to give the user a handle
774
- // to modify and close it.
775
- const dialogRef = new this._dialogRefConstructor(overlayRef, dialogContainer, config.id);
776
- const injector = this._createInjector(config, dialogRef, dialogContainer);
777
- if (componentOrTemplateRef instanceof TemplateRef) {
778
- dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, {
779
- $implicit: config.data,
780
- dialogRef,
781
- }, injector));
782
- }
783
- else {
784
- const contentRef = dialogContainer.attachComponentPortal(new ComponentPortal(componentOrTemplateRef, config.viewContainerRef, injector, config.componentFactoryResolver));
785
- dialogRef.componentInstance = contentRef.instance;
786
- }
787
- dialogRef.updateSize(config.width, config.height).updatePosition(config.position);
788
- return dialogRef;
789
- }
790
- /**
791
- * Creates a custom injector to be used inside the dialog. This allows a component loaded inside
792
- * of a dialog to close itself and, optionally, to return a value.
793
- * @param config Config object that is used to construct the dialog.
794
- * @param dialogRef Reference to the dialog.
795
- * @param dialogContainer Dialog container element that wraps all of the contents.
796
- * @returns The custom injector that can be used inside the dialog.
797
- */
798
- _createInjector(config, dialogRef, dialogContainer) {
799
- const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
800
- // The dialog container should be provided as the dialog container and the dialog's
801
- // content are created out of the same `ViewContainerRef` and as such, are siblings
802
- // for injector purposes. To allow the hierarchy that is expected, the dialog
803
- // container is explicitly provided in the injector.
804
- const providers = [
805
- { provide: this._dialogContainerType, useValue: dialogContainer },
806
- { provide: this._dialogDataToken, useValue: config.data },
807
- { provide: this._dialogRefConstructor, useValue: dialogRef },
808
- ];
809
- if (config.direction &&
810
- (!userInjector ||
811
- !userInjector.get(Directionality, null, InjectFlags.Optional))) {
812
- providers.push({
813
- provide: Directionality,
814
- useValue: { value: config.direction, change: of() },
815
- });
816
- }
817
- return Injector.create({ parent: userInjector || this._injector, providers });
818
- }
819
- /**
820
- * Removes a dialog from the array of open dialogs.
821
- * @param dialogRef Dialog to be removed.
822
- */
823
- _removeOpenDialog(dialogRef) {
824
- const index = this.openDialogs.indexOf(dialogRef);
825
- if (index > -1) {
826
- this.openDialogs.splice(index, 1);
827
- // If all the dialogs were closed, remove/restore the `aria-hidden`
828
- // to a the siblings and emit to the `afterAllClosed` stream.
829
- if (!this.openDialogs.length) {
830
- this._ariaHiddenElements.forEach((previousValue, element) => {
831
- if (previousValue) {
832
- element.setAttribute('aria-hidden', previousValue);
833
- }
834
- else {
835
- element.removeAttribute('aria-hidden');
836
- }
837
- });
838
- this._ariaHiddenElements.clear();
839
- this._getAfterAllClosed().next();
840
- }
841
- }
842
- }
843
- /**
844
- * Hides all of the content that isn't an overlay from assistive technology.
845
- */
846
- _hideNonDialogContentFromAssistiveTechnology() {
847
- const overlayContainer = this._overlayContainer.getContainerElement();
848
- // Ensure that the overlay container is attached to the DOM.
849
- if (overlayContainer.parentElement) {
850
- const siblings = overlayContainer.parentElement.children;
851
- for (let i = siblings.length - 1; i > -1; i--) {
852
- let sibling = siblings[i];
853
- if (sibling !== overlayContainer &&
854
- sibling.nodeName !== 'SCRIPT' &&
855
- sibling.nodeName !== 'STYLE' &&
856
- !sibling.hasAttribute('aria-live')) {
857
- this._ariaHiddenElements.set(sibling, sibling.getAttribute('aria-hidden'));
858
- sibling.setAttribute('aria-hidden', 'true');
859
- }
860
- }
861
- }
862
- }
863
- /** Closes all of the dialogs in an array. */
864
539
  _closeDialogs(dialogs) {
865
540
  let i = dialogs.length;
866
541
  while (i--) {
867
- // The `_openDialogs` property isn't updated after close until the rxjs subscription
868
- // runs on the next microtask, in addition to modifying the array as we're going
869
- // through it. We loop through all of them and call close without assuming that
870
- // they'll be removed from the list instantaneously.
871
542
  dialogs[i].close();
872
543
  }
873
544
  }
874
545
  }
875
- _MatDialogBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: _MatDialogBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
876
- _MatDialogBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.6", type: _MatDialogBase, ngImport: i0 });
877
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: _MatDialogBase, decorators: [{
878
- type: Directive
546
+ _MatDialogBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: _MatDialogBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
547
+ _MatDialogBase.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: _MatDialogBase });
548
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: _MatDialogBase, decorators: [{
549
+ type: Injectable
879
550
  }], 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 }]; } });
880
551
  /**
881
552
  * Service to open Material Design modal dialogs.
@@ -886,7 +557,12 @@ class MatDialog extends _MatDialogBase {
886
557
  * @deprecated `_location` parameter to be removed.
887
558
  * @breaking-change 10.0.0
888
559
  */
889
- location, defaultOptions, scrollStrategy, parentDialog, overlayContainer,
560
+ _location, defaultOptions, scrollStrategy, parentDialog,
561
+ /**
562
+ * @deprecated No longer used. To be removed.
563
+ * @breaking-change 15.0.0
564
+ */
565
+ overlayContainer,
890
566
  /**
891
567
  * @deprecated No longer used. To be removed.
892
568
  * @breaking-change 14.0.0
@@ -895,9 +571,9 @@ class MatDialog extends _MatDialogBase {
895
571
  super(overlay, injector, defaultOptions, parentDialog, overlayContainer, scrollStrategy, MatDialogRef, MatDialogContainer, MAT_DIALOG_DATA, animationMode);
896
572
  }
897
573
  }
898
- MatDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", 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 });
899
- MatDialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialog });
900
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialog, decorators: [{
574
+ MatDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", 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 });
575
+ MatDialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialog });
576
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialog, decorators: [{
901
577
  type: Injectable
902
578
  }], ctorParameters: function () {
903
579
  return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: i2.Location, decorators: [{
@@ -921,15 +597,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6",
921
597
  args: [ANIMATION_MODULE_TYPE]
922
598
  }] }];
923
599
  } });
924
- /**
925
- * Applies default options to the dialog config.
926
- * @param config Config to be modified.
927
- * @param defaultOptions Default options provided.
928
- * @returns The new configuration object.
929
- */
930
- function _applyConfigDefaults(config, defaultOptions) {
931
- return Object.assign(Object.assign({}, defaultOptions), config);
932
- }
933
600
 
934
601
  /**
935
602
  * @license
@@ -983,9 +650,9 @@ class MatDialogClose {
983
650
  _closeDialogVia(this.dialogRef, event.screenX === 0 && event.screenY === 0 ? 'keyboard' : 'mouse', this.dialogResult);
984
651
  }
985
652
  }
986
- MatDialogClose.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogClose, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
987
- MatDialogClose.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.6", 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 });
988
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogClose, decorators: [{
653
+ MatDialogClose.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogClose, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
654
+ MatDialogClose.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0-next.16", 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 });
655
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogClose, decorators: [{
989
656
  type: Directive,
990
657
  args: [{
991
658
  selector: '[mat-dialog-close], [matDialogClose]',
@@ -1040,9 +707,9 @@ class MatDialogTitle {
1040
707
  }
1041
708
  }
1042
709
  }
1043
- MatDialogTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogTitle, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
1044
- MatDialogTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.6", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: { id: "id" }, host: { properties: { "id": "id" }, classAttribute: "mat-dialog-title" }, exportAs: ["matDialogTitle"], ngImport: i0 });
1045
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogTitle, decorators: [{
710
+ MatDialogTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogTitle, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
711
+ MatDialogTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0-next.16", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: { id: "id" }, host: { properties: { "id": "id" }, classAttribute: "mat-dialog-title" }, exportAs: ["matDialogTitle"], ngImport: i0 });
712
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogTitle, decorators: [{
1046
713
  type: Directive,
1047
714
  args: [{
1048
715
  selector: '[mat-dialog-title], [matDialogTitle]',
@@ -1064,9 +731,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6",
1064
731
  */
1065
732
  class MatDialogContent {
1066
733
  }
1067
- MatDialogContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1068
- MatDialogContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.6", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]", host: { classAttribute: "mat-dialog-content" }, ngImport: i0 });
1069
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogContent, decorators: [{
734
+ MatDialogContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
735
+ MatDialogContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0-next.16", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]", host: { classAttribute: "mat-dialog-content" }, ngImport: i0 });
736
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogContent, decorators: [{
1070
737
  type: Directive,
1071
738
  args: [{
1072
739
  selector: `[mat-dialog-content], mat-dialog-content, [matDialogContent]`,
@@ -1085,9 +752,9 @@ class MatDialogActions {
1085
752
  this.align = 'start';
1086
753
  }
1087
754
  }
1088
- MatDialogActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1089
- MatDialogActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.6", 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 });
1090
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogActions, decorators: [{
755
+ MatDialogActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
756
+ MatDialogActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0-next.16", 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 });
757
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogActions, decorators: [{
1091
758
  type: Directive,
1092
759
  args: [{
1093
760
  selector: `[mat-dialog-actions], mat-dialog-actions, [matDialogActions]`,
@@ -1126,22 +793,22 @@ function getClosestDialog(element, openDialogs) {
1126
793
  */
1127
794
  class MatDialogModule {
1128
795
  }
1129
- MatDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1130
- MatDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogModule, declarations: [MatDialogContainer,
796
+ MatDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
797
+ MatDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogModule, declarations: [MatDialogContainer,
1131
798
  MatDialogClose,
1132
799
  MatDialogTitle,
1133
800
  MatDialogActions,
1134
- MatDialogContent], imports: [OverlayModule, PortalModule, MatCommonModule], exports: [MatDialogContainer,
801
+ MatDialogContent], imports: [DialogModule, OverlayModule, PortalModule, MatCommonModule], exports: [MatDialogContainer,
1135
802
  MatDialogClose,
1136
803
  MatDialogTitle,
1137
804
  MatDialogContent,
1138
805
  MatDialogActions,
1139
806
  MatCommonModule] });
1140
- MatDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogModule, providers: [MatDialog, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER], imports: [[OverlayModule, PortalModule, MatCommonModule], MatCommonModule] });
1141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: MatDialogModule, decorators: [{
807
+ MatDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogModule, providers: [MatDialog, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER], imports: [DialogModule, OverlayModule, PortalModule, MatCommonModule, MatCommonModule] });
808
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogModule, decorators: [{
1142
809
  type: NgModule,
1143
810
  args: [{
1144
- imports: [OverlayModule, PortalModule, MatCommonModule],
811
+ imports: [DialogModule, OverlayModule, PortalModule, MatCommonModule],
1145
812
  exports: [
1146
813
  MatDialogContainer,
1147
814
  MatDialogClose,
@@ -1181,5 +848,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6",
1181
848
  * Generated bundle index. Do not edit.
1182
849
  */
1183
850
 
1184
- export { MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS, MAT_DIALOG_SCROLL_STRATEGY, MAT_DIALOG_SCROLL_STRATEGY_FACTORY, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, MatDialog, MatDialogActions, MatDialogClose, MatDialogConfig, MatDialogContainer, MatDialogContent, MatDialogModule, MatDialogRef, MatDialogTitle, _MatDialogBase, _MatDialogContainerBase, _closeDialogVia, matDialogAnimations, throwMatDialogContentAlreadyAttachedError };
851
+ export { MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS, MAT_DIALOG_SCROLL_STRATEGY, MAT_DIALOG_SCROLL_STRATEGY_FACTORY, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, MatDialog, MatDialogActions, MatDialogClose, MatDialogConfig, MatDialogContainer, MatDialogContent, MatDialogModule, MatDialogRef, MatDialogTitle, _MatDialogBase, _MatDialogContainerBase, _closeDialogVia, matDialogAnimations };
1185
852
  //# sourceMappingURL=dialog.mjs.map