@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,3271 @@
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/cdk/a11y'), require('@angular/cdk/portal'), require('@angular/cdk/stepper'), require('@angular/common'), require('@angular/core'), require('@angular/cdk/bidi'), require('@angular/cdk/coercion'), require('rxjs/Subject'), require('@angular/platform-browser'), require('@angular/cdk/platform'), require('@angular/cdk/keycodes'), require('@angular/cdk/rxjs'), require('@angular/http'), require('rxjs/Observable'), require('rxjs/observable/forkJoin'), require('rxjs/observable/of'), require('rxjs/observable/throw'), require('@angular/animations')) :
10
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/cdk/a11y', '@angular/cdk/portal', '@angular/cdk/stepper', '@angular/common', '@angular/core', '@angular/cdk/bidi', '@angular/cdk/coercion', 'rxjs/Subject', '@angular/platform-browser', '@angular/cdk/platform', '@angular/cdk/keycodes', '@angular/cdk/rxjs', '@angular/http', 'rxjs/Observable', 'rxjs/observable/forkJoin', 'rxjs/observable/of', 'rxjs/observable/throw', '@angular/animations'], factory) :
11
+ (factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.stepper = global.ng.material.stepper || {}),global.ng.cdk.a11y,global.ng.cdk.portal,global.ng.cdk.stepper,global.ng.common,global.ng.core,global.ng.cdk.bidi,global.ng.cdk.coercion,global.Rx,global.ng.platformBrowser,global.ng.cdk.platform,global.ng.cdk.keycodes,global.ng.cdk.rxjs,global.ng.http,global.Rx,global.Rx.Observable,global.Rx.Observable,global.Rx.Observable,global.ng.animations));
12
+ }(this, (function (exports,_angular_cdk_a11y,_angular_cdk_portal,_angular_cdk_stepper,_angular_common,_angular_core,_angular_cdk_bidi,_angular_cdk_coercion,rxjs_Subject,_angular_platformBrowser,_angular_cdk_platform,_angular_cdk_keycodes,_angular_cdk_rxjs,_angular_http,rxjs_Observable,rxjs_observable_forkJoin,rxjs_observable_of,rxjs_observable_throw,_angular_animations) { '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 `color` property.
215
+ * @template T
216
+ * @param {?} base
217
+ * @param {?=} defaultColor
218
+ * @return {?}
219
+ */
220
+ function mixinColor(base, defaultColor) {
221
+ return (function (_super) {
222
+ __extends(class_1, _super);
223
+ /**
224
+ * @param {...?} args
225
+ */
226
+ function class_1() {
227
+ var args = [];
228
+ for (var _i = 0; _i < arguments.length; _i++) {
229
+ args[_i] = arguments[_i];
230
+ }
231
+ var _this = _super.apply(this, args) || this;
232
+ // Set the default color that can be specified from the mixin.
233
+ _this.color = defaultColor;
234
+ return _this;
235
+ }
236
+ Object.defineProperty(class_1.prototype, "color", {
237
+ /**
238
+ * @return {?}
239
+ */
240
+ get: function () { return this._color; },
241
+ /**
242
+ * @param {?} value
243
+ * @return {?}
244
+ */
245
+ set: function (value) {
246
+ var /** @type {?} */ colorPalette = value || defaultColor;
247
+ if (colorPalette !== this._color) {
248
+ if (this._color) {
249
+ this._renderer.removeClass(this._elementRef.nativeElement, "mat-" + this._color);
250
+ }
251
+ if (colorPalette) {
252
+ this._renderer.addClass(this._elementRef.nativeElement, "mat-" + colorPalette);
253
+ }
254
+ this._color = colorPalette;
255
+ }
256
+ },
257
+ enumerable: true,
258
+ configurable: true
259
+ });
260
+ return class_1;
261
+ }(base));
262
+ }
263
+
264
+ /**
265
+ * Mixin to augment a directive with a `disableRipple` property.
266
+ * @template T
267
+ * @param {?} base
268
+ * @return {?}
269
+ */
270
+ function mixinDisableRipple(base) {
271
+ return (function (_super) {
272
+ __extends(class_1, _super);
273
+ /**
274
+ * @param {...?} args
275
+ */
276
+ function class_1() {
277
+ var args = [];
278
+ for (var _i = 0; _i < arguments.length; _i++) {
279
+ args[_i] = arguments[_i];
280
+ }
281
+ var _this = _super.apply(this, args) || this;
282
+ _this._disableRipple = false;
283
+ return _this;
284
+ }
285
+ Object.defineProperty(class_1.prototype, "disableRipple", {
286
+ /**
287
+ * Whether the ripple effect is disabled or not.
288
+ * @return {?}
289
+ */
290
+ get: function () { return this._disableRipple; },
291
+ /**
292
+ * @param {?} value
293
+ * @return {?}
294
+ */
295
+ set: function (value) { this._disableRipple = _angular_cdk_coercion.coerceBooleanProperty(value); },
296
+ enumerable: true,
297
+ configurable: true
298
+ });
299
+ return class_1;
300
+ }(base));
301
+ }
302
+
303
+ /**
304
+ * InjectionToken for datepicker that can be used to override default locale code.
305
+ */
306
+ var MAT_DATE_LOCALE = new _angular_core.InjectionToken('MAT_DATE_LOCALE');
307
+ /**
308
+ * Adapts type `D` to be usable as a date by cdk-based components that work with dates.
309
+ * @abstract
310
+ */
311
+ var DateAdapter = (function () {
312
+ function DateAdapter() {
313
+ this._localeChanges = new rxjs_Subject.Subject();
314
+ }
315
+ Object.defineProperty(DateAdapter.prototype, "localeChanges", {
316
+ /**
317
+ * A stream that emits when the locale changes.
318
+ * @return {?}
319
+ */
320
+ get: function () { return this._localeChanges; },
321
+ enumerable: true,
322
+ configurable: true
323
+ });
324
+ /**
325
+ * Gets the year component of the given date.
326
+ * @abstract
327
+ * @param {?} date The date to extract the year from.
328
+ * @return {?} The year component.
329
+ */
330
+ DateAdapter.prototype.getYear = function (date) { };
331
+ /**
332
+ * Gets the month component of the given date.
333
+ * @abstract
334
+ * @param {?} date The date to extract the month from.
335
+ * @return {?} The month component (0-indexed, 0 = January).
336
+ */
337
+ DateAdapter.prototype.getMonth = function (date) { };
338
+ /**
339
+ * Gets the date of the month component of the given date.
340
+ * @abstract
341
+ * @param {?} date The date to extract the date of the month from.
342
+ * @return {?} The month component (1-indexed, 1 = first of month).
343
+ */
344
+ DateAdapter.prototype.getDate = function (date) { };
345
+ /**
346
+ * Gets the day of the week component of the given date.
347
+ * @abstract
348
+ * @param {?} date The date to extract the day of the week from.
349
+ * @return {?} The month component (0-indexed, 0 = Sunday).
350
+ */
351
+ DateAdapter.prototype.getDayOfWeek = function (date) { };
352
+ /**
353
+ * Gets a list of names for the months.
354
+ * @abstract
355
+ * @param {?} style The naming style (e.g. long = 'January', short = 'Jan', narrow = 'J').
356
+ * @return {?} An ordered list of all month names, starting with January.
357
+ */
358
+ DateAdapter.prototype.getMonthNames = function (style$$1) { };
359
+ /**
360
+ * Gets a list of names for the dates of the month.
361
+ * @abstract
362
+ * @return {?} An ordered list of all date of the month names, starting with '1'.
363
+ */
364
+ DateAdapter.prototype.getDateNames = function () { };
365
+ /**
366
+ * Gets a list of names for the days of the week.
367
+ * @abstract
368
+ * @param {?} style The naming style (e.g. long = 'Sunday', short = 'Sun', narrow = 'S').
369
+ * @return {?} An ordered list of all weekday names, starting with Sunday.
370
+ */
371
+ DateAdapter.prototype.getDayOfWeekNames = function (style$$1) { };
372
+ /**
373
+ * Gets the name for the year of the given date.
374
+ * @abstract
375
+ * @param {?} date The date to get the year name for.
376
+ * @return {?} The name of the given year (e.g. '2017').
377
+ */
378
+ DateAdapter.prototype.getYearName = function (date) { };
379
+ /**
380
+ * Gets the first day of the week.
381
+ * @abstract
382
+ * @return {?} The first day of the week (0-indexed, 0 = Sunday).
383
+ */
384
+ DateAdapter.prototype.getFirstDayOfWeek = function () { };
385
+ /**
386
+ * Gets the number of days in the month of the given date.
387
+ * @abstract
388
+ * @param {?} date The date whose month should be checked.
389
+ * @return {?} The number of days in the month of the given date.
390
+ */
391
+ DateAdapter.prototype.getNumDaysInMonth = function (date) { };
392
+ /**
393
+ * Clones the given date.
394
+ * @abstract
395
+ * @param {?} date The date to clone
396
+ * @return {?} A new date equal to the given date.
397
+ */
398
+ DateAdapter.prototype.clone = function (date) { };
399
+ /**
400
+ * Creates a date with the given year, month, and date. Does not allow over/under-flow of the
401
+ * month and date.
402
+ * @abstract
403
+ * @param {?} year The full year of the date. (e.g. 89 means the year 89, not the year 1989).
404
+ * @param {?} month The month of the date (0-indexed, 0 = January). Must be an integer 0 - 11.
405
+ * @param {?} date The date of month of the date. Must be an integer 1 - length of the given month.
406
+ * @return {?} The new date, or null if invalid.
407
+ */
408
+ DateAdapter.prototype.createDate = function (year, month, date) { };
409
+ /**
410
+ * Gets today's date.
411
+ * @abstract
412
+ * @return {?} Today's date.
413
+ */
414
+ DateAdapter.prototype.today = function () { };
415
+ /**
416
+ * Parses a date from a value.
417
+ * @abstract
418
+ * @param {?} value The value to parse.
419
+ * @param {?} parseFormat The expected format of the value being parsed
420
+ * (type is implementation-dependent).
421
+ * @return {?} The parsed date.
422
+ */
423
+ DateAdapter.prototype.parse = function (value, parseFormat) { };
424
+ /**
425
+ * Formats a date as a string.
426
+ * @abstract
427
+ * @param {?} date The value to format.
428
+ * @param {?} displayFormat The format to use to display the date as a string.
429
+ * @return {?} The formatted date string.
430
+ */
431
+ DateAdapter.prototype.format = function (date, displayFormat) { };
432
+ /**
433
+ * Adds the given number of years to the date. Years are counted as if flipping 12 pages on the
434
+ * calendar for each year and then finding the closest date in the new month. For example when
435
+ * adding 1 year to Feb 29, 2016, the resulting date will be Feb 28, 2017.
436
+ * @abstract
437
+ * @param {?} date The date to add years to.
438
+ * @param {?} years The number of years to add (may be negative).
439
+ * @return {?} A new date equal to the given one with the specified number of years added.
440
+ */
441
+ DateAdapter.prototype.addCalendarYears = function (date, years) { };
442
+ /**
443
+ * Adds the given number of months to the date. Months are counted as if flipping a page on the
444
+ * calendar for each month and then finding the closest date in the new month. For example when
445
+ * adding 1 month to Jan 31, 2017, the resulting date will be Feb 28, 2017.
446
+ * @abstract
447
+ * @param {?} date The date to add months to.
448
+ * @param {?} months The number of months to add (may be negative).
449
+ * @return {?} A new date equal to the given one with the specified number of months added.
450
+ */
451
+ DateAdapter.prototype.addCalendarMonths = function (date, months) { };
452
+ /**
453
+ * Adds the given number of days to the date. Days are counted as if moving one cell on the
454
+ * calendar for each day.
455
+ * @abstract
456
+ * @param {?} date The date to add days to.
457
+ * @param {?} days The number of days to add (may be negative).
458
+ * @return {?} A new date equal to the given one with the specified number of days added.
459
+ */
460
+ DateAdapter.prototype.addCalendarDays = function (date, days) { };
461
+ /**
462
+ * Gets the RFC 3339 compatible string (https://tools.ietf.org/html/rfc3339) for the given date.
463
+ * @abstract
464
+ * @param {?} date The date to get the ISO date string for.
465
+ * @return {?} The ISO date string date string.
466
+ */
467
+ DateAdapter.prototype.toIso8601 = function (date) { };
468
+ /**
469
+ * Creates a date from an RFC 3339 compatible string (https://tools.ietf.org/html/rfc3339).
470
+ * @abstract
471
+ * @param {?} iso8601String The ISO date string to create a date from
472
+ * @return {?} The date created from the ISO date string.
473
+ */
474
+ DateAdapter.prototype.fromIso8601 = function (iso8601String) { };
475
+ /**
476
+ * Checks whether the given object is considered a date instance by this DateAdapter.
477
+ * @abstract
478
+ * @param {?} obj The object to check
479
+ * @return {?} Whether the object is a date instance.
480
+ */
481
+ DateAdapter.prototype.isDateInstance = function (obj) { };
482
+ /**
483
+ * Checks whether the given date is valid.
484
+ * @abstract
485
+ * @param {?} date The date to check.
486
+ * @return {?} Whether the date is valid.
487
+ */
488
+ DateAdapter.prototype.isValid = function (date) { };
489
+ /**
490
+ * Sets the locale used for all dates.
491
+ * @param {?} locale The new locale.
492
+ * @return {?}
493
+ */
494
+ DateAdapter.prototype.setLocale = function (locale) {
495
+ this.locale = locale;
496
+ this._localeChanges.next();
497
+ };
498
+ /**
499
+ * Compares two dates.
500
+ * @param {?} first The first date to compare.
501
+ * @param {?} second The second date to compare.
502
+ * @return {?} 0 if the dates are equal, a number less than 0 if the first date is earlier,
503
+ * a number greater than 0 if the first date is later.
504
+ */
505
+ DateAdapter.prototype.compareDate = function (first$$1, second) {
506
+ return this.getYear(first$$1) - this.getYear(second) ||
507
+ this.getMonth(first$$1) - this.getMonth(second) ||
508
+ this.getDate(first$$1) - this.getDate(second);
509
+ };
510
+ /**
511
+ * Checks if two dates are equal.
512
+ * @param {?} first The first date to check.
513
+ * @param {?} second The second date to check.
514
+ * Null dates are considered equal to other null dates.
515
+ * @return {?}
516
+ */
517
+ DateAdapter.prototype.sameDate = function (first$$1, second) {
518
+ return first$$1 && second ? !this.compareDate(first$$1, second) : first$$1 == second;
519
+ };
520
+ /**
521
+ * Clamp the given date between min and max dates.
522
+ * @param {?} date The date to clamp.
523
+ * @param {?=} min The minimum value to allow. If null or omitted no min is enforced.
524
+ * @param {?=} max The maximum value to allow. If null or omitted no max is enforced.
525
+ * @return {?} `min` if `date` is less than `min`, `max` if date is greater than `max`,
526
+ * otherwise `date`.
527
+ */
528
+ DateAdapter.prototype.clampDate = function (date, min, max) {
529
+ if (min && this.compareDate(date, min) < 0) {
530
+ return min;
531
+ }
532
+ if (max && this.compareDate(date, max) > 0) {
533
+ return max;
534
+ }
535
+ return date;
536
+ };
537
+ return DateAdapter;
538
+ }());
539
+
540
+ /**
541
+ * Extends an object with the *enumerable* and *own* properties of one or more source objects,
542
+ * similar to Object.assign.
543
+ *
544
+ * @param {?} dest The object which will have properties copied to it.
545
+ * @param {...?} sources The source objects from which properties will be copied.
546
+ * @return {?}
547
+ */
548
+ function extendObject(dest) {
549
+ var sources = [];
550
+ for (var _i = 1; _i < arguments.length; _i++) {
551
+ sources[_i - 1] = arguments[_i];
552
+ }
553
+ if (dest == null) {
554
+ throw TypeError('Cannot convert undefined or null to object');
555
+ }
556
+ for (var _a = 0, sources_1 = sources; _a < sources_1.length; _a++) {
557
+ var source = sources_1[_a];
558
+ if (source != null) {
559
+ for (var /** @type {?} */ key in source) {
560
+ if (source.hasOwnProperty(key)) {
561
+ dest[key] = source[key];
562
+ }
563
+ }
564
+ }
565
+ }
566
+ return dest;
567
+ }
568
+
569
+ /**
570
+ * Whether the browser supports the Intl API.
571
+ */
572
+ var SUPPORTS_INTL_API = typeof Intl != 'undefined';
573
+ /**
574
+ * The default month names to use if Intl API is not available.
575
+ */
576
+ var DEFAULT_MONTH_NAMES = {
577
+ 'long': [
578
+ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
579
+ 'October', 'November', 'December'
580
+ ],
581
+ 'short': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
582
+ 'narrow': ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']
583
+ };
584
+ /**
585
+ * The default date names to use if Intl API is not available.
586
+ */
587
+ var DEFAULT_DATE_NAMES = range(31, function (i) { return String(i + 1); });
588
+ /**
589
+ * The default day of the week names to use if Intl API is not available.
590
+ */
591
+ var DEFAULT_DAY_OF_WEEK_NAMES = {
592
+ 'long': ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
593
+ 'short': ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
594
+ 'narrow': ['S', 'M', 'T', 'W', 'T', 'F', 'S']
595
+ };
596
+ /**
597
+ * Matches strings that have the form of a valid RFC 3339 string
598
+ * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date
599
+ * because the regex will match strings an with out of bounds month, date, etc.
600
+ */
601
+ var ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
602
+ /**
603
+ * Creates an array and fills it with values.
604
+ * @template T
605
+ * @param {?} length
606
+ * @param {?} valueFunction
607
+ * @return {?}
608
+ */
609
+ function range(length, valueFunction) {
610
+ var /** @type {?} */ valuesArray = Array(length);
611
+ for (var /** @type {?} */ i = 0; i < length; i++) {
612
+ valuesArray[i] = valueFunction(i);
613
+ }
614
+ return valuesArray;
615
+ }
616
+ /**
617
+ * Adapts the native JS Date for use with cdk-based components that work with dates.
618
+ */
619
+ var NativeDateAdapter = (function (_super) {
620
+ __extends(NativeDateAdapter, _super);
621
+ /**
622
+ * @param {?} matDateLocale
623
+ */
624
+ function NativeDateAdapter(matDateLocale) {
625
+ var _this = _super.call(this) || this;
626
+ /**
627
+ * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.
628
+ * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off
629
+ * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`
630
+ * will produce `'8/13/1800'`.
631
+ */
632
+ _this.useUtcForDisplay = true;
633
+ _super.prototype.setLocale.call(_this, matDateLocale);
634
+ return _this;
635
+ }
636
+ /**
637
+ * @param {?} date
638
+ * @return {?}
639
+ */
640
+ NativeDateAdapter.prototype.getYear = function (date) {
641
+ return date.getFullYear();
642
+ };
643
+ /**
644
+ * @param {?} date
645
+ * @return {?}
646
+ */
647
+ NativeDateAdapter.prototype.getMonth = function (date) {
648
+ return date.getMonth();
649
+ };
650
+ /**
651
+ * @param {?} date
652
+ * @return {?}
653
+ */
654
+ NativeDateAdapter.prototype.getDate = function (date) {
655
+ return date.getDate();
656
+ };
657
+ /**
658
+ * @param {?} date
659
+ * @return {?}
660
+ */
661
+ NativeDateAdapter.prototype.getDayOfWeek = function (date) {
662
+ return date.getDay();
663
+ };
664
+ /**
665
+ * @param {?} style
666
+ * @return {?}
667
+ */
668
+ NativeDateAdapter.prototype.getMonthNames = function (style$$1) {
669
+ var _this = this;
670
+ if (SUPPORTS_INTL_API) {
671
+ var /** @type {?} */ dtf_1 = new Intl.DateTimeFormat(this.locale, { month: style$$1 });
672
+ return range(12, function (i) { return _this._stripDirectionalityCharacters(dtf_1.format(new Date(2017, i, 1))); });
673
+ }
674
+ return DEFAULT_MONTH_NAMES[style$$1];
675
+ };
676
+ /**
677
+ * @return {?}
678
+ */
679
+ NativeDateAdapter.prototype.getDateNames = function () {
680
+ var _this = this;
681
+ if (SUPPORTS_INTL_API) {
682
+ var /** @type {?} */ dtf_2 = new Intl.DateTimeFormat(this.locale, { day: 'numeric' });
683
+ return range(31, function (i) { return _this._stripDirectionalityCharacters(dtf_2.format(new Date(2017, 0, i + 1))); });
684
+ }
685
+ return DEFAULT_DATE_NAMES;
686
+ };
687
+ /**
688
+ * @param {?} style
689
+ * @return {?}
690
+ */
691
+ NativeDateAdapter.prototype.getDayOfWeekNames = function (style$$1) {
692
+ var _this = this;
693
+ if (SUPPORTS_INTL_API) {
694
+ var /** @type {?} */ dtf_3 = new Intl.DateTimeFormat(this.locale, { weekday: style$$1 });
695
+ return range(7, function (i) { return _this._stripDirectionalityCharacters(dtf_3.format(new Date(2017, 0, i + 1))); });
696
+ }
697
+ return DEFAULT_DAY_OF_WEEK_NAMES[style$$1];
698
+ };
699
+ /**
700
+ * @param {?} date
701
+ * @return {?}
702
+ */
703
+ NativeDateAdapter.prototype.getYearName = function (date) {
704
+ if (SUPPORTS_INTL_API) {
705
+ var /** @type {?} */ dtf = new Intl.DateTimeFormat(this.locale, { year: 'numeric' });
706
+ return this._stripDirectionalityCharacters(dtf.format(date));
707
+ }
708
+ return String(this.getYear(date));
709
+ };
710
+ /**
711
+ * @return {?}
712
+ */
713
+ NativeDateAdapter.prototype.getFirstDayOfWeek = function () {
714
+ // We can't tell using native JS Date what the first day of the week is, we default to Sunday.
715
+ return 0;
716
+ };
717
+ /**
718
+ * @param {?} date
719
+ * @return {?}
720
+ */
721
+ NativeDateAdapter.prototype.getNumDaysInMonth = function (date) {
722
+ return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0));
723
+ };
724
+ /**
725
+ * @param {?} date
726
+ * @return {?}
727
+ */
728
+ NativeDateAdapter.prototype.clone = function (date) {
729
+ return this.createDate(this.getYear(date), this.getMonth(date), this.getDate(date));
730
+ };
731
+ /**
732
+ * @param {?} year
733
+ * @param {?} month
734
+ * @param {?} date
735
+ * @return {?}
736
+ */
737
+ NativeDateAdapter.prototype.createDate = function (year, month, date) {
738
+ // Check for invalid month and date (except upper bound on date which we have to check after
739
+ // creating the Date).
740
+ if (month < 0 || month > 11) {
741
+ throw Error("Invalid month index \"" + month + "\". Month index has to be between 0 and 11.");
742
+ }
743
+ if (date < 1) {
744
+ throw Error("Invalid date \"" + date + "\". Date has to be greater than 0.");
745
+ }
746
+ var /** @type {?} */ result = this._createDateWithOverflow(year, month, date);
747
+ // Check that the date wasn't above the upper bound for the month, causing the month to overflow
748
+ if (result.getMonth() != month) {
749
+ throw Error("Invalid date \"" + date + "\" for month with index \"" + month + "\".");
750
+ }
751
+ return result;
752
+ };
753
+ /**
754
+ * @return {?}
755
+ */
756
+ NativeDateAdapter.prototype.today = function () {
757
+ return new Date();
758
+ };
759
+ /**
760
+ * @param {?} value
761
+ * @return {?}
762
+ */
763
+ NativeDateAdapter.prototype.parse = function (value) {
764
+ // We have no way using the native JS Date to set the parse format or locale, so we ignore these
765
+ // parameters.
766
+ if (typeof value == 'number') {
767
+ return new Date(value);
768
+ }
769
+ return value ? new Date(Date.parse(value)) : null;
770
+ };
771
+ /**
772
+ * @param {?} date
773
+ * @param {?} displayFormat
774
+ * @return {?}
775
+ */
776
+ NativeDateAdapter.prototype.format = function (date, displayFormat) {
777
+ if (!this.isValid(date)) {
778
+ throw Error('NativeDateAdapter: Cannot format invalid date.');
779
+ }
780
+ if (SUPPORTS_INTL_API) {
781
+ if (this.useUtcForDisplay) {
782
+ date = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
783
+ displayFormat = extendObject({}, displayFormat, { timeZone: 'utc' });
784
+ }
785
+ var /** @type {?} */ dtf = new Intl.DateTimeFormat(this.locale, displayFormat);
786
+ return this._stripDirectionalityCharacters(dtf.format(date));
787
+ }
788
+ return this._stripDirectionalityCharacters(date.toDateString());
789
+ };
790
+ /**
791
+ * @param {?} date
792
+ * @param {?} years
793
+ * @return {?}
794
+ */
795
+ NativeDateAdapter.prototype.addCalendarYears = function (date, years) {
796
+ return this.addCalendarMonths(date, years * 12);
797
+ };
798
+ /**
799
+ * @param {?} date
800
+ * @param {?} months
801
+ * @return {?}
802
+ */
803
+ NativeDateAdapter.prototype.addCalendarMonths = function (date, months) {
804
+ var /** @type {?} */ newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date));
805
+ // It's possible to wind up in the wrong month if the original month has more days than the new
806
+ // month. In this case we want to go to the last day of the desired month.
807
+ // Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't
808
+ // guarantee this.
809
+ if (this.getMonth(newDate) != ((this.getMonth(date) + months) % 12 + 12) % 12) {
810
+ newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0);
811
+ }
812
+ return newDate;
813
+ };
814
+ /**
815
+ * @param {?} date
816
+ * @param {?} days
817
+ * @return {?}
818
+ */
819
+ NativeDateAdapter.prototype.addCalendarDays = function (date, days) {
820
+ return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days);
821
+ };
822
+ /**
823
+ * @param {?} date
824
+ * @return {?}
825
+ */
826
+ NativeDateAdapter.prototype.toIso8601 = function (date) {
827
+ return [
828
+ date.getUTCFullYear(),
829
+ this._2digit(date.getUTCMonth() + 1),
830
+ this._2digit(date.getUTCDate())
831
+ ].join('-');
832
+ };
833
+ /**
834
+ * @param {?} iso8601String
835
+ * @return {?}
836
+ */
837
+ NativeDateAdapter.prototype.fromIso8601 = function (iso8601String) {
838
+ // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the
839
+ // string is the right format first.
840
+ if (ISO_8601_REGEX.test(iso8601String)) {
841
+ var /** @type {?} */ d = new Date(iso8601String);
842
+ if (this.isValid(d)) {
843
+ return d;
844
+ }
845
+ }
846
+ return null;
847
+ };
848
+ /**
849
+ * @param {?} obj
850
+ * @return {?}
851
+ */
852
+ NativeDateAdapter.prototype.isDateInstance = function (obj) {
853
+ return obj instanceof Date;
854
+ };
855
+ /**
856
+ * @param {?} date
857
+ * @return {?}
858
+ */
859
+ NativeDateAdapter.prototype.isValid = function (date) {
860
+ return !isNaN(date.getTime());
861
+ };
862
+ /**
863
+ * Creates a date but allows the month and date to overflow.
864
+ * @param {?} year
865
+ * @param {?} month
866
+ * @param {?} date
867
+ * @return {?}
868
+ */
869
+ NativeDateAdapter.prototype._createDateWithOverflow = function (year, month, date) {
870
+ var /** @type {?} */ result = new Date(year, month, date);
871
+ // We need to correct for the fact that JS native Date treats years in range [0, 99] as
872
+ // abbreviations for 19xx.
873
+ if (year >= 0 && year < 100) {
874
+ result.setFullYear(this.getYear(result) - 1900);
875
+ }
876
+ return result;
877
+ };
878
+ /**
879
+ * Pads a number to make it two digits.
880
+ * @param {?} n The number to pad.
881
+ * @return {?} The padded number.
882
+ */
883
+ NativeDateAdapter.prototype._2digit = function (n) {
884
+ return ('00' + n).slice(-2);
885
+ };
886
+ /**
887
+ * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
888
+ * other browsers do not. We remove them to make output consistent and because they interfere with
889
+ * date parsing.
890
+ * @param {?} str The string to strip direction characters from.
891
+ * @return {?} The stripped string.
892
+ */
893
+ NativeDateAdapter.prototype._stripDirectionalityCharacters = function (str) {
894
+ return str.replace(/[\u200e\u200f]/g, '');
895
+ };
896
+ NativeDateAdapter.decorators = [
897
+ { type: _angular_core.Injectable },
898
+ ];
899
+ /**
900
+ * @nocollapse
901
+ */
902
+ NativeDateAdapter.ctorParameters = function () { return [
903
+ { type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [MAT_DATE_LOCALE,] },] },
904
+ ]; };
905
+ return NativeDateAdapter;
906
+ }(DateAdapter));
907
+
908
+ var MAT_DATE_FORMATS = new _angular_core.InjectionToken('mat-date-formats');
909
+
910
+ /**
911
+ * Provider that defines how form controls behave with regards to displaying error messages.
912
+ */
913
+ var ErrorStateMatcher = (function () {
914
+ function ErrorStateMatcher() {
915
+ }
916
+ /**
917
+ * @param {?} control
918
+ * @param {?} form
919
+ * @return {?}
920
+ */
921
+ ErrorStateMatcher.prototype.isErrorState = function (control, form) {
922
+ return !!(control && control.invalid && (control.touched || (form && form.submitted)));
923
+ };
924
+ ErrorStateMatcher.decorators = [
925
+ { type: _angular_core.Injectable },
926
+ ];
927
+ /**
928
+ * @nocollapse
929
+ */
930
+ ErrorStateMatcher.ctorParameters = function () { return []; };
931
+ return ErrorStateMatcher;
932
+ }());
933
+
934
+ var GestureConfig = (function (_super) {
935
+ __extends(GestureConfig, _super);
936
+ function GestureConfig() {
937
+ var _this = _super.call(this) || this;
938
+ _this._hammer = typeof window !== 'undefined' ? ((window)).Hammer : null;
939
+ /* List of new event names to add to the gesture support list */
940
+ _this.events = _this._hammer ? [
941
+ 'longpress',
942
+ 'slide',
943
+ 'slidestart',
944
+ 'slideend',
945
+ 'slideright',
946
+ 'slideleft'
947
+ ] : [];
948
+ if (!_this._hammer && _angular_core.isDevMode()) {
949
+ console.warn('Could not find HammerJS. Certain Angular Material ' +
950
+ 'components may not work correctly.');
951
+ }
952
+ return _this;
953
+ }
954
+ /**
955
+ * Builds Hammer instance manually to add custom recognizers that match the Material Design spec.
956
+ *
957
+ * Our gesture names come from the Material Design gestures spec:
958
+ * https://www.google.com/design/spec/patterns/gestures.html#gestures-touch-mechanics
959
+ *
960
+ * More information on default recognizers can be found in Hammer docs:
961
+ * http://hammerjs.github.io/recognizer-pan/
962
+ * http://hammerjs.github.io/recognizer-press/
963
+ *
964
+ * @param {?} element Element to which to assign the new HammerJS gestures.
965
+ * @return {?} Newly-created HammerJS instance.
966
+ */
967
+ GestureConfig.prototype.buildHammer = function (element) {
968
+ var /** @type {?} */ mc = new this._hammer(element);
969
+ // Default Hammer Recognizers.
970
+ var /** @type {?} */ pan = new this._hammer.Pan();
971
+ var /** @type {?} */ swipe = new this._hammer.Swipe();
972
+ var /** @type {?} */ press = new this._hammer.Press();
973
+ // Notice that a HammerJS recognizer can only depend on one other recognizer once.
974
+ // Otherwise the previous `recognizeWith` will be dropped.
975
+ // TODO: Confirm threshold numbers with Material Design UX Team
976
+ var /** @type {?} */ slide = this._createRecognizer(pan, { event: 'slide', threshold: 0 }, swipe);
977
+ var /** @type {?} */ longpress = this._createRecognizer(press, { event: 'longpress', time: 500 });
978
+ // Overwrite the default `pan` event to use the swipe event.
979
+ pan.recognizeWith(swipe);
980
+ // Add customized gestures to Hammer manager
981
+ mc.add([swipe, press, pan, slide, longpress]);
982
+ return (mc);
983
+ };
984
+ /**
985
+ * Creates a new recognizer, without affecting the default recognizers of HammerJS
986
+ * @param {?} base
987
+ * @param {?} options
988
+ * @param {...?} inheritances
989
+ * @return {?}
990
+ */
991
+ GestureConfig.prototype._createRecognizer = function (base, options) {
992
+ var inheritances = [];
993
+ for (var _i = 2; _i < arguments.length; _i++) {
994
+ inheritances[_i - 2] = arguments[_i];
995
+ }
996
+ var /** @type {?} */ recognizer = new ((base.constructor))(options);
997
+ inheritances.push(base);
998
+ inheritances.forEach(function (item) { return recognizer.recognizeWith(item); });
999
+ return recognizer;
1000
+ };
1001
+ GestureConfig.decorators = [
1002
+ { type: _angular_core.Injectable },
1003
+ ];
1004
+ /**
1005
+ * @nocollapse
1006
+ */
1007
+ GestureConfig.ctorParameters = function () { return []; };
1008
+ return GestureConfig;
1009
+ }(_angular_platformBrowser.HammerGestureConfig));
1010
+
1011
+ var RippleState = {};
1012
+ RippleState.FADING_IN = 0;
1013
+ RippleState.VISIBLE = 1;
1014
+ RippleState.FADING_OUT = 2;
1015
+ RippleState.HIDDEN = 3;
1016
+ RippleState[RippleState.FADING_IN] = "FADING_IN";
1017
+ RippleState[RippleState.VISIBLE] = "VISIBLE";
1018
+ RippleState[RippleState.FADING_OUT] = "FADING_OUT";
1019
+ RippleState[RippleState.HIDDEN] = "HIDDEN";
1020
+ /**
1021
+ * Reference to a previously launched ripple element.
1022
+ */
1023
+ var RippleRef = (function () {
1024
+ /**
1025
+ * @param {?} _renderer
1026
+ * @param {?} element
1027
+ * @param {?} config
1028
+ */
1029
+ function RippleRef(_renderer, element, config) {
1030
+ this._renderer = _renderer;
1031
+ this.element = element;
1032
+ this.config = config;
1033
+ /**
1034
+ * Current state of the ripple reference.
1035
+ */
1036
+ this.state = RippleState.HIDDEN;
1037
+ }
1038
+ /**
1039
+ * Fades out the ripple element.
1040
+ * @return {?}
1041
+ */
1042
+ RippleRef.prototype.fadeOut = function () {
1043
+ this._renderer.fadeOutRipple(this);
1044
+ };
1045
+ return RippleRef;
1046
+ }());
1047
+
1048
+ /**
1049
+ * Fade-in duration for the ripples. Can be modified with the speedFactor option.
1050
+ */
1051
+ var RIPPLE_FADE_IN_DURATION = 450;
1052
+ /**
1053
+ * Fade-out duration for the ripples in milliseconds. This can't be modified by the speedFactor.
1054
+ */
1055
+ var RIPPLE_FADE_OUT_DURATION = 400;
1056
+ /**
1057
+ * Helper service that performs DOM manipulations. Not intended to be used outside this module.
1058
+ * The constructor takes a reference to the ripple directive's host element and a map of DOM
1059
+ * event handlers to be installed on the element that triggers ripple animations.
1060
+ * This will eventually become a custom renderer once Angular support exists.
1061
+ * \@docs-private
1062
+ */
1063
+ var RippleRenderer = (function () {
1064
+ /**
1065
+ * @param {?} elementRef
1066
+ * @param {?} _ngZone
1067
+ * @param {?} platform
1068
+ */
1069
+ function RippleRenderer(elementRef, _ngZone, platform) {
1070
+ this._ngZone = _ngZone;
1071
+ /**
1072
+ * Whether the pointer is currently being held on the trigger or not.
1073
+ */
1074
+ this._isPointerDown = false;
1075
+ /**
1076
+ * Events to be registered on the trigger element.
1077
+ */
1078
+ this._triggerEvents = new Map();
1079
+ /**
1080
+ * Set of currently active ripple references.
1081
+ */
1082
+ this._activeRipples = new Set();
1083
+ /**
1084
+ * Ripple config for all ripples created by events.
1085
+ */
1086
+ this.rippleConfig = {};
1087
+ /**
1088
+ * Whether mouse ripples should be created or not.
1089
+ */
1090
+ this.rippleDisabled = false;
1091
+ // Only do anything if we're on the browser.
1092
+ if (platform.isBrowser) {
1093
+ this._containerElement = elementRef.nativeElement;
1094
+ // Specify events which need to be registered on the trigger.
1095
+ this._triggerEvents.set('mousedown', this.onMousedown.bind(this));
1096
+ this._triggerEvents.set('touchstart', this.onTouchstart.bind(this));
1097
+ this._triggerEvents.set('mouseup', this.onPointerUp.bind(this));
1098
+ this._triggerEvents.set('touchend', this.onPointerUp.bind(this));
1099
+ this._triggerEvents.set('mouseleave', this.onPointerLeave.bind(this));
1100
+ // By default use the host element as trigger element.
1101
+ this.setTriggerElement(this._containerElement);
1102
+ }
1103
+ }
1104
+ /**
1105
+ * Fades in a ripple at the given coordinates.
1106
+ * @param {?} x Coordinate within the element, along the X axis at which to start the ripple.
1107
+ * @param {?} y
1108
+ * @param {?=} config Extra ripple options.
1109
+ * @return {?}
1110
+ */
1111
+ RippleRenderer.prototype.fadeInRipple = function (x, y, config) {
1112
+ var _this = this;
1113
+ if (config === void 0) { config = {}; }
1114
+ var /** @type {?} */ containerRect = this._containerElement.getBoundingClientRect();
1115
+ if (config.centered) {
1116
+ x = containerRect.left + containerRect.width / 2;
1117
+ y = containerRect.top + containerRect.height / 2;
1118
+ }
1119
+ var /** @type {?} */ radius = config.radius || distanceToFurthestCorner(x, y, containerRect);
1120
+ var /** @type {?} */ duration = RIPPLE_FADE_IN_DURATION * (1 / (config.speedFactor || 1));
1121
+ var /** @type {?} */ offsetX = x - containerRect.left;
1122
+ var /** @type {?} */ offsetY = y - containerRect.top;
1123
+ var /** @type {?} */ ripple = document.createElement('div');
1124
+ ripple.classList.add('mat-ripple-element');
1125
+ ripple.style.left = offsetX - radius + "px";
1126
+ ripple.style.top = offsetY - radius + "px";
1127
+ ripple.style.height = radius * 2 + "px";
1128
+ ripple.style.width = radius * 2 + "px";
1129
+ // If the color is not set, the default CSS color will be used.
1130
+ ripple.style.backgroundColor = config.color || null;
1131
+ ripple.style.transitionDuration = duration + "ms";
1132
+ this._containerElement.appendChild(ripple);
1133
+ // By default the browser does not recalculate the styles of dynamically created
1134
+ // ripple elements. This is critical because then the `scale` would not animate properly.
1135
+ enforceStyleRecalculation(ripple);
1136
+ ripple.style.transform = 'scale(1)';
1137
+ // Exposed reference to the ripple that will be returned.
1138
+ var /** @type {?} */ rippleRef = new RippleRef(this, ripple, config);
1139
+ rippleRef.state = RippleState.FADING_IN;
1140
+ // Add the ripple reference to the list of all active ripples.
1141
+ this._activeRipples.add(rippleRef);
1142
+ // Wait for the ripple element to be completely faded in.
1143
+ // Once it's faded in, the ripple can be hidden immediately if the mouse is released.
1144
+ this.runTimeoutOutsideZone(function () {
1145
+ rippleRef.state = RippleState.VISIBLE;
1146
+ if (!config.persistent && !_this._isPointerDown) {
1147
+ rippleRef.fadeOut();
1148
+ }
1149
+ }, duration);
1150
+ return rippleRef;
1151
+ };
1152
+ /**
1153
+ * Fades out a ripple reference.
1154
+ * @param {?} rippleRef
1155
+ * @return {?}
1156
+ */
1157
+ RippleRenderer.prototype.fadeOutRipple = function (rippleRef) {
1158
+ // For ripples that are not active anymore, don't re-un the fade-out animation.
1159
+ if (!this._activeRipples.delete(rippleRef)) {
1160
+ return;
1161
+ }
1162
+ var /** @type {?} */ rippleEl = rippleRef.element;
1163
+ rippleEl.style.transitionDuration = RIPPLE_FADE_OUT_DURATION + "ms";
1164
+ rippleEl.style.opacity = '0';
1165
+ rippleRef.state = RippleState.FADING_OUT;
1166
+ // Once the ripple faded out, the ripple can be safely removed from the DOM.
1167
+ this.runTimeoutOutsideZone(function () {
1168
+ rippleRef.state = RippleState.HIDDEN; /** @type {?} */
1169
+ ((rippleEl.parentNode)).removeChild(rippleEl);
1170
+ }, RIPPLE_FADE_OUT_DURATION);
1171
+ };
1172
+ /**
1173
+ * Fades out all currently active ripples.
1174
+ * @return {?}
1175
+ */
1176
+ RippleRenderer.prototype.fadeOutAll = function () {
1177
+ this._activeRipples.forEach(function (ripple) { return ripple.fadeOut(); });
1178
+ };
1179
+ /**
1180
+ * Sets the trigger element and registers the mouse events.
1181
+ * @param {?} element
1182
+ * @return {?}
1183
+ */
1184
+ RippleRenderer.prototype.setTriggerElement = function (element) {
1185
+ var _this = this;
1186
+ // Remove all previously register event listeners from the trigger element.
1187
+ if (this._triggerElement) {
1188
+ this._triggerEvents.forEach(function (fn, type) {
1189
+ ((_this._triggerElement)).removeEventListener(type, fn);
1190
+ });
1191
+ }
1192
+ if (element) {
1193
+ // If the element is not null, register all event listeners on the trigger element.
1194
+ this._ngZone.runOutsideAngular(function () {
1195
+ _this._triggerEvents.forEach(function (fn, type) { return element.addEventListener(type, fn); });
1196
+ });
1197
+ }
1198
+ this._triggerElement = element;
1199
+ };
1200
+ /**
1201
+ * Function being called whenever the trigger is being pressed.
1202
+ * @param {?} event
1203
+ * @return {?}
1204
+ */
1205
+ RippleRenderer.prototype.onMousedown = function (event) {
1206
+ if (!this.rippleDisabled) {
1207
+ this._isPointerDown = true;
1208
+ this.fadeInRipple(event.clientX, event.clientY, this.rippleConfig);
1209
+ }
1210
+ };
1211
+ /**
1212
+ * Function being called whenever the pointer is being released.
1213
+ * @return {?}
1214
+ */
1215
+ RippleRenderer.prototype.onPointerUp = function () {
1216
+ this._isPointerDown = false;
1217
+ // Fade-out all ripples that are completely visible and not persistent.
1218
+ this._activeRipples.forEach(function (ripple) {
1219
+ if (!ripple.config.persistent && ripple.state === RippleState.VISIBLE) {
1220
+ ripple.fadeOut();
1221
+ }
1222
+ });
1223
+ };
1224
+ /**
1225
+ * Function being called whenever the pointer leaves the trigger.
1226
+ * @return {?}
1227
+ */
1228
+ RippleRenderer.prototype.onPointerLeave = function () {
1229
+ if (this._isPointerDown) {
1230
+ this.onPointerUp();
1231
+ }
1232
+ };
1233
+ /**
1234
+ * Function being called whenever the trigger is being touched.
1235
+ * @param {?} event
1236
+ * @return {?}
1237
+ */
1238
+ RippleRenderer.prototype.onTouchstart = function (event) {
1239
+ if (!this.rippleDisabled) {
1240
+ var _a = event.touches[0], clientX = _a.clientX, clientY = _a.clientY;
1241
+ this._isPointerDown = true;
1242
+ this.fadeInRipple(clientX, clientY, this.rippleConfig);
1243
+ }
1244
+ };
1245
+ /**
1246
+ * Runs a timeout outside of the Angular zone to avoid triggering the change detection.
1247
+ * @param {?} fn
1248
+ * @param {?=} delay
1249
+ * @return {?}
1250
+ */
1251
+ RippleRenderer.prototype.runTimeoutOutsideZone = function (fn, delay) {
1252
+ if (delay === void 0) { delay = 0; }
1253
+ this._ngZone.runOutsideAngular(function () { return setTimeout(fn, delay); });
1254
+ };
1255
+ return RippleRenderer;
1256
+ }());
1257
+ /**
1258
+ * @param {?} element
1259
+ * @return {?}
1260
+ */
1261
+ function enforceStyleRecalculation(element) {
1262
+ // Enforce a style recalculation by calling `getComputedStyle` and accessing any property.
1263
+ // Calling `getPropertyValue` is important to let optimizers know that this is not a noop.
1264
+ // See: https://gist.github.com/paulirish/5d52fb081b3570c81e3a
1265
+ window.getComputedStyle(element).getPropertyValue('opacity');
1266
+ }
1267
+ /**
1268
+ * Returns the distance from the point (x, y) to the furthest corner of a rectangle.
1269
+ * @param {?} x
1270
+ * @param {?} y
1271
+ * @param {?} rect
1272
+ * @return {?}
1273
+ */
1274
+ function distanceToFurthestCorner(x, y, rect) {
1275
+ var /** @type {?} */ distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right));
1276
+ var /** @type {?} */ distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom));
1277
+ return Math.sqrt(distX * distX + distY * distY);
1278
+ }
1279
+
1280
+ /**
1281
+ * Injection token that can be used to specify the global ripple options.
1282
+ */
1283
+ var MAT_RIPPLE_GLOBAL_OPTIONS = new _angular_core.InjectionToken('mat-ripple-global-options');
1284
+ var MatRipple = (function () {
1285
+ /**
1286
+ * @param {?} elementRef
1287
+ * @param {?} ngZone
1288
+ * @param {?} platform
1289
+ * @param {?} globalOptions
1290
+ */
1291
+ function MatRipple(elementRef, ngZone, platform, globalOptions) {
1292
+ /**
1293
+ * If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius
1294
+ * will be the distance from the center of the ripple to the furthest corner of the host element's
1295
+ * bounding rectangle.
1296
+ */
1297
+ this.radius = 0;
1298
+ /**
1299
+ * If set, the normal duration of ripple animations is divided by this value. For example,
1300
+ * setting it to 0.5 will cause the animations to take twice as long.
1301
+ * A changed speedFactor will not modify the fade-out duration of the ripples.
1302
+ */
1303
+ this.speedFactor = 1;
1304
+ this._rippleRenderer = new RippleRenderer(elementRef, ngZone, platform);
1305
+ this._globalOptions = globalOptions ? globalOptions : {};
1306
+ this._updateRippleRenderer();
1307
+ }
1308
+ /**
1309
+ * @param {?} changes
1310
+ * @return {?}
1311
+ */
1312
+ MatRipple.prototype.ngOnChanges = function (changes) {
1313
+ if ((changes['trigger'] || changes['_matRippleTrigger']) && this.trigger) {
1314
+ this._rippleRenderer.setTriggerElement(this.trigger);
1315
+ }
1316
+ this._updateRippleRenderer();
1317
+ };
1318
+ /**
1319
+ * @return {?}
1320
+ */
1321
+ MatRipple.prototype.ngOnDestroy = function () {
1322
+ // Set the trigger element to null to cleanup all listeners.
1323
+ this._rippleRenderer.setTriggerElement(null);
1324
+ };
1325
+ /**
1326
+ * Launches a manual ripple at the specified position.
1327
+ * @param {?} x
1328
+ * @param {?} y
1329
+ * @param {?=} config
1330
+ * @return {?}
1331
+ */
1332
+ MatRipple.prototype.launch = function (x, y, config) {
1333
+ if (config === void 0) { config = this.rippleConfig; }
1334
+ return this._rippleRenderer.fadeInRipple(x, y, config);
1335
+ };
1336
+ /**
1337
+ * Fades out all currently showing ripple elements.
1338
+ * @return {?}
1339
+ */
1340
+ MatRipple.prototype.fadeOutAll = function () {
1341
+ this._rippleRenderer.fadeOutAll();
1342
+ };
1343
+ Object.defineProperty(MatRipple.prototype, "rippleConfig", {
1344
+ /**
1345
+ * Ripple configuration from the directive's input values.
1346
+ * @return {?}
1347
+ */
1348
+ get: function () {
1349
+ return {
1350
+ centered: this.centered,
1351
+ speedFactor: this.speedFactor * (this._globalOptions.baseSpeedFactor || 1),
1352
+ radius: this.radius,
1353
+ color: this.color
1354
+ };
1355
+ },
1356
+ enumerable: true,
1357
+ configurable: true
1358
+ });
1359
+ /**
1360
+ * Updates the ripple renderer with the latest ripple configuration.
1361
+ * @return {?}
1362
+ */
1363
+ MatRipple.prototype._updateRippleRenderer = function () {
1364
+ this._rippleRenderer.rippleDisabled = this._globalOptions.disabled || this.disabled;
1365
+ this._rippleRenderer.rippleConfig = this.rippleConfig;
1366
+ };
1367
+ MatRipple.decorators = [
1368
+ { type: _angular_core.Directive, args: [{
1369
+ selector: '[mat-ripple], [matRipple]',
1370
+ exportAs: 'matRipple',
1371
+ host: {
1372
+ 'class': 'mat-ripple',
1373
+ '[class.mat-ripple-unbounded]': 'unbounded'
1374
+ }
1375
+ },] },
1376
+ ];
1377
+ /**
1378
+ * @nocollapse
1379
+ */
1380
+ MatRipple.ctorParameters = function () { return [
1381
+ { type: _angular_core.ElementRef, },
1382
+ { type: _angular_core.NgZone, },
1383
+ { type: _angular_cdk_platform.Platform, },
1384
+ { type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [MAT_RIPPLE_GLOBAL_OPTIONS,] },] },
1385
+ ]; };
1386
+ MatRipple.propDecorators = {
1387
+ 'trigger': [{ type: _angular_core.Input, args: ['matRippleTrigger',] },],
1388
+ 'centered': [{ type: _angular_core.Input, args: ['matRippleCentered',] },],
1389
+ 'disabled': [{ type: _angular_core.Input, args: ['matRippleDisabled',] },],
1390
+ 'radius': [{ type: _angular_core.Input, args: ['matRippleRadius',] },],
1391
+ 'speedFactor': [{ type: _angular_core.Input, args: ['matRippleSpeedFactor',] },],
1392
+ 'color': [{ type: _angular_core.Input, args: ['matRippleColor',] },],
1393
+ 'unbounded': [{ type: _angular_core.Input, args: ['matRippleUnbounded',] },],
1394
+ };
1395
+ return MatRipple;
1396
+ }());
1397
+
1398
+ var MatRippleModule = (function () {
1399
+ function MatRippleModule() {
1400
+ }
1401
+ MatRippleModule.decorators = [
1402
+ { type: _angular_core.NgModule, args: [{
1403
+ imports: [MatCommonModule, _angular_cdk_platform.PlatformModule],
1404
+ exports: [MatRipple, MatCommonModule],
1405
+ declarations: [MatRipple],
1406
+ },] },
1407
+ ];
1408
+ /**
1409
+ * @nocollapse
1410
+ */
1411
+ MatRippleModule.ctorParameters = function () { return []; };
1412
+ return MatRippleModule;
1413
+ }());
1414
+
1415
+ /**
1416
+ * \@docs-private
1417
+ */
1418
+ var MatOptgroupBase = (function () {
1419
+ function MatOptgroupBase() {
1420
+ }
1421
+ return MatOptgroupBase;
1422
+ }());
1423
+ var _MatOptgroupMixinBase = mixinDisabled(MatOptgroupBase);
1424
+ // Counter for unique group ids.
1425
+ var _uniqueOptgroupIdCounter = 0;
1426
+ /**
1427
+ * Component that is used to group instances of `mat-option`.
1428
+ */
1429
+ var MatOptgroup = (function (_super) {
1430
+ __extends(MatOptgroup, _super);
1431
+ function MatOptgroup() {
1432
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1433
+ /**
1434
+ * Unique id for the underlying label.
1435
+ */
1436
+ _this._labelId = "mat-optgroup-label-" + _uniqueOptgroupIdCounter++;
1437
+ return _this;
1438
+ }
1439
+ MatOptgroup.decorators = [
1440
+ { type: _angular_core.Component, args: [{selector: 'mat-optgroup',
1441
+ exportAs: 'matOptgroup',
1442
+ template: "<label class=\"mat-optgroup-label\" [id]=\"_labelId\">{{ label }}</label><ng-content select=\"mat-option\"></ng-content>",
1443
+ encapsulation: _angular_core.ViewEncapsulation.None,
1444
+ preserveWhitespaces: false,
1445
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
1446
+ inputs: ['disabled'],
1447
+ host: {
1448
+ 'class': 'mat-optgroup',
1449
+ 'role': 'group',
1450
+ '[class.mat-optgroup-disabled]': 'disabled',
1451
+ '[attr.aria-disabled]': 'disabled.toString()',
1452
+ '[attr.aria-labelledby]': '_labelId',
1453
+ }
1454
+ },] },
1455
+ ];
1456
+ /**
1457
+ * @nocollapse
1458
+ */
1459
+ MatOptgroup.ctorParameters = function () { return []; };
1460
+ MatOptgroup.propDecorators = {
1461
+ 'label': [{ type: _angular_core.Input },],
1462
+ };
1463
+ return MatOptgroup;
1464
+ }(_MatOptgroupMixinBase));
1465
+
1466
+ /**
1467
+ * Option IDs need to be unique across components, so this counter exists outside of
1468
+ * the component definition.
1469
+ */
1470
+ var _uniqueIdCounter = 0;
1471
+ /**
1472
+ * Event object emitted by MatOption when selected or deselected.
1473
+ */
1474
+ var MatOptionSelectionChange = (function () {
1475
+ /**
1476
+ * @param {?} source
1477
+ * @param {?=} isUserInput
1478
+ */
1479
+ function MatOptionSelectionChange(source, isUserInput) {
1480
+ if (isUserInput === void 0) { isUserInput = false; }
1481
+ this.source = source;
1482
+ this.isUserInput = isUserInput;
1483
+ }
1484
+ return MatOptionSelectionChange;
1485
+ }());
1486
+ /**
1487
+ * Single option inside of a `<mat-select>` element.
1488
+ */
1489
+ var MatOption = (function () {
1490
+ /**
1491
+ * @param {?} _element
1492
+ * @param {?} _changeDetectorRef
1493
+ * @param {?} group
1494
+ */
1495
+ function MatOption(_element, _changeDetectorRef, group) {
1496
+ this._element = _element;
1497
+ this._changeDetectorRef = _changeDetectorRef;
1498
+ this.group = group;
1499
+ this._selected = false;
1500
+ this._active = false;
1501
+ this._multiple = false;
1502
+ this._disableRipple = false;
1503
+ /**
1504
+ * Whether the option is disabled.
1505
+ */
1506
+ this._disabled = false;
1507
+ this._id = "mat-option-" + _uniqueIdCounter++;
1508
+ /**
1509
+ * Event emitted when the option is selected or deselected.
1510
+ */
1511
+ this.onSelectionChange = new _angular_core.EventEmitter();
1512
+ }
1513
+ Object.defineProperty(MatOption.prototype, "multiple", {
1514
+ /**
1515
+ * Whether the wrapping component is in multiple selection mode.
1516
+ * @return {?}
1517
+ */
1518
+ get: function () { return this._multiple; },
1519
+ /**
1520
+ * @param {?} value
1521
+ * @return {?}
1522
+ */
1523
+ set: function (value) {
1524
+ if (value !== this._multiple) {
1525
+ this._multiple = value;
1526
+ this._changeDetectorRef.markForCheck();
1527
+ }
1528
+ },
1529
+ enumerable: true,
1530
+ configurable: true
1531
+ });
1532
+ Object.defineProperty(MatOption.prototype, "id", {
1533
+ /**
1534
+ * The unique ID of the option.
1535
+ * @return {?}
1536
+ */
1537
+ get: function () { return this._id; },
1538
+ enumerable: true,
1539
+ configurable: true
1540
+ });
1541
+ Object.defineProperty(MatOption.prototype, "selected", {
1542
+ /**
1543
+ * Whether or not the option is currently selected.
1544
+ * @return {?}
1545
+ */
1546
+ get: function () { return this._selected; },
1547
+ enumerable: true,
1548
+ configurable: true
1549
+ });
1550
+ Object.defineProperty(MatOption.prototype, "disabled", {
1551
+ /**
1552
+ * Whether the option is disabled.
1553
+ * @return {?}
1554
+ */
1555
+ get: function () { return (this.group && this.group.disabled) || this._disabled; },
1556
+ /**
1557
+ * @param {?} value
1558
+ * @return {?}
1559
+ */
1560
+ set: function (value) { this._disabled = _angular_cdk_coercion.coerceBooleanProperty(value); },
1561
+ enumerable: true,
1562
+ configurable: true
1563
+ });
1564
+ Object.defineProperty(MatOption.prototype, "disableRipple", {
1565
+ /**
1566
+ * Whether ripples for the option are disabled.
1567
+ * @return {?}
1568
+ */
1569
+ get: function () { return this._disableRipple; },
1570
+ /**
1571
+ * @param {?} value
1572
+ * @return {?}
1573
+ */
1574
+ set: function (value) {
1575
+ this._disableRipple = value;
1576
+ this._changeDetectorRef.markForCheck();
1577
+ },
1578
+ enumerable: true,
1579
+ configurable: true
1580
+ });
1581
+ Object.defineProperty(MatOption.prototype, "active", {
1582
+ /**
1583
+ * Whether or not the option is currently active and ready to be selected.
1584
+ * An active option displays styles as if it is focused, but the
1585
+ * focus is actually retained somewhere else. This comes in handy
1586
+ * for components like autocomplete where focus must remain on the input.
1587
+ * @return {?}
1588
+ */
1589
+ get: function () {
1590
+ return this._active;
1591
+ },
1592
+ enumerable: true,
1593
+ configurable: true
1594
+ });
1595
+ Object.defineProperty(MatOption.prototype, "viewValue", {
1596
+ /**
1597
+ * The displayed value of the option. It is necessary to show the selected option in the
1598
+ * select's trigger.
1599
+ * @return {?}
1600
+ */
1601
+ get: function () {
1602
+ // TODO(kara): Add input property alternative for node envs.
1603
+ return (this._getHostElement().textContent || '').trim();
1604
+ },
1605
+ enumerable: true,
1606
+ configurable: true
1607
+ });
1608
+ /**
1609
+ * Selects the option.
1610
+ * @return {?}
1611
+ */
1612
+ MatOption.prototype.select = function () {
1613
+ this._selected = true;
1614
+ this._changeDetectorRef.markForCheck();
1615
+ this._emitSelectionChangeEvent();
1616
+ };
1617
+ /**
1618
+ * Deselects the option.
1619
+ * @return {?}
1620
+ */
1621
+ MatOption.prototype.deselect = function () {
1622
+ this._selected = false;
1623
+ this._changeDetectorRef.markForCheck();
1624
+ this._emitSelectionChangeEvent();
1625
+ };
1626
+ /**
1627
+ * Sets focus onto this option.
1628
+ * @return {?}
1629
+ */
1630
+ MatOption.prototype.focus = function () {
1631
+ var /** @type {?} */ element = this._getHostElement();
1632
+ if (typeof element.focus === 'function') {
1633
+ element.focus();
1634
+ }
1635
+ };
1636
+ /**
1637
+ * This method sets display styles on the option to make it appear
1638
+ * active. This is used by the ActiveDescendantKeyManager so key
1639
+ * events will display the proper options as active on arrow key events.
1640
+ * @return {?}
1641
+ */
1642
+ MatOption.prototype.setActiveStyles = function () {
1643
+ if (!this._active) {
1644
+ this._active = true;
1645
+ this._changeDetectorRef.markForCheck();
1646
+ }
1647
+ };
1648
+ /**
1649
+ * This method removes display styles on the option that made it appear
1650
+ * active. This is used by the ActiveDescendantKeyManager so key
1651
+ * events will display the proper options as active on arrow key events.
1652
+ * @return {?}
1653
+ */
1654
+ MatOption.prototype.setInactiveStyles = function () {
1655
+ if (this._active) {
1656
+ this._active = false;
1657
+ this._changeDetectorRef.markForCheck();
1658
+ }
1659
+ };
1660
+ /**
1661
+ * Gets the label to be used when determining whether the option should be focused.
1662
+ * @return {?}
1663
+ */
1664
+ MatOption.prototype.getLabel = function () {
1665
+ return this.viewValue;
1666
+ };
1667
+ /**
1668
+ * Ensures the option is selected when activated from the keyboard.
1669
+ * @param {?} event
1670
+ * @return {?}
1671
+ */
1672
+ MatOption.prototype._handleKeydown = function (event) {
1673
+ if (event.keyCode === _angular_cdk_keycodes.ENTER || event.keyCode === _angular_cdk_keycodes.SPACE) {
1674
+ this._selectViaInteraction();
1675
+ // Prevent the page from scrolling down and form submits.
1676
+ event.preventDefault();
1677
+ }
1678
+ };
1679
+ /**
1680
+ * Selects the option while indicating the selection came from the user. Used to
1681
+ * determine if the select's view -> model callback should be invoked.
1682
+ * @return {?}
1683
+ */
1684
+ MatOption.prototype._selectViaInteraction = function () {
1685
+ if (!this.disabled) {
1686
+ this._selected = this.multiple ? !this._selected : true;
1687
+ this._changeDetectorRef.markForCheck();
1688
+ this._emitSelectionChangeEvent(true);
1689
+ }
1690
+ };
1691
+ /**
1692
+ * Returns the correct tabindex for the option depending on disabled state.
1693
+ * @return {?}
1694
+ */
1695
+ MatOption.prototype._getTabIndex = function () {
1696
+ return this.disabled ? '-1' : '0';
1697
+ };
1698
+ /**
1699
+ * Gets the host DOM element.
1700
+ * @return {?}
1701
+ */
1702
+ MatOption.prototype._getHostElement = function () {
1703
+ return this._element.nativeElement;
1704
+ };
1705
+ /**
1706
+ * Emits the selection change event.
1707
+ * @param {?=} isUserInput
1708
+ * @return {?}
1709
+ */
1710
+ MatOption.prototype._emitSelectionChangeEvent = function (isUserInput) {
1711
+ if (isUserInput === void 0) { isUserInput = false; }
1712
+ this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput));
1713
+ };
1714
+ /**
1715
+ * Counts the amount of option group labels that precede the specified option.
1716
+ * @param {?} optionIndex Index of the option at which to start counting.
1717
+ * @param {?} options Flat list of all of the options.
1718
+ * @param {?} optionGroups Flat list of all of the option groups.
1719
+ * @return {?}
1720
+ */
1721
+ MatOption.countGroupLabelsBeforeOption = function (optionIndex, options, optionGroups) {
1722
+ if (optionGroups.length) {
1723
+ var /** @type {?} */ optionsArray = options.toArray();
1724
+ var /** @type {?} */ groups = optionGroups.toArray();
1725
+ var /** @type {?} */ groupCounter = 0;
1726
+ for (var /** @type {?} */ i = 0; i < optionIndex + 1; i++) {
1727
+ if (optionsArray[i].group && optionsArray[i].group === groups[groupCounter]) {
1728
+ groupCounter++;
1729
+ }
1730
+ }
1731
+ return groupCounter;
1732
+ }
1733
+ return 0;
1734
+ };
1735
+ MatOption.decorators = [
1736
+ { type: _angular_core.Component, args: [{selector: 'mat-option',
1737
+ exportAs: 'matOption',
1738
+ host: {
1739
+ 'role': 'option',
1740
+ '[attr.tabindex]': '_getTabIndex()',
1741
+ '[class.mat-selected]': 'selected',
1742
+ '[class.mat-option-multiple]': 'multiple',
1743
+ '[class.mat-active]': 'active',
1744
+ '[id]': 'id',
1745
+ '[attr.aria-selected]': 'selected.toString()',
1746
+ '[attr.aria-disabled]': 'disabled.toString()',
1747
+ '[class.mat-option-disabled]': 'disabled',
1748
+ '(click)': '_selectViaInteraction()',
1749
+ '(keydown)': '_handleKeydown($event)',
1750
+ 'class': 'mat-option',
1751
+ },
1752
+ 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>",
1753
+ encapsulation: _angular_core.ViewEncapsulation.None,
1754
+ preserveWhitespaces: false,
1755
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
1756
+ },] },
1757
+ ];
1758
+ /**
1759
+ * @nocollapse
1760
+ */
1761
+ MatOption.ctorParameters = function () { return [
1762
+ { type: _angular_core.ElementRef, },
1763
+ { type: _angular_core.ChangeDetectorRef, },
1764
+ { type: MatOptgroup, decorators: [{ type: _angular_core.Optional },] },
1765
+ ]; };
1766
+ MatOption.propDecorators = {
1767
+ 'value': [{ type: _angular_core.Input },],
1768
+ 'disabled': [{ type: _angular_core.Input },],
1769
+ 'onSelectionChange': [{ type: _angular_core.Output },],
1770
+ };
1771
+ return MatOption;
1772
+ }());
1773
+
1774
+ /**
1775
+ * InjectionToken that can be used to specify the global placeholder options.
1776
+ */
1777
+ var MAT_PLACEHOLDER_GLOBAL_OPTIONS = new _angular_core.InjectionToken('mat-placeholder-global-options');
1778
+
1779
+ /**
1780
+ * Default color palette for round buttons (mat-fab and mat-mini-fab)
1781
+ */
1782
+ var DEFAULT_ROUND_BUTTON_COLOR = 'accent';
1783
+ /**
1784
+ * Directive whose purpose is to add the mat- CSS styling to this selector.
1785
+ * \@docs-private
1786
+ */
1787
+ var MatButtonCssMatStyler = (function () {
1788
+ function MatButtonCssMatStyler() {
1789
+ }
1790
+ MatButtonCssMatStyler.decorators = [
1791
+ { type: _angular_core.Directive, args: [{
1792
+ selector: 'button[mat-button], a[mat-button]',
1793
+ host: { 'class': 'mat-button' }
1794
+ },] },
1795
+ ];
1796
+ /**
1797
+ * @nocollapse
1798
+ */
1799
+ MatButtonCssMatStyler.ctorParameters = function () { return []; };
1800
+ return MatButtonCssMatStyler;
1801
+ }());
1802
+ /**
1803
+ * Directive whose purpose is to add the mat- CSS styling to this selector.
1804
+ * \@docs-private
1805
+ */
1806
+ var MatRaisedButtonCssMatStyler = (function () {
1807
+ function MatRaisedButtonCssMatStyler() {
1808
+ }
1809
+ MatRaisedButtonCssMatStyler.decorators = [
1810
+ { type: _angular_core.Directive, args: [{
1811
+ selector: 'button[mat-raised-button], a[mat-raised-button]',
1812
+ host: { 'class': 'mat-raised-button' }
1813
+ },] },
1814
+ ];
1815
+ /**
1816
+ * @nocollapse
1817
+ */
1818
+ MatRaisedButtonCssMatStyler.ctorParameters = function () { return []; };
1819
+ return MatRaisedButtonCssMatStyler;
1820
+ }());
1821
+ /**
1822
+ * Directive whose purpose is to add the mat- CSS styling to this selector.
1823
+ * \@docs-private
1824
+ */
1825
+ var MatIconButtonCssMatStyler = (function () {
1826
+ function MatIconButtonCssMatStyler() {
1827
+ }
1828
+ MatIconButtonCssMatStyler.decorators = [
1829
+ { type: _angular_core.Directive, args: [{
1830
+ selector: 'button[mat-icon-button], a[mat-icon-button]',
1831
+ host: { 'class': 'mat-icon-button' }
1832
+ },] },
1833
+ ];
1834
+ /**
1835
+ * @nocollapse
1836
+ */
1837
+ MatIconButtonCssMatStyler.ctorParameters = function () { return []; };
1838
+ return MatIconButtonCssMatStyler;
1839
+ }());
1840
+ /**
1841
+ * Directive whose purpose is to add the mat- CSS styling to this selector.
1842
+ * \@docs-private
1843
+ */
1844
+ var MatFab = (function () {
1845
+ /**
1846
+ * @param {?} button
1847
+ * @param {?} anchor
1848
+ */
1849
+ function MatFab(button, anchor) {
1850
+ // Set the default color palette for the mat-fab components.
1851
+ (button || anchor).color = DEFAULT_ROUND_BUTTON_COLOR;
1852
+ }
1853
+ MatFab.decorators = [
1854
+ { type: _angular_core.Directive, args: [{
1855
+ selector: 'button[mat-fab], a[mat-fab]',
1856
+ host: { 'class': 'mat-fab' }
1857
+ },] },
1858
+ ];
1859
+ /**
1860
+ * @nocollapse
1861
+ */
1862
+ MatFab.ctorParameters = function () { return [
1863
+ { type: MatButton, decorators: [{ type: _angular_core.Self }, { type: _angular_core.Optional }, { type: _angular_core.Inject, args: [_angular_core.forwardRef(function () { return MatButton; }),] },] },
1864
+ { type: MatAnchor, decorators: [{ type: _angular_core.Self }, { type: _angular_core.Optional }, { type: _angular_core.Inject, args: [_angular_core.forwardRef(function () { return MatAnchor; }),] },] },
1865
+ ]; };
1866
+ return MatFab;
1867
+ }());
1868
+ /**
1869
+ * Directive that targets mini-fab buttons and anchors. It's used to apply the `mat-` class
1870
+ * to all mini-fab buttons and also is responsible for setting the default color palette.
1871
+ * \@docs-private
1872
+ */
1873
+ var MatMiniFab = (function () {
1874
+ /**
1875
+ * @param {?} button
1876
+ * @param {?} anchor
1877
+ */
1878
+ function MatMiniFab(button, anchor) {
1879
+ // Set the default color palette for the mat-mini-fab components.
1880
+ (button || anchor).color = DEFAULT_ROUND_BUTTON_COLOR;
1881
+ }
1882
+ MatMiniFab.decorators = [
1883
+ { type: _angular_core.Directive, args: [{
1884
+ selector: 'button[mat-mini-fab], a[mat-mini-fab]',
1885
+ host: { 'class': 'mat-mini-fab' }
1886
+ },] },
1887
+ ];
1888
+ /**
1889
+ * @nocollapse
1890
+ */
1891
+ MatMiniFab.ctorParameters = function () { return [
1892
+ { type: MatButton, decorators: [{ type: _angular_core.Self }, { type: _angular_core.Optional }, { type: _angular_core.Inject, args: [_angular_core.forwardRef(function () { return MatButton; }),] },] },
1893
+ { type: MatAnchor, decorators: [{ type: _angular_core.Self }, { type: _angular_core.Optional }, { type: _angular_core.Inject, args: [_angular_core.forwardRef(function () { return MatAnchor; }),] },] },
1894
+ ]; };
1895
+ return MatMiniFab;
1896
+ }());
1897
+ /**
1898
+ * \@docs-private
1899
+ */
1900
+ var MatButtonBase = (function () {
1901
+ /**
1902
+ * @param {?} _renderer
1903
+ * @param {?} _elementRef
1904
+ */
1905
+ function MatButtonBase(_renderer, _elementRef) {
1906
+ this._renderer = _renderer;
1907
+ this._elementRef = _elementRef;
1908
+ }
1909
+ return MatButtonBase;
1910
+ }());
1911
+ var _MatButtonMixinBase = mixinColor(mixinDisabled(mixinDisableRipple(MatButtonBase)));
1912
+ /**
1913
+ * Material design button.
1914
+ */
1915
+ var MatButton = (function (_super) {
1916
+ __extends(MatButton, _super);
1917
+ /**
1918
+ * @param {?} renderer
1919
+ * @param {?} elementRef
1920
+ * @param {?} _platform
1921
+ * @param {?} _focusMonitor
1922
+ */
1923
+ function MatButton(renderer, elementRef, _platform, _focusMonitor) {
1924
+ var _this = _super.call(this, renderer, elementRef) || this;
1925
+ _this._platform = _platform;
1926
+ _this._focusMonitor = _focusMonitor;
1927
+ /**
1928
+ * Whether the button is round.
1929
+ */
1930
+ _this._isRoundButton = _this._hasAttributeWithPrefix('fab', 'mini-fab');
1931
+ /**
1932
+ * Whether the button is icon button.
1933
+ */
1934
+ _this._isIconButton = _this._hasAttributeWithPrefix('icon-button');
1935
+ _this._focusMonitor.monitor(_this._elementRef.nativeElement, _this._renderer, true);
1936
+ return _this;
1937
+ }
1938
+ /**
1939
+ * @return {?}
1940
+ */
1941
+ MatButton.prototype.ngOnDestroy = function () {
1942
+ this._focusMonitor.stopMonitoring(this._elementRef.nativeElement);
1943
+ };
1944
+ /**
1945
+ * Focuses the button.
1946
+ * @return {?}
1947
+ */
1948
+ MatButton.prototype.focus = function () {
1949
+ this._getHostElement().focus();
1950
+ };
1951
+ /**
1952
+ * @return {?}
1953
+ */
1954
+ MatButton.prototype._getHostElement = function () {
1955
+ return this._elementRef.nativeElement;
1956
+ };
1957
+ /**
1958
+ * @return {?}
1959
+ */
1960
+ MatButton.prototype._isRippleDisabled = function () {
1961
+ return this.disableRipple || this.disabled;
1962
+ };
1963
+ /**
1964
+ * Gets whether the button has one of the given attributes with a 'mat-' prefix.
1965
+ * @param {...?} unprefixedAttributeNames
1966
+ * @return {?}
1967
+ */
1968
+ MatButton.prototype._hasAttributeWithPrefix = function () {
1969
+ var _this = this;
1970
+ var unprefixedAttributeNames = [];
1971
+ for (var _i = 0; _i < arguments.length; _i++) {
1972
+ unprefixedAttributeNames[_i] = arguments[_i];
1973
+ }
1974
+ // If not on the browser, say that there are none of the attributes present.
1975
+ // Since these only affect how the ripple displays (and ripples only happen on the client),
1976
+ // detecting these attributes isn't necessary when not on the browser.
1977
+ if (!this._platform.isBrowser) {
1978
+ return false;
1979
+ }
1980
+ return unprefixedAttributeNames.some(function (suffix) {
1981
+ return _this._getHostElement().hasAttribute('mat-' + suffix);
1982
+ });
1983
+ };
1984
+ MatButton.decorators = [
1985
+ { type: _angular_core.Component, args: [{selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button],\n button[mat-fab], button[mat-mini-fab]",
1986
+ exportAs: 'matButton',
1987
+ host: {
1988
+ '[disabled]': 'disabled || null',
1989
+ },
1990
+ template: "<span class=\"mat-button-wrapper\"><ng-content></ng-content></span><div matRipple class=\"mat-button-ripple\" [class.mat-button-ripple-round]=\"_isRoundButton || _isIconButton\" [matRippleDisabled]=\"_isRippleDisabled()\" [matRippleCentered]=\"_isIconButton\" [matRippleTrigger]=\"_getHostElement()\"></div><div class=\"mat-button-focus-overlay\"></div>",
1991
+ styles: [".mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px}[disabled].mat-button,[disabled].mat-fab,[disabled].mat-icon-button,[disabled].mat-mini-fab,[disabled].mat-raised-button{cursor:default}.cdk-keyboard-focused.mat-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-icon-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-raised-button .mat-button-focus-overlay{opacity:1}.mat-button::-moz-focus-inner,.mat-fab::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-mini-fab::-moz-focus-inner,.mat-raised-button::-moz-focus-inner{border:0}.mat-fab,.mat-mini-fab,.mat-raised-button{transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]),.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-raised-button:not([disabled]):active: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)}[disabled].mat-fab,[disabled].mat-mini-fab,[disabled].mat-raised-button{box-shadow:none}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay{opacity:1}.mat-fab{min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button,.mat-icon-button,.mat-raised-button{color:currentColor}.mat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*{vertical-align:middle}.mat-button-focus-overlay,.mat-button-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],
1992
+ inputs: ['disabled', 'disableRipple', 'color'],
1993
+ encapsulation: _angular_core.ViewEncapsulation.None,
1994
+ preserveWhitespaces: false,
1995
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
1996
+ },] },
1997
+ ];
1998
+ /**
1999
+ * @nocollapse
2000
+ */
2001
+ MatButton.ctorParameters = function () { return [
2002
+ { type: _angular_core.Renderer2, },
2003
+ { type: _angular_core.ElementRef, },
2004
+ { type: _angular_cdk_platform.Platform, },
2005
+ { type: _angular_cdk_a11y.FocusMonitor, },
2006
+ ]; };
2007
+ return MatButton;
2008
+ }(_MatButtonMixinBase));
2009
+ /**
2010
+ * Raised Material design button.
2011
+ */
2012
+ var MatAnchor = (function (_super) {
2013
+ __extends(MatAnchor, _super);
2014
+ /**
2015
+ * @param {?} platform
2016
+ * @param {?} focusMonitor
2017
+ * @param {?} elementRef
2018
+ * @param {?} renderer
2019
+ */
2020
+ function MatAnchor(platform, focusMonitor, elementRef, renderer) {
2021
+ return _super.call(this, renderer, elementRef, platform, focusMonitor) || this;
2022
+ }
2023
+ /**
2024
+ * @param {?} event
2025
+ * @return {?}
2026
+ */
2027
+ MatAnchor.prototype._haltDisabledEvents = function (event) {
2028
+ // A disabled button shouldn't apply any actions
2029
+ if (this.disabled) {
2030
+ event.preventDefault();
2031
+ event.stopImmediatePropagation();
2032
+ }
2033
+ };
2034
+ MatAnchor.decorators = [
2035
+ { type: _angular_core.Component, args: [{selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab]",
2036
+ exportAs: 'matButton, matAnchor',
2037
+ host: {
2038
+ '[attr.tabindex]': 'disabled ? -1 : 0',
2039
+ '[attr.disabled]': 'disabled || null',
2040
+ '[attr.aria-disabled]': 'disabled.toString()',
2041
+ '(click)': '_haltDisabledEvents($event)',
2042
+ },
2043
+ inputs: ['disabled', 'disableRipple', 'color'],
2044
+ template: "<span class=\"mat-button-wrapper\"><ng-content></ng-content></span><div matRipple class=\"mat-button-ripple\" [class.mat-button-ripple-round]=\"_isRoundButton || _isIconButton\" [matRippleDisabled]=\"_isRippleDisabled()\" [matRippleCentered]=\"_isIconButton\" [matRippleTrigger]=\"_getHostElement()\"></div><div class=\"mat-button-focus-overlay\"></div>",
2045
+ styles: [".mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px}[disabled].mat-button,[disabled].mat-fab,[disabled].mat-icon-button,[disabled].mat-mini-fab,[disabled].mat-raised-button{cursor:default}.cdk-keyboard-focused.mat-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-icon-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-raised-button .mat-button-focus-overlay{opacity:1}.mat-button::-moz-focus-inner,.mat-fab::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-mini-fab::-moz-focus-inner,.mat-raised-button::-moz-focus-inner{border:0}.mat-fab,.mat-mini-fab,.mat-raised-button{transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]),.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-raised-button:not([disabled]):active: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)}[disabled].mat-fab,[disabled].mat-mini-fab,[disabled].mat-raised-button{box-shadow:none}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay{opacity:1}.mat-fab{min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button,.mat-icon-button,.mat-raised-button{color:currentColor}.mat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*{vertical-align:middle}.mat-button-focus-overlay,.mat-button-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],
2046
+ encapsulation: _angular_core.ViewEncapsulation.None,
2047
+ preserveWhitespaces: false,
2048
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
2049
+ },] },
2050
+ ];
2051
+ /**
2052
+ * @nocollapse
2053
+ */
2054
+ MatAnchor.ctorParameters = function () { return [
2055
+ { type: _angular_cdk_platform.Platform, },
2056
+ { type: _angular_cdk_a11y.FocusMonitor, },
2057
+ { type: _angular_core.ElementRef, },
2058
+ { type: _angular_core.Renderer2, },
2059
+ ]; };
2060
+ return MatAnchor;
2061
+ }(MatButton));
2062
+
2063
+ var MatButtonModule = (function () {
2064
+ function MatButtonModule() {
2065
+ }
2066
+ MatButtonModule.decorators = [
2067
+ { type: _angular_core.NgModule, args: [{
2068
+ imports: [
2069
+ _angular_common.CommonModule,
2070
+ MatRippleModule,
2071
+ MatCommonModule,
2072
+ _angular_cdk_a11y.A11yModule,
2073
+ ],
2074
+ exports: [
2075
+ MatButton,
2076
+ MatAnchor,
2077
+ MatMiniFab,
2078
+ MatFab,
2079
+ MatCommonModule,
2080
+ MatButtonCssMatStyler,
2081
+ MatRaisedButtonCssMatStyler,
2082
+ MatIconButtonCssMatStyler,
2083
+ ],
2084
+ declarations: [
2085
+ MatButton,
2086
+ MatAnchor,
2087
+ MatMiniFab,
2088
+ MatFab,
2089
+ MatButtonCssMatStyler,
2090
+ MatRaisedButtonCssMatStyler,
2091
+ MatIconButtonCssMatStyler,
2092
+ ],
2093
+ },] },
2094
+ ];
2095
+ /**
2096
+ * @nocollapse
2097
+ */
2098
+ MatButtonModule.ctorParameters = function () { return []; };
2099
+ return MatButtonModule;
2100
+ }());
2101
+
2102
+ /**
2103
+ * Returns an exception to be thrown in the case when attempting to
2104
+ * load an icon with a name that cannot be found.
2105
+ * \@docs-private
2106
+ * @param {?} iconName
2107
+ * @return {?}
2108
+ */
2109
+ function getMatIconNameNotFoundError(iconName) {
2110
+ return Error("Unable to find icon with the name \"" + iconName + "\"");
2111
+ }
2112
+ /**
2113
+ * Returns an exception to be thrown when the consumer attempts to use
2114
+ * `<mat-icon>` without including \@angular/http.
2115
+ * \@docs-private
2116
+ * @return {?}
2117
+ */
2118
+ function getMatIconNoHttpProviderError() {
2119
+ return Error('Could not find Http provider for use with Angular Material icons. ' +
2120
+ 'Please include the HttpModule from @angular/http in your app imports.');
2121
+ }
2122
+ /**
2123
+ * Returns an exception to be thrown when a URL couldn't be sanitized.
2124
+ * \@docs-private
2125
+ * @param {?} url URL that was attempted to be sanitized.
2126
+ * @return {?}
2127
+ */
2128
+ function getMatIconFailedToSanitizeError(url) {
2129
+ return Error("The URL provided to MatIconRegistry was not trusted as a resource URL " +
2130
+ ("via Angular's DomSanitizer. Attempted URL was \"" + url + "\"."));
2131
+ }
2132
+ /**
2133
+ * Configuration for an icon, including the URL and possibly the cached SVG element.
2134
+ * \@docs-private
2135
+ */
2136
+ var SvgIconConfig = (function () {
2137
+ /**
2138
+ * @param {?} url
2139
+ */
2140
+ function SvgIconConfig(url) {
2141
+ this.url = url;
2142
+ this.svgElement = null;
2143
+ }
2144
+ return SvgIconConfig;
2145
+ }());
2146
+ /**
2147
+ * Service to register and display icons used by the <mat-icon> component.
2148
+ * - Registers icon URLs by namespace and name.
2149
+ * - Registers icon set URLs by namespace.
2150
+ * - Registers aliases for CSS classes, for use with icon fonts.
2151
+ * - Loads icons from URLs and extracts individual icons from icon sets.
2152
+ */
2153
+ var MatIconRegistry = (function () {
2154
+ /**
2155
+ * @param {?} _http
2156
+ * @param {?} _sanitizer
2157
+ */
2158
+ function MatIconRegistry(_http, _sanitizer) {
2159
+ this._http = _http;
2160
+ this._sanitizer = _sanitizer;
2161
+ /**
2162
+ * URLs and cached SVG elements for individual icons. Keys are of the format "[namespace]:[icon]".
2163
+ */
2164
+ this._svgIconConfigs = new Map();
2165
+ /**
2166
+ * SvgIconConfig objects and cached SVG elements for icon sets, keyed by namespace.
2167
+ * Multiple icon sets can be registered under the same namespace.
2168
+ */
2169
+ this._iconSetConfigs = new Map();
2170
+ /**
2171
+ * Cache for icons loaded by direct URLs.
2172
+ */
2173
+ this._cachedIconsByUrl = new Map();
2174
+ /**
2175
+ * In-progress icon fetches. Used to coalesce multiple requests to the same URL.
2176
+ */
2177
+ this._inProgressUrlFetches = new Map();
2178
+ /**
2179
+ * Map from font identifiers to their CSS class names. Used for icon fonts.
2180
+ */
2181
+ this._fontCssClassesByAlias = new Map();
2182
+ /**
2183
+ * The CSS class to apply when an <mat-icon> component has no icon name, url, or font specified.
2184
+ * The default 'material-icons' value assumes that the material icon font has been loaded as
2185
+ * described at http://google.github.io/material-design-icons/#icon-font-for-the-web
2186
+ */
2187
+ this._defaultFontSetClass = 'material-icons';
2188
+ }
2189
+ /**
2190
+ * Registers an icon by URL in the default namespace.
2191
+ * @param {?} iconName Name under which the icon should be registered.
2192
+ * @param {?} url
2193
+ * @return {?}
2194
+ */
2195
+ MatIconRegistry.prototype.addSvgIcon = function (iconName, url) {
2196
+ return this.addSvgIconInNamespace('', iconName, url);
2197
+ };
2198
+ /**
2199
+ * Registers an icon by URL in the specified namespace.
2200
+ * @param {?} namespace Namespace in which the icon should be registered.
2201
+ * @param {?} iconName Name under which the icon should be registered.
2202
+ * @param {?} url
2203
+ * @return {?}
2204
+ */
2205
+ MatIconRegistry.prototype.addSvgIconInNamespace = function (namespace, iconName, url) {
2206
+ var /** @type {?} */ key = iconKey(namespace, iconName);
2207
+ this._svgIconConfigs.set(key, new SvgIconConfig(url));
2208
+ return this;
2209
+ };
2210
+ /**
2211
+ * Registers an icon set by URL in the default namespace.
2212
+ * @param {?} url
2213
+ * @return {?}
2214
+ */
2215
+ MatIconRegistry.prototype.addSvgIconSet = function (url) {
2216
+ return this.addSvgIconSetInNamespace('', url);
2217
+ };
2218
+ /**
2219
+ * Registers an icon set by URL in the specified namespace.
2220
+ * @param {?} namespace Namespace in which to register the icon set.
2221
+ * @param {?} url
2222
+ * @return {?}
2223
+ */
2224
+ MatIconRegistry.prototype.addSvgIconSetInNamespace = function (namespace, url) {
2225
+ var /** @type {?} */ config = new SvgIconConfig(url);
2226
+ var /** @type {?} */ configNamespace = this._iconSetConfigs.get(namespace);
2227
+ if (configNamespace) {
2228
+ configNamespace.push(config);
2229
+ }
2230
+ else {
2231
+ this._iconSetConfigs.set(namespace, [config]);
2232
+ }
2233
+ return this;
2234
+ };
2235
+ /**
2236
+ * Defines an alias for a CSS class name to be used for icon fonts. Creating an matIcon
2237
+ * component with the alias as the fontSet input will cause the class name to be applied
2238
+ * to the <mat-icon> element.
2239
+ *
2240
+ * @param {?} alias Alias for the font.
2241
+ * @param {?=} className Class name override to be used instead of the alias.
2242
+ * @return {?}
2243
+ */
2244
+ MatIconRegistry.prototype.registerFontClassAlias = function (alias, className) {
2245
+ if (className === void 0) { className = alias; }
2246
+ this._fontCssClassesByAlias.set(alias, className);
2247
+ return this;
2248
+ };
2249
+ /**
2250
+ * Returns the CSS class name associated with the alias by a previous call to
2251
+ * registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified.
2252
+ * @param {?} alias
2253
+ * @return {?}
2254
+ */
2255
+ MatIconRegistry.prototype.classNameForFontAlias = function (alias) {
2256
+ return this._fontCssClassesByAlias.get(alias) || alias;
2257
+ };
2258
+ /**
2259
+ * Sets the CSS class name to be used for icon fonts when an <mat-icon> component does not
2260
+ * have a fontSet input value, and is not loading an icon by name or URL.
2261
+ *
2262
+ * @param {?} className
2263
+ * @return {?}
2264
+ */
2265
+ MatIconRegistry.prototype.setDefaultFontSetClass = function (className) {
2266
+ this._defaultFontSetClass = className;
2267
+ return this;
2268
+ };
2269
+ /**
2270
+ * Returns the CSS class name to be used for icon fonts when an <mat-icon> component does not
2271
+ * have a fontSet input value, and is not loading an icon by name or URL.
2272
+ * @return {?}
2273
+ */
2274
+ MatIconRegistry.prototype.getDefaultFontSetClass = function () {
2275
+ return this._defaultFontSetClass;
2276
+ };
2277
+ /**
2278
+ * Returns an Observable that produces the icon (as an <svg> DOM element) from the given URL.
2279
+ * The response from the URL may be cached so this will not always cause an HTTP request, but
2280
+ * the produced element will always be a new copy of the originally fetched icon. (That is,
2281
+ * it will not contain any modifications made to elements previously returned).
2282
+ *
2283
+ * @param {?} safeUrl URL from which to fetch the SVG icon.
2284
+ * @return {?}
2285
+ */
2286
+ MatIconRegistry.prototype.getSvgIconFromUrl = function (safeUrl) {
2287
+ var _this = this;
2288
+ var /** @type {?} */ url = this._sanitizer.sanitize(_angular_core.SecurityContext.RESOURCE_URL, safeUrl);
2289
+ if (!url) {
2290
+ throw getMatIconFailedToSanitizeError(safeUrl);
2291
+ }
2292
+ var /** @type {?} */ cachedIcon = this._cachedIconsByUrl.get(url);
2293
+ if (cachedIcon) {
2294
+ return rxjs_observable_of.of(cloneSvg(cachedIcon));
2295
+ }
2296
+ return _angular_cdk_rxjs.RxChain.from(this._loadSvgIconFromConfig(new SvgIconConfig(url)))
2297
+ .call(_angular_cdk_rxjs.doOperator, function (svg) { return _this._cachedIconsByUrl.set(/** @type {?} */ ((url)), svg); })
2298
+ .call(_angular_cdk_rxjs.map, function (svg) { return cloneSvg(svg); })
2299
+ .result();
2300
+ };
2301
+ /**
2302
+ * Returns an Observable that produces the icon (as an <svg> DOM element) with the given name
2303
+ * and namespace. The icon must have been previously registered with addIcon or addIconSet;
2304
+ * if not, the Observable will throw an error.
2305
+ *
2306
+ * @param {?} name Name of the icon to be retrieved.
2307
+ * @param {?=} namespace Namespace in which to look for the icon.
2308
+ * @return {?}
2309
+ */
2310
+ MatIconRegistry.prototype.getNamedSvgIcon = function (name, namespace) {
2311
+ if (namespace === void 0) { namespace = ''; }
2312
+ // Return (copy of) cached icon if possible.
2313
+ var /** @type {?} */ key = iconKey(namespace, name);
2314
+ var /** @type {?} */ config = this._svgIconConfigs.get(key);
2315
+ if (config) {
2316
+ return this._getSvgFromConfig(config);
2317
+ }
2318
+ // See if we have any icon sets registered for the namespace.
2319
+ var /** @type {?} */ iconSetConfigs = this._iconSetConfigs.get(namespace);
2320
+ if (iconSetConfigs) {
2321
+ return this._getSvgFromIconSetConfigs(name, iconSetConfigs);
2322
+ }
2323
+ return rxjs_observable_throw._throw(getMatIconNameNotFoundError(key));
2324
+ };
2325
+ /**
2326
+ * Returns the cached icon for a SvgIconConfig if available, or fetches it from its URL if not.
2327
+ * @param {?} config
2328
+ * @return {?}
2329
+ */
2330
+ MatIconRegistry.prototype._getSvgFromConfig = function (config) {
2331
+ if (config.svgElement) {
2332
+ // We already have the SVG element for this icon, return a copy.
2333
+ return rxjs_observable_of.of(cloneSvg(config.svgElement));
2334
+ }
2335
+ else {
2336
+ // Fetch the icon from the config's URL, cache it, and return a copy.
2337
+ return _angular_cdk_rxjs.RxChain.from(this._loadSvgIconFromConfig(config))
2338
+ .call(_angular_cdk_rxjs.doOperator, function (svg) { return config.svgElement = svg; })
2339
+ .call(_angular_cdk_rxjs.map, function (svg) { return cloneSvg(svg); })
2340
+ .result();
2341
+ }
2342
+ };
2343
+ /**
2344
+ * Attempts to find an icon with the specified name in any of the SVG icon sets.
2345
+ * First searches the available cached icons for a nested element with a matching name, and
2346
+ * if found copies the element to a new <svg> element. If not found, fetches all icon sets
2347
+ * that have not been cached, and searches again after all fetches are completed.
2348
+ * The returned Observable produces the SVG element if possible, and throws
2349
+ * an error if no icon with the specified name can be found.
2350
+ * @param {?} name
2351
+ * @param {?} iconSetConfigs
2352
+ * @return {?}
2353
+ */
2354
+ MatIconRegistry.prototype._getSvgFromIconSetConfigs = function (name, iconSetConfigs) {
2355
+ var _this = this;
2356
+ // For all the icon set SVG elements we've fetched, see if any contain an icon with the
2357
+ // requested name.
2358
+ var /** @type {?} */ namedIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);
2359
+ if (namedIcon) {
2360
+ // We could cache namedIcon in _svgIconConfigs, but since we have to make a copy every
2361
+ // time anyway, there's probably not much advantage compared to just always extracting
2362
+ // it from the icon set.
2363
+ return rxjs_observable_of.of(namedIcon);
2364
+ }
2365
+ // Not found in any cached icon sets. If there are icon sets with URLs that we haven't
2366
+ // fetched, fetch them now and look for iconName in the results.
2367
+ var /** @type {?} */ iconSetFetchRequests = iconSetConfigs
2368
+ .filter(function (iconSetConfig) { return !iconSetConfig.svgElement; })
2369
+ .map(function (iconSetConfig) {
2370
+ return _angular_cdk_rxjs.RxChain.from(_this._loadSvgIconSetFromConfig(iconSetConfig))
2371
+ .call(_angular_cdk_rxjs.catchOperator, function (err) {
2372
+ var /** @type {?} */ url = _this._sanitizer.sanitize(_angular_core.SecurityContext.RESOURCE_URL, iconSetConfig.url);
2373
+ // Swallow errors fetching individual URLs so the combined Observable won't
2374
+ // necessarily fail.
2375
+ console.log("Loading icon set URL: " + url + " failed: " + err);
2376
+ return rxjs_observable_of.of(null);
2377
+ })
2378
+ .call(_angular_cdk_rxjs.doOperator, function (svg) {
2379
+ // Cache the SVG element.
2380
+ if (svg) {
2381
+ iconSetConfig.svgElement = svg;
2382
+ }
2383
+ })
2384
+ .result();
2385
+ });
2386
+ // Fetch all the icon set URLs. When the requests complete, every IconSet should have a
2387
+ // cached SVG element (unless the request failed), and we can check again for the icon.
2388
+ return _angular_cdk_rxjs.map.call(rxjs_observable_forkJoin.forkJoin.call(rxjs_Observable.Observable, iconSetFetchRequests), function () {
2389
+ var /** @type {?} */ foundIcon = _this._extractIconWithNameFromAnySet(name, iconSetConfigs);
2390
+ if (!foundIcon) {
2391
+ throw getMatIconNameNotFoundError(name);
2392
+ }
2393
+ return foundIcon;
2394
+ });
2395
+ };
2396
+ /**
2397
+ * Searches the cached SVG elements for the given icon sets for a nested icon element whose "id"
2398
+ * tag matches the specified name. If found, copies the nested element to a new SVG element and
2399
+ * returns it. Returns null if no matching element is found.
2400
+ * @param {?} iconName
2401
+ * @param {?} iconSetConfigs
2402
+ * @return {?}
2403
+ */
2404
+ MatIconRegistry.prototype._extractIconWithNameFromAnySet = function (iconName, iconSetConfigs) {
2405
+ // Iterate backwards, so icon sets added later have precedence.
2406
+ for (var /** @type {?} */ i = iconSetConfigs.length - 1; i >= 0; i--) {
2407
+ var /** @type {?} */ config = iconSetConfigs[i];
2408
+ if (config.svgElement) {
2409
+ var /** @type {?} */ foundIcon = this._extractSvgIconFromSet(config.svgElement, iconName);
2410
+ if (foundIcon) {
2411
+ return foundIcon;
2412
+ }
2413
+ }
2414
+ }
2415
+ return null;
2416
+ };
2417
+ /**
2418
+ * Loads the content of the icon URL specified in the SvgIconConfig and creates an SVG element
2419
+ * from it.
2420
+ * @param {?} config
2421
+ * @return {?}
2422
+ */
2423
+ MatIconRegistry.prototype._loadSvgIconFromConfig = function (config) {
2424
+ var _this = this;
2425
+ return _angular_cdk_rxjs.map.call(this._fetchUrl(config.url), function (svgText) { return _this._createSvgElementForSingleIcon(svgText); });
2426
+ };
2427
+ /**
2428
+ * Loads the content of the icon set URL specified in the SvgIconConfig and creates an SVG element
2429
+ * from it.
2430
+ * @param {?} config
2431
+ * @return {?}
2432
+ */
2433
+ MatIconRegistry.prototype._loadSvgIconSetFromConfig = function (config) {
2434
+ var _this = this;
2435
+ // TODO: Document that icons should only be loaded from trusted sources.
2436
+ return _angular_cdk_rxjs.map.call(this._fetchUrl(config.url), function (svgText) { return _this._svgElementFromString(svgText); });
2437
+ };
2438
+ /**
2439
+ * Creates a DOM element from the given SVG string, and adds default attributes.
2440
+ * @param {?} responseText
2441
+ * @return {?}
2442
+ */
2443
+ MatIconRegistry.prototype._createSvgElementForSingleIcon = function (responseText) {
2444
+ var /** @type {?} */ svg = this._svgElementFromString(responseText);
2445
+ this._setSvgAttributes(svg);
2446
+ return svg;
2447
+ };
2448
+ /**
2449
+ * Searches the cached element of the given SvgIconConfig for a nested icon element whose "id"
2450
+ * tag matches the specified name. If found, copies the nested element to a new SVG element and
2451
+ * returns it. Returns null if no matching element is found.
2452
+ * @param {?} iconSet
2453
+ * @param {?} iconName
2454
+ * @return {?}
2455
+ */
2456
+ MatIconRegistry.prototype._extractSvgIconFromSet = function (iconSet, iconName) {
2457
+ var /** @type {?} */ iconNode = iconSet.querySelector('#' + iconName);
2458
+ if (!iconNode) {
2459
+ return null;
2460
+ }
2461
+ // If the icon node is itself an <svg> node, clone and return it directly. If not, set it as
2462
+ // the content of a new <svg> node.
2463
+ if (iconNode.tagName.toLowerCase() === 'svg') {
2464
+ return this._setSvgAttributes(/** @type {?} */ (iconNode.cloneNode(true)));
2465
+ }
2466
+ // If the node is a <symbol>, it won't be rendered so we have to convert it into <svg>. Note
2467
+ // that the same could be achieved by referring to it via <use href="#id">, however the <use>
2468
+ // tag is problematic on Firefox, because it needs to include the current page path.
2469
+ if (iconNode.nodeName.toLowerCase() === 'symbol') {
2470
+ return this._setSvgAttributes(this._toSvgElement(iconNode));
2471
+ }
2472
+ // createElement('SVG') doesn't work as expected; the DOM ends up with
2473
+ // the correct nodes, but the SVG content doesn't render. Instead we
2474
+ // have to create an empty SVG node using innerHTML and append its content.
2475
+ // Elements created using DOMParser.parseFromString have the same problem.
2476
+ // http://stackoverflow.com/questions/23003278/svg-innerhtml-in-firefox-can-not-display
2477
+ var /** @type {?} */ svg = this._svgElementFromString('<svg></svg>');
2478
+ // Clone the node so we don't remove it from the parent icon set element.
2479
+ svg.appendChild(iconNode.cloneNode(true));
2480
+ return this._setSvgAttributes(svg);
2481
+ };
2482
+ /**
2483
+ * Creates a DOM element from the given SVG string.
2484
+ * @param {?} str
2485
+ * @return {?}
2486
+ */
2487
+ MatIconRegistry.prototype._svgElementFromString = function (str) {
2488
+ // TODO: Is there a better way than innerHTML? Renderer doesn't appear to have a method for
2489
+ // creating an element from an HTML string.
2490
+ var /** @type {?} */ div = document.createElement('DIV');
2491
+ div.innerHTML = str;
2492
+ var /** @type {?} */ svg = (div.querySelector('svg'));
2493
+ if (!svg) {
2494
+ throw Error('<svg> tag not found');
2495
+ }
2496
+ return svg;
2497
+ };
2498
+ /**
2499
+ * Converts an element into an SVG node by cloning all of its children.
2500
+ * @param {?} element
2501
+ * @return {?}
2502
+ */
2503
+ MatIconRegistry.prototype._toSvgElement = function (element) {
2504
+ var /** @type {?} */ svg = this._svgElementFromString('<svg></svg>');
2505
+ for (var /** @type {?} */ i = 0; i < element.childNodes.length; i++) {
2506
+ if (element.childNodes[i].nodeType === Node.ELEMENT_NODE) {
2507
+ svg.appendChild(element.childNodes[i].cloneNode(true));
2508
+ }
2509
+ }
2510
+ return svg;
2511
+ };
2512
+ /**
2513
+ * Sets the default attributes for an SVG element to be used as an icon.
2514
+ * @param {?} svg
2515
+ * @return {?}
2516
+ */
2517
+ MatIconRegistry.prototype._setSvgAttributes = function (svg) {
2518
+ if (!svg.getAttribute('xmlns')) {
2519
+ svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
2520
+ }
2521
+ svg.setAttribute('fit', '');
2522
+ svg.setAttribute('height', '100%');
2523
+ svg.setAttribute('width', '100%');
2524
+ svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');
2525
+ svg.setAttribute('focusable', 'false'); // Disable IE11 default behavior to make SVGs focusable.
2526
+ return svg;
2527
+ };
2528
+ /**
2529
+ * Returns an Observable which produces the string contents of the given URL. Results may be
2530
+ * cached, so future calls with the same URL may not cause another HTTP request.
2531
+ * @param {?} safeUrl
2532
+ * @return {?}
2533
+ */
2534
+ MatIconRegistry.prototype._fetchUrl = function (safeUrl) {
2535
+ var _this = this;
2536
+ if (!this._http) {
2537
+ throw getMatIconNoHttpProviderError();
2538
+ }
2539
+ var /** @type {?} */ url = this._sanitizer.sanitize(_angular_core.SecurityContext.RESOURCE_URL, safeUrl);
2540
+ if (!url) {
2541
+ throw getMatIconFailedToSanitizeError(safeUrl);
2542
+ }
2543
+ // Store in-progress fetches to avoid sending a duplicate request for a URL when there is
2544
+ // already a request in progress for that URL. It's necessary to call share() on the
2545
+ // Observable returned by http.get() so that multiple subscribers don't cause multiple XHRs.
2546
+ var /** @type {?} */ inProgressFetch = this._inProgressUrlFetches.get(url);
2547
+ if (inProgressFetch) {
2548
+ return inProgressFetch;
2549
+ }
2550
+ // TODO(jelbourn): for some reason, the `finally` operator "loses" the generic type on the
2551
+ // Observable. Figure out why and fix it.
2552
+ var /** @type {?} */ req = _angular_cdk_rxjs.RxChain.from(this._http.get(url))
2553
+ .call(_angular_cdk_rxjs.map, function (response) { return response.text(); })
2554
+ .call(_angular_cdk_rxjs.finallyOperator, function () { return _this._inProgressUrlFetches.delete(url); })
2555
+ .call(_angular_cdk_rxjs.share)
2556
+ .result();
2557
+ this._inProgressUrlFetches.set(url, req);
2558
+ return req;
2559
+ };
2560
+ MatIconRegistry.decorators = [
2561
+ { type: _angular_core.Injectable },
2562
+ ];
2563
+ /**
2564
+ * @nocollapse
2565
+ */
2566
+ MatIconRegistry.ctorParameters = function () { return [
2567
+ { type: _angular_http.Http, decorators: [{ type: _angular_core.Optional },] },
2568
+ { type: _angular_platformBrowser.DomSanitizer, },
2569
+ ]; };
2570
+ return MatIconRegistry;
2571
+ }());
2572
+ /**
2573
+ * \@docs-private
2574
+ * @param {?} parentRegistry
2575
+ * @param {?} http
2576
+ * @param {?} sanitizer
2577
+ * @return {?}
2578
+ */
2579
+ function ICON_REGISTRY_PROVIDER_FACTORY(parentRegistry, http, sanitizer) {
2580
+ return parentRegistry || new MatIconRegistry(http, sanitizer);
2581
+ }
2582
+ /**
2583
+ * \@docs-private
2584
+ */
2585
+ var ICON_REGISTRY_PROVIDER = {
2586
+ // If there is already an MatIconRegistry available, use that. Otherwise, provide a new one.
2587
+ provide: MatIconRegistry,
2588
+ deps: [[new _angular_core.Optional(), new _angular_core.SkipSelf(), MatIconRegistry], [new _angular_core.Optional(), _angular_http.Http], _angular_platformBrowser.DomSanitizer],
2589
+ useFactory: ICON_REGISTRY_PROVIDER_FACTORY
2590
+ };
2591
+ /**
2592
+ * Clones an SVGElement while preserving type information.
2593
+ * @param {?} svg
2594
+ * @return {?}
2595
+ */
2596
+ function cloneSvg(svg) {
2597
+ return (svg.cloneNode(true));
2598
+ }
2599
+ /**
2600
+ * Returns the cache key to use for an icon namespace and name.
2601
+ * @param {?} namespace
2602
+ * @param {?} name
2603
+ * @return {?}
2604
+ */
2605
+ function iconKey(namespace, name) {
2606
+ return namespace + ':' + name;
2607
+ }
2608
+
2609
+ /**
2610
+ * \@docs-private
2611
+ */
2612
+ var MatIconBase = (function () {
2613
+ /**
2614
+ * @param {?} _renderer
2615
+ * @param {?} _elementRef
2616
+ */
2617
+ function MatIconBase(_renderer, _elementRef) {
2618
+ this._renderer = _renderer;
2619
+ this._elementRef = _elementRef;
2620
+ }
2621
+ return MatIconBase;
2622
+ }());
2623
+ var _MatIconMixinBase = mixinColor(MatIconBase);
2624
+ /**
2625
+ * Component to display an icon. It can be used in the following ways:
2626
+ *
2627
+ * - Specify the svgIcon input to load an SVG icon from a URL previously registered with the
2628
+ * addSvgIcon, addSvgIconInNamespace, addSvgIconSet, or addSvgIconSetInNamespace methods of
2629
+ * MatIconRegistry. If the svgIcon value contains a colon it is assumed to be in the format
2630
+ * "[namespace]:[name]", if not the value will be the name of an icon in the default namespace.
2631
+ * Examples:
2632
+ * <mat-icon svgIcon="left-arrow"></mat-icon>
2633
+ * <mat-icon svgIcon="animals:cat"></mat-icon>
2634
+ *
2635
+ * - Use a font ligature as an icon by putting the ligature text in the content of the <mat-icon>
2636
+ * component. By default the Material icons font is used as described at
2637
+ * http://google.github.io/material-design-icons/#icon-font-for-the-web. You can specify an
2638
+ * alternate font by setting the fontSet input to either the CSS class to apply to use the
2639
+ * desired font, or to an alias previously registered with MatIconRegistry.registerFontClassAlias.
2640
+ * Examples:
2641
+ * <mat-icon>home</mat-icon>
2642
+ * <mat-icon fontSet="myfont">sun</mat-icon>
2643
+ *
2644
+ * - Specify a font glyph to be included via CSS rules by setting the fontSet input to specify the
2645
+ * font, and the fontIcon input to specify the icon. Typically the fontIcon will specify a
2646
+ * CSS class which causes the glyph to be displayed via a :before selector, as in
2647
+ * https://fortawesome.github.io/Font-Awesome/examples/
2648
+ * Example:
2649
+ * <mat-icon fontSet="fa" fontIcon="alarm"></mat-icon>
2650
+ */
2651
+ var MatIcon = (function (_super) {
2652
+ __extends(MatIcon, _super);
2653
+ /**
2654
+ * @param {?} renderer
2655
+ * @param {?} elementRef
2656
+ * @param {?} _iconRegistry
2657
+ * @param {?} ariaHidden
2658
+ */
2659
+ function MatIcon(renderer, elementRef, _iconRegistry, ariaHidden) {
2660
+ var _this = _super.call(this, renderer, elementRef) || this;
2661
+ _this._iconRegistry = _iconRegistry;
2662
+ // If the user has not explicitly set aria-hidden, mark the icon as hidden, as this is
2663
+ // the right thing to do for the majority of icon use-cases.
2664
+ if (!ariaHidden) {
2665
+ renderer.setAttribute(elementRef.nativeElement, 'aria-hidden', 'true');
2666
+ }
2667
+ return _this;
2668
+ }
2669
+ /**
2670
+ * Splits an svgIcon binding value into its icon set and icon name components.
2671
+ * Returns a 2-element array of [(icon set), (icon name)].
2672
+ * The separator for the two fields is ':'. If there is no separator, an empty
2673
+ * string is returned for the icon set and the entire value is returned for
2674
+ * the icon name. If the argument is falsy, returns an array of two empty strings.
2675
+ * Throws an error if the name contains two or more ':' separators.
2676
+ * Examples:
2677
+ * 'social:cake' -> ['social', 'cake']
2678
+ * 'penguin' -> ['', 'penguin']
2679
+ * null -> ['', '']
2680
+ * 'a:b:c' -> (throws Error)
2681
+ * @param {?} iconName
2682
+ * @return {?}
2683
+ */
2684
+ MatIcon.prototype._splitIconName = function (iconName) {
2685
+ if (!iconName) {
2686
+ return ['', ''];
2687
+ }
2688
+ var /** @type {?} */ parts = iconName.split(':');
2689
+ switch (parts.length) {
2690
+ case 1: return ['', parts[0]]; // Use default namespace.
2691
+ case 2: return (parts);
2692
+ default: throw Error("Invalid icon name: \"" + iconName + "\"");
2693
+ }
2694
+ };
2695
+ /**
2696
+ * @param {?} changes
2697
+ * @return {?}
2698
+ */
2699
+ MatIcon.prototype.ngOnChanges = function (changes) {
2700
+ var _this = this;
2701
+ // Only update the inline SVG icon if the inputs changed, to avoid unnecessary DOM operations.
2702
+ if (changes.svgIcon) {
2703
+ if (this.svgIcon) {
2704
+ var _a = this._splitIconName(this.svgIcon), namespace = _a[0], iconName = _a[1];
2705
+ _angular_cdk_rxjs.first.call(this._iconRegistry.getNamedSvgIcon(iconName, namespace)).subscribe(function (svg) { return _this._setSvgElement(svg); }, function (err) { return console.log("Error retrieving icon: " + err.message); });
2706
+ }
2707
+ else {
2708
+ this._clearSvgElement();
2709
+ }
2710
+ }
2711
+ if (this._usingFontIcon()) {
2712
+ this._updateFontIconClasses();
2713
+ }
2714
+ };
2715
+ /**
2716
+ * @return {?}
2717
+ */
2718
+ MatIcon.prototype.ngOnInit = function () {
2719
+ // Update font classes because ngOnChanges won't be called if none of the inputs are present,
2720
+ // e.g. <mat-icon>arrow</mat-icon> In this case we need to add a CSS class for the default font.
2721
+ if (this._usingFontIcon()) {
2722
+ this._updateFontIconClasses();
2723
+ }
2724
+ };
2725
+ /**
2726
+ * @return {?}
2727
+ */
2728
+ MatIcon.prototype._usingFontIcon = function () {
2729
+ return !this.svgIcon;
2730
+ };
2731
+ /**
2732
+ * @param {?} svg
2733
+ * @return {?}
2734
+ */
2735
+ MatIcon.prototype._setSvgElement = function (svg) {
2736
+ this._clearSvgElement();
2737
+ this._renderer.appendChild(this._elementRef.nativeElement, svg);
2738
+ };
2739
+ /**
2740
+ * @return {?}
2741
+ */
2742
+ MatIcon.prototype._clearSvgElement = function () {
2743
+ var /** @type {?} */ layoutElement = this._elementRef.nativeElement;
2744
+ var /** @type {?} */ childCount = layoutElement.childNodes.length;
2745
+ // Remove existing child nodes and add the new SVG element. Note that we can't
2746
+ // use innerHTML, because IE will throw if the element has a data binding.
2747
+ for (var /** @type {?} */ i = 0; i < childCount; i++) {
2748
+ this._renderer.removeChild(layoutElement, layoutElement.childNodes[i]);
2749
+ }
2750
+ };
2751
+ /**
2752
+ * @return {?}
2753
+ */
2754
+ MatIcon.prototype._updateFontIconClasses = function () {
2755
+ if (!this._usingFontIcon()) {
2756
+ return;
2757
+ }
2758
+ var /** @type {?} */ elem = this._elementRef.nativeElement;
2759
+ var /** @type {?} */ fontSetClass = this.fontSet ?
2760
+ this._iconRegistry.classNameForFontAlias(this.fontSet) :
2761
+ this._iconRegistry.getDefaultFontSetClass();
2762
+ if (fontSetClass != this._previousFontSetClass) {
2763
+ if (this._previousFontSetClass) {
2764
+ this._renderer.removeClass(elem, this._previousFontSetClass);
2765
+ }
2766
+ if (fontSetClass) {
2767
+ this._renderer.addClass(elem, fontSetClass);
2768
+ }
2769
+ this._previousFontSetClass = fontSetClass;
2770
+ }
2771
+ if (this.fontIcon != this._previousFontIconClass) {
2772
+ if (this._previousFontIconClass) {
2773
+ this._renderer.removeClass(elem, this._previousFontIconClass);
2774
+ }
2775
+ if (this.fontIcon) {
2776
+ this._renderer.addClass(elem, this.fontIcon);
2777
+ }
2778
+ this._previousFontIconClass = this.fontIcon;
2779
+ }
2780
+ };
2781
+ MatIcon.decorators = [
2782
+ { type: _angular_core.Component, args: [{template: '<ng-content></ng-content>',
2783
+ selector: 'mat-icon',
2784
+ exportAs: 'matIcon',
2785
+ styles: [".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}"],
2786
+ inputs: ['color'],
2787
+ host: {
2788
+ 'role': 'img',
2789
+ 'class': 'mat-icon',
2790
+ },
2791
+ encapsulation: _angular_core.ViewEncapsulation.None,
2792
+ preserveWhitespaces: false,
2793
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
2794
+ },] },
2795
+ ];
2796
+ /**
2797
+ * @nocollapse
2798
+ */
2799
+ MatIcon.ctorParameters = function () { return [
2800
+ { type: _angular_core.Renderer2, },
2801
+ { type: _angular_core.ElementRef, },
2802
+ { type: MatIconRegistry, },
2803
+ { type: undefined, decorators: [{ type: _angular_core.Attribute, args: ['aria-hidden',] },] },
2804
+ ]; };
2805
+ MatIcon.propDecorators = {
2806
+ 'svgIcon': [{ type: _angular_core.Input },],
2807
+ 'fontSet': [{ type: _angular_core.Input },],
2808
+ 'fontIcon': [{ type: _angular_core.Input },],
2809
+ };
2810
+ return MatIcon;
2811
+ }(_MatIconMixinBase));
2812
+
2813
+ var MatIconModule = (function () {
2814
+ function MatIconModule() {
2815
+ }
2816
+ MatIconModule.decorators = [
2817
+ { type: _angular_core.NgModule, args: [{
2818
+ imports: [MatCommonModule],
2819
+ exports: [MatIcon, MatCommonModule],
2820
+ declarations: [MatIcon],
2821
+ providers: [ICON_REGISTRY_PROVIDER],
2822
+ },] },
2823
+ ];
2824
+ /**
2825
+ * @nocollapse
2826
+ */
2827
+ MatIconModule.ctorParameters = function () { return []; };
2828
+ return MatIconModule;
2829
+ }());
2830
+
2831
+ /**
2832
+ * Workaround for https://github.com/angular/angular/issues/17849
2833
+ */
2834
+ var _MatStepLabel = _angular_cdk_stepper.CdkStepLabel;
2835
+ var MatStepLabel = (function (_super) {
2836
+ __extends(MatStepLabel, _super);
2837
+ /**
2838
+ * @param {?} template
2839
+ */
2840
+ function MatStepLabel(template) {
2841
+ return _super.call(this, template) || this;
2842
+ }
2843
+ MatStepLabel.decorators = [
2844
+ { type: _angular_core.Directive, args: [{
2845
+ selector: '[matStepLabel]',
2846
+ },] },
2847
+ ];
2848
+ /**
2849
+ * @nocollapse
2850
+ */
2851
+ MatStepLabel.ctorParameters = function () { return [
2852
+ { type: _angular_core.TemplateRef, },
2853
+ ]; };
2854
+ return MatStepLabel;
2855
+ }(_MatStepLabel));
2856
+
2857
+ /**
2858
+ * Stepper data that is required for internationalization.
2859
+ */
2860
+ var MatStepperIntl = (function () {
2861
+ function MatStepperIntl() {
2862
+ /**
2863
+ * Stream that emits whenever the labels here are changed. Use this to notify
2864
+ * components if the labels have changed after initialization.
2865
+ */
2866
+ this.changes = new rxjs_Subject.Subject();
2867
+ /**
2868
+ * Label that is rendered below optional steps.
2869
+ */
2870
+ this.optionalLabel = 'Optional';
2871
+ }
2872
+ MatStepperIntl.decorators = [
2873
+ { type: _angular_core.Injectable },
2874
+ ];
2875
+ /**
2876
+ * @nocollapse
2877
+ */
2878
+ MatStepperIntl.ctorParameters = function () { return []; };
2879
+ return MatStepperIntl;
2880
+ }());
2881
+
2882
+ var MatStepHeader = (function () {
2883
+ /**
2884
+ * @param {?} _intl
2885
+ * @param {?} _focusMonitor
2886
+ * @param {?} _element
2887
+ * @param {?} renderer
2888
+ * @param {?} changeDetectorRef
2889
+ */
2890
+ function MatStepHeader(_intl, _focusMonitor, _element, renderer, changeDetectorRef) {
2891
+ this._intl = _intl;
2892
+ this._focusMonitor = _focusMonitor;
2893
+ this._element = _element;
2894
+ _focusMonitor.monitor(_element.nativeElement, renderer, true);
2895
+ this._intlSubscription = _intl.changes.subscribe(function () { return changeDetectorRef.markForCheck(); });
2896
+ }
2897
+ Object.defineProperty(MatStepHeader.prototype, "index", {
2898
+ /**
2899
+ * Index of the given step.
2900
+ * @return {?}
2901
+ */
2902
+ get: function () { return this._index; },
2903
+ /**
2904
+ * @param {?} value
2905
+ * @return {?}
2906
+ */
2907
+ set: function (value) {
2908
+ this._index = _angular_cdk_coercion.coerceNumberProperty(value);
2909
+ },
2910
+ enumerable: true,
2911
+ configurable: true
2912
+ });
2913
+ Object.defineProperty(MatStepHeader.prototype, "selected", {
2914
+ /**
2915
+ * Whether the given step is selected.
2916
+ * @return {?}
2917
+ */
2918
+ get: function () { return this._selected; },
2919
+ /**
2920
+ * @param {?} value
2921
+ * @return {?}
2922
+ */
2923
+ set: function (value) {
2924
+ this._selected = _angular_cdk_coercion.coerceBooleanProperty(value);
2925
+ },
2926
+ enumerable: true,
2927
+ configurable: true
2928
+ });
2929
+ Object.defineProperty(MatStepHeader.prototype, "active", {
2930
+ /**
2931
+ * Whether the given step label is active.
2932
+ * @return {?}
2933
+ */
2934
+ get: function () { return this._active; },
2935
+ /**
2936
+ * @param {?} value
2937
+ * @return {?}
2938
+ */
2939
+ set: function (value) {
2940
+ this._active = _angular_cdk_coercion.coerceBooleanProperty(value);
2941
+ },
2942
+ enumerable: true,
2943
+ configurable: true
2944
+ });
2945
+ Object.defineProperty(MatStepHeader.prototype, "optional", {
2946
+ /**
2947
+ * Whether the given step is optional.
2948
+ * @return {?}
2949
+ */
2950
+ get: function () { return this._optional; },
2951
+ /**
2952
+ * @param {?} value
2953
+ * @return {?}
2954
+ */
2955
+ set: function (value) {
2956
+ this._optional = _angular_cdk_coercion.coerceBooleanProperty(value);
2957
+ },
2958
+ enumerable: true,
2959
+ configurable: true
2960
+ });
2961
+ /**
2962
+ * @return {?}
2963
+ */
2964
+ MatStepHeader.prototype.ngOnDestroy = function () {
2965
+ this._intlSubscription.unsubscribe();
2966
+ this._focusMonitor.stopMonitoring(this._element.nativeElement);
2967
+ };
2968
+ /**
2969
+ * Returns string label of given step if it is a text label.
2970
+ * @return {?}
2971
+ */
2972
+ MatStepHeader.prototype._stringLabel = function () {
2973
+ return this.label instanceof MatStepLabel ? null : this.label;
2974
+ };
2975
+ /**
2976
+ * Returns MatStepLabel if the label of given step is a template label.
2977
+ * @return {?}
2978
+ */
2979
+ MatStepHeader.prototype._templateLabel = function () {
2980
+ return this.label instanceof MatStepLabel ? this.label : null;
2981
+ };
2982
+ /**
2983
+ * Returns the host HTML element.
2984
+ * @return {?}
2985
+ */
2986
+ MatStepHeader.prototype._getHostElement = function () {
2987
+ return this._element.nativeElement;
2988
+ };
2989
+ MatStepHeader.decorators = [
2990
+ { type: _angular_core.Component, args: [{selector: 'mat-step-header',
2991
+ template: "<div class=\"mat-step-header-ripple\" mat-ripple [matRippleTrigger]=\"_getHostElement()\"></div><div [class.mat-step-icon]=\"icon !== 'number' || selected\" [class.mat-step-icon-not-touched]=\"icon == 'number' && !selected\" [ngSwitch]=\"icon\"><span *ngSwitchCase=\"'number'\">{{index + 1}}</span><mat-icon *ngSwitchCase=\"'edit'\">create</mat-icon><mat-icon *ngSwitchCase=\"'done'\">done</mat-icon></div><div class=\"mat-step-label\" [class.mat-step-label-active]=\"active\" [class.mat-step-label-selected]=\"selected\"><ng-container *ngIf=\"_templateLabel()\" [ngTemplateOutlet]=\"label.template\"></ng-container><div class=\"mat-step-text-label\" *ngIf=\"_stringLabel()\">{{label}}</div><div class=\"mat-step-optional\" *ngIf=\"optional\">{{_intl.optionalLabel}}</div></div>",
2992
+ styles: [".mat-step-header{overflow:hidden;outline:0;cursor:pointer;position:relative}.mat-step-optional{font-size:12px}.mat-step-icon,.mat-step-icon-not-touched{border-radius:50%;height:24px;width:24px;align-items:center;justify-content:center;display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],
2993
+ host: {
2994
+ 'class': 'mat-step-header',
2995
+ 'role': 'tab',
2996
+ },
2997
+ encapsulation: _angular_core.ViewEncapsulation.None,
2998
+ preserveWhitespaces: false,
2999
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
3000
+ },] },
3001
+ ];
3002
+ /**
3003
+ * @nocollapse
3004
+ */
3005
+ MatStepHeader.ctorParameters = function () { return [
3006
+ { type: MatStepperIntl, },
3007
+ { type: _angular_cdk_a11y.FocusMonitor, },
3008
+ { type: _angular_core.ElementRef, },
3009
+ { type: _angular_core.Renderer2, },
3010
+ { type: _angular_core.ChangeDetectorRef, },
3011
+ ]; };
3012
+ MatStepHeader.propDecorators = {
3013
+ 'icon': [{ type: _angular_core.Input },],
3014
+ 'label': [{ type: _angular_core.Input },],
3015
+ 'index': [{ type: _angular_core.Input },],
3016
+ 'selected': [{ type: _angular_core.Input },],
3017
+ 'active': [{ type: _angular_core.Input },],
3018
+ 'optional': [{ type: _angular_core.Input },],
3019
+ };
3020
+ return MatStepHeader;
3021
+ }());
3022
+
3023
+ /**
3024
+ * Workaround for https://github.com/angular/angular/issues/17849
3025
+ */
3026
+ var _MatStep = _angular_cdk_stepper.CdkStep;
3027
+ var _MatStepper = _angular_cdk_stepper.CdkStepper;
3028
+ var MatStep = (function (_super) {
3029
+ __extends(MatStep, _super);
3030
+ /**
3031
+ * @param {?} stepper
3032
+ * @param {?} _errorStateMatcher
3033
+ */
3034
+ function MatStep(stepper, _errorStateMatcher) {
3035
+ var _this = _super.call(this, stepper) || this;
3036
+ _this._errorStateMatcher = _errorStateMatcher;
3037
+ return _this;
3038
+ }
3039
+ /**
3040
+ * Custom error state matcher that additionally checks for validity of interacted form.
3041
+ * @param {?} control
3042
+ * @param {?} form
3043
+ * @return {?}
3044
+ */
3045
+ MatStep.prototype.isErrorState = function (control, form) {
3046
+ var /** @type {?} */ originalErrorState = this._errorStateMatcher.isErrorState(control, form);
3047
+ // Custom error state checks for the validity of form that is not submitted or touched
3048
+ // since user can trigger a form change by calling for another step without directly
3049
+ // interacting with the current form.
3050
+ var /** @type {?} */ customErrorState = !!(control && control.invalid && this.interacted);
3051
+ return originalErrorState || customErrorState;
3052
+ };
3053
+ MatStep.decorators = [
3054
+ { type: _angular_core.Component, args: [{selector: 'mat-step',
3055
+ template: "<ng-template><ng-content></ng-content></ng-template>",
3056
+ providers: [{ provide: ErrorStateMatcher, useExisting: MatStep }],
3057
+ encapsulation: _angular_core.ViewEncapsulation.None,
3058
+ exportAs: 'matStep',
3059
+ preserveWhitespaces: false,
3060
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
3061
+ },] },
3062
+ ];
3063
+ /**
3064
+ * @nocollapse
3065
+ */
3066
+ MatStep.ctorParameters = function () { return [
3067
+ { type: MatStepper, decorators: [{ type: _angular_core.Inject, args: [_angular_core.forwardRef(function () { return MatStepper; }),] },] },
3068
+ { type: ErrorStateMatcher, decorators: [{ type: _angular_core.SkipSelf },] },
3069
+ ]; };
3070
+ MatStep.propDecorators = {
3071
+ 'stepLabel': [{ type: _angular_core.ContentChild, args: [MatStepLabel,] },],
3072
+ };
3073
+ return MatStep;
3074
+ }(_MatStep));
3075
+ var MatStepper = (function (_super) {
3076
+ __extends(MatStepper, _super);
3077
+ function MatStepper() {
3078
+ return _super !== null && _super.apply(this, arguments) || this;
3079
+ }
3080
+ MatStepper.decorators = [
3081
+ { type: _angular_core.Directive, args: [{
3082
+ selector: '[matStepper]'
3083
+ },] },
3084
+ ];
3085
+ /**
3086
+ * @nocollapse
3087
+ */
3088
+ MatStepper.ctorParameters = function () { return []; };
3089
+ MatStepper.propDecorators = {
3090
+ '_stepHeader': [{ type: _angular_core.ViewChildren, args: [MatStepHeader, { read: _angular_core.ElementRef },] },],
3091
+ '_steps': [{ type: _angular_core.ContentChildren, args: [MatStep,] },],
3092
+ };
3093
+ return MatStepper;
3094
+ }(_MatStepper));
3095
+ var MatHorizontalStepper = (function (_super) {
3096
+ __extends(MatHorizontalStepper, _super);
3097
+ function MatHorizontalStepper() {
3098
+ return _super !== null && _super.apply(this, arguments) || this;
3099
+ }
3100
+ MatHorizontalStepper.decorators = [
3101
+ { type: _angular_core.Component, args: [{selector: 'mat-horizontal-stepper',
3102
+ exportAs: 'matHorizontalStepper',
3103
+ template: "<div class=\"mat-horizontal-stepper-header-container\"><ng-container *ngFor=\"let step of _steps; let i = index; let isLast = last\"><mat-step-header class=\"mat-horizontal-stepper-header\" (click)=\"step.select()\" (keydown)=\"_onKeydown($event)\" [tabIndex]=\"_focusIndex === i ? 0 : -1\" [id]=\"_getStepLabelId(i)\" [attr.aria-controls]=\"_getStepContentId(i)\" [attr.aria-selected]=\"selectedIndex == i\" [index]=\"i\" [icon]=\"_getIndicatorType(i)\" [label]=\"step.stepLabel || step.label\" [selected]=\"selectedIndex === i\" [active]=\"step.completed || selectedIndex === i\" [optional]=\"step.optional\"></mat-step-header><div *ngIf=\"!isLast\" class=\"mat-stepper-horizontal-line\"></div></ng-container></div><div class=\"mat-horizontal-content-container\"><div *ngFor=\"let step of _steps; let i = index\" class=\"mat-horizontal-stepper-content\" role=\"tabpanel\" [@stepTransition]=\"_getAnimationDirection(i)\" [id]=\"_getStepContentId(i)\" [attr.aria-labelledby]=\"_getStepLabelId(i)\" [attr.aria-expanded]=\"selectedIndex === i\"><ng-container [ngTemplateOutlet]=\"step.content\"></ng-container></div></div>",
3104
+ styles: [".mat-stepper-horizontal,.mat-stepper-vertical{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon,.mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon,[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:8px}.mat-vertical-stepper-header{display:flex;align-items:center;padding:24px;max-height:24px}.mat-vertical-stepper-header .mat-step-icon,.mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon,[dir=rtl] .mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{overflow:hidden}.mat-horizontal-stepper-content[aria-expanded=false]{height:0}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:'';position:absolute;top:-16px;bottom:-16px;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}"],
3105
+ inputs: ['selectedIndex'],
3106
+ host: {
3107
+ 'class': 'mat-stepper-horizontal',
3108
+ 'role': 'tablist',
3109
+ },
3110
+ animations: [
3111
+ _angular_animations.trigger('stepTransition', [
3112
+ _angular_animations.state('previous', _angular_animations.style({ transform: 'translate3d(-100%, 0, 0)', visibility: 'hidden' })),
3113
+ _angular_animations.state('current', _angular_animations.style({ transform: 'none', visibility: 'visible' })),
3114
+ _angular_animations.state('next', _angular_animations.style({ transform: 'translate3d(100%, 0, 0)', visibility: 'hidden' })),
3115
+ _angular_animations.transition('* => *', _angular_animations.animate('500ms cubic-bezier(0.35, 0, 0.25, 1)'))
3116
+ ])
3117
+ ],
3118
+ providers: [{ provide: MatStepper, useExisting: MatHorizontalStepper }],
3119
+ encapsulation: _angular_core.ViewEncapsulation.None,
3120
+ preserveWhitespaces: false,
3121
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
3122
+ },] },
3123
+ ];
3124
+ /**
3125
+ * @nocollapse
3126
+ */
3127
+ MatHorizontalStepper.ctorParameters = function () { return []; };
3128
+ return MatHorizontalStepper;
3129
+ }(MatStepper));
3130
+ var MatVerticalStepper = (function (_super) {
3131
+ __extends(MatVerticalStepper, _super);
3132
+ function MatVerticalStepper() {
3133
+ return _super !== null && _super.apply(this, arguments) || this;
3134
+ }
3135
+ MatVerticalStepper.decorators = [
3136
+ { type: _angular_core.Component, args: [{selector: 'mat-vertical-stepper',
3137
+ exportAs: 'matVerticalStepper',
3138
+ template: "<div class=\"mat-step\" *ngFor=\"let step of _steps; let i = index; let isLast = last\"><mat-step-header class=\"mat-vertical-stepper-header\" (click)=\"step.select()\" (keydown)=\"_onKeydown($event)\" [tabIndex]=\"_focusIndex == i ? 0 : -1\" [id]=\"_getStepLabelId(i)\" [attr.aria-controls]=\"_getStepContentId(i)\" [attr.aria-selected]=\"selectedIndex === i\" [index]=\"i\" [icon]=\"_getIndicatorType(i)\" [label]=\"step.stepLabel || step.label\" [selected]=\"selectedIndex === i\" [active]=\"step.completed || selectedIndex === i\" [optional]=\"step.optional\"></mat-step-header><div class=\"mat-vertical-content-container\" [class.mat-stepper-vertical-line]=\"!isLast\"><div class=\"mat-vertical-stepper-content\" role=\"tabpanel\" [@stepTransition]=\"_getAnimationDirection(i)\" [id]=\"_getStepContentId(i)\" [attr.aria-labelledby]=\"_getStepLabelId(i)\" [attr.aria-expanded]=\"selectedIndex === i\"><div class=\"mat-vertical-content\"><ng-container [ngTemplateOutlet]=\"step.content\"></ng-container></div></div></div></div>",
3139
+ styles: [".mat-stepper-horizontal,.mat-stepper-vertical{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon,.mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon,[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:8px}.mat-vertical-stepper-header{display:flex;align-items:center;padding:24px;max-height:24px}.mat-vertical-stepper-header .mat-step-icon,.mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon,[dir=rtl] .mat-vertical-stepper-header .mat-step-icon-not-touched{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{overflow:hidden}.mat-horizontal-stepper-content[aria-expanded=false]{height:0}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:'';position:absolute;top:-16px;bottom:-16px;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}"],
3140
+ inputs: ['selectedIndex'],
3141
+ host: {
3142
+ 'class': 'mat-stepper-vertical',
3143
+ 'role': 'tablist',
3144
+ },
3145
+ animations: [
3146
+ _angular_animations.trigger('stepTransition', [
3147
+ _angular_animations.state('previous', _angular_animations.style({ height: '0px', visibility: 'hidden' })),
3148
+ _angular_animations.state('next', _angular_animations.style({ height: '0px', visibility: 'hidden' })),
3149
+ _angular_animations.state('current', _angular_animations.style({ height: '*', visibility: 'visible' })),
3150
+ _angular_animations.transition('* <=> current', _angular_animations.animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)'))
3151
+ ])
3152
+ ],
3153
+ providers: [{ provide: MatStepper, useExisting: MatVerticalStepper }],
3154
+ encapsulation: _angular_core.ViewEncapsulation.None,
3155
+ preserveWhitespaces: false,
3156
+ changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
3157
+ },] },
3158
+ ];
3159
+ /**
3160
+ * @nocollapse
3161
+ */
3162
+ MatVerticalStepper.ctorParameters = function () { return []; };
3163
+ return MatVerticalStepper;
3164
+ }(MatStepper));
3165
+
3166
+ /**
3167
+ * Workaround for https://github.com/angular/angular/issues/17849
3168
+ */
3169
+ var _MatStepperNext = _angular_cdk_stepper.CdkStepperNext;
3170
+ var _MatStepperPrevious = _angular_cdk_stepper.CdkStepperPrevious;
3171
+ /**
3172
+ * Button that moves to the next step in a stepper workflow.
3173
+ */
3174
+ var MatStepperNext = (function (_super) {
3175
+ __extends(MatStepperNext, _super);
3176
+ function MatStepperNext() {
3177
+ return _super !== null && _super.apply(this, arguments) || this;
3178
+ }
3179
+ MatStepperNext.decorators = [
3180
+ { type: _angular_core.Directive, args: [{
3181
+ selector: 'button[matStepperNext]',
3182
+ host: { '(click)': '_stepper.next()' },
3183
+ providers: [{ provide: _angular_cdk_stepper.CdkStepper, useExisting: MatStepper }]
3184
+ },] },
3185
+ ];
3186
+ /**
3187
+ * @nocollapse
3188
+ */
3189
+ MatStepperNext.ctorParameters = function () { return []; };
3190
+ return MatStepperNext;
3191
+ }(_MatStepperNext));
3192
+ /**
3193
+ * Button that moves to the previous step in a stepper workflow.
3194
+ */
3195
+ var MatStepperPrevious = (function (_super) {
3196
+ __extends(MatStepperPrevious, _super);
3197
+ function MatStepperPrevious() {
3198
+ return _super !== null && _super.apply(this, arguments) || this;
3199
+ }
3200
+ MatStepperPrevious.decorators = [
3201
+ { type: _angular_core.Directive, args: [{
3202
+ selector: 'button[matStepperPrevious]',
3203
+ host: { '(click)': '_stepper.previous()' },
3204
+ providers: [{ provide: _angular_cdk_stepper.CdkStepper, useExisting: MatStepper }]
3205
+ },] },
3206
+ ];
3207
+ /**
3208
+ * @nocollapse
3209
+ */
3210
+ MatStepperPrevious.ctorParameters = function () { return []; };
3211
+ return MatStepperPrevious;
3212
+ }(_MatStepperPrevious));
3213
+
3214
+ var MatStepperModule = (function () {
3215
+ function MatStepperModule() {
3216
+ }
3217
+ MatStepperModule.decorators = [
3218
+ { type: _angular_core.NgModule, args: [{
3219
+ imports: [
3220
+ MatCommonModule,
3221
+ _angular_common.CommonModule,
3222
+ _angular_cdk_portal.PortalModule,
3223
+ MatButtonModule,
3224
+ _angular_cdk_stepper.CdkStepperModule,
3225
+ MatIconModule,
3226
+ _angular_cdk_a11y.A11yModule,
3227
+ MatRippleModule,
3228
+ ],
3229
+ exports: [
3230
+ MatCommonModule,
3231
+ MatHorizontalStepper,
3232
+ MatVerticalStepper,
3233
+ MatStep,
3234
+ MatStepLabel,
3235
+ MatStepper,
3236
+ MatStepperNext,
3237
+ MatStepperPrevious,
3238
+ MatStepHeader
3239
+ ],
3240
+ declarations: [MatHorizontalStepper, MatVerticalStepper, MatStep, MatStepLabel, MatStepper,
3241
+ MatStepperNext, MatStepperPrevious, MatStepHeader],
3242
+ providers: [MatStepperIntl, ErrorStateMatcher],
3243
+ },] },
3244
+ ];
3245
+ /**
3246
+ * @nocollapse
3247
+ */
3248
+ MatStepperModule.ctorParameters = function () { return []; };
3249
+ return MatStepperModule;
3250
+ }());
3251
+
3252
+ exports.MatStepperModule = MatStepperModule;
3253
+ exports._MatStepLabel = _MatStepLabel;
3254
+ exports.MatStepLabel = MatStepLabel;
3255
+ exports._MatStep = _MatStep;
3256
+ exports._MatStepper = _MatStepper;
3257
+ exports.MatStep = MatStep;
3258
+ exports.MatStepper = MatStepper;
3259
+ exports.MatHorizontalStepper = MatHorizontalStepper;
3260
+ exports.MatVerticalStepper = MatVerticalStepper;
3261
+ exports._MatStepperNext = _MatStepperNext;
3262
+ exports._MatStepperPrevious = _MatStepperPrevious;
3263
+ exports.MatStepperNext = MatStepperNext;
3264
+ exports.MatStepperPrevious = MatStepperPrevious;
3265
+ exports.MatStepHeader = MatStepHeader;
3266
+ exports.MatStepperIntl = MatStepperIntl;
3267
+
3268
+ Object.defineProperty(exports, '__esModule', { value: true });
3269
+
3270
+ })));
3271
+ //# sourceMappingURL=material-stepper.umd.js.map