@angular/material 7.0.3 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (447) hide show
  1. package/_theming.scss +57 -49
  2. package/autocomplete/typings/index.d.ts +1 -1
  3. package/autocomplete/typings/index.metadata.json +1 -1
  4. package/badge/typings/index.metadata.json +1 -1
  5. package/bottom-sheet/typings/bottom-sheet-config.d.ts +5 -0
  6. package/bottom-sheet/typings/bottom-sheet-container.d.ts +1 -1
  7. package/bottom-sheet/typings/index.metadata.json +1 -1
  8. package/bundles/material-autocomplete.umd.js +124 -30
  9. package/bundles/material-autocomplete.umd.js.map +1 -1
  10. package/bundles/material-autocomplete.umd.min.js +1 -1
  11. package/bundles/material-autocomplete.umd.min.js.map +1 -1
  12. package/bundles/material-badge.umd.js +38 -5
  13. package/bundles/material-badge.umd.js.map +1 -1
  14. package/bundles/material-badge.umd.min.js +1 -1
  15. package/bundles/material-badge.umd.min.js.map +1 -1
  16. package/bundles/material-bottom-sheet.umd.js +68 -25
  17. package/bundles/material-bottom-sheet.umd.js.map +1 -1
  18. package/bundles/material-bottom-sheet.umd.min.js +1 -1
  19. package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
  20. package/bundles/material-button-toggle.umd.js +40 -15
  21. package/bundles/material-button-toggle.umd.js.map +1 -1
  22. package/bundles/material-button-toggle.umd.min.js +1 -1
  23. package/bundles/material-button-toggle.umd.min.js.map +1 -1
  24. package/bundles/material-button.umd.js +19 -12
  25. package/bundles/material-button.umd.js.map +1 -1
  26. package/bundles/material-button.umd.min.js +1 -1
  27. package/bundles/material-button.umd.min.js.map +1 -1
  28. package/bundles/material-card.umd.js +2 -2
  29. package/bundles/material-card.umd.js.map +1 -1
  30. package/bundles/material-card.umd.min.js.map +1 -1
  31. package/bundles/material-checkbox.umd.js +56 -15
  32. package/bundles/material-checkbox.umd.js.map +1 -1
  33. package/bundles/material-checkbox.umd.min.js +1 -1
  34. package/bundles/material-checkbox.umd.min.js.map +1 -1
  35. package/bundles/material-chips.umd.js +124 -34
  36. package/bundles/material-chips.umd.js.map +1 -1
  37. package/bundles/material-chips.umd.min.js +1 -1
  38. package/bundles/material-chips.umd.min.js.map +1 -1
  39. package/bundles/material-core.umd.js +186 -123
  40. package/bundles/material-core.umd.js.map +1 -1
  41. package/bundles/material-core.umd.min.js +2 -1
  42. package/bundles/material-core.umd.min.js.map +1 -1
  43. package/bundles/material-datepicker.umd.js +241 -59
  44. package/bundles/material-datepicker.umd.js.map +1 -1
  45. package/bundles/material-datepicker.umd.min.js +2 -2
  46. package/bundles/material-datepicker.umd.min.js.map +1 -1
  47. package/bundles/material-dialog.umd.js +136 -44
  48. package/bundles/material-dialog.umd.js.map +1 -1
  49. package/bundles/material-dialog.umd.min.js +1 -1
  50. package/bundles/material-dialog.umd.min.js.map +1 -1
  51. package/bundles/material-divider.umd.js +2 -2
  52. package/bundles/material-divider.umd.js.map +1 -1
  53. package/bundles/material-divider.umd.min.js.map +1 -1
  54. package/bundles/material-expansion.umd.js +32 -22
  55. package/bundles/material-expansion.umd.js.map +1 -1
  56. package/bundles/material-expansion.umd.min.js +1 -1
  57. package/bundles/material-expansion.umd.min.js.map +1 -1
  58. package/bundles/material-form-field.umd.js +120 -32
  59. package/bundles/material-form-field.umd.js.map +1 -1
  60. package/bundles/material-form-field.umd.min.js +1 -1
  61. package/bundles/material-form-field.umd.min.js.map +1 -1
  62. package/bundles/material-grid-list.umd.js +66 -15
  63. package/bundles/material-grid-list.umd.js.map +1 -1
  64. package/bundles/material-grid-list.umd.min.js +1 -1
  65. package/bundles/material-grid-list.umd.min.js.map +1 -1
  66. package/bundles/material-icon.umd.js +280 -79
  67. package/bundles/material-icon.umd.js.map +1 -1
  68. package/bundles/material-icon.umd.min.js +1 -1
  69. package/bundles/material-icon.umd.min.js.map +1 -1
  70. package/bundles/material-input.umd.js +46 -24
  71. package/bundles/material-input.umd.js.map +1 -1
  72. package/bundles/material-input.umd.min.js +1 -1
  73. package/bundles/material-input.umd.min.js.map +1 -1
  74. package/bundles/material-list.umd.js +71 -22
  75. package/bundles/material-list.umd.js.map +1 -1
  76. package/bundles/material-list.umd.min.js +2 -6
  77. package/bundles/material-list.umd.min.js.map +1 -1
  78. package/bundles/material-menu.umd.js +157 -55
  79. package/bundles/material-menu.umd.js.map +1 -1
  80. package/bundles/material-menu.umd.min.js +1 -1
  81. package/bundles/material-menu.umd.min.js.map +1 -1
  82. package/bundles/material-paginator.umd.js +52 -10
  83. package/bundles/material-paginator.umd.js.map +1 -1
  84. package/bundles/material-paginator.umd.min.js +1 -1
  85. package/bundles/material-paginator.umd.min.js.map +1 -1
  86. package/bundles/material-progress-bar.umd.js +35 -14
  87. package/bundles/material-progress-bar.umd.js.map +1 -1
  88. package/bundles/material-progress-bar.umd.min.js +1 -1
  89. package/bundles/material-progress-bar.umd.min.js.map +1 -1
  90. package/bundles/material-progress-spinner.umd.js +29 -13
  91. package/bundles/material-progress-spinner.umd.js.map +1 -1
  92. package/bundles/material-progress-spinner.umd.min.js.map +1 -1
  93. package/bundles/material-radio.umd.js +26 -7
  94. package/bundles/material-radio.umd.js.map +1 -1
  95. package/bundles/material-radio.umd.min.js.map +1 -1
  96. package/bundles/material-select.umd.js +178 -49
  97. package/bundles/material-select.umd.js.map +1 -1
  98. package/bundles/material-select.umd.min.js +1 -1
  99. package/bundles/material-select.umd.min.js.map +1 -1
  100. package/bundles/material-sidenav.umd.js +102 -23
  101. package/bundles/material-sidenav.umd.js.map +1 -1
  102. package/bundles/material-sidenav.umd.min.js +1 -1
  103. package/bundles/material-sidenav.umd.min.js.map +1 -1
  104. package/bundles/material-slide-toggle.umd.js +33 -15
  105. package/bundles/material-slide-toggle.umd.js.map +1 -1
  106. package/bundles/material-slide-toggle.umd.min.js +1 -1
  107. package/bundles/material-slide-toggle.umd.min.js.map +1 -1
  108. package/bundles/material-slider.umd.js +89 -19
  109. package/bundles/material-slider.umd.js.map +1 -1
  110. package/bundles/material-slider.umd.min.js +1 -1
  111. package/bundles/material-slider.umd.min.js.map +1 -1
  112. package/bundles/material-snack-bar.umd.js +74 -22
  113. package/bundles/material-snack-bar.umd.js.map +1 -1
  114. package/bundles/material-snack-bar.umd.min.js +1 -1
  115. package/bundles/material-snack-bar.umd.min.js.map +1 -1
  116. package/bundles/material-sort.umd.js +45 -23
  117. package/bundles/material-sort.umd.js.map +1 -1
  118. package/bundles/material-sort.umd.min.js.map +1 -1
  119. package/bundles/material-stepper.umd.js +37 -44
  120. package/bundles/material-stepper.umd.js.map +1 -1
  121. package/bundles/material-stepper.umd.min.js +1 -1
  122. package/bundles/material-stepper.umd.min.js.map +1 -1
  123. package/bundles/material-table.umd.js +29 -19
  124. package/bundles/material-table.umd.js.map +1 -1
  125. package/bundles/material-table.umd.min.js +1 -1
  126. package/bundles/material-table.umd.min.js.map +1 -1
  127. package/bundles/material-tabs.umd.js +156 -56
  128. package/bundles/material-tabs.umd.js.map +1 -1
  129. package/bundles/material-tabs.umd.min.js +2 -2
  130. package/bundles/material-tabs.umd.min.js.map +1 -1
  131. package/bundles/material-toolbar.umd.js +13 -3
  132. package/bundles/material-toolbar.umd.js.map +1 -1
  133. package/bundles/material-toolbar.umd.min.js.map +1 -1
  134. package/bundles/material-tooltip.umd.js +52 -25
  135. package/bundles/material-tooltip.umd.js.map +1 -1
  136. package/bundles/material-tooltip.umd.min.js.map +1 -1
  137. package/bundles/material-tree.umd.js +25 -26
  138. package/bundles/material-tree.umd.js.map +1 -1
  139. package/bundles/material-tree.umd.min.js +1 -1
  140. package/bundles/material-tree.umd.min.js.map +1 -1
  141. package/bundles/material.umd.js +2780 -979
  142. package/bundles/material.umd.js.map +1 -1
  143. package/bundles/material.umd.min.js +19 -21
  144. package/bundles/material.umd.min.js.map +1 -1
  145. package/button/typings/button.d.ts +0 -5
  146. package/button/typings/index.metadata.json +1 -1
  147. package/button-toggle/typings/index.metadata.json +1 -1
  148. package/checkbox/typings/index.metadata.json +1 -1
  149. package/chips/typings/chip-list.d.ts +1 -1
  150. package/chips/typings/chip.d.ts +2 -2
  151. package/chips/typings/index.metadata.json +1 -1
  152. package/core/typings/index.metadata.json +1 -1
  153. package/core/typings/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
  154. package/core/typings/public-api.d.ts +1 -1
  155. package/datepicker/typings/calendar-body.d.ts +21 -5
  156. package/datepicker/typings/calendar.d.ts +4 -1
  157. package/datepicker/typings/datepicker-toggle.d.ts +5 -0
  158. package/datepicker/typings/datepicker.d.ts +3 -0
  159. package/datepicker/typings/index.metadata.json +1 -1
  160. package/datepicker/typings/month-view.d.ts +4 -2
  161. package/dialog/typings/index.metadata.json +1 -1
  162. package/esm2015/autocomplete.js +58 -27
  163. package/esm2015/autocomplete.js.map +1 -1
  164. package/esm2015/badge.js +29 -6
  165. package/esm2015/badge.js.map +1 -1
  166. package/esm2015/bottom-sheet.js +46 -27
  167. package/esm2015/bottom-sheet.js.map +1 -1
  168. package/esm2015/button-toggle.js +24 -13
  169. package/esm2015/button-toggle.js.map +1 -1
  170. package/esm2015/button.js +18 -13
  171. package/esm2015/button.js.map +1 -1
  172. package/esm2015/card.js +4 -4
  173. package/esm2015/card.js.map +1 -1
  174. package/esm2015/checkbox.js +30 -12
  175. package/esm2015/checkbox.js.map +1 -1
  176. package/esm2015/chips.js +64 -28
  177. package/esm2015/chips.js.map +1 -1
  178. package/esm2015/core.js +145 -126
  179. package/esm2015/core.js.map +1 -1
  180. package/esm2015/datepicker.js +131 -44
  181. package/esm2015/datepicker.js.map +1 -1
  182. package/esm2015/dialog.js +76 -45
  183. package/esm2015/dialog.js.map +1 -1
  184. package/esm2015/divider.js +4 -4
  185. package/esm2015/divider.js.map +1 -1
  186. package/esm2015/expansion.js +35 -25
  187. package/esm2015/expansion.js.map +1 -1
  188. package/esm2015/form-field.js +93 -34
  189. package/esm2015/form-field.js.map +1 -1
  190. package/esm2015/grid-list.js +45 -17
  191. package/esm2015/grid-list.js.map +1 -1
  192. package/esm2015/icon.js +139 -68
  193. package/esm2015/icon.js.map +1 -1
  194. package/esm2015/input.js +40 -23
  195. package/esm2015/input.js.map +1 -1
  196. package/esm2015/list.js +49 -23
  197. package/esm2015/list.js.map +1 -1
  198. package/esm2015/material.js +10 -9
  199. package/esm2015/material.js.map +1 -1
  200. package/esm2015/menu.js +100 -53
  201. package/esm2015/menu.js.map +1 -1
  202. package/esm2015/paginator.js +35 -12
  203. package/esm2015/paginator.js.map +1 -1
  204. package/esm2015/progress-bar.js +30 -15
  205. package/esm2015/progress-bar.js.map +1 -1
  206. package/esm2015/progress-spinner.js +24 -14
  207. package/esm2015/progress-spinner.js.map +1 -1
  208. package/esm2015/radio.js +17 -7
  209. package/esm2015/radio.js.map +1 -1
  210. package/esm2015/select.js +103 -50
  211. package/esm2015/select.js.map +1 -1
  212. package/esm2015/sidenav.js +73 -26
  213. package/esm2015/sidenav.js.map +1 -1
  214. package/esm2015/slide-toggle.js +26 -16
  215. package/esm2015/slide-toggle.js.map +1 -1
  216. package/esm2015/slider.js +50 -20
  217. package/esm2015/slider.js.map +1 -1
  218. package/esm2015/snack-bar.js +44 -24
  219. package/esm2015/snack-bar.js.map +1 -1
  220. package/esm2015/sort.js +46 -23
  221. package/esm2015/sort.js.map +1 -1
  222. package/esm2015/stepper.js +35 -39
  223. package/esm2015/stepper.js.map +1 -1
  224. package/esm2015/table.js +31 -21
  225. package/esm2015/table.js.map +1 -1
  226. package/esm2015/tabs.js +110 -52
  227. package/esm2015/tabs.js.map +1 -1
  228. package/esm2015/toolbar.js +8 -4
  229. package/esm2015/toolbar.js.map +1 -1
  230. package/esm2015/tooltip.js +42 -27
  231. package/esm2015/tooltip.js.map +1 -1
  232. package/esm2015/tree.js +22 -25
  233. package/esm2015/tree.js.map +1 -1
  234. package/esm5/autocomplete.es5.js +126 -32
  235. package/esm5/autocomplete.es5.js.map +1 -1
  236. package/esm5/badge.es5.js +40 -7
  237. package/esm5/badge.es5.js.map +1 -1
  238. package/esm5/bottom-sheet.es5.js +71 -28
  239. package/esm5/bottom-sheet.es5.js.map +1 -1
  240. package/esm5/button-toggle.es5.js +42 -17
  241. package/esm5/button-toggle.es5.js.map +1 -1
  242. package/esm5/button.es5.js +21 -14
  243. package/esm5/button.es5.js.map +1 -1
  244. package/esm5/card.es5.js +4 -4
  245. package/esm5/card.es5.js.map +1 -1
  246. package/esm5/checkbox.es5.js +58 -17
  247. package/esm5/checkbox.es5.js.map +1 -1
  248. package/esm5/chips.es5.js +127 -37
  249. package/esm5/chips.es5.js.map +1 -1
  250. package/esm5/core.es5.js +189 -126
  251. package/esm5/core.es5.js.map +1 -1
  252. package/esm5/datepicker.es5.js +240 -58
  253. package/esm5/datepicker.es5.js.map +1 -1
  254. package/esm5/dialog.es5.js +139 -47
  255. package/esm5/dialog.es5.js.map +1 -1
  256. package/esm5/divider.es5.js +4 -4
  257. package/esm5/divider.es5.js.map +1 -1
  258. package/esm5/expansion.es5.js +35 -25
  259. package/esm5/expansion.es5.js.map +1 -1
  260. package/esm5/form-field.es5.js +124 -36
  261. package/esm5/form-field.es5.js.map +1 -1
  262. package/esm5/grid-list.es5.js +68 -17
  263. package/esm5/grid-list.es5.js.map +1 -1
  264. package/esm5/icon.es5.js +282 -81
  265. package/esm5/icon.es5.js.map +1 -1
  266. package/esm5/input.es5.js +48 -26
  267. package/esm5/input.es5.js.map +1 -1
  268. package/esm5/list.es5.js +74 -25
  269. package/esm5/list.es5.js.map +1 -1
  270. package/esm5/material.es5.js +10 -9
  271. package/esm5/material.es5.js.map +1 -1
  272. package/esm5/menu.es5.js +158 -55
  273. package/esm5/menu.es5.js.map +1 -1
  274. package/esm5/paginator.es5.js +55 -13
  275. package/esm5/paginator.es5.js.map +1 -1
  276. package/esm5/progress-bar.es5.js +37 -16
  277. package/esm5/progress-bar.es5.js.map +1 -1
  278. package/esm5/progress-spinner.es5.js +31 -15
  279. package/esm5/progress-spinner.es5.js.map +1 -1
  280. package/esm5/radio.es5.js +28 -9
  281. package/esm5/radio.es5.js.map +1 -1
  282. package/esm5/select.es5.js +181 -52
  283. package/esm5/select.es5.js.map +1 -1
  284. package/esm5/sidenav.es5.js +105 -26
  285. package/esm5/sidenav.es5.js.map +1 -1
  286. package/esm5/slide-toggle.es5.js +35 -17
  287. package/esm5/slide-toggle.es5.js.map +1 -1
  288. package/esm5/slider.es5.js +91 -21
  289. package/esm5/slider.es5.js.map +1 -1
  290. package/esm5/snack-bar.es5.js +76 -24
  291. package/esm5/snack-bar.es5.js.map +1 -1
  292. package/esm5/sort.es5.js +52 -25
  293. package/esm5/sort.es5.js.map +1 -1
  294. package/esm5/stepper.es5.js +40 -47
  295. package/esm5/stepper.es5.js.map +1 -1
  296. package/esm5/table.es5.js +31 -21
  297. package/esm5/table.es5.js.map +1 -1
  298. package/esm5/tabs.es5.js +159 -60
  299. package/esm5/tabs.es5.js.map +1 -1
  300. package/esm5/toolbar.es5.js +15 -5
  301. package/esm5/toolbar.es5.js.map +1 -1
  302. package/esm5/tooltip.es5.js +54 -27
  303. package/esm5/tooltip.es5.js.map +1 -1
  304. package/esm5/tree.es5.js +27 -28
  305. package/esm5/tree.es5.js.map +1 -1
  306. package/form-field/typings/form-field.d.ts +15 -4
  307. package/form-field/typings/index.metadata.json +1 -1
  308. package/grid-list/typings/index.d.ts +1 -1
  309. package/grid-list/typings/index.metadata.json +1 -1
  310. package/icon/typings/index.metadata.json +1 -1
  311. package/list/typings/index.metadata.json +1 -1
  312. package/material.d.ts +1 -1
  313. package/material.metadata.json +3 -3
  314. package/menu/typings/index.metadata.json +1 -1
  315. package/menu/typings/menu-item.d.ts +2 -0
  316. package/menu/typings/menu-trigger.d.ts +5 -0
  317. package/package.json +5 -5
  318. package/paginator/typings/index.metadata.json +1 -1
  319. package/paginator/typings/paginator.d.ts +7 -3
  320. package/prebuilt-themes/deeppurple-amber.css +1 -1
  321. package/prebuilt-themes/indigo-pink.css +1 -1
  322. package/prebuilt-themes/pink-bluegrey.css +1 -1
  323. package/prebuilt-themes/purple-green.css +1 -1
  324. package/progress-bar/typings/index.metadata.json +1 -1
  325. package/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
  326. package/schematics/ng-add/theming/{custom-theme.js → create-custom-theme.js} +1 -1
  327. package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
  328. package/schematics/ng-add/theming/theming.js +35 -19
  329. package/schematics/ng-add/theming/theming.js.map +1 -1
  330. package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
  331. package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
  332. package/schematics/ng-generate/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
  333. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
  334. package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
  335. package/select/typings/index.metadata.json +1 -1
  336. package/sidenav/typings/drawer.d.ts +9 -2
  337. package/sidenav/typings/index.metadata.json +1 -1
  338. package/slide-toggle/typings/index.metadata.json +1 -1
  339. package/stepper/typings/index.metadata.json +1 -1
  340. package/stepper/typings/step-header.d.ts +3 -5
  341. package/table/typings/index.metadata.json +1 -1
  342. package/tabs/typings/index.metadata.json +1 -1
  343. package/tabs/typings/tab-body.d.ts +2 -0
  344. package/tabs/typings/tab-group.d.ts +11 -2
  345. package/tabs/typings/tab-header.d.ts +9 -3
  346. package/tree/typings/data-source/flat-data-source.d.ts +2 -2
  347. package/tree/typings/index.metadata.json +1 -1
  348. package/typings/autocomplete/index.d.ts +1 -1
  349. package/typings/autocomplete/index.metadata.json +1 -1
  350. package/typings/badge/index.metadata.json +1 -1
  351. package/typings/bottom-sheet/bottom-sheet-config.d.ts +5 -0
  352. package/typings/bottom-sheet/bottom-sheet-container.d.ts +1 -1
  353. package/typings/bottom-sheet/index.metadata.json +1 -1
  354. package/typings/button/button.d.ts +0 -5
  355. package/typings/button/index.metadata.json +1 -1
  356. package/typings/button-toggle/index.metadata.json +1 -1
  357. package/typings/checkbox/index.metadata.json +1 -1
  358. package/typings/chips/chip-list.d.ts +1 -1
  359. package/typings/chips/chip.d.ts +2 -2
  360. package/typings/chips/index.metadata.json +1 -1
  361. package/typings/core/index.metadata.json +1 -1
  362. package/typings/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
  363. package/typings/core/public-api.d.ts +1 -1
  364. package/typings/datepicker/calendar-body.d.ts +21 -5
  365. package/typings/datepicker/calendar.d.ts +4 -1
  366. package/typings/datepicker/datepicker-toggle.d.ts +5 -0
  367. package/typings/datepicker/datepicker.d.ts +3 -0
  368. package/typings/datepicker/index.metadata.json +1 -1
  369. package/typings/datepicker/month-view.d.ts +4 -2
  370. package/typings/dialog/index.metadata.json +1 -1
  371. package/typings/esm5/autocomplete/index.d.ts +1 -1
  372. package/typings/esm5/autocomplete/index.metadata.json +1 -1
  373. package/typings/esm5/badge/index.metadata.json +1 -1
  374. package/typings/esm5/bottom-sheet/bottom-sheet-config.d.ts +5 -0
  375. package/typings/esm5/bottom-sheet/bottom-sheet-container.d.ts +1 -1
  376. package/typings/esm5/bottom-sheet/index.metadata.json +1 -1
  377. package/typings/esm5/button/button.d.ts +0 -5
  378. package/typings/esm5/button/index.metadata.json +1 -1
  379. package/typings/esm5/button-toggle/index.metadata.json +1 -1
  380. package/typings/esm5/checkbox/index.metadata.json +1 -1
  381. package/typings/esm5/chips/chip-list.d.ts +1 -1
  382. package/typings/esm5/chips/chip.d.ts +2 -2
  383. package/typings/esm5/chips/index.metadata.json +1 -1
  384. package/typings/esm5/core/index.metadata.json +1 -1
  385. package/typings/esm5/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
  386. package/typings/esm5/core/public-api.d.ts +1 -1
  387. package/typings/esm5/datepicker/calendar-body.d.ts +21 -5
  388. package/typings/esm5/datepicker/calendar.d.ts +4 -1
  389. package/typings/esm5/datepicker/datepicker-toggle.d.ts +5 -0
  390. package/typings/esm5/datepicker/datepicker.d.ts +3 -0
  391. package/typings/esm5/datepicker/index.metadata.json +1 -1
  392. package/typings/esm5/datepicker/month-view.d.ts +4 -2
  393. package/typings/esm5/dialog/index.metadata.json +1 -1
  394. package/typings/esm5/form-field/form-field.d.ts +15 -4
  395. package/typings/esm5/form-field/index.metadata.json +1 -1
  396. package/typings/esm5/grid-list/index.d.ts +1 -1
  397. package/typings/esm5/grid-list/index.metadata.json +1 -1
  398. package/typings/esm5/icon/index.metadata.json +1 -1
  399. package/typings/esm5/index.metadata.json +1 -1
  400. package/typings/esm5/list/index.metadata.json +1 -1
  401. package/typings/esm5/menu/index.metadata.json +1 -1
  402. package/typings/esm5/menu/menu-item.d.ts +2 -0
  403. package/typings/esm5/menu/menu-trigger.d.ts +5 -0
  404. package/typings/esm5/paginator/index.metadata.json +1 -1
  405. package/typings/esm5/paginator/paginator.d.ts +7 -3
  406. package/typings/esm5/progress-bar/index.metadata.json +1 -1
  407. package/typings/esm5/select/index.metadata.json +1 -1
  408. package/typings/esm5/sidenav/drawer.d.ts +9 -2
  409. package/typings/esm5/sidenav/index.metadata.json +1 -1
  410. package/typings/esm5/slide-toggle/index.metadata.json +1 -1
  411. package/typings/esm5/stepper/index.metadata.json +1 -1
  412. package/typings/esm5/stepper/step-header.d.ts +3 -5
  413. package/typings/esm5/table/index.metadata.json +1 -1
  414. package/typings/esm5/tabs/index.metadata.json +1 -1
  415. package/typings/esm5/tabs/tab-body.d.ts +2 -0
  416. package/typings/esm5/tabs/tab-group.d.ts +11 -2
  417. package/typings/esm5/tabs/tab-header.d.ts +9 -3
  418. package/typings/esm5/tree/data-source/flat-data-source.d.ts +2 -2
  419. package/typings/esm5/tree/index.metadata.json +1 -1
  420. package/typings/form-field/form-field.d.ts +15 -4
  421. package/typings/form-field/index.metadata.json +1 -1
  422. package/typings/grid-list/index.d.ts +1 -1
  423. package/typings/grid-list/index.metadata.json +1 -1
  424. package/typings/icon/index.metadata.json +1 -1
  425. package/typings/index.metadata.json +1 -1
  426. package/typings/list/index.metadata.json +1 -1
  427. package/typings/menu/index.metadata.json +1 -1
  428. package/typings/menu/menu-item.d.ts +2 -0
  429. package/typings/menu/menu-trigger.d.ts +5 -0
  430. package/typings/paginator/index.metadata.json +1 -1
  431. package/typings/paginator/paginator.d.ts +7 -3
  432. package/typings/progress-bar/index.metadata.json +1 -1
  433. package/typings/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
  434. package/typings/select/index.metadata.json +1 -1
  435. package/typings/sidenav/drawer.d.ts +9 -2
  436. package/typings/sidenav/index.metadata.json +1 -1
  437. package/typings/slide-toggle/index.metadata.json +1 -1
  438. package/typings/stepper/index.metadata.json +1 -1
  439. package/typings/stepper/step-header.d.ts +3 -5
  440. package/typings/table/index.metadata.json +1 -1
  441. package/typings/tabs/index.metadata.json +1 -1
  442. package/typings/tabs/tab-body.d.ts +2 -0
  443. package/typings/tabs/tab-group.d.ts +11 -2
  444. package/typings/tabs/tab-header.d.ts +9 -3
  445. package/typings/tree/data-source/flat-data-source.d.ts +2 -2
  446. package/typings/tree/index.metadata.json +1 -1
  447. package/schematics/ng-add/theming/custom-theme.js.map +0 -1
