@angular/material 14.0.0-next.12 → 14.0.0-next.13

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