@angular/material 7.1.0 → 7.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (495) hide show
  1. package/LICENSE +1 -1
  2. package/_theming.scss +50 -19
  3. package/autocomplete/typings/index.d.ts +0 -1
  4. package/autocomplete/typings/index.metadata.json +1 -1
  5. package/autocomplete/typings/public-api.d.ts +1 -0
  6. package/badge/typings/index.metadata.json +1 -1
  7. package/bottom-sheet/typings/bottom-sheet-ref.d.ts +2 -0
  8. package/bottom-sheet/typings/index.metadata.json +1 -1
  9. package/bundles/material-autocomplete.umd.js +139 -39
  10. package/bundles/material-autocomplete.umd.js.map +1 -1
  11. package/bundles/material-autocomplete.umd.min.js +1 -1
  12. package/bundles/material-autocomplete.umd.min.js.map +1 -1
  13. package/bundles/material-badge.umd.js +38 -5
  14. package/bundles/material-badge.umd.js.map +1 -1
  15. package/bundles/material-badge.umd.min.js +1 -1
  16. package/bundles/material-badge.umd.min.js.map +1 -1
  17. package/bundles/material-bottom-sheet.umd.js +67 -22
  18. package/bundles/material-bottom-sheet.umd.js.map +1 -1
  19. package/bundles/material-bottom-sheet.umd.min.js +1 -1
  20. package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
  21. package/bundles/material-button-toggle.umd.js +45 -14
  22. package/bundles/material-button-toggle.umd.js.map +1 -1
  23. package/bundles/material-button-toggle.umd.min.js +1 -1
  24. package/bundles/material-button-toggle.umd.min.js.map +1 -1
  25. package/bundles/material-button.umd.js +21 -14
  26. package/bundles/material-button.umd.js.map +1 -1
  27. package/bundles/material-button.umd.min.js +1 -1
  28. package/bundles/material-button.umd.min.js.map +1 -1
  29. package/bundles/material-card.umd.js +3 -3
  30. package/bundles/material-card.umd.js.map +1 -1
  31. package/bundles/material-card.umd.min.js +1 -1
  32. package/bundles/material-card.umd.min.js.map +1 -1
  33. package/bundles/material-checkbox.umd.js +56 -15
  34. package/bundles/material-checkbox.umd.js.map +1 -1
  35. package/bundles/material-checkbox.umd.min.js +1 -1
  36. package/bundles/material-checkbox.umd.min.js.map +1 -1
  37. package/bundles/material-chips.umd.js +126 -38
  38. package/bundles/material-chips.umd.js.map +1 -1
  39. package/bundles/material-chips.umd.min.js +1 -1
  40. package/bundles/material-chips.umd.min.js.map +1 -1
  41. package/bundles/material-core.umd.js +190 -127
  42. package/bundles/material-core.umd.js.map +1 -1
  43. package/bundles/material-core.umd.min.js +1 -2
  44. package/bundles/material-core.umd.min.js.map +1 -1
  45. package/bundles/material-datepicker.umd.js +205 -42
  46. package/bundles/material-datepicker.umd.js.map +1 -1
  47. package/bundles/material-datepicker.umd.min.js +2 -2
  48. package/bundles/material-datepicker.umd.min.js.map +1 -1
  49. package/bundles/material-dialog.umd.js +138 -40
  50. package/bundles/material-dialog.umd.js.map +1 -1
  51. package/bundles/material-dialog.umd.min.js +1 -1
  52. package/bundles/material-dialog.umd.min.js.map +1 -1
  53. package/bundles/material-divider.umd.js +2 -2
  54. package/bundles/material-divider.umd.js.map +1 -1
  55. package/bundles/material-divider.umd.min.js.map +1 -1
  56. package/bundles/material-expansion.umd.js +52 -26
  57. package/bundles/material-expansion.umd.js.map +1 -1
  58. package/bundles/material-expansion.umd.min.js +1 -1
  59. package/bundles/material-expansion.umd.min.js.map +1 -1
  60. package/bundles/material-form-field.umd.js +123 -34
  61. package/bundles/material-form-field.umd.js.map +1 -1
  62. package/bundles/material-form-field.umd.min.js +1 -1
  63. package/bundles/material-form-field.umd.min.js.map +1 -1
  64. package/bundles/material-grid-list.umd.js +67 -16
  65. package/bundles/material-grid-list.umd.js.map +1 -1
  66. package/bundles/material-grid-list.umd.min.js +1 -1
  67. package/bundles/material-grid-list.umd.min.js.map +1 -1
  68. package/bundles/material-icon.umd.js +288 -78
  69. package/bundles/material-icon.umd.js.map +1 -1
  70. package/bundles/material-icon.umd.min.js +1 -1
  71. package/bundles/material-icon.umd.min.js.map +1 -1
  72. package/bundles/material-input.umd.js +50 -22
  73. package/bundles/material-input.umd.js.map +1 -1
  74. package/bundles/material-input.umd.min.js +1 -1
  75. package/bundles/material-input.umd.min.js.map +1 -1
  76. package/bundles/material-list.umd.js +159 -26
  77. package/bundles/material-list.umd.js.map +1 -1
  78. package/bundles/material-list.umd.min.js +2 -2
  79. package/bundles/material-list.umd.min.js.map +1 -1
  80. package/bundles/material-menu.umd.js +176 -70
  81. package/bundles/material-menu.umd.js.map +1 -1
  82. package/bundles/material-menu.umd.min.js +1 -1
  83. package/bundles/material-menu.umd.min.js.map +1 -1
  84. package/bundles/material-paginator.umd.js +25 -8
  85. package/bundles/material-paginator.umd.js.map +1 -1
  86. package/bundles/material-paginator.umd.min.js.map +1 -1
  87. package/bundles/material-progress-bar.umd.js +32 -13
  88. package/bundles/material-progress-bar.umd.js.map +1 -1
  89. package/bundles/material-progress-bar.umd.min.js +1 -1
  90. package/bundles/material-progress-bar.umd.min.js.map +1 -1
  91. package/bundles/material-progress-spinner.umd.js +30 -14
  92. package/bundles/material-progress-spinner.umd.js.map +1 -1
  93. package/bundles/material-progress-spinner.umd.min.js +1 -1
  94. package/bundles/material-progress-spinner.umd.min.js.map +1 -1
  95. package/bundles/material-radio.umd.js +38 -40
  96. package/bundles/material-radio.umd.js.map +1 -1
  97. package/bundles/material-radio.umd.min.js +1 -1
  98. package/bundles/material-radio.umd.min.js.map +1 -1
  99. package/bundles/material-select.umd.js +186 -49
  100. package/bundles/material-select.umd.js.map +1 -1
  101. package/bundles/material-select.umd.min.js +1 -1
  102. package/bundles/material-select.umd.min.js.map +1 -1
  103. package/bundles/material-sidenav.umd.js +104 -25
  104. package/bundles/material-sidenav.umd.js.map +1 -1
  105. package/bundles/material-sidenav.umd.min.js +1 -1
  106. package/bundles/material-sidenav.umd.min.js.map +1 -1
  107. package/bundles/material-slide-toggle.umd.js +31 -15
  108. package/bundles/material-slide-toggle.umd.js.map +1 -1
  109. package/bundles/material-slide-toggle.umd.min.js +1 -1
  110. package/bundles/material-slide-toggle.umd.min.js.map +1 -1
  111. package/bundles/material-slider.umd.js +88 -20
  112. package/bundles/material-slider.umd.js.map +1 -1
  113. package/bundles/material-slider.umd.min.js +1 -1
  114. package/bundles/material-slider.umd.min.js.map +1 -1
  115. package/bundles/material-snack-bar.umd.js +69 -20
  116. package/bundles/material-snack-bar.umd.js.map +1 -1
  117. package/bundles/material-snack-bar.umd.min.js +1 -1
  118. package/bundles/material-snack-bar.umd.min.js.map +1 -1
  119. package/bundles/material-sort.umd.js +46 -24
  120. package/bundles/material-sort.umd.js.map +1 -1
  121. package/bundles/material-sort.umd.min.js +1 -1
  122. package/bundles/material-sort.umd.min.js.map +1 -1
  123. package/bundles/material-stepper.umd.js +29 -20
  124. package/bundles/material-stepper.umd.js.map +1 -1
  125. package/bundles/material-stepper.umd.min.js +1 -1
  126. package/bundles/material-stepper.umd.min.js.map +1 -1
  127. package/bundles/material-table.umd.js +48 -15
  128. package/bundles/material-table.umd.js.map +1 -1
  129. package/bundles/material-table.umd.min.js +1 -1
  130. package/bundles/material-table.umd.min.js.map +1 -1
  131. package/bundles/material-tabs.umd.js +162 -61
  132. package/bundles/material-tabs.umd.js.map +1 -1
  133. package/bundles/material-tabs.umd.min.js +2 -2
  134. package/bundles/material-tabs.umd.min.js.map +1 -1
  135. package/bundles/material-toolbar.umd.js +14 -4
  136. package/bundles/material-toolbar.umd.js.map +1 -1
  137. package/bundles/material-toolbar.umd.min.js +1 -1
  138. package/bundles/material-toolbar.umd.min.js.map +1 -1
  139. package/bundles/material-tooltip.umd.js +62 -26
  140. package/bundles/material-tooltip.umd.js.map +1 -1
  141. package/bundles/material-tooltip.umd.min.js +1 -1
  142. package/bundles/material-tooltip.umd.min.js.map +1 -1
  143. package/bundles/material-tree.umd.js +25 -16
  144. package/bundles/material-tree.umd.js.map +1 -1
  145. package/bundles/material-tree.umd.min.js +1 -1
  146. package/bundles/material-tree.umd.min.js.map +1 -1
  147. package/bundles/material.umd.js +2927 -995
  148. package/bundles/material.umd.js.map +1 -1
  149. package/bundles/material.umd.min.js +18 -18
  150. package/bundles/material.umd.min.js.map +1 -1
  151. package/button/typings/button.d.ts +0 -5
  152. package/button/typings/index.metadata.json +1 -1
  153. package/button-toggle/typings/index.metadata.json +1 -1
  154. package/card/typings/index.metadata.json +1 -1
  155. package/checkbox/typings/index.metadata.json +1 -1
  156. package/chips/typings/chip-list.d.ts +2 -2
  157. package/chips/typings/chip.d.ts +2 -2
  158. package/chips/typings/index.metadata.json +1 -1
  159. package/core/typings/index.metadata.json +1 -1
  160. package/core/typings/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
  161. package/core/typings/public-api.d.ts +1 -1
  162. package/core/typings/ripple/ripple.d.ts +1 -1
  163. package/datepicker/typings/calendar.d.ts +2 -2
  164. package/datepicker/typings/index.metadata.json +1 -1
  165. package/dialog/typings/index.metadata.json +1 -1
  166. package/esm2015/autocomplete.js +73 -36
  167. package/esm2015/autocomplete.js.map +1 -1
  168. package/esm2015/badge.js +29 -6
  169. package/esm2015/badge.js.map +1 -1
  170. package/esm2015/bottom-sheet.js +44 -23
  171. package/esm2015/bottom-sheet.js.map +1 -1
  172. package/esm2015/button-toggle.js +27 -11
  173. package/esm2015/button-toggle.js.map +1 -1
  174. package/esm2015/button.js +20 -15
  175. package/esm2015/button.js.map +1 -1
  176. package/esm2015/card.js +5 -5
  177. package/esm2015/card.js.map +1 -1
  178. package/esm2015/checkbox.js +30 -12
  179. package/esm2015/checkbox.js.map +1 -1
  180. package/esm2015/chips.js +64 -30
  181. package/esm2015/chips.js.map +1 -1
  182. package/esm2015/core.js +147 -128
  183. package/esm2015/core.js.map +1 -1
  184. package/esm2015/datepicker.js +103 -37
  185. package/esm2015/datepicker.js.map +1 -1
  186. package/esm2015/dialog.js +77 -40
  187. package/esm2015/dialog.js.map +1 -1
  188. package/esm2015/divider.js +4 -4
  189. package/esm2015/divider.js.map +1 -1
  190. package/esm2015/expansion.js +56 -29
  191. package/esm2015/expansion.js.map +1 -1
  192. package/esm2015/form-field.js +95 -35
  193. package/esm2015/form-field.js.map +1 -1
  194. package/esm2015/grid-list.js +45 -17
  195. package/esm2015/grid-list.js.map +1 -1
  196. package/esm2015/icon.js +144 -67
  197. package/esm2015/icon.js.map +1 -1
  198. package/esm2015/input.js +44 -23
  199. package/esm2015/input.js.map +1 -1
  200. package/esm2015/list.js +118 -24
  201. package/esm2015/list.js.map +1 -1
  202. package/esm2015/material.js +13 -12
  203. package/esm2015/material.js.map +1 -1
  204. package/esm2015/menu.js +114 -67
  205. package/esm2015/menu.js.map +1 -1
  206. package/esm2015/paginator.js +17 -9
  207. package/esm2015/paginator.js.map +1 -1
  208. package/esm2015/progress-bar.js +26 -13
  209. package/esm2015/progress-bar.js.map +1 -1
  210. package/esm2015/progress-spinner.js +24 -14
  211. package/esm2015/progress-spinner.js.map +1 -1
  212. package/esm2015/radio.js +22 -21
  213. package/esm2015/radio.js.map +1 -1
  214. package/esm2015/select.js +112 -50
  215. package/esm2015/select.js.map +1 -1
  216. package/esm2015/sidenav.js +75 -28
  217. package/esm2015/sidenav.js.map +1 -1
  218. package/esm2015/slide-toggle.js +23 -15
  219. package/esm2015/slide-toggle.js.map +1 -1
  220. package/esm2015/slider.js +51 -23
  221. package/esm2015/slider.js.map +1 -1
  222. package/esm2015/snack-bar.js +38 -21
  223. package/esm2015/snack-bar.js.map +1 -1
  224. package/esm2015/sort.js +47 -24
  225. package/esm2015/sort.js.map +1 -1
  226. package/esm2015/stepper.js +32 -23
  227. package/esm2015/stepper.js.map +1 -1
  228. package/esm2015/table.js +51 -18
  229. package/esm2015/table.js.map +1 -1
  230. package/esm2015/tabs.js +112 -49
  231. package/esm2015/tabs.js.map +1 -1
  232. package/esm2015/toolbar.js +9 -5
  233. package/esm2015/toolbar.js.map +1 -1
  234. package/esm2015/tooltip.js +49 -28
  235. package/esm2015/tooltip.js.map +1 -1
  236. package/esm2015/tree.js +22 -17
  237. package/esm2015/tree.js.map +1 -1
  238. package/esm5/autocomplete.es5.js +141 -41
  239. package/esm5/autocomplete.es5.js.map +1 -1
  240. package/esm5/badge.es5.js +40 -7
  241. package/esm5/badge.es5.js.map +1 -1
  242. package/esm5/bottom-sheet.es5.js +68 -23
  243. package/esm5/bottom-sheet.es5.js.map +1 -1
  244. package/esm5/button-toggle.es5.js +46 -15
  245. package/esm5/button-toggle.es5.js.map +1 -1
  246. package/esm5/button.es5.js +23 -16
  247. package/esm5/button.es5.js.map +1 -1
  248. package/esm5/card.es5.js +5 -5
  249. package/esm5/card.es5.js.map +1 -1
  250. package/esm5/checkbox.es5.js +58 -17
  251. package/esm5/checkbox.es5.js.map +1 -1
  252. package/esm5/chips.es5.js +129 -41
  253. package/esm5/chips.es5.js.map +1 -1
  254. package/esm5/core.es5.js +192 -129
  255. package/esm5/core.es5.js.map +1 -1
  256. package/esm5/datepicker.es5.js +207 -44
  257. package/esm5/datepicker.es5.js.map +1 -1
  258. package/esm5/dialog.es5.js +140 -42
  259. package/esm5/dialog.es5.js.map +1 -1
  260. package/esm5/divider.es5.js +4 -4
  261. package/esm5/divider.es5.js.map +1 -1
  262. package/esm5/expansion.es5.js +54 -29
  263. package/esm5/expansion.es5.js.map +1 -1
  264. package/esm5/form-field.es5.js +126 -37
  265. package/esm5/form-field.es5.js.map +1 -1
  266. package/esm5/grid-list.es5.js +68 -17
  267. package/esm5/grid-list.es5.js.map +1 -1
  268. package/esm5/icon.es5.js +290 -80
  269. package/esm5/icon.es5.js.map +1 -1
  270. package/esm5/input.es5.js +52 -24
  271. package/esm5/input.es5.js.map +1 -1
  272. package/esm5/list.es5.js +161 -27
  273. package/esm5/list.es5.js.map +1 -1
  274. package/esm5/material.es5.js +13 -12
  275. package/esm5/material.es5.js.map +1 -1
  276. package/esm5/menu.es5.js +175 -69
  277. package/esm5/menu.es5.js.map +1 -1
  278. package/esm5/paginator.es5.js +27 -10
  279. package/esm5/paginator.es5.js.map +1 -1
  280. package/esm5/progress-bar.es5.js +33 -14
  281. package/esm5/progress-bar.es5.js.map +1 -1
  282. package/esm5/progress-spinner.es5.js +31 -15
  283. package/esm5/progress-spinner.es5.js.map +1 -1
  284. package/esm5/radio.es5.js +42 -42
  285. package/esm5/radio.es5.js.map +1 -1
  286. package/esm5/select.es5.js +189 -52
  287. package/esm5/select.es5.js.map +1 -1
  288. package/esm5/sidenav.es5.js +107 -28
  289. package/esm5/sidenav.es5.js.map +1 -1
  290. package/esm5/slide-toggle.es5.js +32 -16
  291. package/esm5/slide-toggle.es5.js.map +1 -1
  292. package/esm5/slider.es5.js +91 -23
  293. package/esm5/slider.es5.js.map +1 -1
  294. package/esm5/snack-bar.es5.js +70 -21
  295. package/esm5/snack-bar.es5.js.map +1 -1
  296. package/esm5/sort.es5.js +53 -26
  297. package/esm5/sort.es5.js.map +1 -1
  298. package/esm5/stepper.es5.js +32 -23
  299. package/esm5/stepper.es5.js.map +1 -1
  300. package/esm5/table.es5.js +51 -18
  301. package/esm5/table.es5.js.map +1 -1
  302. package/esm5/tabs.es5.js +156 -55
  303. package/esm5/tabs.es5.js.map +1 -1
  304. package/esm5/toolbar.es5.js +16 -6
  305. package/esm5/toolbar.es5.js.map +1 -1
  306. package/esm5/tooltip.es5.js +64 -28
  307. package/esm5/tooltip.es5.js.map +1 -1
  308. package/esm5/tree.es5.js +27 -18
  309. package/esm5/tree.es5.js.map +1 -1
  310. package/expansion/typings/expansion-panel-header.d.ts +2 -2
  311. package/expansion/typings/expansion-panel.d.ts +19 -2
  312. package/expansion/typings/index.metadata.json +1 -1
  313. package/form-field/typings/form-field.d.ts +15 -4
  314. package/form-field/typings/index.metadata.json +1 -1
  315. package/form-field/typings/prefix.d.ts +1 -1
  316. package/grid-list/typings/index.d.ts +1 -1
  317. package/grid-list/typings/index.metadata.json +1 -1
  318. package/icon/typings/icon-registry.d.ts +3 -2
  319. package/icon/typings/index.metadata.json +1 -1
  320. package/list/typings/index.metadata.json +1 -1
  321. package/list/typings/list.d.ts +16 -5
  322. package/list/typings/selection-list.d.ts +1 -0
  323. package/material.d.ts +1 -1
  324. package/material.metadata.json +3 -3
  325. package/menu/typings/index.d.ts +4 -4
  326. package/menu/typings/index.metadata.json +1 -1
  327. package/menu/typings/menu-directive.d.ts +1 -0
  328. package/menu/typings/menu-item.d.ts +2 -0
  329. package/menu/typings/menu-trigger.d.ts +1 -1
  330. package/package.json +5 -5
  331. package/prebuilt-themes/deeppurple-amber.css +1 -1
  332. package/prebuilt-themes/indigo-pink.css +1 -1
  333. package/prebuilt-themes/pink-bluegrey.css +1 -1
  334. package/prebuilt-themes/purple-green.css +1 -1
  335. package/progress-bar/typings/index.metadata.json +1 -1
  336. package/radio/typings/index.metadata.json +1 -1
  337. package/radio/typings/radio.d.ts +2 -6
  338. package/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
  339. package/schematics/ng-add/theming/{custom-theme.js → create-custom-theme.js} +1 -1
  340. package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
  341. package/schematics/ng-add/theming/theming.js +35 -19
  342. package/schematics/ng-add/theming/theming.js.map +1 -1
  343. package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
  344. package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
  345. package/schematics/ng-generate/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
  346. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
  347. package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
  348. package/select/typings/index.metadata.json +1 -1
  349. package/select/typings/select.d.ts +12 -2
  350. package/sidenav/typings/drawer.d.ts +9 -2
  351. package/sidenav/typings/index.metadata.json +1 -1
  352. package/slide-toggle/typings/index.metadata.json +1 -1
  353. package/slider/typings/index.metadata.json +1 -1
  354. package/snack-bar/typings/index.metadata.json +1 -1
  355. package/sort/typings/index.metadata.json +1 -1
  356. package/stepper/typings/index.metadata.json +1 -1
  357. package/table/typings/index.metadata.json +1 -1
  358. package/table/typings/table-data-source.d.ts +2 -0
  359. package/tabs/typings/index.d.ts +5 -5
  360. package/tabs/typings/index.metadata.json +1 -1
  361. package/tabs/typings/tab-group.d.ts +2 -1
  362. package/tabs/typings/tab-header.d.ts +8 -4
  363. package/toolbar/typings/index.metadata.json +1 -1
  364. package/tooltip/typings/index.metadata.json +1 -1
  365. package/tooltip/typings/tooltip.d.ts +2 -1
  366. package/tree/typings/data-source/flat-data-source.d.ts +2 -2
  367. package/tree/typings/index.metadata.json +1 -1
  368. package/typings/autocomplete/index.d.ts +0 -1
  369. package/typings/autocomplete/index.metadata.json +1 -1
  370. package/typings/autocomplete/public-api.d.ts +1 -0
  371. package/typings/badge/index.metadata.json +1 -1
  372. package/typings/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
  373. package/typings/bottom-sheet/index.metadata.json +1 -1
  374. package/typings/button/button.d.ts +0 -5
  375. package/typings/button/index.metadata.json +1 -1
  376. package/typings/button-toggle/index.metadata.json +1 -1
  377. package/typings/card/index.metadata.json +1 -1
  378. package/typings/checkbox/index.metadata.json +1 -1
  379. package/typings/chips/chip-list.d.ts +2 -2
  380. package/typings/chips/chip.d.ts +2 -2
  381. package/typings/chips/index.metadata.json +1 -1
  382. package/typings/core/index.metadata.json +1 -1
  383. package/typings/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
  384. package/typings/core/public-api.d.ts +1 -1
  385. package/typings/core/ripple/ripple.d.ts +1 -1
  386. package/typings/datepicker/calendar.d.ts +2 -2
  387. package/typings/datepicker/index.metadata.json +1 -1
  388. package/typings/dialog/index.metadata.json +1 -1
  389. package/typings/esm5/autocomplete/index.d.ts +0 -1
  390. package/typings/esm5/autocomplete/index.metadata.json +1 -1
  391. package/typings/esm5/autocomplete/public-api.d.ts +1 -0
  392. package/typings/esm5/badge/index.metadata.json +1 -1
  393. package/typings/esm5/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
  394. package/typings/esm5/bottom-sheet/index.metadata.json +1 -1
  395. package/typings/esm5/button/button.d.ts +0 -5
  396. package/typings/esm5/button/index.metadata.json +1 -1
  397. package/typings/esm5/button-toggle/index.metadata.json +1 -1
  398. package/typings/esm5/card/index.metadata.json +1 -1
  399. package/typings/esm5/checkbox/index.metadata.json +1 -1
  400. package/typings/esm5/chips/chip-list.d.ts +2 -2
  401. package/typings/esm5/chips/chip.d.ts +2 -2
  402. package/typings/esm5/chips/index.metadata.json +1 -1
  403. package/typings/esm5/core/index.metadata.json +1 -1
  404. package/typings/esm5/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
  405. package/typings/esm5/core/public-api.d.ts +1 -1
  406. package/typings/esm5/core/ripple/ripple.d.ts +1 -1
  407. package/typings/esm5/datepicker/calendar.d.ts +2 -2
  408. package/typings/esm5/datepicker/index.metadata.json +1 -1
  409. package/typings/esm5/dialog/index.metadata.json +1 -1
  410. package/typings/esm5/expansion/expansion-panel-header.d.ts +2 -2
  411. package/typings/esm5/expansion/expansion-panel.d.ts +19 -2
  412. package/typings/esm5/expansion/index.metadata.json +1 -1
  413. package/typings/esm5/form-field/form-field.d.ts +15 -4
  414. package/typings/esm5/form-field/index.metadata.json +1 -1
  415. package/typings/esm5/form-field/prefix.d.ts +1 -1
  416. package/typings/esm5/grid-list/index.d.ts +1 -1
  417. package/typings/esm5/grid-list/index.metadata.json +1 -1
  418. package/typings/esm5/icon/icon-registry.d.ts +3 -2
  419. package/typings/esm5/icon/index.metadata.json +1 -1
  420. package/typings/esm5/index.metadata.json +1 -1
  421. package/typings/esm5/list/index.metadata.json +1 -1
  422. package/typings/esm5/list/list.d.ts +16 -5
  423. package/typings/esm5/list/selection-list.d.ts +1 -0
  424. package/typings/esm5/menu/index.d.ts +4 -4
  425. package/typings/esm5/menu/index.metadata.json +1 -1
  426. package/typings/esm5/menu/menu-directive.d.ts +1 -0
  427. package/typings/esm5/menu/menu-item.d.ts +2 -0
  428. package/typings/esm5/menu/menu-trigger.d.ts +1 -1
  429. package/typings/esm5/progress-bar/index.metadata.json +1 -1
  430. package/typings/esm5/radio/index.metadata.json +1 -1
  431. package/typings/esm5/radio/radio.d.ts +2 -6
  432. package/typings/esm5/select/index.metadata.json +1 -1
  433. package/typings/esm5/select/select.d.ts +12 -2
  434. package/typings/esm5/sidenav/drawer.d.ts +9 -2
  435. package/typings/esm5/sidenav/index.metadata.json +1 -1
  436. package/typings/esm5/slide-toggle/index.metadata.json +1 -1
  437. package/typings/esm5/slider/index.metadata.json +1 -1
  438. package/typings/esm5/snack-bar/index.metadata.json +1 -1
  439. package/typings/esm5/sort/index.metadata.json +1 -1
  440. package/typings/esm5/stepper/index.metadata.json +1 -1
  441. package/typings/esm5/table/index.metadata.json +1 -1
  442. package/typings/esm5/table/table-data-source.d.ts +2 -0
  443. package/typings/esm5/tabs/index.d.ts +5 -5
  444. package/typings/esm5/tabs/index.metadata.json +1 -1
  445. package/typings/esm5/tabs/tab-group.d.ts +2 -1
  446. package/typings/esm5/tabs/tab-header.d.ts +8 -4
  447. package/typings/esm5/toolbar/index.metadata.json +1 -1
  448. package/typings/esm5/tooltip/index.metadata.json +1 -1
  449. package/typings/esm5/tooltip/tooltip.d.ts +2 -1
  450. package/typings/esm5/tree/data-source/flat-data-source.d.ts +2 -2
  451. package/typings/esm5/tree/index.metadata.json +1 -1
  452. package/typings/expansion/expansion-panel-header.d.ts +2 -2
  453. package/typings/expansion/expansion-panel.d.ts +19 -2
  454. package/typings/expansion/index.metadata.json +1 -1
  455. package/typings/form-field/form-field.d.ts +15 -4
  456. package/typings/form-field/index.metadata.json +1 -1
  457. package/typings/form-field/prefix.d.ts +1 -1
  458. package/typings/grid-list/index.d.ts +1 -1
  459. package/typings/grid-list/index.metadata.json +1 -1
  460. package/typings/icon/icon-registry.d.ts +3 -2
  461. package/typings/icon/index.metadata.json +1 -1
  462. package/typings/index.metadata.json +1 -1
  463. package/typings/list/index.metadata.json +1 -1
  464. package/typings/list/list.d.ts +16 -5
  465. package/typings/list/selection-list.d.ts +1 -0
  466. package/typings/menu/index.d.ts +4 -4
  467. package/typings/menu/index.metadata.json +1 -1
  468. package/typings/menu/menu-directive.d.ts +1 -0
  469. package/typings/menu/menu-item.d.ts +2 -0
  470. package/typings/menu/menu-trigger.d.ts +1 -1
  471. package/typings/progress-bar/index.metadata.json +1 -1
  472. package/typings/radio/index.metadata.json +1 -1
  473. package/typings/radio/radio.d.ts +2 -6
  474. package/typings/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
  475. package/typings/select/index.metadata.json +1 -1
  476. package/typings/select/select.d.ts +12 -2
  477. package/typings/sidenav/drawer.d.ts +9 -2
  478. package/typings/sidenav/index.metadata.json +1 -1
  479. package/typings/slide-toggle/index.metadata.json +1 -1
  480. package/typings/slider/index.metadata.json +1 -1
  481. package/typings/snack-bar/index.metadata.json +1 -1
  482. package/typings/sort/index.metadata.json +1 -1
  483. package/typings/stepper/index.metadata.json +1 -1
  484. package/typings/table/index.metadata.json +1 -1
  485. package/typings/table/table-data-source.d.ts +2 -0
  486. package/typings/tabs/index.d.ts +5 -5
  487. package/typings/tabs/index.metadata.json +1 -1
  488. package/typings/tabs/tab-group.d.ts +2 -1
  489. package/typings/tabs/tab-header.d.ts +8 -4
  490. package/typings/toolbar/index.metadata.json +1 -1
  491. package/typings/tooltip/index.metadata.json +1 -1
  492. package/typings/tooltip/tooltip.d.ts +2 -1
  493. package/typings/tree/data-source/flat-data-source.d.ts +2 -2
  494. package/typings/tree/index.metadata.json +1 -1
  495. package/schematics/ng-add/theming/custom-theme.js.map +0 -1
