@angular/material 14.0.0-next.9 → 14.0.0-rc.2

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