@angular/material 2.0.0-beta.0 → 2.0.0-beta.12

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 (1664) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +4 -165
  3. package/_theming.scss +3878 -0
  4. package/autocomplete/index.d.ts +8 -5
  5. package/autocomplete/index.metadata.json +12 -1
  6. package/autocomplete/package.json +7 -0
  7. package/autocomplete/typings/autocomplete-module.d.ts +2 -0
  8. package/autocomplete/typings/autocomplete-trigger.d.ts +159 -0
  9. package/autocomplete/typings/autocomplete.d.ts +62 -0
  10. package/autocomplete/typings/index.d.ts +4 -0
  11. package/autocomplete/typings/index.metadata.json +1 -0
  12. package/autocomplete/typings/public-api.d.ts +10 -0
  13. package/autocomplete.d.ts +8 -0
  14. package/autocomplete.metadata.json +12 -0
  15. package/bundles/material-autocomplete.umd.js +2969 -0
  16. package/bundles/material-autocomplete.umd.js.map +1 -0
  17. package/bundles/material-autocomplete.umd.min.js +10 -0
  18. package/bundles/material-autocomplete.umd.min.js.map +1 -0
  19. package/bundles/material-button-toggle.umd.js +2284 -0
  20. package/bundles/material-button-toggle.umd.js.map +1 -0
  21. package/bundles/material-button-toggle.umd.min.js +10 -0
  22. package/bundles/material-button-toggle.umd.min.js.map +1 -0
  23. package/bundles/material-button.umd.js +2092 -0
  24. package/bundles/material-button.umd.js.map +1 -0
  25. package/bundles/material-button.umd.min.js +10 -0
  26. package/bundles/material-button.umd.min.js.map +1 -0
  27. package/bundles/material-card.umd.js +2006 -0
  28. package/bundles/material-card.umd.js.map +1 -0
  29. package/bundles/material-card.umd.min.js +9 -0
  30. package/bundles/material-card.umd.min.js.map +1 -0
  31. package/bundles/material-checkbox.umd.js +2327 -0
  32. package/bundles/material-checkbox.umd.js.map +1 -0
  33. package/bundles/material-checkbox.umd.min.js +10 -0
  34. package/bundles/material-checkbox.umd.min.js.map +1 -0
  35. package/bundles/material-chips.umd.js +3542 -0
  36. package/bundles/material-chips.umd.js.map +1 -0
  37. package/bundles/material-chips.umd.min.js +10 -0
  38. package/bundles/material-chips.umd.min.js.map +1 -0
  39. package/bundles/material-core.umd.js +2206 -0
  40. package/bundles/material-core.umd.js.map +1 -0
  41. package/bundles/material-core.umd.min.js +9 -0
  42. package/bundles/material-core.umd.min.js.map +1 -0
  43. package/bundles/material-datepicker.umd.js +6128 -0
  44. package/bundles/material-datepicker.umd.js.map +1 -0
  45. package/bundles/material-datepicker.umd.min.js +12 -0
  46. package/bundles/material-datepicker.umd.min.js.map +1 -0
  47. package/bundles/material-dialog.umd.js +2530 -0
  48. package/bundles/material-dialog.umd.js.map +1 -0
  49. package/bundles/material-dialog.umd.min.js +10 -0
  50. package/bundles/material-dialog.umd.min.js.map +1 -0
  51. package/bundles/material-expansion.umd.js +2128 -0
  52. package/bundles/material-expansion.umd.js.map +1 -0
  53. package/bundles/material-expansion.umd.min.js +9 -0
  54. package/bundles/material-expansion.umd.min.js.map +1 -0
  55. package/bundles/material-form-field.umd.js +2091 -0
  56. package/bundles/material-form-field.umd.js.map +1 -0
  57. package/bundles/material-form-field.umd.min.js +10 -0
  58. package/bundles/material-form-field.umd.min.js.map +1 -0
  59. package/bundles/material-grid-list.umd.js +2621 -0
  60. package/bundles/material-grid-list.umd.js.map +1 -0
  61. package/bundles/material-grid-list.umd.min.js +10 -0
  62. package/bundles/material-grid-list.umd.min.js.map +1 -0
  63. package/bundles/material-icon.umd.js +2442 -0
  64. package/bundles/material-icon.umd.js.map +1 -0
  65. package/bundles/material-icon.umd.min.js +10 -0
  66. package/bundles/material-icon.umd.min.js.map +1 -0
  67. package/bundles/material-input.umd.js +2716 -0
  68. package/bundles/material-input.umd.js.map +1 -0
  69. package/bundles/material-input.umd.min.js +10 -0
  70. package/bundles/material-input.umd.min.js.map +1 -0
  71. package/bundles/material-list.umd.js +2611 -0
  72. package/bundles/material-list.umd.js.map +1 -0
  73. package/bundles/material-list.umd.min.js +11 -0
  74. package/bundles/material-list.umd.min.js.map +1 -0
  75. package/bundles/material-menu.umd.js +2613 -0
  76. package/bundles/material-menu.umd.js.map +1 -0
  77. package/bundles/material-menu.umd.min.js +10 -0
  78. package/bundles/material-menu.umd.min.js.map +1 -0
  79. package/bundles/material-paginator.umd.js +5228 -0
  80. package/bundles/material-paginator.umd.js.map +1 -0
  81. package/bundles/material-paginator.umd.min.js +11 -0
  82. package/bundles/material-paginator.umd.min.js.map +1 -0
  83. package/bundles/material-progress-bar.umd.js +1784 -0
  84. package/bundles/material-progress-bar.umd.js.map +1 -0
  85. package/bundles/material-progress-bar.umd.min.js +9 -0
  86. package/bundles/material-progress-bar.umd.min.js.map +1 -0
  87. package/bundles/material-progress-spinner.umd.js +2005 -0
  88. package/bundles/material-progress-spinner.umd.js.map +1 -0
  89. package/bundles/material-progress-spinner.umd.min.js +10 -0
  90. package/bundles/material-progress-spinner.umd.min.js.map +1 -0
  91. package/bundles/material-radio.umd.js +2530 -0
  92. package/bundles/material-radio.umd.js.map +1 -0
  93. package/bundles/material-radio.umd.min.js +10 -0
  94. package/bundles/material-radio.umd.min.js.map +1 -0
  95. package/bundles/material-select.umd.js +3843 -0
  96. package/bundles/material-select.umd.js.map +1 -0
  97. package/bundles/material-select.umd.min.js +10 -0
  98. package/bundles/material-select.umd.min.js.map +1 -0
  99. package/bundles/material-sidenav.umd.js +2577 -0
  100. package/bundles/material-sidenav.umd.js.map +1 -0
  101. package/bundles/material-sidenav.umd.min.js +10 -0
  102. package/bundles/material-sidenav.umd.min.js.map +1 -0
  103. package/bundles/material-slide-toggle.umd.js +2253 -0
  104. package/bundles/material-slide-toggle.umd.js.map +1 -0
  105. package/bundles/material-slide-toggle.umd.min.js +10 -0
  106. package/bundles/material-slide-toggle.umd.min.js.map +1 -0
  107. package/bundles/material-slider.umd.js +2621 -0
  108. package/bundles/material-slider.umd.js.map +1 -0
  109. package/bundles/material-slider.umd.min.js +10 -0
  110. package/bundles/material-slider.umd.min.js.map +1 -0
  111. package/bundles/material-snack-bar.umd.js +2258 -0
  112. package/bundles/material-snack-bar.umd.js.map +1 -0
  113. package/bundles/material-snack-bar.umd.min.js +10 -0
  114. package/bundles/material-snack-bar.umd.min.js.map +1 -0
  115. package/bundles/material-sort.umd.js +1917 -0
  116. package/bundles/material-sort.umd.js.map +1 -0
  117. package/bundles/material-sort.umd.min.js +9 -0
  118. package/bundles/material-sort.umd.min.js.map +1 -0
  119. package/bundles/material-stepper.umd.js +3271 -0
  120. package/bundles/material-stepper.umd.js.map +1 -0
  121. package/bundles/material-stepper.umd.min.js +10 -0
  122. package/bundles/material-stepper.umd.min.js.map +1 -0
  123. package/bundles/material-table.umd.js +1976 -0
  124. package/bundles/material-table.umd.js.map +1 -0
  125. package/bundles/material-table.umd.min.js +9 -0
  126. package/bundles/material-table.umd.min.js.map +1 -0
  127. package/bundles/material-tabs.umd.js +3341 -0
  128. package/bundles/material-tabs.umd.js.map +1 -0
  129. package/bundles/material-tabs.umd.min.js +10 -0
  130. package/bundles/material-tabs.umd.min.js.map +1 -0
  131. package/bundles/material-toolbar.umd.js +1790 -0
  132. package/bundles/material-toolbar.umd.js.map +1 -0
  133. package/bundles/material-toolbar.umd.min.js +9 -0
  134. package/bundles/material-toolbar.umd.min.js.map +1 -0
  135. package/bundles/material-tooltip.umd.js +2339 -0
  136. package/bundles/material-tooltip.umd.js.map +1 -0
  137. package/bundles/material-tooltip.umd.min.js +10 -0
  138. package/bundles/material-tooltip.umd.min.js.map +1 -0
  139. package/bundles/material.umd.js +21541 -12552
  140. package/bundles/material.umd.js.map +1 -0
  141. package/bundles/material.umd.min.js +22 -0
  142. package/bundles/material.umd.min.js.map +1 -0
  143. package/button/index.d.ts +8 -1
  144. package/button/index.metadata.json +12 -1
  145. package/button/package.json +7 -0
  146. package/button/typings/button-module.d.ts +2 -0
  147. package/button/typings/button.d.ts +77 -0
  148. package/button/typings/index.d.ts +4 -0
  149. package/button/typings/index.metadata.json +1 -0
  150. package/button/typings/public-api.d.ts +9 -0
  151. package/button-toggle/index.d.ts +8 -1
  152. package/button-toggle/index.metadata.json +12 -1
  153. package/button-toggle/package.json +7 -0
  154. package/button-toggle/typings/button-toggle-module.d.ts +2 -0
  155. package/button-toggle/typings/button-toggle.d.ts +163 -0
  156. package/button-toggle/typings/index.d.ts +4 -0
  157. package/button-toggle/typings/index.metadata.json +1 -0
  158. package/button-toggle/typings/public-api.d.ts +9 -0
  159. package/button-toggle.d.ts +8 -0
  160. package/button-toggle.metadata.json +12 -0
  161. package/button.d.ts +8 -0
  162. package/button.metadata.json +12 -0
  163. package/card/index.d.ts +8 -1
  164. package/card/index.metadata.json +12 -1
  165. package/card/package.json +7 -0
  166. package/card/typings/card-module.d.ts +2 -0
  167. package/card/typings/card.d.ts +95 -0
  168. package/card/typings/index.d.ts +4 -0
  169. package/card/typings/index.metadata.json +1 -0
  170. package/card/typings/public-api.d.ts +9 -0
  171. package/card.d.ts +8 -0
  172. package/card.metadata.json +12 -0
  173. package/checkbox/index.d.ts +8 -1
  174. package/checkbox/index.metadata.json +12 -1
  175. package/checkbox/package.json +7 -0
  176. package/checkbox/typings/checkbox-module.d.ts +2 -0
  177. package/checkbox/typings/checkbox-required-validator.d.ts +18 -0
  178. package/checkbox/typings/checkbox.d.ts +157 -0
  179. package/checkbox/typings/index.d.ts +4 -0
  180. package/checkbox/typings/index.metadata.json +1 -0
  181. package/checkbox/typings/public-api.d.ts +10 -0
  182. package/checkbox.d.ts +8 -0
  183. package/checkbox.metadata.json +12 -0
  184. package/chips/index.d.ts +8 -2
  185. package/chips/index.metadata.json +12 -1
  186. package/chips/package.json +7 -0
  187. package/chips/typings/chip-input.d.ts +43 -0
  188. package/chips/typings/chip-list.d.ts +222 -0
  189. package/chips/typings/chip.d.ts +123 -0
  190. package/chips/typings/chips-module.d.ts +2 -0
  191. package/chips/typings/index.d.ts +4 -0
  192. package/chips/typings/index.metadata.json +1 -0
  193. package/chips/typings/public-api.d.ts +11 -0
  194. package/chips.d.ts +8 -0
  195. package/chips.metadata.json +12 -0
  196. package/core/index.d.ts +8 -1
  197. package/core/index.metadata.json +12 -1
  198. package/core/package.json +7 -0
  199. package/core/typings/animation/animation.d.ts +20 -0
  200. package/core/typings/common-behaviors/color.d.ts +22 -0
  201. package/core/typings/common-behaviors/common-module.d.ts +25 -0
  202. package/core/typings/common-behaviors/constructor.d.ts +9 -0
  203. package/core/typings/common-behaviors/disable-ripple.d.ts +7 -0
  204. package/core/typings/common-behaviors/disabled.d.ts +7 -0
  205. package/core/typings/common-behaviors/index.d.ts +12 -0
  206. package/core/typings/common-behaviors/tabindex.d.ts +15 -0
  207. package/core/typings/compatibility/compatibility.d.ts +32 -0
  208. package/core/typings/datetime/date-adapter.d.ts +198 -0
  209. package/core/typings/datetime/date-formats.d.ts +20 -0
  210. package/core/typings/datetime/index.d.ts +8 -0
  211. package/core/typings/datetime/native-date-adapter.d.ts +50 -0
  212. package/core/typings/datetime/native-date-formats.d.ts +9 -0
  213. package/core/typings/error/error-options.d.ts +9 -0
  214. package/core/typings/gestures/gesture-annotations.d.ts +51 -0
  215. package/core/{gestures → typings/gestures}/gesture-config.d.ts +0 -0
  216. package/core/typings/index.d.ts +5 -0
  217. package/core/typings/index.metadata.json +1 -0
  218. package/core/typings/line/line.d.ts +30 -0
  219. package/core/typings/option/index.d.ts +4 -0
  220. package/core/typings/option/optgroup.d.ts +14 -0
  221. package/core/typings/option/option.d.ts +90 -0
  222. package/core/typings/placeholder/placeholder-options.d.ts +15 -0
  223. package/core/typings/public-api.d.ts +22 -0
  224. package/core/typings/ripple/index.d.ts +5 -0
  225. package/core/typings/ripple/ripple-ref.d.ts +28 -0
  226. package/core/typings/ripple/ripple-renderer.d.ts +69 -0
  227. package/core/typings/ripple/ripple.d.ts +65 -0
  228. package/core/typings/selection/index.d.ts +3 -0
  229. package/core/typings/selection/pseudo-checkbox/pseudo-checkbox.d.ts +20 -0
  230. package/core/typings/style/apply-transform.d.ts +13 -0
  231. package/core/typings/style/index.d.ts +8 -0
  232. package/core/typings/testing/month-constants.d.ts +12 -0
  233. package/core/typings/util/object-extend.d.ts +15 -0
  234. package/core.d.ts +7 -0
  235. package/core.metadata.json +12 -1
  236. package/datepicker/index.d.ts +8 -0
  237. package/datepicker/index.metadata.json +12 -0
  238. package/datepicker/package.json +7 -0
  239. package/datepicker/typings/calendar-body.d.ts +52 -0
  240. package/datepicker/typings/calendar.d.ts +97 -0
  241. package/datepicker/typings/coerce-date-property.d.ts +19 -0
  242. package/datepicker/typings/datepicker-errors.d.ts +9 -0
  243. package/datepicker/typings/datepicker-input.d.ts +92 -0
  244. package/datepicker/typings/datepicker-intl.d.ts +25 -0
  245. package/datepicker/typings/datepicker-module.d.ts +2 -0
  246. package/datepicker/typings/datepicker-toggle.d.ts +24 -0
  247. package/datepicker/typings/datepicker.d.ts +117 -0
  248. package/datepicker/typings/index.d.ts +4 -0
  249. package/datepicker/typings/index.metadata.json +1 -0
  250. package/datepicker/typings/month-view.d.ts +66 -0
  251. package/datepicker/typings/public-api.d.ts +17 -0
  252. package/datepicker/typings/year-view.d.ts +55 -0
  253. package/datepicker.d.ts +8 -0
  254. package/datepicker.metadata.json +12 -0
  255. package/dialog/index.d.ts +8 -9
  256. package/dialog/index.metadata.json +12 -1
  257. package/dialog/package.json +7 -0
  258. package/dialog/typings/dialog-config.d.ts +54 -0
  259. package/dialog/typings/dialog-container.d.ts +68 -0
  260. package/dialog/typings/dialog-content-directives.d.ts +43 -0
  261. package/dialog/typings/dialog-module.d.ts +2 -0
  262. package/dialog/typings/dialog-ref.d.ts +68 -0
  263. package/dialog/typings/dialog.d.ts +108 -0
  264. package/dialog/typings/index.d.ts +4 -0
  265. package/dialog/typings/index.metadata.json +1 -0
  266. package/dialog/typings/public-api.d.ts +13 -0
  267. package/dialog.d.ts +8 -0
  268. package/dialog.metadata.json +12 -0
  269. package/esm2015/autocomplete.js +673 -0
  270. package/esm2015/autocomplete.js.map +1 -0
  271. package/esm2015/button-toggle.js +589 -0
  272. package/esm2015/button-toggle.js.map +1 -0
  273. package/esm2015/button.js +318 -0
  274. package/esm2015/button.js.map +1 -0
  275. package/esm2015/card.js +312 -0
  276. package/esm2015/card.js.map +1 -0
  277. package/esm2015/checkbox.js +500 -0
  278. package/esm2015/checkbox.js.map +1 -0
  279. package/esm2015/chips.js +1330 -0
  280. package/esm2015/chips.js.map +1 -0
  281. package/esm2015/core.js +2117 -0
  282. package/esm2015/core.js.map +1 -0
  283. package/esm2015/datepicker.js +1813 -0
  284. package/esm2015/datepicker.js.map +1 -0
  285. package/esm2015/dialog.js +854 -0
  286. package/esm2015/dialog.js.map +1 -0
  287. package/esm2015/expansion.js +587 -0
  288. package/esm2015/expansion.js.map +1 -0
  289. package/esm2015/form-field.js +535 -0
  290. package/esm2015/form-field.js.map +1 -0
  291. package/esm2015/grid-list.js +827 -0
  292. package/esm2015/grid-list.js.map +1 -0
  293. package/esm2015/icon.js +735 -0
  294. package/esm2015/icon.js.map +1 -0
  295. package/esm2015/input.js +585 -0
  296. package/esm2015/input.js.map +1 -0
  297. package/esm2015/list.js +640 -0
  298. package/esm2015/list.js.map +1 -0
  299. package/esm2015/material.js +51 -0
  300. package/esm2015/material.js.map +1 -0
  301. package/esm2015/menu.js +923 -0
  302. package/esm2015/menu.js.map +1 -0
  303. package/esm2015/paginator.js +303 -0
  304. package/esm2015/paginator.js.map +1 -0
  305. package/esm2015/progress-bar.js +133 -0
  306. package/esm2015/progress-bar.js.map +1 -0
  307. package/esm2015/progress-spinner.js +303 -0
  308. package/esm2015/progress-spinner.js.map +1 -0
  309. package/esm2015/radio.js +709 -0
  310. package/esm2015/radio.js.map +1 -0
  311. package/esm2015/select.js +1394 -0
  312. package/esm2015/select.js.map +1 -0
  313. package/esm2015/sidenav.js +866 -0
  314. package/esm2015/sidenav.js.map +1 -0
  315. package/esm2015/slide-toggle.js +428 -0
  316. package/esm2015/slide-toggle.js.map +1 -0
  317. package/esm2015/slider.js +834 -0
  318. package/esm2015/slider.js.map +1 -0
  319. package/esm2015/snack-bar.js +596 -0
  320. package/esm2015/snack-bar.js.map +1 -0
  321. package/esm2015/sort.js +371 -0
  322. package/esm2015/sort.js.map +1 -0
  323. package/esm2015/stepper.js +395 -0
  324. package/esm2015/stepper.js.map +1 -0
  325. package/esm2015/table.js +272 -0
  326. package/esm2015/table.js.map +1 -0
  327. package/esm2015/tabs.js +1480 -0
  328. package/esm2015/tabs.js.map +1 -0
  329. package/esm2015/toolbar.js +89 -0
  330. package/esm2015/toolbar.js.map +1 -0
  331. package/esm2015/tooltip.js +671 -0
  332. package/esm2015/tooltip.js.map +1 -0
  333. package/esm5/autocomplete.es5.js +712 -0
  334. package/esm5/autocomplete.es5.js.map +1 -0
  335. package/esm5/button-toggle.es5.js +646 -0
  336. package/esm5/button-toggle.es5.js.map +1 -0
  337. package/esm5/button.es5.js +344 -0
  338. package/esm5/button.es5.js.map +1 -0
  339. package/esm5/card.es5.js +355 -0
  340. package/esm5/card.es5.js.map +1 -0
  341. package/esm5/checkbox.es5.js +538 -0
  342. package/esm5/checkbox.es5.js.map +1 -0
  343. package/esm5/chips.es5.js +1464 -0
  344. package/esm5/chips.es5.js.map +1 -0
  345. package/esm5/core.es5.js +2126 -0
  346. package/esm5/core.es5.js.map +1 -0
  347. package/esm5/datepicker.es5.js +1946 -0
  348. package/esm5/datepicker.es5.js.map +1 -0
  349. package/esm5/dialog.es5.js +894 -0
  350. package/esm5/dialog.es5.js.map +1 -0
  351. package/esm5/expansion.es5.js +622 -0
  352. package/esm5/expansion.es5.js.map +1 -0
  353. package/esm5/form-field.es5.js +580 -0
  354. package/esm5/form-field.es5.js.map +1 -0
  355. package/esm5/grid-list.es5.js +888 -0
  356. package/esm5/grid-list.es5.js.map +1 -0
  357. package/esm5/icon.es5.js +754 -0
  358. package/esm5/icon.es5.js.map +1 -0
  359. package/esm5/input.es5.js +630 -0
  360. package/esm5/input.es5.js.map +1 -0
  361. package/esm5/list.es5.js +704 -0
  362. package/esm5/list.es5.js.map +1 -0
  363. package/esm5/material.es5.js +51 -0
  364. package/esm5/material.es5.js.map +1 -0
  365. package/esm5/menu.es5.js +962 -0
  366. package/esm5/menu.es5.js.map +1 -0
  367. package/esm5/paginator.es5.js +328 -0
  368. package/esm5/paginator.es5.js.map +1 -0
  369. package/esm5/progress-bar.es5.js +147 -0
  370. package/esm5/progress-bar.es5.js.map +1 -0
  371. package/esm5/progress-spinner.es5.js +317 -0
  372. package/esm5/progress-spinner.es5.js.map +1 -0
  373. package/esm5/radio.es5.js +786 -0
  374. package/esm5/radio.es5.js.map +1 -0
  375. package/esm5/select.es5.js +1481 -0
  376. package/esm5/select.es5.js.map +1 -0
  377. package/esm5/sidenav.es5.js +946 -0
  378. package/esm5/sidenav.es5.js.map +1 -0
  379. package/esm5/slide-toggle.es5.js +455 -0
  380. package/esm5/slide-toggle.es5.js.map +1 -0
  381. package/esm5/slider.es5.js +938 -0
  382. package/esm5/slider.es5.js.map +1 -0
  383. package/esm5/snack-bar.es5.js +622 -0
  384. package/esm5/snack-bar.es5.js.map +1 -0
  385. package/esm5/sort.es5.js +389 -0
  386. package/esm5/sort.es5.js.map +1 -0
  387. package/esm5/stepper.es5.js +448 -0
  388. package/esm5/stepper.es5.js.map +1 -0
  389. package/esm5/table.es5.js +323 -0
  390. package/esm5/table.es5.js.map +1 -0
  391. package/esm5/tabs.es5.js +1591 -0
  392. package/esm5/tabs.es5.js.map +1 -0
  393. package/esm5/toolbar.es5.js +100 -0
  394. package/esm5/toolbar.es5.js.map +1 -0
  395. package/esm5/tooltip.es5.js +705 -0
  396. package/esm5/tooltip.es5.js.map +1 -0
  397. package/expansion/index.d.ts +8 -0
  398. package/expansion/index.metadata.json +12 -0
  399. package/expansion/package.json +7 -0
  400. package/expansion/typings/accordion-item.d.ts +41 -0
  401. package/expansion/typings/accordion.d.ts +29 -0
  402. package/expansion/typings/expansion-module.d.ts +2 -0
  403. package/expansion/typings/expansion-panel-header.d.ts +49 -0
  404. package/expansion/typings/expansion-panel.d.ts +40 -0
  405. package/expansion/typings/index.d.ts +5 -0
  406. package/expansion/typings/index.metadata.json +1 -0
  407. package/expansion/typings/public-api.d.ts +12 -0
  408. package/expansion.d.ts +8 -0
  409. package/expansion.metadata.json +12 -0
  410. package/form-field/index.d.ts +8 -0
  411. package/form-field/index.metadata.json +12 -0
  412. package/form-field/package.json +7 -0
  413. package/form-field/typings/error.d.ts +4 -0
  414. package/form-field/typings/form-field-control.d.ts +47 -0
  415. package/form-field/typings/form-field-errors.d.ts +13 -0
  416. package/form-field/typings/form-field-module.d.ts +2 -0
  417. package/form-field/typings/form-field.d.ts +78 -0
  418. package/form-field/typings/hint.d.ts +7 -0
  419. package/form-field/typings/index.d.ts +4 -0
  420. package/form-field/typings/index.metadata.json +1 -0
  421. package/form-field/typings/placeholder.d.ts +3 -0
  422. package/form-field/typings/prefix.d.ts +3 -0
  423. package/form-field/typings/public-api.d.ts +16 -0
  424. package/form-field/typings/suffix.d.ts +3 -0
  425. package/form-field.d.ts +8 -0
  426. package/form-field.metadata.json +12 -0
  427. package/grid-list/index.d.ts +8 -1
  428. package/grid-list/index.metadata.json +12 -1
  429. package/grid-list/package.json +7 -0
  430. package/grid-list/typings/grid-list-measure.d.ts +17 -0
  431. package/grid-list/typings/grid-list-module.d.ts +2 -0
  432. package/grid-list/typings/grid-list.d.ts +53 -0
  433. package/grid-list/typings/grid-tile.d.ts +55 -0
  434. package/grid-list/typings/index.d.ts +5 -0
  435. package/grid-list/typings/index.metadata.json +1 -0
  436. package/grid-list/typings/public-api.d.ts +10 -0
  437. package/grid-list/typings/tile-coordinator.d.ts +64 -0
  438. package/grid-list/typings/tile-styler.d.ts +129 -0
  439. package/grid-list.d.ts +8 -0
  440. package/grid-list.metadata.json +12 -0
  441. package/icon/index.d.ts +8 -1
  442. package/icon/index.metadata.json +12 -1
  443. package/icon/package.json +7 -0
  444. package/icon/typings/icon-module.d.ts +2 -0
  445. package/icon/typings/icon-registry.d.ts +187 -0
  446. package/icon/typings/icon.d.ts +69 -0
  447. package/icon/typings/index.d.ts +4 -0
  448. package/icon/typings/index.metadata.json +1 -0
  449. package/icon/typings/public-api.d.ts +10 -0
  450. package/icon.d.ts +8 -0
  451. package/icon.metadata.json +12 -0
  452. package/input/index.d.ts +8 -4
  453. package/input/index.metadata.json +12 -1
  454. package/input/package.json +7 -0
  455. package/input/typings/autosize.d.ts +43 -0
  456. package/input/typings/index.d.ts +4 -0
  457. package/input/typings/index.metadata.json +1 -0
  458. package/input/typings/input-errors.d.ts +9 -0
  459. package/input/typings/input-module.d.ts +2 -0
  460. package/input/typings/input.d.ts +85 -0
  461. package/input/typings/public-api.d.ts +11 -0
  462. package/input.d.ts +8 -0
  463. package/input.metadata.json +12 -0
  464. package/list/index.d.ts +8 -1
  465. package/list/index.metadata.json +12 -1
  466. package/list/package.json +7 -0
  467. package/list/typings/index.d.ts +4 -0
  468. package/list/typings/index.metadata.json +1 -0
  469. package/list/typings/list-module.d.ts +2 -0
  470. package/list/typings/list.d.ts +77 -0
  471. package/list/typings/public-api.d.ts +10 -0
  472. package/list/typings/selection-list.d.ts +103 -0
  473. package/list.d.ts +8 -0
  474. package/list.metadata.json +12 -0
  475. package/material.d.ts +39 -0
  476. package/material.metadata.json +105 -0
  477. package/menu/index.d.ts +8 -5
  478. package/menu/index.metadata.json +12 -1
  479. package/menu/package.json +7 -0
  480. package/menu/typings/index.d.ts +6 -0
  481. package/menu/typings/index.metadata.json +1 -0
  482. package/menu/typings/menu-animations.d.ts +27 -0
  483. package/menu/typings/menu-directive.d.ts +89 -0
  484. package/menu/typings/menu-errors.d.ts +24 -0
  485. package/menu/typings/menu-item.d.ts +42 -0
  486. package/menu/typings/menu-module.d.ts +2 -0
  487. package/menu/typings/menu-panel.d.ts +22 -0
  488. package/menu/typings/menu-positions.d.ts +9 -0
  489. package/menu/typings/menu-trigger.d.ts +115 -0
  490. package/menu/typings/menu.d.ts +12 -0
  491. package/menu/typings/public-api.d.ts +11 -0
  492. package/menu.d.ts +8 -0
  493. package/menu.metadata.json +12 -0
  494. package/package.json +10 -9
  495. package/paginator/index.d.ts +8 -0
  496. package/paginator/index.metadata.json +12 -0
  497. package/paginator/package.json +7 -0
  498. package/paginator/typings/index.d.ts +4 -0
  499. package/paginator/typings/index.metadata.json +1 -0
  500. package/paginator/typings/paginator-intl.d.ts +20 -0
  501. package/paginator/typings/paginator-module.d.ts +2 -0
  502. package/paginator/typings/paginator.d.ts +75 -0
  503. package/paginator/typings/public-api.d.ts +10 -0
  504. package/paginator.d.ts +8 -0
  505. package/paginator.metadata.json +12 -0
  506. package/prebuilt-themes/deeppurple-amber.css +1 -0
  507. package/prebuilt-themes/indigo-pink.css +1 -0
  508. package/prebuilt-themes/pink-bluegrey.css +1 -0
  509. package/prebuilt-themes/purple-green.css +1 -0
  510. package/progress-bar/index.d.ts +8 -1
  511. package/progress-bar/index.metadata.json +12 -1
  512. package/progress-bar/package.json +7 -0
  513. package/progress-bar/typings/index.d.ts +4 -0
  514. package/progress-bar/typings/index.metadata.json +1 -0
  515. package/progress-bar/typings/progress-bar-module.d.ts +2 -0
  516. package/progress-bar/typings/progress-bar.d.ts +32 -0
  517. package/progress-bar/typings/public-api.d.ts +9 -0
  518. package/progress-bar.d.ts +8 -0
  519. package/progress-bar.metadata.json +12 -0
  520. package/progress-spinner/index.d.ts +8 -2
  521. package/progress-spinner/index.metadata.json +12 -1
  522. package/progress-spinner/package.json +7 -0
  523. package/progress-spinner/typings/index.d.ts +4 -0
  524. package/progress-spinner/typings/index.metadata.json +1 -0
  525. package/progress-spinner/typings/progress-spinner-module.d.ts +3 -0
  526. package/progress-spinner/typings/progress-spinner.d.ts +69 -0
  527. package/progress-spinner/typings/public-api.d.ts +9 -0
  528. package/progress-spinner.d.ts +8 -0
  529. package/progress-spinner.metadata.json +12 -0
  530. package/radio/index.d.ts +8 -1
  531. package/radio/index.metadata.json +12 -1
  532. package/radio/package.json +7 -0
  533. package/radio/typings/index.d.ts +4 -0
  534. package/radio/typings/index.metadata.json +1 -0
  535. package/radio/typings/public-api.d.ts +9 -0
  536. package/radio/typings/radio-module.d.ts +2 -0
  537. package/radio/typings/radio.d.ts +215 -0
  538. package/radio.d.ts +8 -0
  539. package/radio.metadata.json +12 -0
  540. package/select/index.d.ts +8 -7
  541. package/select/index.metadata.json +12 -1
  542. package/select/package.json +7 -0
  543. package/select/typings/index.d.ts +4 -0
  544. package/select/typings/index.metadata.json +1 -0
  545. package/select/typings/public-api.d.ts +10 -0
  546. package/select/typings/select-animations.d.ts +30 -0
  547. package/select/typings/select-errors.d.ts +26 -0
  548. package/select/typings/select-module.d.ts +2 -0
  549. package/select/typings/select.d.ts +393 -0
  550. package/select.d.ts +8 -0
  551. package/select.metadata.json +12 -0
  552. package/sidenav/index.d.ts +8 -1
  553. package/sidenav/index.metadata.json +12 -1
  554. package/sidenav/package.json +7 -0
  555. package/sidenav/typings/drawer.d.ts +190 -0
  556. package/sidenav/typings/index.d.ts +4 -0
  557. package/sidenav/typings/index.metadata.json +1 -0
  558. package/sidenav/typings/public-api.d.ts +10 -0
  559. package/sidenav/typings/sidenav-module.d.ts +2 -0
  560. package/sidenav/typings/sidenav.d.ts +33 -0
  561. package/sidenav.d.ts +8 -0
  562. package/sidenav.metadata.json +12 -0
  563. package/slide-toggle/index.d.ts +8 -1
  564. package/slide-toggle/index.metadata.json +12 -1
  565. package/slide-toggle/package.json +7 -0
  566. package/slide-toggle/typings/index.d.ts +4 -0
  567. package/slide-toggle/typings/index.metadata.json +1 -0
  568. package/slide-toggle/typings/public-api.d.ts +9 -0
  569. package/slide-toggle/typings/slide-toggle-module.d.ts +2 -0
  570. package/slide-toggle/typings/slide-toggle.d.ts +93 -0
  571. package/slide-toggle.d.ts +8 -0
  572. package/slide-toggle.metadata.json +12 -0
  573. package/slider/index.d.ts +8 -1
  574. package/slider/index.metadata.json +12 -1
  575. package/slider/package.json +7 -0
  576. package/slider/typings/index.d.ts +4 -0
  577. package/slider/typings/index.metadata.json +1 -0
  578. package/slider/typings/public-api.d.ts +9 -0
  579. package/slider/typings/slider-module.d.ts +2 -0
  580. package/slider/typings/slider.d.ts +207 -0
  581. package/slider.d.ts +8 -0
  582. package/slider.metadata.json +12 -0
  583. package/snack-bar/index.d.ts +8 -4
  584. package/snack-bar/index.metadata.json +12 -1
  585. package/snack-bar/package.json +7 -0
  586. package/snack-bar/typings/index.d.ts +4 -0
  587. package/snack-bar/typings/index.metadata.json +1 -0
  588. package/snack-bar/typings/public-api.d.ts +13 -0
  589. package/snack-bar/typings/simple-snack-bar.d.ts +18 -0
  590. package/snack-bar/typings/snack-bar-config.d.ts +38 -0
  591. package/snack-bar/typings/snack-bar-container.d.ts +55 -0
  592. package/snack-bar/typings/snack-bar-module.d.ts +2 -0
  593. package/snack-bar/typings/snack-bar-ref.d.ts +51 -0
  594. package/snack-bar/typings/snack-bar.d.ts +70 -0
  595. package/snack-bar.d.ts +8 -0
  596. package/snack-bar.metadata.json +12 -0
  597. package/sort/index.d.ts +8 -0
  598. package/sort/index.metadata.json +12 -0
  599. package/sort/package.json +7 -0
  600. package/sort/typings/index.d.ts +4 -0
  601. package/sort/typings/index.metadata.json +1 -0
  602. package/sort/typings/public-api.d.ts +12 -0
  603. package/sort/typings/sort-direction.d.ts +8 -0
  604. package/sort/typings/sort-errors.d.ts +15 -0
  605. package/sort/typings/sort-header-intl.d.ts +17 -0
  606. package/sort/typings/sort-header.d.ts +43 -0
  607. package/sort/typings/sort-module.d.ts +2 -0
  608. package/sort/typings/sort.d.ts +55 -0
  609. package/sort.d.ts +8 -0
  610. package/sort.metadata.json +12 -0
  611. package/stepper/index.d.ts +8 -0
  612. package/stepper/index.metadata.json +12 -0
  613. package/stepper/package.json +7 -0
  614. package/stepper/typings/index.d.ts +4 -0
  615. package/stepper/typings/index.metadata.json +1 -0
  616. package/stepper/typings/public-api.d.ts +13 -0
  617. package/stepper/typings/step-header.d.ts +41 -0
  618. package/stepper/typings/step-label.d.ts +14 -0
  619. package/stepper/typings/stepper-button.d.ts +10 -0
  620. package/stepper/typings/stepper-intl.d.ts +11 -0
  621. package/stepper/typings/stepper-module.d.ts +2 -0
  622. package/stepper/typings/stepper.d.ts +26 -0
  623. package/stepper.d.ts +8 -0
  624. package/stepper.metadata.json +12 -0
  625. package/table/index.d.ts +8 -0
  626. package/table/index.metadata.json +12 -0
  627. package/table/package.json +7 -0
  628. package/table/typings/cell.d.ts +43 -0
  629. package/table/typings/index.d.ts +4 -0
  630. package/table/typings/index.metadata.json +1 -0
  631. package/table/typings/public-api.d.ts +11 -0
  632. package/table/typings/row.d.ts +25 -0
  633. package/table/typings/table-module.d.ts +2 -0
  634. package/table/typings/table.d.ts +8 -0
  635. package/table.d.ts +8 -0
  636. package/table.metadata.json +12 -0
  637. package/tabs/index.d.ts +8 -7
  638. package/tabs/index.metadata.json +12 -1
  639. package/tabs/package.json +7 -0
  640. package/tabs/typings/index.d.ts +8 -0
  641. package/tabs/typings/index.metadata.json +1 -0
  642. package/tabs/typings/ink-bar.d.ts +33 -0
  643. package/tabs/typings/public-api.d.ts +16 -0
  644. package/tabs/typings/tab-body.d.ts +69 -0
  645. package/tabs/typings/tab-group.d.ts +104 -0
  646. package/tabs/typings/tab-header.d.ts +158 -0
  647. package/tabs/typings/tab-label-wrapper.d.ts +25 -0
  648. package/tabs/typings/tab-label.d.ts +15 -0
  649. package/tabs/typings/tab-nav-bar/index.d.ts +8 -0
  650. package/tabs/typings/tab-nav-bar/tab-nav-bar.d.ts +78 -0
  651. package/tabs/typings/tab.d.ts +50 -0
  652. package/tabs/typings/tabs-module.d.ts +2 -0
  653. package/tabs.d.ts +8 -0
  654. package/tabs.metadata.json +12 -0
  655. package/toolbar/index.d.ts +8 -1
  656. package/toolbar/index.metadata.json +12 -1
  657. package/toolbar/package.json +7 -0
  658. package/toolbar/typings/index.d.ts +4 -0
  659. package/toolbar/typings/index.metadata.json +1 -0
  660. package/toolbar/typings/public-api.d.ts +9 -0
  661. package/toolbar/typings/toolbar-module.d.ts +2 -0
  662. package/toolbar/typings/toolbar.d.ts +21 -0
  663. package/toolbar.d.ts +8 -0
  664. package/toolbar.metadata.json +12 -0
  665. package/tooltip/index.d.ts +8 -1
  666. package/tooltip/index.metadata.json +12 -1
  667. package/tooltip/package.json +7 -0
  668. package/tooltip/typings/index.d.ts +4 -0
  669. package/tooltip/typings/index.metadata.json +1 -0
  670. package/tooltip/typings/public-api.d.ts +9 -0
  671. package/tooltip/typings/tooltip-module.d.ts +2 -0
  672. package/tooltip/typings/tooltip.d.ts +175 -0
  673. package/tooltip.d.ts +8 -0
  674. package/tooltip.metadata.json +12 -0
  675. package/typings/autocomplete/autocomplete-module.d.ts +2 -0
  676. package/typings/autocomplete/autocomplete-trigger.d.ts +159 -0
  677. package/typings/autocomplete/autocomplete.d.ts +62 -0
  678. package/typings/autocomplete/index.d.ts +4 -0
  679. package/typings/autocomplete/index.metadata.json +1 -0
  680. package/typings/autocomplete/public-api.d.ts +10 -0
  681. package/typings/button/button-module.d.ts +2 -0
  682. package/typings/button/button.d.ts +77 -0
  683. package/typings/button/index.d.ts +4 -0
  684. package/typings/button/index.metadata.json +1 -0
  685. package/typings/button/public-api.d.ts +9 -0
  686. package/typings/button-toggle/button-toggle-module.d.ts +2 -0
  687. package/typings/button-toggle/button-toggle.d.ts +163 -0
  688. package/typings/button-toggle/index.d.ts +4 -0
  689. package/typings/button-toggle/index.metadata.json +1 -0
  690. package/typings/button-toggle/public-api.d.ts +9 -0
  691. package/typings/card/card-module.d.ts +2 -0
  692. package/typings/card/card.d.ts +95 -0
  693. package/typings/card/index.d.ts +4 -0
  694. package/typings/card/index.metadata.json +1 -0
  695. package/typings/card/public-api.d.ts +9 -0
  696. package/typings/checkbox/checkbox-module.d.ts +2 -0
  697. package/typings/checkbox/checkbox-required-validator.d.ts +18 -0
  698. package/typings/checkbox/checkbox.d.ts +157 -0
  699. package/typings/checkbox/index.d.ts +4 -0
  700. package/typings/checkbox/index.metadata.json +1 -0
  701. package/typings/checkbox/public-api.d.ts +10 -0
  702. package/typings/chips/chip-input.d.ts +43 -0
  703. package/typings/chips/chip-list.d.ts +222 -0
  704. package/typings/chips/chip.d.ts +123 -0
  705. package/typings/chips/chips-module.d.ts +2 -0
  706. package/typings/chips/index.d.ts +4 -0
  707. package/typings/chips/index.metadata.json +1 -0
  708. package/typings/chips/public-api.d.ts +11 -0
  709. package/typings/core/animation/animation.d.ts +20 -0
  710. package/typings/core/common-behaviors/color.d.ts +22 -0
  711. package/typings/core/common-behaviors/common-module.d.ts +25 -0
  712. package/typings/core/common-behaviors/constructor.d.ts +9 -0
  713. package/typings/core/common-behaviors/disable-ripple.d.ts +7 -0
  714. package/typings/core/common-behaviors/disabled.d.ts +7 -0
  715. package/typings/core/common-behaviors/index.d.ts +12 -0
  716. package/typings/core/common-behaviors/tabindex.d.ts +15 -0
  717. package/typings/core/compatibility/compatibility.d.ts +32 -0
  718. package/typings/core/datetime/date-adapter.d.ts +198 -0
  719. package/typings/core/datetime/date-formats.d.ts +20 -0
  720. package/typings/core/datetime/index.d.ts +8 -0
  721. package/typings/core/datetime/native-date-adapter.d.ts +50 -0
  722. package/typings/core/datetime/native-date-formats.d.ts +9 -0
  723. package/typings/core/error/error-options.d.ts +9 -0
  724. package/typings/core/gestures/gesture-annotations.d.ts +51 -0
  725. package/typings/core/gestures/gesture-config.d.ts +23 -0
  726. package/typings/core/index.d.ts +5 -0
  727. package/typings/core/index.metadata.json +1 -0
  728. package/typings/core/line/line.d.ts +30 -0
  729. package/typings/core/option/index.d.ts +4 -0
  730. package/typings/core/option/optgroup.d.ts +14 -0
  731. package/typings/core/option/option.d.ts +90 -0
  732. package/typings/core/placeholder/placeholder-options.d.ts +15 -0
  733. package/typings/core/public-api.d.ts +22 -0
  734. package/typings/core/ripple/index.d.ts +5 -0
  735. package/typings/core/ripple/ripple-ref.d.ts +28 -0
  736. package/typings/core/ripple/ripple-renderer.d.ts +69 -0
  737. package/typings/core/ripple/ripple.d.ts +65 -0
  738. package/typings/core/selection/index.d.ts +3 -0
  739. package/typings/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +20 -0
  740. package/typings/core/style/apply-transform.d.ts +13 -0
  741. package/typings/core/style/index.d.ts +8 -0
  742. package/typings/core/testing/month-constants.d.ts +12 -0
  743. package/typings/core/util/object-extend.d.ts +15 -0
  744. package/typings/datepicker/calendar-body.d.ts +52 -0
  745. package/typings/datepicker/calendar.d.ts +97 -0
  746. package/typings/datepicker/coerce-date-property.d.ts +19 -0
  747. package/typings/datepicker/datepicker-errors.d.ts +9 -0
  748. package/typings/datepicker/datepicker-input.d.ts +92 -0
  749. package/typings/datepicker/datepicker-intl.d.ts +25 -0
  750. package/typings/datepicker/datepicker-module.d.ts +2 -0
  751. package/typings/datepicker/datepicker-toggle.d.ts +24 -0
  752. package/typings/datepicker/datepicker.d.ts +117 -0
  753. package/typings/datepicker/index.d.ts +4 -0
  754. package/typings/datepicker/index.metadata.json +1 -0
  755. package/typings/datepicker/month-view.d.ts +66 -0
  756. package/typings/datepicker/public-api.d.ts +17 -0
  757. package/typings/datepicker/year-view.d.ts +55 -0
  758. package/typings/dialog/dialog-config.d.ts +54 -0
  759. package/typings/dialog/dialog-container.d.ts +68 -0
  760. package/typings/dialog/dialog-content-directives.d.ts +43 -0
  761. package/typings/dialog/dialog-module.d.ts +2 -0
  762. package/typings/dialog/dialog-ref.d.ts +68 -0
  763. package/typings/dialog/dialog.d.ts +108 -0
  764. package/typings/dialog/index.d.ts +4 -0
  765. package/typings/dialog/index.metadata.json +1 -0
  766. package/typings/dialog/public-api.d.ts +13 -0
  767. package/typings/expansion/accordion-item.d.ts +41 -0
  768. package/typings/expansion/accordion.d.ts +29 -0
  769. package/typings/expansion/expansion-module.d.ts +2 -0
  770. package/typings/expansion/expansion-panel-header.d.ts +49 -0
  771. package/typings/expansion/expansion-panel.d.ts +40 -0
  772. package/typings/expansion/index.d.ts +5 -0
  773. package/typings/expansion/index.metadata.json +1 -0
  774. package/typings/expansion/public-api.d.ts +12 -0
  775. package/typings/form-field/error.d.ts +4 -0
  776. package/typings/form-field/form-field-control.d.ts +47 -0
  777. package/typings/form-field/form-field-errors.d.ts +13 -0
  778. package/typings/form-field/form-field-module.d.ts +2 -0
  779. package/typings/form-field/form-field.d.ts +78 -0
  780. package/typings/form-field/hint.d.ts +7 -0
  781. package/typings/form-field/index.d.ts +4 -0
  782. package/typings/form-field/index.metadata.json +1 -0
  783. package/typings/form-field/placeholder.d.ts +3 -0
  784. package/typings/form-field/prefix.d.ts +3 -0
  785. package/typings/form-field/public-api.d.ts +16 -0
  786. package/typings/form-field/suffix.d.ts +3 -0
  787. package/typings/grid-list/grid-list-measure.d.ts +17 -0
  788. package/typings/grid-list/grid-list-module.d.ts +2 -0
  789. package/typings/grid-list/grid-list.d.ts +53 -0
  790. package/typings/grid-list/grid-tile.d.ts +55 -0
  791. package/typings/grid-list/index.d.ts +5 -0
  792. package/typings/grid-list/index.metadata.json +1 -0
  793. package/typings/grid-list/public-api.d.ts +10 -0
  794. package/typings/grid-list/tile-coordinator.d.ts +64 -0
  795. package/typings/grid-list/tile-styler.d.ts +129 -0
  796. package/typings/icon/icon-module.d.ts +2 -0
  797. package/typings/icon/icon-registry.d.ts +187 -0
  798. package/typings/icon/icon.d.ts +69 -0
  799. package/typings/icon/index.d.ts +4 -0
  800. package/typings/icon/index.metadata.json +1 -0
  801. package/typings/icon/public-api.d.ts +10 -0
  802. package/typings/index.d.ts +4 -0
  803. package/typings/index.metadata.json +1 -0
  804. package/typings/input/autosize.d.ts +43 -0
  805. package/typings/input/index.d.ts +4 -0
  806. package/typings/input/index.metadata.json +1 -0
  807. package/typings/input/input-errors.d.ts +9 -0
  808. package/typings/input/input-module.d.ts +2 -0
  809. package/typings/input/input.d.ts +85 -0
  810. package/typings/input/public-api.d.ts +11 -0
  811. package/typings/list/index.d.ts +4 -0
  812. package/typings/list/index.metadata.json +1 -0
  813. package/typings/list/list-module.d.ts +2 -0
  814. package/typings/list/list.d.ts +77 -0
  815. package/typings/list/public-api.d.ts +10 -0
  816. package/typings/list/selection-list.d.ts +103 -0
  817. package/typings/menu/index.d.ts +6 -0
  818. package/typings/menu/index.metadata.json +1 -0
  819. package/typings/menu/menu-animations.d.ts +27 -0
  820. package/typings/menu/menu-directive.d.ts +89 -0
  821. package/typings/menu/menu-errors.d.ts +24 -0
  822. package/typings/menu/menu-item.d.ts +42 -0
  823. package/typings/menu/menu-module.d.ts +2 -0
  824. package/typings/menu/menu-panel.d.ts +22 -0
  825. package/typings/menu/menu-positions.d.ts +9 -0
  826. package/typings/menu/menu-trigger.d.ts +115 -0
  827. package/typings/menu/menu.d.ts +12 -0
  828. package/typings/menu/public-api.d.ts +11 -0
  829. package/typings/paginator/index.d.ts +4 -0
  830. package/typings/paginator/index.metadata.json +1 -0
  831. package/typings/paginator/paginator-intl.d.ts +20 -0
  832. package/typings/paginator/paginator-module.d.ts +2 -0
  833. package/typings/paginator/paginator.d.ts +75 -0
  834. package/typings/paginator/public-api.d.ts +10 -0
  835. package/typings/progress-bar/index.d.ts +4 -0
  836. package/typings/progress-bar/index.metadata.json +1 -0
  837. package/typings/progress-bar/progress-bar-module.d.ts +2 -0
  838. package/typings/progress-bar/progress-bar.d.ts +32 -0
  839. package/typings/progress-bar/public-api.d.ts +9 -0
  840. package/typings/progress-spinner/index.d.ts +4 -0
  841. package/typings/progress-spinner/index.metadata.json +1 -0
  842. package/typings/progress-spinner/progress-spinner-module.d.ts +3 -0
  843. package/typings/progress-spinner/progress-spinner.d.ts +69 -0
  844. package/typings/progress-spinner/public-api.d.ts +9 -0
  845. package/typings/public-api.d.ts +39 -0
  846. package/typings/radio/index.d.ts +4 -0
  847. package/typings/radio/index.metadata.json +1 -0
  848. package/typings/radio/public-api.d.ts +9 -0
  849. package/typings/radio/radio-module.d.ts +2 -0
  850. package/typings/radio/radio.d.ts +215 -0
  851. package/typings/select/index.d.ts +4 -0
  852. package/typings/select/index.metadata.json +1 -0
  853. package/typings/select/public-api.d.ts +10 -0
  854. package/typings/select/select-animations.d.ts +30 -0
  855. package/typings/select/select-errors.d.ts +26 -0
  856. package/typings/select/select-module.d.ts +2 -0
  857. package/typings/select/select.d.ts +393 -0
  858. package/typings/sidenav/drawer.d.ts +190 -0
  859. package/typings/sidenav/index.d.ts +4 -0
  860. package/typings/sidenav/index.metadata.json +1 -0
  861. package/typings/sidenav/public-api.d.ts +10 -0
  862. package/typings/sidenav/sidenav-module.d.ts +2 -0
  863. package/typings/sidenav/sidenav.d.ts +33 -0
  864. package/typings/slide-toggle/index.d.ts +4 -0
  865. package/typings/slide-toggle/index.metadata.json +1 -0
  866. package/typings/slide-toggle/public-api.d.ts +9 -0
  867. package/typings/slide-toggle/slide-toggle-module.d.ts +2 -0
  868. package/typings/slide-toggle/slide-toggle.d.ts +93 -0
  869. package/typings/slider/index.d.ts +4 -0
  870. package/typings/slider/index.metadata.json +1 -0
  871. package/typings/slider/public-api.d.ts +9 -0
  872. package/typings/slider/slider-module.d.ts +2 -0
  873. package/typings/slider/slider.d.ts +207 -0
  874. package/typings/snack-bar/index.d.ts +4 -0
  875. package/typings/snack-bar/index.metadata.json +1 -0
  876. package/typings/snack-bar/public-api.d.ts +13 -0
  877. package/typings/snack-bar/simple-snack-bar.d.ts +18 -0
  878. package/typings/snack-bar/snack-bar-config.d.ts +38 -0
  879. package/typings/snack-bar/snack-bar-container.d.ts +55 -0
  880. package/typings/snack-bar/snack-bar-module.d.ts +2 -0
  881. package/typings/snack-bar/snack-bar-ref.d.ts +51 -0
  882. package/typings/snack-bar/snack-bar.d.ts +70 -0
  883. package/typings/sort/index.d.ts +4 -0
  884. package/typings/sort/index.metadata.json +1 -0
  885. package/typings/sort/public-api.d.ts +12 -0
  886. package/typings/sort/sort-direction.d.ts +8 -0
  887. package/typings/sort/sort-errors.d.ts +15 -0
  888. package/typings/sort/sort-header-intl.d.ts +17 -0
  889. package/typings/sort/sort-header.d.ts +43 -0
  890. package/typings/sort/sort-module.d.ts +2 -0
  891. package/typings/sort/sort.d.ts +55 -0
  892. package/typings/stepper/index.d.ts +4 -0
  893. package/typings/stepper/index.metadata.json +1 -0
  894. package/typings/stepper/public-api.d.ts +13 -0
  895. package/typings/stepper/step-header.d.ts +41 -0
  896. package/typings/stepper/step-label.d.ts +14 -0
  897. package/typings/stepper/stepper-button.d.ts +10 -0
  898. package/typings/stepper/stepper-intl.d.ts +11 -0
  899. package/typings/stepper/stepper-module.d.ts +2 -0
  900. package/typings/stepper/stepper.d.ts +26 -0
  901. package/typings/table/cell.d.ts +43 -0
  902. package/typings/table/index.d.ts +4 -0
  903. package/typings/table/index.metadata.json +1 -0
  904. package/typings/table/public-api.d.ts +11 -0
  905. package/typings/table/row.d.ts +25 -0
  906. package/typings/table/table-module.d.ts +2 -0
  907. package/typings/table/table.d.ts +8 -0
  908. package/typings/tabs/index.d.ts +8 -0
  909. package/typings/tabs/index.metadata.json +1 -0
  910. package/typings/tabs/ink-bar.d.ts +33 -0
  911. package/typings/tabs/public-api.d.ts +16 -0
  912. package/typings/tabs/tab-body.d.ts +69 -0
  913. package/typings/tabs/tab-group.d.ts +104 -0
  914. package/typings/tabs/tab-header.d.ts +158 -0
  915. package/typings/tabs/tab-label-wrapper.d.ts +25 -0
  916. package/typings/tabs/tab-label.d.ts +15 -0
  917. package/typings/tabs/tab-nav-bar/index.d.ts +8 -0
  918. package/typings/tabs/tab-nav-bar/tab-nav-bar.d.ts +78 -0
  919. package/typings/tabs/tab.d.ts +50 -0
  920. package/typings/tabs/tabs-module.d.ts +2 -0
  921. package/typings/toolbar/index.d.ts +4 -0
  922. package/typings/toolbar/index.metadata.json +1 -0
  923. package/typings/toolbar/public-api.d.ts +9 -0
  924. package/typings/toolbar/toolbar-module.d.ts +2 -0
  925. package/typings/toolbar/toolbar.d.ts +21 -0
  926. package/typings/tooltip/index.d.ts +4 -0
  927. package/typings/tooltip/index.metadata.json +1 -0
  928. package/typings/tooltip/public-api.d.ts +9 -0
  929. package/typings/tooltip/tooltip-module.d.ts +2 -0
  930. package/typings/tooltip/tooltip.d.ts +175 -0
  931. package/typings/version.d.ts +10 -0
  932. package/autocomplete/README.md +0 -5
  933. package/autocomplete/_autocomplete-theme.scss +0 -5
  934. package/autocomplete/autocomplete.css +0 -0
  935. package/autocomplete/autocomplete.css.map +0 -1
  936. package/autocomplete/autocomplete.d.ts +0 -2
  937. package/autocomplete/autocomplete.html +0 -1
  938. package/autocomplete/autocomplete.js +0 -25
  939. package/autocomplete/autocomplete.js.map +0 -1
  940. package/autocomplete/autocomplete.metadata.json +0 -1
  941. package/autocomplete/autocomplete.scss +0 -0
  942. package/autocomplete/index.js +0 -34
  943. package/autocomplete/index.js.map +0 -1
  944. package/button/OVERVIEW.md +0 -25
  945. package/button/README.md +0 -116
  946. package/button/_button-base.scss +0 -111
  947. package/button/_button-theme.scss +0 -85
  948. package/button/button.css +0 -1
  949. package/button/button.css.map +0 -1
  950. package/button/button.d.ts +0 -46
  951. package/button/button.html +0 -1
  952. package/button/button.js +0 -203
  953. package/button/button.js.map +0 -1
  954. package/button/button.metadata.json +0 -1
  955. package/button/button.scss +0 -105
  956. package/button/index.js +0 -3
  957. package/button/index.js.map +0 -1
  958. package/button-toggle/OVERVIEW.md +0 -22
  959. package/button-toggle/README.md +0 -139
  960. package/button-toggle/_button-toggle-theme.scss +0 -14
  961. package/button-toggle/button-toggle.css +0 -1
  962. package/button-toggle/button-toggle.css.map +0 -1
  963. package/button-toggle/button-toggle.d.ts +0 -136
  964. package/button-toggle/button-toggle.html +0 -1
  965. package/button-toggle/button-toggle.js +0 -502
  966. package/button-toggle/button-toggle.js.map +0 -1
  967. package/button-toggle/button-toggle.metadata.json +0 -1
  968. package/button-toggle/button-toggle.scss +0 -49
  969. package/button-toggle/index.js +0 -3
  970. package/button-toggle/index.js.map +0 -1
  971. package/card/OVERVIEW.md +0 -45
  972. package/card/README.md +0 -116
  973. package/card/_card-theme.scss +0 -17
  974. package/card/card-header.html +0 -1
  975. package/card/card-title-group.html +0 -1
  976. package/card/card.css +0 -1
  977. package/card/card.css.map +0 -1
  978. package/card/card.d.ts +0 -54
  979. package/card/card.html +0 -1
  980. package/card/card.js +0 -174
  981. package/card/card.js.map +0 -1
  982. package/card/card.metadata.json +0 -1
  983. package/card/card.scss +0 -227
  984. package/card/index.js +0 -3
  985. package/card/index.js.map +0 -1
  986. package/checkbox/OVERVIEW.md +0 -28
  987. package/checkbox/README.md +0 -93
  988. package/checkbox/_checkbox-theme.scss +0 -84
  989. package/checkbox/checkbox.css +0 -1
  990. package/checkbox/checkbox.css.map +0 -1
  991. package/checkbox/checkbox.d.ts +0 -155
  992. package/checkbox/checkbox.html +0 -1
  993. package/checkbox/checkbox.js +0 -432
  994. package/checkbox/checkbox.js.map +0 -1
  995. package/checkbox/checkbox.metadata.json +0 -1
  996. package/checkbox/checkbox.scss +0 -431
  997. package/checkbox/index.js +0 -3
  998. package/checkbox/index.js.map +0 -1
  999. package/chips/OVERVIEW.md +0 -40
  1000. package/chips/README.md +0 -7
  1001. package/chips/_chips-theme.scss +0 -49
  1002. package/chips/chip-list.d.ts +0 -66
  1003. package/chips/chip-list.js +0 -210
  1004. package/chips/chip-list.js.map +0 -1
  1005. package/chips/chip-list.metadata.json +0 -1
  1006. package/chips/chip.d.ts +0 -53
  1007. package/chips/chip.js +0 -177
  1008. package/chips/chip.js.map +0 -1
  1009. package/chips/chip.metadata.json +0 -1
  1010. package/chips/chips.css +0 -1
  1011. package/chips/chips.css.map +0 -1
  1012. package/chips/chips.scss +0 -80
  1013. package/chips/index.js +0 -4
  1014. package/chips/index.js.map +0 -1
  1015. package/core/README.md +0 -1
  1016. package/core/_core.scss +0 -27
  1017. package/core/a11y/README.md +0 -30
  1018. package/core/a11y/_a11y.scss +0 -24
  1019. package/core/a11y/fake-mousedown.d.ts +0 -8
  1020. package/core/a11y/fake-mousedown.js +0 -12
  1021. package/core/a11y/fake-mousedown.js.map +0 -1
  1022. package/core/a11y/fake-mousedown.metadata.json +0 -1
  1023. package/core/a11y/focus-trap.d.ts +0 -41
  1024. package/core/a11y/focus-trap.html +0 -1
  1025. package/core/a11y/focus-trap.js +0 -129
  1026. package/core/a11y/focus-trap.js.map +0 -1
  1027. package/core/a11y/focus-trap.metadata.json +0 -1
  1028. package/core/a11y/index.d.ts +0 -7
  1029. package/core/a11y/index.js +0 -40
  1030. package/core/a11y/index.js.map +0 -1
  1031. package/core/a11y/index.metadata.json +0 -1
  1032. package/core/a11y/interactivity-checker.d.ts +0 -45
  1033. package/core/a11y/interactivity-checker.js +0 -210
  1034. package/core/a11y/interactivity-checker.js.map +0 -1
  1035. package/core/a11y/interactivity-checker.metadata.json +0 -1
  1036. package/core/a11y/list-key-manager.d.ts +0 -83
  1037. package/core/a11y/list-key-manager.js +0 -157
  1038. package/core/a11y/list-key-manager.js.map +0 -1
  1039. package/core/a11y/list-key-manager.metadata.json +0 -1
  1040. package/core/a11y/live-announcer.d.ts +0 -17
  1041. package/core/a11y/live-announcer.js +0 -63
  1042. package/core/a11y/live-announcer.js.map +0 -1
  1043. package/core/a11y/live-announcer.metadata.json +0 -1
  1044. package/core/animation/animation.d.ts +0 -13
  1045. package/core/animation/animation.js +0 -21
  1046. package/core/animation/animation.js.map +0 -1
  1047. package/core/animation/animation.metadata.json +0 -1
  1048. package/core/async/promise-completer.d.ts +0 -7
  1049. package/core/async/promise-completer.js +0 -13
  1050. package/core/async/promise-completer.js.map +0 -1
  1051. package/core/async/promise-completer.metadata.json +0 -1
  1052. package/core/coercion/boolean-property.d.ts +0 -2
  1053. package/core/coercion/boolean-property.js +0 -6
  1054. package/core/coercion/boolean-property.js.map +0 -1
  1055. package/core/coercion/boolean-property.metadata.json +0 -1
  1056. package/core/coercion/number-property.d.ts +0 -2
  1057. package/core/coercion/number-property.js +0 -10
  1058. package/core/coercion/number-property.js.map +0 -1
  1059. package/core/coercion/number-property.metadata.json +0 -1
  1060. package/core/compatibility/default-mode.d.ts +0 -19
  1061. package/core/compatibility/default-mode.js +0 -61
  1062. package/core/compatibility/default-mode.js.map +0 -1
  1063. package/core/compatibility/default-mode.metadata.json +0 -1
  1064. package/core/compatibility/no-conflict-mode.d.ts +0 -10
  1065. package/core/compatibility/no-conflict-mode.js +0 -47
  1066. package/core/compatibility/no-conflict-mode.js.map +0 -1
  1067. package/core/compatibility/no-conflict-mode.metadata.json +0 -1
  1068. package/core/coordination/unique-selection-dispatcher.d.ts +0 -21
  1069. package/core/coordination/unique-selection-dispatcher.js +0 -46
  1070. package/core/coordination/unique-selection-dispatcher.js.map +0 -1
  1071. package/core/coordination/unique-selection-dispatcher.metadata.json +0 -1
  1072. package/core/core.d.ts +0 -45
  1073. package/core/core.js +0 -110
  1074. package/core/core.js.map +0 -1
  1075. package/core/core.metadata.json +0 -1
  1076. package/core/errors/error.d.ts +0 -7
  1077. package/core/errors/error.js +0 -20
  1078. package/core/errors/error.js.map +0 -1
  1079. package/core/errors/error.metadata.json +0 -1
  1080. package/core/gestures/gesture-annotations.d.ts +0 -44
  1081. package/core/gestures/gesture-annotations.js +0 -7
  1082. package/core/gestures/gesture-annotations.js.map +0 -1
  1083. package/core/gestures/gesture-config.js +0 -85
  1084. package/core/gestures/gesture-config.js.map +0 -1
  1085. package/core/gestures/gesture-config.metadata.json +0 -1
  1086. package/core/index.js +0 -3
  1087. package/core/index.js.map +0 -1
  1088. package/core/keyboard/keycodes.d.ts +0 -14
  1089. package/core/keyboard/keycodes.js +0 -20
  1090. package/core/keyboard/keycodes.js.map +0 -1
  1091. package/core/keyboard/keycodes.metadata.json +0 -1
  1092. package/core/line/line.d.ts +0 -23
  1093. package/core/line/line.js +0 -74
  1094. package/core/line/line.js.map +0 -1
  1095. package/core/line/line.metadata.json +0 -1
  1096. package/core/observe-content/observe-content.d.ts +0 -17
  1097. package/core/observe-content/observe-content.js +0 -66
  1098. package/core/observe-content/observe-content.js.map +0 -1
  1099. package/core/observe-content/observe-content.metadata.json +0 -1
  1100. package/core/overlay/_overlay.scss +0 -68
  1101. package/core/overlay/generic-component-type.d.ts +0 -3
  1102. package/core/overlay/generic-component-type.js +0 -3
  1103. package/core/overlay/generic-component-type.js.map +0 -1
  1104. package/core/overlay/overlay-container.d.ts +0 -19
  1105. package/core/overlay/overlay-container.js +0 -33
  1106. package/core/overlay/overlay-container.js.map +0 -1
  1107. package/core/overlay/overlay-container.metadata.json +0 -1
  1108. package/core/overlay/overlay-directives.d.ts +0 -80
  1109. package/core/overlay/overlay-directives.js +0 -316
  1110. package/core/overlay/overlay-directives.js.map +0 -1
  1111. package/core/overlay/overlay-directives.metadata.json +0 -1
  1112. package/core/overlay/overlay-ref.d.ts +0 -56
  1113. package/core/overlay/overlay-ref.js +0 -155
  1114. package/core/overlay/overlay-ref.js.map +0 -1
  1115. package/core/overlay/overlay-ref.metadata.json +0 -1
  1116. package/core/overlay/overlay-state.d.ts +0 -24
  1117. package/core/overlay/overlay-state.js +0 -17
  1118. package/core/overlay/overlay-state.js.map +0 -1
  1119. package/core/overlay/overlay-state.metadata.json +0 -1
  1120. package/core/overlay/overlay.d.ts +0 -54
  1121. package/core/overlay/overlay.js +0 -97
  1122. package/core/overlay/overlay.js.map +0 -1
  1123. package/core/overlay/overlay.metadata.json +0 -1
  1124. package/core/overlay/position/connected-position-strategy.d.ts +0 -133
  1125. package/core/overlay/position/connected-position-strategy.js +0 -292
  1126. package/core/overlay/position/connected-position-strategy.js.map +0 -1
  1127. package/core/overlay/position/connected-position-strategy.metadata.json +0 -1
  1128. package/core/overlay/position/connected-position.d.ts +0 -56
  1129. package/core/overlay/position/connected-position.js +0 -65
  1130. package/core/overlay/position/connected-position.js.map +0 -1
  1131. package/core/overlay/position/connected-position.metadata.json +0 -1
  1132. package/core/overlay/position/fake-viewport-ruler.d.ts +0 -15
  1133. package/core/overlay/position/fake-viewport-ruler.js +0 -16
  1134. package/core/overlay/position/fake-viewport-ruler.js.map +0 -1
  1135. package/core/overlay/position/fake-viewport-ruler.metadata.json +0 -1
  1136. package/core/overlay/position/global-position-strategy.d.ts +0 -75
  1137. package/core/overlay/position/global-position-strategy.js +0 -148
  1138. package/core/overlay/position/global-position-strategy.js.map +0 -1
  1139. package/core/overlay/position/global-position-strategy.metadata.json +0 -1
  1140. package/core/overlay/position/overlay-position-builder.d.ts +0 -21
  1141. package/core/overlay/position/overlay-position-builder.js +0 -41
  1142. package/core/overlay/position/overlay-position-builder.js.map +0 -1
  1143. package/core/overlay/position/overlay-position-builder.metadata.json +0 -1
  1144. package/core/overlay/position/position-strategy.d.ts +0 -7
  1145. package/core/overlay/position/position-strategy.js +0 -3
  1146. package/core/overlay/position/position-strategy.js.map +0 -1
  1147. package/core/overlay/position/relative-position-strategy.d.ts +0 -9
  1148. package/core/overlay/position/relative-position-strategy.js +0 -16
  1149. package/core/overlay/position/relative-position-strategy.js.map +0 -1
  1150. package/core/overlay/position/relative-position-strategy.metadata.json +0 -1
  1151. package/core/overlay/position/viewport-ruler.d.ts +0 -16
  1152. package/core/overlay/position/viewport-ruler.js +0 -67
  1153. package/core/overlay/position/viewport-ruler.js.map +0 -1
  1154. package/core/overlay/position/viewport-ruler.metadata.json +0 -1
  1155. package/core/overlay/scroll/scroll-dispatcher.d.ts +0 -44
  1156. package/core/overlay/scroll/scroll-dispatcher.js +0 -94
  1157. package/core/overlay/scroll/scroll-dispatcher.js.map +0 -1
  1158. package/core/overlay/scroll/scroll-dispatcher.metadata.json +0 -1
  1159. package/core/overlay/scroll/scrollable.d.ts +0 -21
  1160. package/core/overlay/scroll/scrollable.js +0 -48
  1161. package/core/overlay/scroll/scrollable.js.map +0 -1
  1162. package/core/overlay/scroll/scrollable.metadata.json +0 -1
  1163. package/core/platform/features.d.ts +0 -2
  1164. package/core/platform/features.js +0 -37
  1165. package/core/platform/features.js.map +0 -1
  1166. package/core/platform/features.metadata.json +0 -1
  1167. package/core/platform/index.d.ts +0 -6
  1168. package/core/platform/index.js +0 -30
  1169. package/core/platform/index.js.map +0 -1
  1170. package/core/platform/index.metadata.json +0 -1
  1171. package/core/platform/platform.d.ts +0 -16
  1172. package/core/platform/platform.js +0 -48
  1173. package/core/platform/platform.js.map +0 -1
  1174. package/core/platform/platform.metadata.json +0 -1
  1175. package/core/portal/README.md +0 -72
  1176. package/core/portal/dom-portal-host.d.ts +0 -31
  1177. package/core/portal/dom-portal-host.js +0 -108
  1178. package/core/portal/dom-portal-host.js.map +0 -1
  1179. package/core/portal/dom-portal-host.metadata.json +0 -1
  1180. package/core/portal/portal-directives.d.ts +0 -49
  1181. package/core/portal/portal-directives.js +0 -148
  1182. package/core/portal/portal-directives.js.map +0 -1
  1183. package/core/portal/portal-directives.metadata.json +0 -1
  1184. package/core/portal/portal-errors.d.ts +0 -43
  1185. package/core/portal/portal-errors.js +0 -75
  1186. package/core/portal/portal-errors.js.map +0 -1
  1187. package/core/portal/portal-errors.metadata.json +0 -1
  1188. package/core/portal/portal.d.ts +0 -85
  1189. package/core/portal/portal.js +0 -155
  1190. package/core/portal/portal.js.map +0 -1
  1191. package/core/portal/portal.metadata.json +0 -1
  1192. package/core/projection/projection.d.ts +0 -45
  1193. package/core/projection/projection.js +0 -111
  1194. package/core/projection/projection.js.map +0 -1
  1195. package/core/projection/projection.metadata.json +0 -1
  1196. package/core/ripple/README.md +0 -27
  1197. package/core/ripple/_ripple.scss +0 -106
  1198. package/core/ripple/ripple-renderer.d.ts +0 -76
  1199. package/core/ripple/ripple-renderer.js +0 -177
  1200. package/core/ripple/ripple-renderer.js.map +0 -1
  1201. package/core/ripple/ripple-renderer.metadata.json +0 -1
  1202. package/core/ripple/ripple.d.ts +0 -92
  1203. package/core/ripple/ripple.js +0 -295
  1204. package/core/ripple/ripple.js.map +0 -1
  1205. package/core/ripple/ripple.metadata.json +0 -1
  1206. package/core/rtl/dir.d.ts +0 -21
  1207. package/core/rtl/dir.js +0 -87
  1208. package/core/rtl/dir.js.map +0 -1
  1209. package/core/rtl/dir.metadata.json +0 -1
  1210. package/core/style/_button-common.scss +0 -7
  1211. package/core/style/_elevation.scss +0 -174
  1212. package/core/style/_form-common.scss +0 -12
  1213. package/core/style/_layout-common.scss +0 -8
  1214. package/core/style/_list-common.scss +0 -49
  1215. package/core/style/_menu-common.scss +0 -89
  1216. package/core/style/_variables.scss +0 -64
  1217. package/core/style/apply-transform.d.ts +0 -6
  1218. package/core/style/apply-transform.js +0 -14
  1219. package/core/style/apply-transform.js.map +0 -1
  1220. package/core/style/apply-transform.metadata.json +0 -1
  1221. package/core/theming/_all-theme.scss +0 -52
  1222. package/core/theming/_palette.scss +0 -694
  1223. package/core/theming/_theming.scss +0 -84
  1224. package/core/theming/prebuilt/deeppurple-amber.css +0 -1
  1225. package/core/theming/prebuilt/deeppurple-amber.css.map +0 -1
  1226. package/core/theming/prebuilt/deeppurple-amber.scss +0 -14
  1227. package/core/theming/prebuilt/indigo-pink.css +0 -1
  1228. package/core/theming/prebuilt/indigo-pink.css.map +0 -1
  1229. package/core/theming/prebuilt/indigo-pink.scss +0 -14
  1230. package/core/theming/prebuilt/pink-bluegrey.css +0 -1
  1231. package/core/theming/prebuilt/pink-bluegrey.css.map +0 -1
  1232. package/core/theming/prebuilt/pink-bluegrey.scss +0 -14
  1233. package/core/theming/prebuilt/purple-green.css +0 -1
  1234. package/core/theming/prebuilt/purple-green.css.map +0 -1
  1235. package/core/theming/prebuilt/purple-green.scss +0 -14
  1236. package/core/typography/_typography.scss +0 -6
  1237. package/core/util/object-extend.d.ts +0 -8
  1238. package/core/util/object-extend.js +0 -29
  1239. package/core/util/object-extend.js.map +0 -1
  1240. package/core/util/object-extend.metadata.json +0 -1
  1241. package/core.js +0 -3
  1242. package/core.js.map +0 -1
  1243. package/dialog/OVERVIEW.md +0 -39
  1244. package/dialog/README.md +0 -102
  1245. package/dialog/_dialog-theme.scss +0 -11
  1246. package/dialog/dialog-config.d.ts +0 -26
  1247. package/dialog/dialog-config.js +0 -19
  1248. package/dialog/dialog-config.js.map +0 -1
  1249. package/dialog/dialog-config.metadata.json +0 -1
  1250. package/dialog/dialog-container.d.ts +0 -37
  1251. package/dialog/dialog-container.html +0 -1
  1252. package/dialog/dialog-container.js +0 -97
  1253. package/dialog/dialog-container.js.map +0 -1
  1254. package/dialog/dialog-container.metadata.json +0 -1
  1255. package/dialog/dialog-content-directives.d.ts +0 -26
  1256. package/dialog/dialog-content-directives.js +0 -81
  1257. package/dialog/dialog-content-directives.js.map +0 -1
  1258. package/dialog/dialog-content-directives.metadata.json +0 -1
  1259. package/dialog/dialog-errors.d.ts +0 -8
  1260. package/dialog/dialog-errors.js +0 -19
  1261. package/dialog/dialog-errors.js.map +0 -1
  1262. package/dialog/dialog-errors.metadata.json +0 -1
  1263. package/dialog/dialog-injector.d.ts +0 -9
  1264. package/dialog/dialog-injector.js +0 -17
  1265. package/dialog/dialog-injector.js.map +0 -1
  1266. package/dialog/dialog-injector.metadata.json +0 -1
  1267. package/dialog/dialog-ref.d.ts +0 -22
  1268. package/dialog/dialog-ref.js +0 -31
  1269. package/dialog/dialog-ref.js.map +0 -1
  1270. package/dialog/dialog-ref.metadata.json +0 -1
  1271. package/dialog/dialog.css +0 -1
  1272. package/dialog/dialog.css.map +0 -1
  1273. package/dialog/dialog.d.ts +0 -57
  1274. package/dialog/dialog.js +0 -157
  1275. package/dialog/dialog.js.map +0 -1
  1276. package/dialog/dialog.metadata.json +0 -1
  1277. package/dialog/dialog.scss +0 -54
  1278. package/dialog/index.js +0 -59
  1279. package/dialog/index.js.map +0 -1
  1280. package/grid-list/OVERVIEW.md +0 -43
  1281. package/grid-list/README.md +0 -105
  1282. package/grid-list/_grid-list-theme.scss +0 -6
  1283. package/grid-list/grid-list-errors.d.ts +0 -22
  1284. package/grid-list/grid-list-errors.js +0 -41
  1285. package/grid-list/grid-list-errors.js.map +0 -1
  1286. package/grid-list/grid-list-errors.metadata.json +0 -1
  1287. package/grid-list/grid-list-measure.d.ts +0 -10
  1288. package/grid-list/grid-list-measure.js +0 -16
  1289. package/grid-list/grid-list-measure.js.map +0 -1
  1290. package/grid-list/grid-list-measure.metadata.json +0 -1
  1291. package/grid-list/grid-list.css +0 -1
  1292. package/grid-list/grid-list.css.map +0 -1
  1293. package/grid-list/grid-list.d.ts +0 -49
  1294. package/grid-list/grid-list.html +0 -1
  1295. package/grid-list/grid-list.js +0 -166
  1296. package/grid-list/grid-list.js.map +0 -1
  1297. package/grid-list/grid-list.metadata.json +0 -1
  1298. package/grid-list/grid-list.scss +0 -91
  1299. package/grid-list/grid-tile-text.html +0 -1
  1300. package/grid-list/grid-tile.d.ts +0 -30
  1301. package/grid-list/grid-tile.html +0 -1
  1302. package/grid-list/grid-tile.js +0 -81
  1303. package/grid-list/grid-tile.js.map +0 -1
  1304. package/grid-list/grid-tile.metadata.json +0 -1
  1305. package/grid-list/index.js +0 -3
  1306. package/grid-list/index.js.map +0 -1
  1307. package/grid-list/tile-coordinator.d.ts +0 -56
  1308. package/grid-list/tile-coordinator.js +0 -129
  1309. package/grid-list/tile-coordinator.js.map +0 -1
  1310. package/grid-list/tile-coordinator.metadata.json +0 -1
  1311. package/grid-list/tile-styler.d.ts +0 -112
  1312. package/grid-list/tile-styler.js +0 -211
  1313. package/grid-list/tile-styler.js.map +0 -1
  1314. package/grid-list/tile-styler.metadata.json +0 -1
  1315. package/icon/OVERVIEW.md +0 -88
  1316. package/icon/README.md +0 -129
  1317. package/icon/_icon-theme.scss +0 -25
  1318. package/icon/fake-svgs.d.ts +0 -6
  1319. package/icon/fake-svgs.js +0 -31
  1320. package/icon/fake-svgs.js.map +0 -1
  1321. package/icon/fake-svgs.metadata.json +0 -1
  1322. package/icon/icon-registry.d.ts +0 -180
  1323. package/icon/icon-registry.js +0 -413
  1324. package/icon/icon-registry.js.map +0 -1
  1325. package/icon/icon-registry.metadata.json +0 -1
  1326. package/icon/icon.css +0 -1
  1327. package/icon/icon.css.map +0 -1
  1328. package/icon/icon.d.ts +0 -91
  1329. package/icon/icon.js +0 -264
  1330. package/icon/icon.js.map +0 -1
  1331. package/icon/icon.metadata.json +0 -1
  1332. package/icon/icon.scss +0 -13
  1333. package/icon/index.js +0 -3
  1334. package/icon/index.js.map +0 -1
  1335. package/index.d.ts +0 -25
  1336. package/index.js +0 -27
  1337. package/index.js.map +0 -1
  1338. package/index.metadata.json +0 -1
  1339. package/input/OVERVIEW.md +0 -72
  1340. package/input/README.md +0 -183
  1341. package/input/_input-theme.scss +0 -62
  1342. package/input/autosize.d.ts +0 -29
  1343. package/input/autosize.js +0 -94
  1344. package/input/autosize.js.map +0 -1
  1345. package/input/autosize.metadata.json +0 -1
  1346. package/input/index.js +0 -6
  1347. package/input/index.js.map +0 -1
  1348. package/input/input-container-errors.d.ts +0 -17
  1349. package/input/input-container-errors.js +0 -41
  1350. package/input/input-container-errors.js.map +0 -1
  1351. package/input/input-container-errors.metadata.json +0 -1
  1352. package/input/input-container.css +0 -1
  1353. package/input/input-container.css.map +0 -1
  1354. package/input/input-container.d.ts +0 -95
  1355. package/input/input-container.html +0 -1
  1356. package/input/input-container.js +0 -352
  1357. package/input/input-container.js.map +0 -1
  1358. package/input/input-container.metadata.json +0 -1
  1359. package/input/input-container.scss +0 -32
  1360. package/input/input.css +0 -1
  1361. package/input/input.css.map +0 -1
  1362. package/input/input.d.ts +0 -184
  1363. package/input/input.html +0 -1
  1364. package/input/input.js +0 -564
  1365. package/input/input.js.map +0 -1
  1366. package/input/input.metadata.json +0 -1
  1367. package/input/input.scss +0 -202
  1368. package/list/OVERVIEW.md +0 -124
  1369. package/list/README.md +0 -154
  1370. package/list/_list-theme.scss +0 -28
  1371. package/list/index.js +0 -3
  1372. package/list/index.js.map +0 -1
  1373. package/list/list-item.html +0 -1
  1374. package/list/list.css +0 -1
  1375. package/list/list.css.map +0 -1
  1376. package/list/list.d.ts +0 -23
  1377. package/list/list.js +0 -119
  1378. package/list/list.js.map +0 -1
  1379. package/list/list.metadata.json +0 -1
  1380. package/list/list.scss +0 -181
  1381. package/menu/OVERVIEW.md +0 -62
  1382. package/menu/README.md +0 -171
  1383. package/menu/_menu-theme.scss +0 -29
  1384. package/menu/index.js +0 -7
  1385. package/menu/index.js.map +0 -1
  1386. package/menu/menu-animations.d.ts +0 -19
  1387. package/menu/menu-animations.js +0 -43
  1388. package/menu/menu-animations.js.map +0 -1
  1389. package/menu/menu-animations.metadata.json +0 -1
  1390. package/menu/menu-directive.d.ts +0 -46
  1391. package/menu/menu-directive.js +0 -136
  1392. package/menu/menu-directive.js.map +0 -1
  1393. package/menu/menu-directive.metadata.json +0 -1
  1394. package/menu/menu-errors.d.ts +0 -24
  1395. package/menu/menu-errors.js +0 -43
  1396. package/menu/menu-errors.js.map +0 -1
  1397. package/menu/menu-errors.metadata.json +0 -1
  1398. package/menu/menu-item.d.ts +0 -20
  1399. package/menu/menu-item.html +0 -1
  1400. package/menu/menu-item.js +0 -77
  1401. package/menu/menu-item.js.map +0 -1
  1402. package/menu/menu-item.metadata.json +0 -1
  1403. package/menu/menu-panel.d.ts +0 -10
  1404. package/menu/menu-panel.js +0 -3
  1405. package/menu/menu-panel.js.map +0 -1
  1406. package/menu/menu-positions.d.ts +0 -2
  1407. package/menu/menu-positions.js +0 -3
  1408. package/menu/menu-positions.js.map +0 -1
  1409. package/menu/menu-trigger.d.ts +0 -92
  1410. package/menu/menu-trigger.js +0 -246
  1411. package/menu/menu-trigger.js.map +0 -1
  1412. package/menu/menu-trigger.metadata.json +0 -1
  1413. package/menu/menu.css +0 -1
  1414. package/menu/menu.css.map +0 -1
  1415. package/menu/menu.d.ts +0 -9
  1416. package/menu/menu.html +0 -1
  1417. package/menu/menu.js +0 -40
  1418. package/menu/menu.js.map +0 -1
  1419. package/menu/menu.metadata.json +0 -1
  1420. package/menu/menu.scss +0 -44
  1421. package/module.d.ts +0 -6
  1422. package/module.js +0 -132
  1423. package/module.js.map +0 -1
  1424. package/module.metadata.json +0 -1
  1425. package/progress-bar/OVERVIEW.md +0 -30
  1426. package/progress-bar/README.md +0 -54
  1427. package/progress-bar/_progress-bar-theme.scss +0 -70
  1428. package/progress-bar/index.js +0 -3
  1429. package/progress-bar/index.js.map +0 -1
  1430. package/progress-bar/progress-bar.css +0 -1
  1431. package/progress-bar/progress-bar.css.map +0 -1
  1432. package/progress-bar/progress-bar.d.ts +0 -36
  1433. package/progress-bar/progress-bar.html +0 -1
  1434. package/progress-bar/progress-bar.js +0 -124
  1435. package/progress-bar/progress-bar.js.map +0 -1
  1436. package/progress-bar/progress-bar.metadata.json +0 -1
  1437. package/progress-bar/progress-bar.scss +0 -230
  1438. package/progress-spinner/OVERVIEW.md +0 -23
  1439. package/progress-spinner/README.md +0 -51
  1440. package/progress-spinner/_progress-spinner-theme.scss +0 -23
  1441. package/progress-spinner/index.js +0 -4
  1442. package/progress-spinner/index.js.map +0 -1
  1443. package/progress-spinner/progress-circle.d.ts +0 -4
  1444. package/progress-spinner/progress-circle.js +0 -6
  1445. package/progress-spinner/progress-circle.js.map +0 -1
  1446. package/progress-spinner/progress-circle.metadata.json +0 -1
  1447. package/progress-spinner/progress-spinner.css +0 -1
  1448. package/progress-spinner/progress-spinner.css.map +0 -1
  1449. package/progress-spinner/progress-spinner.d.ts +0 -80
  1450. package/progress-spinner/progress-spinner.html +0 -1
  1451. package/progress-spinner/progress-spinner.js +0 -337
  1452. package/progress-spinner/progress-spinner.js.map +0 -1
  1453. package/progress-spinner/progress-spinner.metadata.json +0 -1
  1454. package/progress-spinner/progress-spinner.scss +0 -68
  1455. package/radio/OVERVIEW.md +0 -29
  1456. package/radio/README.md +0 -55
  1457. package/radio/_radio-theme.scss +0 -39
  1458. package/radio/index.js +0 -3
  1459. package/radio/index.js.map +0 -1
  1460. package/radio/radio.css +0 -1
  1461. package/radio/radio.css.map +0 -1
  1462. package/radio/radio.d.ts +0 -179
  1463. package/radio/radio.html +0 -1
  1464. package/radio/radio.js +0 -552
  1465. package/radio/radio.js.map +0 -1
  1466. package/radio/radio.metadata.json +0 -1
  1467. package/radio/radio.scss +0 -102
  1468. package/select/OVERVIEW.md +0 -8
  1469. package/select/README.md +0 -3
  1470. package/select/_select-theme.scss +0 -64
  1471. package/select/index.js +0 -38
  1472. package/select/index.js.map +0 -1
  1473. package/select/option.d.ts +0 -44
  1474. package/select/option.html +0 -1
  1475. package/select/option.js +0 -135
  1476. package/select/option.js.map +0 -1
  1477. package/select/option.metadata.json +0 -1
  1478. package/select/select-animations.d.ts +0 -29
  1479. package/select/select-animations.js +0 -66
  1480. package/select/select-animations.js.map +0 -1
  1481. package/select/select-animations.metadata.json +0 -1
  1482. package/select/select.css +0 -1
  1483. package/select/select.css.map +0 -1
  1484. package/select/select.d.ts +0 -258
  1485. package/select/select.html +0 -1
  1486. package/select/select.js +0 -604
  1487. package/select/select.js.map +0 -1
  1488. package/select/select.metadata.json +0 -1
  1489. package/select/select.scss +0 -131
  1490. package/sidenav/OVERVIEW.md +0 -70
  1491. package/sidenav/README.md +0 -166
  1492. package/sidenav/_sidenav-theme.scss +0 -37
  1493. package/sidenav/index.js +0 -3
  1494. package/sidenav/index.js.map +0 -1
  1495. package/sidenav/sidenav-container.html +0 -1
  1496. package/sidenav/sidenav-transitions.css +0 -1
  1497. package/sidenav/sidenav-transitions.css.map +0 -1
  1498. package/sidenav/sidenav-transitions.scss +0 -14
  1499. package/sidenav/sidenav.css +0 -1
  1500. package/sidenav/sidenav.css.map +0 -1
  1501. package/sidenav/sidenav.d.ts +0 -182
  1502. package/sidenav/sidenav.html +0 -1
  1503. package/sidenav/sidenav.js +0 -580
  1504. package/sidenav/sidenav.js.map +0 -1
  1505. package/sidenav/sidenav.metadata.json +0 -1
  1506. package/sidenav/sidenav.scss +0 -151
  1507. package/slide-toggle/OVERVIEW.md +0 -24
  1508. package/slide-toggle/README.md +0 -66
  1509. package/slide-toggle/_slide-toggle-theme.scss +0 -89
  1510. package/slide-toggle/index.js +0 -3
  1511. package/slide-toggle/index.js.map +0 -1
  1512. package/slide-toggle/slide-toggle.css +0 -1
  1513. package/slide-toggle/slide-toggle.css.map +0 -1
  1514. package/slide-toggle/slide-toggle.d.ts +0 -84
  1515. package/slide-toggle/slide-toggle.html +0 -1
  1516. package/slide-toggle/slide-toggle.js +0 -347
  1517. package/slide-toggle/slide-toggle.js.map +0 -1
  1518. package/slide-toggle/slide-toggle.metadata.json +0 -1
  1519. package/slide-toggle/slide-toggle.scss +0 -158
  1520. package/slider/OVERVIEW.md +0 -87
  1521. package/slider/README.md +0 -150
  1522. package/slider/_slider-theme.scss +0 -32
  1523. package/slider/index.js +0 -3
  1524. package/slider/index.js.map +0 -1
  1525. package/slider/slider.css +0 -1
  1526. package/slider/slider.css.map +0 -1
  1527. package/slider/slider.d.ts +0 -176
  1528. package/slider/slider.html +0 -1
  1529. package/slider/slider.js +0 -609
  1530. package/slider/slider.js.map +0 -1
  1531. package/slider/slider.metadata.json +0 -1
  1532. package/slider/slider.scss +0 -307
  1533. package/slider/test-gesture-config.d.ts +0 -21
  1534. package/slider/test-gesture-config.js +0 -60
  1535. package/slider/test-gesture-config.js.map +0 -1
  1536. package/slider/test-gesture-config.metadata.json +0 -1
  1537. package/snack-bar/OVERVIEW.md +0 -47
  1538. package/snack-bar/README.md +0 -37
  1539. package/snack-bar/index.js +0 -6
  1540. package/snack-bar/index.js.map +0 -1
  1541. package/snack-bar/simple-snack-bar.css +0 -1
  1542. package/snack-bar/simple-snack-bar.css.map +0 -1
  1543. package/snack-bar/simple-snack-bar.d.ts +0 -17
  1544. package/snack-bar/simple-snack-bar.html +0 -1
  1545. package/snack-bar/simple-snack-bar.js +0 -38
  1546. package/snack-bar/simple-snack-bar.js.map +0 -1
  1547. package/snack-bar/simple-snack-bar.metadata.json +0 -1
  1548. package/snack-bar/simple-snack-bar.scss +0 -28
  1549. package/snack-bar/snack-bar-config.d.ts +0 -15
  1550. package/snack-bar/snack-bar-config.js +0 -18
  1551. package/snack-bar/snack-bar-config.js.map +0 -1
  1552. package/snack-bar/snack-bar-config.metadata.json +0 -1
  1553. package/snack-bar/snack-bar-container.css +0 -1
  1554. package/snack-bar/snack-bar-container.css.map +0 -1
  1555. package/snack-bar/snack-bar-container.d.ts +0 -43
  1556. package/snack-bar/snack-bar-container.html +0 -1
  1557. package/snack-bar/snack-bar-container.js +0 -124
  1558. package/snack-bar/snack-bar-container.js.map +0 -1
  1559. package/snack-bar/snack-bar-container.metadata.json +0 -1
  1560. package/snack-bar/snack-bar-container.scss +0 -27
  1561. package/snack-bar/snack-bar-errors.d.ts +0 -8
  1562. package/snack-bar/snack-bar-errors.js +0 -19
  1563. package/snack-bar/snack-bar-errors.js.map +0 -1
  1564. package/snack-bar/snack-bar-errors.metadata.json +0 -1
  1565. package/snack-bar/snack-bar-ref.d.ts +0 -38
  1566. package/snack-bar/snack-bar-ref.js +0 -70
  1567. package/snack-bar/snack-bar-ref.js.map +0 -1
  1568. package/snack-bar/snack-bar-ref.metadata.json +0 -1
  1569. package/snack-bar/snack-bar.d.ts +0 -45
  1570. package/snack-bar/snack-bar.js +0 -145
  1571. package/snack-bar/snack-bar.js.map +0 -1
  1572. package/snack-bar/snack-bar.metadata.json +0 -1
  1573. package/system-config-spec.d.ts +0 -2
  1574. package/tabs/OVERVIEW.md +0 -81
  1575. package/tabs/README.md +0 -64
  1576. package/tabs/Tabs Pagination.png +0 -0
  1577. package/tabs/_tabs-common.scss +0 -42
  1578. package/tabs/_tabs-theme.scss +0 -24
  1579. package/tabs/index.js +0 -9
  1580. package/tabs/index.js.map +0 -1
  1581. package/tabs/ink-bar.d.ts +0 -27
  1582. package/tabs/ink-bar.js +0 -58
  1583. package/tabs/ink-bar.js.map +0 -1
  1584. package/tabs/ink-bar.metadata.json +0 -1
  1585. package/tabs/tab-body.d.ts +0 -59
  1586. package/tabs/tab-body.html +0 -1
  1587. package/tabs/tab-body.js +0 -157
  1588. package/tabs/tab-body.js.map +0 -1
  1589. package/tabs/tab-body.metadata.json +0 -1
  1590. package/tabs/tab-group.css +0 -1
  1591. package/tabs/tab-group.css.map +0 -1
  1592. package/tabs/tab-group.d.ts +0 -71
  1593. package/tabs/tab-group.html +0 -1
  1594. package/tabs/tab-group.js +0 -236
  1595. package/tabs/tab-group.js.map +0 -1
  1596. package/tabs/tab-group.metadata.json +0 -1
  1597. package/tabs/tab-group.scss +0 -59
  1598. package/tabs/tab-header.css +0 -1
  1599. package/tabs/tab-header.css.map +0 -1
  1600. package/tabs/tab-header.d.ts +0 -137
  1601. package/tabs/tab-header.html +0 -1
  1602. package/tabs/tab-header.js +0 -354
  1603. package/tabs/tab-header.js.map +0 -1
  1604. package/tabs/tab-header.metadata.json +0 -1
  1605. package/tabs/tab-header.scss +0 -85
  1606. package/tabs/tab-label-wrapper.d.ts +0 -15
  1607. package/tabs/tab-label-wrapper.js +0 -53
  1608. package/tabs/tab-label-wrapper.js.map +0 -1
  1609. package/tabs/tab-label-wrapper.metadata.json +0 -1
  1610. package/tabs/tab-label.d.ts +0 -6
  1611. package/tabs/tab-label.js +0 -32
  1612. package/tabs/tab-label.js.map +0 -1
  1613. package/tabs/tab-label.metadata.json +0 -1
  1614. package/tabs/tab-nav-bar/index.d.ts +0 -1
  1615. package/tabs/tab-nav-bar/index.js +0 -3
  1616. package/tabs/tab-nav-bar/index.js.map +0 -1
  1617. package/tabs/tab-nav-bar/index.metadata.json +0 -1
  1618. package/tabs/tab-nav-bar/tab-nav-bar.css +0 -1
  1619. package/tabs/tab-nav-bar/tab-nav-bar.css.map +0 -1
  1620. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +0 -37
  1621. package/tabs/tab-nav-bar/tab-nav-bar.html +0 -1
  1622. package/tabs/tab-nav-bar/tab-nav-bar.js +0 -103
  1623. package/tabs/tab-nav-bar/tab-nav-bar.js.map +0 -1
  1624. package/tabs/tab-nav-bar/tab-nav-bar.metadata.json +0 -1
  1625. package/tabs/tab-nav-bar/tab-nav-bar.scss +0 -26
  1626. package/tabs/tab.d.ts +0 -30
  1627. package/tabs/tab.html +0 -1
  1628. package/tabs/tab.js +0 -74
  1629. package/tabs/tab.js.map +0 -1
  1630. package/tabs/tab.metadata.json +0 -1
  1631. package/toolbar/OVERVIEW.md +0 -51
  1632. package/toolbar/README.md +0 -68
  1633. package/toolbar/_toolbar-theme.scss +0 -33
  1634. package/toolbar/index.js +0 -3
  1635. package/toolbar/index.js.map +0 -1
  1636. package/toolbar/toolbar.css +0 -1
  1637. package/toolbar/toolbar.css.map +0 -1
  1638. package/toolbar/toolbar.d.ts +0 -16
  1639. package/toolbar/toolbar.html +0 -1
  1640. package/toolbar/toolbar.js +0 -84
  1641. package/toolbar/toolbar.js.map +0 -1
  1642. package/toolbar/toolbar.metadata.json +0 -1
  1643. package/toolbar/toolbar.scss +0 -58
  1644. package/tooltip/OVERVIEW.md +0 -35
  1645. package/tooltip/README.md +0 -28
  1646. package/tooltip/_tooltip-theme.scss +0 -9
  1647. package/tooltip/index.js +0 -3
  1648. package/tooltip/index.js.map +0 -1
  1649. package/tooltip/tooltip-errors.d.ts +0 -8
  1650. package/tooltip/tooltip-errors.js +0 -19
  1651. package/tooltip/tooltip-errors.js.map +0 -1
  1652. package/tooltip/tooltip-errors.metadata.json +0 -1
  1653. package/tooltip/tooltip.css +0 -1
  1654. package/tooltip/tooltip.css.map +0 -1
  1655. package/tooltip/tooltip.d.ts +0 -116
  1656. package/tooltip/tooltip.html +0 -1
  1657. package/tooltip/tooltip.js +0 -387
  1658. package/tooltip/tooltip.js.map +0 -1
  1659. package/tooltip/tooltip.metadata.json +0 -1
  1660. package/tooltip/tooltip.scss +0 -26
  1661. package/tsconfig-srcs.json +0 -31
  1662. package/tsconfig.json +0 -34
  1663. package/typedoc.json +0 -20
  1664. package/typings.d.ts +0 -1