package/esm5/menu.es5.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- import { Directive, TemplateRef, ComponentFactoryResolver, ApplicationRef, Injector, ViewContainerRef, Inject, InjectionToken, ChangeDetectionStrategy, Component, ElementRef, ViewEncapsulation, Optional, ContentChild, ContentChildren, EventEmitter, Input, NgZone, Output, ViewChild, Self, NgModule } from '@angular/core';
8
+ import { Directive, TemplateRef, ComponentFactoryResolver, ApplicationRef, Injector, ViewContainerRef, Inject, InjectionToken, ChangeDetectionStrategy, Component, ElementRef, ViewEncapsulation, Optional, Input, ContentChild, ContentChildren, EventEmitter, NgZone, Output, ViewChild, Self, NgModule } from '@angular/core';
9
9
  import { TemplatePortal, DomPortalOutlet } from '@angular/cdk/portal';
10
10
  import { DOCUMENT, CommonModule } from '@angular/common';
11
11
  import { Subject, merge, Subscription, asapScheduler, of } from 'rxjs';
@@ -22,7 +22,7 @@ import { normalizePassiveListenerOptions } from '@angular/cdk/platform';
22
22
 
23
23
  /**
24
24
  * @fileoverview added by tsickle
25
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
25
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
26
26
  */