@@ -6,10 +6,10 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/portal'), require('@angular/common'), require('rxjs'), require('@angular/animations'), require('@angular/cdk/a11y'), require('@angular/material/core'), require('@angular/cdk/coercion'), require('@angular/cdk/keycodes'), require('rxjs/operators'), require('@angular/cdk/bidi'), require('@angular/cdk/overlay')) :
10
- typeof define === 'function' && define.amd ? define('@angular/material/menu', ['exports', '@angular/core', '@angular/cdk/portal', '@angular/common', 'rxjs', '@angular/animations', '@angular/cdk/a11y', '@angular/material/core', '@angular/cdk/coercion', '@angular/cdk/keycodes', 'rxjs/operators', '@angular/cdk/bidi', '@angular/cdk/overlay'], factory) :
11
- (factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.menu = {}),global.ng.core,global.ng.cdk.portal,global.ng.common,global.rxjs,global.ng.animations,global.ng.cdk.a11y,global.ng.material.core,global.ng.cdk.coercion,global.ng.cdk.keycodes,global.rxjs.operators,global.ng.cdk.bidi,global.ng.cdk.overlay));
12
- }(this, (function (exports,core,portal,common,rxjs,animations,a11y,core$1,coercion,keycodes,operators,bidi,overlay) { 'use strict';
9
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/portal'), require('@angular/common'), require('rxjs'), require('@angular/animations'), require('@angular/cdk/a11y'), require('@angular/material/core'), require('@angular/cdk/coercion'), require('@angular/cdk/keycodes'), require('rxjs/operators'), require('@angular/cdk/bidi'), require('@angular/cdk/overlay'), require('@angular/cdk/platform')) :
10
+ typeof define === 'function' && define.amd ? define('@angular/material/menu', ['exports', '@angular/core', '@angular/cdk/portal', '@angular/common', 'rxjs', '@angular/animations', '@angular/cdk/a11y', '@angular/material/core', '@angular/cdk/coercion', '@angular/cdk/keycodes', 'rxjs/operators', '@angular/cdk/bidi', '@angular/cdk/overlay', '@angular/cdk/platform'], factory) :
11
+ (factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.menu = {}),global.ng.core,global.ng.cdk.portal,global.ng.common,global.rxjs,global.ng.animations,global.ng.cdk.a11y,global.ng.material.core,global.ng.cdk.coercion,global.ng.cdk.keycodes,global.rxjs.operators,global.ng.cdk.bidi,global.ng.cdk.overlay,global.ng.cdk.platform));
12
+ }(this, (function (exports,core,portal,common,rxjs,animations,a11y,core$1,coercion,keycodes,operators,bidi,overlay,platform) { 'use strict';
13
13
 
14
14
  /*! *****************************************************************************
15
15
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -42,7 +42,7 @@ function __extends(d, b) {
42
42
 
43
43
  /**
44
44
  * @fileoverview added by tsickle
45
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
45
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
46
46
  */
47
47
  /**
48
48
  * Menu content that will be rendered lazily once the menu is opened.
@@ -86,12 +86,11 @@ var MatMenuContent = /** @class */ (function () {
86
86
  this._outlet = new portal.DomPortalOutlet(this._document.createElement('div'), this._componentFactoryResolver, this._appRef, this._injector);
87
87
  }
88
88
  /** @type {?} */
89
- var element = this._template.elementRef.nativeElement; /** @type {?} */
90
- ((
89
+ var element = this._template.elementRef.nativeElement;
91
90
  // Because we support opening the same menu from different triggers (which in turn have their
92
91
  // own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we
93
92
  // risk it staying attached to a pane that's no longer in the DOM.
94
- element.parentNode)).insertBefore(this._outlet.outletElement, element);
93
+ (/** @type {?} */ (element.parentNode)).insertBefore(this._outlet.outletElement, element);
95
94
  this._portal.attach(this._outlet, context);
96
95
  this._attached.next();
97
96
  };
@@ -144,23 +143,24 @@ var MatMenuContent = /** @class */ (function () {
144
143
 
145
144
  /**
146
145
  * @fileoverview added by tsickle
147
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
146
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
148
147
  */
149
- /** *
148
+ /**
150
149
  * Animations used by the mat-menu component.
151
150
  * Animation duration and timing values are based on:
152
151
  * https://material.io/guidelines/components/menus.html#menus-usage
153
152
  * \@docs-private
154
- @type {?} */
153
+ * @type {?}
154
+ */
155
155
  var matMenuAnimations = {
156
156
  /**
157
- * This animation controls the menu panel's entry and exit from the page.
158
- *
159
- * When the menu panel is added to the DOM, it scales in and fades in its border.
160
- *
161
- * When the menu panel is removed from the DOM, it simply fades out after a brief
162
- * delay to display the ripple.
163
- */
157
+ * This animation controls the menu panel's entry and exit from the page.
158
+ *
159
+ * When the menu panel is added to the DOM, it scales in and fades in its border.
160
+ *
161
+ * When the menu panel is removed from the DOM, it simply fades out after a brief
162
+ * delay to display the ripple.
163
+ */
164
164
  transformMenu: animations.trigger('transformMenu', [
165
165
  animations.state('void', animations.style({
166
166
  opacity: 0,
@@ -173,9 +173,9 @@ var matMenuAnimations = {
173
173
  animations.transition('* => void', animations.animate('100ms 25ms linear', animations.style({ opacity: 0 })))
174
174
  ]),
175
175
  /**
176
- * This animation fades in the background color and content of the menu panel
177
- * after its containing element is scaled in.
178
- */
176
+ * This animation fades in the background color and content of the menu panel
177
+ * after its containing element is scaled in.
178
+ */
179
179
  fadeInItems: animations.trigger('fadeInItems', [
180
180
  // TODO(crisbeto): this is inside the `transformMenu`
181
181
  // now. Remove next time we do breaking changes.
@@ -186,22 +186,24 @@ var matMenuAnimations = {
186
186
  ])
187
187
  ])
188
188
  };
189
- /** *
189
+ /**
190
190
  * @deprecated
191
191
  * \@breaking-change 8.0.0
192
192
  * \@docs-private
193
- @type {?} */
193
+ * @type {?}
194
+ */
194
195
  var fadeInItems = matMenuAnimations.fadeInItems;
195
- /** *
196
+ /**
196
197
  * @deprecated
197
198
  * \@breaking-change 8.0.0
198
199
  * \@docs-private
199
- @type {?} */
200
+ * @type {?}
201
+ */
200
202
  var transformMenu = matMenuAnimations.transformMenu;
201
203
 
202
204
  /**
203
205
  * @fileoverview added by tsickle
204
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
206
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
205
207
  */
206
208
 
207
209
  /**
@@ -233,22 +235,26 @@ function throwMatMenuInvalidPositionY() {
233
235
 
234
236
  /**
235
237
  * @fileoverview added by tsickle
236
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
238
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
237
239
  */
238
- /** *
240
+ /**
239
241
  * Injection token used to provide the parent menu to menu-specific components.
240
242
  * \@docs-private
241
- @type {?} */
243
+ * @type {?}
244
+ */
242
245
  var MAT_MENU_PANEL = new core.InjectionToken('MAT_MENU_PANEL');
243
246
 
244
247
  /**
245
248
  * @fileoverview added by tsickle
246
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
249
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
247
250
  */
251
+ // Boilerplate for applying mixins to MatMenuItem.
248
252
  /**
249
253
  * \@docs-private
250
254
  */
251
- var /**
255
+ var
256
+ // Boilerplate for applying mixins to MatMenuItem.
257
+ /**
252
258
  * \@docs-private
253
259
  */
254
260
  MatMenuItemBase = /** @class */ (function () {
@@ -271,6 +277,10 @@ var MatMenuItem = /** @class */ (function (_super) {
271
277
  _this._elementRef = _elementRef;
272
278
  _this._focusMonitor = _focusMonitor;
273
279
  _this._parentMenu = _parentMenu;
280
+ /**
281
+ * ARIA role for the menu item.
282
+ */
283
+ _this.role = 'menuitem';
274
284
  /**
275
285
  * Stream that emits when the menu item is hovered.
276
286
  */
@@ -418,7 +428,7 @@ var MatMenuItem = /** @class */ (function (_super) {
418
428
  exportAs: 'matMenuItem',
419
429
  inputs: ['disabled', 'disableRipple'],
420
430
  host: {
421
- 'role': 'menuitem',
431
+ '[attr.role]': 'role',
422
432
  'class': 'mat-menu-item',
423
433
  '[class.mat-menu-item-highlighted]': '_highlighted',
424
434
  '[class.mat-menu-item-submenu-trigger]': '_triggersSubmenu',
@@ -440,16 +450,20 @@ var MatMenuItem = /** @class */ (function (_super) {
440
450
  { type: a11y.FocusMonitor },
441
451
  { type: undefined, decorators: [{ type: core.Inject, args: [MAT_MENU_PANEL,] }, { type: core.Optional }] }
442
452
  ]; };
453
+ MatMenuItem.propDecorators = {
454
+ role: [{ type: core.Input }]
455
+ };
443
456
  return MatMenuItem;
444
457
  }(_MatMenuItemMixinBase));
445
458
 
446
459
  /**
447
460
  * @fileoverview added by tsickle
448
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
461
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
449
462
  */
450
- /** *
463
+ /**
451
464
  * Injection token to be used to override the default options for `mat-menu`.
452
- @type {?} */
465
+ * @type {?}
466
+ */
453
467
  var MAT_MENU_DEFAULT_OPTIONS = new core.InjectionToken('mat-menu-default-options', {
454
468
  providedIn: 'root',
455
469
  factory: MAT_MENU_DEFAULT_OPTIONS_FACTORY
@@ -466,10 +480,11 @@ function MAT_MENU_DEFAULT_OPTIONS_FACTORY() {
466
480
  backdropClass: 'cdk-overlay-transparent-backdrop',
467
481
  };
468
482
  }
469
- /** *
483
+ /**
470
484
  * Start elevation for the menu panel.
471
485
  * \@docs-private
472
- @type {?} */
486
+ * @type {?}
487
+ */
473
488
  var MAT_MENU_BASE_ELEVATION = 4;
474
489
  var MatMenu = /** @class */ (function () {
475
490
  function MatMenu(_elementRef, _ngZone, _defaultOptions) {
@@ -782,6 +797,7 @@ var MatMenu = /** @class */ (function () {
782
797
  * @return {?}
783
798
  */
784
799
  function (depth) {
800
+ // The elevation starts at the base and increases by one for each level.
785
801
  /** @type {?} */
786
802
  var newElevation = "mat-elevation-z" + (MAT_MENU_BASE_ELEVATION + depth);
787
803
  /** @type {?} */
@@ -931,7 +947,7 @@ var MatMenu = /** @class */ (function () {
931
947
  MatMenu.decorators = [
932
948
  { type: core.Component, args: [{selector: 'mat-menu',
933
949
  template: "<ng-template><div class=\"mat-menu-panel\" [ngClass]=\"_classList\" (keydown)=\"_handleKeydown($event)\" (click)=\"closed.emit('click')\" [@transformMenu]=\"_panelAnimationState\" (@transformMenu.start)=\"_isAnimating = true\" (@transformMenu.done)=\"_onAnimationDone($event)\" tabindex=\"-1\" role=\"menu\"><div class=\"mat-menu-content\"><ng-content></ng-content></div></div></ng-template>",
934
- styles: [".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0}@media screen and (-ms-high-contrast:active){.mat-menu-panel{outline:solid 1px}}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}@media screen and (-ms-high-contrast:active){.mat-menu-item-highlighted,.mat-menu-item.cdk-keyboard-focused,.mat-menu-item.cdk-program-focused{outline:dotted 1px}}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:'';display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}.mat-menu-panel.ng-animating .mat-menu-item-submenu-trigger{pointer-events:none}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],
950
+ styles: [".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0}.mat-menu-panel.ng-animating{pointer-events:none}@media screen and (-ms-high-contrast:active){.mat-menu-panel{outline:solid 1px}}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}@media screen and (-ms-high-contrast:active){.mat-menu-item-highlighted,.mat-menu-item.cdk-keyboard-focused,.mat-menu-item.cdk-program-focused{outline:dotted 1px}}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:'';display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],
935
951
  changeDetection: core.ChangeDetectionStrategy.OnPush,
936
952
  encapsulation: core.ViewEncapsulation.None,
937
953
  exportAs: 'matMenu',
@@ -969,11 +985,12 @@ var MatMenu = /** @class */ (function () {
969
985
 
970
986
  /**
971
987
  * @fileoverview added by tsickle
972
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
988
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
973
989
  */
974
- /** *
990
+ /**
975
991
  * Injection token that determines the scroll handling while the menu is open.
976
- @type {?} */
992
+ * @type {?}
993
+ */
977
994
  var MAT_MENU_SCROLL_STRATEGY = new core.InjectionToken('mat-menu-scroll-strategy');
978
995
  /**
979
996
  * \@docs-private
@@ -983,24 +1000,33 @@ var MAT_MENU_SCROLL_STRATEGY = new core.InjectionToken('mat-menu-scroll-strategy
983
1000
  function MAT_MENU_SCROLL_STRATEGY_FACTORY(overlay$$1) {
984
1001
  return function () { return overlay$$1.scrollStrategies.reposition(); };
985
1002
  }
986
- /** *
1003
+ /**
987
1004
  * \@docs-private
988
- @type {?} */
1005
+ * @type {?}
1006
+ */
989
1007
  var MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER = {
990
1008
  provide: MAT_MENU_SCROLL_STRATEGY,
991
1009
  deps: [overlay.Overlay],
992
1010
  useFactory: MAT_MENU_SCROLL_STRATEGY_FACTORY,
993
1011
  };
994
- /** *
1012
+ /**
995
1013
  * Default top padding of the menu panel.
996
- @type {?} */
1014
+ * @type {?}
1015
+ */
997
1016
  var MENU_PANEL_TOP_PADDING = 8;
1017
+ /**
1018
+ * Options for binding a passive event listener.
1019
+ * @type {?}
1020
+ */
1021
+ var passiveEventListenerOptions = platform.normalizePassiveListenerOptions({ passive: true });
1022
+ // TODO(andrewseguin): Remove the kebab versions in favor of camelCased attribute selectors
998
1023
  /**
999
1024
  * This directive is intended to be used in conjunction with an mat-menu tag. It is
1000
1025
  * responsible for toggling the display of the provided menu instance.
1001
1026
  */
1002
1027
  var MatMenuTrigger = /** @class */ (function () {
1003
1028
  function MatMenuTrigger(_overlay, _element, _viewContainerRef, scrollStrategy, _parentMenu, _menuItemInstance, _dir, _focusMonitor) {
1029
+ var _this = this;
1004
1030
  this._overlay = _overlay;
1005
1031
  this._element = _element;
1006
1032
  this._viewContainerRef = _viewContainerRef;
@@ -1013,6 +1039,11 @@ var MatMenuTrigger = /** @class */ (function () {
1013
1039
  this._closeSubscription = rxjs.Subscription.EMPTY;
1014
1040
  this._hoverSubscription = rxjs.Subscription.EMPTY;
1015
1041
  this._menuCloseSubscription = rxjs.Subscription.EMPTY;
1042
+ /**
1043
+ * Handles touch start events on the trigger.
1044
+ * Needs to be an arrow function so we can easily use addEventListener and removeEventListener.
1045
+ */
1046
+ this._handleTouchStart = function () { return _this._openedBy = 'touch'; };
1016
1047
  // Tracking input type is necessary so it's possible to only auto-focus
1017
1048
  // the first item of the list when the menu is opened via the keyboard
1018
1049
  this._openedBy = null;
@@ -1025,6 +1056,7 @@ var MatMenuTrigger = /** @class */ (function () {
1025
1056
  * @deprecated Switch to `menuOpened` instead
1026
1057
  * \@breaking-change 8.0.0
1027
1058
  */
1059
+ // tslint:disable-next-line:no-output-on-prefix
1028
1060
  this.onMenuOpen = this.menuOpened;
1029
1061
  /**
1030
1062
  * Event emitted when the associated menu is closed.
@@ -1035,7 +1067,9 @@ var MatMenuTrigger = /** @class */ (function () {
1035
1067
  * @deprecated Switch to `menuClosed` instead
1036
1068
  * \@breaking-change 8.0.0
1037
1069
  */
1070
+ // tslint:disable-next-line:no-output-on-prefix
1038
1071
  this.onMenuClose = this.menuClosed;
1072
+ _element.nativeElement.addEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
1039
1073
  if (_menuItemInstance) {
1040
1074
  _menuItemInstance._triggersSubmenu = this.triggersSubmenu();
1041
1075
  }
@@ -1114,6 +1148,7 @@ var MatMenuTrigger = /** @class */ (function () {
1114
1148
  this._overlayRef.dispose();
1115
1149
  this._overlayRef = null;
1116
1150
  }
1151
+ this._element.nativeElement.removeEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
1117
1152
  this._cleanUpSubscriptions();
1118
1153
  };
1119
1154
  Object.defineProperty(MatMenuTrigger.prototype, "menuOpen", {
@@ -1181,7 +1216,7 @@ var MatMenuTrigger = /** @class */ (function () {
1181
1216
  this._checkMenu();
1182
1217
  /** @type {?} */
1183
1218
  var overlayRef = this._createOverlay();
1184
- this._setPosition(/** @type {?} */ (overlayRef.getConfig().positionStrategy));
1219
+ this._setPosition((/** @type {?} */ (overlayRef.getConfig().positionStrategy)));
1185
1220
  overlayRef.attach(this._getPortal());
1186
1221
  if (this.menu.lazyContent) {
1187
1222
  this.menu.lazyContent.attach(this.menuData);
@@ -1227,12 +1262,15 @@ var MatMenuTrigger = /** @class */ (function () {
1227
1262
  this._element.nativeElement.focus();
1228
1263
  }
1229
1264
  };
1265
+ /** Closes the menu and does the necessary cleanup. */
1230
1266
  /**
1231
1267
  * Closes the menu and does the necessary cleanup.
1268
+ * @private
1232
1269
  * @return {?}
1233
1270
  */
1234
1271
  MatMenuTrigger.prototype._destroyMenu = /**
1235
1272
  * Closes the menu and does the necessary cleanup.
1273
+ * @private
1236
1274
  * @return {?}
1237
1275
  */
1238
1276
  function () {
@@ -1252,7 +1290,7 @@ var MatMenuTrigger = /** @class */ (function () {
1252
1290
  .pipe(operators.filter(function (event) { return event.toState === 'void'; }), operators.take(1),
1253
1291
  // Interrupt if the content got re-attached.
1254
1292
  operators.takeUntil(menu.lazyContent._attached))
1255
- .subscribe(function () { return ((menu.lazyContent)).detach(); }, undefined, function () {
1293
+ .subscribe(function () { return (/** @type {?} */ (menu.lazyContent)).detach(); }, undefined, function () {
1256
1294
  // No matter whether the content got re-attached, reset the menu.
1257
1295
  _this._resetMenu();
1258
1296
  });
@@ -1271,11 +1309,17 @@ var MatMenuTrigger = /** @class */ (function () {
1271
1309
  /**
1272
1310
  * This method sets the menu state to open and focuses the first item if
1273
1311
  * the menu was opened via the keyboard.
1312
+ */
1313
+ /**
1314
+ * This method sets the menu state to open and focuses the first item if
1315
+ * the menu was opened via the keyboard.
1316
+ * @private
1274
1317
  * @return {?}
1275
1318
  */
1276
1319
  MatMenuTrigger.prototype._initMenu = /**
1277
1320
  * This method sets the menu state to open and focuses the first item if
1278
1321
  * the menu was opened via the keyboard.
1322
+ * @private
1279
1323
  * @return {?}
1280
1324
  */
1281
1325
  function () {
@@ -1285,12 +1329,15 @@ var MatMenuTrigger = /** @class */ (function () {
1285
1329
  this._setIsMenuOpen(true);
1286
1330
  this.menu.focusFirstItem(this._openedBy || 'program');
1287
1331
  };
1332
+ /** Updates the menu elevation based on the amount of parent menus that it has. */
1288
1333
  /**
1289
1334
  * Updates the menu elevation based on the amount of parent menus that it has.
1335
+ * @private
1290
1336
  * @return {?}
1291
1337
  */
1292
1338
  MatMenuTrigger.prototype._setMenuElevation = /**
1293
1339
  * Updates the menu elevation based on the amount of parent menus that it has.
1340
+ * @private
1294
1341
  * @return {?}
1295
1342
  */
1296
1343
  function () {
@@ -1309,11 +1356,17 @@ var MatMenuTrigger = /** @class */ (function () {
1309
1356
  /**
1310
1357
  * This method resets the menu when it's closed, most importantly restoring
1311
1358
  * focus to the menu trigger if the menu was opened via the keyboard.
1359
+ */
1360
+ /**
1361
+ * This method resets the menu when it's closed, most importantly restoring
1362
+ * focus to the menu trigger if the menu was opened via the keyboard.
1363
+ * @private
1312
1364
  * @return {?}
1313
1365
  */
1314
1366
  MatMenuTrigger.prototype._resetMenu = /**
1315
1367
  * This method resets the menu when it's closed, most importantly restoring
1316
1368
  * focus to the menu trigger if the menu was opened via the keyboard.
1369
+ * @private
1317
1370
  * @return {?}
1318
1371
  */
1319
1372
  function () {
@@ -1331,11 +1384,17 @@ var MatMenuTrigger = /** @class */ (function () {
1331
1384
  }
1332
1385
  this._openedBy = null;
1333
1386
  };
1387
+ // set state rather than toggle to support triggers sharing a menu
1388
+ // set state rather than toggle to support triggers sharing a menu
1334
1389
  /**
1390
+ * @private
1335
1391
  * @param {?} isOpen
1336
1392
  * @return {?}
1337
1393
  */
1338
- MatMenuTrigger.prototype._setIsMenuOpen = /**
1394
+ MatMenuTrigger.prototype._setIsMenuOpen =
1395
+ // set state rather than toggle to support triggers sharing a menu
1396
+ /**
1397
+ * @private
1339
1398
  * @param {?} isOpen
1340
1399
  * @return {?}
1341
1400
  */
@@ -1349,11 +1408,17 @@ var MatMenuTrigger = /** @class */ (function () {
1349
1408
  /**
1350
1409
  * This method checks that a valid instance of MatMenu has been passed into
1351
1410
  * matMenuTriggerFor. If not, an exception is thrown.
1411
+ */
1412
+ /**
1413
+ * This method checks that a valid instance of MatMenu has been passed into
1414
+ * matMenuTriggerFor. If not, an exception is thrown.
1415
+ * @private
1352
1416
  * @return {?}
1353
1417
  */
1354
1418
  MatMenuTrigger.prototype._checkMenu = /**
1355
1419
  * This method checks that a valid instance of MatMenu has been passed into
1356
1420
  * matMenuTriggerFor. If not, an exception is thrown.
1421
+ * @private
1357
1422
  * @return {?}
1358
1423
  */
1359
1424
  function () {
@@ -1364,18 +1429,24 @@ var MatMenuTrigger = /** @class */ (function () {
1364
1429
  /**
1365
1430
  * This method creates the overlay from the provided menu's template and saves its
1366
1431
  * OverlayRef so that it can be attached to the DOM when openMenu is called.
1432
+ */
1433
+ /**
1434
+ * This method creates the overlay from the provided menu's template and saves its
1435
+ * OverlayRef so that it can be attached to the DOM when openMenu is called.
1436
+ * @private
1367
1437
  * @return {?}
1368
1438
  */
1369
1439
  MatMenuTrigger.prototype._createOverlay = /**
1370
1440
  * This method creates the overlay from the provided menu's template and saves its
1371
1441
  * OverlayRef so that it can be attached to the DOM when openMenu is called.
1442
+ * @private
1372
1443
  * @return {?}
1373
1444
  */
1374
1445
  function () {
1375
1446
  if (!this._overlayRef) {
1376
1447
  /** @type {?} */
1377
1448
  var config = this._getOverlayConfig();
1378
- this._subscribeToPositions(/** @type {?} */ (config.positionStrategy));
1449
+ this._subscribeToPositions((/** @type {?} */ (config.positionStrategy)));
1379
1450
  this._overlayRef = this._overlay.create(config);
1380
1451
  // Consume the `keydownEvents` in order to prevent them from going to another overlay.
1381
1452
  // Ideally we'd also have our keyboard event logic in here, however doing so will
@@ -1386,10 +1457,16 @@ var MatMenuTrigger = /** @class */ (function () {
1386
1457
  };
1387
1458
  /**
1388
1459
  * This method builds the configuration object needed to create the overlay, the OverlayState.
1460
+ * @returns OverlayConfig
1461
+ */
1462
+ /**
1463
+ * This method builds the configuration object needed to create the overlay, the OverlayState.
1464
+ * @private
1389
1465
  * @return {?} OverlayConfig
1390
1466
  */
1391
1467
  MatMenuTrigger.prototype._getOverlayConfig = /**
1392
1468
  * This method builds the configuration object needed to create the overlay, the OverlayState.
1469
+ * @private
1393
1470
  * @return {?} OverlayConfig
1394
1471
  */
1395
1472
  function () {
@@ -1408,6 +1485,12 @@ var MatMenuTrigger = /** @class */ (function () {
1408
1485
  * Listens to changes in the position of the overlay and sets the correct classes
1409
1486
  * on the menu based on the new position. This ensures the animation origin is always
1410
1487
  * correct, even if a fallback position is used for the overlay.
1488
+ */
1489
+ /**
1490
+ * Listens to changes in the position of the overlay and sets the correct classes
1491
+ * on the menu based on the new position. This ensures the animation origin is always
1492
+ * correct, even if a fallback position is used for the overlay.
1493
+ * @private
1411
1494
  * @param {?} position
1412
1495
  * @return {?}
1413
1496
  */
@@ -1415,6 +1498,7 @@ var MatMenuTrigger = /** @class */ (function () {
1415
1498
  * Listens to changes in the position of the overlay and sets the correct classes
1416
1499
  * on the menu based on the new position. This ensures the animation origin is always
1417
1500
  * correct, even if a fallback position is used for the overlay.
1501
+ * @private
1418
1502
  * @param {?} position
1419
1503
  * @return {?}
1420
1504
  */
@@ -1425,20 +1509,27 @@ var MatMenuTrigger = /** @class */ (function () {
1425
1509
  /** @type {?} */
1426
1510
  var posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';
1427
1511
  /** @type {?} */
1428
- var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above'; /** @type {?} */
1429
- ((_this.menu.setPositionClasses))(posX, posY);
1512
+ var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
1513
+ (/** @type {?} */ (_this.menu.setPositionClasses))(posX, posY);
1430
1514
  });
1431
1515
  }
1432
1516
  };
1433
1517
  /**
1434
1518
  * Sets the appropriate positions on a position strategy
1435
1519
  * so the overlay connects with the trigger correctly.
1520
+ * @param positionStrategy Strategy whose position to update.
1521
+ */
1522
+ /**
1523
+ * Sets the appropriate positions on a position strategy
1524
+ * so the overlay connects with the trigger correctly.
1525
+ * @private
1436
1526
  * @param {?} positionStrategy Strategy whose position to update.
1437
1527
  * @return {?}
1438
1528
  */
1439
1529
  MatMenuTrigger.prototype._setPosition = /**
1440
1530
  * Sets the appropriate positions on a position strategy
1441
1531
  * so the overlay connects with the trigger correctly.
1532
+ * @private
1442
1533
  * @param {?} positionStrategy Strategy whose position to update.
1443
1534
  * @return {?}
1444
1535
  */
@@ -1479,32 +1570,38 @@ var MatMenuTrigger = /** @class */ (function () {
1479
1570
  }
1480
1571
  ]);
1481
1572
  };
1573
+ /** Cleans up the active subscriptions. */
1482
1574
  /**
1483
1575
  * Cleans up the active subscriptions.
1576
+ * @private
1484
1577
  * @return {?}
1485
1578
  */
1486
1579
  MatMenuTrigger.prototype._cleanUpSubscriptions = /**
1487
1580
  * Cleans up the active subscriptions.
1581
+ * @private
1488
1582
  * @return {?}
1489
1583
  */
1490
1584
  function () {
1491
1585
  this._closeSubscription.unsubscribe();
1492
1586
  this._hoverSubscription.unsubscribe();
1493
1587
  };
1588
+ /** Returns a stream that emits whenever an action that should close the menu occurs. */
1494
1589
  /**
1495
1590
  * Returns a stream that emits whenever an action that should close the menu occurs.
1591
+ * @private
1496
1592
  * @return {?}
1497
1593
  */
1498
1594
  MatMenuTrigger.prototype._menuClosingActions = /**
1499
1595
  * Returns a stream that emits whenever an action that should close the menu occurs.
1596
+ * @private
1500
1597
  * @return {?}
1501
1598
  */
1502
1599
  function () {
1503
1600
  var _this = this;
1504
1601
  /** @type {?} */
1505
- var backdrop = /** @type {?} */ ((this._overlayRef)).backdropClick();
1602
+ var backdrop = (/** @type {?} */ (this._overlayRef)).backdropClick();
1506
1603
  /** @type {?} */
1507
- var detachments = /** @type {?} */ ((this._overlayRef)).detachments();
1604
+ var detachments = (/** @type {?} */ (this._overlayRef)).detachments();
1508
1605
  /** @type {?} */
1509
1606
  var parentClose = this._parentMenu ? this._parentMenu.closed : rxjs.of();
1510
1607
  /** @type {?} */
@@ -1575,12 +1672,15 @@ var MatMenuTrigger = /** @class */ (function () {
1575
1672
  this.toggleMenu();
1576
1673
  }
1577
1674
  };
1675
+ /** Handles the cases where the user hovers over the trigger. */
1578
1676
  /**
1579
1677
  * Handles the cases where the user hovers over the trigger.
1678
+ * @private
1580
1679
  * @return {?}
1581
1680
  */
1582
1681
  MatMenuTrigger.prototype._handleHover = /**
1583
1682
  * Handles the cases where the user hovers over the trigger.
1683
+ * @private
1584
1684
  * @return {?}
1585
1685
  */
1586
1686
  function () {
@@ -1611,12 +1711,15 @@ var MatMenuTrigger = /** @class */ (function () {
1611
1711
  }
1612
1712
  });
1613
1713
  };
1714
+ /** Gets the portal that should be attached to the overlay. */
1614
1715
  /**
1615
1716
  * Gets the portal that should be attached to the overlay.
1717
+ * @private
1616
1718
  * @return {?}
1617
1719
  */
1618
1720
  MatMenuTrigger.prototype._getPortal = /**
1619
1721
  * Gets the portal that should be attached to the overlay.
1722
+ * @private
1620
1723
  * @return {?}
1621
1724
  */
1622
1725
  function () {
@@ -1635,7 +1738,6 @@ var MatMenuTrigger = /** @class */ (function () {
1635
1738
  'aria-haspopup': 'true',
1636
1739
  '[attr.aria-expanded]': 'menuOpen || null',
1637
1740
  '(mousedown)': '_handleMousedown($event)',
1638
- '(touchstart)': '_openedBy = "touch"',
1639
1741
  '(keydown)': '_handleKeydown($event)',
1640
1742
  '(click)': '_handleClick($event)',
1641
1743
  },
@@ -1667,7 +1769,7 @@ var MatMenuTrigger = /** @class */ (function () {
1667
1769
 
1668
1770
  /**
1669
1771
  * @fileoverview added by tsickle
1670
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
1772
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1671
1773
  */
1672
1774
  var MatMenuModule = /** @class */ (function () {
1673
1775
  function MatMenuModule() {