@angular/material 11.0.0-rc.4 → 11.0.3

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 (367) hide show
  1. package/_theming.scss +31 -1
  2. package/autocomplete/autocomplete.d.ts +6 -0
  3. package/autocomplete/index.metadata.json +1 -1
  4. package/bottom-sheet/index.metadata.json +1 -1
  5. package/bundles/material-autocomplete-testing.umd.js +5 -5
  6. package/bundles/material-autocomplete-testing.umd.js.map +1 -1
  7. package/bundles/material-autocomplete-testing.umd.min.js +1 -1
  8. package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
  9. package/bundles/material-autocomplete.umd.js +17 -7
  10. package/bundles/material-autocomplete.umd.js.map +1 -1
  11. package/bundles/material-autocomplete.umd.min.js +3 -3
  12. package/bundles/material-autocomplete.umd.min.js.map +1 -1
  13. package/bundles/material-badge-testing.umd.js +5 -5
  14. package/bundles/material-badge-testing.umd.js.map +1 -1
  15. package/bundles/material-badge-testing.umd.min.js +1 -1
  16. package/bundles/material-badge-testing.umd.min.js.map +1 -1
  17. package/bundles/material-badge.umd.js +5 -5
  18. package/bundles/material-badge.umd.js.map +1 -1
  19. package/bundles/material-badge.umd.min.js +1 -1
  20. package/bundles/material-badge.umd.min.js.map +1 -1
  21. package/bundles/material-bottom-sheet-testing.umd.js +5 -5
  22. package/bundles/material-bottom-sheet-testing.umd.js.map +1 -1
  23. package/bundles/material-bottom-sheet-testing.umd.min.js +1 -1
  24. package/bundles/material-bottom-sheet-testing.umd.min.js.map +1 -1
  25. package/bundles/material-bottom-sheet.umd.js +10 -6
  26. package/bundles/material-bottom-sheet.umd.js.map +1 -1
  27. package/bundles/material-bottom-sheet.umd.min.js +1 -1
  28. package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
  29. package/bundles/material-button-testing.umd.js +5 -5
  30. package/bundles/material-button-testing.umd.js.map +1 -1
  31. package/bundles/material-button-testing.umd.min.js +1 -1
  32. package/bundles/material-button-testing.umd.min.js.map +1 -1
  33. package/bundles/material-button-toggle-testing.umd.js +5 -5
  34. package/bundles/material-button-toggle-testing.umd.js.map +1 -1
  35. package/bundles/material-button-toggle-testing.umd.min.js +1 -1
  36. package/bundles/material-button-toggle-testing.umd.min.js.map +1 -1
  37. package/bundles/material-button-toggle.umd.js +6 -8
  38. package/bundles/material-button-toggle.umd.js.map +1 -1
  39. package/bundles/material-button-toggle.umd.min.js +1 -1
  40. package/bundles/material-button-toggle.umd.min.js.map +1 -1
  41. package/bundles/material-button.umd.js +5 -5
  42. package/bundles/material-button.umd.js.map +1 -1
  43. package/bundles/material-button.umd.min.js +1 -1
  44. package/bundles/material-button.umd.min.js.map +1 -1
  45. package/bundles/material-card-testing.umd.js +5 -5
  46. package/bundles/material-card-testing.umd.js.map +1 -1
  47. package/bundles/material-card-testing.umd.min.js +1 -1
  48. package/bundles/material-card-testing.umd.min.js.map +1 -1
  49. package/bundles/material-checkbox-testing.umd.js +8 -8
  50. package/bundles/material-checkbox-testing.umd.js.map +1 -1
  51. package/bundles/material-checkbox-testing.umd.min.js +1 -1
  52. package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
  53. package/bundles/material-checkbox.umd.js +11 -11
  54. package/bundles/material-checkbox.umd.js.map +1 -1
  55. package/bundles/material-checkbox.umd.min.js +3 -3
  56. package/bundles/material-checkbox.umd.min.js.map +1 -1
  57. package/bundles/material-chips-testing.umd.js +5 -5
  58. package/bundles/material-chips-testing.umd.js.map +1 -1
  59. package/bundles/material-chips-testing.umd.min.js +1 -1
  60. package/bundles/material-chips-testing.umd.min.js.map +1 -1
  61. package/bundles/material-chips.umd.js +8 -6
  62. package/bundles/material-chips.umd.js.map +1 -1
  63. package/bundles/material-chips.umd.min.js +4 -4
  64. package/bundles/material-chips.umd.min.js.map +1 -1
  65. package/bundles/material-core-testing.umd.js +5 -5
  66. package/bundles/material-core-testing.umd.js.map +1 -1
  67. package/bundles/material-core-testing.umd.min.js +2 -2
  68. package/bundles/material-core-testing.umd.min.js.map +1 -1
  69. package/bundles/material-core.umd.js +9 -8
  70. package/bundles/material-core.umd.js.map +1 -1
  71. package/bundles/material-core.umd.min.js +4 -4
  72. package/bundles/material-core.umd.min.js.map +1 -1
  73. package/bundles/material-datepicker-testing.umd.js +5 -5
  74. package/bundles/material-datepicker-testing.umd.js.map +1 -1
  75. package/bundles/material-datepicker-testing.umd.min.js +1 -1
  76. package/bundles/material-datepicker-testing.umd.min.js.map +1 -1
  77. package/bundles/material-datepicker.umd.js +31 -11
  78. package/bundles/material-datepicker.umd.js.map +1 -1
  79. package/bundles/material-datepicker.umd.min.js +5 -5
  80. package/bundles/material-datepicker.umd.min.js.map +1 -1
  81. package/bundles/material-dialog-testing.umd.js +5 -5
  82. package/bundles/material-dialog-testing.umd.js.map +1 -1
  83. package/bundles/material-dialog-testing.umd.min.js +2 -2
  84. package/bundles/material-dialog-testing.umd.min.js.map +1 -1
  85. package/bundles/material-dialog.umd.js +5 -5
  86. package/bundles/material-dialog.umd.js.map +1 -1
  87. package/bundles/material-dialog.umd.min.js +4 -4
  88. package/bundles/material-dialog.umd.min.js.map +1 -1
  89. package/bundles/material-divider-testing.umd.js +5 -5
  90. package/bundles/material-divider-testing.umd.js.map +1 -1
  91. package/bundles/material-divider-testing.umd.min.js +1 -1
  92. package/bundles/material-divider-testing.umd.min.js.map +1 -1
  93. package/bundles/material-expansion-testing.umd.js +5 -5
  94. package/bundles/material-expansion-testing.umd.js.map +1 -1
  95. package/bundles/material-expansion-testing.umd.min.js +1 -1
  96. package/bundles/material-expansion-testing.umd.min.js.map +1 -1
  97. package/bundles/material-expansion.umd.js +14 -10
  98. package/bundles/material-expansion.umd.js.map +1 -1
  99. package/bundles/material-expansion.umd.min.js +6 -6
  100. package/bundles/material-expansion.umd.min.js.map +1 -1
  101. package/bundles/material-form-field-testing-control.umd.js +5 -5
  102. package/bundles/material-form-field-testing-control.umd.js.map +1 -1
  103. package/bundles/material-form-field-testing-control.umd.min.js +2 -2
  104. package/bundles/material-form-field-testing-control.umd.min.js.map +1 -1
  105. package/bundles/material-form-field-testing.umd.js +5 -5
  106. package/bundles/material-form-field-testing.umd.js.map +1 -1
  107. package/bundles/material-form-field-testing.umd.min.js +3 -3
  108. package/bundles/material-form-field-testing.umd.min.js.map +1 -1
  109. package/bundles/material-form-field.umd.js +5 -5
  110. package/bundles/material-form-field.umd.js.map +1 -1
  111. package/bundles/material-form-field.umd.min.js +1 -1
  112. package/bundles/material-form-field.umd.min.js.map +1 -1
  113. package/bundles/material-grid-list-testing.umd.js +5 -5
  114. package/bundles/material-grid-list-testing.umd.js.map +1 -1
  115. package/bundles/material-grid-list-testing.umd.min.js +1 -1
  116. package/bundles/material-grid-list-testing.umd.min.js.map +1 -1
  117. package/bundles/material-grid-list.umd.js +5 -5
  118. package/bundles/material-grid-list.umd.js.map +1 -1
  119. package/bundles/material-grid-list.umd.min.js +1 -1
  120. package/bundles/material-grid-list.umd.min.js.map +1 -1
  121. package/bundles/material-icon-testing.umd.js +5 -5
  122. package/bundles/material-icon-testing.umd.js.map +1 -1
  123. package/bundles/material-icon-testing.umd.min.js +1 -1
  124. package/bundles/material-icon-testing.umd.min.js.map +1 -1
  125. package/bundles/material-icon.umd.js +5 -5
  126. package/bundles/material-icon.umd.js.map +1 -1
  127. package/bundles/material-icon.umd.min.js +3 -3
  128. package/bundles/material-icon.umd.min.js.map +1 -1
  129. package/bundles/material-input-testing.umd.js +5 -5
  130. package/bundles/material-input-testing.umd.js.map +1 -1
  131. package/bundles/material-input-testing.umd.min.js +1 -1
  132. package/bundles/material-input-testing.umd.min.js.map +1 -1
  133. package/bundles/material-input.umd.js +6 -5
  134. package/bundles/material-input.umd.js.map +1 -1
  135. package/bundles/material-input.umd.min.js +3 -3
  136. package/bundles/material-input.umd.min.js.map +1 -1
  137. package/bundles/material-list-testing.umd.js +5 -5
  138. package/bundles/material-list-testing.umd.js.map +1 -1
  139. package/bundles/material-list-testing.umd.min.js +1 -1
  140. package/bundles/material-list-testing.umd.min.js.map +1 -1
  141. package/bundles/material-list.umd.js +5 -5
  142. package/bundles/material-list.umd.js.map +1 -1
  143. package/bundles/material-list.umd.min.js +1 -1
  144. package/bundles/material-list.umd.min.js.map +1 -1
  145. package/bundles/material-menu-testing.umd.js +5 -5
  146. package/bundles/material-menu-testing.umd.js.map +1 -1
  147. package/bundles/material-menu-testing.umd.min.js +1 -1
  148. package/bundles/material-menu-testing.umd.min.js.map +1 -1
  149. package/bundles/material-menu.umd.js +10 -5
  150. package/bundles/material-menu.umd.js.map +1 -1
  151. package/bundles/material-menu.umd.min.js +5 -5
  152. package/bundles/material-menu.umd.min.js.map +1 -1
  153. package/bundles/material-paginator-testing.umd.js +5 -5
  154. package/bundles/material-paginator-testing.umd.js.map +1 -1
  155. package/bundles/material-paginator-testing.umd.min.js +1 -1
  156. package/bundles/material-paginator-testing.umd.min.js.map +1 -1
  157. package/bundles/material-paginator.umd.js +10 -9
  158. package/bundles/material-paginator.umd.js.map +1 -1
  159. package/bundles/material-paginator.umd.min.js +2 -2
  160. package/bundles/material-paginator.umd.min.js.map +1 -1
  161. package/bundles/material-progress-bar-testing.umd.js +5 -5
  162. package/bundles/material-progress-bar-testing.umd.js.map +1 -1
  163. package/bundles/material-progress-bar-testing.umd.min.js +1 -1
  164. package/bundles/material-progress-bar-testing.umd.min.js.map +1 -1
  165. package/bundles/material-progress-bar.umd.js +5 -5
  166. package/bundles/material-progress-bar.umd.js.map +1 -1
  167. package/bundles/material-progress-bar.umd.min.js +1 -1
  168. package/bundles/material-progress-bar.umd.min.js.map +1 -1
  169. package/bundles/material-progress-spinner-testing.umd.js +5 -5
  170. package/bundles/material-progress-spinner-testing.umd.js.map +1 -1
  171. package/bundles/material-progress-spinner-testing.umd.min.js +1 -1
  172. package/bundles/material-progress-spinner-testing.umd.min.js.map +1 -1
  173. package/bundles/material-progress-spinner.umd.js +5 -5
  174. package/bundles/material-progress-spinner.umd.js.map +1 -1
  175. package/bundles/material-progress-spinner.umd.min.js +1 -1
  176. package/bundles/material-progress-spinner.umd.min.js.map +1 -1
  177. package/bundles/material-radio-testing.umd.js +5 -5
  178. package/bundles/material-radio-testing.umd.js.map +1 -1
  179. package/bundles/material-radio-testing.umd.min.js +1 -1
  180. package/bundles/material-radio-testing.umd.min.js.map +1 -1
  181. package/bundles/material-radio.umd.js +10 -7
  182. package/bundles/material-radio.umd.js.map +1 -1
  183. package/bundles/material-radio.umd.min.js +2 -2
  184. package/bundles/material-radio.umd.min.js.map +1 -1
  185. package/bundles/material-select-testing.umd.js +5 -5
  186. package/bundles/material-select-testing.umd.js.map +1 -1
  187. package/bundles/material-select-testing.umd.min.js +1 -1
  188. package/bundles/material-select-testing.umd.min.js.map +1 -1
  189. package/bundles/material-select.umd.js +12 -8
  190. package/bundles/material-select.umd.js.map +1 -1
  191. package/bundles/material-select.umd.min.js +3 -3
  192. package/bundles/material-select.umd.min.js.map +1 -1
  193. package/bundles/material-sidenav-testing.umd.js +5 -5
  194. package/bundles/material-sidenav-testing.umd.js.map +1 -1
  195. package/bundles/material-sidenav-testing.umd.min.js +1 -1
  196. package/bundles/material-sidenav-testing.umd.min.js.map +1 -1
  197. package/bundles/material-sidenav.umd.js +5 -5
  198. package/bundles/material-sidenav.umd.js.map +1 -1
  199. package/bundles/material-sidenav.umd.min.js +1 -1
  200. package/bundles/material-sidenav.umd.min.js.map +1 -1
  201. package/bundles/material-slide-toggle-testing.umd.js +5 -5
  202. package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
  203. package/bundles/material-slide-toggle-testing.umd.min.js +1 -1
  204. package/bundles/material-slide-toggle-testing.umd.min.js.map +1 -1
  205. package/bundles/material-slide-toggle.umd.js +5 -5
  206. package/bundles/material-slide-toggle.umd.js.map +1 -1
  207. package/bundles/material-slide-toggle.umd.min.js +1 -1
  208. package/bundles/material-slide-toggle.umd.min.js.map +1 -1
  209. package/bundles/material-slider-testing.umd.js +5 -5
  210. package/bundles/material-slider-testing.umd.js.map +1 -1
  211. package/bundles/material-slider-testing.umd.min.js +1 -1
  212. package/bundles/material-slider-testing.umd.min.js.map +1 -1
  213. package/bundles/material-slider.umd.js +6 -6
  214. package/bundles/material-slider.umd.js.map +1 -1
  215. package/bundles/material-slider.umd.min.js +1 -1
  216. package/bundles/material-slider.umd.min.js.map +1 -1
  217. package/bundles/material-snack-bar-testing.umd.js +5 -5
  218. package/bundles/material-snack-bar-testing.umd.js.map +1 -1
  219. package/bundles/material-snack-bar-testing.umd.min.js +1 -1
  220. package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
  221. package/bundles/material-snack-bar.umd.js +5 -5
  222. package/bundles/material-snack-bar.umd.js.map +1 -1
  223. package/bundles/material-snack-bar.umd.min.js +1 -1
  224. package/bundles/material-snack-bar.umd.min.js.map +1 -1
  225. package/bundles/material-sort-testing.umd.js +5 -5
  226. package/bundles/material-sort-testing.umd.js.map +1 -1
  227. package/bundles/material-sort-testing.umd.min.js +1 -1
  228. package/bundles/material-sort-testing.umd.min.js.map +1 -1
  229. package/bundles/material-sort.umd.js +6 -6
  230. package/bundles/material-sort.umd.js.map +1 -1
  231. package/bundles/material-sort.umd.min.js +2 -2
  232. package/bundles/material-sort.umd.min.js.map +1 -1
  233. package/bundles/material-stepper-testing.umd.js +5 -5
  234. package/bundles/material-stepper-testing.umd.js.map +1 -1
  235. package/bundles/material-stepper-testing.umd.min.js +2 -2
  236. package/bundles/material-stepper-testing.umd.min.js.map +1 -1
  237. package/bundles/material-stepper.umd.js +5 -5
  238. package/bundles/material-stepper.umd.js.map +1 -1
  239. package/bundles/material-stepper.umd.min.js +1 -1
  240. package/bundles/material-stepper.umd.min.js.map +1 -1
  241. package/bundles/material-table-testing.umd.js +5 -5
  242. package/bundles/material-table-testing.umd.js.map +1 -1
  243. package/bundles/material-table-testing.umd.min.js +1 -1
  244. package/bundles/material-table-testing.umd.min.js.map +1 -1
  245. package/bundles/material-table.umd.js +5 -5
  246. package/bundles/material-table.umd.js.map +1 -1
  247. package/bundles/material-table.umd.min.js +1 -1
  248. package/bundles/material-table.umd.min.js.map +1 -1
  249. package/bundles/material-tabs-testing.umd.js +5 -5
  250. package/bundles/material-tabs-testing.umd.js.map +1 -1
  251. package/bundles/material-tabs-testing.umd.min.js +1 -1
  252. package/bundles/material-tabs-testing.umd.min.js.map +1 -1
  253. package/bundles/material-tabs.umd.js +5 -5
  254. package/bundles/material-tabs.umd.js.map +1 -1
  255. package/bundles/material-tabs.umd.min.js +5 -5
  256. package/bundles/material-tabs.umd.min.js.map +1 -1
  257. package/bundles/material-toolbar-testing.umd.js +5 -5
  258. package/bundles/material-toolbar-testing.umd.js.map +1 -1
  259. package/bundles/material-toolbar-testing.umd.min.js +1 -1
  260. package/bundles/material-toolbar-testing.umd.min.js.map +1 -1
  261. package/bundles/material-toolbar.umd.js +5 -5
  262. package/bundles/material-toolbar.umd.js.map +1 -1
  263. package/bundles/material-toolbar.umd.min.js +1 -1
  264. package/bundles/material-toolbar.umd.min.js.map +1 -1
  265. package/bundles/material-tooltip-testing.umd.js +5 -5
  266. package/bundles/material-tooltip-testing.umd.js.map +1 -1
  267. package/bundles/material-tooltip-testing.umd.min.js +1 -1
  268. package/bundles/material-tooltip-testing.umd.min.js.map +1 -1
  269. package/bundles/material-tooltip.umd.js +5 -5
  270. package/bundles/material-tooltip.umd.js.map +1 -1
  271. package/bundles/material-tooltip.umd.min.js.map +1 -1
  272. package/bundles/material-tree-testing.umd.js +5 -5
  273. package/bundles/material-tree-testing.umd.js.map +1 -1
  274. package/bundles/material-tree-testing.umd.min.js +1 -1
  275. package/bundles/material-tree-testing.umd.min.js.map +1 -1
  276. package/bundles/material-tree.umd.js +5 -5
  277. package/bundles/material-tree.umd.js.map +1 -1
  278. package/bundles/material-tree.umd.min.js +3 -3
  279. package/bundles/material-tree.umd.min.js.map +1 -1
  280. package/button-toggle/index.metadata.json +1 -1
  281. package/checkbox/index.metadata.json +1 -1
  282. package/checkbox/testing/checkbox-harness.d.ts +3 -3
  283. package/chips/index.metadata.json +1 -1
  284. package/core/index.metadata.json +1 -1
  285. package/core/typography/_typography.scss +28 -0
  286. package/datepicker/calendar.d.ts +1 -0
  287. package/datepicker/datepicker-input-base.d.ts +2 -0
  288. package/datepicker/index.metadata.json +1 -1
  289. package/datepicker/month-view.d.ts +1 -1
  290. package/esm2015/autocomplete/autocomplete-trigger.js +3 -2
  291. package/esm2015/autocomplete/autocomplete.js +11 -2
  292. package/esm2015/bottom-sheet/bottom-sheet-container.js +6 -2
  293. package/esm2015/button-toggle/button-toggle.js +2 -4
  294. package/esm2015/checkbox/checkbox.js +8 -8
  295. package/esm2015/checkbox/testing/checkbox-harness.js +4 -4
  296. package/esm2015/chips/chip.js +3 -2
  297. package/esm2015/chips/chips-module.js +3 -2
  298. package/esm2015/core/common-behaviors/common-module.js +1 -1
  299. package/esm2015/core/option/index.js +3 -2
  300. package/esm2015/core/selection/index.js +3 -1
  301. package/esm2015/core/version.js +1 -1
  302. package/esm2015/datepicker/calendar.js +5 -2
  303. package/esm2015/datepicker/date-range-input.js +11 -2
  304. package/esm2015/datepicker/datepicker-base.js +1 -1
  305. package/esm2015/datepicker/datepicker-input-base.js +7 -3
  306. package/esm2015/datepicker/datepicker-input.js +5 -2
  307. package/esm2015/datepicker/datepicker-module.js +3 -1
  308. package/esm2015/datepicker/month-view.js +1 -1
  309. package/esm2015/expansion/accordion.js +6 -2
  310. package/esm2015/expansion/expansion-module.js +3 -2
  311. package/esm2015/input/input-module.js +3 -2
  312. package/esm2015/menu/menu.js +6 -1
  313. package/esm2015/paginator/paginator-module.js +3 -1
  314. package/esm2015/radio/radio.js +6 -3
  315. package/esm2015/select/select.js +8 -4
  316. package/esm2015/slider/slider.js +2 -2
  317. package/esm2015/sort/sort-module.js +3 -2
  318. package/expansion/accordion.d.ts +3 -2
  319. package/expansion/index.metadata.json +1 -1
  320. package/fesm2015/autocomplete.js +12 -2
  321. package/fesm2015/autocomplete.js.map +1 -1
  322. package/fesm2015/bottom-sheet.js +5 -1
  323. package/fesm2015/bottom-sheet.js.map +1 -1
  324. package/fesm2015/button-toggle.js +1 -3
  325. package/fesm2015/button-toggle.js.map +1 -1
  326. package/fesm2015/checkbox/testing.js +3 -3
  327. package/fesm2015/checkbox/testing.js.map +1 -1
  328. package/fesm2015/checkbox.js +6 -6
  329. package/fesm2015/checkbox.js.map +1 -1
  330. package/fesm2015/chips.js +4 -2
  331. package/fesm2015/chips.js.map +1 -1
  332. package/fesm2015/core.js +4 -3
  333. package/fesm2015/core.js.map +1 -1
  334. package/fesm2015/datepicker.js +27 -7
  335. package/fesm2015/datepicker.js.map +1 -1
  336. package/fesm2015/expansion.js +6 -1
  337. package/fesm2015/expansion.js.map +1 -1
  338. package/fesm2015/input.js +2 -1
  339. package/fesm2015/input.js.map +1 -1
  340. package/fesm2015/menu.js +5 -0
  341. package/fesm2015/menu.js.map +1 -1
  342. package/fesm2015/paginator.js +2 -1
  343. package/fesm2015/paginator.js.map +1 -1
  344. package/fesm2015/radio.js +5 -2
  345. package/fesm2015/radio.js.map +1 -1
  346. package/fesm2015/select.js +7 -3
  347. package/fesm2015/select.js.map +1 -1
  348. package/fesm2015/slider.js +1 -1
  349. package/fesm2015/slider.js.map +1 -1
  350. package/fesm2015/sort.js +2 -2
  351. package/fesm2015/sort.js.map +1 -1
  352. package/input/index.metadata.json +1 -1
  353. package/menu/_menu-theme.scss +3 -1
  354. package/menu/index.metadata.json +1 -1
  355. package/package.json +6 -6
  356. package/paginator/index.metadata.json +1 -1
  357. package/prebuilt-themes/deeppurple-amber.css +1 -1
  358. package/prebuilt-themes/indigo-pink.css +1 -1
  359. package/prebuilt-themes/pink-bluegrey.css +1 -1
  360. package/prebuilt-themes/purple-green.css +1 -1
  361. package/radio/index.metadata.json +1 -1
  362. package/schematics/migration.json +5 -0
  363. package/schematics/ng-add/index.js +2 -2
  364. package/schematics/ng-update/index.d.ts +2 -0
  365. package/schematics/ng-update/index.js +7 -2
  366. package/select/index.metadata.json +1 -1
  367. package/sort/index.metadata.json +1 -1