27
27
  /**
28
28
  * Menu content that will be rendered lazily once the menu is opened.
@@ -66,12 +66,11 @@ var MatMenuContent = /** @class */ (function () {
66
66
  this._outlet = new DomPortalOutlet(this._document.createElement('div'), this._componentFactoryResolver, this._appRef, this._injector);
67
67
  }
68
68
  /** @type {?} */
69
- var element = this._template.elementRef.nativeElement; /** @type {?} */
70
- ((
69
+ var element = this._template.elementRef.nativeElement;
71
70
  // Because we support opening the same menu from different triggers (which in turn have their
72
71
  // own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we
73
72
  // risk it staying attached to a pane that's no longer in the DOM.
74
- element.parentNode)).insertBefore(this._outlet.outletElement, element);
73
+ (/** @type {?} */ (element.parentNode)).insertBefore(this._outlet.outletElement, element);
75
74
  this._portal.attach(this._outlet, context);
76
75
  this._attached.next();
77
76
  };
@@ -124,23 +123,24 @@ var MatMenuContent = /** @class */ (function () {
124
123
 
125
124
  /**
126
125
  * @fileoverview added by tsickle
127
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
126
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
128
127
  */
129
- /** *
128
+ /**
130
129
  * Animations used by the mat-menu component.
131
130
  * Animation duration and timing values are based on:
132
131
  * https://material.io/guidelines/components/menus.html#menus-usage
133
132
  * \@docs-private
134
- @type {?} */
133
+ * @type {?}
134
+ */
135
135
  var matMenuAnimations = {
136
136
  /**
137
- * This animation controls the menu panel's entry and exit from the page.
138
- *
139
- * When the menu panel is added to the DOM, it scales in and fades in its border.
140
- *
141
- * When the menu panel is removed from the DOM, it simply fades out after a brief
142
- * delay to display the ripple.
143
- */
137
+ * This animation controls the menu panel's entry and exit from the page.
138
+ *
139
+ * When the menu panel is added to the DOM, it scales in and fades in its border.
140
+ *
141
+ * When the menu panel is removed from the DOM, it simply fades out after a brief
142
+ * delay to display the ripple.
143
+ */
144
144
  transformMenu: trigger('transformMenu', [
145
145
  state('void', style({
146
146
  opacity: 0,
@@ -153,9 +153,9 @@ var matMenuAnimations = {
153
153
  transition('* => void', animate('100ms 25ms linear', style({ opacity: 0 })))
154
154
  ]),
155
155
  /**
156
- * This animation fades in the background color and content of the menu panel
157
- * after its containing element is scaled in.
158
- */
156
+ * This animation fades in the background color and content of the menu panel
157
+ * after its containing element is scaled in.
158
+ */
159
159
  fadeInItems: trigger('fadeInItems', [
160
160
  // TODO(crisbeto): this is inside the `transformMenu`
161
161
  // now. Remove next time we do breaking changes.
@@ -166,22 +166,24 @@ var matMenuAnimations = {
166
166
  ])
167
167
  ])
168
168
  };
169
- /** *
169
+ /**
170
170
  * @deprecated
171
171
  * \@breaking-change 8.0.0
172
172
  * \@docs-private
173
- @type {?} */
173
+ * @type {?}
174
+ */
174
175
  var fadeInItems = matMenuAnimations.fadeInItems;
175
- /** *
176
+ /**
176
177
  * @deprecated
177
178
  * \@breaking-change 8.0.0
178
179
  * \@docs-private
179
- @type {?} */
180
+ * @type {?}
181
+ */
180
182
  var transformMenu = matMenuAnimations.transformMenu;
181
183
 
182
184
  /**
183
185
  * @fileoverview added by tsickle
184
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
186
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
185
187
  */
186
188
 
187
189
  /**
@@ -213,22 +215,26 @@ function throwMatMenuInvalidPositionY() {
213
215
 
214
216
  /**
215
217
  * @fileoverview added by tsickle
216
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
218
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
217
219
  */
218
- /** *
220
+ /**
219
221
  * Injection token used to provide the parent menu to menu-specific components.
220
222
  * \@docs-private
221
- @type {?} */
223
+ * @type {?}
224
+ */
222
225
  var MAT_MENU_PANEL = new InjectionToken('MAT_MENU_PANEL');
223
226
 
224
227
  /**
225
228
  * @fileoverview added by tsickle
226
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
229
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
227
230
  */
231
+ // Boilerplate for applying mixins to MatMenuItem.
228
232
  /**
229
233
  * \@docs-private
230
234
  */
231
- var /**
235
+ var
236
+ // Boilerplate for applying mixins to MatMenuItem.
237
+ /**
232
238
  * \@docs-private
233
239
  */
234
240
  MatMenuItemBase = /** @class */ (function () {
@@ -251,6 +257,10 @@ var MatMenuItem = /** @class */ (function (_super) {
251
257
  _this._elementRef = _elementRef;
252
258
  _this._focusMonitor = _focusMonitor;
253
259
  _this._parentMenu = _parentMenu;
260
+ /**
261
+ * ARIA role for the menu item.
262
+ */
263
+ _this.role = 'menuitem';
254
264
  /**
255
265
  * Stream that emits when the menu item is hovered.
256
266
  */
@@ -398,7 +408,7 @@ var MatMenuItem = /** @class */ (function (_super) {
398
408
  exportAs: 'matMenuItem',
399
409
  inputs: ['disabled', 'disableRipple'],
400
410
  host: {
401
- 'role': 'menuitem',
411
+ '[attr.role]': 'role',
402
412
  'class': 'mat-menu-item',
403
413
  '[class.mat-menu-item-highlighted]': '_highlighted',
404
414
  '[class.mat-menu-item-submenu-trigger]': '_triggersSubmenu',
@@ -420,16 +430,20 @@ var MatMenuItem = /** @class */ (function (_super) {
420
430
  { type: FocusMonitor },
421
431
  { type: undefined, decorators: [{ type: Inject, args: [MAT_MENU_PANEL,] }, { type: Optional }] }
422
432
  ]; };
433
+ MatMenuItem.propDecorators = {
434
+ role: [{ type: Input }]
435
+ };
423
436
  return MatMenuItem;
424
437
  }(_MatMenuItemMixinBase));
425
438
 
426
439
  /**
427
440
  * @fileoverview added by tsickle
428
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
441
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
429
442
  */
430
- /** *
443
+ /**
431
444
  * Injection token to be used to override the default options for `mat-menu`.
432
- @type {?} */
445
+ * @type {?}
446
+ */
433
447
  var MAT_MENU_DEFAULT_OPTIONS = new InjectionToken('mat-menu-default-options', {
434
448
  providedIn: 'root',
435
449
  factory: MAT_MENU_DEFAULT_OPTIONS_FACTORY
@@ -446,10 +460,11 @@ function MAT_MENU_DEFAULT_OPTIONS_FACTORY() {
446
460
  backdropClass: 'cdk-overlay-transparent-backdrop',
447
461
  };
448
462
  }
449
- /** *
463
+ /**
450
464
  * Start elevation for the menu panel.
451
465
  * \@docs-private
452
- @type {?} */
466
+ * @type {?}
467
+ */
453
468
  var MAT_MENU_BASE_ELEVATION = 4;
454
469
  var MatMenu = /** @class */ (function () {
455
470
  function MatMenu(_elementRef, _ngZone, _defaultOptions) {
@@ -762,6 +777,7 @@ var MatMenu = /** @class */ (function () {
762
777
  * @return {?}
763
778
  */
764
779
  function (depth) {
780
+ // The elevation starts at the base and increases by one for each level.
765
781
  /** @type {?} */
766
782
  var newElevation = "mat-elevation-z" + (MAT_MENU_BASE_ELEVATION + depth);
767
783
  /** @type {?} */
@@ -898,20 +914,31 @@ var MatMenu = /** @class */ (function () {
898
914
  function (event) {
899
915
  this._animationDone.next(event);
900
916
  this._isAnimating = false;
901
- // Scroll the content element to the top once the animation is done. This is necessary, because
902
- // we move focus to the first item while it's still being animated, which can throw the browser
903
- // off when it determines the scroll position. Alternatively we can move focus when the
904
- // animation is done, however moving focus asynchronously will interrupt screen readers
905
- // which are in the process of reading out the menu already. We take the `element` from
906
- // the `event` since we can't use a `ViewChild` to access the pane.
917
+ };
918
+ /**
919
+ * @param {?} event
920
+ * @return {?}
921
+ */
922
+ MatMenu.prototype._onAnimationStart = /**
923
+ * @param {?} event
924
+ * @return {?}
925
+ */
926
+ function (event) {
927
+ this._isAnimating = true;
928
+ // Scroll the content element to the top as soon as the animation starts. This is necessary,
929
+ // because we move focus to the first item while it's still being animated, which can throw
930
+ // the browser off when it determines the scroll position. Alternatively we can move focus
931
+ // when the animation is done, however moving focus asynchronously will interrupt screen
932
+ // readers which are in the process of reading out the menu already. We take the `element`
933
+ // from the `event` since we can't use a `ViewChild` to access the pane.
907
934
  if (event.toState === 'enter' && this._keyManager.activeItemIndex === 0) {
908
935
  event.element.scrollTop = 0;
909
936
  }
910
937
  };
911
938
  MatMenu.decorators = [
912
939
  { type: Component, args: [{selector: 'mat-menu',
913
- 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>",
914
- 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}"],
940
+ template: "<ng-template><div class=\"mat-menu-panel\" [ngClass]=\"_classList\" (keydown)=\"_handleKeydown($event)\" (click)=\"closed.emit('click')\" [@transformMenu]=\"_panelAnimationState\" (@transformMenu.start)=\"_onAnimationStart($event)\" (@transformMenu.done)=\"_onAnimationDone($event)\" tabindex=\"-1\" role=\"menu\"><div class=\"mat-menu-content\"><ng-content></ng-content></div></div></ng-template>",
941
+ 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 (-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 (-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}"],
915
942
  changeDetection: ChangeDetectionStrategy.OnPush,
916
943
  encapsulation: ViewEncapsulation.None,
917
944
  exportAs: 'matMenu',
@@ -949,11 +976,12 @@ var MatMenu = /** @class */ (function () {
949
976
 
950
977
  /**
951
978
  * @fileoverview added by tsickle
952
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
979
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
953
980
  */
954
- /** *
981
+ /**
955
982
  * Injection token that determines the scroll handling while the menu is open.
956
- @type {?} */
983
+ * @type {?}
984
+ */
957
985
  var MAT_MENU_SCROLL_STRATEGY = new InjectionToken('mat-menu-scroll-strategy');
958
986
  /**
959
987
  * \@docs-private
@@ -963,22 +991,26 @@ var MAT_MENU_SCROLL_STRATEGY = new InjectionToken('mat-menu-scroll-strategy');
963
991
  function MAT_MENU_SCROLL_STRATEGY_FACTORY(overlay) {
964
992
  return function () { return overlay.scrollStrategies.reposition(); };
965
993
  }
966
- /** *
994
+ /**
967
995
  * \@docs-private
968
- @type {?} */
996
+ * @type {?}
997
+ */
969
998
  var MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER = {
970
999
  provide: MAT_MENU_SCROLL_STRATEGY,
971
1000
  deps: [Overlay],
972
1001
  useFactory: MAT_MENU_SCROLL_STRATEGY_FACTORY,
973
1002
  };
974
- /** *
1003
+ /**
975
1004
  * Default top padding of the menu panel.
976
- @type {?} */
1005
+ * @type {?}
1006
+ */
977
1007
  var MENU_PANEL_TOP_PADDING = 8;
978
- /** *
1008
+ /**
979
1009
  * Options for binding a passive event listener.
980
- @type {?} */
1010
+ * @type {?}
1011
+ */
981
1012
  var passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: true });
1013
+ // TODO(andrewseguin): Remove the kebab versions in favor of camelCased attribute selectors
982
1014
  /**
983
1015
  * This directive is intended to be used in conjunction with an mat-menu tag. It is
984
1016
  * responsible for toggling the display of the provided menu instance.
@@ -995,7 +1027,7 @@ var MatMenuTrigger = /** @class */ (function () {
995
1027
  this._focusMonitor = _focusMonitor;
996
1028
  this._overlayRef = null;
997
1029
  this._menuOpen = false;
998
- this._closeSubscription = Subscription.EMPTY;
1030
+ this._closingActionsSubscription = Subscription.EMPTY;
999
1031
  this._hoverSubscription = Subscription.EMPTY;
1000
1032
  this._menuCloseSubscription = Subscription.EMPTY;
1001
1033
  /**
@@ -1015,6 +1047,7 @@ var MatMenuTrigger = /** @class */ (function () {
1015
1047
  * @deprecated Switch to `menuOpened` instead
1016
1048
  * \@breaking-change 8.0.0
1017
1049
  */
1050
+ // tslint:disable-next-line:no-output-on-prefix
1018
1051
  this.onMenuOpen = this.menuOpened;
1019
1052
  /**
1020
1053
  * Event emitted when the associated menu is closed.
@@ -1025,6 +1058,7 @@ var MatMenuTrigger = /** @class */ (function () {
1025
1058
  * @deprecated Switch to `menuClosed` instead
1026
1059
  * \@breaking-change 8.0.0
1027
1060
  */
1061
+ // tslint:disable-next-line:no-output-on-prefix
1028
1062
  this.onMenuClose = this.menuClosed;
1029
1063
  _element.nativeElement.addEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
1030
1064
  if (_menuItemInstance) {
@@ -1107,6 +1141,7 @@ var MatMenuTrigger = /** @class */ (function () {
1107
1141
  }
1108
1142
  this._element.nativeElement.removeEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
1109
1143
  this._cleanUpSubscriptions();
1144
+ this._closingActionsSubscription.unsubscribe();
1110
1145
  };
1111
1146
  Object.defineProperty(MatMenuTrigger.prototype, "menuOpen", {
1112
1147
  /** Whether the menu is open. */
@@ -1173,12 +1208,16 @@ var MatMenuTrigger = /** @class */ (function () {
1173
1208
  this._checkMenu();
1174
1209
  /** @type {?} */
1175
1210
  var overlayRef = this._createOverlay();
1176
- this._setPosition(/** @type {?} */ (overlayRef.getConfig().positionStrategy));
1211
+ /** @type {?} */
1212
+ var overlayConfig = overlayRef.getConfig();
1213
+ this._setPosition((/** @type {?} */ (overlayConfig.positionStrategy)));
1214
+ overlayConfig.hasBackdrop = this.menu.hasBackdrop == null ? !this.triggersSubmenu() :
1215
+ this.menu.hasBackdrop;
1177
1216
  overlayRef.attach(this._getPortal());
1178
1217
  if (this.menu.lazyContent) {
1179
1218
  this.menu.lazyContent.attach(this.menuData);
1180
1219
  }
1181
- this._closeSubscription = this._menuClosingActions().subscribe(function () { return _this.closeMenu(); });
1220
+ this._closingActionsSubscription = this._menuClosingActions().subscribe(function () { return _this.closeMenu(); });
1182
1221
  this._initMenu();
1183
1222
  if (this.menu instanceof MatMenu) {
1184
1223
  this.menu._startAnimation();
@@ -1219,12 +1258,15 @@ var MatMenuTrigger = /** @class */ (function () {
1219
1258
  this._element.nativeElement.focus();
1220
1259
  }
1221
1260
  };
1261
+ /** Closes the menu and does the necessary cleanup. */
1222
1262
  /**
1223
1263
  * Closes the menu and does the necessary cleanup.
1264
+ * @private
1224
1265
  * @return {?}
1225
1266
  */
1226
1267
  MatMenuTrigger.prototype._destroyMenu = /**
1227
1268
  * Closes the menu and does the necessary cleanup.
1269
+ * @private
1228
1270
  * @return {?}
1229
1271
  */
1230
1272
  function () {
@@ -1234,7 +1276,7 @@ var MatMenuTrigger = /** @class */ (function () {
1234
1276
  }
1235
1277
  /** @type {?} */
1236
1278
  var menu = this.menu;
1237
- this._closeSubscription.unsubscribe();
1279
+ this._closingActionsSubscription.unsubscribe();
1238
1280
  this._overlayRef.detach();
1239
1281
  if (menu instanceof MatMenu) {
1240
1282
  menu._resetAnimation();
@@ -1244,7 +1286,7 @@ var MatMenuTrigger = /** @class */ (function () {
1244
1286
  .pipe(filter(function (event) { return event.toState === 'void'; }), take(1),
1245
1287
  // Interrupt if the content got re-attached.
1246
1288
  takeUntil(menu.lazyContent._attached))
1247
- .subscribe(function () { return ((menu.lazyContent)).detach(); }, undefined, function () {
1289
+ .subscribe(function () { return (/** @type {?} */ (menu.lazyContent)).detach(); }, undefined, function () {
1248
1290
  // No matter whether the content got re-attached, reset the menu.
1249
1291
  _this._resetMenu();
1250
1292
  });
@@ -1263,11 +1305,17 @@ var MatMenuTrigger = /** @class */ (function () {
1263
1305
  /**
1264
1306
  * This method sets the menu state to open and focuses the first item if
1265
1307
  * the menu was opened via the keyboard.
1308
+ */
1309
+ /**
1310
+ * This method sets the menu state to open and focuses the first item if
1311
+ * the menu was opened via the keyboard.
1312
+ * @private
1266
1313
  * @return {?}
1267
1314
  */
1268
1315
  MatMenuTrigger.prototype._initMenu = /**
1269
1316
  * This method sets the menu state to open and focuses the first item if
1270
1317
  * the menu was opened via the keyboard.
1318
+ * @private
1271
1319
  * @return {?}
1272
1320
  */
1273
1321
  function () {
@@ -1277,12 +1325,15 @@ var MatMenuTrigger = /** @class */ (function () {
1277
1325
  this._setIsMenuOpen(true);
1278
1326
  this.menu.focusFirstItem(this._openedBy || 'program');
1279
1327
  };
1328
+ /** Updates the menu elevation based on the amount of parent menus that it has. */
1280
1329
  /**
1281
1330
  * Updates the menu elevation based on the amount of parent menus that it has.
1331
+ * @private
1282
1332
  * @return {?}
1283
1333
  */
1284
1334
  MatMenuTrigger.prototype._setMenuElevation = /**
1285
1335
  * Updates the menu elevation based on the amount of parent menus that it has.
1336
+ * @private
1286
1337
  * @return {?}
1287
1338
  */
1288
1339
  function () {
@@ -1301,11 +1352,17 @@ var MatMenuTrigger = /** @class */ (function () {
1301
1352
  /**
1302
1353
  * This method resets the menu when it's closed, most importantly restoring
1303
1354
  * focus to the menu trigger if the menu was opened via the keyboard.
1355
+ */
1356
+ /**
1357
+ * This method resets the menu when it's closed, most importantly restoring
1358
+ * focus to the menu trigger if the menu was opened via the keyboard.
1359
+ * @private
1304
1360
  * @return {?}
1305
1361
  */
1306
1362
  MatMenuTrigger.prototype._resetMenu = /**
1307
1363
  * This method resets the menu when it's closed, most importantly restoring
1308
1364
  * focus to the menu trigger if the menu was opened via the keyboard.
1365
+ * @private
1309
1366
  * @return {?}
1310
1367
  */
1311
1368
  function () {
@@ -1323,11 +1380,17 @@ var MatMenuTrigger = /** @class */ (function () {
1323
1380
  }
1324
1381
  this._openedBy = null;
1325
1382
  };
1383
+ // set state rather than toggle to support triggers sharing a menu
1384
+ // set state rather than toggle to support triggers sharing a menu
1326
1385
  /**
1386
+ * @private
1327
1387
  * @param {?} isOpen
1328
1388
  * @return {?}
1329
1389
  */
1330
- MatMenuTrigger.prototype._setIsMenuOpen = /**
1390
+ MatMenuTrigger.prototype._setIsMenuOpen =
1391
+ // set state rather than toggle to support triggers sharing a menu
1392
+ /**
1393
+ * @private
1331
1394
  * @param {?} isOpen
1332
1395
  * @return {?}
1333
1396
  */
@@ -1341,11 +1404,17 @@ var MatMenuTrigger = /** @class */ (function () {
1341
1404
  /**
1342
1405
  * This method checks that a valid instance of MatMenu has been passed into
1343
1406
  * matMenuTriggerFor. If not, an exception is thrown.
1407
+ */
1408
+ /**
1409
+ * This method checks that a valid instance of MatMenu has been passed into
1410
+ * matMenuTriggerFor. If not, an exception is thrown.
1411
+ * @private
1344
1412
  * @return {?}
1345
1413
  */
1346
1414
  MatMenuTrigger.prototype._checkMenu = /**
1347
1415
  * This method checks that a valid instance of MatMenu has been passed into
1348
1416
  * matMenuTriggerFor. If not, an exception is thrown.
1417
+ * @private
1349
1418
  * @return {?}
1350
1419
  */
1351
1420
  function () {
@@ -1356,18 +1425,24 @@ var MatMenuTrigger = /** @class */ (function () {
1356
1425
  /**
1357
1426
  * This method creates the overlay from the provided menu's template and saves its
1358
1427
  * OverlayRef so that it can be attached to the DOM when openMenu is called.
1428
+ */
1429
+ /**
1430
+ * This method creates the overlay from the provided menu's template and saves its
1431
+ * OverlayRef so that it can be attached to the DOM when openMenu is called.
1432
+ * @private
1359
1433
  * @return {?}
1360
1434
  */
1361
1435
  MatMenuTrigger.prototype._createOverlay = /**
1362
1436
  * This method creates the overlay from the provided menu's template and saves its
1363
1437
  * OverlayRef so that it can be attached to the DOM when openMenu is called.
1438
+ * @private
1364
1439
  * @return {?}
1365
1440
  */
1366
1441
  function () {
1367
1442
  if (!this._overlayRef) {
1368
1443
  /** @type {?} */
1369
1444
  var config = this._getOverlayConfig();
1370
- this._subscribeToPositions(/** @type {?} */ (config.positionStrategy));
1445
+ this._subscribeToPositions((/** @type {?} */ (config.positionStrategy)));
1371
1446
  this._overlayRef = this._overlay.create(config);
1372
1447
  // Consume the `keydownEvents` in order to prevent them from going to another overlay.
1373
1448
  // Ideally we'd also have our keyboard event logic in here, however doing so will
@@ -1378,10 +1453,16 @@ var MatMenuTrigger = /** @class */ (function () {
1378
1453
  };
1379
1454
  /**
1380
1455
  * This method builds the configuration object needed to create the overlay, the OverlayState.
1456
+ * @returns OverlayConfig
1457
+ */
1458
+ /**
1459
+ * This method builds the configuration object needed to create the overlay, the OverlayState.
1460
+ * @private
1381
1461
  * @return {?} OverlayConfig
1382
1462
  */
1383
1463
  MatMenuTrigger.prototype._getOverlayConfig = /**
1384
1464
  * This method builds the configuration object needed to create the overlay, the OverlayState.
1465
+ * @private
1385
1466
  * @return {?} OverlayConfig
1386
1467
  */
1387
1468
  function () {
@@ -1390,7 +1471,6 @@ var MatMenuTrigger = /** @class */ (function () {
1390
1471
  .flexibleConnectedTo(this._element)
1391
1472
  .withLockedPosition()
1392
1473
  .withTransformOriginOn('.mat-menu-panel'),
1393
- hasBackdrop: this.menu.hasBackdrop == null ? !this.triggersSubmenu() : this.menu.hasBackdrop,
1394
1474
  backdropClass: this.menu.backdropClass || 'cdk-overlay-transparent-backdrop',
1395
1475
  scrollStrategy: this._scrollStrategy(),
1396
1476
  direction: this._dir
@@ -1400,6 +1480,12 @@ var MatMenuTrigger = /** @class */ (function () {
1400
1480
  * Listens to changes in the position of the overlay and sets the correct classes
1401
1481
  * on the menu based on the new position. This ensures the animation origin is always
1402
1482
  * correct, even if a fallback position is used for the overlay.
1483
+ */
1484
+ /**
1485
+ * Listens to changes in the position of the overlay and sets the correct classes
1486
+ * on the menu based on the new position. This ensures the animation origin is always
1487
+ * correct, even if a fallback position is used for the overlay.
1488
+ * @private
1403
1489
  * @param {?} position
1404
1490
  * @return {?}
1405
1491
  */
@@ -1407,6 +1493,7 @@ var MatMenuTrigger = /** @class */ (function () {
1407
1493
  * Listens to changes in the position of the overlay and sets the correct classes
1408
1494
  * on the menu based on the new position. This ensures the animation origin is always
1409
1495
  * correct, even if a fallback position is used for the overlay.
1496
+ * @private
1410
1497
  * @param {?} position
1411
1498
  * @return {?}
1412
1499
  */
@@ -1417,20 +1504,27 @@ var MatMenuTrigger = /** @class */ (function () {
1417
1504
  /** @type {?} */
1418
1505
  var posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';
1419
1506
  /** @type {?} */
1420
- var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above'; /** @type {?} */
1421
- ((_this.menu.setPositionClasses))(posX, posY);
1507
+ var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
1508
+ (/** @type {?} */ (_this.menu.setPositionClasses))(posX, posY);
1422
1509
  });
1423
1510
  }
1424
1511
  };
1425
1512
  /**
1426
1513
  * Sets the appropriate positions on a position strategy
1427
1514
  * so the overlay connects with the trigger correctly.
1515
+ * @param positionStrategy Strategy whose position to update.
1516
+ */
1517
+ /**
1518
+ * Sets the appropriate positions on a position strategy
1519
+ * so the overlay connects with the trigger correctly.
1520
+ * @private
1428
1521
  * @param {?} positionStrategy Strategy whose position to update.
1429
1522
  * @return {?}
1430
1523
  */
1431
1524
  MatMenuTrigger.prototype._setPosition = /**
1432
1525
  * Sets the appropriate positions on a position strategy
1433
1526
  * so the overlay connects with the trigger correctly.
1527
+ * @private
1434
1528
  * @param {?} positionStrategy Strategy whose position to update.
1435
1529
  * @return {?}
1436
1530
  */
@@ -1471,32 +1565,38 @@ var MatMenuTrigger = /** @class */ (function () {
1471
1565
  }
1472
1566
  ]);
1473
1567
  };
1568
+ /** Cleans up the active subscriptions. */
1474
1569
  /**
1475
1570
  * Cleans up the active subscriptions.
1571
+ * @private
1476
1572
  * @return {?}
1477
1573
  */
1478
1574
  MatMenuTrigger.prototype._cleanUpSubscriptions = /**
1479
1575
  * Cleans up the active subscriptions.
1576
+ * @private
1480
1577
  * @return {?}
1481
1578
  */
1482
1579
  function () {
1483
- this._closeSubscription.unsubscribe();
1580
+ this._closingActionsSubscription.unsubscribe();
1484
1581
  this._hoverSubscription.unsubscribe();
1485
1582
  };
1583
+ /** Returns a stream that emits whenever an action that should close the menu occurs. */
1486
1584
  /**
1487
1585
  * Returns a stream that emits whenever an action that should close the menu occurs.
1586
+ * @private
1488
1587
  * @return {?}
1489
1588
  */
1490
1589
  MatMenuTrigger.prototype._menuClosingActions = /**
1491
1590
  * Returns a stream that emits whenever an action that should close the menu occurs.
1591
+ * @private
1492
1592
  * @return {?}
1493
1593
  */
1494
1594
  function () {
1495
1595
  var _this = this;
1496
1596
  /** @type {?} */
1497
- var backdrop = /** @type {?} */ ((this._overlayRef)).backdropClick();
1597
+ var backdrop = (/** @type {?} */ (this._overlayRef)).backdropClick();
1498
1598
  /** @type {?} */
1499
- var detachments = /** @type {?} */ ((this._overlayRef)).detachments();
1599
+ var detachments = (/** @type {?} */ (this._overlayRef)).detachments();
1500
1600
  /** @type {?} */
1501
1601
  var parentClose = this._parentMenu ? this._parentMenu.closed : of();
1502
1602
  /** @type {?} */
@@ -1567,12 +1667,15 @@ var MatMenuTrigger = /** @class */ (function () {
1567
1667
  this.toggleMenu();
1568
1668
  }
1569
1669
  };
1670
+ /** Handles the cases where the user hovers over the trigger. */
1570
1671
  /**
1571
1672
  * Handles the cases where the user hovers over the trigger.
1673
+ * @private
1572
1674
  * @return {?}
1573
1675
  */
1574
1676
  MatMenuTrigger.prototype._handleHover = /**
1575
1677
  * Handles the cases where the user hovers over the trigger.
1678
+ * @private
1576
1679
  * @return {?}
1577
1680
  */
1578
1681
  function () {
@@ -1603,12 +1706,15 @@ var MatMenuTrigger = /** @class */ (function () {
1603
1706
  }
1604
1707
  });
1605
1708
  };
1709
+ /** Gets the portal that should be attached to the overlay. */
1606
1710
  /**
1607
1711
  * Gets the portal that should be attached to the overlay.
1712
+ * @private
1608
1713
  * @return {?}
1609
1714
  */
1610
1715
  MatMenuTrigger.prototype._getPortal = /**
1611
1716
  * Gets the portal that should be attached to the overlay.
1717
+ * @private
1612
1718
  * @return {?}
1613
1719
  */
1614
1720
  function () {
@@ -1658,7 +1764,7 @@ var MatMenuTrigger = /** @class */ (function () {
1658
1764
 
1659
1765
  /**
1660
1766
  * @fileoverview added by tsickle
1661
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
1767
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1662
1768
  */
1663
1769
  var MatMenuModule = /** @class */ (function () {
1664
1770
  function MatMenuModule() {
@@ -1681,18 +1787,18 @@ var MatMenuModule = /** @class */ (function () {
1681
1787
 
1682
1788
  /**
1683
1789
  * @fileoverview added by tsickle
1684
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
1790
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1685
1791
  */
1686
1792
 
1687
1793
  /**
1688
1794
  * @fileoverview added by tsickle
1689
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
1795
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1690
1796
  */
1691
1797
 
1692
1798
  /**
1693
1799
  * @fileoverview added by tsickle
1694
- * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
1800
+ * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1695
1801
  */
1696
1802
 
1697
- export { MAT_MENU_SCROLL_STRATEGY, MatMenuModule, MatMenu, MAT_MENU_DEFAULT_OPTIONS, MatMenuItem, MatMenuTrigger, matMenuAnimations, fadeInItems, transformMenu, MatMenuContent, MAT_MENU_DEFAULT_OPTIONS_FACTORY as ɵa23, MatMenuItemBase as ɵb23, _MatMenuItemMixinBase as ɵc23, MAT_MENU_PANEL as ɵf23, MAT_MENU_SCROLL_STRATEGY_FACTORY as ɵd23, MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER as ɵe23 };
1803
+ export { MAT_MENU_SCROLL_STRATEGY, MatMenuModule, MatMenu, MAT_MENU_DEFAULT_OPTIONS, MatMenuItem, MatMenuTrigger, matMenuAnimations, fadeInItems, transformMenu, MatMenuContent, MAT_MENU_DEFAULT_OPTIONS_FACTORY as ɵa21, MatMenuItemBase as ɵb21, _MatMenuItemMixinBase as ɵc21, MAT_MENU_PANEL as ɵf21, MAT_MENU_SCROLL_STRATEGY_FACTORY as ɵd21, MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER as ɵe21 };
1698
1804
  //# sourceMappingURL=menu.es5.js.map