@angular/material 9.2.0 → 9.2.4

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 (365) hide show
  1. package/_theming.scss +19 -4
  2. package/autocomplete/index.metadata.json +1 -1
  3. package/autocomplete/testing/autocomplete-harness.d.ts +4 -1
  4. package/badge/index.metadata.json +1 -1
  5. package/bottom-sheet/bottom-sheet.d.ts +2 -1
  6. package/bundles/material-autocomplete-testing.umd.js +55 -8
  7. package/bundles/material-autocomplete-testing.umd.js.map +1 -1
  8. package/bundles/material-autocomplete-testing.umd.min.js +4 -5
  9. package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
  10. package/bundles/material-autocomplete.umd.js +28 -27
  11. package/bundles/material-autocomplete.umd.js.map +1 -1
  12. package/bundles/material-autocomplete.umd.min.js +5 -5
  13. package/bundles/material-autocomplete.umd.min.js.map +1 -1
  14. package/bundles/material-badge.umd.js +1 -1
  15. package/bundles/material-badge.umd.js.map +1 -1
  16. package/bundles/material-badge.umd.min.js +1 -1
  17. package/bundles/material-badge.umd.min.js.map +1 -1
  18. package/bundles/material-bottom-sheet.umd.js +3 -2
  19. package/bundles/material-bottom-sheet.umd.js.map +1 -1
  20. package/bundles/material-bottom-sheet.umd.min.js +1 -1
  21. package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
  22. package/bundles/material-button-toggle.umd.js +16 -6
  23. package/bundles/material-button-toggle.umd.js.map +1 -1
  24. package/bundles/material-button-toggle.umd.min.js +3 -3
  25. package/bundles/material-button-toggle.umd.min.js.map +1 -1
  26. package/bundles/material-chips.umd.js +19 -3
  27. package/bundles/material-chips.umd.js.map +1 -1
  28. package/bundles/material-chips.umd.min.js +4 -4
  29. package/bundles/material-chips.umd.min.js.map +1 -1
  30. package/bundles/material-core.umd.js +95 -71
  31. package/bundles/material-core.umd.js.map +1 -1
  32. package/bundles/material-core.umd.min.js +9 -9
  33. package/bundles/material-core.umd.min.js.map +1 -1
  34. package/bundles/material-datepicker.umd.js +23 -10
  35. package/bundles/material-datepicker.umd.js.map +1 -1
  36. package/bundles/material-datepicker.umd.min.js +7 -7
  37. package/bundles/material-datepicker.umd.min.js.map +1 -1
  38. package/bundles/material-dialog.umd.js +46 -27
  39. package/bundles/material-dialog.umd.js.map +1 -1
  40. package/bundles/material-dialog.umd.min.js +6 -6
  41. package/bundles/material-dialog.umd.min.js.map +1 -1
  42. package/bundles/material-expansion.umd.js +3 -3
  43. package/bundles/material-expansion.umd.js.map +1 -1
  44. package/bundles/material-expansion.umd.min.js +1 -1
  45. package/bundles/material-expansion.umd.min.js.map +1 -1
  46. package/bundles/material-form-field.umd.js +6 -4
  47. package/bundles/material-form-field.umd.js.map +1 -1
  48. package/bundles/material-form-field.umd.min.js +3 -3
  49. package/bundles/material-form-field.umd.min.js.map +1 -1
  50. package/bundles/material-icon.umd.js +9 -5
  51. package/bundles/material-icon.umd.js.map +1 -1
  52. package/bundles/material-icon.umd.min.js +3 -3
  53. package/bundles/material-icon.umd.min.js.map +1 -1
  54. package/bundles/material-input.umd.js +18 -14
  55. package/bundles/material-input.umd.js.map +1 -1
  56. package/bundles/material-input.umd.min.js +1 -1
  57. package/bundles/material-input.umd.min.js.map +1 -1
  58. package/bundles/material-list.umd.js +4 -4
  59. package/bundles/material-list.umd.js.map +1 -1
  60. package/bundles/material-list.umd.min.js +2 -2
  61. package/bundles/material-list.umd.min.js.map +1 -1
  62. package/bundles/material-menu.umd.js +5 -5
  63. package/bundles/material-menu.umd.js.map +1 -1
  64. package/bundles/material-menu.umd.min.js +6 -6
  65. package/bundles/material-menu.umd.min.js.map +1 -1
  66. package/bundles/material-radio.umd.js +62 -47
  67. package/bundles/material-radio.umd.js.map +1 -1
  68. package/bundles/material-radio.umd.min.js +10 -2
  69. package/bundles/material-radio.umd.min.js.map +1 -1
  70. package/bundles/material-select-testing.umd.js +45 -10
  71. package/bundles/material-select-testing.umd.js.map +1 -1
  72. package/bundles/material-select-testing.umd.min.js +2 -3
  73. package/bundles/material-select-testing.umd.min.js.map +1 -1
  74. package/bundles/material-select.umd.js +23 -14
  75. package/bundles/material-select.umd.js.map +1 -1
  76. package/bundles/material-select.umd.min.js +3 -3
  77. package/bundles/material-select.umd.min.js.map +1 -1
  78. package/bundles/material-sidenav.umd.js +2 -1
  79. package/bundles/material-sidenav.umd.js.map +1 -1
  80. package/bundles/material-sidenav.umd.min.js +2 -2
  81. package/bundles/material-sidenav.umd.min.js.map +1 -1
  82. package/bundles/material-slider.umd.js +14 -12
  83. package/bundles/material-slider.umd.js.map +1 -1
  84. package/bundles/material-slider.umd.min.js +1 -1
  85. package/bundles/material-slider.umd.min.js.map +1 -1
  86. package/bundles/material-table.umd.js +1 -1
  87. package/bundles/material-table.umd.js.map +1 -1
  88. package/bundles/material-table.umd.min.js +1 -1
  89. package/bundles/material-table.umd.min.js.map +1 -1
  90. package/bundles/material-tabs.umd.js +9 -6
  91. package/bundles/material-tabs.umd.js.map +1 -1
  92. package/bundles/material-tabs.umd.min.js +1 -1
  93. package/bundles/material-tabs.umd.min.js.map +1 -1
  94. package/bundles/material-tooltip.umd.js +5 -5
  95. package/bundles/material-tooltip.umd.js.map +1 -1
  96. package/bundles/material-tooltip.umd.min.js +3 -3
  97. package/bundles/material-tooltip.umd.min.js.map +1 -1
  98. package/bundles/material-tree.umd.js +1 -1
  99. package/bundles/material-tree.umd.js.map +1 -1
  100. package/bundles/material-tree.umd.min.js +1 -1
  101. package/bundles/material-tree.umd.min.js.map +1 -1
  102. package/button-toggle/index.metadata.json +1 -1
  103. package/chips/chip.d.ts +10 -3
  104. package/chips/index.metadata.json +1 -1
  105. package/core/index.metadata.json +1 -1
  106. package/core/ripple/ripple-renderer.d.ts +10 -3
  107. package/core/ripple/ripple.d.ts +2 -1
  108. package/datepicker/datepicker-input.d.ts +5 -2
  109. package/datepicker/index.metadata.json +1 -1
  110. package/dialog/dialog-container.d.ts +9 -2
  111. package/dialog/dialog-ref.d.ts +5 -0
  112. package/dialog/index.metadata.json +1 -1
  113. package/esm2015/autocomplete/autocomplete-module.js +3 -1
  114. package/esm2015/autocomplete/autocomplete-trigger.js +25 -24
  115. package/esm2015/autocomplete/testing/autocomplete-harness.js +18 -7
  116. package/esm2015/badge/badge-module.js +2 -2
  117. package/esm2015/bottom-sheet/bottom-sheet.js +5 -3
  118. package/esm2015/button-toggle/button-toggle.js +18 -7
  119. package/esm2015/chips/chip-list.js +5 -2
  120. package/esm2015/chips/chip.js +34 -4
  121. package/esm2015/core/common-behaviors/common-module.js +1 -1
  122. package/esm2015/core/ripple/ripple-renderer.js +140 -119
  123. package/esm2015/core/ripple/ripple.js +10 -7
  124. package/esm2015/core/version.js +1 -1
  125. package/esm2015/datepicker/calendar-body.js +3 -3
  126. package/esm2015/datepicker/calendar.js +3 -3
  127. package/esm2015/datepicker/datepicker-input.js +17 -2
  128. package/esm2015/datepicker/datepicker-module.js +3 -1
  129. package/esm2015/datepicker/datepicker.js +8 -2
  130. package/esm2015/dialog/dialog-container.js +37 -17
  131. package/esm2015/dialog/dialog-ref.js +24 -6
  132. package/esm2015/dialog/dialog.js +1 -12
  133. package/esm2015/expansion/expansion-panel-header.js +3 -3
  134. package/esm2015/expansion/expansion-panel.js +1 -1
  135. package/esm2015/form-field/form-field-module.js +5 -2
  136. package/esm2015/icon/icon.js +15 -2
  137. package/esm2015/input/input.js +26 -23
  138. package/esm2015/list/selection-list.js +8 -6
  139. package/esm2015/menu/menu-module.js +3 -2
  140. package/esm2015/radio/public-api.js +2 -2
  141. package/esm2015/radio/radio.js +70 -59
  142. package/esm2015/select/select-module.js +10 -2
  143. package/esm2015/select/select.js +12 -10
  144. package/esm2015/select/testing/select-harness.js +11 -6
  145. package/esm2015/sidenav/sidenav-module.js +4 -3
  146. package/esm2015/slider/slider.js +17 -15
  147. package/esm2015/snack-bar/snack-bar.js +1 -1
  148. package/esm2015/table/table-module.js +2 -2
  149. package/esm2015/tabs/paginated-tab-header.js +7 -4
  150. package/esm2015/tabs/tab-header.js +1 -1
  151. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +3 -3
  152. package/esm2015/tooltip/tooltip-module.js +3 -2
  153. package/esm2015/tree/tree-module.js +2 -2
  154. package/esm5/autocomplete/autocomplete-module.js +3 -1
  155. package/esm5/autocomplete/autocomplete-trigger.js +24 -24
  156. package/esm5/autocomplete/testing/autocomplete-harness.js +56 -9
  157. package/esm5/badge/badge-module.js +2 -2
  158. package/esm5/bottom-sheet/bottom-sheet.js +4 -3
  159. package/esm5/button-toggle/button-toggle.js +17 -7
  160. package/esm5/chips/chip-list.js +5 -2
  161. package/esm5/chips/chip.js +17 -4
  162. package/esm5/core/common-behaviors/common-module.js +1 -1
  163. package/esm5/core/ripple/ripple-renderer.js +91 -65
  164. package/esm5/core/ripple/ripple.js +4 -6
  165. package/esm5/core/version.js +1 -1
  166. package/esm5/datepicker/calendar-body.js +3 -3
  167. package/esm5/datepicker/calendar.js +3 -3
  168. package/esm5/datepicker/datepicker-input.js +8 -2
  169. package/esm5/datepicker/datepicker-module.js +3 -1
  170. package/esm5/datepicker/datepicker.js +8 -2
  171. package/esm5/dialog/dialog-container.js +29 -15
  172. package/esm5/dialog/dialog-ref.js +19 -6
  173. package/esm5/dialog/dialog.js +1 -9
  174. package/esm5/expansion/expansion-panel-header.js +3 -3
  175. package/esm5/expansion/expansion-panel.js +1 -1
  176. package/esm5/form-field/form-field-module.js +5 -2
  177. package/esm5/icon/icon.js +7 -2
  178. package/esm5/input/input.js +20 -16
  179. package/esm5/list/selection-list.js +5 -5
  180. package/esm5/menu/menu-module.js +3 -2
  181. package/esm5/radio/radio.js +63 -48
  182. package/esm5/select/select-module.js +10 -2
  183. package/esm5/select/select.js +12 -10
  184. package/esm5/select/testing/select-harness.js +46 -11
  185. package/esm5/sidenav/sidenav-module.js +4 -3
  186. package/esm5/slider/slider.js +15 -13
  187. package/esm5/table/table-module.js +2 -2
  188. package/esm5/tabs/paginated-tab-header.js +7 -4
  189. package/esm5/tabs/tab-header.js +1 -1
  190. package/esm5/tabs/tab-nav-bar/tab-nav-bar.js +3 -3
  191. package/esm5/tooltip/tooltip-module.js +3 -2
  192. package/esm5/tree/tree-module.js +2 -2
  193. package/expansion/index.metadata.json +1 -1
  194. package/fesm2015/autocomplete/testing.js +17 -6
  195. package/fesm2015/autocomplete/testing.js.map +1 -1
  196. package/fesm2015/autocomplete.js +26 -24
  197. package/fesm2015/autocomplete.js.map +1 -1
  198. package/fesm2015/badge.js +1 -1
  199. package/fesm2015/badge.js.map +1 -1
  200. package/fesm2015/bottom-sheet.js +4 -2
  201. package/fesm2015/bottom-sheet.js.map +1 -1
  202. package/fesm2015/button-toggle.js +17 -6
  203. package/fesm2015/button-toggle.js.map +1 -1
  204. package/fesm2015/chips.js +37 -4
  205. package/fesm2015/chips.js.map +1 -1
  206. package/fesm2015/core.js +150 -126
  207. package/fesm2015/core.js.map +1 -1
  208. package/fesm2015/datepicker.js +29 -6
  209. package/fesm2015/datepicker.js.map +1 -1
  210. package/fesm2015/dialog.js +59 -32
  211. package/fesm2015/dialog.js.map +1 -1
  212. package/fesm2015/expansion.js +3 -3
  213. package/fesm2015/expansion.js.map +1 -1
  214. package/fesm2015/form-field.js +4 -2
  215. package/fesm2015/form-field.js.map +1 -1
  216. package/fesm2015/icon.js +14 -2
  217. package/fesm2015/icon.js.map +1 -1
  218. package/fesm2015/input.js +25 -22
  219. package/fesm2015/input.js.map +1 -1
  220. package/fesm2015/list.js +7 -5
  221. package/fesm2015/list.js.map +1 -1
  222. package/fesm2015/menu.js +2 -1
  223. package/fesm2015/menu.js.map +1 -1
  224. package/fesm2015/radio.js +71 -60
  225. package/fesm2015/radio.js.map +1 -1
  226. package/fesm2015/select/testing.js +10 -5
  227. package/fesm2015/select/testing.js.map +1 -1
  228. package/fesm2015/select.js +20 -11
  229. package/fesm2015/select.js.map +1 -1
  230. package/fesm2015/sidenav.js +3 -2
  231. package/fesm2015/sidenav.js.map +1 -1
  232. package/fesm2015/slider.js +16 -14
  233. package/fesm2015/slider.js.map +1 -1
  234. package/fesm2015/table.js +1 -1
  235. package/fesm2015/table.js.map +1 -1
  236. package/fesm2015/tabs.js +9 -6
  237. package/fesm2015/tabs.js.map +1 -1
  238. package/fesm2015/tooltip.js +2 -2
  239. package/fesm2015/tooltip.js.map +1 -1
  240. package/fesm2015/tree.js +1 -1
  241. package/fesm2015/tree.js.map +1 -1
  242. package/fesm5/autocomplete/testing.js +55 -8
  243. package/fesm5/autocomplete/testing.js.map +1 -1
  244. package/fesm5/autocomplete.js +25 -24
  245. package/fesm5/autocomplete.js.map +1 -1
  246. package/fesm5/badge.js +1 -1
  247. package/fesm5/badge.js.map +1 -1
  248. package/fesm5/bottom-sheet.js +3 -2
  249. package/fesm5/bottom-sheet.js.map +1 -1
  250. package/fesm5/button-toggle.js +16 -6
  251. package/fesm5/button-toggle.js.map +1 -1
  252. package/fesm5/chips.js +20 -4
  253. package/fesm5/chips.js.map +1 -1
  254. package/fesm5/core.js +95 -71
  255. package/fesm5/core.js.map +1 -1
  256. package/fesm5/datepicker.js +20 -6
  257. package/fesm5/datepicker.js.map +1 -1
  258. package/fesm5/dialog.js +46 -27
  259. package/fesm5/dialog.js.map +1 -1
  260. package/fesm5/expansion.js +3 -3
  261. package/fesm5/expansion.js.map +1 -1
  262. package/fesm5/form-field.js +4 -2
  263. package/fesm5/form-field.js.map +1 -1
  264. package/fesm5/icon.js +6 -2
  265. package/fesm5/icon.js.map +1 -1
  266. package/fesm5/input.js +19 -15
  267. package/fesm5/input.js.map +1 -1
  268. package/fesm5/list.js +4 -4
  269. package/fesm5/list.js.map +1 -1
  270. package/fesm5/menu.js +2 -1
  271. package/fesm5/menu.js.map +1 -1
  272. package/fesm5/radio.js +63 -49
  273. package/fesm5/radio.js.map +1 -1
  274. package/fesm5/select/testing.js +45 -10
  275. package/fesm5/select/testing.js.map +1 -1
  276. package/fesm5/select.js +20 -11
  277. package/fesm5/select.js.map +1 -1
  278. package/fesm5/sidenav.js +3 -2
  279. package/fesm5/sidenav.js.map +1 -1
  280. package/fesm5/slider.js +14 -12
  281. package/fesm5/slider.js.map +1 -1
  282. package/fesm5/table.js +1 -1
  283. package/fesm5/table.js.map +1 -1
  284. package/fesm5/tabs.js +9 -6
  285. package/fesm5/tabs.js.map +1 -1
  286. package/fesm5/tooltip.js +2 -2
  287. package/fesm5/tooltip.js.map +1 -1
  288. package/fesm5/tree.js +1 -1
  289. package/fesm5/tree.js.map +1 -1
  290. package/form-field/index.metadata.json +1 -1
  291. package/icon/icon.d.ts +2 -0
  292. package/icon/index.metadata.json +1 -1
  293. package/input/index.metadata.json +1 -1
  294. package/input/input.d.ts +4 -4
  295. package/list/index.metadata.json +1 -1
  296. package/menu/index.metadata.json +1 -1
  297. package/package.json +2 -2
  298. package/prebuilt-themes/deeppurple-amber.css +1 -1
  299. package/prebuilt-themes/indigo-pink.css +1 -1
  300. package/prebuilt-themes/pink-bluegrey.css +1 -1
  301. package/prebuilt-themes/purple-green.css +1 -1
  302. package/radio/index.metadata.json +1 -1
  303. package/radio/radio.d.ts +8 -2
  304. package/schematics/collection.json +0 -7
  305. package/schematics/ng-add/index.js +1 -1
  306. package/schematics/ng-update/index.js +23 -23
  307. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/find-hammer-script-tags.d.ts +1 -1
  308. package/schematics/ng-update/migrations/hammer-gestures-v9/find-hammer-script-tags.js +51 -0
  309. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/find-main-module.d.ts +1 -1
  310. package/schematics/ng-update/migrations/hammer-gestures-v9/find-main-module.js +41 -0
  311. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/gesture-config.template +0 -0
  312. package/schematics/ng-update/{upgrade-rules/hammer-gestures-v9/hammer-gestures-rule.d.ts → migrations/hammer-gestures-v9/hammer-gestures-migration.d.ts} +6 -6
  313. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +784 -0
  314. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/hammer-template-check.d.ts +1 -1
  315. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-template-check.js +65 -0
  316. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/import-manager.d.ts +4 -4
  317. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +379 -0
  318. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/remove-array-element.d.ts +1 -1
  319. package/schematics/ng-update/migrations/hammer-gestures-v9/remove-array-element.js +75 -0
  320. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/remove-element-from-html.d.ts +1 -1
  321. package/schematics/ng-update/migrations/hammer-gestures-v9/remove-element-from-html.js +37 -0
  322. package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.d.ts +19 -0
  323. package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.js +57 -0
  324. package/schematics/ng-update/{upgrade-rules/misc-checks/misc-class-names-rule.d.ts → migrations/misc-checks/misc-class-names.d.ts} +5 -5
  325. package/schematics/ng-update/migrations/misc-checks/misc-class-names.js +52 -0
  326. package/schematics/ng-update/{upgrade-rules/misc-checks/misc-imports-rule.d.ts → migrations/misc-checks/misc-imports.d.ts} +5 -5
  327. package/schematics/ng-update/migrations/misc-checks/misc-imports.js +63 -0
  328. package/schematics/ng-update/{upgrade-rules/misc-checks/misc-property-names-rule.d.ts → migrations/misc-checks/misc-property-names.d.ts} +5 -5
  329. package/schematics/ng-update/migrations/misc-checks/misc-property-names.js +56 -0
  330. package/schematics/ng-update/migrations/misc-checks/misc-template.d.ts +17 -0
  331. package/schematics/ng-update/migrations/misc-checks/misc-template.js +69 -0
  332. package/schematics/ng-update/{upgrade-rules/misc-ripples-v7/ripple-speed-factor-rule.d.ts → migrations/misc-ripples-v7/ripple-speed-factor-migration.d.ts} +5 -5
  333. package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js +147 -0
  334. package/schematics/ng-update/{upgrade-rules → migrations}/misc-ripples-v7/ripple-speed-factor.d.ts +1 -1
  335. package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor.js +39 -0
  336. package/schematics/ng-update/{upgrade-rules → migrations}/package-imports-v8/material-symbols.json +0 -0
  337. package/schematics/ng-update/{upgrade-rules/package-imports-v8/secondary-entry-points-rule.d.ts → migrations/package-imports-v8/secondary-entry-points-migration.d.ts} +5 -5
  338. package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +177 -0
  339. package/schematics/ng-update/upgrade-data.d.ts +2 -2
  340. package/schematics/ng-update/upgrade-data.js +1 -1
  341. package/select/index.metadata.json +1 -1
  342. package/select/testing/select-harness.d.ts +2 -1
  343. package/sidenav/index.metadata.json +1 -1
  344. package/table/index.metadata.json +1 -1
  345. package/tabs/_tabs-common.scss +5 -3
  346. package/tabs/index.metadata.json +1 -1
  347. package/tooltip/index.metadata.json +1 -1
  348. package/tree/index.metadata.json +1 -1
  349. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/find-hammer-script-tags.js +0 -51
  350. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/find-main-module.js +0 -41
  351. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/hammer-gestures-rule.js +0 -781
  352. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/hammer-template-check.js +0 -65
  353. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/import-manager.js +0 -379
  354. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/remove-array-element.js +0 -75
  355. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/remove-element-from-html.js +0 -37
  356. package/schematics/ng-update/upgrade-rules/misc-checks/misc-class-inheritance-rule.d.ts +0 -19
  357. package/schematics/ng-update/upgrade-rules/misc-checks/misc-class-inheritance-rule.js +0 -57
  358. package/schematics/ng-update/upgrade-rules/misc-checks/misc-class-names-rule.js +0 -52
  359. package/schematics/ng-update/upgrade-rules/misc-checks/misc-imports-rule.js +0 -63
  360. package/schematics/ng-update/upgrade-rules/misc-checks/misc-property-names-rule.js +0 -56
  361. package/schematics/ng-update/upgrade-rules/misc-checks/misc-template-rule.d.ts +0 -17
  362. package/schematics/ng-update/upgrade-rules/misc-checks/misc-template-rule.js +0 -69
  363. package/schematics/ng-update/upgrade-rules/misc-ripples-v7/ripple-speed-factor-rule.js +0 -147
  364. package/schematics/ng-update/upgrade-rules/misc-ripples-v7/ripple-speed-factor.js +0 -39
  365. package/schematics/ng-update/upgrade-rules/package-imports-v8/secondary-entry-points-rule.js +0 -177