@@ -6,7 +6,7 @@ import { ɵɵdefineInjectable, Injectable, EventEmitter, Component, ViewEncapsul
6
6
  import { MatButtonModule } from '@angular/material/button';
7
7
  import { MatDialog, MatDialogModule } from '@angular/material/dialog';
8
8
  import { CdkScrollableModule } from '@angular/cdk/scrolling';
9
- import { DateAdapter, MAT_DATE_FORMATS, mixinColor, ErrorStateMatcher, mixinErrorState } from '@angular/material/core';
9
+ import { DateAdapter, MAT_DATE_FORMATS, mixinColor, ErrorStateMatcher, mixinErrorState, MatCommonModule } from '@angular/material/core';
10
10
  import { Subject, Subscription, merge, of } from 'rxjs';
11
11
  import { ESCAPE, hasModifierKey, SPACE, ENTER, PAGE_DOWN, PAGE_UP, END, HOME, DOWN_ARROW, UP_ARROW, RIGHT_ARROW, LEFT_ARROW, BACKSPACE } from '@angular/cdk/keycodes';
12
12
  import { Directionality } from '@angular/cdk/bidi';
@@ -1408,6 +1408,8 @@ MatYearView.propDecorators = {
1408
1408
  * Use of this source code is governed by an MIT-style license that can be
1409
1409
  * found in the LICENSE file at https://angular.io/license
1410
1410
  */
1411
+ /** Counter used to generate unique IDs. */
1412
+ let uniqueId = 0;
1411
1413
  /** Default header for MatCalendar */
1412
1414
  class MatCalendarHeader {
1413
1415
  constructor(_intl, calendar, _dateAdapter, _dateFormats, changeDetectorRef) {
@@ -1415,6 +1417,7 @@ class MatCalendarHeader {
1415
1417
  this.calendar = calendar;
1416
1418
  this._dateAdapter = _dateAdapter;
1417
1419
  this._dateFormats = _dateFormats;
1420
+ this._buttonDescriptionId = `mat-calendar-button-${uniqueId++}`;
1418
1421
  this.calendar.stateChanges.subscribe(() => changeDetectorRef.markForCheck());
1419
1422
  }
1420
1423
  /** The label for the current calendar view. */
@@ -1502,7 +1505,7 @@ class MatCalendarHeader {
1502
1505
  MatCalendarHeader.decorators = [
1503
1506
  { type: Component, args: [{
1504
1507
  selector: 'mat-calendar-header',
1505
- template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n cdkAriaLive=\"polite\">\n {{periodButtonText}}\n <div class=\"mat-calendar-arrow\"\n [class.mat-calendar-invert]=\"calendar.currentView != 'month'\"></div>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-previous-button\"\n [disabled]=\"!previousEnabled()\" (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\">\n </button>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-next-button\"\n [disabled]=\"!nextEnabled()\" (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\">\n </button>\n </div>\n</div>\n",
1508
+ template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_buttonDescriptionId\"\n cdkAriaLive=\"polite\">\n <span [attr.id]=\"_buttonDescriptionId\">{{periodButtonText}}</span>\n <div class=\"mat-calendar-arrow\"\n [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"></div>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-previous-button\"\n [disabled]=\"!previousEnabled()\" (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\">\n </button>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-next-button\"\n [disabled]=\"!nextEnabled()\" (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\">\n </button>\n </div>\n</div>\n",
1506
1509
  exportAs: 'matCalendarHeader',
1507
1510
  encapsulation: ViewEncapsulation.None,
1508
1511
  changeDetection: ChangeDetectionStrategy.OnPush
@@ -1875,7 +1878,7 @@ MatDatepickerContent.decorators = [
1875
1878
  encapsulation: ViewEncapsulation.None,
1876
1879
  changeDetection: ChangeDetectionStrategy.OnPush,
1877
1880
  inputs: ['color'],
1878
- styles: [".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}.mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"]
1881
+ styles: [".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"]
1879
1882
  },] }
1880
1883
  ];
1881
1884
  MatDatepickerContent.ctorParameters = () => [
@@ -2331,8 +2334,7 @@ class MatDatepickerInputBase {
2331
2334
  /** The form control validator for the date filter. */
2332
2335
  this._filterValidator = (control) => {
2333
2336
  const controlValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));
2334
- const dateFilter = this._getDateFilter();
2335
- return !dateFilter || !controlValue || dateFilter(controlValue) ?
2337
+ return !controlValue || this._matchesFilter(controlValue) ?
2336
2338
  null : { 'matDatepickerFilter': true };
2337
2339
  };
2338
2340
  /** The form control validator for the min date. */
@@ -2538,6 +2540,11 @@ class MatDatepickerInputBase {
2538
2540
  _parentDisabled() {
2539
2541
  return false;
2540
2542
  }
2543
+ /** Gets whether a value matches the current date filter. */
2544
+ _matchesFilter(value) {
2545
+ const filter = this._getDateFilter();
2546
+ return !filter || filter(value);
2547
+ }
2541
2548
  }
2542
2549
  MatDatepickerInputBase.decorators = [
2543
2550
  { type: Directive }
@@ -2627,8 +2634,11 @@ class MatDatepickerInput extends MatDatepickerInputBase {
2627
2634
  /** Function that can be used to filter out dates within the datepicker. */
2628
2635
  get dateFilter() { return this._dateFilter; }
2629
2636
  set dateFilter(value) {
2637
+ const wasMatchingValue = this._matchesFilter(this.value);
2630
2638
  this._dateFilter = value;
2631
- this._validatorOnChange();
2639
+ if (this._matchesFilter(this.value) !== wasMatchingValue) {
2640
+ this._validatorOnChange();
2641
+ }
2632
2642
  }
2633
2643
  /**
2634
2644
  * Gets the element that the datepicker popup should be connected to.
@@ -3209,8 +3219,17 @@ class MatDateRangeInput {
3209
3219
  /** Function that can be used to filter out dates within the date range picker. */
3210
3220
  get dateFilter() { return this._dateFilter; }
3211
3221
  set dateFilter(value) {
3222
+ const start = this._startInput;
3223
+ const end = this._endInput;
3224
+ const wasMatchingStart = start && start._matchesFilter(start.value);
3225
+ const wasMatchingEnd = end && end._matchesFilter(start.value);
3212
3226
  this._dateFilter = value;
3213
- this._revalidate();
3227
+ if (start && start._matchesFilter(start.value) !== wasMatchingStart) {
3228
+ start._validatorOnChange();
3229
+ }
3230
+ if (end && end._matchesFilter(end.value) !== wasMatchingEnd) {
3231
+ end._validatorOnChange();
3232
+ }
3214
3233
  }
3215
3234
  /** The minimum valid date. */
3216
3235
  get min() { return this._min; }
@@ -3427,6 +3446,7 @@ MatDatepickerModule.decorators = [
3427
3446
  OverlayModule,
3428
3447
  A11yModule,
3429
3448
  PortalModule,
3449
+ MatCommonModule,
3430
3450
  ],
3431
3451
  exports: [
3432
3452
  CdkScrollableModule,