@@ -0,0 +1,3843 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google Inc. All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ (function (global, factory) {
9
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/a11y'), require('@angular/cdk/bidi'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/cdk/keycodes'), require('@angular/cdk/overlay'), require('@angular/cdk/rxjs'), require('@angular/forms'), require('rxjs/Subject'), require('@angular/platform-browser'), require('@angular/cdk/platform'), require('@angular/animations'), require('rxjs/observable/fromEvent'), require('rxjs/observable/merge'), require('rxjs/Subscription')) :
10
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/cdk/a11y', '@angular/cdk/bidi', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/cdk/keycodes', '@angular/cdk/overlay', '@angular/cdk/rxjs', '@angular/forms', 'rxjs/Subject', '@angular/platform-browser', '@angular/cdk/platform', '@angular/animations', 'rxjs/observable/fromEvent', 'rxjs/observable/merge', 'rxjs/Subscription'], factory) :
11
+ (factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.select = global.ng.material.select || {}),global.ng.core,global.ng.common,global.ng.cdk.a11y,global.ng.cdk.bidi,global.ng.cdk.coercion,global.ng.cdk.collections,global.ng.cdk.keycodes,global.ng.cdk.overlay,global.ng.cdk.rxjs,global.ng.forms,global.Rx,global.ng.platformBrowser,global.ng.cdk.platform,global.ng.animations,global.Rx.Observable,global.Rx.Observable,global.Rx));
12
+ }(this, (function (exports,_angular_core,_angular_common,_angular_cdk_a11y,_angular_cdk_bidi,_angular_cdk_coercion,_angular_cdk_collections,_angular_cdk_keycodes,_angular_cdk_overlay,_angular_cdk_rxjs,_angular_forms,rxjs_Subject,_angular_platformBrowser,_angular_cdk_platform,_angular_animations,rxjs_observable_fromEvent,rxjs_observable_merge,rxjs_Subscription) { 'use strict';
13
+
14
+ /*! *****************************************************************************
15
+ Copyright (c) Microsoft Corporation. All rights reserved.
16
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
17
+ this file except in compliance with the License. You may obtain a copy of the
18
+ License at http://www.apache.org/licenses/LICENSE-2.0
19
+
20
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
22
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
23
+ MERCHANTABLITY OR NON-INFRINGEMENT.
24
+
25
+ See the Apache Version 2.0 License for specific language governing permissions
26
+ and limitations under the License.
27
+ ***************************************************************************** */
28
+ /* global Reflect, Promise */
29
+
30
+ var extendStatics = Object.setPrototypeOf ||
31
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
32
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
33
+
34
+ function __extends(d, b) {
35
+ extendStatics(d, b);
36
+ function __() { this.constructor = d; }
37
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
38
+ }
39
+
40
+ var MATERIAL_COMPATIBILITY_MODE = new _angular_core.InjectionToken('md-compatibility-mode');
41
+ /**
42
+ * Selector that matches all elements that may have style collisions with AngularJS Material.
43
+ */
44
+ var MAT_ELEMENTS_SELECTOR = "\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matCellDef],\n [matColumnDef],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matHeaderCellDef],\n [matHeaderRowDef],\n [matLine],\n [matRowDef],\n [matStepLabel],\n [matStepperNext],\n [matStepperPrevious],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n [matInput],\n [matPrefix],\n [matSuffix],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-cell,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-header-cell,\n mat-header-row,\n mat-hint,\n mat-horizontal-stepper,\n mat-icon,\n mat-input-container,\n mat-form-field,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-row,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-step,\n mat-tab,\n mat-table,\n mat-tab-group,\n mat-toolbar,\n mat-vertical-stepper";
45
+ /**
46
+ * Selector that matches all elements that may have style collisions with AngularJS Material.
47
+ */
48
+ var MD_ELEMENTS_SELECTOR = "\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdCellDef],\n [mdColumnDef],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdHeaderCellDef],\n [mdHeaderRowDef],\n [mdLine],\n [mdRowDef],\n [mdStepLabel],\n [mdStepperNext],\n [mdStepperPrevious],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n [mdInput],\n [mdPrefix],\n [mdSuffix],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-cell,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-header-cell,\n md-header-row,\n md-hint,\n md-horizontal-stepper,\n md-icon,\n md-input-container,\n md-form-field,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-row,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-step,\n md-tab,\n md-table,\n md-tab-group,\n md-toolbar,\n md-vertical-stepper";
49
+ /**
50
+ * Directive that enforces that the `mat-` prefix cannot be used.
51
+ */
52
+ var MatPrefixRejector = (function () {
53
+ function MatPrefixRejector() {
54
+ }
55
+ MatPrefixRejector.decorators = [
56
+ { type: _angular_core.Directive, args: [{ selector: MAT_ELEMENTS_SELECTOR },] },
57
+ ];
58
+ /**
59
+ * @nocollapse
60
+ */
61
+ MatPrefixRejector.ctorParameters = function () { return []; };
62
+ return MatPrefixRejector;
63
+ }());
64
+ /**
65
+ * Directive that enforces that the `md-` prefix cannot be used.
66
+ */
67
+ var MdPrefixRejector = (function () {
68
+ function MdPrefixRejector() {
69
+ }
70
+ MdPrefixRejector.decorators = [
71
+ { type: _angular_core.Directive, args: [{ selector: MD_ELEMENTS_SELECTOR },] },
72
+ ];
73
+ /**
74
+ * @nocollapse
75
+ */
76
+ MdPrefixRejector.ctorParameters = function () { return []; };
77
+ return MdPrefixRejector;
78
+ }());
79
+ /**
80
+ * Module that enforces the default compatibility mode settings. When this module is loaded
81
+ * without NoConflictStyleCompatibilityMode also being imported, it will throw an error if
82
+ * there are any uses of the `mat-` prefix.
83
+ */
84
+ var CompatibilityModule = (function () {
85
+ function CompatibilityModule() {
86
+ }
87
+ CompatibilityModule.decorators = [
88
+ { type: _angular_core.NgModule, args: [{
89
+ declarations: [MatPrefixRejector, MdPrefixRejector],
90
+ exports: [MatPrefixRejector, MdPrefixRejector],
91
+ },] },
92
+ ];
93
+ /**
94
+ * @nocollapse
95
+ */
96
+ CompatibilityModule.ctorParameters = function () { return []; };
97
+ return CompatibilityModule;
98
+ }());
99
+ /**
100
+ * Injection token that configures whether the Material sanity checks are enabled.
101
+ */
102
+ var MATERIAL_SANITY_CHECKS = new _angular_core.InjectionToken('mat-sanity-checks');
103
+ /**
104
+ * Module that captures anything that should be loaded and/or run for *all* Angular Material
105
+ * components. This includes Bidi, compatibility mode, etc.
106
+ *
107
+ * This module should be imported to each top-level component module (e.g., MatTabsModule).
108
+ */
109
+ var MatCommonModule = (function () {
110
+ /**
111
+ * @param {?} sanityChecksEnabled
112
+ */
113
+ function MatCommonModule(sanityChecksEnabled) {
114
+ /**
115
+ * Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype).
116
+ */
117
+ this._hasDoneGlobalChecks = false;
118
+ /**
119
+ * Reference to the global `document` object.
120
+ */
121
+ this._document = typeof document === 'object' && document ? document : null;
122
+ if (sanityChecksEnabled && !this._hasDoneGlobalChecks && _angular_core.isDevMode()) {
123
+ this._checkDoctype();
124
+ this._checkTheme();
125
+ this._hasDoneGlobalChecks = true;
126
+ }
127
+ }
128
+ /**
129
+ * @return {?}
130
+ */
131
+ MatCommonModule.prototype._checkDoctype = function () {
132
+ if (this._document && !this._document.doctype) {
133
+ console.warn('Current document does not have a doctype. This may cause ' +
134
+ 'some Angular Material components not to behave as expected.');
135
+ }
136
+ };
137
+ /**
138
+ * @return {?}
139
+ */
140
+ MatCommonModule.prototype._checkTheme = function () {
141
+ if (this._document && typeof getComputedStyle === 'function') {
142
+ var /** @type {?} */ testElement = this._document.createElement('div');
143
+ testElement.classList.add('mat-theme-loaded-marker');
144
+ this._document.body.appendChild(testElement);
145
+ var /** @type {?} */ computedStyle = getComputedStyle(testElement);
146
+ // In some situations, the computed style of the test element can be null. For example in
147
+ // Firefox, the computed style is null if an application is running inside of a hidden iframe.
148
+ // See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397
149
+ if (computedStyle && computedStyle.display !== 'none') {
150
+ console.warn('Could not find Angular Material core theme. Most Material ' +
151
+ 'components may not work as expected. For more info refer ' +
152
+ 'to the theming guide: https://material.angular.io/guide/theming');
153
+ }
154
+ this._document.body.removeChild(testElement);
155
+ }
156
+ };
157
+ MatCommonModule.decorators = [
158
+ { type: _angular_core.NgModule, args: [{
159
+ imports: [CompatibilityModule, _angular_cdk_bidi.BidiModule],
160
+ exports: [CompatibilityModule, _angular_cdk_bidi.BidiModule],
161
+ providers: [{
162
+ provide: MATERIAL_SANITY_CHECKS, useValue: true,
163
+ }],
164
+ },] },
165
+ ];
166
+ /**
167
+ * @nocollapse
168
+ */
169
+ MatCommonModule.ctorParameters = function () { return [
170
+ { type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [MATERIAL_SANITY_CHECKS,] },] },
171
+ ]; };
172
+ return MatCommonModule;
173
+ }());
174
+
175
+ /**
176
+ * Mixin to augment a directive with a `disabled` property.
177
+ * @template T
178
+ * @param {?} base
179
+ * @return {?}
180
+ */
181
+ function mixinDisabled(base) {
182
+ return (function (_super) {
183
+ __extends(class_1, _super);
184
+ /**
185
+ * @param {...?} args
186
+ */
187
+ function class_1() {
188
+ var args = [];
189
+ for (var _i = 0; _i < arguments.length; _i++) {
190
+ args[_i] = arguments[_i];
191
+ }
192
+ var _this = _super.apply(this, args) || this;
193
+ _this._disabled = false;
194
+ return _this;
195
+ }
196
+ Object.defineProperty(class_1.prototype, "disabled", {
197
+ /**
198
+ * @return {?}
199
+ */
200
+ get: function () { return this._disabled; },
201
+ /**
202
+ * @param {?} value
203
+ * @return {?}
204
+ */
205
+ set: function (value) { this._disabled = _angular_cdk_coercion.coerceBooleanProperty(value); },
206
+ enumerable: true,
207
+ configurable: true
208
+ });
209
+ return class_1;
210
+ }(base));
211
+ }
212
+
213
+ /**
214
+ * Mixin to augment a directive with a `tabIndex` property.
215
+ * @template T
216
+ * @param {?} base
217
+ * @param {?=} defaultTabIndex
218
+ * @return {?}
219
+ */
220
+ function mixinTabIndex(base, defaultTabIndex) {
221
+ if (defaultTabIndex === void 0) { defaultTabIndex = 0; }
222
+ return (function (_super) {
223
+ __extends(class_1, _super);
224
+ /**
225
+ * @param {...?} args
226
+ */
227
+ function class_1() {
228
+ var args = [];
229
+ for (var _i = 0; _i < arguments.length; _i++) {
230
+ args[_i] = arguments[_i];
231
+ }
232
+ var _this = _super.apply(this, args) || this;
233
+ _this._tabIndex = defaultTabIndex;
234
+ return _this;
235
+ }
236
+ Object.defineProperty(class_1.prototype, "tabIndex", {
237
+ /**
238
+ * @return {?}
239
+ */
240
+ get: function () { return this.disabled ? -1 : this._tabIndex; },
241
+ /**
242
+ * @param {?} value
243
+ * @return {?}
244
+ */
245
+ set: function (value) {
246
+ // If the specified tabIndex value is null or undefined, fall back to the default value.
247
+ this._tabIndex = value != null ? value : defaultTabIndex;
248
+ },
249
+ enumerable: true,
250
+ configurable: true
251
+ });
252
+ return class_1;
253
+ }(base));
254
+ }
255
+
256
+ /**
257
+ * InjectionToken for datepicker that can be used to override default locale code.
258
+ */
259
+ var MAT_DATE_LOCALE = new _angular_core.InjectionToken('MAT_DATE_LOCALE');
260
+ /**
261
+ * Adapts type `D` to be usable as a date by cdk-based components that work with dates.
262
+ * @abstract
263
+ */
264
+ var DateAdapter = (function () {
265
+ function DateAdapter() {
266
+ this._localeChanges = new rxjs_Subject.Subject();
267
+ }
268
+ Object.defineProperty(DateAdapter.prototype, "localeChanges", {
269
+ /**
270
+ * A stream that emits when the locale changes.
271
+ * @return {?}
272
+ */
273
+ get: function () { return this._localeChanges; },
274
+ enumerable: true,
275
+ configurable: true
276
+ });
277
+ /**
278
+ * Gets the year component of the given date.
279
+ * @abstract
280
+ * @param {?} date The date to extract the year from.
281
+ * @return {?} The year component.
282
+ */
283
+ DateAdapter.prototype.getYear = function (date) { };
284
+ /**
285
+ * Gets the month component of the given date.
286
+ * @abstract
287
+ * @param {?} date The date to extract the month from.
288
+ * @return {?} The month component (0-indexed, 0 = January).
289
+ */
290
+ DateAdapter.prototype.getMonth = function (date) { };
291
+ /**
292
+ * Gets the date of the month component of the given date.
293
+ * @abstract
294
+ * @param {?} date The date to extract the date of the month from.
295
+ * @return {?} The month component (1-indexed, 1 = first of month).
296
+ */
297
+ DateAdapter.prototype.getDate = function (date) { };
298
+ /**
299
+ * Gets the day of the week component of the given date.
300
+ * @abstract
301
+ * @param {?} date The date to extract the day of the week from.
302
+ * @return {?} The month component (0-indexed, 0 = Sunday).
303
+ */
304
+ DateAdapter.prototype.getDayOfWeek = function (date) { };
305
+ /**
306
+ * Gets a list of names for the months.
307
+ * @abstract
308
+ * @param {?} style The naming style (e.g. long = 'January', short = 'Jan', narrow = 'J').
309
+ * @return {?} An ordered list of all month names, starting with January.
310
+ */
311
+ DateAdapter.prototype.getMonthNames = function (style$$1) { };
312
+ /**
313
+ * Gets a list of names for the dates of the month.
314
+ * @abstract
315
+ * @return {?} An ordered list of all date of the month names, starting with '1'.
316
+ */
317
+ DateAdapter.prototype.getDateNames = function () { };
318
+ /**
319
+ * Gets a list of names for the days of the week.
320
+ * @abstract
321
+ * @param {?} style The naming style (e.g. long = 'Sunday', short = 'Sun', narrow = 'S').
322
+ * @return {?} An ordered list of all weekday names, starting with Sunday.
323
+ */
324
+ DateAdapter.prototype.getDayOfWeekNames = function (style$$1) { };
325
+ /**
326
+ * Gets the name for the year of the given date.
327
+ * @abstract
328
+ * @param {?} date The date to get the year name for.
329
+ * @return {?} The name of the given year (e.g. '2017').
330
+ */
331
+ DateAdapter.prototype.getYearName = function (date) { };
332
+ /**
333
+ * Gets the first day of the week.
334
+ * @abstract
335
+ * @return {?} The first day of the week (0-indexed, 0 = Sunday).
336
+ */
337
+ DateAdapter.prototype.getFirstDayOfWeek = function () { };
338
+ /**
339
+ * Gets the number of days in the month of the given date.
340
+ * @abstract
341
+ * @param {?} date The date whose month should be checked.
342
+ * @return {?} The number of days in the month of the given date.
343
+ */
344
+ DateAdapter.prototype.getNumDaysInMonth = function (date) { };
345
+ /**
346
+ * Clones the given date.
347
+ * @abstract
348
+ * @param {?} date The date to clone
349
+ * @return {?} A new date equal to the given date.
350
+ */
351
+ DateAdapter.prototype.clone = function (date) { };
352
+ /**
353
+ * Creates a date with the given year, month, and date. Does not allow over/under-flow of the
354
+ * month and date.
355
+ * @abstract
356
+ * @param {?} year The full year of the date. (e.g. 89 means the year 89, not the year 1989).
357
+ * @param {?} month The month of the date (0-indexed, 0 = January). Must be an integer 0 - 11.
358
+ * @param {?} date The date of month of the date. Must be an integer 1 - length of the given month.
359
+ * @return {?} The new date, or null if invalid.
360
+ */
361
+ DateAdapter.prototype.createDate = function (year, month, date) { };
362
+ /**
363
+ * Gets today's date.
364
+ * @abstract
365
+ * @return {?} Today's date.
366
+ */
367
+ DateAdapter.prototype.today = function () { };
368
+ /**
369
+ * Parses a date from a value.
370
+ * @abstract
371
+ * @param {?} value The value to parse.
372
+ * @param {?} parseFormat The expected format of the value being parsed
373
+ * (type is implementation-dependent).
374
+ * @return {?} The parsed date.
375
+ */
376
+ DateAdapter.prototype.parse = function (value, parseFormat) { };
377
+ /**
378
+ * Formats a date as a string.
379
+ * @abstract
380
+ * @param {?} date The value to format.
381
+ * @param {?} displayFormat The format to use to display the date as a string.
382
+ * @return {?} The formatted date string.
383
+ */
384
+ DateAdapter.prototype.format = function (date, displayFormat) { };
385
+ /**
386
+ * Adds the given number of years to the date. Years are counted as if flipping 12 pages on the
387
+ * calendar for each year and then finding the closest date in the new month. For example when
388
+ * adding 1 year to Feb 29, 2016, the resulting date will be Feb 28, 2017.
389
+ * @abstract
390
+ * @param {?} date The date to add years to.
391
+ * @param {?} years The number of years to add (may be negative).
392
+ * @return {?} A new date equal to the given one with the specified number of years added.
393
+ */
394
+ DateAdapter.prototype.addCalendarYears = function (date, years) { };
395
+ /**
396
+ * Adds the given number of months to the date. Months are counted as if flipping a page on the
397
+ * calendar for each month and then finding the closest date in the new month. For example when
398
+ * adding 1 month to Jan 31, 2017, the resulting date will be Feb 28, 2017.
399
+ * @abstract
400
+ * @param {?} date The date to add months to.
401
+ * @param {?} months The number of months to add (may be negative).
402
+ * @return {?} A new date equal to the given one with the specified number of months added.
403
+ */
404
+ DateAdapter.prototype.addCalendarMonths = function (date, months) { };
405
+ /**
406
+ * Adds the given number of days to the date. Days are counted as if moving one cell on the
407
+ * calendar for each day.
408
+ * @abstract
409
+ * @param {?} date The date to add days to.
410
+ * @param {?} days The number of days to add (may be negative).
411
+ * @return {?} A new date equal to the given one with the specified number of days added.
412
+ */
413
+ DateAdapter.prototype.addCalendarDays = function (date, days) { };
414
+ /**
415
+ * Gets the RFC 3339 compatible string (https://tools.ietf.org/html/rfc3339) for the given date.
416
+ * @abstract
417
+ * @param {?} date The date to get the ISO date string for.
418
+ * @return {?} The ISO date string date string.
419
+ */
420
+ DateAdapter.prototype.toIso8601 = function (date) { };
421
+ /**
422
+ * Creates a date from an RFC 3339 compatible string (https://tools.ietf.org/html/rfc3339).
423
+ * @abstract
424
+ * @param {?} iso8601String The ISO date string to create a date from
425
+ * @return {?} The date created from the ISO date string.
426
+ */
427
+ DateAdapter.prototype.fromIso8601 = function (iso8601String) { };
428
+ /**
429
+ * Checks whether the given object is considered a date instance by this DateAdapter.
430
+ * @abstract
431
+ * @param {?} obj The object to check
432
+ * @return {?} Whether the object is a date instance.
433
+ */
434
+ DateAdapter.prototype.isDateInstance = function (obj) { };
435
+ /**
436
+ * Checks whether the given date is valid.
437
+ * @abstract
438
+ * @param {?} date The date to check.
439
+ * @return {?} Whether the date is valid.
440
+ */
441
+ DateAdapter.prototype.isValid = function (date) { };
442
+ /**
443
+ * Sets the locale used for all dates.
444
+ * @param {?} locale The new locale.
445
+ * @return {?}
446
+ */
447
+ DateAdapter.prototype.setLocale = function (locale) {
448
+ this.locale = locale;
449
+ this._localeChanges.next();
450
+ };
451
+ /**
452
+ * Compares two dates.
453
+ * @param {?} first The first date to compare.
454
+ * @param {?} second The second date to compare.
455
+ * @return {?} 0 if the dates are equal, a number less than 0 if the first date is earlier,
456
+ * a number greater than 0 if the first date is later.
457
+ */
458
+ DateAdapter.prototype.compareDate = function (first$$1, second) {
459
+ return this.getYear(first$$1) - this.getYear(second) ||
460
+ this.getMonth(first$$1) - this.getMonth(second) ||
461
+ this.getDate(first$$1) - this.getDate(second);
462
+ };
463
+ /**
464
+ * Checks if two dates are equal.
465
+ * @param {?} first The first date to check.
466
+ * @param {?} second The second date to check.
467
+ * Null dates are considered equal to other null dates.
468
+ * @return {?}
469
+ */
470
+ DateAdapter.prototype.sameDate = function (first$$1, second) {
471
+ return first$$1 && second ? !this.compareDate(first$$1, second) : first$$1 == second;
472
+ };
473
+ /**
474
+ * Clamp the given date between min and max dates.
475
+ * @param {?} date The date to clamp.
476
+ * @param {?=} min The minimum value to allow. If null or omitted no min is enforced.
477
+ * @param {?=} max The maximum value to allow. If null or omitted no max is enforced.
478
+ * @return {?} `min` if `date` is less than `min`, `max` if date is greater than `max`,
479
+ * otherwise `date`.
480
+ */
481
+ DateAdapter.prototype.clampDate = function (date, min, max) {
482
+ if (min && this.compareDate(date, min) < 0) {
483
+ return min;
484
+ }
485
+ if (max && this.compareDate(date, max) > 0) {
486
+ return max;
487
+ }
488
+ return date;
489
+ };
490
+ return DateAdapter;
491
+ }());
492
+
493
+ /**
494
+ * Extends an object with the *enumerable* and *own* properties of one or more source objects,
495
+ * similar to Object.assign.
496
+ *
497
+ * @param {?} dest The object which will have properties copied to it.
498
+ * @param {...?} sources The source objects from which properties will be copied.
499
+ * @return {?}
500
+ */
501
+ function extendObject(dest) {
502
+ var sources = [];
503
+ for (var _i = 1; _i < arguments.length; _i++) {
504
+ sources[_i - 1] = arguments[_i];
505
+ }
506
+ if (dest == null) {
507
+ throw TypeError('Cannot convert undefined or null to object');
508
+ }
509
+ for (var _a = 0, sources_1 = sources; _a < sources_1.length; _a++) {
510
+ var source = sources_1[_a];
511
+ if (source != null) {
512
+ for (var /** @type {?} */ key in source) {
513
+ if (source.hasOwnProperty(key)) {
514
+ dest[key] = source[key];
515
+ }
516
+ }
517
+ }
518
+ }
519
+ return dest;
520
+ }
521
+
522
+ /**
523
+ * Whether the browser supports the Intl API.
524
+ */
525
+ var SUPPORTS_INTL_API = typeof Intl != 'undefined';
526
+ /**
527
+ * The default month names to use if Intl API is not available.
528
+ */
529
+ var DEFAULT_MONTH_NAMES = {
530
+ 'long': [
531
+ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
532
+ 'October', 'November', 'December'
533
+ ],
534
+ 'short': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
535
+ 'narrow': ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']
536
+ };
537
+ /**
538
+ * The default date names to use if Intl API is not available.
539
+ */
540
+ var DEFAULT_DATE_NAMES = range(31, function (i) { return String(i + 1); });
541
+ /**
542
+ * The default day of the week names to use if Intl API is not available.
543
+ */
544
+ var DEFAULT_DAY_OF_WEEK_NAMES = {
545
+ 'long': ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
546
+ 'short': ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
547
+ 'narrow': ['S', 'M', 'T', 'W', 'T', 'F', 'S']
548
+ };
549
+ /**
550
+ * Matches strings that have the form of a valid RFC 3339 string
551
+ * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date
552
+ * because the regex will match strings an with out of bounds month, date, etc.
553
+ */
554
+ var ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
555
+ /**
556
+ * Creates an array and fills it with values.
557
+ * @template T
558
+ * @param {?} length
559
+ * @param {?} valueFunction
560
+ * @return {?}
561
+ */
562
+ function range(length, valueFunction) {
563
+ var /** @type {?} */ valuesArray = Array(length);
564
+ for (var /** @type {?} */ i = 0; i < length; i++) {
565
+ valuesArray[i] = valueFunction(i);
566
+ }
567
+ return valuesArray;
568
+ }
569
+ /**
570
+ * Adapts the native JS Date for use with cdk-based components that work with dates.
571
+ */
572
+ var NativeDateAdapter = (function (_super) {
573
+ __extends(NativeDateAdapter, _super);
574
+ /**
575
+ * @param {?} matDateLocale
576
+ */
577
+ function NativeDateAdapter(matDateLocale) {
578
+ var _this = _super.call(this) || this;
579
+ /**
580
+ * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.
581
+ * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off
582
+ * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`
583
+ * will produce `'8/13/1800'`.
584
+ */
585
+ _this.useUtcForDisplay = true;
586
+ _super.prototype.setLocale.call(_this, matDateLocale);
587
+ return _this;
588
+ }
589
+ /**
590
+ * @param {?} date
591
+ * @return {?}
592
+ */
593
+ NativeDateAdapter.prototype.getYear = function (date) {
594
+ return date.getFullYear();
595
+ };
596
+ /**
597
+ * @param {?} date
598
+ * @return {?}
599
+ */
600
+ NativeDateAdapter.prototype.getMonth = function (date) {
601
+ return date.getMonth();
602
+ };
603
+ /**
604
+ * @param {?} date
605
+ * @return {?}
606
+ */
607
+ NativeDateAdapter.prototype.getDate = function (date) {
608
+ return date.getDate();
609
+ };
610
+ /**
611
+ * @param {?} date
612
+ * @return {?}
613
+ */
614
+ NativeDateAdapter.prototype.getDayOfWeek = function (date) {
615
+ return date.getDay();
616
+ };
617
+ /**
618
+ * @param {?} style
619
+ * @return {?}
620
+ */
621
+ NativeDateAdapter.prototype.getMonthNames = function (style$$1) {
622
+ var _this = this;
623
+ if (SUPPORTS_INTL_API) {
624
+ var /** @type {?} */ dtf_1 = new Intl.DateTimeFormat(this.locale, { month: style$$1 });
625
+ return range(12, function (i) { return _this._stripDirectionalityCharacters(dtf_1.format(new Date(2017, i, 1))); });
626
+ }
627
+ return DEFAULT_MONTH_NAMES[style$$1];
628
+ };
629
+ /**
630
+ * @return {?}
631
+ */
632
+ NativeDateAdapter.prototype.getDateNames = function () {
633
+ var _this = this;
634
+ if (SUPPORTS_INTL_API) {
635
+ var /** @type {?} */ dtf_2 = new Intl.DateTimeFormat(this.locale, { day: 'numeric' });
636
+ return range(31, function (i) { return _this._stripDirectionalityCharacters(dtf_2.format(new Date(2017, 0, i + 1))); });
637
+ }
638
+ return DEFAULT_DATE_NAMES;
639
+ };
640
+ /**
641
+ * @param {?} style
642
+ * @return {?}
643
+ */
644
+ NativeDateAdapter.prototype.getDayOfWeekNames = function (style$$1) {
645
+ var _this = this;
646
+ if (SUPPORTS_INTL_API) {
647
+ var /** @type {?} */ dtf_3 = new Intl.DateTimeFormat(this.locale, { weekday: style$$1 });
648
+ return range(7, function (i) { return _this._stripDirectionalityCharacters(dtf_3.format(new Date(2017, 0, i + 1))); });
649
+ }
650
+ return DEFAULT_DAY_OF_WEEK_NAMES[style$$1];
651
+ };
652
+ /**
653
+ * @param {?} date
654
+ * @return {?}
655
+ */
656
+ NativeDateAdapter.prototype.getYearName = function (date) {
657
+ if (SUPPORTS_INTL_API) {
658
+ var /** @type {?} */ dtf = new Intl.DateTimeFormat(this.locale, { year: 'numeric' });
659
+ return this._stripDirectionalityCharacters(dtf.format(date));
660
+ }
661
+ return String(this.getYear(date));
662
+ };
663
+ /**
664
+ * @return {?}
665
+ */
666
+ NativeDateAdapter.prototype.getFirstDayOfWeek = function () {
667
+ // We can't tell using native JS Date what the first day of the week is, we default to Sunday.
668
+ return 0;
669
+ };
670
+ /**
671
+ * @param {?} date
672
+ * @return {?}
673
+ */
674
+ NativeDateAdapter.prototype.getNumDaysInMonth = function (date) {
675
+ return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0));
676
+ };
677
+ /**
678
+ * @param {?} date
679
+ * @return {?}
680
+ */
681
+ NativeDateAdapter.prototype.clone = function (date) {
682
+ return this.createDate(this.getYear(date), this.getMonth(date), this.getDate(date));
683
+ };
684
+ /**
685
+ * @param {?} year
686
+ * @param {?} month
687
+ * @param {?} date
688
+ * @return {?}
689
+ */
690
+ NativeDateAdapter.prototype.createDate = function (year, month, date) {
691
+ // Check for invalid month and date (except upper bound on date which we have to check after
692
+ // creating the Date).
693
+ if (month < 0 || month > 11) {
694
+ throw Error("Invalid month index \"" + month + "\". Month index has to be between 0 and 11.");
695
+ }
696
+ if (date < 1) {
697
+ throw Error("Invalid date \"" + date + "\". Date has to be greater than 0.");
698
+ }
699
+ var /** @type {?} */ result = this._createDateWithOverflow(year, month, date);
700
+ // Check that the date wasn't above the upper bound for the month, causing the month to overflow
701
+ if (result.getMonth() != month) {
702
+ throw Error("Invalid date \"" + date + "\" for month with index \"" + month + "\".");
703
+ }
704
+ return result;
705
+ };
706
+ /**
707
+ * @return {?}
708
+ */
709
+ NativeDateAdapter.prototype.today = function () {
710
+ return new Date();
711
+ };
712
+ /**
713
+ * @param {?} value
714
+ * @return {?}
715
+ */
716
+ NativeDateAdapter.prototype.parse = function (value) {
717
+ // We have no way using the native JS Date to set the parse format or locale, so we ignore these
718
+ // parameters.
719
+ if (typeof value == 'number') {
720
+ return new Date(value);
721
+ }
722
+ return value ? new Date(Date.parse(value)) : null;
723
+ };
724
+ /**
725
+ * @param {?} date
726
+ * @param {?} displayFormat
727
+ * @return {?}
728
+ */
729
+ NativeDateAdapter.prototype.format = function (date, displayFormat) {
730
+ if (!this.isValid(date)) {
731
+ throw Error('NativeDateAdapter: Cannot format invalid date.');
732
+ }
733
+ if (SUPPORTS_INTL_API) {
734
+ if (this.useUtcForDisplay) {
735
+ date = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
736
+ displayFormat = extendObject({}, displayFormat, { timeZone: 'utc' });
737
+ }
738
+ var /** @type {?} */ dtf = new Intl.DateTimeFormat(this.locale, displayFormat);
739
+ return this._stripDirectionalityCharacters(dtf.format(date));
740
+ }
741
+ return this._stripDirectionalityCharacters(date.toDateString());
742
+ };
743
+ /**
744
+ * @param {?} date
745
+ * @param {?} years
746
+ * @return {?}
747
+ */
748
+ NativeDateAdapter.prototype.addCalendarYears = function (date, years) {
749
+ return this.addCalendarMonths(date, years * 12);
750
+ };
751
+ /**
752
+ * @param {?} date
753
+ * @param {?} months
754
+ * @return {?}
755
+ */
756
+ NativeDateAdapter.prototype.addCalendarMonths = function (date, months) {
757
+ var /** @type {?} */ newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date));
758
+ // It's possible to wind up in the wrong month if the original month has more days than the new
759
+ // month. In this case we want to go to the last day of the desired month.
760
+ // Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't
761
+ // guarantee this.
762
+ if (this.getMonth(newDate) != ((this.getMonth(date) + months) % 12 + 12) % 12) {
763
+ newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0);
764
+ }
765
+ return newDate;
766
+ };
767
+ /**
768
+ * @param {?} date
769
+ * @param {?} days
770
+ * @return {?}
771
+ */
772
+ NativeDateAdapter.prototype.addCalendarDays = function (date, days) {
773
+ return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days);
774
+ };
775
+ /**
776
+ * @param {?} date
777
+ * @return {?}
778
+ */
779
+ NativeDateAdapter.prototype.toIso8601 = function (date) {
780
+ return [
781
+ date.getUTCFullYear(),
782
+ this._2digit(date.getUTCMonth() + 1),
783
+ this._2digit(date.getUTCDate())
784
+ ].join('-');
785
+ };
786
+ /**
787
+ * @param {?} iso8601String
788
+ * @return {?}
789
+ */
790
+ NativeDateAdapter.prototype.fromIso8601 = function (iso8601String) {
791
+ // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the
792
+ // string is the right format first.
793
+ if (ISO_8601_REGEX.test(iso8601String)) {
794
+ var /** @type {?} */ d = new Date(iso8601String);
795
+ if (this.isValid(d)) {
796
+ return d;
797
+ }
798
+ }
799
+ return null;
800
+ };
801
+ /**
802
+ * @param {?} obj
803
+ * @return {?}
804
+ */
805
+ NativeDateAdapter.prototype.isDateInstance = function (obj) {
806
+ return obj instanceof Date;
807
+ };
808
+ /**
809
+ * @param {?} date
810
+ * @return {?}
811
+ */
812
+ NativeDateAdapter.prototype.isValid = function (date) {
813
+ return !isNaN(date.getTime());
814
+ };
815
+ /**
816
+ * Creates a date but allows the month and date to overflow.
817
+ * @param {?} year
818
+ * @param {?} month
819
+ * @param {?} date
820
+ * @return {?}
821
+ */
822
+ NativeDateAdapter.prototype._createDateWithOverflow = function (year, month, date) {
823
+ var /** @type {?} */ result = new Date(year, month, date);
824
+ // We need to correct for the fact that JS native Date treats years in range [0, 99] as
825
+ // abbreviations for 19xx.
826
+ if (year >= 0 && year < 100) {
827
+ result.setFullYear(this.getYear(result) - 1900);
828
+ }
829
+ return result;
830
+ };
831
+ /**
832
+ * Pads a number to make it two digits.
833
+ * @param {?} n The number to pad.
834
+ * @return {?} The padded number.
835
+ */
836
+ NativeDateAdapter.prototype._2digit = function (n) {
837
+ return ('00' + n).slice(-2);
838
+ };
839
+ /**
840
+ * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
841
+ * other browsers do not. We remove them to make output consistent and because they interfere with
842
+ * date parsing.
843
+ * @param {?} str The string to strip direction characters from.
844
+ * @return {?} The stripped string.
845
+ */
846
+ NativeDateAdapter.prototype._stripDirectionalityCharacters = function (str) {
847
+ return str.replace(/[\u200e\u200f]/g, '');
848
+ };
849
+ NativeDateAdapter.decorators = [
850
+ { type: _angular_core.Injectable },
851
+ ];
852
+ /**
853
+ * @nocollapse
854
+ */
855
+ NativeDateAdapter.ctorParameters = function () { return [
856
+ { type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [MAT_DATE_LOCALE,] },] },
857
+ ]; };
858
+ return NativeDateAdapter;
859
+ }(DateAdapter));
860
+
861
+ var MAT_DATE_FORMATS = new _angular_core.InjectionToken('mat-date-formats');
862
+
863
+ /**
864
+ * Provider that defines how form controls behave with regards to displaying error messages.
865
+ */
866
+ var ErrorStateMatcher = (function () {
867
+ function ErrorStateMatcher() {
868
+ }
869
+ /**
870
+ * @param {?} control
871
+ * @param {?} form
872
+ * @return {?}
873
+ */
874
+ ErrorStateMatcher.prototype.isErrorState = function (control, form) {
875
+ return !!(control && control.invalid && (control.touched || (form && form.submitted)));
876
+ };
877
+ ErrorStateMatcher.decorators = [
878
+ { type: _angular_core.Injectable },
879
+ ];
880
+ /**
881
+ * @nocollapse
882
+ */
883
+ ErrorStateMatcher.ctorParameters = function () { return []; };
884
+ return ErrorStateMatcher;
885
+ }());
886
+
887
+ var GestureConfig = (function (_super) {
888
+ __extends(GestureConfig, _super);
889
+ function GestureConfig() {
890
+ var _this = _super.call(this) || this;
891
+ _this._hammer = typeof window !== 'undefined' ? ((window)).Hammer : null;
892
+ /* List of new event names to add to the gesture support list */
893
+ _this.events = _this._hammer ? [
894
+ 'longpress',
895
+ 'slide',
896
+ 'slidestart',
897
+ 'slideend',
898
+ 'slideright',
899
+ 'slideleft'
900
+ ] : [];
901
+ if (!_this._hammer && _angular_core.isDevMode()) {
902
+ console.warn('Could not find HammerJS. Certain Angular Material ' +
903
+ 'components may not work correctly.');
904
+ }
905
+ return _this;
906
+ }
907
+ /**
908
+ * Builds Hammer instance manually to add custom recognizers that match the Material Design spec.
909
+ *
910
+ * Our gesture names come from the Material Design gestures spec:
911
+ * https://www.google.com/design/spec/patterns/gestures.html#gestures-touch-mechanics
912
+ *
913
+ * More information on default recognizers can be found in Hammer docs:
914
+ * http://hammerjs.github.io/recognizer-pan/
915
+ * http://hammerjs.github.io/recognizer-press/
916
+ *
917
+ * @param {?} element Element to which to assign the new HammerJS gestures.
918
+ * @return {?} Newly-created HammerJS instance.
919
+ */
920
+ GestureConfig.prototype.buildHammer = function (element) {
921
+ var /** @type {?} */ mc = new this._hammer(element);
922
+ // Default Hammer Recognizers.
923
+ var /** @type {?} */ pan = new this._hammer.Pan();
924
+ var /** @type {?} */ swipe = new this._hammer.Swipe();
925
+ var /** @type {?} */ press = new this._hammer.Press();
926
+ // Notice that a HammerJS recognizer can only depend on one other recognizer once.
927
+ // Otherwise the previous `recognizeWith` will be dropped.
928
+ // TODO: Confirm threshold numbers with Material Design UX Team
929
+ var /** @type {?} */ slide = this._createRecognizer(pan, { event: 'slide', threshold: 0 }, swipe);
930
+ var /** @type {?} */ longpress = this._createRecognizer(press, { event: 'longpress', time: 500 });
931
+ // Overwrite the default `pan` event to use the swipe event.
932
+ pan.recognizeWith(swipe);
933
+ // Add customized gestures to Hammer manager
934
+ mc.add([swipe, press, pan, slide, longpress]);
935
+ return (mc);
936
+ };
937
+ /**
938
+ * Creates a new recognizer, without affecting the default recognizers of HammerJS
939
+ * @param {?} base
940
+ * @param {?} options
941
+ * @param {...?} inheritances
942
+ * @return {?}
943
+ */
944
+ GestureConfig.prototype._createRecognizer = function (base, options) {
945
+ var inheritances = [];
946
+ for (var _i = 2; _i < arguments.length; _i++) {
947
+ inheritances[_i - 2] = arguments[_i];
948
+ }
949
+ var /** @type {?} */ recognizer = new ((base.constructor))(options);
950
+ inheritances.push(base);
951
+ inheritances.forEach(function (item) { return recognizer.recognizeWith(item); });
952
+ return recognizer;
953
+ };
954
+ GestureConfig.decorators = [
955
+ { type: _angular_core.Injectable },
956
+ ];
957
+ /**
958
+ * @nocollapse
959
+ */
960
+ GestureConfig.ctorParameters = function () { return []; };
961
+ return GestureConfig;
962
+ }(_angular_platformBrowser.HammerGestureConfig));
963
+
964
+ var RippleState = {};
965
+ RippleState.FADING_IN = 0;
966
+ RippleState.VISIBLE = 1;
967
+ RippleState.FADING_OUT = 2;
968
+ RippleState.HIDDEN = 3;
969
+ RippleState[RippleState.FADING_IN] = "FADING_IN";
970
+ RippleState[RippleState.VISIBLE] = "VISIBLE";
971
+ RippleState[RippleState.FADING_OUT] = "FADING_OUT";
972
+ RippleState[RippleState.HIDDEN] = "HIDDEN";
973
+ /**
974
+ * Reference to a previously launched ripple element.
975
+ */
976
+ var RippleRef = (function () {
977
+ /**
978
+ * @param {?} _renderer
979
+ * @param {?} element
980
+ * @param {?} config
981
+ */
982
+ function RippleRef(_renderer, element, config) {
983
+ this._renderer = _renderer;
984
+ this.element = element;
985
+ this.config = config;
986
+ /**
987
+ * Current state of the ripple reference.
988
+ */
989
+ this.state = RippleState.HIDDEN;
990
+ }
991
+ /**
992
+ * Fades out the ripple element.
993
+ * @return {?}
994
+ */
995
+ RippleRef.prototype.fadeOut = function () {
996
+ this._renderer.fadeOutRipple(this);
997
+ };
998
+ return RippleRef;
999
+ }());
1000
+
1001
+ /**
1002
+ * Fade-in duration for the ripples. Can be modified with the speedFactor option.
1003
+ */
1004
+ var RIPPLE_FADE_IN_DURATION = 450;
1005
+ /**
1006
+ * Fade-out duration for the ripples in milliseconds. This can't be modified by the speedFactor.
1007
+ */
1008
+ var RIPPLE_FADE_OUT_DURATION = 400;
1009
+ /**
1010
+ * Helper service that performs DOM manipulations. Not intended to be used outside this module.
1011
+ * The constructor takes a reference to the ripple directive's host element and a map of DOM
1012
+ * event handlers to be installed on the element that triggers ripple animations.
1013
+ * This will eventually become a custom renderer once Angular support exists.
1014
+ * \@docs-private
1015
+ */
1016
+ var RippleRenderer = (function () {
1017
+ /**
1018
+ * @param {?} elementRef
1019
+ * @param {?} _ngZone
1020
+ * @param {?} platform
1021
+ */
1022
+ function RippleRenderer(elementRef, _ngZone, platform) {
1023
+ this._ngZone = _ngZone;
1024
+ /**
1025
+ * Whether the pointer is currently being held on the trigger or not.
1026
+ */
1027
+ this._isPointerDown = false;
1028
+ /**
1029
+ * Events to be registered on the trigger element.
1030
+ */
1031
+ this._triggerEvents = new Map();
1032
+ /**
1033
+ * Set of currently active ripple references.
1034
+ */
1035
+ this._activeRipples = new Set();
1036
+ /**
1037
+ * Ripple config for all ripples created by events.
1038
+ */
1039
+ this.rippleConfig = {};
1040
+ /**
1041
+ * Whether mouse ripples should be created or not.
1042
+ */
1043
+ this.rippleDisabled = false;
1044
+ // Only do anything if we're on the browser.
1045
+ if (platform.isBrowser) {
1046
+ this._containerElement = elementRef.nativeElement;
1047
+ // Specify events which need to be registered on the trigger.
1048
+ this._triggerEvents.set('mousedown', this.onMousedown.bind(this));
1049
+ this._triggerEvents.set('touchstart', this.onTouchstart.bind(this));
1050
+ this._triggerEvents.set('mouseup', this.onPointerUp.bind(this));
1051
+ this._triggerEvents.set('touchend', this.onPointerUp.bind(this));
1052
+ this._triggerEvents.set('mouseleave', this.onPointerLeave.bind(this));
1053
+ // By default use the host element as trigger element.
1054
+ this.setTriggerElement(this._containerElement);
1055
+ }
1056
+ }
1057
+ /**
1058
+ * Fades in a ripple at the given coordinates.
1059
+ * @param {?} x Coordinate within the element, along the X axis at which to start the ripple.
1060
+ * @param {?} y
1061
+ * @param {?=} config Extra ripple options.
1062
+ * @return {?}
1063
+ */
1064
+ RippleRenderer.prototype.fadeInRipple = function (x, y, config) {
1065
+ var _this = this;
1066
+ if (config === void 0) { config = {}; }
1067
+ var /** @type {?} */ containerRect = this._containerElement.getBoundingClientRect();
1068
+ if (config.centered) {
1069
+ x = containerRect.left + containerRect.width / 2;
1070
+ y = containerRect.top + containerRect.height / 2;
1071
+ }
1072
+ var /** @type {?} */ radius = config.radius || distanceToFurthestCorner(x, y, containerRect);
1073
+ var /** @type {?} */ duration = RIPPLE_FADE_IN_DURATION * (1 / (config.speedFactor || 1));
1074
+ var /** @type {?} */ offsetX = x - containerRect.left;
1075
+ var /** @type {?} */ offsetY = y - containerRect.top;
1076
+ var /** @type {?} */ ripple = document.createElement('div');
1077
+ ripple.classList.add('mat-ripple-element');
1078
+ ripple.style.left = offsetX - radius + "px";
1079
+ ripple.style.top = offsetY - radius + "px";
1080
+ ripple.style.height = radius * 2 + "px";
1081
+ ripple.style.width = radius * 2 + "px";
1082
+ // If the color is not set, the default CSS color will be used.
1083
+ ripple.style.backgroundColor = config.color || null;
1084
+ ripple.style.transitionDuration = duration + "ms";
1085
+ this._containerElement.appendChild(ripple);
1086
+ // By default the browser does not recalculate the styles of dynamically created
1087
+ // ripple elements. This is critical because then the `scale` would not animate properly.
1088
+ enforceStyleRecalculation(ripple);
1089
+ ripple.style.transform = 'scale(1)';
1090
+ // Exposed reference to the ripple that will be returned.
1091
+ var /** @type {?} */ rippleRef = new RippleRef(this, ripple, config);
1092
+ rippleRef.state = RippleState.FADING_IN;
1093
+ // Add the ripple reference to the list of all active ripples.
1094
+ this._activeRipples.add(rippleRef);
1095
+ // Wait for the ripple element to be completely faded in.
1096
+ // Once it's faded in, the ripple can be hidden immediately if the mouse is released.
1097
+ this.runTimeoutOutsideZone(function () {
1098
+ rippleRef.state = RippleState.VISIBLE;
1099
+ if (!config.persistent && !_this._isPointerDown) {
1100
+ rippleRef.fadeOut();
1101
+ }
1102
+ }, duration);
1103
+ return rippleRef;
1104
+ };
1105
+ /**
1106
+ * Fades out a ripple reference.
1107
+ * @param {?} rippleRef
1108
+ * @return {?}
1109
+ */
1110
+ RippleRenderer.prototype.fadeOutRipple = function (rippleRef) {
1111
+ // For ripples that are not active anymore, don't re-un the fade-out animation.
1112
+ if (!this._activeRipples.delete(rippleRef)) {
1113
+ return;
1114
+ }
1115
+ var /** @type {?} */ rippleEl = rippleRef.element;
1116
+ rippleEl.style.transitionDuration = RIPPLE_FADE_OUT_DURATION + "ms";
1117
+ rippleEl.style.opacity = '0';
1118
+ rippleRef.state = RippleState.FADING_OUT;
1119
+ // Once the ripple faded out, the ripple can be safely removed from the DOM.
1120
+ this.runTimeoutOutsideZone(function () {
1121
+ rippleRef.state = RippleState.HIDDEN; /** @type {?} */
1122
+ ((rippleEl.parentNode)).removeChild(rippleEl);
1123
+ }, RIPPLE_FADE_OUT_DURATION);
1124
+ };
1125
+ /**
1126
+ * Fades out all currently active ripples.
1127
+ * @return {?}
1128
+ */
1129
+ RippleRenderer.prototype.fadeOutAll = function () {
1130
+ this._activeRipples.forEach(function (ripple) { return ripple.fadeOut(); });
1131
+ };
1132
+ /**
1133
+ * Sets the trigger element and registers the mouse events.
1134
+ * @param {?} element
1135
+ * @return {?}
1136
+ */
1137
+ RippleRenderer.prototype.setTriggerElement = function (element) {
1138
+ var _this = this;
1139
+ // Remove all previously register event listeners from the trigger element.
1140
+ if (this._triggerElement) {
1141
+ this._triggerEvents.forEach(function (fn, type) {
1142
+ ((_this._triggerElement)).removeEventListener(type, fn);
1143
+ });
1144
+ }
1145
+ if (element) {
1146
+ // If the element is not null, register all event listeners on the trigger element.
1147
+ this._ngZone.runOutsideAngular(function () {
1148
+ _this._triggerEvents.forEach(function (fn, type) { return element.addEventListener(type, fn); });
1149
+ });
1150
+ }
1151
+ this._triggerElement = element;
1152
+ };
1153
+ /**
1154
+ * Function being called whenever the trigger is being pressed.
1155
+ * @param {?} event
1156
+ * @return {?}
1157
+ */
1158
+ RippleRenderer.prototype.onMousedown = function (event) {
1159
+ if (!this.rippleDisabled) {
1160
+ this._isPointerDown = true;
1161
+ this.fadeInRipple(event.clientX, event.clientY, this.rippleConfig);
1162
+ }
1163
+ };
1164
+ /**
1165
+ * Function being called whenever the pointer is being released.
1166
+ * @return {?}
1167
+ */
1168
+ RippleRenderer.prototype.onPointerUp = function () {
1169
+ this._isPointerDown = false;
1170
+ // Fade-out all ripples that are completely visible and not persistent.
1171
+ this._activeRipples.forEach(function (ripple) {
1172
+ if (!ripple.config.persistent && ripple.state === RippleState.VISIBLE) {
1173
+ ripple.fadeOut();
1174
+ }
1175
+ });
1176
+ };
1177
+ /**
1178
+ * Function being called whenever the pointer leaves the trigger.
1179
+ * @return {?}
1180
+ */
1181
+ RippleRenderer.prototype.onPointerLeave = function () {
1182
+ if (this._isPointerDown) {
1183
+ this.onPointerUp();
1184
+ }
1185
+ };
1186
+ /**
1187
+ * Function being called whenever the trigger is being touched.
1188
+ * @param {?} event
1189
+ * @return {?}
1190
+ */
1191
+ RippleRenderer.prototype.onTouchstart = function (event) {
1192
+ if (!this.rippleDisabled) {
1193
+ var _a = event.touches[0], clientX = _a.clientX, clientY = _a.clientY;
1194
+ this._isPointerDown = true;
1195
+ this.fadeInRipple(clientX, clientY, this.rippleConfig);
1196
+ }
1197
+ };
1198
+ /**
1199
+ * Runs a timeout outside of the Angular zone to avoid triggering the change detection.
1200
+ * @param {?} fn
1201
+ * @param {?=} delay
1202
+ * @return {?}
1203
+ */
1204
+ RippleRenderer.prototype.runTimeoutOutsideZone = function (fn, delay) {
1205
+ if (delay === void 0) { delay = 0; }
1206
+ this._ngZone.runOutsideAngular(function () { return setTimeout(fn, delay); });
1207
+ };
1208
+ return RippleRenderer;
1209
+ }());
1210
+ /**
1211
+ * @param {?} element
1212
+ * @return {?}
1213
+ */
1214
+ function enforceStyleRecalculation(element) {
1215
+ // Enforce a style recalculation by calling `getComputedStyle` and accessing any property.
1216
+ // Calling `getPropertyValue` is important to let optimizers know that this is not a noop.
1217
+ // See: https://gist.github.com/paulirish/5d52fb081b3570c81e3a
1218
+ window.getComputedStyle(element).getPropertyValue('opacity');
1219
+ }
1220
+ /**
1221
+ * Returns the distance from the point (x, y) to the furthest corner of a rectangle.
1222
+ * @param {?} x
1223
+ * @param {?} y
1224
+ * @param {?} rect
1225
+ * @return {?}
1226
+ */
1227
+ function distanceToFurthestCorner(x, y, rect) {
1228
+ var /** @type {?} */ distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right));
1229
+ var /** @type {?} */ distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom));
1230
+ return Math.sqrt(distX * distX + distY * distY);
1231
+ }
1232
+
1233
+ /**
1234
+ * Injection token that can be used to specify the global ripple options.
1235
+ */
1236
+ var MAT_RIPPLE_GLOBAL_OPTIONS = new _angular_core.InjectionToken('mat-ripple-global-options');
1237
+ var MatRipple = (function () {
1238
+ /**
1239
+ * @param {?} elementRef
1240
+ * @param {?} ngZone
1241
+ * @param {?} platform
1242
+ * @param {?} globalOptions
1243
+ */
1244
+ function MatRipple(elementRef, ngZone, platform, globalOptions) {
1245
+ /**
1246
+ * If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius
1247
+ * will be the distance from the center of the ripple to the furthest corner of the host element's
1248
+ * bounding rectangle.
1249
+ */
1250
+ this.radius = 0;
1251
+ /**
1252
+ * If set, the normal duration of ripple animations is divided by this value. For example,
1253
+ * setting it to 0.5 will cause the animations to take twice as long.
1254
+ * A changed speedFactor will not modify the fade-out duration of the ripples.
1255
+ */
1256
+ this.speedFactor = 1;
1257
+ this._rippleRenderer = new RippleRenderer(elementRef, ngZone, platform);
1258
+ this._globalOptions = globalOptions ? globalOptions : {};
1259
+ this._updateRippleRenderer();
1260
+ }
1261
+ /**
1262
+ * @param {?} changes
1263
+ * @return {?}
1264
+ */
1265
+ MatRipple.prototype.ngOnChanges = function (changes) {
1266
+ if ((changes['trigger'] || changes['_matRippleTrigger']) && this.trigger) {
1267
+ this._rippleRenderer.setTriggerElement(this.trigger);
1268
+ }
1269
+ this._updateRippleRenderer();
1270
+ };
1271
+ /**
1272
+ * @return {?}
1273
+ */
1274
+ MatRipple.prototype.ngOnDestroy = function () {
1275
+ // Set the trigger element to null to cleanup all listeners.
1276
+ this._rippleRenderer.setTriggerElement(null);
1277
+ };
1278
+ /**
1279
+ * Launches a manual ripple at the specified position.
1280
+ * @param {?} x
1281
+ * @param {?} y
1282
+ * @param {?=} config
1283
+ * @return {?}
1284
+ */
1285
+ MatRipple.prototype.launch = function (x, y, config) {
1286
+ if (config === void 0) { config = this.rippleConfig; }
1287
+ return this._rippleRenderer.fadeInRipple(x, y, config);
1288
+ };
1289
+ /**
1290
+ * Fades out all currently showing ripple elements.
1291
+ * @return {?}
1292
+ */
1293
+ MatRipple.prototype.fadeOutAll = function () {
1294
+ this._rippleRenderer.fadeOutAll();
1295
+ };
1296
+ Object.defineProperty(MatRipple.prototype, "rippleConfig", {
1297
+ /**
1298
+ * Ripple configuration from the directive's input values.
1299
+ * @return {?}
1300
+ */
1301
+ get: function () {
1302
+ return {
1303
+ centered: this.centered,
1304
+ speedFactor: this.speedFactor * (this._globalOptions.baseSpeedFactor || 1),
1305
+ radius: this.radius,
1306
+ color: this.color
1307
+ };
1308
+ },
1309
+ enumerable: true,
1310
+ configurable: true
1311
+ });
1312
+ /**
1313
+ * Updates the ripple renderer with the latest ripple configuration.
1314
+ * @return {?}
1315
+ */
1316
+ MatRipple.prototype._updateRippleRenderer = function () {
1317
+ this._rippleRenderer.rippleDisabled = this._globalOptions.disabled || this.disabled;
1318
+ this._rippleRenderer.rippleConfig = this.rippleConfig;
1319
+ };
1320
+ MatRipple.decorators = [
1321
+ { type: _angular_core.Directive, args: [{
1322
+ selector: '[mat-ripple], [matRipple]',
1323
+ exportAs: 'matRipple',
1324
+ host: {
1325
+ 'class': 'mat-ripple',
1326
+ '[class.mat-ripple-unbounded]': 'unbounded'
1327
+ }
1328
+ },] },
1329
+ ];
1330
+ /**
1331
+ * @nocollapse
1332
+ */
1333
+ MatRipple.ctorParameters = function () { return [
1334
+ { type: _angular_core.ElementRef, },
1335
+ { type: _angular_core.NgZone, },
1336
+ { type: _angular_cdk_platform.Platform, },
1337
+ { type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [MAT_RIPPLE_GLOBAL_OPTIONS,] },] },
1338
+ ]; };
1339
+ MatRipple.propDecorators = {
1340
+ 'trigger': [{ type: _angular_core.Input, args: ['matRippleTrigger',] },],
1341
+ 'centered': [{ type: _angular_core.Input, args: ['matRippleCentered',] },],
1342
+ 'disabled': [{ type: _angular_core.Input, args: ['matRippleDisabled',] },],
1343
+ 'radius': [{ type: _angular_core.Input, args: ['matRippleRadius',] },],
1344
+ 'speedFactor': [{ type: _angular_core.Input, args: ['matRippleSpeedFactor',] },],
1345
+ 'color': [{ type: _angular_core.Input, args: ['matRippleColor',] },],
1346
+ 'unbounded': [{ type: _angular_core.Input, args: ['matRippleUnbounded',] },],
1347
+ };
1348
+ return MatRipple;
1349
+ }());
1350
+
1351
+ var MatRippleModule = (function () {
1352
+ function MatRippleModule() {
1353
+ }
1354
+ MatRippleModule.decorators = [
1355
+ { type: _angular_core.NgModule, args: [{
1356
+ imports: [MatCommonModule, _angular_cdk_platform.PlatformModule],
1357
+ exports: [MatRipple, MatCommonModule],
1358
+ declarations: [MatRipple],
1359
+ },] },
1360
+ ];
1361
+ /**
1362
+ * @nocollapse
1363
+ */
1364
+ MatRippleModule.ctorParameters = function () { return []; };
1365
+ return MatRippleModule;
1366
+ }());
1367
+
1368
+ /**
1369
+ * Component that shows a simplified checkbox without including any kind of "real" checkbox.
1370
+ * Meant to be used when the checkbox is purely decorative and a large number of them will be
1371
+ * included, such as for the options in a multi-select. Uses no SVGs or complex animations.
1372
+ * Note that theming is meant to be handled by the parent element, e.g.
1373
+ * `mat-primary .mat-pseudo-checkbox`.
1374
+ *
1375
+ * Note that this component will be completely invisible to screen-reader users. This is *not*
1376
+ * interchangeable with <mat-checkbox> and should *not* be used if the user would directly interact
1377
+ * with the checkbox. The pseudo-checkbox should only be used as an implementation detail of
1378
+ * more complex components that appropriately handle selected / checked state.
1379
+ * \@docs-private
1380
+ */
1381
+ var MatPseudoCheckbox = (function () {
1382
+ function MatPseudoCheckbox() {
1383
+ /**
1384
+ * Display state of the checkbox.
1385
+ */
1386
+ this.state = 'unchecked';
1387
+ /**
1388
+ * Whether the checkbox is disabled.
1389
+ */
1390
+ this.disabled = false;
1391
+ }
1392
+ MatPseudoCheckbox.decorators = [
1393
+ { type: _angular_core.Component, args: [{encapsulation: _angular_core.ViewEncapsulation.None,
1394
+ preserveWhitespaces: false,
1395
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
1396
+ selector: 'mat-pseudo-checkbox',
1397
+ styles: [".mat-pseudo-checkbox{width:20px;height:20px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:9px;left:2px;width:16px;opacity:1}.mat-pseudo-checkbox-checked::after{top:5px;left:3px;width:12px;height:5px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1}"],
1398
+ template: '',
1399
+ host: {
1400
+ 'class': 'mat-pseudo-checkbox',
1401
+ '[class.mat-pseudo-checkbox-indeterminate]': 'state === "indeterminate"',
1402
+ '[class.mat-pseudo-checkbox-checked]': 'state === "checked"',
1403
+ '[class.mat-pseudo-checkbox-disabled]': 'disabled',
1404
+ },
1405
+ },] },
1406
+ ];
1407
+ /**
1408
+ * @nocollapse
1409
+ */
1410
+ MatPseudoCheckbox.ctorParameters = function () { return []; };
1411
+ MatPseudoCheckbox.propDecorators = {
1412
+ 'state': [{ type: _angular_core.Input },],
1413
+ 'disabled': [{ type: _angular_core.Input },],
1414
+ };
1415
+ return MatPseudoCheckbox;
1416
+ }());
1417
+
1418
+ var MatPseudoCheckboxModule = (function () {
1419
+ function MatPseudoCheckboxModule() {
1420
+ }
1421
+ MatPseudoCheckboxModule.decorators = [
1422
+ { type: _angular_core.NgModule, args: [{
1423
+ exports: [MatPseudoCheckbox],
1424
+ declarations: [MatPseudoCheckbox]
1425
+ },] },
1426
+ ];
1427
+ /**
1428
+ * @nocollapse
1429
+ */
1430
+ MatPseudoCheckboxModule.ctorParameters = function () { return []; };
1431
+ return MatPseudoCheckboxModule;
1432
+ }());
1433
+
1434
+ /**
1435
+ * \@docs-private
1436
+ */
1437
+ var MatOptgroupBase = (function () {
1438
+ function MatOptgroupBase() {
1439
+ }
1440
+ return MatOptgroupBase;
1441
+ }());
1442
+ var _MatOptgroupMixinBase = mixinDisabled(MatOptgroupBase);
1443
+ // Counter for unique group ids.
1444
+ var _uniqueOptgroupIdCounter = 0;
1445
+ /**
1446
+ * Component that is used to group instances of `mat-option`.
1447
+ */
1448
+ var MatOptgroup = (function (_super) {
1449
+ __extends(MatOptgroup, _super);
1450
+ function MatOptgroup() {
1451
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1452
+ /**
1453
+ * Unique id for the underlying label.
1454
+ */
1455
+ _this._labelId = "mat-optgroup-label-" + _uniqueOptgroupIdCounter++;
1456
+ return _this;
1457
+ }
1458
+ MatOptgroup.decorators = [
1459
+ { type: _angular_core.Component, args: [{selector: 'mat-optgroup',
1460
+ exportAs: 'matOptgroup',
1461
+ template: "<label class=\"mat-optgroup-label\" [id]=\"_labelId\">{{ label }}</label><ng-content select=\"mat-option\"></ng-content>",
1462
+ encapsulation: _angular_core.ViewEncapsulation.None,
1463
+ preserveWhitespaces: false,
1464
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
1465
+ inputs: ['disabled'],
1466
+ host: {
1467
+ 'class': 'mat-optgroup',
1468
+ 'role': 'group',
1469
+ '[class.mat-optgroup-disabled]': 'disabled',
1470
+ '[attr.aria-disabled]': 'disabled.toString()',
1471
+ '[attr.aria-labelledby]': '_labelId',
1472
+ }
1473
+ },] },
1474
+ ];
1475
+ /**
1476
+ * @nocollapse
1477
+ */
1478
+ MatOptgroup.ctorParameters = function () { return []; };
1479
+ MatOptgroup.propDecorators = {
1480
+ 'label': [{ type: _angular_core.Input },],
1481
+ };
1482
+ return MatOptgroup;
1483
+ }(_MatOptgroupMixinBase));
1484
+
1485
+ /**
1486
+ * Option IDs need to be unique across components, so this counter exists outside of
1487
+ * the component definition.
1488
+ */
1489
+ var _uniqueIdCounter = 0;
1490
+ /**
1491
+ * Event object emitted by MatOption when selected or deselected.
1492
+ */
1493
+ var MatOptionSelectionChange = (function () {
1494
+ /**
1495
+ * @param {?} source
1496
+ * @param {?=} isUserInput
1497
+ */
1498
+ function MatOptionSelectionChange(source, isUserInput) {
1499
+ if (isUserInput === void 0) { isUserInput = false; }
1500
+ this.source = source;
1501
+ this.isUserInput = isUserInput;
1502
+ }
1503
+ return MatOptionSelectionChange;
1504
+ }());
1505
+ /**
1506
+ * Single option inside of a `<mat-select>` element.
1507
+ */
1508
+ var MatOption = (function () {
1509
+ /**
1510
+ * @param {?} _element
1511
+ * @param {?} _changeDetectorRef
1512
+ * @param {?} group
1513
+ */
1514
+ function MatOption(_element, _changeDetectorRef, group) {
1515
+ this._element = _element;
1516
+ this._changeDetectorRef = _changeDetectorRef;
1517
+ this.group = group;
1518
+ this._selected = false;
1519
+ this._active = false;
1520
+ this._multiple = false;
1521
+ this._disableRipple = false;
1522
+ /**
1523
+ * Whether the option is disabled.
1524
+ */
1525
+ this._disabled = false;
1526
+ this._id = "mat-option-" + _uniqueIdCounter++;
1527
+ /**
1528
+ * Event emitted when the option is selected or deselected.
1529
+ */
1530
+ this.onSelectionChange = new _angular_core.EventEmitter();
1531
+ }
1532
+ Object.defineProperty(MatOption.prototype, "multiple", {
1533
+ /**
1534
+ * Whether the wrapping component is in multiple selection mode.
1535
+ * @return {?}
1536
+ */
1537
+ get: function () { return this._multiple; },
1538
+ /**
1539
+ * @param {?} value
1540
+ * @return {?}
1541
+ */
1542
+ set: function (value) {
1543
+ if (value !== this._multiple) {
1544
+ this._multiple = value;
1545
+ this._changeDetectorRef.markForCheck();
1546
+ }
1547
+ },
1548
+ enumerable: true,
1549
+ configurable: true
1550
+ });
1551
+ Object.defineProperty(MatOption.prototype, "id", {
1552
+ /**
1553
+ * The unique ID of the option.
1554
+ * @return {?}
1555
+ */
1556
+ get: function () { return this._id; },
1557
+ enumerable: true,
1558
+ configurable: true
1559
+ });
1560
+ Object.defineProperty(MatOption.prototype, "selected", {
1561
+ /**
1562
+ * Whether or not the option is currently selected.
1563
+ * @return {?}
1564
+ */
1565
+ get: function () { return this._selected; },
1566
+ enumerable: true,
1567
+ configurable: true
1568
+ });
1569
+ Object.defineProperty(MatOption.prototype, "disabled", {
1570
+ /**
1571
+ * Whether the option is disabled.
1572
+ * @return {?}
1573
+ */
1574
+ get: function () { return (this.group && this.group.disabled) || this._disabled; },
1575
+ /**
1576
+ * @param {?} value
1577
+ * @return {?}
1578
+ */
1579
+ set: function (value) { this._disabled = _angular_cdk_coercion.coerceBooleanProperty(value); },
1580
+ enumerable: true,
1581
+ configurable: true
1582
+ });
1583
+ Object.defineProperty(MatOption.prototype, "disableRipple", {
1584
+ /**
1585
+ * Whether ripples for the option are disabled.
1586
+ * @return {?}
1587
+ */
1588
+ get: function () { return this._disableRipple; },
1589
+ /**
1590
+ * @param {?} value
1591
+ * @return {?}
1592
+ */
1593
+ set: function (value) {
1594
+ this._disableRipple = value;
1595
+ this._changeDetectorRef.markForCheck();
1596
+ },
1597
+ enumerable: true,
1598
+ configurable: true
1599
+ });
1600
+ Object.defineProperty(MatOption.prototype, "active", {
1601
+ /**
1602
+ * Whether or not the option is currently active and ready to be selected.
1603
+ * An active option displays styles as if it is focused, but the
1604
+ * focus is actually retained somewhere else. This comes in handy
1605
+ * for components like autocomplete where focus must remain on the input.
1606
+ * @return {?}
1607
+ */
1608
+ get: function () {
1609
+ return this._active;
1610
+ },
1611
+ enumerable: true,
1612
+ configurable: true
1613
+ });
1614
+ Object.defineProperty(MatOption.prototype, "viewValue", {
1615
+ /**
1616
+ * The displayed value of the option. It is necessary to show the selected option in the
1617
+ * select's trigger.
1618
+ * @return {?}
1619
+ */
1620
+ get: function () {
1621
+ // TODO(kara): Add input property alternative for node envs.
1622
+ return (this._getHostElement().textContent || '').trim();
1623
+ },
1624
+ enumerable: true,
1625
+ configurable: true
1626
+ });
1627
+ /**
1628
+ * Selects the option.
1629
+ * @return {?}
1630
+ */
1631
+ MatOption.prototype.select = function () {
1632
+ this._selected = true;
1633
+ this._changeDetectorRef.markForCheck();
1634
+ this._emitSelectionChangeEvent();
1635
+ };
1636
+ /**
1637
+ * Deselects the option.
1638
+ * @return {?}
1639
+ */
1640
+ MatOption.prototype.deselect = function () {
1641
+ this._selected = false;
1642
+ this._changeDetectorRef.markForCheck();
1643
+ this._emitSelectionChangeEvent();
1644
+ };
1645
+ /**
1646
+ * Sets focus onto this option.
1647
+ * @return {?}
1648
+ */
1649
+ MatOption.prototype.focus = function () {
1650
+ var /** @type {?} */ element = this._getHostElement();
1651
+ if (typeof element.focus === 'function') {
1652
+ element.focus();
1653
+ }
1654
+ };
1655
+ /**
1656
+ * This method sets display styles on the option to make it appear
1657
+ * active. This is used by the ActiveDescendantKeyManager so key
1658
+ * events will display the proper options as active on arrow key events.
1659
+ * @return {?}
1660
+ */
1661
+ MatOption.prototype.setActiveStyles = function () {
1662
+ if (!this._active) {
1663
+ this._active = true;
1664
+ this._changeDetectorRef.markForCheck();
1665
+ }
1666
+ };
1667
+ /**
1668
+ * This method removes display styles on the option that made it appear
1669
+ * active. This is used by the ActiveDescendantKeyManager so key
1670
+ * events will display the proper options as active on arrow key events.
1671
+ * @return {?}
1672
+ */
1673
+ MatOption.prototype.setInactiveStyles = function () {
1674
+ if (this._active) {
1675
+ this._active = false;
1676
+ this._changeDetectorRef.markForCheck();
1677
+ }
1678
+ };
1679
+ /**
1680
+ * Gets the label to be used when determining whether the option should be focused.
1681
+ * @return {?}
1682
+ */
1683
+ MatOption.prototype.getLabel = function () {
1684
+ return this.viewValue;
1685
+ };
1686
+ /**
1687
+ * Ensures the option is selected when activated from the keyboard.
1688
+ * @param {?} event
1689
+ * @return {?}
1690
+ */
1691
+ MatOption.prototype._handleKeydown = function (event) {
1692
+ if (event.keyCode === _angular_cdk_keycodes.ENTER || event.keyCode === _angular_cdk_keycodes.SPACE) {
1693
+ this._selectViaInteraction();
1694
+ // Prevent the page from scrolling down and form submits.
1695
+ event.preventDefault();
1696
+ }
1697
+ };
1698
+ /**
1699
+ * Selects the option while indicating the selection came from the user. Used to
1700
+ * determine if the select's view -> model callback should be invoked.
1701
+ * @return {?}
1702
+ */
1703
+ MatOption.prototype._selectViaInteraction = function () {
1704
+ if (!this.disabled) {
1705
+ this._selected = this.multiple ? !this._selected : true;
1706
+ this._changeDetectorRef.markForCheck();
1707
+ this._emitSelectionChangeEvent(true);
1708
+ }
1709
+ };
1710
+ /**
1711
+ * Returns the correct tabindex for the option depending on disabled state.
1712
+ * @return {?}
1713
+ */
1714
+ MatOption.prototype._getTabIndex = function () {
1715
+ return this.disabled ? '-1' : '0';
1716
+ };
1717
+ /**
1718
+ * Gets the host DOM element.
1719
+ * @return {?}
1720
+ */
1721
+ MatOption.prototype._getHostElement = function () {
1722
+ return this._element.nativeElement;
1723
+ };
1724
+ /**
1725
+ * Emits the selection change event.
1726
+ * @param {?=} isUserInput
1727
+ * @return {?}
1728
+ */
1729
+ MatOption.prototype._emitSelectionChangeEvent = function (isUserInput) {
1730
+ if (isUserInput === void 0) { isUserInput = false; }
1731
+ this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput));
1732
+ };
1733
+ /**
1734
+ * Counts the amount of option group labels that precede the specified option.
1735
+ * @param {?} optionIndex Index of the option at which to start counting.
1736
+ * @param {?} options Flat list of all of the options.
1737
+ * @param {?} optionGroups Flat list of all of the option groups.
1738
+ * @return {?}
1739
+ */
1740
+ MatOption.countGroupLabelsBeforeOption = function (optionIndex, options, optionGroups) {
1741
+ if (optionGroups.length) {
1742
+ var /** @type {?} */ optionsArray = options.toArray();
1743
+ var /** @type {?} */ groups = optionGroups.toArray();
1744
+ var /** @type {?} */ groupCounter = 0;
1745
+ for (var /** @type {?} */ i = 0; i < optionIndex + 1; i++) {
1746
+ if (optionsArray[i].group && optionsArray[i].group === groups[groupCounter]) {
1747
+ groupCounter++;
1748
+ }
1749
+ }
1750
+ return groupCounter;
1751
+ }
1752
+ return 0;
1753
+ };
1754
+ MatOption.decorators = [
1755
+ { type: _angular_core.Component, args: [{selector: 'mat-option',
1756
+ exportAs: 'matOption',
1757
+ host: {
1758
+ 'role': 'option',
1759
+ '[attr.tabindex]': '_getTabIndex()',
1760
+ '[class.mat-selected]': 'selected',
1761
+ '[class.mat-option-multiple]': 'multiple',
1762
+ '[class.mat-active]': 'active',
1763
+ '[id]': 'id',
1764
+ '[attr.aria-selected]': 'selected.toString()',
1765
+ '[attr.aria-disabled]': 'disabled.toString()',
1766
+ '[class.mat-option-disabled]': 'disabled',
1767
+ '(click)': '_selectViaInteraction()',
1768
+ '(keydown)': '_handleKeydown($event)',
1769
+ 'class': 'mat-option',
1770
+ },
1771
+ template: "<span *ngIf=\"multiple\"><mat-pseudo-checkbox class=\"mat-option-pseudo-checkbox\" [state]=\"selected ? 'checked' : ''\" [disabled]=\"disabled\"></mat-pseudo-checkbox></span><span class=\"mat-option-text\"><ng-content></ng-content></span><div class=\"mat-option-ripple\" mat-ripple [matRippleTrigger]=\"_getHostElement()\" [matRippleDisabled]=\"disabled || disableRipple\"></div>",
1772
+ encapsulation: _angular_core.ViewEncapsulation.None,
1773
+ preserveWhitespaces: false,
1774
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
1775
+ },] },
1776
+ ];
1777
+ /**
1778
+ * @nocollapse
1779
+ */
1780
+ MatOption.ctorParameters = function () { return [
1781
+ { type: _angular_core.ElementRef, },
1782
+ { type: _angular_core.ChangeDetectorRef, },
1783
+ { type: MatOptgroup, decorators: [{ type: _angular_core.Optional },] },
1784
+ ]; };
1785
+ MatOption.propDecorators = {
1786
+ 'value': [{ type: _angular_core.Input },],
1787
+ 'disabled': [{ type: _angular_core.Input },],
1788
+ 'onSelectionChange': [{ type: _angular_core.Output },],
1789
+ };
1790
+ return MatOption;
1791
+ }());
1792
+
1793
+ var MatOptionModule = (function () {
1794
+ function MatOptionModule() {
1795
+ }
1796
+ MatOptionModule.decorators = [
1797
+ { type: _angular_core.NgModule, args: [{
1798
+ imports: [MatRippleModule, _angular_common.CommonModule, MatPseudoCheckboxModule],
1799
+ exports: [MatOption, MatOptgroup],
1800
+ declarations: [MatOption, MatOptgroup]
1801
+ },] },
1802
+ ];
1803
+ /**
1804
+ * @nocollapse
1805
+ */
1806
+ MatOptionModule.ctorParameters = function () { return []; };
1807
+ return MatOptionModule;
1808
+ }());
1809
+
1810
+ /**
1811
+ * InjectionToken that can be used to specify the global placeholder options.
1812
+ */
1813
+ var MAT_PLACEHOLDER_GLOBAL_OPTIONS = new _angular_core.InjectionToken('mat-placeholder-global-options');
1814
+
1815
+ var nextUniqueId$1 = 0;
1816
+ /**
1817
+ * Single error message to be shown underneath the form field.
1818
+ */
1819
+ var MatError = (function () {
1820
+ function MatError() {
1821
+ this.id = "mat-error-" + nextUniqueId$1++;
1822
+ }
1823
+ MatError.decorators = [
1824
+ { type: _angular_core.Directive, args: [{
1825
+ selector: 'mat-error',
1826
+ host: {
1827
+ 'class': 'mat-error',
1828
+ 'role': 'alert',
1829
+ '[attr.id]': 'id',
1830
+ }
1831
+ },] },
1832
+ ];
1833
+ /**
1834
+ * @nocollapse
1835
+ */
1836
+ MatError.ctorParameters = function () { return []; };
1837
+ MatError.propDecorators = {
1838
+ 'id': [{ type: _angular_core.Input },],
1839
+ };
1840
+ return MatError;
1841
+ }());
1842
+
1843
+ /**
1844
+ * An interface which allows a control to work inside of a `MatFormField`.
1845
+ * @abstract
1846
+ */
1847
+ var MatFormFieldControl = (function () {
1848
+ function MatFormFieldControl() {
1849
+ }
1850
+ /**
1851
+ * Sets the list of element IDs that currently describe this control.
1852
+ * @abstract
1853
+ * @param {?} ids
1854
+ * @return {?}
1855
+ */
1856
+ MatFormFieldControl.prototype.setDescribedByIds = function (ids) { };
1857
+ /**
1858
+ * Handles a click on the control's container.
1859
+ * @abstract
1860
+ * @param {?} event
1861
+ * @return {?}
1862
+ */
1863
+ MatFormFieldControl.prototype.onContainerClick = function (event) { };
1864
+ return MatFormFieldControl;
1865
+ }());
1866
+
1867
+ /**
1868
+ * \@docs-private
1869
+ * @return {?}
1870
+ */
1871
+ function getMatFormFieldPlaceholderConflictError() {
1872
+ return Error('Placeholder attribute and child element were both specified.');
1873
+ }
1874
+ /**
1875
+ * \@docs-private
1876
+ * @param {?} align
1877
+ * @return {?}
1878
+ */
1879
+ function getMatFormFieldDuplicatedHintError(align) {
1880
+ return Error("A hint was already declared for 'align=\"" + align + "\"'.");
1881
+ }
1882
+ /**
1883
+ * \@docs-private
1884
+ * @return {?}
1885
+ */
1886
+ function getMatFormFieldMissingControlError() {
1887
+ return Error('mat-form-field must contain a MatFormFieldControl. ' +
1888
+ 'Did you forget to add matInput to the native input or textarea element?');
1889
+ }
1890
+
1891
+ var nextUniqueId$2 = 0;
1892
+ /**
1893
+ * Hint text to be shown underneath the form field control.
1894
+ */
1895
+ var MatHint = (function () {
1896
+ function MatHint() {
1897
+ /**
1898
+ * Whether to align the hint label at the start or end of the line.
1899
+ */
1900
+ this.align = 'start';
1901
+ /**
1902
+ * Unique ID for the hint. Used for the aria-describedby on the form field control.
1903
+ */
1904
+ this.id = "mat-hint-" + nextUniqueId$2++;
1905
+ }
1906
+ MatHint.decorators = [
1907
+ { type: _angular_core.Directive, args: [{
1908
+ selector: 'mat-hint',
1909
+ host: {
1910
+ 'class': 'mat-hint',
1911
+ '[class.mat-right]': 'align == "end"',
1912
+ '[attr.id]': 'id',
1913
+ // Remove align attribute to prevent it from interfering with layout.
1914
+ '[attr.align]': 'null',
1915
+ }
1916
+ },] },
1917
+ ];
1918
+ /**
1919
+ * @nocollapse
1920
+ */
1921
+ MatHint.ctorParameters = function () { return []; };
1922
+ MatHint.propDecorators = {
1923
+ 'align': [{ type: _angular_core.Input },],
1924
+ 'id': [{ type: _angular_core.Input },],
1925
+ };
1926
+ return MatHint;
1927
+ }());
1928
+
1929
+ /**
1930
+ * The floating placeholder for an `MatFormField`.
1931
+ */
1932
+ var MatPlaceholder = (function () {
1933
+ function MatPlaceholder() {
1934
+ }
1935
+ MatPlaceholder.decorators = [
1936
+ { type: _angular_core.Directive, args: [{
1937
+ selector: 'mat-placeholder'
1938
+ },] },
1939
+ ];
1940
+ /**
1941
+ * @nocollapse
1942
+ */
1943
+ MatPlaceholder.ctorParameters = function () { return []; };
1944
+ return MatPlaceholder;
1945
+ }());
1946
+
1947
+ /**
1948
+ * Prefix to be placed the the front of the form field.
1949
+ */
1950
+ var MatPrefix = (function () {
1951
+ function MatPrefix() {
1952
+ }
1953
+ MatPrefix.decorators = [
1954
+ { type: _angular_core.Directive, args: [{
1955
+ selector: '[matPrefix]',
1956
+ },] },
1957
+ ];
1958
+ /**
1959
+ * @nocollapse
1960
+ */
1961
+ MatPrefix.ctorParameters = function () { return []; };
1962
+ return MatPrefix;
1963
+ }());
1964
+
1965
+ /**
1966
+ * Suffix to be placed at the end of the form field.
1967
+ */
1968
+ var MatSuffix = (function () {
1969
+ function MatSuffix() {
1970
+ }
1971
+ MatSuffix.decorators = [
1972
+ { type: _angular_core.Directive, args: [{
1973
+ selector: '[matSuffix]',
1974
+ },] },
1975
+ ];
1976
+ /**
1977
+ * @nocollapse
1978
+ */
1979
+ MatSuffix.ctorParameters = function () { return []; };
1980
+ return MatSuffix;
1981
+ }());
1982
+
1983
+ var nextUniqueId$1$1 = 0;
1984
+ /**
1985
+ * Container for form controls that applies Material Design styling and behavior.
1986
+ */
1987
+ var MatFormField = (function () {
1988
+ /**
1989
+ * @param {?} _elementRef
1990
+ * @param {?} _renderer
1991
+ * @param {?} _changeDetectorRef
1992
+ * @param {?} placeholderOptions
1993
+ */
1994
+ function MatFormField(_elementRef, _renderer, _changeDetectorRef, placeholderOptions) {
1995
+ this._elementRef = _elementRef;
1996
+ this._renderer = _renderer;
1997
+ this._changeDetectorRef = _changeDetectorRef;
1998
+ /**
1999
+ * Color of the form field underline, based on the theme.
2000
+ */
2001
+ this.color = 'primary';
2002
+ /**
2003
+ * Override for the logic that disables the placeholder animation in certain cases.
2004
+ */
2005
+ this._showAlwaysAnimate = false;
2006
+ /**
2007
+ * State of the mat-hint and mat-error animations.
2008
+ */
2009
+ this._subscriptAnimationState = '';
2010
+ this._hintLabel = '';
2011
+ // Unique id for the hint label.
2012
+ this._hintLabelId = "mat-hint-" + nextUniqueId$1$1++;
2013
+ this._placeholderOptions = placeholderOptions ? placeholderOptions : {};
2014
+ this.floatPlaceholder = this._placeholderOptions.float || 'auto';
2015
+ }
2016
+ Object.defineProperty(MatFormField.prototype, "dividerColor", {
2017
+ /**
2018
+ * @deprecated Use `color` instead.
2019
+ * @return {?}
2020
+ */
2021
+ get: function () { return this.color; },
2022
+ /**
2023
+ * @param {?} value
2024
+ * @return {?}
2025
+ */
2026
+ set: function (value) { this.color = value; },
2027
+ enumerable: true,
2028
+ configurable: true
2029
+ });
2030
+ Object.defineProperty(MatFormField.prototype, "hideRequiredMarker", {
2031
+ /**
2032
+ * Whether the required marker should be hidden.
2033
+ * @return {?}
2034
+ */
2035
+ get: function () { return this._hideRequiredMarker; },
2036
+ /**
2037
+ * @param {?} value
2038
+ * @return {?}
2039
+ */
2040
+ set: function (value) {
2041
+ this._hideRequiredMarker = _angular_cdk_coercion.coerceBooleanProperty(value);
2042
+ },
2043
+ enumerable: true,
2044
+ configurable: true
2045
+ });
2046
+ Object.defineProperty(MatFormField.prototype, "_shouldAlwaysFloat", {
2047
+ /**
2048
+ * Whether the floating label should always float or not.
2049
+ * @return {?}
2050
+ */
2051
+ get: function () {
2052
+ return this._floatPlaceholder === 'always' && !this._showAlwaysAnimate;
2053
+ },
2054
+ enumerable: true,
2055
+ configurable: true
2056
+ });
2057
+ Object.defineProperty(MatFormField.prototype, "_canPlaceholderFloat", {
2058
+ /**
2059
+ * Whether the placeholder can float or not.
2060
+ * @return {?}
2061
+ */
2062
+ get: function () { return this._floatPlaceholder !== 'never'; },
2063
+ enumerable: true,
2064
+ configurable: true
2065
+ });
2066
+ Object.defineProperty(MatFormField.prototype, "hintLabel", {
2067
+ /**
2068
+ * Text for the form field hint.
2069
+ * @return {?}
2070
+ */
2071
+ get: function () { return this._hintLabel; },
2072
+ /**
2073
+ * @param {?} value
2074
+ * @return {?}
2075
+ */
2076
+ set: function (value) {
2077
+ this._hintLabel = value;
2078
+ this._processHints();
2079
+ },
2080
+ enumerable: true,
2081
+ configurable: true
2082
+ });
2083
+ Object.defineProperty(MatFormField.prototype, "floatPlaceholder", {
2084
+ /**
2085
+ * Whether the placeholder should always float, never float or float as the user types.
2086
+ * @return {?}
2087
+ */
2088
+ get: function () { return this._floatPlaceholder; },
2089
+ /**
2090
+ * @param {?} value
2091
+ * @return {?}
2092
+ */
2093
+ set: function (value) {
2094
+ if (value !== this._floatPlaceholder) {
2095
+ this._floatPlaceholder = value || this._placeholderOptions.float || 'auto';
2096
+ this._changeDetectorRef.markForCheck();
2097
+ }
2098
+ },
2099
+ enumerable: true,
2100
+ configurable: true
2101
+ });
2102
+ /**
2103
+ * @return {?}
2104
+ */
2105
+ MatFormField.prototype.ngAfterContentInit = function () {
2106
+ var _this = this;
2107
+ this._validateControlChild();
2108
+ if (this._control.controlType) {
2109
+ this._renderer.addClass(this._elementRef.nativeElement, "mat-form-field-type-" + this._control.controlType);
2110
+ }
2111
+ // Subscribe to changes in the child control state in order to update the form field UI.
2112
+ _angular_cdk_rxjs.startWith.call(this._control.stateChanges, null).subscribe(function () {
2113
+ _this._validatePlaceholders();
2114
+ _this._syncDescribedByIds();
2115
+ _this._changeDetectorRef.markForCheck();
2116
+ });
2117
+ var /** @type {?} */ ngControl = this._control.ngControl;
2118
+ if (ngControl && ngControl.valueChanges) {
2119
+ ngControl.valueChanges.subscribe(function () {
2120
+ _this._changeDetectorRef.markForCheck();
2121
+ });
2122
+ }
2123
+ // Re-validate when the number of hints changes.
2124
+ _angular_cdk_rxjs.startWith.call(this._hintChildren.changes, null).subscribe(function () {
2125
+ _this._processHints();
2126
+ _this._changeDetectorRef.markForCheck();
2127
+ });
2128
+ // Update the aria-described by when the number of errors changes.
2129
+ _angular_cdk_rxjs.startWith.call(this._errorChildren.changes, null).subscribe(function () {
2130
+ _this._syncDescribedByIds();
2131
+ _this._changeDetectorRef.markForCheck();
2132
+ });
2133
+ };
2134
+ /**
2135
+ * @return {?}
2136
+ */
2137
+ MatFormField.prototype.ngAfterContentChecked = function () {
2138
+ this._validateControlChild();
2139
+ };
2140
+ /**
2141
+ * @return {?}
2142
+ */
2143
+ MatFormField.prototype.ngAfterViewInit = function () {
2144
+ // Avoid animations on load.
2145
+ this._subscriptAnimationState = 'enter';
2146
+ this._changeDetectorRef.detectChanges();
2147
+ };
2148
+ /**
2149
+ * Determines whether a class from the NgControl should be forwarded to the host element.
2150
+ * @param {?} prop
2151
+ * @return {?}
2152
+ */
2153
+ MatFormField.prototype._shouldForward = function (prop) {
2154
+ var /** @type {?} */ ngControl = this._control ? this._control.ngControl : null;
2155
+ return ngControl && ((ngControl))[prop];
2156
+ };
2157
+ /**
2158
+ * Whether the form field has a placeholder.
2159
+ * @return {?}
2160
+ */
2161
+ MatFormField.prototype._hasPlaceholder = function () {
2162
+ return !!(this._control.placeholder || this._placeholderChild);
2163
+ };
2164
+ /**
2165
+ * Determines whether to display hints or errors.
2166
+ * @return {?}
2167
+ */
2168
+ MatFormField.prototype._getDisplayedMessages = function () {
2169
+ return (this._errorChildren && this._errorChildren.length > 0 &&
2170
+ this._control.errorState) ? 'error' : 'hint';
2171
+ };
2172
+ /**
2173
+ * Animates the placeholder up and locks it in position.
2174
+ * @return {?}
2175
+ */
2176
+ MatFormField.prototype._animateAndLockPlaceholder = function () {
2177
+ var _this = this;
2178
+ if (this._placeholder && this._canPlaceholderFloat) {
2179
+ this._showAlwaysAnimate = true;
2180
+ this._floatPlaceholder = 'always';
2181
+ _angular_cdk_rxjs.first.call(rxjs_observable_fromEvent.fromEvent(this._placeholder.nativeElement, 'transitionend')).subscribe(function () {
2182
+ _this._showAlwaysAnimate = false;
2183
+ });
2184
+ this._changeDetectorRef.markForCheck();
2185
+ }
2186
+ };
2187
+ /**
2188
+ * Ensure that there is only one placeholder (either `placeholder` attribute on the child control
2189
+ * or child element with the `mat-placeholder` directive).
2190
+ * @return {?}
2191
+ */
2192
+ MatFormField.prototype._validatePlaceholders = function () {
2193
+ if (this._control.placeholder && this._placeholderChild) {
2194
+ throw getMatFormFieldPlaceholderConflictError();
2195
+ }
2196
+ };
2197
+ /**
2198
+ * Does any extra processing that is required when handling the hints.
2199
+ * @return {?}
2200
+ */
2201
+ MatFormField.prototype._processHints = function () {
2202
+ this._validateHints();
2203
+ this._syncDescribedByIds();
2204
+ };
2205
+ /**
2206
+ * Ensure that there is a maximum of one of each `<mat-hint>` alignment specified, with the
2207
+ * attribute being considered as `align="start"`.
2208
+ * @return {?}
2209
+ */
2210
+ MatFormField.prototype._validateHints = function () {
2211
+ var _this = this;
2212
+ if (this._hintChildren) {
2213
+ var /** @type {?} */ startHint_1;
2214
+ var /** @type {?} */ endHint_1;
2215
+ this._hintChildren.forEach(function (hint) {
2216
+ if (hint.align == 'start') {
2217
+ if (startHint_1 || _this.hintLabel) {
2218
+ throw getMatFormFieldDuplicatedHintError('start');
2219
+ }
2220
+ startHint_1 = hint;
2221
+ }
2222
+ else if (hint.align == 'end') {
2223
+ if (endHint_1) {
2224
+ throw getMatFormFieldDuplicatedHintError('end');
2225
+ }
2226
+ endHint_1 = hint;
2227
+ }
2228
+ });
2229
+ }
2230
+ };
2231
+ /**
2232
+ * Sets the list of element IDs that describe the child control. This allows the control to update
2233
+ * its `aria-describedby` attribute accordingly.
2234
+ * @return {?}
2235
+ */
2236
+ MatFormField.prototype._syncDescribedByIds = function () {
2237
+ if (this._control) {
2238
+ var /** @type {?} */ ids = [];
2239
+ if (this._getDisplayedMessages() === 'hint') {
2240
+ var /** @type {?} */ startHint = this._hintChildren ?
2241
+ this._hintChildren.find(function (hint) { return hint.align === 'start'; }) : null;
2242
+ var /** @type {?} */ endHint = this._hintChildren ?
2243
+ this._hintChildren.find(function (hint) { return hint.align === 'end'; }) : null;
2244
+ if (startHint) {
2245
+ ids.push(startHint.id);
2246
+ }
2247
+ else if (this._hintLabel) {
2248
+ ids.push(this._hintLabelId);
2249
+ }
2250
+ if (endHint) {
2251
+ ids.push(endHint.id);
2252
+ }
2253
+ }
2254
+ else if (this._errorChildren) {
2255
+ ids = this._errorChildren.map(function (error) { return error.id; });
2256
+ }
2257
+ this._control.setDescribedByIds(ids);
2258
+ }
2259
+ };
2260
+ /**
2261
+ * Throws an error if the form field's control is missing.
2262
+ * @return {?}
2263
+ */
2264
+ MatFormField.prototype._validateControlChild = function () {
2265
+ if (!this._control) {
2266
+ throw getMatFormFieldMissingControlError();
2267
+ }
2268
+ };
2269
+ MatFormField.decorators = [
2270
+ { type: _angular_core.Component, args: [{// TODO(mmalerba): the input-container selectors and classes are deprecated and will be removed.
2271
+ selector: 'mat-input-container, mat-form-field',
2272
+ exportAs: 'matFormField',
2273
+ template: "<div class=\"mat-input-wrapper mat-form-field-wrapper\"><div class=\"mat-input-flex mat-form-field-flex\" #connectionContainer (click)=\"_control.onContainerClick && _control.onContainerClick($event)\"><div class=\"mat-input-prefix mat-form-field-prefix\" *ngIf=\"_prefixChildren.length\"><ng-content select=\"[matPrefix]\"></ng-content></div><div class=\"mat-input-infix mat-form-field-infix\"><ng-content></ng-content><span class=\"mat-input-placeholder-wrapper mat-form-field-placeholder-wrapper\"><label class=\"mat-input-placeholder mat-form-field-placeholder\" [attr.for]=\"_control.id\" [attr.aria-owns]=\"_control.id\" [class.mat-empty]=\"_control.empty && !_shouldAlwaysFloat\" [class.mat-form-field-empty]=\"_control.empty && !_shouldAlwaysFloat\" [class.mat-accent]=\"color == 'accent'\" [class.mat-warn]=\"color == 'warn'\" #placeholder *ngIf=\"_hasPlaceholder()\"><ng-content select=\"mat-placeholder\"></ng-content>{{_control.placeholder}} <span class=\"mat-placeholder-required mat-form-field-required-marker\" aria-hidden=\"true\" *ngIf=\"!hideRequiredMarker && _control.required\">*</span></label></span></div><div class=\"mat-input-suffix mat-form-field-suffix\" *ngIf=\"_suffixChildren.length\"><ng-content select=\"[matSuffix]\"></ng-content></div></div><div class=\"mat-input-underline mat-form-field-underline\" #underline [class.mat-disabled]=\"_control.disabled\"><span class=\"mat-input-ripple mat-form-field-ripple\" [class.mat-accent]=\"color == 'accent'\" [class.mat-warn]=\"color == 'warn'\"></span></div><div class=\"mat-input-subscript-wrapper mat-form-field-subscript-wrapper\" [ngSwitch]=\"_getDisplayedMessages()\"><div *ngSwitchCase=\"'error'\" [@transitionMessages]=\"_subscriptAnimationState\"><ng-content select=\"mat-error\"></ng-content></div><div class=\"mat-input-hint-wrapper mat-form-field-hint-wrapper\" *ngSwitchCase=\"'hint'\" [@transitionMessages]=\"_subscriptAnimationState\"><div *ngIf=\"hintLabel\" [id]=\"_hintLabelId\" class=\"mat-hint\">{{hintLabel}}</div><ng-content select=\"mat-hint:not([align='end'])\"></ng-content><div class=\"mat-input-hint-spacer mat-form-field-hint-spacer\"></div><ng-content select=\"mat-hint[align='end']\"></ng-content></div></div></div>",
2274
+ // MatInput is a directive and can't have styles, so we need to include its styles here.
2275
+ // The MatInput styles are fairly minimal so it shouldn't be a big deal for people who
2276
+ // aren't using MatInput.
2277
+ styles: [".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0}.mat-form-field-placeholder-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}.mat-form-field-placeholder{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform:perspective(100px);-ms-transform:none;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);display:none}[dir=rtl] .mat-form-field-placeholder{transform-origin:100% 0;left:auto;right:0}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-placeholder,.mat-form-field-empty.mat-form-field-placeholder{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:block;transition:none}.mat-form-field-placeholder:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;height:1px;width:100%}.mat-form-field-underline.mat-disabled{background-position:0;background-color:transparent}.mat-form-field-underline .mat-form-field-ripple{position:absolute;height:1px;top:0;left:0;width:100%;transform-origin:50%;transform:scaleX(.5);visibility:hidden;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-focused .mat-form-field-underline .mat-form-field-ripple{height:2px}.mat-focused .mat-form-field-underline .mat-form-field-ripple,.mat-form-field-invalid .mat-form-field-underline .mat-form-field-ripple{visibility:visible;transform:scaleX(1);transition:transform 150ms linear,background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-form-field-subscript-wrapper{position:absolute;width:100%;overflow:hidden}.mat-form-field-placeholder-wrapper .mat-icon,.mat-form-field-subscript-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block} .mat-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::placeholder{color:transparent!important}.mat-input-element::-moz-placeholder{color:transparent!important}.mat-input-element::-webkit-input-placeholder{color:transparent!important}.mat-input-element:-ms-input-placeholder{color:transparent!important}textarea.mat-input-element{resize:vertical;overflow:auto}"],
2278
+ animations: [
2279
+ // TODO(mmalerba): Use angular animations for placeholder animation as well.
2280
+ _angular_animations.trigger('transitionMessages', [
2281
+ _angular_animations.state('enter', _angular_animations.style({ opacity: 1, transform: 'translateY(0%)' })),
2282
+ _angular_animations.transition('void => enter', [
2283
+ _angular_animations.style({ opacity: 0, transform: 'translateY(-100%)' }),
2284
+ _angular_animations.animate('300ms cubic-bezier(0.55, 0, 0.55, 0.2)'),
2285
+ ]),
2286
+ ]),
2287
+ ],
2288
+ host: {
2289
+ 'class': 'mat-input-container mat-form-field',
2290
+ '[class.mat-input-invalid]': '_control.errorState',
2291
+ '[class.mat-form-field-invalid]': '_control.errorState',
2292
+ '[class.mat-form-field-can-float]': '_canPlaceholderFloat',
2293
+ '[class.mat-form-field-should-float]': '_control.shouldPlaceholderFloat || _shouldAlwaysFloat',
2294
+ '[class.mat-focused]': '_control.focused',
2295
+ '[class.mat-primary]': 'color == "primary"',
2296
+ '[class.mat-accent]': 'color == "accent"',
2297
+ '[class.mat-warn]': 'color == "warn"',
2298
+ '[class.ng-untouched]': '_shouldForward("untouched")',
2299
+ '[class.ng-touched]': '_shouldForward("touched")',
2300
+ '[class.ng-pristine]': '_shouldForward("pristine")',
2301
+ '[class.ng-dirty]': '_shouldForward("dirty")',
2302
+ '[class.ng-valid]': '_shouldForward("valid")',
2303
+ '[class.ng-invalid]': '_shouldForward("invalid")',
2304
+ '[class.ng-pending]': '_shouldForward("pending")',
2305
+ },
2306
+ encapsulation: _angular_core.ViewEncapsulation.None,
2307
+ preserveWhitespaces: false,
2308
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
2309
+ },] },
2310
+ ];
2311
+ /**
2312
+ * @nocollapse
2313
+ */
2314
+ MatFormField.ctorParameters = function () { return [
2315
+ { type: _angular_core.ElementRef, },
2316
+ { type: _angular_core.Renderer2, },
2317
+ { type: _angular_core.ChangeDetectorRef, },
2318
+ { type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [MAT_PLACEHOLDER_GLOBAL_OPTIONS,] },] },
2319
+ ]; };
2320
+ MatFormField.propDecorators = {
2321
+ 'color': [{ type: _angular_core.Input },],
2322
+ 'dividerColor': [{ type: _angular_core.Input },],
2323
+ 'hideRequiredMarker': [{ type: _angular_core.Input },],
2324
+ 'hintLabel': [{ type: _angular_core.Input },],
2325
+ 'floatPlaceholder': [{ type: _angular_core.Input },],
2326
+ 'underlineRef': [{ type: _angular_core.ViewChild, args: ['underline',] },],
2327
+ '_connectionContainerRef': [{ type: _angular_core.ViewChild, args: ['connectionContainer',] },],
2328
+ '_placeholder': [{ type: _angular_core.ViewChild, args: ['placeholder',] },],
2329
+ '_control': [{ type: _angular_core.ContentChild, args: [MatFormFieldControl,] },],
2330
+ '_placeholderChild': [{ type: _angular_core.ContentChild, args: [MatPlaceholder,] },],
2331
+ '_errorChildren': [{ type: _angular_core.ContentChildren, args: [MatError,] },],
2332
+ '_hintChildren': [{ type: _angular_core.ContentChildren, args: [MatHint,] },],
2333
+ '_prefixChildren': [{ type: _angular_core.ContentChildren, args: [MatPrefix,] },],
2334
+ '_suffixChildren': [{ type: _angular_core.ContentChildren, args: [MatSuffix,] },],
2335
+ };
2336
+ return MatFormField;
2337
+ }());
2338
+
2339
+ var MatFormFieldModule = (function () {
2340
+ function MatFormFieldModule() {
2341
+ }
2342
+ MatFormFieldModule.decorators = [
2343
+ { type: _angular_core.NgModule, args: [{
2344
+ declarations: [
2345
+ MatError,
2346
+ MatHint,
2347
+ MatFormField,
2348
+ MatPlaceholder,
2349
+ MatPrefix,
2350
+ MatSuffix,
2351
+ ],
2352
+ imports: [
2353
+ _angular_common.CommonModule,
2354
+ _angular_cdk_platform.PlatformModule,
2355
+ ],
2356
+ exports: [
2357
+ MatError,
2358
+ MatHint,
2359
+ MatFormField,
2360
+ MatPlaceholder,
2361
+ MatPrefix,
2362
+ MatSuffix,
2363
+ ],
2364
+ },] },
2365
+ ];
2366
+ /**
2367
+ * @nocollapse
2368
+ */
2369
+ MatFormFieldModule.ctorParameters = function () { return []; };
2370
+ return MatFormFieldModule;
2371
+ }());
2372
+
2373
+ /**
2374
+ * This animation transforms the select's overlay panel on and off the page.
2375
+ *
2376
+ * When the panel is attached to the DOM, it expands its width by the amount of padding, scales it
2377
+ * up to 100% on the Y axis, fades in its border, and translates slightly up and to the
2378
+ * side to ensure the option text correctly overlaps the trigger text.
2379
+ *
2380
+ * When the panel is removed from the DOM, it simply fades out linearly.
2381
+ */
2382
+ var transformPanel = _angular_animations.trigger('transformPanel', [
2383
+ _angular_animations.state('showing', _angular_animations.style({
2384
+ opacity: 1,
2385
+ minWidth: 'calc(100% + 32px)',
2386
+ transform: 'scaleY(1)'
2387
+ })),
2388
+ _angular_animations.state('showing-multiple', _angular_animations.style({
2389
+ opacity: 1,
2390
+ minWidth: 'calc(100% + 64px)',
2391
+ transform: 'scaleY(1)'
2392
+ })),
2393
+ _angular_animations.transition('void => *', [
2394
+ _angular_animations.style({
2395
+ opacity: 0,
2396
+ minWidth: '100%',
2397
+ transform: 'scaleY(0)'
2398
+ }),
2399
+ _angular_animations.animate('150ms cubic-bezier(0.25, 0.8, 0.25, 1)')
2400
+ ]),
2401
+ _angular_animations.transition('* => void', [
2402
+ _angular_animations.animate('250ms 100ms linear', _angular_animations.style({ opacity: 0 }))
2403
+ ])
2404
+ ]);
2405
+ /**
2406
+ * This animation fades in the background color and text content of the
2407
+ * select's options. It is time delayed to occur 100ms after the overlay
2408
+ * panel has transformed in.
2409
+ */
2410
+ var fadeInContent = _angular_animations.trigger('fadeInContent', [
2411
+ _angular_animations.state('showing', _angular_animations.style({ opacity: 1 })),
2412
+ _angular_animations.transition('void => showing', [
2413
+ _angular_animations.style({ opacity: 0 }),
2414
+ _angular_animations.animate('150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)')
2415
+ ])
2416
+ ]);
2417
+
2418
+ /**
2419
+ * Returns an exception to be thrown when attempting to change a select's `multiple` option
2420
+ * after initialization.
2421
+ * \@docs-private
2422
+ * @return {?}
2423
+ */
2424
+ function getMatSelectDynamicMultipleError() {
2425
+ return Error('Cannot change `multiple` mode of select after initialization.');
2426
+ }
2427
+ /**
2428
+ * Returns an exception to be thrown when attempting to assign a non-array value to a select
2429
+ * in `multiple` mode. Note that `undefined` and `null` are still valid values to allow for
2430
+ * resetting the value.
2431
+ * \@docs-private
2432
+ * @return {?}
2433
+ */
2434
+ function getMatSelectNonArrayValueError() {
2435
+ return Error('Cannot assign truthy non-array value to select in `multiple` mode.');
2436
+ }
2437
+ /**
2438
+ * Returns an exception to be thrown when assigning a non-function value to the comparator
2439
+ * used to determine if a value corresponds to an option. Note that whether the function
2440
+ * actually takes two values and returns a boolean is not checked.
2441
+ * @return {?}
2442
+ */
2443
+ function getMatSelectNonFunctionValueError() {
2444
+ return Error('Cannot assign a non-function value to `compareWith`.');
2445
+ }
2446
+
2447
+ var nextUniqueId = 0;
2448
+ /**
2449
+ * The max height of the select's overlay panel
2450
+ */
2451
+ var SELECT_PANEL_MAX_HEIGHT = 256;
2452
+ /**
2453
+ * The panel's padding on the x-axis
2454
+ */
2455
+ var SELECT_PANEL_PADDING_X = 16;
2456
+ /**
2457
+ * The panel's x axis padding if it is indented (e.g. there is an option group).
2458
+ */
2459
+ var SELECT_PANEL_INDENT_PADDING_X = SELECT_PANEL_PADDING_X * 2;
2460
+ /**
2461
+ * The height of the select items in `em` units.
2462
+ */
2463
+ var SELECT_ITEM_HEIGHT_EM = 3;
2464
+ /**
2465
+ * Distance between the panel edge and the option text in
2466
+ * multi-selection mode.
2467
+ *
2468
+ * (SELECT_PANEL_PADDING_X * 1.5) + 20 = 44
2469
+ * The padding is multiplied by 1.5 because the checkbox's margin is half the padding.
2470
+ * The checkbox width is 20px.
2471
+ */
2472
+ var SELECT_MULTIPLE_PANEL_PADDING_X = SELECT_PANEL_PADDING_X * 1.5 + 20;
2473
+ /**
2474
+ * The select panel will only "fit" inside the viewport if it is positioned at
2475
+ * this value or more away from the viewport boundary.
2476
+ */
2477
+ var SELECT_PANEL_VIEWPORT_PADDING = 8;
2478
+ /**
2479
+ * Injection token that determines the scroll handling while a select is open.
2480
+ */
2481
+ var MAT_SELECT_SCROLL_STRATEGY = new _angular_core.InjectionToken('mat-select-scroll-strategy');
2482
+ /**
2483
+ * \@docs-private
2484
+ * @param {?} overlay
2485
+ * @return {?}
2486
+ */
2487
+ function MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
2488
+ return function () { return overlay.scrollStrategies.reposition(); };
2489
+ }
2490
+ /**
2491
+ * \@docs-private
2492
+ */
2493
+ var MAT_SELECT_SCROLL_STRATEGY_PROVIDER = {
2494
+ provide: MAT_SELECT_SCROLL_STRATEGY,
2495
+ deps: [_angular_cdk_overlay.Overlay],
2496
+ useFactory: MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY,
2497
+ };
2498
+ /**
2499
+ * Change event object that is emitted when the select value has changed.
2500
+ */
2501
+ var MatSelectChange = (function () {
2502
+ /**
2503
+ * @param {?} source
2504
+ * @param {?} value
2505
+ */
2506
+ function MatSelectChange(source, value) {
2507
+ this.source = source;
2508
+ this.value = value;
2509
+ }
2510
+ return MatSelectChange;
2511
+ }());
2512
+ /**
2513
+ * \@docs-private
2514
+ */
2515
+ var MatSelectBase = (function () {
2516
+ /**
2517
+ * @param {?} _renderer
2518
+ * @param {?} _elementRef
2519
+ */
2520
+ function MatSelectBase(_renderer, _elementRef) {
2521
+ this._renderer = _renderer;
2522
+ this._elementRef = _elementRef;
2523
+ }
2524
+ return MatSelectBase;
2525
+ }());
2526
+ var _MatSelectMixinBase = mixinTabIndex(mixinDisabled(MatSelectBase));
2527
+ /**
2528
+ * Allows the user to customize the trigger that is displayed when the select has a value.
2529
+ */
2530
+ var MatSelectTrigger = (function () {
2531
+ function MatSelectTrigger() {
2532
+ }
2533
+ MatSelectTrigger.decorators = [
2534
+ { type: _angular_core.Directive, args: [{
2535
+ selector: 'mat-select-trigger'
2536
+ },] },
2537
+ ];
2538
+ /**
2539
+ * @nocollapse
2540
+ */
2541
+ MatSelectTrigger.ctorParameters = function () { return []; };
2542
+ return MatSelectTrigger;
2543
+ }());
2544
+ var MatSelect = (function (_super) {
2545
+ __extends(MatSelect, _super);
2546
+ /**
2547
+ * @param {?} _viewportRuler
2548
+ * @param {?} _changeDetectorRef
2549
+ * @param {?} _ngZone
2550
+ * @param {?} _defaultErrorStateMatcher
2551
+ * @param {?} renderer
2552
+ * @param {?} elementRef
2553
+ * @param {?} _dir
2554
+ * @param {?} _parentForm
2555
+ * @param {?} _parentFormGroup
2556
+ * @param {?} _parentFormField
2557
+ * @param {?} ngControl
2558
+ * @param {?} tabIndex
2559
+ * @param {?} _scrollStrategyFactory
2560
+ */
2561
+ function MatSelect(_viewportRuler, _changeDetectorRef, _ngZone, _defaultErrorStateMatcher, renderer, elementRef, _dir, _parentForm, _parentFormGroup, _parentFormField, ngControl, tabIndex, _scrollStrategyFactory) {
2562
+ var _this = _super.call(this, renderer, elementRef) || this;
2563
+ _this._viewportRuler = _viewportRuler;
2564
+ _this._changeDetectorRef = _changeDetectorRef;
2565
+ _this._ngZone = _ngZone;
2566
+ _this._defaultErrorStateMatcher = _defaultErrorStateMatcher;
2567
+ _this._dir = _dir;
2568
+ _this._parentForm = _parentForm;
2569
+ _this._parentFormGroup = _parentFormGroup;
2570
+ _this._parentFormField = _parentFormField;
2571
+ _this.ngControl = ngControl;
2572
+ _this._scrollStrategyFactory = _scrollStrategyFactory;
2573
+ /**
2574
+ * Whether or not the overlay panel is open.
2575
+ */
2576
+ _this._panelOpen = false;
2577
+ /**
2578
+ * Subscriptions to option events.
2579
+ */
2580
+ _this._optionSubscription = rxjs_Subscription.Subscription.EMPTY;
2581
+ /**
2582
+ * Subscription to changes in the option list.
2583
+ */
2584
+ _this._changeSubscription = rxjs_Subscription.Subscription.EMPTY;
2585
+ /**
2586
+ * Subscription to tab events while overlay is focused.
2587
+ */
2588
+ _this._tabSubscription = rxjs_Subscription.Subscription.EMPTY;
2589
+ /**
2590
+ * Whether filling out the select is required in the form.
2591
+ */
2592
+ _this._required = false;
2593
+ /**
2594
+ * The scroll position of the overlay panel, calculated to center the selected option.
2595
+ */
2596
+ _this._scrollTop = 0;
2597
+ /**
2598
+ * Whether the component is in multiple selection mode.
2599
+ */
2600
+ _this._multiple = false;
2601
+ /**
2602
+ * Comparison function to specify which option is displayed. Defaults to object equality.
2603
+ */
2604
+ _this._compareWith = function (o1, o2) { return o1 === o2; };
2605
+ /**
2606
+ * Unique id for this input.
2607
+ */
2608
+ _this._uid = "mat-select-" + nextUniqueId++;
2609
+ /**
2610
+ * The cached font-size of the trigger element.
2611
+ */
2612
+ _this._triggerFontSize = 0;
2613
+ /**
2614
+ * View -> model callback called when value changes
2615
+ */
2616
+ _this._onChange = function () { };
2617
+ /**
2618
+ * View -> model callback called when select has been touched
2619
+ */
2620
+ _this._onTouched = function () { };
2621
+ /**
2622
+ * The IDs of child options to be passed to the aria-owns attribute.
2623
+ */
2624
+ _this._optionIds = '';
2625
+ /**
2626
+ * The value of the select panel's transform-origin property.
2627
+ */
2628
+ _this._transformOrigin = 'top';
2629
+ /**
2630
+ * Whether the panel's animation is done.
2631
+ */
2632
+ _this._panelDoneAnimating = false;
2633
+ /**
2634
+ * Strategy that will be used to handle scrolling while the select panel is open.
2635
+ */
2636
+ _this._scrollStrategy = _this._scrollStrategyFactory();
2637
+ /**
2638
+ * The y-offset of the overlay panel in relation to the trigger's top start corner.
2639
+ * This must be adjusted to align the selected option text over the trigger text.
2640
+ * when the panel opens. Will change based on the y-position of the selected option.
2641
+ */
2642
+ _this._offsetY = 0;
2643
+ /**
2644
+ * This position config ensures that the top "start" corner of the overlay
2645
+ * is aligned with with the top "start" of the origin by default (overlapping
2646
+ * the trigger completely). If the panel cannot fit below the trigger, it
2647
+ * will fall back to a position above the trigger.
2648
+ */
2649
+ _this._positions = [
2650
+ {
2651
+ originX: 'start',
2652
+ originY: 'top',
2653
+ overlayX: 'start',
2654
+ overlayY: 'top',
2655
+ },
2656
+ {
2657
+ originX: 'start',
2658
+ originY: 'bottom',
2659
+ overlayX: 'start',
2660
+ overlayY: 'bottom',
2661
+ },
2662
+ ];
2663
+ /**
2664
+ * Stream that emits whenever the state of the select changes such that the wrapping
2665
+ * `MatFormField` needs to run change detection.
2666
+ */
2667
+ _this.stateChanges = new rxjs_Subject.Subject();
2668
+ /**
2669
+ * Whether the select is focused.
2670
+ */
2671
+ _this.focused = false;
2672
+ /**
2673
+ * A name for this control that can be used by `mat-form-field`.
2674
+ */
2675
+ _this.controlType = 'mat-select';
2676
+ _this._disableRipple = false;
2677
+ /**
2678
+ * Aria label of the select. If not specified, the placeholder will be used as label.
2679
+ */
2680
+ _this.ariaLabel = '';
2681
+ /**
2682
+ * Event emitted when the select has been opened.
2683
+ */
2684
+ _this.onOpen = new _angular_core.EventEmitter();
2685
+ /**
2686
+ * Event emitted when the select has been closed.
2687
+ */
2688
+ _this.onClose = new _angular_core.EventEmitter();
2689
+ /**
2690
+ * Event emitted when the selected value has been changed by the user.
2691
+ */
2692
+ _this.change = new _angular_core.EventEmitter();
2693
+ /**
2694
+ * Event that emits whenever the raw value of the select changes. This is here primarily
2695
+ * to facilitate the two-way binding for the `value` input.
2696
+ * \@docs-private
2697
+ */
2698
+ _this.valueChange = new _angular_core.EventEmitter();
2699
+ if (_this.ngControl) {
2700
+ _this.ngControl.valueAccessor = _this;
2701
+ }
2702
+ _this.tabIndex = parseInt(tabIndex) || 0;
2703
+ // Force setter to be called in case id was not specified.
2704
+ _this.id = _this.id;
2705
+ return _this;
2706
+ }
2707
+ Object.defineProperty(MatSelect.prototype, "placeholder", {
2708
+ /**
2709
+ * Placeholder to be shown if no value has been selected.
2710
+ * @return {?}
2711
+ */
2712
+ get: function () { return this._placeholder; },
2713
+ /**
2714
+ * @param {?} value
2715
+ * @return {?}
2716
+ */
2717
+ set: function (value) {
2718
+ this._placeholder = value;
2719
+ this.stateChanges.next();
2720
+ },
2721
+ enumerable: true,
2722
+ configurable: true
2723
+ });
2724
+ Object.defineProperty(MatSelect.prototype, "required", {
2725
+ /**
2726
+ * Whether the component is required.
2727
+ * @return {?}
2728
+ */
2729
+ get: function () { return this._required; },
2730
+ /**
2731
+ * @param {?} value
2732
+ * @return {?}
2733
+ */
2734
+ set: function (value) {
2735
+ this._required = _angular_cdk_coercion.coerceBooleanProperty(value);
2736
+ this.stateChanges.next();
2737
+ },
2738
+ enumerable: true,
2739
+ configurable: true
2740
+ });
2741
+ Object.defineProperty(MatSelect.prototype, "multiple", {
2742
+ /**
2743
+ * Whether the user should be allowed to select multiple options.
2744
+ * @return {?}
2745
+ */
2746
+ get: function () { return this._multiple; },
2747
+ /**
2748
+ * @param {?} value
2749
+ * @return {?}
2750
+ */
2751
+ set: function (value) {
2752
+ if (this._selectionModel) {
2753
+ throw getMatSelectDynamicMultipleError();
2754
+ }
2755
+ this._multiple = _angular_cdk_coercion.coerceBooleanProperty(value);
2756
+ },
2757
+ enumerable: true,
2758
+ configurable: true
2759
+ });
2760
+ Object.defineProperty(MatSelect.prototype, "compareWith", {
2761
+ /**
2762
+ * A function to compare the option values with the selected values. The first argument
2763
+ * is a value from an option. The second is a value from the selection. A boolean
2764
+ * should be returned.
2765
+ * @return {?}
2766
+ */
2767
+ get: function () { return this._compareWith; },
2768
+ /**
2769
+ * @param {?} fn
2770
+ * @return {?}
2771
+ */
2772
+ set: function (fn) {
2773
+ if (typeof fn !== 'function') {
2774
+ throw getMatSelectNonFunctionValueError();
2775
+ }
2776
+ this._compareWith = fn;
2777
+ if (this._selectionModel) {
2778
+ // A different comparator means the selection could change.
2779
+ this._initializeSelection();
2780
+ }
2781
+ },
2782
+ enumerable: true,
2783
+ configurable: true
2784
+ });
2785
+ Object.defineProperty(MatSelect.prototype, "value", {
2786
+ /**
2787
+ * Value of the select control.
2788
+ * @return {?}
2789
+ */
2790
+ get: function () { return this._value; },
2791
+ /**
2792
+ * @param {?} newValue
2793
+ * @return {?}
2794
+ */
2795
+ set: function (newValue) {
2796
+ if (newValue !== this._value) {
2797
+ this.writeValue(newValue);
2798
+ this._value = newValue;
2799
+ }
2800
+ },
2801
+ enumerable: true,
2802
+ configurable: true
2803
+ });
2804
+ Object.defineProperty(MatSelect.prototype, "disableRipple", {
2805
+ /**
2806
+ * Whether ripples for all options in the select are disabled.
2807
+ * @return {?}
2808
+ */
2809
+ get: function () { return this._disableRipple; },
2810
+ /**
2811
+ * @param {?} value
2812
+ * @return {?}
2813
+ */
2814
+ set: function (value) {
2815
+ this._disableRipple = _angular_cdk_coercion.coerceBooleanProperty(value);
2816
+ this._setOptionDisableRipple();
2817
+ },
2818
+ enumerable: true,
2819
+ configurable: true
2820
+ });
2821
+ Object.defineProperty(MatSelect.prototype, "id", {
2822
+ /**
2823
+ * Unique id of the element.
2824
+ * @return {?}
2825
+ */
2826
+ get: function () { return this._id; },
2827
+ /**
2828
+ * @param {?} value
2829
+ * @return {?}
2830
+ */
2831
+ set: function (value) {
2832
+ this._id = value || this._uid;
2833
+ this.stateChanges.next();
2834
+ },
2835
+ enumerable: true,
2836
+ configurable: true
2837
+ });
2838
+ Object.defineProperty(MatSelect.prototype, "optionSelectionChanges", {
2839
+ /**
2840
+ * Combined stream of all of the child options' change events.
2841
+ * @return {?}
2842
+ */
2843
+ get: function () {
2844
+ return rxjs_observable_merge.merge.apply(void 0, this.options.map(function (option) { return option.onSelectionChange; }));
2845
+ },
2846
+ enumerable: true,
2847
+ configurable: true
2848
+ });
2849
+ /**
2850
+ * @return {?}
2851
+ */
2852
+ MatSelect.prototype.ngOnInit = function () {
2853
+ this._selectionModel = new _angular_cdk_collections.SelectionModel(this.multiple, undefined, false);
2854
+ this.stateChanges.next();
2855
+ };
2856
+ /**
2857
+ * @return {?}
2858
+ */
2859
+ MatSelect.prototype.ngAfterContentInit = function () {
2860
+ var _this = this;
2861
+ this._initKeyManager();
2862
+ this._changeSubscription = _angular_cdk_rxjs.startWith.call(this.options.changes, null).subscribe(function () {
2863
+ _this._resetOptions();
2864
+ _this._initializeSelection();
2865
+ });
2866
+ };
2867
+ /**
2868
+ * @return {?}
2869
+ */
2870
+ MatSelect.prototype.ngOnDestroy = function () {
2871
+ this._dropSubscriptions();
2872
+ this._changeSubscription.unsubscribe();
2873
+ this._tabSubscription.unsubscribe();
2874
+ };
2875
+ /**
2876
+ * Toggles the overlay panel open or closed.
2877
+ * @return {?}
2878
+ */
2879
+ MatSelect.prototype.toggle = function () {
2880
+ this.panelOpen ? this.close() : this.open();
2881
+ };
2882
+ /**
2883
+ * Opens the overlay panel.
2884
+ * @return {?}
2885
+ */
2886
+ MatSelect.prototype.open = function () {
2887
+ var _this = this;
2888
+ if (this.disabled || !this.options.length) {
2889
+ return;
2890
+ }
2891
+ this._triggerRect = this.trigger.nativeElement.getBoundingClientRect();
2892
+ // Note: The computed font-size will be a string pixel value (e.g. "16px").
2893
+ // `parseInt` ignores the trailing 'px' and converts this to a number.
2894
+ this._triggerFontSize = parseInt(getComputedStyle(this.trigger.nativeElement)['font-size']);
2895
+ this._calculateOverlayPosition();
2896
+ this._highlightCorrectOption();
2897
+ this._panelOpen = true;
2898
+ this._changeDetectorRef.markForCheck();
2899
+ // Set the font size on the panel element once it exists.
2900
+ _angular_cdk_rxjs.first.call(this._ngZone.onStable).subscribe(function () {
2901
+ if (_this._triggerFontSize && _this.overlayDir.overlayRef &&
2902
+ _this.overlayDir.overlayRef.overlayElement) {
2903
+ _this.overlayDir.overlayRef.overlayElement.style.fontSize = _this._triggerFontSize + "px";
2904
+ }
2905
+ });
2906
+ };
2907
+ /**
2908
+ * Closes the overlay panel and focuses the host element.
2909
+ * @return {?}
2910
+ */
2911
+ MatSelect.prototype.close = function () {
2912
+ if (this._panelOpen) {
2913
+ this._panelOpen = false;
2914
+ this._changeDetectorRef.markForCheck();
2915
+ this.focus();
2916
+ }
2917
+ };
2918
+ /**
2919
+ * Sets the select's value. Part of the ControlValueAccessor interface
2920
+ * required to integrate with Angular's core forms API.
2921
+ *
2922
+ * @param {?} value New value to be written to the model.
2923
+ * @return {?}
2924
+ */
2925
+ MatSelect.prototype.writeValue = function (value) {
2926
+ if (this.options) {
2927
+ this._setSelectionByValue(value);
2928
+ }
2929
+ };
2930
+ /**
2931
+ * Saves a callback function to be invoked when the select's value
2932
+ * changes from user input. Part of the ControlValueAccessor interface
2933
+ * required to integrate with Angular's core forms API.
2934
+ *
2935
+ * @param {?} fn Callback to be triggered when the value changes.
2936
+ * @return {?}
2937
+ */
2938
+ MatSelect.prototype.registerOnChange = function (fn) {
2939
+ this._onChange = fn;
2940
+ };
2941
+ /**
2942
+ * Saves a callback function to be invoked when the select is blurred
2943
+ * by the user. Part of the ControlValueAccessor interface required
2944
+ * to integrate with Angular's core forms API.
2945
+ *
2946
+ * @param {?} fn Callback to be triggered when the component has been touched.
2947
+ * @return {?}
2948
+ */
2949
+ MatSelect.prototype.registerOnTouched = function (fn) {
2950
+ this._onTouched = fn;
2951
+ };
2952
+ /**
2953
+ * Disables the select. Part of the ControlValueAccessor interface required
2954
+ * to integrate with Angular's core forms API.
2955
+ *
2956
+ * @param {?} isDisabled Sets whether the component is disabled.
2957
+ * @return {?}
2958
+ */
2959
+ MatSelect.prototype.setDisabledState = function (isDisabled) {
2960
+ this.disabled = isDisabled;
2961
+ this._changeDetectorRef.markForCheck();
2962
+ this.stateChanges.next();
2963
+ };
2964
+ Object.defineProperty(MatSelect.prototype, "panelOpen", {
2965
+ /**
2966
+ * Whether or not the overlay panel is open.
2967
+ * @return {?}
2968
+ */
2969
+ get: function () {
2970
+ return this._panelOpen;
2971
+ },
2972
+ enumerable: true,
2973
+ configurable: true
2974
+ });
2975
+ Object.defineProperty(MatSelect.prototype, "selected", {
2976
+ /**
2977
+ * The currently selected option.
2978
+ * @return {?}
2979
+ */
2980
+ get: function () {
2981
+ return this.multiple ? this._selectionModel.selected : this._selectionModel.selected[0];
2982
+ },
2983
+ enumerable: true,
2984
+ configurable: true
2985
+ });
2986
+ Object.defineProperty(MatSelect.prototype, "triggerValue", {
2987
+ /**
2988
+ * The value displayed in the trigger.
2989
+ * @return {?}
2990
+ */
2991
+ get: function () {
2992
+ if (!this._selectionModel || this._selectionModel.isEmpty()) {
2993
+ return '';
2994
+ }
2995
+ if (this._multiple) {
2996
+ var /** @type {?} */ selectedOptions = this._selectionModel.selected.map(function (option) { return option.viewValue; });
2997
+ if (this._isRtl()) {
2998
+ selectedOptions.reverse();
2999
+ }
3000
+ // TODO(crisbeto): delimiter should be configurable for proper localization.
3001
+ return selectedOptions.join(', ');
3002
+ }
3003
+ return this._selectionModel.selected[0].viewValue;
3004
+ },
3005
+ enumerable: true,
3006
+ configurable: true
3007
+ });
3008
+ /**
3009
+ * Whether the element is in RTL mode.
3010
+ * @return {?}
3011
+ */
3012
+ MatSelect.prototype._isRtl = function () {
3013
+ return this._dir ? this._dir.value === 'rtl' : false;
3014
+ };
3015
+ /**
3016
+ * Handles all keydown events on the select.
3017
+ * @param {?} event
3018
+ * @return {?}
3019
+ */
3020
+ MatSelect.prototype._handleKeydown = function (event) {
3021
+ if (!this.disabled) {
3022
+ this.panelOpen ? this._handleOpenKeydown(event) : this._handleClosedKeydown(event);
3023
+ }
3024
+ };
3025
+ /**
3026
+ * Handles keyboard events while the select is closed.
3027
+ * @param {?} event
3028
+ * @return {?}
3029
+ */
3030
+ MatSelect.prototype._handleClosedKeydown = function (event) {
3031
+ if (event.keyCode === _angular_cdk_keycodes.ENTER || event.keyCode === _angular_cdk_keycodes.SPACE) {
3032
+ event.preventDefault(); // prevents the page from scrolling down when pressing space
3033
+ this.open();
3034
+ }
3035
+ else if (event.keyCode === _angular_cdk_keycodes.UP_ARROW || event.keyCode === _angular_cdk_keycodes.DOWN_ARROW) {
3036
+ this._handleClosedArrowKey(event);
3037
+ }
3038
+ };
3039
+ /**
3040
+ * Handles keyboard events when the selected is open.
3041
+ * @param {?} event
3042
+ * @return {?}
3043
+ */
3044
+ MatSelect.prototype._handleOpenKeydown = function (event) {
3045
+ var _this = this;
3046
+ var /** @type {?} */ keyCode = event.keyCode;
3047
+ if (keyCode === _angular_cdk_keycodes.HOME || keyCode === _angular_cdk_keycodes.END) {
3048
+ event.preventDefault();
3049
+ keyCode === _angular_cdk_keycodes.HOME ? this._keyManager.setFirstItemActive() :
3050
+ this._keyManager.setLastItemActive();
3051
+ }
3052
+ else if ((keyCode === _angular_cdk_keycodes.ENTER || keyCode === _angular_cdk_keycodes.SPACE) && this._keyManager.activeItem) {
3053
+ event.preventDefault();
3054
+ this._keyManager.activeItem._selectViaInteraction();
3055
+ }
3056
+ else {
3057
+ this._keyManager.onKeydown(event);
3058
+ // TODO(crisbeto): get rid of the Promise.resolve when #6441 gets in.
3059
+ Promise.resolve().then(function () {
3060
+ if (_this.panelOpen) {
3061
+ _this._scrollActiveOptionIntoView();
3062
+ }
3063
+ });
3064
+ }
3065
+ };
3066
+ /**
3067
+ * When the panel element is finished transforming in (though not fading in), it
3068
+ * emits an event and focuses an option if the panel is open.
3069
+ * @return {?}
3070
+ */
3071
+ MatSelect.prototype._onPanelDone = function () {
3072
+ if (this.panelOpen) {
3073
+ this._scrollTop = 0;
3074
+ this.onOpen.emit();
3075
+ }
3076
+ else {
3077
+ this.onClose.emit();
3078
+ this._panelDoneAnimating = false;
3079
+ this.overlayDir.offsetX = 0;
3080
+ this._changeDetectorRef.markForCheck();
3081
+ }
3082
+ };
3083
+ /**
3084
+ * When the panel content is done fading in, the _panelDoneAnimating property is
3085
+ * set so the proper class can be added to the panel.
3086
+ * @return {?}
3087
+ */
3088
+ MatSelect.prototype._onFadeInDone = function () {
3089
+ this._panelDoneAnimating = this.panelOpen;
3090
+ this.panel.nativeElement.focus();
3091
+ this._changeDetectorRef.markForCheck();
3092
+ };
3093
+ /**
3094
+ * @return {?}
3095
+ */
3096
+ MatSelect.prototype._onFocus = function () {
3097
+ if (!this.disabled) {
3098
+ this.focused = true;
3099
+ this.stateChanges.next();
3100
+ }
3101
+ };
3102
+ /**
3103
+ * Calls the touched callback only if the panel is closed. Otherwise, the trigger will
3104
+ * "blur" to the panel when it opens, causing a false positive.
3105
+ * @return {?}
3106
+ */
3107
+ MatSelect.prototype._onBlur = function () {
3108
+ if (!this.disabled && !this.panelOpen) {
3109
+ this.focused = false;
3110
+ this._onTouched();
3111
+ this._changeDetectorRef.markForCheck();
3112
+ this.stateChanges.next();
3113
+ }
3114
+ };
3115
+ /**
3116
+ * Callback that is invoked when the overlay panel has been attached.
3117
+ * @return {?}
3118
+ */
3119
+ MatSelect.prototype._onAttached = function () {
3120
+ this._changeDetectorRef.detectChanges();
3121
+ this._calculateOverlayOffsetX();
3122
+ this.panel.nativeElement.scrollTop = this._scrollTop;
3123
+ };
3124
+ /**
3125
+ * Returns the theme to be used on the panel.
3126
+ * @return {?}
3127
+ */
3128
+ MatSelect.prototype._getPanelTheme = function () {
3129
+ return this._parentFormField ? "mat-" + this._parentFormField.color : '';
3130
+ };
3131
+ Object.defineProperty(MatSelect.prototype, "empty", {
3132
+ /**
3133
+ * Whether the select has a value.
3134
+ * @return {?}
3135
+ */
3136
+ get: function () {
3137
+ return !this._selectionModel || this._selectionModel.isEmpty();
3138
+ },
3139
+ enumerable: true,
3140
+ configurable: true
3141
+ });
3142
+ Object.defineProperty(MatSelect.prototype, "errorState", {
3143
+ /**
3144
+ * Whether the select is in an error state.
3145
+ * @return {?}
3146
+ */
3147
+ get: function () {
3148
+ var /** @type {?} */ parent = this._parentFormGroup || this._parentForm;
3149
+ var /** @type {?} */ matcher = this.errorStateMatcher || this._defaultErrorStateMatcher;
3150
+ var /** @type {?} */ control = this.ngControl ? (this.ngControl.control) : null;
3151
+ return matcher.isErrorState(control, parent);
3152
+ },
3153
+ enumerable: true,
3154
+ configurable: true
3155
+ });
3156
+ /**
3157
+ * @return {?}
3158
+ */
3159
+ MatSelect.prototype._initializeSelection = function () {
3160
+ var _this = this;
3161
+ // Defer setting the value in order to avoid the "Expression
3162
+ // has changed after it was checked" errors from Angular.
3163
+ Promise.resolve().then(function () {
3164
+ _this._setSelectionByValue(_this.ngControl ? _this.ngControl.value : _this._value);
3165
+ });
3166
+ };
3167
+ /**
3168
+ * Sets the selected option based on a value. If no option can be
3169
+ * found with the designated value, the select trigger is cleared.
3170
+ * @param {?} value
3171
+ * @param {?=} isUserInput
3172
+ * @return {?}
3173
+ */
3174
+ MatSelect.prototype._setSelectionByValue = function (value, isUserInput) {
3175
+ var _this = this;
3176
+ if (isUserInput === void 0) { isUserInput = false; }
3177
+ var /** @type {?} */ isArray = Array.isArray(value);
3178
+ if (this.multiple && value && !isArray) {
3179
+ throw getMatSelectNonArrayValueError();
3180
+ }
3181
+ this._clearSelection();
3182
+ if (isArray) {
3183
+ value.forEach(function (currentValue) { return _this._selectValue(currentValue, isUserInput); });
3184
+ this._sortValues();
3185
+ }
3186
+ else {
3187
+ var /** @type {?} */ correspondingOption = this._selectValue(value, isUserInput);
3188
+ // Shift focus to the active item. Note that we shouldn't do this in multiple
3189
+ // mode, because we don't know what option the user interacted with last.
3190
+ if (correspondingOption) {
3191
+ this._keyManager.setActiveItem(this.options.toArray().indexOf(correspondingOption));
3192
+ }
3193
+ }
3194
+ this._changeDetectorRef.markForCheck();
3195
+ };
3196
+ /**
3197
+ * Finds and selects and option based on its value.
3198
+ * @param {?} value
3199
+ * @param {?=} isUserInput
3200
+ * @return {?} Option that has the corresponding value.
3201
+ */
3202
+ MatSelect.prototype._selectValue = function (value, isUserInput) {
3203
+ var _this = this;
3204
+ if (isUserInput === void 0) { isUserInput = false; }
3205
+ var /** @type {?} */ correspondingOption = this.options.find(function (option) {
3206
+ try {
3207
+ // Treat null as a special reset value.
3208
+ return option.value != null && _this._compareWith(option.value, value);
3209
+ }
3210
+ catch (error) {
3211
+ if (_angular_core.isDevMode()) {
3212
+ // Notify developers of errors in their comparator.
3213
+ console.warn(error);
3214
+ }
3215
+ return false;
3216
+ }
3217
+ });
3218
+ if (correspondingOption) {
3219
+ isUserInput ? correspondingOption._selectViaInteraction() : correspondingOption.select();
3220
+ this._selectionModel.select(correspondingOption);
3221
+ this.stateChanges.next();
3222
+ }
3223
+ return correspondingOption;
3224
+ };
3225
+ /**
3226
+ * Clears the select trigger and deselects every option in the list.
3227
+ * @param {?=} skip Option that should not be deselected.
3228
+ * @return {?}
3229
+ */
3230
+ MatSelect.prototype._clearSelection = function (skip) {
3231
+ this._selectionModel.clear();
3232
+ this.options.forEach(function (option) {
3233
+ if (option !== skip) {
3234
+ option.deselect();
3235
+ }
3236
+ });
3237
+ this.stateChanges.next();
3238
+ };
3239
+ /**
3240
+ * Sets up a key manager to listen to keyboard events on the overlay panel.
3241
+ * @return {?}
3242
+ */
3243
+ MatSelect.prototype._initKeyManager = function () {
3244
+ var _this = this;
3245
+ this._keyManager = new _angular_cdk_a11y.ActiveDescendantKeyManager(this.options).withTypeAhead();
3246
+ this._tabSubscription = this._keyManager.tabOut.subscribe(function () { return _this.close(); });
3247
+ };
3248
+ /**
3249
+ * Drops current option subscriptions and IDs and resets from scratch.
3250
+ * @return {?}
3251
+ */
3252
+ MatSelect.prototype._resetOptions = function () {
3253
+ this._dropSubscriptions();
3254
+ this._listenToOptions();
3255
+ this._setOptionIds();
3256
+ this._setOptionMultiple();
3257
+ this._setOptionDisableRipple();
3258
+ };
3259
+ /**
3260
+ * Listens to user-generated selection events on each option.
3261
+ * @return {?}
3262
+ */
3263
+ MatSelect.prototype._listenToOptions = function () {
3264
+ var _this = this;
3265
+ this._optionSubscription = _angular_cdk_rxjs.filter.call(this.optionSelectionChanges, function (event) { return event.isUserInput; }).subscribe(function (event) {
3266
+ _this._onSelect(event.source);
3267
+ if (!_this.multiple) {
3268
+ _this.close();
3269
+ }
3270
+ });
3271
+ };
3272
+ /**
3273
+ * Invoked when an option is clicked.
3274
+ * @param {?} option
3275
+ * @return {?}
3276
+ */
3277
+ MatSelect.prototype._onSelect = function (option) {
3278
+ var /** @type {?} */ wasSelected = this._selectionModel.isSelected(option);
3279
+ // TODO(crisbeto): handle blank/null options inside multi-select.
3280
+ if (this.multiple) {
3281
+ this._selectionModel.toggle(option);
3282
+ this.stateChanges.next();
3283
+ wasSelected ? option.deselect() : option.select();
3284
+ this._sortValues();
3285
+ }
3286
+ else {
3287
+ this._clearSelection(option.value == null ? undefined : option);
3288
+ if (option.value == null) {
3289
+ this._propagateChanges(option.value);
3290
+ }
3291
+ else {
3292
+ this._selectionModel.select(option);
3293
+ this.stateChanges.next();
3294
+ }
3295
+ }
3296
+ if (wasSelected !== this._selectionModel.isSelected(option)) {
3297
+ this._propagateChanges();
3298
+ }
3299
+ };
3300
+ /**
3301
+ * Sorts the model values, ensuring that they keep the same
3302
+ * order that they have in the panel.
3303
+ * @return {?}
3304
+ */
3305
+ MatSelect.prototype._sortValues = function () {
3306
+ var _this = this;
3307
+ if (this._multiple) {
3308
+ this._selectionModel.clear();
3309
+ this.options.forEach(function (option) {
3310
+ if (option.selected) {
3311
+ _this._selectionModel.select(option);
3312
+ }
3313
+ });
3314
+ this.stateChanges.next();
3315
+ }
3316
+ };
3317
+ /**
3318
+ * Unsubscribes from all option subscriptions.
3319
+ * @return {?}
3320
+ */
3321
+ MatSelect.prototype._dropSubscriptions = function () {
3322
+ this._optionSubscription.unsubscribe();
3323
+ };
3324
+ /**
3325
+ * Emits change event to set the model value.
3326
+ * @param {?=} fallbackValue
3327
+ * @return {?}
3328
+ */
3329
+ MatSelect.prototype._propagateChanges = function (fallbackValue) {
3330
+ var /** @type {?} */ valueToEmit = null;
3331
+ if (Array.isArray(this.selected)) {
3332
+ valueToEmit = this.selected.map(function (option) { return option.value; });
3333
+ }
3334
+ else {
3335
+ valueToEmit = this.selected ? this.selected.value : fallbackValue;
3336
+ }
3337
+ this._value = valueToEmit;
3338
+ this._onChange(valueToEmit);
3339
+ this.change.emit(new MatSelectChange(this, valueToEmit));
3340
+ this.valueChange.emit(valueToEmit);
3341
+ this._changeDetectorRef.markForCheck();
3342
+ };
3343
+ /**
3344
+ * Records option IDs to pass to the aria-owns property.
3345
+ * @return {?}
3346
+ */
3347
+ MatSelect.prototype._setOptionIds = function () {
3348
+ this._optionIds = this.options.map(function (option) { return option.id; }).join(' ');
3349
+ };
3350
+ /**
3351
+ * Sets the `multiple` property on each option. The promise is necessary
3352
+ * in order to avoid Angular errors when modifying the property after init.
3353
+ * @return {?}
3354
+ */
3355
+ MatSelect.prototype._setOptionMultiple = function () {
3356
+ var _this = this;
3357
+ if (this.multiple) {
3358
+ Promise.resolve(null).then(function () {
3359
+ _this.options.forEach(function (option) { return option.multiple = _this.multiple; });
3360
+ });
3361
+ }
3362
+ };
3363
+ /**
3364
+ * Sets the `disableRipple` property on each option.
3365
+ * @return {?}
3366
+ */
3367
+ MatSelect.prototype._setOptionDisableRipple = function () {
3368
+ var _this = this;
3369
+ if (this.options) {
3370
+ this.options.forEach(function (option) { return option.disableRipple = _this.disableRipple; });
3371
+ }
3372
+ };
3373
+ /**
3374
+ * Highlights the selected item. If no option is selected, it will highlight
3375
+ * the first item instead.
3376
+ * @return {?}
3377
+ */
3378
+ MatSelect.prototype._highlightCorrectOption = function () {
3379
+ if (this._selectionModel.isEmpty()) {
3380
+ this._keyManager.setFirstItemActive();
3381
+ }
3382
+ else {
3383
+ this._keyManager.setActiveItem(/** @type {?} */ ((this._getOptionIndex(this._selectionModel.selected[0]))));
3384
+ }
3385
+ };
3386
+ /**
3387
+ * Scrolls the active option into view.
3388
+ * @return {?}
3389
+ */
3390
+ MatSelect.prototype._scrollActiveOptionIntoView = function () {
3391
+ var /** @type {?} */ itemHeight = this._getItemHeight();
3392
+ var /** @type {?} */ activeOptionIndex = this._keyManager.activeItemIndex || 0;
3393
+ var /** @type {?} */ labelCount = MatOption.countGroupLabelsBeforeOption(activeOptionIndex, this.options, this.optionGroups);
3394
+ var /** @type {?} */ scrollOffset = (activeOptionIndex + labelCount) * itemHeight;
3395
+ var /** @type {?} */ panelTop = this.panel.nativeElement.scrollTop;
3396
+ if (scrollOffset < panelTop) {
3397
+ this.panel.nativeElement.scrollTop = scrollOffset;
3398
+ }
3399
+ else if (scrollOffset + itemHeight > panelTop + SELECT_PANEL_MAX_HEIGHT) {
3400
+ this.panel.nativeElement.scrollTop =
3401
+ Math.max(0, scrollOffset - SELECT_PANEL_MAX_HEIGHT + itemHeight);
3402
+ }
3403
+ };
3404
+ /**
3405
+ * Focuses the select element.
3406
+ * @return {?}
3407
+ */
3408
+ MatSelect.prototype.focus = function () {
3409
+ this._elementRef.nativeElement.focus();
3410
+ };
3411
+ /**
3412
+ * Gets the index of the provided option in the option list.
3413
+ * @param {?} option
3414
+ * @return {?}
3415
+ */
3416
+ MatSelect.prototype._getOptionIndex = function (option) {
3417
+ return this.options.reduce(function (result, current, index) {
3418
+ return result === undefined ? (option === current ? index : undefined) : result;
3419
+ }, undefined);
3420
+ };
3421
+ /**
3422
+ * Calculates the scroll position and x- and y-offsets of the overlay panel.
3423
+ * @return {?}
3424
+ */
3425
+ MatSelect.prototype._calculateOverlayPosition = function () {
3426
+ var /** @type {?} */ itemHeight = this._getItemHeight();
3427
+ var /** @type {?} */ items = this._getItemCount();
3428
+ var /** @type {?} */ panelHeight = Math.min(items * itemHeight, SELECT_PANEL_MAX_HEIGHT);
3429
+ var /** @type {?} */ scrollContainerHeight = items * itemHeight;
3430
+ // The farthest the panel can be scrolled before it hits the bottom
3431
+ var /** @type {?} */ maxScroll = scrollContainerHeight - panelHeight;
3432
+ // If no value is selected we open the popup to the first item.
3433
+ var /** @type {?} */ selectedOptionOffset = this.empty ? 0 : ((this._getOptionIndex(this._selectionModel.selected[0])));
3434
+ selectedOptionOffset += MatOption.countGroupLabelsBeforeOption(selectedOptionOffset, this.options, this.optionGroups);
3435
+ // We must maintain a scroll buffer so the selected option will be scrolled to the
3436
+ // center of the overlay panel rather than the top.
3437
+ var /** @type {?} */ scrollBuffer = panelHeight / 2;
3438
+ this._scrollTop = this._calculateOverlayScroll(selectedOptionOffset, scrollBuffer, maxScroll);
3439
+ this._offsetY = this._calculateOverlayOffsetY(selectedOptionOffset, scrollBuffer, maxScroll);
3440
+ this._checkOverlayWithinViewport(maxScroll);
3441
+ };
3442
+ /**
3443
+ * Calculates the scroll position of the select's overlay panel.
3444
+ *
3445
+ * Attempts to center the selected option in the panel. If the option is
3446
+ * too high or too low in the panel to be scrolled to the center, it clamps the
3447
+ * scroll position to the min or max scroll positions respectively.
3448
+ * @param {?} selectedIndex
3449
+ * @param {?} scrollBuffer
3450
+ * @param {?} maxScroll
3451
+ * @return {?}
3452
+ */
3453
+ MatSelect.prototype._calculateOverlayScroll = function (selectedIndex, scrollBuffer, maxScroll) {
3454
+ var /** @type {?} */ itemHeight = this._getItemHeight();
3455
+ var /** @type {?} */ optionOffsetFromScrollTop = itemHeight * selectedIndex;
3456
+ var /** @type {?} */ halfOptionHeight = itemHeight / 2;
3457
+ // Starts at the optionOffsetFromScrollTop, which scrolls the option to the top of the
3458
+ // scroll container, then subtracts the scroll buffer to scroll the option down to
3459
+ // the center of the overlay panel. Half the option height must be re-added to the
3460
+ // scrollTop so the option is centered based on its middle, not its top edge.
3461
+ var /** @type {?} */ optimalScrollPosition = optionOffsetFromScrollTop - scrollBuffer + halfOptionHeight;
3462
+ return Math.min(Math.max(0, optimalScrollPosition), maxScroll);
3463
+ };
3464
+ Object.defineProperty(MatSelect.prototype, "_ariaLabel", {
3465
+ /**
3466
+ * Returns the aria-label of the select component.
3467
+ * @return {?}
3468
+ */
3469
+ get: function () {
3470
+ // If an ariaLabelledby value has been set, the select should not overwrite the
3471
+ // `aria-labelledby` value by setting the ariaLabel to the placeholder.
3472
+ return this.ariaLabelledby ? null : this.ariaLabel || this.placeholder;
3473
+ },
3474
+ enumerable: true,
3475
+ configurable: true
3476
+ });
3477
+ /**
3478
+ * Determines the `aria-activedescendant` to be set on the host.
3479
+ * @return {?}
3480
+ */
3481
+ MatSelect.prototype._getAriaActiveDescendant = function () {
3482
+ if (this.panelOpen && this._keyManager && this._keyManager.activeItem) {
3483
+ return this._keyManager.activeItem.id;
3484
+ }
3485
+ return null;
3486
+ };
3487
+ /**
3488
+ * Sets the x-offset of the overlay panel in relation to the trigger's top start corner.
3489
+ * This must be adjusted to align the selected option text over the trigger text when
3490
+ * the panel opens. Will change based on LTR or RTL text direction. Note that the offset
3491
+ * can't be calculated until the panel has been attached, because we need to know the
3492
+ * content width in order to constrain the panel within the viewport.
3493
+ * @return {?}
3494
+ */
3495
+ MatSelect.prototype._calculateOverlayOffsetX = function () {
3496
+ var /** @type {?} */ overlayRect = this.overlayDir.overlayRef.overlayElement.getBoundingClientRect();
3497
+ var /** @type {?} */ viewportRect = this._viewportRuler.getViewportRect();
3498
+ var /** @type {?} */ isRtl = this._isRtl();
3499
+ var /** @type {?} */ paddingWidth = this.multiple ? SELECT_MULTIPLE_PANEL_PADDING_X + SELECT_PANEL_PADDING_X :
3500
+ SELECT_PANEL_PADDING_X * 2;
3501
+ var /** @type {?} */ offsetX;
3502
+ // Adjust the offset, depending on the option padding.
3503
+ if (this.multiple) {
3504
+ offsetX = SELECT_MULTIPLE_PANEL_PADDING_X;
3505
+ }
3506
+ else {
3507
+ var /** @type {?} */ selected = this._selectionModel.selected[0] || this.options.first;
3508
+ offsetX = selected && selected.group ? SELECT_PANEL_INDENT_PADDING_X : SELECT_PANEL_PADDING_X;
3509
+ }
3510
+ // Invert the offset in LTR.
3511
+ if (!isRtl) {
3512
+ offsetX *= -1;
3513
+ }
3514
+ // Determine how much the select overflows on each side.
3515
+ var /** @type {?} */ leftOverflow = 0 - (overlayRect.left + offsetX - (isRtl ? paddingWidth : 0));
3516
+ var /** @type {?} */ rightOverflow = overlayRect.right + offsetX - viewportRect.width
3517
+ + (isRtl ? 0 : paddingWidth);
3518
+ // If the element overflows on either side, reduce the offset to allow it to fit.
3519
+ if (leftOverflow > 0) {
3520
+ offsetX += leftOverflow + SELECT_PANEL_VIEWPORT_PADDING;
3521
+ }
3522
+ else if (rightOverflow > 0) {
3523
+ offsetX -= rightOverflow + SELECT_PANEL_VIEWPORT_PADDING;
3524
+ }
3525
+ // Set the offset directly in order to avoid having to go through change detection and
3526
+ // potentially triggering "changed after it was checked" errors.
3527
+ this.overlayDir.offsetX = offsetX;
3528
+ this.overlayDir.overlayRef.updatePosition();
3529
+ };
3530
+ /**
3531
+ * Calculates the y-offset of the select's overlay panel in relation to the
3532
+ * top start corner of the trigger. It has to be adjusted in order for the
3533
+ * selected option to be aligned over the trigger when the panel opens.
3534
+ * @param {?} selectedIndex
3535
+ * @param {?} scrollBuffer
3536
+ * @param {?} maxScroll
3537
+ * @return {?}
3538
+ */
3539
+ MatSelect.prototype._calculateOverlayOffsetY = function (selectedIndex, scrollBuffer, maxScroll) {
3540
+ var /** @type {?} */ itemHeight = this._getItemHeight();
3541
+ var /** @type {?} */ optionHeightAdjustment = (itemHeight - this._triggerRect.height) / 2;
3542
+ var /** @type {?} */ maxOptionsDisplayed = Math.floor(SELECT_PANEL_MAX_HEIGHT / itemHeight);
3543
+ var /** @type {?} */ optionOffsetFromPanelTop;
3544
+ if (this._scrollTop === 0) {
3545
+ optionOffsetFromPanelTop = selectedIndex * itemHeight;
3546
+ }
3547
+ else if (this._scrollTop === maxScroll) {
3548
+ var /** @type {?} */ firstDisplayedIndex = this._getItemCount() - maxOptionsDisplayed;
3549
+ var /** @type {?} */ selectedDisplayIndex = selectedIndex - firstDisplayedIndex;
3550
+ // The first item is partially out of the viewport. Therefore we need to calculate what
3551
+ // portion of it is shown in the viewport and account for it in our offset.
3552
+ var /** @type {?} */ partialItemHeight = itemHeight - (this._getItemCount() * itemHeight - SELECT_PANEL_MAX_HEIGHT) % itemHeight;
3553
+ // Because the panel height is longer than the height of the options alone,
3554
+ // there is always extra padding at the top or bottom of the panel. When
3555
+ // scrolled to the very bottom, this padding is at the top of the panel and
3556
+ // must be added to the offset.
3557
+ optionOffsetFromPanelTop = selectedDisplayIndex * itemHeight + partialItemHeight;
3558
+ }
3559
+ else {
3560
+ // If the option was scrolled to the middle of the panel using a scroll buffer,
3561
+ // its offset will be the scroll buffer minus the half height that was added to
3562
+ // center it.
3563
+ optionOffsetFromPanelTop = scrollBuffer - itemHeight / 2;
3564
+ }
3565
+ // The final offset is the option's offset from the top, adjusted for the height
3566
+ // difference, multiplied by -1 to ensure that the overlay moves in the correct
3567
+ // direction up the page.
3568
+ return optionOffsetFromPanelTop * -1 - optionHeightAdjustment;
3569
+ };
3570
+ /**
3571
+ * Checks that the attempted overlay position will fit within the viewport.
3572
+ * If it will not fit, tries to adjust the scroll position and the associated
3573
+ * y-offset so the panel can open fully on-screen. If it still won't fit,
3574
+ * sets the offset back to 0 to allow the fallback position to take over.
3575
+ * @param {?} maxScroll
3576
+ * @return {?}
3577
+ */
3578
+ MatSelect.prototype._checkOverlayWithinViewport = function (maxScroll) {
3579
+ var /** @type {?} */ itemHeight = this._getItemHeight();
3580
+ var /** @type {?} */ viewportRect = this._viewportRuler.getViewportRect();
3581
+ var /** @type {?} */ topSpaceAvailable = this._triggerRect.top - SELECT_PANEL_VIEWPORT_PADDING;
3582
+ var /** @type {?} */ bottomSpaceAvailable = viewportRect.height - this._triggerRect.bottom - SELECT_PANEL_VIEWPORT_PADDING;
3583
+ var /** @type {?} */ panelHeightTop = Math.abs(this._offsetY);
3584
+ var /** @type {?} */ totalPanelHeight = Math.min(this._getItemCount() * itemHeight, SELECT_PANEL_MAX_HEIGHT);
3585
+ var /** @type {?} */ panelHeightBottom = totalPanelHeight - panelHeightTop - this._triggerRect.height;
3586
+ if (panelHeightBottom > bottomSpaceAvailable) {
3587
+ this._adjustPanelUp(panelHeightBottom, bottomSpaceAvailable);
3588
+ }
3589
+ else if (panelHeightTop > topSpaceAvailable) {
3590
+ this._adjustPanelDown(panelHeightTop, topSpaceAvailable, maxScroll);
3591
+ }
3592
+ else {
3593
+ this._transformOrigin = this._getOriginBasedOnOption();
3594
+ }
3595
+ };
3596
+ /**
3597
+ * Adjusts the overlay panel up to fit in the viewport.
3598
+ * @param {?} panelHeightBottom
3599
+ * @param {?} bottomSpaceAvailable
3600
+ * @return {?}
3601
+ */
3602
+ MatSelect.prototype._adjustPanelUp = function (panelHeightBottom, bottomSpaceAvailable) {
3603
+ // Browsers ignore fractional scroll offsets, so we need to round.
3604
+ var /** @type {?} */ distanceBelowViewport = Math.round(panelHeightBottom - bottomSpaceAvailable);
3605
+ // Scrolls the panel up by the distance it was extending past the boundary, then
3606
+ // adjusts the offset by that amount to move the panel up into the viewport.
3607
+ this._scrollTop -= distanceBelowViewport;
3608
+ this._offsetY -= distanceBelowViewport;
3609
+ this._transformOrigin = this._getOriginBasedOnOption();
3610
+ // If the panel is scrolled to the very top, it won't be able to fit the panel
3611
+ // by scrolling, so set the offset to 0 to allow the fallback position to take
3612
+ // effect.
3613
+ if (this._scrollTop <= 0) {
3614
+ this._scrollTop = 0;
3615
+ this._offsetY = 0;
3616
+ this._transformOrigin = "50% bottom 0px";
3617
+ }
3618
+ };
3619
+ /**
3620
+ * Adjusts the overlay panel down to fit in the viewport.
3621
+ * @param {?} panelHeightTop
3622
+ * @param {?} topSpaceAvailable
3623
+ * @param {?} maxScroll
3624
+ * @return {?}
3625
+ */
3626
+ MatSelect.prototype._adjustPanelDown = function (panelHeightTop, topSpaceAvailable, maxScroll) {
3627
+ // Browsers ignore fractional scroll offsets, so we need to round.
3628
+ var /** @type {?} */ distanceAboveViewport = Math.round(panelHeightTop - topSpaceAvailable);
3629
+ // Scrolls the panel down by the distance it was extending past the boundary, then
3630
+ // adjusts the offset by that amount to move the panel down into the viewport.
3631
+ this._scrollTop += distanceAboveViewport;
3632
+ this._offsetY += distanceAboveViewport;
3633
+ this._transformOrigin = this._getOriginBasedOnOption();
3634
+ // If the panel is scrolled to the very bottom, it won't be able to fit the
3635
+ // panel by scrolling, so set the offset to 0 to allow the fallback position
3636
+ // to take effect.
3637
+ if (this._scrollTop >= maxScroll) {
3638
+ this._scrollTop = maxScroll;
3639
+ this._offsetY = 0;
3640
+ this._transformOrigin = "50% top 0px";
3641
+ return;
3642
+ }
3643
+ };
3644
+ /**
3645
+ * Sets the transform origin point based on the selected option.
3646
+ * @return {?}
3647
+ */
3648
+ MatSelect.prototype._getOriginBasedOnOption = function () {
3649
+ var /** @type {?} */ itemHeight = this._getItemHeight();
3650
+ var /** @type {?} */ optionHeightAdjustment = (itemHeight - this._triggerRect.height) / 2;
3651
+ var /** @type {?} */ originY = Math.abs(this._offsetY) - optionHeightAdjustment + itemHeight / 2;
3652
+ return "50% " + originY + "px 0px";
3653
+ };
3654
+ /**
3655
+ * Handles the user pressing the arrow keys on a closed select.
3656
+ * @param {?} event
3657
+ * @return {?}
3658
+ */
3659
+ MatSelect.prototype._handleClosedArrowKey = function (event) {
3660
+ var _this = this;
3661
+ if (this._multiple) {
3662
+ event.preventDefault();
3663
+ this.open();
3664
+ }
3665
+ else {
3666
+ var /** @type {?} */ prevActiveItem_1 = this._keyManager.activeItem;
3667
+ // Cycle though the select options even when the select is closed,
3668
+ // matching the behavior of the native select element.
3669
+ // TODO(crisbeto): native selects also cycle through the options with left/right arrows,
3670
+ // however the key manager only supports up/down at the moment.
3671
+ this._keyManager.onKeydown(event);
3672
+ // TODO(crisbeto): get rid of the Promise.resolve when #6441 gets in.
3673
+ Promise.resolve().then(function () {
3674
+ var /** @type {?} */ currentActiveItem = _this._keyManager.activeItem;
3675
+ if (currentActiveItem && currentActiveItem !== prevActiveItem_1) {
3676
+ _this._clearSelection();
3677
+ _this._setSelectionByValue(currentActiveItem.value, true);
3678
+ }
3679
+ });
3680
+ }
3681
+ };
3682
+ /**
3683
+ * Calculates the amount of items in the select. This includes options and group labels.
3684
+ * @return {?}
3685
+ */
3686
+ MatSelect.prototype._getItemCount = function () {
3687
+ return this.options.length + this.optionGroups.length;
3688
+ };
3689
+ /**
3690
+ * Calculates the height of the select's options.
3691
+ * @return {?}
3692
+ */
3693
+ MatSelect.prototype._getItemHeight = function () {
3694
+ return this._triggerFontSize * SELECT_ITEM_HEIGHT_EM;
3695
+ };
3696
+ /**
3697
+ * @param {?} ids
3698
+ * @return {?}
3699
+ */
3700
+ MatSelect.prototype.setDescribedByIds = function (ids) {
3701
+ this._ariaDescribedby = ids.join(' ');
3702
+ };
3703
+ /**
3704
+ * @return {?}
3705
+ */
3706
+ MatSelect.prototype.onContainerClick = function () {
3707
+ this.focus();
3708
+ this.open();
3709
+ };
3710
+ Object.defineProperty(MatSelect.prototype, "shouldPlaceholderFloat", {
3711
+ /**
3712
+ * @return {?}
3713
+ */
3714
+ get: function () { return this._panelOpen || !this.empty; },
3715
+ enumerable: true,
3716
+ configurable: true
3717
+ });
3718
+ MatSelect.decorators = [
3719
+ { type: _angular_core.Component, args: [{selector: 'mat-select',
3720
+ exportAs: 'matSelect',
3721
+ template: "<div cdk-overlay-origin class=\"mat-select-trigger\" aria-hidden=\"true\" (click)=\"toggle()\" #origin=\"cdkOverlayOrigin\" #trigger><div class=\"mat-select-value\"><ng-container *ngIf=\"empty\">&nbsp;</ng-container><span class=\"mat-select-value-text\" *ngIf=\"!empty\" [ngSwitch]=\"!!customTrigger\"><span *ngSwitchDefault>{{ triggerValue }}</span><ng-content select=\"mat-select-trigger\" *ngSwitchCase=\"true\"></ng-content></span></div><div class=\"mat-select-arrow-wrapper\"><div class=\"mat-select-arrow\"></div></div></div><ng-template cdk-connected-overlay hasBackdrop backdropClass=\"cdk-overlay-transparent-backdrop\" [scrollStrategy]=\"_scrollStrategy\" [origin]=\"origin\" [open]=\"panelOpen\" [positions]=\"_positions\" [minWidth]=\"_triggerRect?.width\" [offsetY]=\"_offsetY\" (backdropClick)=\"close()\" (attach)=\"_onAttached()\" (detach)=\"close()\"><div #panel class=\"mat-select-panel {{ _getPanelTheme() }}\" [ngClass]=\"panelClass\" [@transformPanel]=\"multiple ? 'showing-multiple' : 'showing'\" (@transformPanel.done)=\"_onPanelDone()\" [style.transformOrigin]=\"_transformOrigin\" [class.mat-select-panel-done-animating]=\"_panelDoneAnimating\" [style.font-size.px]=\"_triggerFontSize\"><div class=\"mat-select-content\" [@fadeInContent]=\"'showing'\" (@fadeInContent.done)=\"_onFadeInDone()\"><ng-content></ng-content></div></div></ng-template>",
3722
+ styles: [".mat-select{display:inline-block;width:100%;outline:0}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-placeholder{width:calc(100% - 18px)}"],
3723
+ inputs: ['disabled', 'tabIndex'],
3724
+ encapsulation: _angular_core.ViewEncapsulation.None,
3725
+ preserveWhitespaces: false,
3726
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
3727
+ host: {
3728
+ 'role': 'listbox',
3729
+ '[attr.id]': 'id',
3730
+ '[attr.tabindex]': 'tabIndex',
3731
+ '[attr.aria-label]': '_ariaLabel',
3732
+ '[attr.aria-labelledby]': 'ariaLabelledby',
3733
+ '[attr.aria-required]': 'required.toString()',
3734
+ '[attr.aria-disabled]': 'disabled.toString()',
3735
+ '[attr.aria-invalid]': 'errorState',
3736
+ '[attr.aria-owns]': '_optionIds',
3737
+ '[attr.aria-multiselectable]': 'multiple',
3738
+ '[attr.aria-describedby]': '_ariaDescribedby || null',
3739
+ '[attr.aria-activedescendant]': '_getAriaActiveDescendant()',
3740
+ '[class.mat-select-disabled]': 'disabled',
3741
+ '[class.mat-select-invalid]': 'errorState',
3742
+ '[class.mat-select-required]': 'required',
3743
+ 'class': 'mat-select',
3744
+ '(keydown)': '_handleKeydown($event)',
3745
+ '(focus)': '_onFocus()',
3746
+ '(blur)': '_onBlur()',
3747
+ },
3748
+ animations: [
3749
+ transformPanel,
3750
+ fadeInContent
3751
+ ],
3752
+ providers: [{ provide: MatFormFieldControl, useExisting: MatSelect }],
3753
+ },] },
3754
+ ];
3755
+ /**
3756
+ * @nocollapse
3757
+ */
3758
+ MatSelect.ctorParameters = function () { return [
3759
+ { type: _angular_cdk_overlay.ViewportRuler, },
3760
+ { type: _angular_core.ChangeDetectorRef, },
3761
+ { type: _angular_core.NgZone, },
3762
+ { type: ErrorStateMatcher, },
3763
+ { type: _angular_core.Renderer2, },
3764
+ { type: _angular_core.ElementRef, },
3765
+ { type: _angular_cdk_bidi.Directionality, decorators: [{ type: _angular_core.Optional },] },
3766
+ { type: _angular_forms.NgForm, decorators: [{ type: _angular_core.Optional },] },
3767
+ { type: _angular_forms.FormGroupDirective, decorators: [{ type: _angular_core.Optional },] },
3768
+ { type: MatFormField, decorators: [{ type: _angular_core.Optional },] },
3769
+ { type: _angular_forms.NgControl, decorators: [{ type: _angular_core.Self }, { type: _angular_core.Optional },] },
3770
+ { type: undefined, decorators: [{ type: _angular_core.Attribute, args: ['tabindex',] },] },
3771
+ { type: undefined, decorators: [{ type: _angular_core.Inject, args: [MAT_SELECT_SCROLL_STRATEGY,] },] },
3772
+ ]; };
3773
+ MatSelect.propDecorators = {
3774
+ 'trigger': [{ type: _angular_core.ViewChild, args: ['trigger',] },],
3775
+ 'panel': [{ type: _angular_core.ViewChild, args: ['panel',] },],
3776
+ 'overlayDir': [{ type: _angular_core.ViewChild, args: [_angular_cdk_overlay.ConnectedOverlayDirective,] },],
3777
+ 'options': [{ type: _angular_core.ContentChildren, args: [MatOption, { descendants: true },] },],
3778
+ 'optionGroups': [{ type: _angular_core.ContentChildren, args: [MatOptgroup,] },],
3779
+ 'panelClass': [{ type: _angular_core.Input },],
3780
+ 'customTrigger': [{ type: _angular_core.ContentChild, args: [MatSelectTrigger,] },],
3781
+ 'placeholder': [{ type: _angular_core.Input },],
3782
+ 'required': [{ type: _angular_core.Input },],
3783
+ 'multiple': [{ type: _angular_core.Input },],
3784
+ 'compareWith': [{ type: _angular_core.Input },],
3785
+ 'value': [{ type: _angular_core.Input },],
3786
+ 'disableRipple': [{ type: _angular_core.Input },],
3787
+ 'ariaLabel': [{ type: _angular_core.Input, args: ['aria-label',] },],
3788
+ 'ariaLabelledby': [{ type: _angular_core.Input, args: ['aria-labelledby',] },],
3789
+ 'errorStateMatcher': [{ type: _angular_core.Input },],
3790
+ 'id': [{ type: _angular_core.Input },],
3791
+ 'onOpen': [{ type: _angular_core.Output },],
3792
+ 'onClose': [{ type: _angular_core.Output },],
3793
+ 'change': [{ type: _angular_core.Output },],
3794
+ 'valueChange': [{ type: _angular_core.Output },],
3795
+ };
3796
+ return MatSelect;
3797
+ }(_MatSelectMixinBase));
3798
+
3799
+ var MatSelectModule = (function () {
3800
+ function MatSelectModule() {
3801
+ }
3802
+ MatSelectModule.decorators = [
3803
+ { type: _angular_core.NgModule, args: [{
3804
+ imports: [
3805
+ _angular_common.CommonModule,
3806
+ _angular_cdk_overlay.OverlayModule,
3807
+ MatOptionModule,
3808
+ MatCommonModule,
3809
+ ],
3810
+ exports: [MatFormFieldModule, MatSelect, MatSelectTrigger, MatOptionModule, MatCommonModule],
3811
+ declarations: [MatSelect, MatSelectTrigger],
3812
+ providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER, ErrorStateMatcher]
3813
+ },] },
3814
+ ];
3815
+ /**
3816
+ * @nocollapse
3817
+ */
3818
+ MatSelectModule.ctorParameters = function () { return []; };
3819
+ return MatSelectModule;
3820
+ }());
3821
+
3822
+ exports.MatSelectModule = MatSelectModule;
3823
+ exports.SELECT_PANEL_MAX_HEIGHT = SELECT_PANEL_MAX_HEIGHT;
3824
+ exports.SELECT_PANEL_PADDING_X = SELECT_PANEL_PADDING_X;
3825
+ exports.SELECT_PANEL_INDENT_PADDING_X = SELECT_PANEL_INDENT_PADDING_X;
3826
+ exports.SELECT_ITEM_HEIGHT_EM = SELECT_ITEM_HEIGHT_EM;
3827
+ exports.SELECT_MULTIPLE_PANEL_PADDING_X = SELECT_MULTIPLE_PANEL_PADDING_X;
3828
+ exports.SELECT_PANEL_VIEWPORT_PADDING = SELECT_PANEL_VIEWPORT_PADDING;
3829
+ exports.MAT_SELECT_SCROLL_STRATEGY = MAT_SELECT_SCROLL_STRATEGY;
3830
+ exports.MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY = MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY;
3831
+ exports.MAT_SELECT_SCROLL_STRATEGY_PROVIDER = MAT_SELECT_SCROLL_STRATEGY_PROVIDER;
3832
+ exports.MatSelectChange = MatSelectChange;
3833
+ exports.MatSelectBase = MatSelectBase;
3834
+ exports._MatSelectMixinBase = _MatSelectMixinBase;
3835
+ exports.MatSelectTrigger = MatSelectTrigger;
3836
+ exports.MatSelect = MatSelect;
3837
+ exports.transformPanel = transformPanel;
3838
+ exports.fadeInContent = fadeInContent;
3839
+
3840
+ Object.defineProperty(exports, '__esModule', { value: true });
3841
+
3842
+ })));
3843
+ //# sourceMappingURL=material-select.umd.js.map