@@ -1 +1 @@
1
- {"version":3,"sources":["src/material/material-bottom-sheet.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","material","bottomSheet","cdk","overlay","portal","core","layout","animations","common","a11y","bidi","rxjs","keycodes","operators","this","i1","i0","i2","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__assign","assign","t","s","i","n","arguments","length","prototype","call","apply","MAT_BOTTOM_SHEET_DATA","InjectionToken","MatBottomSheetConfig","data","hasBackdrop","disableClose","ariaLabel","closeOnNavigation","autoFocus","restoreFocus","matBottomSheetAnimations","bottomSheetState","trigger","state","style","transform","transition","animate","AnimationDurations","COMPLEX","AnimationCurves","ACCELERATION_CURVE","EXITING","DECELERATION_CURVE","MatBottomSheetContainer","_super","_elementRef","_changeDetectorRef","_focusTrapFactory","breakpointObserver","document","bottomSheetConfig","_this","_animationState","_animationStateChanged","EventEmitter","_elementFocusedBeforeOpened","attachDomPortal","_validatePortalAttached","_setPanelClass","_savePreviouslyFocusedElement","_portalOutlet","_document","_breakpointSubscription","observe","Breakpoints","Medium","Large","XLarge","subscribe","_toggleClass","isMatched","__extends","__","constructor","create","attachComponentPortal","attachTemplatePortal","enter","_destroyed","detectChanges","exit","markForCheck","ngOnDestroy","unsubscribe","_onAnimationDone","event","toState","_restoreFocus","_trapFocus","emit","_onAnimationStart","cssClass","add","classList","nativeElement","remove","hasAttached","Error","element","panelClass","isArray","forEach","_focusTrap","focusInitialElementWhenReady","activeElement","contains","focus","toFocus","body","destroy","Promise","resolve","then","decorators","type","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","host","class","tabindex","role","aria-modal","[attr.aria-label]","[@state]","(@state.start)","(@state.done)","styles","ctorParameters","ElementRef","ChangeDetectorRef","FocusTrapFactory","BreakpointObserver","undefined","Optional","Inject","DOCUMENT","propDecorators","ViewChild","CdkPortalOutlet","static","BasePortalOutlet","MatBottomSheetModule","NgModule","imports","OverlayModule","MatCommonModule","PortalModule","declarations","entryComponents","MatBottomSheetRef","containerInstance","_overlayRef","_location","_afterDismissed","Subject","_afterOpened","pipe","filter","phaseName","take","next","complete","clearTimeout","_closeFallbackTimeout","dispose","detachments","_result","merge","backdropClick","keydownEvents","keyCode","ESCAPE","hasModifierKey","preventDefault","dismiss","result","closed","setTimeout","totalTime","detachBackdrop","afterDismissed","asObservable","afterOpened","MAT_BOTTOM_SHEET_DEFAULT_OPTIONS","MatBottomSheet","_overlay","_injector","_parentBottomSheet","_defaultOptions","_bottomSheetRefAtThisLevel","defineProperty","get","parent","_openedBottomSheetRef","set","value","enumerable","configurable","open","componentOrTemplateRef","config","_config","_applyConfigDefaults","defaults","overlayRef","_createOverlay","container","_attachContainer","ref","TemplateRef","TemplatePortal","$implicit","bottomSheetRef","portal$1","ComponentPortal","_createInjector","contentRef","instance","injector","PortalInjector","viewContainerRef","WeakMap","containerPortal","attach","overlayConfig","OverlayConfig","direction","disposeOnNavigation","maxWidth","scrollStrategy","scrollStrategies","block","positionStrategy","position","centerHorizontally","bottom","backdropClass","userInjector","injectionTokens","Directionality","change","of","Injectable","providedIn","Overlay","Injector","SkipSelf","Location","ɵprov","ɵɵdefineInjectable","MatBottomSheet_Factory","ɵɵinject","INJECTOR","token"],"mappings":"CAAC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,wBAAyBA,QAAQ,uBAAwBA,QAAQ,iBAAkBA,Q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EAAGiQ,SAAU9I,WAAY,CAAC,CAAEC,KAAMrH,EAAGgJ,YAC7C,CAAE3B,KAAM7F,EAAsB4F,WAAY,CAAC,CAAEC,KAAMrH,EAAGgJ,UAAY,CAAE3B,KAAMrH,EAAGiJ,OAAQ1B,KAAM,CAAC2E,QAEhGC,EAAegE,MAAQnQ,EAAGoQ,mBAAmB,CAAE5R,QAAS,SAAS6R,IAA2B,OAAO,IAAIlE,EAAenM,EAAGsQ,SAASvQ,EAAGgQ,SAAU/P,EAAGsQ,SAAStQ,EAAGuQ,UAAWvQ,EAAGsQ,SAASnE,EAAgB,IAAKnM,EAAGsQ,SAASrQ,EAAGiQ,SAAU,GAAIlQ,EAAGsQ,SAASpE,EAAkC,KAAQsE,MAAOrE,EAAgB2D,WAAYtG,IACzT2C,EA1IwB,GAkKnC1N,EAAQ6C,sBAAwBA,EAChC7C,EAAQyN,iCAAmCA,EAC3CzN,EAAQ0N,eAAiBA,EACzB1N,EAAQ+C,qBAAuBA,EAC/B/C,EAAQqE,wBAA0BA,EAClCrE,EAAQ+K,qBAAuBA,EAC/B/K,EAAQuL,kBAAoBA,EAC5BvL,EAAQuD,yBAA2BA,EAEnC3B,OAAOoM,eAAehO,EAAS,aAAc,CAAEqO,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/core'), require('@angular/material/core'), require('@angular/cdk/layout'), require('@angular/animations'), require('@angular/common'), require('@angular/cdk/a11y'), require('@angular/cdk/bidi'), require('rxjs'), require('@angular/cdk/keycodes'), require('rxjs/operators')) :\n typeof define === 'function' && define.amd ? define('@angular/material/bottom-sheet', ['exports', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/core', '@angular/material/core', '@angular/cdk/layout', '@angular/animations', '@angular/common', '@angular/cdk/a11y', '@angular/cdk/bidi', 'rxjs', '@angular/cdk/keycodes', 'rxjs/operators'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.bottomSheet = {}), global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.core, global.ng.material.core, global.ng.cdk.layout, global.ng.animations, global.ng.common, global.ng.cdk.a11y, global.ng.cdk.bidi, global.rxjs, global.ng.cdk.keycodes, global.rxjs.operators));\n}(this, (function (exports, i1, portal, i0, core, layout, animations, i2, a11y, bidi, rxjs, keycodes, operators) { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation. All rights reserved.\r\n Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n this file except in compliance with the License. You may obtain a copy of the\r\n License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n See the Apache Version 2.0 License for specific language governing permissions\r\n and limitations under the License.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\r\n\r\n var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n };\r\n\r\n function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n }\r\n\r\n function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n }\r\n\r\n function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n }\r\n\r\n function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n }\r\n\r\n function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n }\r\n\r\n function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n }\r\n\r\n function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n }\r\n\r\n function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n }\r\n\r\n function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n }\r\n\r\n function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n }\r\n\r\n function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n };\r\n\r\n function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n }\r\n\r\n function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n }\r\n\r\n function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n }\r\n\r\n function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n }\r\n\r\n function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n };\r\n\r\n function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n }\r\n\r\n function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Injection token that can be used to access the data that was passed in to a bottom sheet. */\n var MAT_BOTTOM_SHEET_DATA = new i0.InjectionToken('MatBottomSheetData');\n /**\n * Configuration used when opening a bottom sheet.\n */\n var MatBottomSheetConfig = /** @class */ (function () {\n function MatBottomSheetConfig() {\n /** Data being injected into the child component. */\n this.data = null;\n /** Whether the bottom sheet has a backdrop. */\n this.hasBackdrop = true;\n /** Whether the user can use escape or clicking outside to close the bottom sheet. */\n this.disableClose = false;\n /** Aria label to assign to the bottom sheet element. */\n this.ariaLabel = null;\n /**\n * Whether the bottom sheet should close when the user goes backwards/forwards in history.\n * Note that this usually doesn't include clicking on links (unless the user is using\n * the `HashLocationStrategy`).\n */\n this.closeOnNavigation = true;\n // Note that this is disabled by default, because while the a11y recommendations are to focus\n // the first focusable element, doing so prevents screen readers from reading out the\n // rest of the bottom sheet content.\n /** Whether the bottom sheet should focus the first focusable element on open. */\n this.autoFocus = false;\n /**\n * Whether the bottom sheet should restore focus to the\n * previously-focused element, after it's closed.\n */\n this.restoreFocus = true;\n }\n return MatBottomSheetConfig;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Animations used by the Material bottom sheet. */\n var matBottomSheetAnimations = {\n /** Animation that shows and hides a bottom sheet. */\n bottomSheetState: animations.trigger('state', [\n animations.state('void, hidden', animations.style({ transform: 'translateY(100%)' })),\n animations.state('visible', animations.style({ transform: 'translateY(0%)' })),\n animations.transition('visible => void, visible => hidden', animations.animate(core.AnimationDurations.COMPLEX + \" \" + core.AnimationCurves.ACCELERATION_CURVE)),\n animations.transition('void => visible', animations.animate(core.AnimationDurations.EXITING + \" \" + core.AnimationCurves.DECELERATION_CURVE)),\n ])\n };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n // TODO(crisbeto): consolidate some logic between this, MatDialog and MatSnackBar\n /**\n * Internal component that wraps user-provided bottom sheet content.\n * @docs-private\n */\n var MatBottomSheetContainer = /** @class */ (function (_super) {\n __extends(MatBottomSheetContainer, _super);\n function MatBottomSheetContainer(_elementRef, _changeDetectorRef, _focusTrapFactory, breakpointObserver, document, \n /** The bottom sheet configuration. */\n bottomSheetConfig) {\n var _this = _super.call(this) || this;\n _this._elementRef = _elementRef;\n _this._changeDetectorRef = _changeDetectorRef;\n _this._focusTrapFactory = _focusTrapFactory;\n _this.bottomSheetConfig = bottomSheetConfig;\n /** The state of the bottom sheet animations. */\n _this._animationState = 'void';\n /** Emits whenever the state of the animation changes. */\n _this._animationStateChanged = new i0.EventEmitter();\n /** Element that was focused before the bottom sheet was opened. */\n _this._elementFocusedBeforeOpened = null;\n /**\n * Attaches a DOM portal to the bottom sheet container.\n * @deprecated To be turned into a method.\n * @breaking-change 10.0.0\n */\n _this.attachDomPortal = function (portal) {\n _this._validatePortalAttached();\n _this._setPanelClass();\n _this._savePreviouslyFocusedElement();\n return _this._portalOutlet.attachDomPortal(portal);\n };\n _this._document = document;\n _this._breakpointSubscription = breakpointObserver\n .observe([layout.Breakpoints.Medium, layout.Breakpoints.Large, layout.Breakpoints.XLarge])\n .subscribe(function () {\n _this._toggleClass('mat-bottom-sheet-container-medium', breakpointObserver.isMatched(layout.Breakpoints.Medium));\n _this._toggleClass('mat-bottom-sheet-container-large', breakpointObserver.isMatched(layout.Breakpoints.Large));\n _this._toggleClass('mat-bottom-sheet-container-xlarge', breakpointObserver.isMatched(layout.Breakpoints.XLarge));\n });\n return _this;\n }\n /** Attach a component portal as content to this bottom sheet container. */\n MatBottomSheetContainer.prototype.attachComponentPortal = function (portal) {\n this._validatePortalAttached();\n this._setPanelClass();\n this._savePreviouslyFocusedElement();\n return this._portalOutlet.attachComponentPortal(portal);\n };\n /** Attach a template portal as content to this bottom sheet container. */\n MatBottomSheetContainer.prototype.attachTemplatePortal = function (portal) {\n this._validatePortalAttached();\n this._setPanelClass();\n this._savePreviouslyFocusedElement();\n return this._portalOutlet.attachTemplatePortal(portal);\n };\n /** Begin animation of bottom sheet entrance into view. */\n MatBottomSheetContainer.prototype.enter = function () {\n if (!this._destroyed) {\n this._animationState = 'visible';\n this._changeDetectorRef.detectChanges();\n }\n };\n /** Begin animation of the bottom sheet exiting from view. */\n MatBottomSheetContainer.prototype.exit = function () {\n if (!this._destroyed) {\n this._animationState = 'hidden';\n this._changeDetectorRef.markForCheck();\n }\n };\n MatBottomSheetContainer.prototype.ngOnDestroy = function () {\n this._breakpointSubscription.unsubscribe();\n this._destroyed = true;\n };\n MatBottomSheetContainer.prototype._onAnimationDone = function (event) {\n if (event.toState === 'hidden') {\n this._restoreFocus();\n }\n else if (event.toState === 'visible') {\n this._trapFocus();\n }\n this._animationStateChanged.emit(event);\n };\n MatBottomSheetContainer.prototype._onAnimationStart = function (event) {\n this._animationStateChanged.emit(event);\n };\n MatBottomSheetContainer.prototype._toggleClass = function (cssClass, add) {\n var classList = this._elementRef.nativeElement.classList;\n add ? classList.add(cssClass) : classList.remove(cssClass);\n };\n MatBottomSheetContainer.prototype._validatePortalAttached = function () {\n if (this._portalOutlet.hasAttached()) {\n throw Error('Attempting to attach bottom sheet content after content is already attached');\n }\n };\n MatBottomSheetContainer.prototype._setPanelClass = function () {\n var element = this._elementRef.nativeElement;\n var panelClass = this.bottomSheetConfig.panelClass;\n if (Array.isArray(panelClass)) {\n // Note that we can't use a spread here, because IE doesn't support multiple arguments.\n panelClass.forEach(function (cssClass) { return element.classList.add(cssClass); });\n }\n else if (panelClass) {\n element.classList.add(panelClass);\n }\n };\n /** Moves the focus inside the focus trap. */\n MatBottomSheetContainer.prototype._trapFocus = function () {\n var element = this._elementRef.nativeElement;\n if (!this._focusTrap) {\n this._focusTrap = this._focusTrapFactory.create(element);\n }\n if (this.bottomSheetConfig.autoFocus) {\n this._focusTrap.focusInitialElementWhenReady();\n }\n else {\n var activeElement = this._document.activeElement;\n // Otherwise ensure that focus is on the container. It's possible that a different\n // component tried to move focus while the open animation was running. See:\n // https://github.com/angular/components/issues/16215. Note that we only want to do this\n // if the focus isn't inside the bottom sheet already, because it's possible that the\n // consumer turned off `autoFocus` in order to move focus themselves.\n if (activeElement !== element && !element.contains(activeElement)) {\n element.focus();\n }\n }\n };\n /** Restores focus to the element that was focused before the bottom sheet was opened. */\n MatBottomSheetContainer.prototype._restoreFocus = function () {\n var toFocus = this._elementFocusedBeforeOpened;\n // We need the extra check, because IE can set the `activeElement` to null in some cases.\n if (this.bottomSheetConfig.restoreFocus && toFocus && typeof toFocus.focus === 'function') {\n var activeElement = this._document.activeElement;\n var element = this._elementRef.nativeElement;\n // Make sure that focus is still inside the bottom sheet or is on the body (usually because a\n // non-focusable element like the backdrop was clicked) before moving it. It's possible that\n // the consumer moved it themselves before the animation was done, in which case we shouldn't\n // do anything.\n if (!activeElement || activeElement === this._document.body || activeElement === element ||\n element.contains(activeElement)) {\n toFocus.focus();\n }\n }\n if (this._focusTrap) {\n this._focusTrap.destroy();\n }\n };\n /** Saves a reference to the element that was focused before the bottom sheet was opened. */\n MatBottomSheetContainer.prototype._savePreviouslyFocusedElement = function () {\n var _this = this;\n this._elementFocusedBeforeOpened = this._document.activeElement;\n // The `focus` method isn't available during server-side rendering.\n if (this._elementRef.nativeElement.focus) {\n Promise.resolve().then(function () { return _this._elementRef.nativeElement.focus(); });\n }\n };\n MatBottomSheetContainer.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-bottom-sheet-container',\n template: \"<ng-template cdkPortalOutlet></ng-template>\\r\\n\",\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n encapsulation: i0.ViewEncapsulation.None,\n animations: [matBottomSheetAnimations.bottomSheetState],\n host: {\n 'class': 'mat-bottom-sheet-container',\n 'tabindex': '-1',\n 'role': 'dialog',\n 'aria-modal': 'true',\n '[attr.aria-label]': 'bottomSheetConfig?.ariaLabel',\n '[@state]': '_animationState',\n '(@state.start)': '_onAnimationStart($event)',\n '(@state.done)': '_onAnimationDone($event)'\n },\n styles: [\".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\\n\"]\n }] }\n ];\n /** @nocollapse */\n MatBottomSheetContainer.ctorParameters = function () { return [\n { type: i0.ElementRef },\n { type: i0.ChangeDetectorRef },\n { type: a11y.FocusTrapFactory },\n { type: layout.BreakpointObserver },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [i2.DOCUMENT,] }] },\n { type: MatBottomSheetConfig }\n ]; };\n MatBottomSheetContainer.propDecorators = {\n _portalOutlet: [{ type: i0.ViewChild, args: [portal.CdkPortalOutlet, { static: true },] }]\n };\n return MatBottomSheetContainer;\n }(portal.BasePortalOutlet));\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var MatBottomSheetModule = /** @class */ (function () {\n function MatBottomSheetModule() {\n }\n MatBottomSheetModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [\n i1.OverlayModule,\n core.MatCommonModule,\n portal.PortalModule,\n ],\n exports: [MatBottomSheetContainer, core.MatCommonModule],\n declarations: [MatBottomSheetContainer],\n entryComponents: [MatBottomSheetContainer],\n },] }\n ];\n return MatBottomSheetModule;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Reference to a bottom sheet dispatched from the bottom sheet service.\n */\n var MatBottomSheetRef = /** @class */ (function () {\n function MatBottomSheetRef(containerInstance, _overlayRef, \n // @breaking-change 8.0.0 `_location` parameter to be removed.\n _location) {\n var _this = this;\n this._overlayRef = _overlayRef;\n /** Subject for notifying the user that the bottom sheet has been dismissed. */\n this._afterDismissed = new rxjs.Subject();\n /** Subject for notifying the user that the bottom sheet has opened and appeared. */\n this._afterOpened = new rxjs.Subject();\n this.containerInstance = containerInstance;\n this.disableClose = containerInstance.bottomSheetConfig.disableClose;\n // Emit when opening animation completes\n containerInstance._animationStateChanged.pipe(operators.filter(function (event) { return event.phaseName === 'done' && event.toState === 'visible'; }), operators.take(1))\n .subscribe(function () {\n _this._afterOpened.next();\n _this._afterOpened.complete();\n });\n // Dispose overlay when closing animation is complete\n containerInstance._animationStateChanged\n .pipe(operators.filter(function (event) { return event.phaseName === 'done' && event.toState === 'hidden'; }), operators.take(1))\n .subscribe(function () {\n clearTimeout(_this._closeFallbackTimeout);\n _overlayRef.dispose();\n });\n _overlayRef.detachments().pipe(operators.take(1)).subscribe(function () {\n _this._afterDismissed.next(_this._result);\n _this._afterDismissed.complete();\n });\n rxjs.merge(_overlayRef.backdropClick(), _overlayRef.keydownEvents().pipe(operators.filter(function (event) { return event.keyCode === keycodes.ESCAPE; }))).subscribe(function (event) {\n if (!_this.disableClose &&\n (event.type !== 'keydown' || !keycodes.hasModifierKey(event))) {\n event.preventDefault();\n _this.dismiss();\n }\n });\n }\n /**\n * Dismisses the bottom sheet.\n * @param result Data to be passed back to the bottom sheet opener.\n */\n MatBottomSheetRef.prototype.dismiss = function (result) {\n var _this = this;\n if (!this._afterDismissed.closed) {\n // Transition the backdrop in parallel to the bottom sheet.\n this.containerInstance._animationStateChanged.pipe(operators.filter(function (event) { return event.phaseName === 'start'; }), operators.take(1)).subscribe(function (event) {\n // The logic that disposes of the overlay depends on the exit animation completing, however\n // it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback\n // timeout which will clean everything up if the animation hasn't fired within the specified\n // amount of time plus 100ms. We don't need to run this outside the NgZone, because for the\n // vast majority of cases the timeout will have been cleared before it has fired.\n _this._closeFallbackTimeout = setTimeout(function () {\n _this._overlayRef.dispose();\n }, event.totalTime + 100);\n _this._overlayRef.detachBackdrop();\n });\n this._result = result;\n this.containerInstance.exit();\n }\n };\n /** Gets an observable that is notified when the bottom sheet is finished closing. */\n MatBottomSheetRef.prototype.afterDismissed = function () {\n return this._afterDismissed.asObservable();\n };\n /** Gets an observable that is notified when the bottom sheet has opened and appeared. */\n MatBottomSheetRef.prototype.afterOpened = function () {\n return this._afterOpened.asObservable();\n };\n /**\n * Gets an observable that emits when the overlay's backdrop has been clicked.\n */\n MatBottomSheetRef.prototype.backdropClick = function () {\n return this._overlayRef.backdropClick();\n };\n /**\n * Gets an observable that emits when keydown events are targeted on the overlay.\n */\n MatBottomSheetRef.prototype.keydownEvents = function () {\n return this._overlayRef.keydownEvents();\n };\n return MatBottomSheetRef;\n }());\n\n /** Injection token that can be used to specify default bottom sheet options. */\n var MAT_BOTTOM_SHEET_DEFAULT_OPTIONS = new i0.InjectionToken('mat-bottom-sheet-default-options');\n /**\n * Service to trigger Material Design bottom sheets.\n */\n var MatBottomSheet = /** @class */ (function () {\n function MatBottomSheet(_overlay, _injector, _parentBottomSheet, _location, _defaultOptions) {\n this._overlay = _overlay;\n this._injector = _injector;\n this._parentBottomSheet = _parentBottomSheet;\n this._location = _location;\n this._defaultOptions = _defaultOptions;\n this._bottomSheetRefAtThisLevel = null;\n }\n Object.defineProperty(MatBottomSheet.prototype, \"_openedBottomSheetRef\", {\n /** Reference to the currently opened bottom sheet. */\n get: function () {\n var parent = this._parentBottomSheet;\n return parent ? parent._openedBottomSheetRef : this._bottomSheetRefAtThisLevel;\n },\n set: function (value) {\n if (this._parentBottomSheet) {\n this._parentBottomSheet._openedBottomSheetRef = value;\n }\n else {\n this._bottomSheetRefAtThisLevel = value;\n }\n },\n enumerable: true,\n configurable: true\n });\n MatBottomSheet.prototype.open = function (componentOrTemplateRef, config) {\n var _this = this;\n var _config = _applyConfigDefaults(this._defaultOptions || new MatBottomSheetConfig(), config);\n var overlayRef = this._createOverlay(_config);\n var container = this._attachContainer(overlayRef, _config);\n var ref = new MatBottomSheetRef(container, overlayRef, this._location);\n if (componentOrTemplateRef instanceof i0.TemplateRef) {\n container.attachTemplatePortal(new portal.TemplatePortal(componentOrTemplateRef, null, {\n $implicit: _config.data,\n bottomSheetRef: ref\n }));\n }\n else {\n var portal$1 = new portal.ComponentPortal(componentOrTemplateRef, undefined, this._createInjector(_config, ref));\n var contentRef = container.attachComponentPortal(portal$1);\n ref.instance = contentRef.instance;\n }\n // When the bottom sheet is dismissed, clear the reference to it.\n ref.afterDismissed().subscribe(function () {\n // Clear the bottom sheet ref if it hasn't already been replaced by a newer one.\n if (_this._openedBottomSheetRef == ref) {\n _this._openedBottomSheetRef = null;\n }\n });\n if (this._openedBottomSheetRef) {\n // If a bottom sheet is already in view, dismiss it and enter the\n // new bottom sheet after exit animation is complete.\n this._openedBottomSheetRef.afterDismissed().subscribe(function () { return ref.containerInstance.enter(); });\n this._openedBottomSheetRef.dismiss();\n }\n else {\n // If no bottom sheet is in view, enter the new bottom sheet.\n ref.containerInstance.enter();\n }\n this._openedBottomSheetRef = ref;\n return ref;\n };\n /**\n * Dismisses the currently-visible bottom sheet.\n */\n MatBottomSheet.prototype.dismiss = function () {\n if (this._openedBottomSheetRef) {\n this._openedBottomSheetRef.dismiss();\n }\n };\n MatBottomSheet.prototype.ngOnDestroy = function () {\n if (this._bottomSheetRefAtThisLevel) {\n this._bottomSheetRefAtThisLevel.dismiss();\n }\n };\n /**\n * Attaches the bottom sheet container component to the overlay.\n */\n MatBottomSheet.prototype._attachContainer = function (overlayRef, config) {\n var userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n var injector = new portal.PortalInjector(userInjector || this._injector, new WeakMap([\n [MatBottomSheetConfig, config]\n ]));\n var containerPortal = new portal.ComponentPortal(MatBottomSheetContainer, config.viewContainerRef, injector);\n var containerRef = overlayRef.attach(containerPortal);\n return containerRef.instance;\n };\n /**\n * Creates a new overlay and places it in the correct location.\n * @param config The user-specified bottom sheet config.\n */\n MatBottomSheet.prototype._createOverlay = function (config) {\n var overlayConfig = new i1.OverlayConfig({\n direction: config.direction,\n hasBackdrop: config.hasBackdrop,\n disposeOnNavigation: config.closeOnNavigation,\n maxWidth: '100%',\n scrollStrategy: config.scrollStrategy || this._overlay.scrollStrategies.block(),\n positionStrategy: this._overlay.position().global().centerHorizontally().bottom('0')\n });\n if (config.backdropClass) {\n overlayConfig.backdropClass = config.backdropClass;\n }\n return this._overlay.create(overlayConfig);\n };\n /**\n * Creates an injector to be used inside of a bottom sheet component.\n * @param config Config that was used to create the bottom sheet.\n * @param bottomSheetRef Reference to the bottom sheet.\n */\n MatBottomSheet.prototype._createInjector = function (config, bottomSheetRef) {\n var userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n var injectionTokens = new WeakMap([\n [MatBottomSheetRef, bottomSheetRef],\n [MAT_BOTTOM_SHEET_DATA, config.data]\n ]);\n if (config.direction &&\n (!userInjector || !userInjector.get(bidi.Directionality, null))) {\n injectionTokens.set(bidi.Directionality, {\n value: config.direction,\n change: rxjs.of()\n });\n }\n return new portal.PortalInjector(userInjector || this._injector, injectionTokens);\n };\n MatBottomSheet.decorators = [\n { type: i0.Injectable, args: [{ providedIn: MatBottomSheetModule },] }\n ];\n /** @nocollapse */\n MatBottomSheet.ctorParameters = function () { return [\n { type: i1.Overlay },\n { type: i0.Injector },\n { type: MatBottomSheet, decorators: [{ type: i0.Optional }, { type: i0.SkipSelf }] },\n { type: i2.Location, decorators: [{ type: i0.Optional }] },\n { type: MatBottomSheetConfig, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_BOTTOM_SHEET_DEFAULT_OPTIONS,] }] }\n ]; };\n MatBottomSheet.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatBottomSheet_Factory() { return new MatBottomSheet(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(MatBottomSheet, 12), i0.ɵɵinject(i2.Location, 8), i0.ɵɵinject(MAT_BOTTOM_SHEET_DEFAULT_OPTIONS, 8)); }, token: MatBottomSheet, providedIn: MatBottomSheetModule });\n return MatBottomSheet;\n }());\n /**\n * Applies default options to the bottom sheet config.\n * @param defaults Object containing the default values to which to fall back.\n * @param config The configuration to which the defaults will be applied.\n * @returns The new configuration object with defaults applied.\n */\n function _applyConfigDefaults(defaults, config) {\n return __assign(__assign({}, defaults), config);\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.MAT_BOTTOM_SHEET_DATA = MAT_BOTTOM_SHEET_DATA;\n exports.MAT_BOTTOM_SHEET_DEFAULT_OPTIONS = MAT_BOTTOM_SHEET_DEFAULT_OPTIONS;\n exports.MatBottomSheet = MatBottomSheet;\n exports.MatBottomSheetConfig = MatBottomSheetConfig;\n exports.MatBottomSheetContainer = MatBottomSheetContainer;\n exports.MatBottomSheetModule = MatBottomSheetModule;\n exports.MatBottomSheetRef = MatBottomSheetRef;\n exports.matBottomSheetAnimations = matBottomSheetAnimations;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=material-bottom-sheet.umd.js.map\n"]}
1
+ {"version":3,"sources":["src/material/material-bottom-sheet.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","material","bottomSheet","cdk","overlay","portal","core","layout","animations","common","a11y","bidi","rxjs","keycodes","operators","this","i1","i0","i2","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__assign","assign","t","s","i","n","arguments","length","prototype","call","apply","MAT_BOTTOM_SHEET_DATA","InjectionToken","MatBottomSheetConfig","data","hasBackdrop","disableClose","ariaLabel","closeOnNavigation","autoFocus","restoreFocus","matBottomSheetAnimations","bottomSheetState","trigger","state","style","transform","transition","animate","AnimationDurations","COMPLEX","AnimationCurves","ACCELERATION_CURVE","EXITING","DECELERATION_CURVE","MatBottomSheetContainer","_super","_elementRef","_changeDetectorRef","_focusTrapFactory","breakpointObserver","document","bottomSheetConfig","_this","_animationState","_animationStateChanged","EventEmitter","_elementFocusedBeforeOpened","attachDomPortal","_validatePortalAttached","_setPanelClass","_savePreviouslyFocusedElement","_portalOutlet","_document","_breakpointSubscription","observe","Breakpoints","Medium","Large","XLarge","subscribe","_toggleClass","isMatched","__extends","__","constructor","create","attachComponentPortal","attachTemplatePortal","enter","_destroyed","detectChanges","exit","markForCheck","ngOnDestroy","unsubscribe","_onAnimationDone","event","toState","_restoreFocus","_trapFocus","emit","_onAnimationStart","cssClass","add","classList","nativeElement","remove","hasAttached","Error","element","panelClass","isArray","forEach","_focusTrap","focusInitialElementWhenReady","activeElement","contains","focus","toFocus","body","destroy","Promise","resolve","then","decorators","type","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","host","class","tabindex","role","aria-modal","[attr.aria-label]","[@state]","(@state.start)","(@state.done)","styles","ctorParameters","ElementRef","ChangeDetectorRef","FocusTrapFactory","BreakpointObserver","undefined","Optional","Inject","DOCUMENT","propDecorators","ViewChild","CdkPortalOutlet","static","BasePortalOutlet","MatBottomSheetModule","NgModule","imports","OverlayModule","MatCommonModule","PortalModule","declarations","entryComponents","MatBottomSheetRef","containerInstance","_overlayRef","_location","_afterDismissed","Subject","_afterOpened","pipe","filter","phaseName","take","next","complete","clearTimeout","_closeFallbackTimeout","dispose","detachments","_result","merge","backdropClick","keydownEvents","keyCode","ESCAPE","hasModifierKey","preventDefault","dismiss","result","closed","setTimeout","totalTime","detachBackdrop","afterDismissed","asObservable","afterOpened","MAT_BOTTOM_SHEET_DEFAULT_OPTIONS","MatBottomSheet","_overlay","_injector","_parentBottomSheet","_defaultOptions","_bottomSheetRefAtThisLevel","defineProperty","get","parent","_openedBottomSheetRef","set","value","enumerable","configurable","open","componentOrTemplateRef","config","_config","_applyConfigDefaults","defaults","overlayRef","_createOverlay","container","_attachContainer","ref","TemplateRef","TemplatePortal","$implicit","bottomSheetRef","portal$1","ComponentPortal","_createInjector","contentRef","instance","injector","PortalInjector","viewContainerRef","WeakMap","containerPortal","attach","overlayConfig","OverlayConfig","direction","disposeOnNavigation","maxWidth","scrollStrategy","scrollStrategies","block","positionStrategy","position","centerHorizontally","bottom","backdropClass","userInjector","injectionTokens","Directionality","change","of","Injectable","providedIn","Overlay","Injector","SkipSelf","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eAAiB,WAAc,MAAO,CACjD,CAAErB,KAAMtH,EAAGgQ,SACX,CAAE1I,KAAMrH,EAAGgQ,UACX,CAAE3I,KAAM8E,EAAgB/E,WAAY,CAAC,CAAEC,KAAMrH,EAAGgJ,UAAY,CAAE3B,KAAMrH,EAAGiQ,YACvE,CAAE5I,KAAMpH,EAAGiQ,SAAU9I,WAAY,CAAC,CAAEC,KAAMrH,EAAGgJ,YAC7C,CAAE3B,KAAM7F,EAAsB4F,WAAY,CAAC,CAAEC,KAAMrH,EAAGgJ,UAAY,CAAE3B,KAAMrH,EAAGiJ,OAAQ1B,KAAM,CAAC2E,QAEhGC,EAAegE,MAAQnQ,EAAGoQ,mBAAmB,CAAE5R,QAAS,SAAS6R,IAA2B,OAAO,IAAIlE,EAAenM,EAAGsQ,SAASvQ,EAAGgQ,SAAU/P,EAAGsQ,SAAStQ,EAAGuQ,UAAWvQ,EAAGsQ,SAASnE,EAAgB,IAAKnM,EAAGsQ,SAASrQ,EAAGiQ,SAAU,GAAIlQ,EAAGsQ,SAASpE,EAAkC,KAAQsE,MAAOrE,EAAgB2D,WAAYtG,IACzT2C,EA3IwB,GAmKnC1N,EAAQ6C,sBAAwBA,EAChC7C,EAAQyN,iCAAmCA,EAC3CzN,EAAQ0N,eAAiBA,EACzB1N,EAAQ+C,qBAAuBA,EAC/B/C,EAAQqE,wBAA0BA,EAClCrE,EAAQ+K,qBAAuBA,EAC/B/K,EAAQuL,kBAAoBA,EAC5BvL,EAAQuD,yBAA2BA,EAEnC3B,OAAOoM,eAAehO,EAAS,aAAc,CAAEqO,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/core'), require('@angular/material/core'), require('@angular/cdk/layout'), require('@angular/animations'), require('@angular/common'), require('@angular/cdk/a11y'), require('@angular/cdk/bidi'), require('rxjs'), require('@angular/cdk/keycodes'), require('rxjs/operators')) :\n typeof define === 'function' && define.amd ? define('@angular/material/bottom-sheet', ['exports', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/core', '@angular/material/core', '@angular/cdk/layout', '@angular/animations', '@angular/common', '@angular/cdk/a11y', '@angular/cdk/bidi', 'rxjs', '@angular/cdk/keycodes', 'rxjs/operators'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.bottomSheet = {}), global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.core, global.ng.material.core, global.ng.cdk.layout, global.ng.animations, global.ng.common, global.ng.cdk.a11y, global.ng.cdk.bidi, global.rxjs, global.ng.cdk.keycodes, global.rxjs.operators));\n}(this, (function (exports, i1, portal, i0, core, layout, animations, i2, a11y, bidi, rxjs, keycodes, operators) { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation. All rights reserved.\r\n Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n this file except in compliance with the License. You may obtain a copy of the\r\n License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n See the Apache Version 2.0 License for specific language governing permissions\r\n and limitations under the License.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\r\n\r\n var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n };\r\n\r\n function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n }\r\n\r\n function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n }\r\n\r\n function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n }\r\n\r\n function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n }\r\n\r\n function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n }\r\n\r\n function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n }\r\n\r\n function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n }\r\n\r\n function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n }\r\n\r\n function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n }\r\n\r\n function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n }\r\n\r\n function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n };\r\n\r\n function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n }\r\n\r\n function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n }\r\n\r\n function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n }\r\n\r\n function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n }\r\n\r\n function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n };\r\n\r\n function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n }\r\n\r\n function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Injection token that can be used to access the data that was passed in to a bottom sheet. */\n var MAT_BOTTOM_SHEET_DATA = new i0.InjectionToken('MatBottomSheetData');\n /**\n * Configuration used when opening a bottom sheet.\n */\n var MatBottomSheetConfig = /** @class */ (function () {\n function MatBottomSheetConfig() {\n /** Data being injected into the child component. */\n this.data = null;\n /** Whether the bottom sheet has a backdrop. */\n this.hasBackdrop = true;\n /** Whether the user can use escape or clicking outside to close the bottom sheet. */\n this.disableClose = false;\n /** Aria label to assign to the bottom sheet element. */\n this.ariaLabel = null;\n /**\n * Whether the bottom sheet should close when the user goes backwards/forwards in history.\n * Note that this usually doesn't include clicking on links (unless the user is using\n * the `HashLocationStrategy`).\n */\n this.closeOnNavigation = true;\n // Note that this is disabled by default, because while the a11y recommendations are to focus\n // the first focusable element, doing so prevents screen readers from reading out the\n // rest of the bottom sheet content.\n /** Whether the bottom sheet should focus the first focusable element on open. */\n this.autoFocus = false;\n /**\n * Whether the bottom sheet should restore focus to the\n * previously-focused element, after it's closed.\n */\n this.restoreFocus = true;\n }\n return MatBottomSheetConfig;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Animations used by the Material bottom sheet. */\n var matBottomSheetAnimations = {\n /** Animation that shows and hides a bottom sheet. */\n bottomSheetState: animations.trigger('state', [\n animations.state('void, hidden', animations.style({ transform: 'translateY(100%)' })),\n animations.state('visible', animations.style({ transform: 'translateY(0%)' })),\n animations.transition('visible => void, visible => hidden', animations.animate(core.AnimationDurations.COMPLEX + \" \" + core.AnimationCurves.ACCELERATION_CURVE)),\n animations.transition('void => visible', animations.animate(core.AnimationDurations.EXITING + \" \" + core.AnimationCurves.DECELERATION_CURVE)),\n ])\n };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n // TODO(crisbeto): consolidate some logic between this, MatDialog and MatSnackBar\n /**\n * Internal component that wraps user-provided bottom sheet content.\n * @docs-private\n */\n var MatBottomSheetContainer = /** @class */ (function (_super) {\n __extends(MatBottomSheetContainer, _super);\n function MatBottomSheetContainer(_elementRef, _changeDetectorRef, _focusTrapFactory, breakpointObserver, document, \n /** The bottom sheet configuration. */\n bottomSheetConfig) {\n var _this = _super.call(this) || this;\n _this._elementRef = _elementRef;\n _this._changeDetectorRef = _changeDetectorRef;\n _this._focusTrapFactory = _focusTrapFactory;\n _this.bottomSheetConfig = bottomSheetConfig;\n /** The state of the bottom sheet animations. */\n _this._animationState = 'void';\n /** Emits whenever the state of the animation changes. */\n _this._animationStateChanged = new i0.EventEmitter();\n /** Element that was focused before the bottom sheet was opened. */\n _this._elementFocusedBeforeOpened = null;\n /**\n * Attaches a DOM portal to the bottom sheet container.\n * @deprecated To be turned into a method.\n * @breaking-change 10.0.0\n */\n _this.attachDomPortal = function (portal) {\n _this._validatePortalAttached();\n _this._setPanelClass();\n _this._savePreviouslyFocusedElement();\n return _this._portalOutlet.attachDomPortal(portal);\n };\n _this._document = document;\n _this._breakpointSubscription = breakpointObserver\n .observe([layout.Breakpoints.Medium, layout.Breakpoints.Large, layout.Breakpoints.XLarge])\n .subscribe(function () {\n _this._toggleClass('mat-bottom-sheet-container-medium', breakpointObserver.isMatched(layout.Breakpoints.Medium));\n _this._toggleClass('mat-bottom-sheet-container-large', breakpointObserver.isMatched(layout.Breakpoints.Large));\n _this._toggleClass('mat-bottom-sheet-container-xlarge', breakpointObserver.isMatched(layout.Breakpoints.XLarge));\n });\n return _this;\n }\n /** Attach a component portal as content to this bottom sheet container. */\n MatBottomSheetContainer.prototype.attachComponentPortal = function (portal) {\n this._validatePortalAttached();\n this._setPanelClass();\n this._savePreviouslyFocusedElement();\n return this._portalOutlet.attachComponentPortal(portal);\n };\n /** Attach a template portal as content to this bottom sheet container. */\n MatBottomSheetContainer.prototype.attachTemplatePortal = function (portal) {\n this._validatePortalAttached();\n this._setPanelClass();\n this._savePreviouslyFocusedElement();\n return this._portalOutlet.attachTemplatePortal(portal);\n };\n /** Begin animation of bottom sheet entrance into view. */\n MatBottomSheetContainer.prototype.enter = function () {\n if (!this._destroyed) {\n this._animationState = 'visible';\n this._changeDetectorRef.detectChanges();\n }\n };\n /** Begin animation of the bottom sheet exiting from view. */\n MatBottomSheetContainer.prototype.exit = function () {\n if (!this._destroyed) {\n this._animationState = 'hidden';\n this._changeDetectorRef.markForCheck();\n }\n };\n MatBottomSheetContainer.prototype.ngOnDestroy = function () {\n this._breakpointSubscription.unsubscribe();\n this._destroyed = true;\n };\n MatBottomSheetContainer.prototype._onAnimationDone = function (event) {\n if (event.toState === 'hidden') {\n this._restoreFocus();\n }\n else if (event.toState === 'visible') {\n this._trapFocus();\n }\n this._animationStateChanged.emit(event);\n };\n MatBottomSheetContainer.prototype._onAnimationStart = function (event) {\n this._animationStateChanged.emit(event);\n };\n MatBottomSheetContainer.prototype._toggleClass = function (cssClass, add) {\n var classList = this._elementRef.nativeElement.classList;\n add ? classList.add(cssClass) : classList.remove(cssClass);\n };\n MatBottomSheetContainer.prototype._validatePortalAttached = function () {\n if (this._portalOutlet.hasAttached()) {\n throw Error('Attempting to attach bottom sheet content after content is already attached');\n }\n };\n MatBottomSheetContainer.prototype._setPanelClass = function () {\n var element = this._elementRef.nativeElement;\n var panelClass = this.bottomSheetConfig.panelClass;\n if (Array.isArray(panelClass)) {\n // Note that we can't use a spread here, because IE doesn't support multiple arguments.\n panelClass.forEach(function (cssClass) { return element.classList.add(cssClass); });\n }\n else if (panelClass) {\n element.classList.add(panelClass);\n }\n };\n /** Moves the focus inside the focus trap. */\n MatBottomSheetContainer.prototype._trapFocus = function () {\n var element = this._elementRef.nativeElement;\n if (!this._focusTrap) {\n this._focusTrap = this._focusTrapFactory.create(element);\n }\n if (this.bottomSheetConfig.autoFocus) {\n this._focusTrap.focusInitialElementWhenReady();\n }\n else {\n var activeElement = this._document.activeElement;\n // Otherwise ensure that focus is on the container. It's possible that a different\n // component tried to move focus while the open animation was running. See:\n // https://github.com/angular/components/issues/16215. Note that we only want to do this\n // if the focus isn't inside the bottom sheet already, because it's possible that the\n // consumer turned off `autoFocus` in order to move focus themselves.\n if (activeElement !== element && !element.contains(activeElement)) {\n element.focus();\n }\n }\n };\n /** Restores focus to the element that was focused before the bottom sheet was opened. */\n MatBottomSheetContainer.prototype._restoreFocus = function () {\n var toFocus = this._elementFocusedBeforeOpened;\n // We need the extra check, because IE can set the `activeElement` to null in some cases.\n if (this.bottomSheetConfig.restoreFocus && toFocus && typeof toFocus.focus === 'function') {\n var activeElement = this._document.activeElement;\n var element = this._elementRef.nativeElement;\n // Make sure that focus is still inside the bottom sheet or is on the body (usually because a\n // non-focusable element like the backdrop was clicked) before moving it. It's possible that\n // the consumer moved it themselves before the animation was done, in which case we shouldn't\n // do anything.\n if (!activeElement || activeElement === this._document.body || activeElement === element ||\n element.contains(activeElement)) {\n toFocus.focus();\n }\n }\n if (this._focusTrap) {\n this._focusTrap.destroy();\n }\n };\n /** Saves a reference to the element that was focused before the bottom sheet was opened. */\n MatBottomSheetContainer.prototype._savePreviouslyFocusedElement = function () {\n var _this = this;\n this._elementFocusedBeforeOpened = this._document.activeElement;\n // The `focus` method isn't available during server-side rendering.\n if (this._elementRef.nativeElement.focus) {\n Promise.resolve().then(function () { return _this._elementRef.nativeElement.focus(); });\n }\n };\n MatBottomSheetContainer.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-bottom-sheet-container',\n template: \"<ng-template cdkPortalOutlet></ng-template>\\r\\n\",\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n encapsulation: i0.ViewEncapsulation.None,\n animations: [matBottomSheetAnimations.bottomSheetState],\n host: {\n 'class': 'mat-bottom-sheet-container',\n 'tabindex': '-1',\n 'role': 'dialog',\n 'aria-modal': 'true',\n '[attr.aria-label]': 'bottomSheetConfig?.ariaLabel',\n '[@state]': '_animationState',\n '(@state.start)': '_onAnimationStart($event)',\n '(@state.done)': '_onAnimationDone($event)'\n },\n styles: [\".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\\n\"]\n }] }\n ];\n /** @nocollapse */\n MatBottomSheetContainer.ctorParameters = function () { return [\n { type: i0.ElementRef },\n { type: i0.ChangeDetectorRef },\n { type: a11y.FocusTrapFactory },\n { type: layout.BreakpointObserver },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [i2.DOCUMENT,] }] },\n { type: MatBottomSheetConfig }\n ]; };\n MatBottomSheetContainer.propDecorators = {\n _portalOutlet: [{ type: i0.ViewChild, args: [portal.CdkPortalOutlet, { static: true },] }]\n };\n return MatBottomSheetContainer;\n }(portal.BasePortalOutlet));\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var MatBottomSheetModule = /** @class */ (function () {\n function MatBottomSheetModule() {\n }\n MatBottomSheetModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [\n i1.OverlayModule,\n core.MatCommonModule,\n portal.PortalModule,\n ],\n exports: [MatBottomSheetContainer, core.MatCommonModule],\n declarations: [MatBottomSheetContainer],\n entryComponents: [MatBottomSheetContainer],\n },] }\n ];\n return MatBottomSheetModule;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Reference to a bottom sheet dispatched from the bottom sheet service.\n */\n var MatBottomSheetRef = /** @class */ (function () {\n function MatBottomSheetRef(containerInstance, _overlayRef, \n // @breaking-change 8.0.0 `_location` parameter to be removed.\n _location) {\n var _this = this;\n this._overlayRef = _overlayRef;\n /** Subject for notifying the user that the bottom sheet has been dismissed. */\n this._afterDismissed = new rxjs.Subject();\n /** Subject for notifying the user that the bottom sheet has opened and appeared. */\n this._afterOpened = new rxjs.Subject();\n this.containerInstance = containerInstance;\n this.disableClose = containerInstance.bottomSheetConfig.disableClose;\n // Emit when opening animation completes\n containerInstance._animationStateChanged.pipe(operators.filter(function (event) { return event.phaseName === 'done' && event.toState === 'visible'; }), operators.take(1))\n .subscribe(function () {\n _this._afterOpened.next();\n _this._afterOpened.complete();\n });\n // Dispose overlay when closing animation is complete\n containerInstance._animationStateChanged\n .pipe(operators.filter(function (event) { return event.phaseName === 'done' && event.toState === 'hidden'; }), operators.take(1))\n .subscribe(function () {\n clearTimeout(_this._closeFallbackTimeout);\n _overlayRef.dispose();\n });\n _overlayRef.detachments().pipe(operators.take(1)).subscribe(function () {\n _this._afterDismissed.next(_this._result);\n _this._afterDismissed.complete();\n });\n rxjs.merge(_overlayRef.backdropClick(), _overlayRef.keydownEvents().pipe(operators.filter(function (event) { return event.keyCode === keycodes.ESCAPE; }))).subscribe(function (event) {\n if (!_this.disableClose &&\n (event.type !== 'keydown' || !keycodes.hasModifierKey(event))) {\n event.preventDefault();\n _this.dismiss();\n }\n });\n }\n /**\n * Dismisses the bottom sheet.\n * @param result Data to be passed back to the bottom sheet opener.\n */\n MatBottomSheetRef.prototype.dismiss = function (result) {\n var _this = this;\n if (!this._afterDismissed.closed) {\n // Transition the backdrop in parallel to the bottom sheet.\n this.containerInstance._animationStateChanged.pipe(operators.filter(function (event) { return event.phaseName === 'start'; }), operators.take(1)).subscribe(function (event) {\n // The logic that disposes of the overlay depends on the exit animation completing, however\n // it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback\n // timeout which will clean everything up if the animation hasn't fired within the specified\n // amount of time plus 100ms. We don't need to run this outside the NgZone, because for the\n // vast majority of cases the timeout will have been cleared before it has fired.\n _this._closeFallbackTimeout = setTimeout(function () {\n _this._overlayRef.dispose();\n }, event.totalTime + 100);\n _this._overlayRef.detachBackdrop();\n });\n this._result = result;\n this.containerInstance.exit();\n }\n };\n /** Gets an observable that is notified when the bottom sheet is finished closing. */\n MatBottomSheetRef.prototype.afterDismissed = function () {\n return this._afterDismissed.asObservable();\n };\n /** Gets an observable that is notified when the bottom sheet has opened and appeared. */\n MatBottomSheetRef.prototype.afterOpened = function () {\n return this._afterOpened.asObservable();\n };\n /**\n * Gets an observable that emits when the overlay's backdrop has been clicked.\n */\n MatBottomSheetRef.prototype.backdropClick = function () {\n return this._overlayRef.backdropClick();\n };\n /**\n * Gets an observable that emits when keydown events are targeted on the overlay.\n */\n MatBottomSheetRef.prototype.keydownEvents = function () {\n return this._overlayRef.keydownEvents();\n };\n return MatBottomSheetRef;\n }());\n\n /** Injection token that can be used to specify default bottom sheet options. */\n var MAT_BOTTOM_SHEET_DEFAULT_OPTIONS = new i0.InjectionToken('mat-bottom-sheet-default-options');\n /**\n * Service to trigger Material Design bottom sheets.\n */\n var MatBottomSheet = /** @class */ (function () {\n function MatBottomSheet(_overlay, _injector, _parentBottomSheet, _location, _defaultOptions) {\n this._overlay = _overlay;\n this._injector = _injector;\n this._parentBottomSheet = _parentBottomSheet;\n this._location = _location;\n this._defaultOptions = _defaultOptions;\n this._bottomSheetRefAtThisLevel = null;\n }\n Object.defineProperty(MatBottomSheet.prototype, \"_openedBottomSheetRef\", {\n /** Reference to the currently opened bottom sheet. */\n get: function () {\n var parent = this._parentBottomSheet;\n return parent ? parent._openedBottomSheetRef : this._bottomSheetRefAtThisLevel;\n },\n set: function (value) {\n if (this._parentBottomSheet) {\n this._parentBottomSheet._openedBottomSheetRef = value;\n }\n else {\n this._bottomSheetRefAtThisLevel = value;\n }\n },\n enumerable: true,\n configurable: true\n });\n MatBottomSheet.prototype.open = function (componentOrTemplateRef, config) {\n var _this = this;\n var _config = _applyConfigDefaults(this._defaultOptions || new MatBottomSheetConfig(), config);\n var overlayRef = this._createOverlay(_config);\n var container = this._attachContainer(overlayRef, _config);\n var ref = new MatBottomSheetRef(container, overlayRef, this._location);\n if (componentOrTemplateRef instanceof i0.TemplateRef) {\n container.attachTemplatePortal(new portal.TemplatePortal(componentOrTemplateRef, null, {\n $implicit: _config.data,\n bottomSheetRef: ref\n }));\n }\n else {\n var portal$1 = new portal.ComponentPortal(componentOrTemplateRef, undefined, this._createInjector(_config, ref));\n var contentRef = container.attachComponentPortal(portal$1);\n ref.instance = contentRef.instance;\n }\n // When the bottom sheet is dismissed, clear the reference to it.\n ref.afterDismissed().subscribe(function () {\n // Clear the bottom sheet ref if it hasn't already been replaced by a newer one.\n if (_this._openedBottomSheetRef == ref) {\n _this._openedBottomSheetRef = null;\n }\n });\n if (this._openedBottomSheetRef) {\n // If a bottom sheet is already in view, dismiss it and enter the\n // new bottom sheet after exit animation is complete.\n this._openedBottomSheetRef.afterDismissed().subscribe(function () { return ref.containerInstance.enter(); });\n this._openedBottomSheetRef.dismiss();\n }\n else {\n // If no bottom sheet is in view, enter the new bottom sheet.\n ref.containerInstance.enter();\n }\n this._openedBottomSheetRef = ref;\n return ref;\n };\n /**\n * Dismisses the currently-visible bottom sheet.\n * @param result Data to pass to the bottom sheet instance.\n */\n MatBottomSheet.prototype.dismiss = function (result) {\n if (this._openedBottomSheetRef) {\n this._openedBottomSheetRef.dismiss(result);\n }\n };\n MatBottomSheet.prototype.ngOnDestroy = function () {\n if (this._bottomSheetRefAtThisLevel) {\n this._bottomSheetRefAtThisLevel.dismiss();\n }\n };\n /**\n * Attaches the bottom sheet container component to the overlay.\n */\n MatBottomSheet.prototype._attachContainer = function (overlayRef, config) {\n var userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n var injector = new portal.PortalInjector(userInjector || this._injector, new WeakMap([\n [MatBottomSheetConfig, config]\n ]));\n var containerPortal = new portal.ComponentPortal(MatBottomSheetContainer, config.viewContainerRef, injector);\n var containerRef = overlayRef.attach(containerPortal);\n return containerRef.instance;\n };\n /**\n * Creates a new overlay and places it in the correct location.\n * @param config The user-specified bottom sheet config.\n */\n MatBottomSheet.prototype._createOverlay = function (config) {\n var overlayConfig = new i1.OverlayConfig({\n direction: config.direction,\n hasBackdrop: config.hasBackdrop,\n disposeOnNavigation: config.closeOnNavigation,\n maxWidth: '100%',\n scrollStrategy: config.scrollStrategy || this._overlay.scrollStrategies.block(),\n positionStrategy: this._overlay.position().global().centerHorizontally().bottom('0')\n });\n if (config.backdropClass) {\n overlayConfig.backdropClass = config.backdropClass;\n }\n return this._overlay.create(overlayConfig);\n };\n /**\n * Creates an injector to be used inside of a bottom sheet component.\n * @param config Config that was used to create the bottom sheet.\n * @param bottomSheetRef Reference to the bottom sheet.\n */\n MatBottomSheet.prototype._createInjector = function (config, bottomSheetRef) {\n var userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n var injectionTokens = new WeakMap([\n [MatBottomSheetRef, bottomSheetRef],\n [MAT_BOTTOM_SHEET_DATA, config.data]\n ]);\n if (config.direction &&\n (!userInjector || !userInjector.get(bidi.Directionality, null))) {\n injectionTokens.set(bidi.Directionality, {\n value: config.direction,\n change: rxjs.of()\n });\n }\n return new portal.PortalInjector(userInjector || this._injector, injectionTokens);\n };\n MatBottomSheet.decorators = [\n { type: i0.Injectable, args: [{ providedIn: MatBottomSheetModule },] }\n ];\n /** @nocollapse */\n MatBottomSheet.ctorParameters = function () { return [\n { type: i1.Overlay },\n { type: i0.Injector },\n { type: MatBottomSheet, decorators: [{ type: i0.Optional }, { type: i0.SkipSelf }] },\n { type: i2.Location, decorators: [{ type: i0.Optional }] },\n { type: MatBottomSheetConfig, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_BOTTOM_SHEET_DEFAULT_OPTIONS,] }] }\n ]; };\n MatBottomSheet.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatBottomSheet_Factory() { return new MatBottomSheet(i0.ɵɵinject(i1.Overlay), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(MatBottomSheet, 12), i0.ɵɵinject(i2.Location, 8), i0.ɵɵinject(MAT_BOTTOM_SHEET_DEFAULT_OPTIONS, 8)); }, token: MatBottomSheet, providedIn: MatBottomSheetModule });\n return MatBottomSheet;\n }());\n /**\n * Applies default options to the bottom sheet config.\n * @param defaults Object containing the default values to which to fall back.\n * @param config The configuration to which the defaults will be applied.\n * @returns The new configuration object with defaults applied.\n */\n function _applyConfigDefaults(defaults, config) {\n return __assign(__assign({}, defaults), config);\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.MAT_BOTTOM_SHEET_DATA = MAT_BOTTOM_SHEET_DATA;\n exports.MAT_BOTTOM_SHEET_DEFAULT_OPTIONS = MAT_BOTTOM_SHEET_DEFAULT_OPTIONS;\n exports.MatBottomSheet = MatBottomSheet;\n exports.MatBottomSheetConfig = MatBottomSheetConfig;\n exports.MatBottomSheetContainer = MatBottomSheetContainer;\n exports.MatBottomSheetModule = MatBottomSheetModule;\n exports.MatBottomSheetRef = MatBottomSheetRef;\n exports.matBottomSheetAnimations = matBottomSheetAnimations;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=material-bottom-sheet.umd.js.map\n"]}
@@ -408,7 +408,7 @@
408
408
  // the side-effect is that we may end up updating the model value out of sequence in others
409
409
  // The `deferEvents` flag allows us to decide whether to do it on a case-by-case basis.
410
410
  if (deferEvents) {
411
- Promise.resolve(function () { return _this._updateModelValue(isUserInput); });
411
+ Promise.resolve().then(function () { return _this._updateModelValue(isUserInput); });
412
412
  }
413
413
  else {
414
414
  this._updateModelValue(isUserInput);
@@ -590,14 +590,24 @@
590
590
  configurable: true
591
591
  });
592
592
  MatButtonToggle.prototype.ngOnInit = function () {
593
- this._isSingleSelector = this.buttonToggleGroup && !this.buttonToggleGroup.multiple;
593
+ var group = this.buttonToggleGroup;
594
+ this._isSingleSelector = group && !group.multiple;
594
595
  this._type = this._isSingleSelector ? 'radio' : 'checkbox';
595
596
  this.id = this.id || "mat-button-toggle-" + _uniqueIdCounter++;
596
597
  if (this._isSingleSelector) {
597
- this.name = this.buttonToggleGroup.name;
598
+ this.name = group.name;
598
599
  }
599
- if (this.buttonToggleGroup && this.buttonToggleGroup._isPrechecked(this)) {
600
- this.checked = true;
600
+ if (group) {
601
+ if (group._isPrechecked(this)) {
602
+ this.checked = true;
603
+ }
604
+ else if (group._isSelected(this) !== this._checked) {
605
+ // As as side effect of the circular dependency between the toggle group and the button,
606
+ // we may end up in a state where the button is supposed to be checked on init, but it
607
+ // isn't, because the checked value was assigned too early. This can happen when Ivy
608
+ // assigns the static input value before the `ngOnInit` has run.
609
+ group._syncButtonToggle(this, this._checked);
610
+ }
601
611
  }
602
612
  this._focusMonitor.monitor(this._elementRef, true);
603
613
  };
@@ -650,7 +660,7 @@
650
660
  '[class.mat-button-toggle-checked]': 'checked',
651
661
  '[class.mat-button-toggle-disabled]': 'disabled',
652
662
  '[class.mat-button-toggle-appearance-standard]': 'appearance === "standard"',
653
- 'class': 'mat-button-toggle mat-focus-indicator',
663
+ 'class': 'mat-button-toggle',
654
664
  // Always reset the tabindex to -1 so it doesn't conflict with the one on the `button`,
655
665
  // but can still receive focus from things like cdkFocusInitial.
656
666
  '[attr.tabindex]': '-1',