@angular/material 9.1.3 → 9.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/autocomplete/index.metadata.json +1 -1
  2. package/autocomplete/testing/autocomplete-harness.d.ts +4 -1
  3. package/badge/index.metadata.json +1 -1
  4. package/bottom-sheet/bottom-sheet.d.ts +2 -1
  5. package/bundles/material-autocomplete-testing.umd.js +55 -8
  6. package/bundles/material-autocomplete-testing.umd.js.map +1 -1
  7. package/bundles/material-autocomplete-testing.umd.min.js +4 -5
  8. package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
  9. package/bundles/material-autocomplete.umd.js +23 -24
  10. package/bundles/material-autocomplete.umd.js.map +1 -1
  11. package/bundles/material-autocomplete.umd.min.js +5 -5
  12. package/bundles/material-autocomplete.umd.min.js.map +1 -1
  13. package/bundles/material-badge.umd.js +1 -1
  14. package/bundles/material-badge.umd.js.map +1 -1
  15. package/bundles/material-badge.umd.min.js +1 -1
  16. package/bundles/material-badge.umd.min.js.map +1 -1
  17. package/bundles/material-bottom-sheet.umd.js +3 -2
  18. package/bundles/material-bottom-sheet.umd.js.map +1 -1
  19. package/bundles/material-bottom-sheet.umd.min.js +1 -1
  20. package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
  21. package/bundles/material-button-toggle.umd.js +16 -6
  22. package/bundles/material-button-toggle.umd.js.map +1 -1
  23. package/bundles/material-button-toggle.umd.min.js +3 -3
  24. package/bundles/material-button-toggle.umd.min.js.map +1 -1
  25. package/bundles/material-chips.umd.js +3 -0
  26. package/bundles/material-chips.umd.js.map +1 -1
  27. package/bundles/material-chips.umd.min.js +1 -1
  28. package/bundles/material-chips.umd.min.js.map +1 -1
  29. package/bundles/material-core.umd.js +96 -73
  30. package/bundles/material-core.umd.js.map +1 -1
  31. package/bundles/material-core.umd.min.js +10 -10
  32. package/bundles/material-core.umd.min.js.map +1 -1
  33. package/bundles/material-datepicker.umd.js +23 -10
  34. package/bundles/material-datepicker.umd.js.map +1 -1
  35. package/bundles/material-datepicker.umd.min.js +7 -7
  36. package/bundles/material-datepicker.umd.min.js.map +1 -1
  37. package/bundles/material-dialog.umd.js +43 -23
  38. package/bundles/material-dialog.umd.js.map +1 -1
  39. package/bundles/material-dialog.umd.min.js +6 -6
  40. package/bundles/material-dialog.umd.min.js.map +1 -1
  41. package/bundles/material-expansion.umd.js +3 -3
  42. package/bundles/material-expansion.umd.js.map +1 -1
  43. package/bundles/material-expansion.umd.min.js +1 -1
  44. package/bundles/material-expansion.umd.min.js.map +1 -1
  45. package/bundles/material-form-field.umd.js +12 -2
  46. package/bundles/material-form-field.umd.js.map +1 -1
  47. package/bundles/material-form-field.umd.min.js +2 -2
  48. package/bundles/material-form-field.umd.min.js.map +1 -1
  49. package/bundles/material-input.umd.js +14 -4
  50. package/bundles/material-input.umd.js.map +1 -1
  51. package/bundles/material-input.umd.min.js +1 -1
  52. package/bundles/material-input.umd.min.js.map +1 -1
  53. package/bundles/material-list.umd.js +7 -6
  54. package/bundles/material-list.umd.js.map +1 -1
  55. package/bundles/material-list.umd.min.js +2 -2
  56. package/bundles/material-list.umd.min.js.map +1 -1
  57. package/bundles/material-menu.umd.js +5 -5
  58. package/bundles/material-menu.umd.js.map +1 -1
  59. package/bundles/material-menu.umd.min.js +6 -6
  60. package/bundles/material-menu.umd.min.js.map +1 -1
  61. package/bundles/material-radio.umd.js +62 -47
  62. package/bundles/material-radio.umd.js.map +1 -1
  63. package/bundles/material-radio.umd.min.js +10 -2
  64. package/bundles/material-radio.umd.min.js.map +1 -1
  65. package/bundles/material-select-testing.umd.js +45 -10
  66. package/bundles/material-select-testing.umd.js.map +1 -1
  67. package/bundles/material-select-testing.umd.min.js +2 -3
  68. package/bundles/material-select-testing.umd.min.js.map +1 -1
  69. package/bundles/material-select.umd.js +24 -15
  70. package/bundles/material-select.umd.js.map +1 -1
  71. package/bundles/material-select.umd.min.js +3 -3
  72. package/bundles/material-select.umd.min.js.map +1 -1
  73. package/bundles/material-sidenav.umd.js +2 -1
  74. package/bundles/material-sidenav.umd.js.map +1 -1
  75. package/bundles/material-sidenav.umd.min.js +2 -2
  76. package/bundles/material-sidenav.umd.min.js.map +1 -1
  77. package/bundles/material-slider.umd.js +14 -12
  78. package/bundles/material-slider.umd.js.map +1 -1
  79. package/bundles/material-slider.umd.min.js +1 -1
  80. package/bundles/material-slider.umd.min.js.map +1 -1
  81. package/bundles/material-snack-bar-testing.umd.js +24 -2
  82. package/bundles/material-snack-bar-testing.umd.js.map +1 -1
  83. package/bundles/material-snack-bar-testing.umd.min.js +3 -3
  84. package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
  85. package/bundles/material-snack-bar.umd.js +4 -0
  86. package/bundles/material-snack-bar.umd.js.map +1 -1
  87. package/bundles/material-snack-bar.umd.min.js +2 -2
  88. package/bundles/material-snack-bar.umd.min.js.map +1 -1
  89. package/bundles/material-table.umd.js +5 -2
  90. package/bundles/material-table.umd.js.map +1 -1
  91. package/bundles/material-table.umd.min.js +2 -2
  92. package/bundles/material-table.umd.min.js.map +1 -1
  93. package/bundles/material-tabs.umd.js +5 -4
  94. package/bundles/material-tabs.umd.js.map +1 -1
  95. package/bundles/material-tabs.umd.min.js +1 -1
  96. package/bundles/material-tabs.umd.min.js.map +1 -1
  97. package/bundles/material-tooltip.umd.js +5 -5
  98. package/bundles/material-tooltip.umd.js.map +1 -1
  99. package/bundles/material-tooltip.umd.min.js +3 -3
  100. package/bundles/material-tooltip.umd.min.js.map +1 -1
  101. package/bundles/material-tree.umd.js +1 -1
  102. package/bundles/material-tree.umd.js.map +1 -1
  103. package/bundles/material-tree.umd.min.js +1 -1
  104. package/bundles/material-tree.umd.min.js.map +1 -1
  105. package/button-toggle/index.metadata.json +1 -1
  106. package/core/index.metadata.json +1 -1
  107. package/core/ripple/ripple-renderer.d.ts +10 -3
  108. package/core/ripple/ripple.d.ts +2 -1
  109. package/datepicker/datepicker-input.d.ts +5 -2
  110. package/datepicker/index.metadata.json +1 -1
  111. package/dialog/dialog-container.d.ts +6 -0
  112. package/dialog/dialog-ref.d.ts +5 -0
  113. package/dialog/index.metadata.json +1 -1
  114. package/esm2015/autocomplete/autocomplete-module.js +3 -1
  115. package/esm2015/autocomplete/autocomplete-trigger.js +21 -22
  116. package/esm2015/autocomplete/testing/autocomplete-harness.js +18 -7
  117. package/esm2015/badge/badge-module.js +2 -2
  118. package/esm2015/bottom-sheet/bottom-sheet.js +5 -3
  119. package/esm2015/button-toggle/button-toggle.js +18 -7
  120. package/esm2015/chips/chip-list.js +4 -1
  121. package/esm2015/core/common-behaviors/common-module.js +3 -4
  122. package/esm2015/core/ripple/ripple-renderer.js +140 -119
  123. package/esm2015/core/ripple/ripple.js +10 -7
  124. package/esm2015/core/version.js +1 -1
  125. package/esm2015/datepicker/calendar-body.js +1 -1
  126. package/esm2015/datepicker/calendar.js +3 -3
  127. package/esm2015/datepicker/datepicker-input.js +19 -4
  128. package/esm2015/datepicker/datepicker-module.js +3 -1
  129. package/esm2015/datepicker/datepicker.js +8 -2
  130. package/esm2015/dialog/dialog-container.js +40 -13
  131. package/esm2015/dialog/dialog-ref.js +24 -6
  132. package/esm2015/dialog/dialog.js +1 -12
  133. package/esm2015/expansion/expansion-panel-header.js +3 -3
  134. package/esm2015/expansion/expansion-panel.js +1 -1
  135. package/esm2015/form-field/form-field.js +13 -3
  136. package/esm2015/form-field/public-api.js +2 -2
  137. package/esm2015/input/input.js +16 -6
  138. package/esm2015/list/list.js +2 -2
  139. package/esm2015/list/selection-list.js +9 -6
  140. package/esm2015/menu/menu-module.js +3 -2
  141. package/esm2015/radio/public-api.js +2 -2
  142. package/esm2015/radio/radio.js +70 -59
  143. package/esm2015/select/select-module.js +10 -2
  144. package/esm2015/select/select.js +14 -12
  145. package/esm2015/select/testing/select-harness.js +11 -6
  146. package/esm2015/sidenav/sidenav-module.js +4 -3
  147. package/esm2015/slider/slider.js +17 -15
  148. package/esm2015/snack-bar/snack-bar-container.js +5 -1
  149. package/esm2015/snack-bar/testing/snack-bar-harness.js +18 -3
  150. package/esm2015/table/table-module.js +2 -2
  151. package/esm2015/table/table.js +6 -3
  152. package/esm2015/tabs/paginated-tab-header.js +3 -2
  153. package/esm2015/tabs/tab-header.js +1 -1
  154. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +3 -3
  155. package/esm2015/tooltip/tooltip-module.js +3 -2
  156. package/esm2015/tree/tree-module.js +2 -2
  157. package/esm5/autocomplete/autocomplete-module.js +3 -1
  158. package/esm5/autocomplete/autocomplete-trigger.js +20 -22
  159. package/esm5/autocomplete/testing/autocomplete-harness.js +56 -9
  160. package/esm5/badge/badge-module.js +2 -2
  161. package/esm5/bottom-sheet/bottom-sheet.js +4 -3
  162. package/esm5/button-toggle/button-toggle.js +17 -7
  163. package/esm5/chips/chip-list.js +4 -1
  164. package/esm5/core/common-behaviors/common-module.js +3 -4
  165. package/esm5/core/ripple/ripple-renderer.js +91 -65
  166. package/esm5/core/ripple/ripple.js +4 -6
  167. package/esm5/core/version.js +1 -1
  168. package/esm5/datepicker/calendar-body.js +1 -1
  169. package/esm5/datepicker/calendar.js +3 -3
  170. package/esm5/datepicker/datepicker-input.js +10 -4
  171. package/esm5/datepicker/datepicker-module.js +3 -1
  172. package/esm5/datepicker/datepicker.js +8 -2
  173. package/esm5/dialog/dialog-container.js +26 -11
  174. package/esm5/dialog/dialog-ref.js +19 -6
  175. package/esm5/dialog/dialog.js +1 -9
  176. package/esm5/expansion/expansion-panel-header.js +3 -3
  177. package/esm5/expansion/expansion-panel.js +1 -1
  178. package/esm5/form-field/form-field.js +12 -3
  179. package/esm5/input/input.js +16 -6
  180. package/esm5/list/list.js +2 -2
  181. package/esm5/list/selection-list.js +6 -5
  182. package/esm5/menu/menu-module.js +3 -2
  183. package/esm5/radio/radio.js +63 -48
  184. package/esm5/select/select-module.js +10 -2
  185. package/esm5/select/select.js +14 -12
  186. package/esm5/select/testing/select-harness.js +46 -11
  187. package/esm5/sidenav/sidenav-module.js +4 -3
  188. package/esm5/slider/slider.js +15 -13
  189. package/esm5/snack-bar/snack-bar-container.js +5 -1
  190. package/esm5/snack-bar/testing/snack-bar-harness.js +26 -4
  191. package/esm5/table/table-module.js +2 -2
  192. package/esm5/table/table.js +6 -3
  193. package/esm5/tabs/paginated-tab-header.js +3 -2
  194. package/esm5/tabs/tab-header.js +1 -1
  195. package/esm5/tabs/tab-nav-bar/tab-nav-bar.js +3 -3
  196. package/esm5/tooltip/tooltip-module.js +3 -2
  197. package/esm5/tree/tree-module.js +2 -2
  198. package/expansion/index.metadata.json +1 -1
  199. package/fesm2015/autocomplete/testing.js +17 -6
  200. package/fesm2015/autocomplete/testing.js.map +1 -1
  201. package/fesm2015/autocomplete.js +22 -22
  202. package/fesm2015/autocomplete.js.map +1 -1
  203. package/fesm2015/badge.js +1 -1
  204. package/fesm2015/badge.js.map +1 -1
  205. package/fesm2015/bottom-sheet.js +4 -2
  206. package/fesm2015/bottom-sheet.js.map +1 -1
  207. package/fesm2015/button-toggle.js +17 -6
  208. package/fesm2015/button-toggle.js.map +1 -1
  209. package/fesm2015/chips.js +3 -0
  210. package/fesm2015/chips.js.map +1 -1
  211. package/fesm2015/core.js +151 -128
  212. package/fesm2015/core.js.map +1 -1
  213. package/fesm2015/datepicker.js +30 -7
  214. package/fesm2015/datepicker.js.map +1 -1
  215. package/fesm2015/dialog.js +62 -28
  216. package/fesm2015/dialog.js.map +1 -1
  217. package/fesm2015/expansion.js +3 -3
  218. package/fesm2015/expansion.js.map +1 -1
  219. package/fesm2015/form-field.js +13 -3
  220. package/fesm2015/form-field.js.map +1 -1
  221. package/fesm2015/input.js +15 -5
  222. package/fesm2015/input.js.map +1 -1
  223. package/fesm2015/list.js +10 -7
  224. package/fesm2015/list.js.map +1 -1
  225. package/fesm2015/menu.js +2 -1
  226. package/fesm2015/menu.js.map +1 -1
  227. package/fesm2015/radio.js +71 -60
  228. package/fesm2015/radio.js.map +1 -1
  229. package/fesm2015/select/testing.js +10 -5
  230. package/fesm2015/select/testing.js.map +1 -1
  231. package/fesm2015/select.js +23 -14
  232. package/fesm2015/select.js.map +1 -1
  233. package/fesm2015/sidenav.js +3 -2
  234. package/fesm2015/sidenav.js.map +1 -1
  235. package/fesm2015/slider.js +16 -14
  236. package/fesm2015/slider.js.map +1 -1
  237. package/fesm2015/snack-bar/testing.js +17 -2
  238. package/fesm2015/snack-bar/testing.js.map +1 -1
  239. package/fesm2015/snack-bar.js +4 -0
  240. package/fesm2015/snack-bar.js.map +1 -1
  241. package/fesm2015/table.js +6 -3
  242. package/fesm2015/table.js.map +1 -1
  243. package/fesm2015/tabs.js +5 -4
  244. package/fesm2015/tabs.js.map +1 -1
  245. package/fesm2015/tooltip.js +2 -2
  246. package/fesm2015/tooltip.js.map +1 -1
  247. package/fesm2015/tree.js +1 -1
  248. package/fesm2015/tree.js.map +1 -1
  249. package/fesm5/autocomplete/testing.js +55 -8
  250. package/fesm5/autocomplete/testing.js.map +1 -1
  251. package/fesm5/autocomplete.js +21 -22
  252. package/fesm5/autocomplete.js.map +1 -1
  253. package/fesm5/badge.js +1 -1
  254. package/fesm5/badge.js.map +1 -1
  255. package/fesm5/bottom-sheet.js +3 -2
  256. package/fesm5/bottom-sheet.js.map +1 -1
  257. package/fesm5/button-toggle.js +16 -6
  258. package/fesm5/button-toggle.js.map +1 -1
  259. package/fesm5/chips.js +3 -0
  260. package/fesm5/chips.js.map +1 -1
  261. package/fesm5/core.js +96 -73
  262. package/fesm5/core.js.map +1 -1
  263. package/fesm5/datepicker.js +21 -7
  264. package/fesm5/datepicker.js.map +1 -1
  265. package/fesm5/dialog.js +43 -23
  266. package/fesm5/dialog.js.map +1 -1
  267. package/fesm5/expansion.js +3 -3
  268. package/fesm5/expansion.js.map +1 -1
  269. package/fesm5/form-field.js +12 -3
  270. package/fesm5/form-field.js.map +1 -1
  271. package/fesm5/input.js +15 -5
  272. package/fesm5/input.js.map +1 -1
  273. package/fesm5/list.js +7 -6
  274. package/fesm5/list.js.map +1 -1
  275. package/fesm5/menu.js +2 -1
  276. package/fesm5/menu.js.map +1 -1
  277. package/fesm5/radio.js +63 -49
  278. package/fesm5/radio.js.map +1 -1
  279. package/fesm5/select/testing.js +45 -10
  280. package/fesm5/select/testing.js.map +1 -1
  281. package/fesm5/select.js +23 -14
  282. package/fesm5/select.js.map +1 -1
  283. package/fesm5/sidenav.js +3 -2
  284. package/fesm5/sidenav.js.map +1 -1
  285. package/fesm5/slider.js +14 -12
  286. package/fesm5/slider.js.map +1 -1
  287. package/fesm5/snack-bar/testing.js +25 -3
  288. package/fesm5/snack-bar/testing.js.map +1 -1
  289. package/fesm5/snack-bar.js +4 -0
  290. package/fesm5/snack-bar.js.map +1 -1
  291. package/fesm5/table.js +6 -3
  292. package/fesm5/table.js.map +1 -1
  293. package/fesm5/tabs.js +5 -4
  294. package/fesm5/tabs.js.map +1 -1
  295. package/fesm5/tooltip.js +2 -2
  296. package/fesm5/tooltip.js.map +1 -1
  297. package/fesm5/tree.js +1 -1
  298. package/fesm5/tree.js.map +1 -1
  299. package/form-field/form-field.d.ts +6 -0
  300. package/form-field/index.metadata.json +1 -1
  301. package/input/index.metadata.json +1 -1
  302. package/list/index.metadata.json +1 -1
  303. package/menu/index.metadata.json +1 -1
  304. package/package.json +2 -2
  305. package/radio/index.metadata.json +1 -1
  306. package/radio/radio.d.ts +8 -2
  307. package/schematics/collection.json +0 -7
  308. package/schematics/ng-add/index.js +1 -1
  309. package/schematics/ng-update/index.js +23 -23
  310. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/find-hammer-script-tags.d.ts +1 -1
  311. package/schematics/ng-update/migrations/hammer-gestures-v9/find-hammer-script-tags.js +51 -0
  312. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/find-main-module.d.ts +1 -1
  313. package/schematics/ng-update/migrations/hammer-gestures-v9/find-main-module.js +41 -0
  314. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/gesture-config.template +0 -0
  315. package/schematics/ng-update/{upgrade-rules/hammer-gestures-v9/hammer-gestures-rule.d.ts → migrations/hammer-gestures-v9/hammer-gestures-migration.d.ts} +6 -6
  316. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +784 -0
  317. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/hammer-template-check.d.ts +1 -1
  318. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-template-check.js +65 -0
  319. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/import-manager.d.ts +4 -4
  320. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +379 -0
  321. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/remove-array-element.d.ts +1 -1
  322. package/schematics/ng-update/migrations/hammer-gestures-v9/remove-array-element.js +75 -0
  323. package/schematics/ng-update/{upgrade-rules → migrations}/hammer-gestures-v9/remove-element-from-html.d.ts +1 -1
  324. package/schematics/ng-update/migrations/hammer-gestures-v9/remove-element-from-html.js +37 -0
  325. package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.d.ts +19 -0
  326. package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.js +57 -0
  327. package/schematics/ng-update/{upgrade-rules/misc-checks/misc-class-names-rule.d.ts → migrations/misc-checks/misc-class-names.d.ts} +5 -5
  328. package/schematics/ng-update/migrations/misc-checks/misc-class-names.js +52 -0
  329. package/schematics/ng-update/{upgrade-rules/misc-checks/misc-imports-rule.d.ts → migrations/misc-checks/misc-imports.d.ts} +5 -5
  330. package/schematics/ng-update/migrations/misc-checks/misc-imports.js +63 -0
  331. package/schematics/ng-update/{upgrade-rules/misc-checks/misc-property-names-rule.d.ts → migrations/misc-checks/misc-property-names.d.ts} +5 -5
  332. package/schematics/ng-update/migrations/misc-checks/misc-property-names.js +56 -0
  333. package/schematics/ng-update/migrations/misc-checks/misc-template.d.ts +17 -0
  334. package/schematics/ng-update/migrations/misc-checks/misc-template.js +69 -0
  335. package/schematics/ng-update/{upgrade-rules/misc-ripples-v7/ripple-speed-factor-rule.d.ts → migrations/misc-ripples-v7/ripple-speed-factor-migration.d.ts} +5 -5
  336. package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js +147 -0
  337. package/schematics/ng-update/{upgrade-rules → migrations}/misc-ripples-v7/ripple-speed-factor.d.ts +1 -1
  338. package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor.js +39 -0
  339. package/schematics/ng-update/{upgrade-rules → migrations}/package-imports-v8/material-symbols.json +0 -0
  340. package/schematics/ng-update/{upgrade-rules/package-imports-v8/secondary-entry-points-rule.d.ts → migrations/package-imports-v8/secondary-entry-points-migration.d.ts} +5 -5
  341. package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +177 -0
  342. package/schematics/ng-update/upgrade-data.d.ts +2 -2
  343. package/schematics/ng-update/upgrade-data.js +1 -1
  344. package/select/index.metadata.json +1 -1
  345. package/select/testing/select-harness.d.ts +2 -1
  346. package/sidenav/index.metadata.json +1 -1
  347. package/snack-bar/testing/snack-bar-harness.d.ts +2 -0
  348. package/table/index.metadata.json +1 -1
  349. package/tabs/_tabs-common.scss +5 -3
  350. package/tabs/index.metadata.json +1 -1
  351. package/tooltip/index.metadata.json +1 -1
  352. package/tree/index.metadata.json +1 -1
  353. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/find-hammer-script-tags.js +0 -51
  354. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/find-main-module.js +0 -41
  355. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/hammer-gestures-rule.js +0 -781
  356. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/hammer-template-check.js +0 -65
  357. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/import-manager.js +0 -379
  358. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/remove-array-element.js +0 -75
  359. package/schematics/ng-update/upgrade-rules/hammer-gestures-v9/remove-element-from-html.js +0 -37
  360. package/schematics/ng-update/upgrade-rules/misc-checks/misc-class-inheritance-rule.d.ts +0 -19
  361. package/schematics/ng-update/upgrade-rules/misc-checks/misc-class-inheritance-rule.js +0 -57
  362. package/schematics/ng-update/upgrade-rules/misc-checks/misc-class-names-rule.js +0 -52
  363. package/schematics/ng-update/upgrade-rules/misc-checks/misc-imports-rule.js +0 -63
  364. package/schematics/ng-update/upgrade-rules/misc-checks/misc-property-names-rule.js +0 -56
  365. package/schematics/ng-update/upgrade-rules/misc-checks/misc-template-rule.d.ts +0 -17
  366. package/schematics/ng-update/upgrade-rules/misc-checks/misc-template-rule.js +0 -69
  367. package/schematics/ng-update/upgrade-rules/misc-ripples-v7/ripple-speed-factor-rule.js +0 -147
  368. package/schematics/ng-update/upgrade-rules/misc-ripples-v7/ripple-speed-factor.js +0 -39
  369. package/schematics/ng-update/upgrade-rules/package-imports-v8/secondary-entry-points-rule.js +0 -177
@@ -1 +1 @@
1
- {"version":3,"sources":["src/material/material-datepicker.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","material","datepicker","cdk","a11y","overlay","portal","common","core","button","dialog","rxjs","keycodes","bidi","operators","coercion","animations","forms","formField","input","this","i0","createMissingDateImplError","provider","Error","MatDatepickerIntl","changes","Subject","calendarLabel","openCalendarLabel","prevMonthLabel","nextMonthLabel","prevYearLabel","nextYearLabel","prevMultiYearLabel","nextMultiYearLabel","switchToMonthViewLabel","switchToMultiYearViewLabel","prototype","formatYearRange","start","end","decorators","type","Injectable","args","providedIn","ɵprov","ɵɵdefineInjectable","MatDatepickerIntl_Factory","token","MatCalendarCell","value","displayValue","ariaLabel","enabled","cssClasses","MatCalendarBody","_elementRef","_ngZone","numCols","activeCell","cellAspectRatio","selectedValueChange","EventEmitter","_cellClicked","cell","emit","ngOnChanges","columnChanges","rows","_firstRowOffset","length","_cellPadding","_cellWidth","_isActiveCell","rowIndex","colIndex","cellNumber","_focusActiveCell","_this","runOutsideAngular","onStable","asObservable","pipe","take","subscribe","nativeElement","querySelector","focus","Component","selector","template","host","class","role","aria-readonly","exportAs","encapsulation","ViewEncapsulation","None","changeDetection","ChangeDetectionStrategy","OnPush","styles","ctorParameters","ElementRef","NgZone","propDecorators","label","Input","todayValue","selectedValue","labelMinRequiredCells","Output","MatMonthView","_changeDetectorRef","_dateFormats","_dateAdapter","_dir","_rerenderSubscription","Subscription","EMPTY","selectedChange","_userSelection","activeDateChange","_activeDate","today","Object","defineProperty","get","set","oldActiveDate","validDate","_getValidDateOrNull","deserialize","clampDate","minDate","maxDate","_hasSameMonthAndYear","_init","enumerable","configurable","_selected","_selectedDate","_getDateInCurrentMonth","_minDate","_maxDate","ngAfterContentInit","localeChanges","startWith","ngOnDestroy","unsubscribe","_dateSelected","date","selectedYear","getYear","activeDate","selectedMonth","getMonth","selectedDate","createDate","_handleCalendarBodyKeydown","event","isRtl","_isRtl","keyCode","LEFT_ARROW","addCalendarDays","RIGHT_ARROW","UP_ARROW","DOWN_ARROW","HOME","getDate","END","getNumDaysInMonth","PAGE_UP","altKey","addCalendarYears","addCalendarMonths","PAGE_DOWN","ENTER","SPACE","dateFilter","preventDefault","compareDate","selected","_todayDate","_monthLabel","getMonthNames","toLocaleUpperCase","firstOfMonth","_firstWeekOffset","getDayOfWeek","getFirstDayOfWeek","_initWeekdays","_createWeekCells","markForCheck","_matCalendarBody","firstDayOfWeek","narrowWeekdays","getDayOfWeekNames","weekdays","map","long","i","narrow","_weekdays","slice","concat","daysInMonth","dateNames","getDateNames","_weeks","push","_shouldEnableDate","format","display","dateA11yLabel","cellClasses","dateClass","undefined","d1","d2","obj","isDateInstance","isValid","ChangeDetectorRef","Optional","Inject","MAT_DATE_FORMATS","DateAdapter","Directionality","ViewChild","yearsPerPage","MatMultiYearView","yearSelected","isSameMultiYearView","_selectedYear","_todayYear","minYearOfPage","getActiveOffset","_years","row","year","_createCellForYear","_yearSelected","month","Math","min","_getActiveCell","yearName","getYearName","_shouldEnableYear","dateAdapter","date1","date2","year1","year2","startingYear","getStartingYear","floor","euclideanModulo","a","b","MatYearView","monthSelected","_selectedMonth","_getMonthInCurrentYear","_monthSelected","normalizedDate","_todayMonth","_yearLabel","monthNames","_months","_createCellForMonth","monthName","monthYearA11yLabel","_shouldEnableMonth","activeYear","_isYearAndMonthAfterMaxDate","_isYearAndMonthBeforeMinDate","maxYear","maxMonth","minYear","minMonth","MatCalendarHeader","_intl","calendar","changeDetectorRef","stateChanges","currentView","monthYearLabel","maxYearOfPage","minYearName","maxYearName","multi-year","currentPeriodClicked","previousClicked","nextClicked","previousEnabled","_isSameView","nextEnabled","MatCalendar","forwardRef","_moveFocusOnNextTick","startView","_intlChanges","next","_startAt","_clampedActiveDate","_currentView","_calendarHeaderPortal","ComponentPortal","headerComponent","startAt","ngAfterViewChecked","focusActiveCell","complete","change","firstChange","view","_getCurrentViewComponent","detectChanges","updateTodaysDate","monthView","yearView","multiYearView","sameDate","_yearSelectedInMultiYearView","normalizedYear","_monthSelectedInYearView","normalizedMonth","_userSelected","_goToDateInView","extendStatics","d","setPrototypeOf","__proto__","Array","p","hasOwnProperty","matDatepickerAnimations","transformPanel","trigger","state","style","opacity","transform","transition","animate","fadeInCalendar","datepickerUid","MAT_DATEPICKER_SCROLL_STRATEGY","InjectionToken","MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY","scrollStrategies","reposition","MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER","provide","deps","Overlay","useFactory","MatDatepickerContent","_super","elementRef","call","_animationState","_animationDone","__extends","__","constructor","create","ngAfterViewInit","_calendar","_startExitAnimation","[@transformPanel]","(@transformPanel.done)","[class.mat-datepicker-content-touch]","inputs","mixinColor","MatDatepickerContentBase","MatDatepicker","_dialog","_overlay","_viewContainerRef","scrollStrategy","_document","_touchUi","openedStream","closedStream","_opened","id","_validSelected","_focusedElementBeforeOpen","_inputSubscription","_disabledChange","_selectedChanged","_scrollStrategy","_datepickerInput","_color","_getThemePalette","coerceBooleanProperty","_disabled","disabled","newValue","open","close","max","_dateFilter","_destroyPopup","select","oldValue","_selectYear","_selectMonth","_registerInput","_valueChange","activeElement","touchUi","_openAsDialog","_openAsPopup","_popupComponentRef","_popupRef","instance","_dialogRef","completeClose","setTimeout","direction","viewContainerRef","panelClass","hasBackdrop","disableClose","width","height","minWidth","minHeight","maxWidth","maxHeight","position","autoFocus","restoreFocus","afterClosed","componentInstance","color","portal$1","_createPopup","ref","attach","updatePosition","overlayConfig","OverlayConfig","positionStrategy","_createPopupPositionStrategy","backdropClass","overlayElement","setAttribute","merge","backdropClick","detachments","keydownEvents","filter","ESCAPE","dispose","flexibleConnectedTo","getConnectedOverlayOrigin","withTransformOriginOn","withFlexibleDimensions","withViewportMargin","withLockedPosition","withPositions","originX","originY","overlayX","overlayY","MatDialog","ViewContainerRef","DOCUMENT","calendarHeaderComponent","opened","MAT_DATEPICKER_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","useExisting","MatDatepickerInput","multi","MAT_DATEPICKER_VALIDATORS","NG_VALIDATORS","MatDatepickerInputEvent","target","targetElement","_formField","dateChange","dateInput","_onTouched","_cvaOnChange","_validatorOnChange","_datepickerSubscription","_localeSubscription","_parseValidator","_lastValueValid","matDatepickerParse","text","_minValidator","control","controlValue","matDatepickerMin","actual","_maxValidator","matDatepickerMax","_filterValidator","matDatepickerFilter","_validator","Validators","compose","_datepicker","_value","oldDate","_formatValue","_min","_max","element","blur","registerOnValidatorChange","fn","validate","c","getPopupConnectionElementRef","writeValue","registerOnChange","registerOnTouched","setDisabledState","isDisabled","_onKeydown","readOnly","_onInput","lastValueWasValid","parse","_onChange","_onBlur","Directive","providers","MAT_INPUT_VALUE_ACCESSOR","[attr.aria-haspopup]","[attr.aria-owns]","[attr.min]","[attr.max]","[disabled]","(input)","(change)","(blur)","(keydown)","MatFormField","matDatepicker","MatDatepickerToggleIcon","MatDatepickerToggle","defaultTabIndex","_stateChanges","parsedTabIndex","Number","tabIndex","_watchStateChanges","_open","stopPropagation","datepickerDisabled","of","inputDisabled","datepickerToggled","[attr.tabindex]","[class.mat-datepicker-toggle-active]","[class.mat-accent]","[class.mat-warn]","(focus)","String","Attribute","disableRipple","_customIcon","ContentChild","_button","MatDatepickerModule","NgModule","imports","CommonModule","MatButtonModule","MatDialogModule","OverlayModule","A11yModule","PortalModule","declarations","entryComponents","yearsPerRow"],"mappings":"CAAC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,qBAAsBA,QAAQ,wBAAyBA,QAAQ,uBAAwBA,QAAQ,mBAAoBA,QAAQ,iBAAkBA,QAAQ,4BAA6BA,QAAQ,4BAA6BA,QAAQ,0BAA2BA,QAAQ,QAASA,QAAQ,yBAA0BA,QAAQ,qBAAsBA,QAAQ,kBAAmBA,QAAQ,yBAA0BA,QAAQ,uBAAwBA,QAAQ,kBAAmBA,QAAQ,gCAAiCA,QAAQ,4BAC1jB,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,+BAAgC,CAAC,UAAW,oBAAqB,uBAAwB,sBAAuB,kBAAmB,gBAAiB,2BAA4B,2BAA4B,yBAA0B,OAAQ,wBAAyB,oBAAqB,iBAAkB,wBAAyB,sBAAuB,iBAAkB,+BAAgC,2BAA4BJ,GACtcA,IAAzBD,EAASA,GAAUO,MAAsBC,GAAKR,EAAOQ,IAAM,GAAIR,EAAOQ,GAAGC,SAAWT,EAAOQ,GAAGC,UAAY,GAAIT,EAAOQ,GAAGC,SAASC,WAAa,IAAKV,EAAOQ,GAAGG,IAAIC,KAAMZ,EAAOQ,GAAGG,IAAIE,QAASb,EAAOQ,GAAGG,IAAIG,OAAQd,EAAOQ,GAAGO,OAAQf,EAAOQ,GAAGQ,KAAMhB,EAAOQ,GAAGC,SAASQ,OAAQjB,EAAOQ,GAAGC,SAASS,OAAQlB,EAAOQ,GAAGC,SAASO,KAAMhB,EAAOmB,KAAMnB,EAAOQ,GAAGG,IAAIS,SAAUpB,EAAOQ,GAAGG,IAAIU,KAAMrB,EAAOmB,KAAKG,UA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BA,EAC1BzD,EAAQoS,kBAAoBA,EAC5BpS,EAAQoY,cAAgBA,EACxBpY,EAAQiX,qBAAuBA,EAC/BjX,EAAQwe,mBAAqBA,EAC7Bxe,EAAQ4e,wBAA0BA,EAClC5e,EAAQ+B,kBAAoBA,EAC5B/B,EAAQukB,oBAAsBA,EAC9BvkB,EAAQ+iB,oBAAsBA,EAC9B/iB,EAAQ8iB,wBAA0BA,EAClC9iB,EAAQyH,aAAeA,EACvBzH,EAAQiP,iBAAmBA,EAC3BjP,EAAQ+Q,YAAcA,EACtB/Q,EAAQ4V,wBAA0BA,EAClC5V,EAAQgP,aAAeA,EACvBhP,EAAQklB,YA/iEU,EAijElB5c,OAAOC,eAAevI,EAAS,aAAc,CAAE0D,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/common'), require('@angular/core'), require('@angular/material/button'), require('@angular/material/dialog'), require('@angular/material/core'), require('rxjs'), require('@angular/cdk/keycodes'), require('@angular/cdk/bidi'), require('rxjs/operators'), require('@angular/cdk/coercion'), require('@angular/animations'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input')) :\n typeof define === 'function' && define.amd ? define('@angular/material/datepicker', ['exports', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/common', '@angular/core', '@angular/material/button', '@angular/material/dialog', '@angular/material/core', 'rxjs', '@angular/cdk/keycodes', '@angular/cdk/bidi', 'rxjs/operators', '@angular/cdk/coercion', '@angular/animations', '@angular/forms', '@angular/material/form-field', '@angular/material/input'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.datepicker = {}), global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.common, global.ng.core, global.ng.material.button, global.ng.material.dialog, global.ng.material.core, global.rxjs, global.ng.cdk.keycodes, global.ng.cdk.bidi, global.rxjs.operators, global.ng.cdk.coercion, global.ng.animations, global.ng.forms, global.ng.material.formField, global.ng.material.input));\n}(this, (function (exports, a11y, overlay, portal, common, i0, button, dialog, core, rxjs, keycodes, bidi, operators, coercion, animations, forms, formField, input) { 'use strict';\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** @docs-private */\n function createMissingDateImplError(provider) {\n return Error(\"MatDatepicker: No provider found for \" + provider + \". You must import one of the following \" +\n \"modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a \" +\n \"custom implementation.\");\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Datepicker data that requires internationalization. */\n var MatDatepickerIntl = /** @class */ (function () {\n function MatDatepickerIntl() {\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n */\n this.changes = new rxjs.Subject();\n /** A label for the calendar popup (used by screen readers). */\n this.calendarLabel = 'Calendar';\n /** A label for the button used to open the calendar popup (used by screen readers). */\n this.openCalendarLabel = 'Open calendar';\n /** A label for the previous month button (used by screen readers). */\n this.prevMonthLabel = 'Previous month';\n /** A label for the next month button (used by screen readers). */\n this.nextMonthLabel = 'Next month';\n /** A label for the previous year button (used by screen readers). */\n this.prevYearLabel = 'Previous year';\n /** A label for the next year button (used by screen readers). */\n this.nextYearLabel = 'Next year';\n /** A label for the previous multi-year button (used by screen readers). */\n this.prevMultiYearLabel = 'Previous 20 years';\n /** A label for the next multi-year button (used by screen readers). */\n this.nextMultiYearLabel = 'Next 20 years';\n /** A label for the 'switch to month view' button (used by screen readers). */\n this.switchToMonthViewLabel = 'Choose date';\n /** A label for the 'switch to year view' button (used by screen readers). */\n this.switchToMultiYearViewLabel = 'Choose month and year';\n }\n /** Formats a range of years. */\n MatDatepickerIntl.prototype.formatYearRange = function (start, end) {\n return start + \" \\u2013 \" + end;\n };\n MatDatepickerIntl.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n MatDatepickerIntl.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatDatepickerIntl_Factory() { return new MatDatepickerIntl(); }, token: MatDatepickerIntl, providedIn: \"root\" });\n return MatDatepickerIntl;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * An internal class that represents the data corresponding to a single calendar cell.\n * @docs-private\n */\n var MatCalendarCell = /** @class */ (function () {\n function MatCalendarCell(value, displayValue, ariaLabel, enabled, cssClasses) {\n if (cssClasses === void 0) { cssClasses = {}; }\n this.value = value;\n this.displayValue = displayValue;\n this.ariaLabel = ariaLabel;\n this.enabled = enabled;\n this.cssClasses = cssClasses;\n }\n return MatCalendarCell;\n }());\n /**\n * An internal component used to display calendar data in a table.\n * @docs-private\n */\n var MatCalendarBody = /** @class */ (function () {\n function MatCalendarBody(_elementRef, _ngZone) {\n this._elementRef = _elementRef;\n this._ngZone = _ngZone;\n /** The number of columns in the table. */\n this.numCols = 7;\n /** The cell number of the active cell in the table. */\n this.activeCell = 0;\n /**\n * The aspect ratio (width / height) to use for the cells in the table. This aspect ratio will be\n * maintained even as the table resizes.\n */\n this.cellAspectRatio = 1;\n /** Emits when a new value is selected. */\n this.selectedValueChange = new i0.EventEmitter();\n }\n MatCalendarBody.prototype._cellClicked = function (cell) {\n if (cell.enabled) {\n this.selectedValueChange.emit(cell.value);\n }\n };\n MatCalendarBody.prototype.ngOnChanges = function (changes) {\n var columnChanges = changes['numCols'];\n var _a = this, rows = _a.rows, numCols = _a.numCols;\n if (changes['rows'] || columnChanges) {\n this._firstRowOffset = rows && rows.length && rows[0].length ? numCols - rows[0].length : 0;\n }\n if (changes['cellAspectRatio'] || columnChanges || !this._cellPadding) {\n this._cellPadding = 50 * this.cellAspectRatio / numCols + \"%\";\n }\n if (columnChanges || !this._cellWidth) {\n this._cellWidth = 100 / numCols + \"%\";\n }\n };\n MatCalendarBody.prototype._isActiveCell = function (rowIndex, colIndex) {\n var cellNumber = rowIndex * this.numCols + colIndex;\n // Account for the fact that the first row may not have as many cells.\n if (rowIndex) {\n cellNumber -= this._firstRowOffset;\n }\n return cellNumber == this.activeCell;\n };\n /** Focuses the active cell after the microtask queue is empty. */\n MatCalendarBody.prototype._focusActiveCell = function () {\n var _this = this;\n this._ngZone.runOutsideAngular(function () {\n _this._ngZone.onStable.asObservable().pipe(operators.take(1)).subscribe(function () {\n var activeCell = _this._elementRef.nativeElement.querySelector('.mat-calendar-body-active');\n if (activeCell) {\n activeCell.focus();\n }\n });\n });\n };\n MatCalendarBody.decorators = [\n { type: i0.Component, args: [{\n selector: '[mat-calendar-body]',\n template: \"<!--\\n If there's not enough space in the first row, create a separate label row. We mark this row as\\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\\n-->\\n<tr *ngIf=\\\"_firstRowOffset < labelMinRequiredCells\\\" aria-hidden=\\\"true\\\">\\n <td class=\\\"mat-calendar-body-label\\\"\\n [attr.colspan]=\\\"numCols\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n {{label}}\\n </td>\\n</tr>\\n\\n<!-- Create the first row separately so we can include a special spacer cell. -->\\n<tr *ngFor=\\\"let row of rows; let rowIndex = index\\\" role=\\\"row\\\">\\n <!--\\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\\n percentage of the width (a variant of the trick described here:\\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\\n -->\\n <td *ngIf=\\\"rowIndex === 0 && _firstRowOffset\\\"\\n aria-hidden=\\\"true\\\"\\n class=\\\"mat-calendar-body-label\\\"\\n [attr.colspan]=\\\"_firstRowOffset\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n {{_firstRowOffset >= labelMinRequiredCells ? label : ''}}\\n </td>\\n <td *ngFor=\\\"let item of row; let colIndex = index\\\"\\n role=\\\"gridcell\\\"\\n class=\\\"mat-calendar-body-cell mat-focus-indicator\\\"\\n [ngClass]=\\\"item.cssClasses\\\"\\n [tabindex]=\\\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\\\"\\n [class.mat-calendar-body-disabled]=\\\"!item.enabled\\\"\\n [class.mat-calendar-body-active]=\\\"_isActiveCell(rowIndex, colIndex)\\\"\\n [attr.aria-label]=\\\"item.ariaLabel\\\"\\n [attr.aria-disabled]=\\\"!item.enabled || null\\\"\\n [attr.aria-selected]=\\\"selectedValue === item.value\\\"\\n (click)=\\\"_cellClicked(item)\\\"\\n [style.width]=\\\"_cellWidth\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n role=\\\"button\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n <div class=\\\"mat-calendar-body-cell-content\\\"\\n [class.mat-calendar-body-selected]=\\\"selectedValue === item.value\\\"\\n [class.mat-calendar-body-today]=\\\"todayValue === item.value\\\">\\n {{item.displayValue}}\\n </div>\\n </td>\\n</tr>\\n\",\n host: {\n 'class': 'mat-calendar-body',\n 'role': 'grid',\n 'aria-readonly': 'true'\n },\n exportAs: 'matCalendarBody',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n styles: [\".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}\\n\"]\n }] }\n ];\n /** @nocollapse */\n MatCalendarBody.ctorParameters = function () { return [\n { type: i0.ElementRef },\n { type: i0.NgZone }\n ]; };\n MatCalendarBody.propDecorators = {\n label: [{ type: i0.Input }],\n rows: [{ type: i0.Input }],\n todayValue: [{ type: i0.Input }],\n selectedValue: [{ type: i0.Input }],\n labelMinRequiredCells: [{ type: i0.Input }],\n numCols: [{ type: i0.Input }],\n activeCell: [{ type: i0.Input }],\n cellAspectRatio: [{ type: i0.Input }],\n selectedValueChange: [{ type: i0.Output }]\n };\n return MatCalendarBody;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var DAYS_PER_WEEK = 7;\n /**\n * An internal component used to display a single month in the datepicker.\n * @docs-private\n */\n var MatMonthView = /** @class */ (function () {\n function MatMonthView(_changeDetectorRef, _dateFormats, _dateAdapter, _dir) {\n this._changeDetectorRef = _changeDetectorRef;\n this._dateFormats = _dateFormats;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._rerenderSubscription = rxjs.Subscription.EMPTY;\n /** Emits when a new date is selected. */\n this.selectedChange = new i0.EventEmitter();\n /** Emits when any date is selected. */\n this._userSelection = new i0.EventEmitter();\n /** Emits when any date is activated. */\n this.activeDateChange = new i0.EventEmitter();\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n this._activeDate = this._dateAdapter.today();\n }\n Object.defineProperty(MatMonthView.prototype, \"activeDate\", {\n /**\n * The date to display in this month view (everything other than the month and year is ignored).\n */\n get: function () { return this._activeDate; },\n set: function (value) {\n var oldActiveDate = this._activeDate;\n var validDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\n if (!this._hasSameMonthAndYear(oldActiveDate, this._activeDate)) {\n this._init();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMonthView.prototype, \"selected\", {\n /** The currently selected date. */\n get: function () { return this._selected; },\n set: function (value) {\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n this._selectedDate = this._getDateInCurrentMonth(this._selected);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMonthView.prototype, \"minDate\", {\n /** The minimum selectable date. */\n get: function () { return this._minDate; },\n set: function (value) {\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMonthView.prototype, \"maxDate\", {\n /** The maximum selectable date. */\n get: function () { return this._maxDate; },\n set: function (value) {\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n MatMonthView.prototype.ngAfterContentInit = function () {\n var _this = this;\n this._rerenderSubscription = this._dateAdapter.localeChanges\n .pipe(operators.startWith(null))\n .subscribe(function () { return _this._init(); });\n };\n MatMonthView.prototype.ngOnDestroy = function () {\n this._rerenderSubscription.unsubscribe();\n };\n /** Handles when a new date is selected. */\n MatMonthView.prototype._dateSelected = function (date) {\n if (this._selectedDate != date) {\n var selectedYear = this._dateAdapter.getYear(this.activeDate);\n var selectedMonth = this._dateAdapter.getMonth(this.activeDate);\n var selectedDate = this._dateAdapter.createDate(selectedYear, selectedMonth, date);\n this.selectedChange.emit(selectedDate);\n }\n this._userSelection.emit();\n };\n /** Handles keydown events on the calendar body when calendar is in month view. */\n MatMonthView.prototype._handleCalendarBodyKeydown = function (event) {\n // TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent\n // disabled ones from being selected. This may not be ideal, we should look into whether\n // navigation should skip over disabled dates, and if so, how to implement that efficiently.\n var oldActiveDate = this._activeDate;\n var isRtl = this._isRtl();\n switch (event.keyCode) {\n case keycodes.LEFT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, isRtl ? 1 : -1);\n break;\n case keycodes.RIGHT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, isRtl ? -1 : 1);\n break;\n case keycodes.UP_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, -7);\n break;\n case keycodes.DOWN_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 7);\n break;\n case keycodes.HOME:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 1 - this._dateAdapter.getDate(this._activeDate));\n break;\n case keycodes.END:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, (this._dateAdapter.getNumDaysInMonth(this._activeDate) -\n this._dateAdapter.getDate(this._activeDate)));\n break;\n case keycodes.PAGE_UP:\n this.activeDate = event.altKey ?\n this._dateAdapter.addCalendarYears(this._activeDate, -1) :\n this._dateAdapter.addCalendarMonths(this._activeDate, -1);\n break;\n case keycodes.PAGE_DOWN:\n this.activeDate = event.altKey ?\n this._dateAdapter.addCalendarYears(this._activeDate, 1) :\n this._dateAdapter.addCalendarMonths(this._activeDate, 1);\n break;\n case keycodes.ENTER:\n case keycodes.SPACE:\n if (!this.dateFilter || this.dateFilter(this._activeDate)) {\n this._dateSelected(this._dateAdapter.getDate(this._activeDate));\n this._userSelection.emit();\n // Prevent unexpected default actions such as form submission.\n event.preventDefault();\n }\n return;\n default:\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\n return;\n }\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\n this.activeDateChange.emit(this.activeDate);\n }\n this._focusActiveCell();\n // Prevent unexpected default actions such as form submission.\n event.preventDefault();\n };\n /** Initializes this month view. */\n MatMonthView.prototype._init = function () {\n this._selectedDate = this._getDateInCurrentMonth(this.selected);\n this._todayDate = this._getDateInCurrentMonth(this._dateAdapter.today());\n this._monthLabel =\n this._dateAdapter.getMonthNames('short')[this._dateAdapter.getMonth(this.activeDate)]\n .toLocaleUpperCase();\n var firstOfMonth = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), 1);\n this._firstWeekOffset =\n (DAYS_PER_WEEK + this._dateAdapter.getDayOfWeek(firstOfMonth) -\n this._dateAdapter.getFirstDayOfWeek()) % DAYS_PER_WEEK;\n this._initWeekdays();\n this._createWeekCells();\n this._changeDetectorRef.markForCheck();\n };\n /** Focuses the active cell after the microtask queue is empty. */\n MatMonthView.prototype._focusActiveCell = function () {\n this._matCalendarBody._focusActiveCell();\n };\n /** Initializes the weekdays. */\n MatMonthView.prototype._initWeekdays = function () {\n var firstDayOfWeek = this._dateAdapter.getFirstDayOfWeek();\n var narrowWeekdays = this._dateAdapter.getDayOfWeekNames('narrow');\n var longWeekdays = this._dateAdapter.getDayOfWeekNames('long');\n // Rotate the labels for days of the week based on the configured first day of the week.\n var weekdays = longWeekdays.map(function (long, i) {\n return { long: long, narrow: narrowWeekdays[i] };\n });\n this._weekdays = weekdays.slice(firstDayOfWeek).concat(weekdays.slice(0, firstDayOfWeek));\n };\n /** Creates MatCalendarCells for the dates in this month. */\n MatMonthView.prototype._createWeekCells = function () {\n var daysInMonth = this._dateAdapter.getNumDaysInMonth(this.activeDate);\n var dateNames = this._dateAdapter.getDateNames();\n this._weeks = [[]];\n for (var i = 0, cell = this._firstWeekOffset; i < daysInMonth; i++, cell++) {\n if (cell == DAYS_PER_WEEK) {\n this._weeks.push([]);\n cell = 0;\n }\n var date = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), i + 1);\n var enabled = this._shouldEnableDate(date);\n var ariaLabel = this._dateAdapter.format(date, this._dateFormats.display.dateA11yLabel);\n var cellClasses = this.dateClass ? this.dateClass(date) : undefined;\n this._weeks[this._weeks.length - 1]\n .push(new MatCalendarCell(i + 1, dateNames[i], ariaLabel, enabled, cellClasses));\n }\n };\n /** Date filter for the month */\n MatMonthView.prototype._shouldEnableDate = function (date) {\n return !!date &&\n (!this.minDate || this._dateAdapter.compareDate(date, this.minDate) >= 0) &&\n (!this.maxDate || this._dateAdapter.compareDate(date, this.maxDate) <= 0) &&\n (!this.dateFilter || this.dateFilter(date));\n };\n /**\n * Gets the date in this month that the given Date falls on.\n * Returns null if the given Date is in another month.\n */\n MatMonthView.prototype._getDateInCurrentMonth = function (date) {\n return date && this._hasSameMonthAndYear(date, this.activeDate) ?\n this._dateAdapter.getDate(date) : null;\n };\n /** Checks whether the 2 dates are non-null and fall within the same month of the same year. */\n MatMonthView.prototype._hasSameMonthAndYear = function (d1, d2) {\n return !!(d1 && d2 && this._dateAdapter.getMonth(d1) == this._dateAdapter.getMonth(d2) &&\n this._dateAdapter.getYear(d1) == this._dateAdapter.getYear(d2));\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatMonthView.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n /** Determines whether the user has the RTL layout direction. */\n MatMonthView.prototype._isRtl = function () {\n return this._dir && this._dir.value === 'rtl';\n };\n MatMonthView.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-month-view',\n template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\n <thead class=\\\"mat-calendar-table-header\\\">\\n <tr>\\n <th scope=\\\"col\\\" *ngFor=\\\"let day of _weekdays\\\" [attr.aria-label]=\\\"day.long\\\">{{day.narrow}}</th>\\n </tr>\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"7\\\" aria-hidden=\\\"true\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [label]=\\\"_monthLabel\\\"\\n [rows]=\\\"_weeks\\\"\\n [todayValue]=\\\"_todayDate!\\\"\\n [selectedValue]=\\\"_selectedDate!\\\"\\n [labelMinRequiredCells]=\\\"3\\\"\\n [activeCell]=\\\"_dateAdapter.getDate(activeDate) - 1\\\"\\n (selectedValueChange)=\\\"_dateSelected($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\",\n exportAs: 'matMonthView',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush\n }] }\n ];\n /** @nocollapse */\n MatMonthView.ctorParameters = function () { return [\n { type: i0.ChangeDetectorRef },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [core.MAT_DATE_FORMATS,] }] },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: bidi.Directionality, decorators: [{ type: i0.Optional }] }\n ]; };\n MatMonthView.propDecorators = {\n activeDate: [{ type: i0.Input }],\n selected: [{ type: i0.Input }],\n minDate: [{ type: i0.Input }],\n maxDate: [{ type: i0.Input }],\n dateFilter: [{ type: i0.Input }],\n dateClass: [{ type: i0.Input }],\n selectedChange: [{ type: i0.Output }],\n _userSelection: [{ type: i0.Output }],\n activeDateChange: [{ type: i0.Output }],\n _matCalendarBody: [{ type: i0.ViewChild, args: [MatCalendarBody,] }]\n };\n return MatMonthView;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var yearsPerPage = 24;\n var yearsPerRow = 4;\n /**\n * An internal component used to display a year selector in the datepicker.\n * @docs-private\n */\n var MatMultiYearView = /** @class */ (function () {\n function MatMultiYearView(_changeDetectorRef, _dateAdapter, _dir) {\n this._changeDetectorRef = _changeDetectorRef;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._rerenderSubscription = rxjs.Subscription.EMPTY;\n /** Emits when a new year is selected. */\n this.selectedChange = new i0.EventEmitter();\n /** Emits the selected year. This doesn't imply a change on the selected date */\n this.yearSelected = new i0.EventEmitter();\n /** Emits when any date is activated. */\n this.activeDateChange = new i0.EventEmitter();\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n this._activeDate = this._dateAdapter.today();\n }\n Object.defineProperty(MatMultiYearView.prototype, \"activeDate\", {\n /** The date to display in this multi-year view (everything other than the year is ignored). */\n get: function () { return this._activeDate; },\n set: function (value) {\n var oldActiveDate = this._activeDate;\n var validDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\n if (!isSameMultiYearView(this._dateAdapter, oldActiveDate, this._activeDate, this.minDate, this.maxDate)) {\n this._init();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMultiYearView.prototype, \"selected\", {\n /** The currently selected date. */\n get: function () { return this._selected; },\n set: function (value) {\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n this._selectedYear = this._selected && this._dateAdapter.getYear(this._selected);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMultiYearView.prototype, \"minDate\", {\n /** The minimum selectable date. */\n get: function () { return this._minDate; },\n set: function (value) {\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMultiYearView.prototype, \"maxDate\", {\n /** The maximum selectable date. */\n get: function () { return this._maxDate; },\n set: function (value) {\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n MatMultiYearView.prototype.ngAfterContentInit = function () {\n var _this = this;\n this._rerenderSubscription = this._dateAdapter.localeChanges\n .pipe(operators.startWith(null))\n .subscribe(function () { return _this._init(); });\n };\n MatMultiYearView.prototype.ngOnDestroy = function () {\n this._rerenderSubscription.unsubscribe();\n };\n /** Initializes this multi-year view. */\n MatMultiYearView.prototype._init = function () {\n var _this = this;\n this._todayYear = this._dateAdapter.getYear(this._dateAdapter.today());\n // We want a range years such that we maximize the number of\n // enabled dates visible at once. This prevents issues where the minimum year\n // is the last item of a page OR the maximum year is the first item of a page.\n // The offset from the active year to the \"slot\" for the starting year is the\n // *actual* first rendered year in the multi-year view.\n var activeYear = this._dateAdapter.getYear(this._activeDate);\n var minYearOfPage = activeYear - getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate);\n this._years = [];\n for (var i = 0, row = []; i < yearsPerPage; i++) {\n row.push(minYearOfPage + i);\n if (row.length == yearsPerRow) {\n this._years.push(row.map(function (year) { return _this._createCellForYear(year); }));\n row = [];\n }\n }\n this._changeDetectorRef.markForCheck();\n };\n /** Handles when a new year is selected. */\n MatMultiYearView.prototype._yearSelected = function (year) {\n this.yearSelected.emit(this._dateAdapter.createDate(year, 0, 1));\n var month = this._dateAdapter.getMonth(this.activeDate);\n var daysInMonth = this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(year, month, 1));\n this.selectedChange.emit(this._dateAdapter.createDate(year, month, Math.min(this._dateAdapter.getDate(this.activeDate), daysInMonth)));\n };\n /** Handles keydown events on the calendar body when calendar is in multi-year view. */\n MatMultiYearView.prototype._handleCalendarBodyKeydown = function (event) {\n var oldActiveDate = this._activeDate;\n var isRtl = this._isRtl();\n switch (event.keyCode) {\n case keycodes.LEFT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, isRtl ? 1 : -1);\n break;\n case keycodes.RIGHT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, isRtl ? -1 : 1);\n break;\n case keycodes.UP_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -yearsPerRow);\n break;\n case keycodes.DOWN_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerRow);\n break;\n case keycodes.HOME:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate));\n break;\n case keycodes.END:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerPage - getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate) - 1);\n break;\n case keycodes.PAGE_UP:\n this.activeDate =\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -yearsPerPage * 10 : -yearsPerPage);\n break;\n case keycodes.PAGE_DOWN:\n this.activeDate =\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? yearsPerPage * 10 : yearsPerPage);\n break;\n case keycodes.ENTER:\n case keycodes.SPACE:\n this._yearSelected(this._dateAdapter.getYear(this._activeDate));\n break;\n default:\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\n return;\n }\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\n this.activeDateChange.emit(this.activeDate);\n }\n this._focusActiveCell();\n // Prevent unexpected default actions such as form submission.\n event.preventDefault();\n };\n MatMultiYearView.prototype._getActiveCell = function () {\n return getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate);\n };\n /** Focuses the active cell after the microtask queue is empty. */\n MatMultiYearView.prototype._focusActiveCell = function () {\n this._matCalendarBody._focusActiveCell();\n };\n /** Creates an MatCalendarCell for the given year. */\n MatMultiYearView.prototype._createCellForYear = function (year) {\n var yearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(year, 0, 1));\n return new MatCalendarCell(year, yearName, yearName, this._shouldEnableYear(year));\n };\n /** Whether the given year is enabled. */\n MatMultiYearView.prototype._shouldEnableYear = function (year) {\n // disable if the year is greater than maxDate lower than minDate\n if (year === undefined || year === null ||\n (this.maxDate && year > this._dateAdapter.getYear(this.maxDate)) ||\n (this.minDate && year < this._dateAdapter.getYear(this.minDate))) {\n return false;\n }\n // enable if it reaches here and there's no filter defined\n if (!this.dateFilter) {\n return true;\n }\n var firstOfYear = this._dateAdapter.createDate(year, 0, 1);\n // If any date in the year is enabled count the year as enabled.\n for (var date = firstOfYear; this._dateAdapter.getYear(date) == year; date = this._dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatMultiYearView.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n /** Determines whether the user has the RTL layout direction. */\n MatMultiYearView.prototype._isRtl = function () {\n return this._dir && this._dir.value === 'rtl';\n };\n MatMultiYearView.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-multi-year-view',\n template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\n <thead class=\\\"mat-calendar-table-header\\\">\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [rows]=\\\"_years\\\"\\n [todayValue]=\\\"_todayYear\\\"\\n [selectedValue]=\\\"_selectedYear!\\\"\\n [numCols]=\\\"4\\\"\\n [cellAspectRatio]=\\\"4 / 7\\\"\\n [activeCell]=\\\"_getActiveCell()\\\"\\n (selectedValueChange)=\\\"_yearSelected($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\",\n exportAs: 'matMultiYearView',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush\n }] }\n ];\n /** @nocollapse */\n MatMultiYearView.ctorParameters = function () { return [\n { type: i0.ChangeDetectorRef },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: bidi.Directionality, decorators: [{ type: i0.Optional }] }\n ]; };\n MatMultiYearView.propDecorators = {\n activeDate: [{ type: i0.Input }],\n selected: [{ type: i0.Input }],\n minDate: [{ type: i0.Input }],\n maxDate: [{ type: i0.Input }],\n dateFilter: [{ type: i0.Input }],\n selectedChange: [{ type: i0.Output }],\n yearSelected: [{ type: i0.Output }],\n activeDateChange: [{ type: i0.Output }],\n _matCalendarBody: [{ type: i0.ViewChild, args: [MatCalendarBody,] }]\n };\n return MatMultiYearView;\n }());\n function isSameMultiYearView(dateAdapter, date1, date2, minDate, maxDate) {\n var year1 = dateAdapter.getYear(date1);\n var year2 = dateAdapter.getYear(date2);\n var startingYear = getStartingYear(dateAdapter, minDate, maxDate);\n return Math.floor((year1 - startingYear) / yearsPerPage) ===\n Math.floor((year2 - startingYear) / yearsPerPage);\n }\n /**\n * When the multi-year view is first opened, the active year will be in view.\n * So we compute how many years are between the active year and the *slot* where our\n * \"startingYear\" will render when paged into view.\n */\n function getActiveOffset(dateAdapter, activeDate, minDate, maxDate) {\n var activeYear = dateAdapter.getYear(activeDate);\n return euclideanModulo((activeYear - getStartingYear(dateAdapter, minDate, maxDate)), yearsPerPage);\n }\n /**\n * We pick a \"starting\" year such that either the maximum year would be at the end\n * or the minimum year would be at the beginning of a page.\n */\n function getStartingYear(dateAdapter, minDate, maxDate) {\n var startingYear = 0;\n if (maxDate) {\n var maxYear = dateAdapter.getYear(maxDate);\n startingYear = maxYear - yearsPerPage + 1;\n }\n else if (minDate) {\n startingYear = dateAdapter.getYear(minDate);\n }\n return startingYear;\n }\n /** Gets remainder that is non-negative, even if first number is negative */\n function euclideanModulo(a, b) {\n return (a % b + b) % b;\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * An internal component used to display a single year in the datepicker.\n * @docs-private\n */\n var MatYearView = /** @class */ (function () {\n function MatYearView(_changeDetectorRef, _dateFormats, _dateAdapter, _dir) {\n this._changeDetectorRef = _changeDetectorRef;\n this._dateFormats = _dateFormats;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._rerenderSubscription = rxjs.Subscription.EMPTY;\n /** Emits when a new month is selected. */\n this.selectedChange = new i0.EventEmitter();\n /** Emits the selected month. This doesn't imply a change on the selected date */\n this.monthSelected = new i0.EventEmitter();\n /** Emits when any date is activated. */\n this.activeDateChange = new i0.EventEmitter();\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n this._activeDate = this._dateAdapter.today();\n }\n Object.defineProperty(MatYearView.prototype, \"activeDate\", {\n /** The date to display in this year view (everything other than the year is ignored). */\n get: function () { return this._activeDate; },\n set: function (value) {\n var oldActiveDate = this._activeDate;\n var validDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\n if (this._dateAdapter.getYear(oldActiveDate) !== this._dateAdapter.getYear(this._activeDate)) {\n this._init();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatYearView.prototype, \"selected\", {\n /** The currently selected date. */\n get: function () { return this._selected; },\n set: function (value) {\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n this._selectedMonth = this._getMonthInCurrentYear(this._selected);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatYearView.prototype, \"minDate\", {\n /** The minimum selectable date. */\n get: function () { return this._minDate; },\n set: function (value) {\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatYearView.prototype, \"maxDate\", {\n /** The maximum selectable date. */\n get: function () { return this._maxDate; },\n set: function (value) {\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n MatYearView.prototype.ngAfterContentInit = function () {\n var _this = this;\n this._rerenderSubscription = this._dateAdapter.localeChanges\n .pipe(operators.startWith(null))\n .subscribe(function () { return _this._init(); });\n };\n MatYearView.prototype.ngOnDestroy = function () {\n this._rerenderSubscription.unsubscribe();\n };\n /** Handles when a new month is selected. */\n MatYearView.prototype._monthSelected = function (month) {\n var normalizedDate = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1);\n this.monthSelected.emit(normalizedDate);\n var daysInMonth = this._dateAdapter.getNumDaysInMonth(normalizedDate);\n this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, Math.min(this._dateAdapter.getDate(this.activeDate), daysInMonth)));\n };\n /** Handles keydown events on the calendar body when calendar is in year view. */\n MatYearView.prototype._handleCalendarBodyKeydown = function (event) {\n // TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent\n // disabled ones from being selected. This may not be ideal, we should look into whether\n // navigation should skip over disabled dates, and if so, how to implement that efficiently.\n var oldActiveDate = this._activeDate;\n var isRtl = this._isRtl();\n switch (event.keyCode) {\n case keycodes.LEFT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, isRtl ? 1 : -1);\n break;\n case keycodes.RIGHT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, isRtl ? -1 : 1);\n break;\n case keycodes.UP_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -4);\n break;\n case keycodes.DOWN_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 4);\n break;\n case keycodes.HOME:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -this._dateAdapter.getMonth(this._activeDate));\n break;\n case keycodes.END:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 11 - this._dateAdapter.getMonth(this._activeDate));\n break;\n case keycodes.PAGE_UP:\n this.activeDate =\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -10 : -1);\n break;\n case keycodes.PAGE_DOWN:\n this.activeDate =\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? 10 : 1);\n break;\n case keycodes.ENTER:\n case keycodes.SPACE:\n this._monthSelected(this._dateAdapter.getMonth(this._activeDate));\n break;\n default:\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\n return;\n }\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\n this.activeDateChange.emit(this.activeDate);\n }\n this._focusActiveCell();\n // Prevent unexpected default actions such as form submission.\n event.preventDefault();\n };\n /** Initializes this year view. */\n MatYearView.prototype._init = function () {\n var _this = this;\n this._selectedMonth = this._getMonthInCurrentYear(this.selected);\n this._todayMonth = this._getMonthInCurrentYear(this._dateAdapter.today());\n this._yearLabel = this._dateAdapter.getYearName(this.activeDate);\n var monthNames = this._dateAdapter.getMonthNames('short');\n // First row of months only contains 5 elements so we can fit the year label on the same row.\n this._months = [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]].map(function (row) { return row.map(function (month) { return _this._createCellForMonth(month, monthNames[month]); }); });\n this._changeDetectorRef.markForCheck();\n };\n /** Focuses the active cell after the microtask queue is empty. */\n MatYearView.prototype._focusActiveCell = function () {\n this._matCalendarBody._focusActiveCell();\n };\n /**\n * Gets the month in this year that the given Date falls on.\n * Returns null if the given Date is in another year.\n */\n MatYearView.prototype._getMonthInCurrentYear = function (date) {\n return date && this._dateAdapter.getYear(date) == this._dateAdapter.getYear(this.activeDate) ?\n this._dateAdapter.getMonth(date) : null;\n };\n /** Creates an MatCalendarCell for the given month. */\n MatYearView.prototype._createCellForMonth = function (month, monthName) {\n var ariaLabel = this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1), this._dateFormats.display.monthYearA11yLabel);\n return new MatCalendarCell(month, monthName.toLocaleUpperCase(), ariaLabel, this._shouldEnableMonth(month));\n };\n /** Whether the given month is enabled. */\n MatYearView.prototype._shouldEnableMonth = function (month) {\n var activeYear = this._dateAdapter.getYear(this.activeDate);\n if (month === undefined || month === null ||\n this._isYearAndMonthAfterMaxDate(activeYear, month) ||\n this._isYearAndMonthBeforeMinDate(activeYear, month)) {\n return false;\n }\n if (!this.dateFilter) {\n return true;\n }\n var firstOfMonth = this._dateAdapter.createDate(activeYear, month, 1);\n // If any date in the month is enabled count the month as enabled.\n for (var date = firstOfMonth; this._dateAdapter.getMonth(date) == month; date = this._dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n };\n /**\n * Tests whether the combination month/year is after this.maxDate, considering\n * just the month and year of this.maxDate\n */\n MatYearView.prototype._isYearAndMonthAfterMaxDate = function (year, month) {\n if (this.maxDate) {\n var maxYear = this._dateAdapter.getYear(this.maxDate);\n var maxMonth = this._dateAdapter.getMonth(this.maxDate);\n return year > maxYear || (year === maxYear && month > maxMonth);\n }\n return false;\n };\n /**\n * Tests whether the combination month/year is before this.minDate, considering\n * just the month and year of this.minDate\n */\n MatYearView.prototype._isYearAndMonthBeforeMinDate = function (year, month) {\n if (this.minDate) {\n var minYear = this._dateAdapter.getYear(this.minDate);\n var minMonth = this._dateAdapter.getMonth(this.minDate);\n return year < minYear || (year === minYear && month < minMonth);\n }\n return false;\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatYearView.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n /** Determines whether the user has the RTL layout direction. */\n MatYearView.prototype._isRtl = function () {\n return this._dir && this._dir.value === 'rtl';\n };\n MatYearView.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-year-view',\n template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\n <thead class=\\\"mat-calendar-table-header\\\">\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [label]=\\\"_yearLabel\\\"\\n [rows]=\\\"_months\\\"\\n [todayValue]=\\\"_todayMonth!\\\"\\n [selectedValue]=\\\"_selectedMonth!\\\"\\n [labelMinRequiredCells]=\\\"2\\\"\\n [numCols]=\\\"4\\\"\\n [cellAspectRatio]=\\\"4 / 7\\\"\\n [activeCell]=\\\"_dateAdapter.getMonth(activeDate)\\\"\\n (selectedValueChange)=\\\"_monthSelected($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\",\n exportAs: 'matYearView',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush\n }] }\n ];\n /** @nocollapse */\n MatYearView.ctorParameters = function () { return [\n { type: i0.ChangeDetectorRef },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [core.MAT_DATE_FORMATS,] }] },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: bidi.Directionality, decorators: [{ type: i0.Optional }] }\n ]; };\n MatYearView.propDecorators = {\n activeDate: [{ type: i0.Input }],\n selected: [{ type: i0.Input }],\n minDate: [{ type: i0.Input }],\n maxDate: [{ type: i0.Input }],\n dateFilter: [{ type: i0.Input }],\n selectedChange: [{ type: i0.Output }],\n monthSelected: [{ type: i0.Output }],\n activeDateChange: [{ type: i0.Output }],\n _matCalendarBody: [{ type: i0.ViewChild, args: [MatCalendarBody,] }]\n };\n return MatYearView;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Default header for MatCalendar */\n var MatCalendarHeader = /** @class */ (function () {\n function MatCalendarHeader(_intl, calendar, _dateAdapter, _dateFormats, changeDetectorRef) {\n this._intl = _intl;\n this.calendar = calendar;\n this._dateAdapter = _dateAdapter;\n this._dateFormats = _dateFormats;\n this.calendar.stateChanges.subscribe(function () { return changeDetectorRef.markForCheck(); });\n }\n Object.defineProperty(MatCalendarHeader.prototype, \"periodButtonText\", {\n /** The label for the current calendar view. */\n get: function () {\n if (this.calendar.currentView == 'month') {\n return this._dateAdapter\n .format(this.calendar.activeDate, this._dateFormats.display.monthYearLabel)\n .toLocaleUpperCase();\n }\n if (this.calendar.currentView == 'year') {\n return this._dateAdapter.getYearName(this.calendar.activeDate);\n }\n // The offset from the active year to the \"slot\" for the starting year is the\n // *actual* first rendered year in the multi-year view, and the last year is\n // just yearsPerPage - 1 away.\n var activeYear = this._dateAdapter.getYear(this.calendar.activeDate);\n var minYearOfPage = activeYear - getActiveOffset(this._dateAdapter, this.calendar.activeDate, this.calendar.minDate, this.calendar.maxDate);\n var maxYearOfPage = minYearOfPage + yearsPerPage - 1;\n var minYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(minYearOfPage, 0, 1));\n var maxYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(maxYearOfPage, 0, 1));\n return this._intl.formatYearRange(minYearName, maxYearName);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendarHeader.prototype, \"periodButtonLabel\", {\n get: function () {\n return this.calendar.currentView == 'month' ?\n this._intl.switchToMultiYearViewLabel : this._intl.switchToMonthViewLabel;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendarHeader.prototype, \"prevButtonLabel\", {\n /** The label for the previous button. */\n get: function () {\n return {\n 'month': this._intl.prevMonthLabel,\n 'year': this._intl.prevYearLabel,\n 'multi-year': this._intl.prevMultiYearLabel\n }[this.calendar.currentView];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendarHeader.prototype, \"nextButtonLabel\", {\n /** The label for the next button. */\n get: function () {\n return {\n 'month': this._intl.nextMonthLabel,\n 'year': this._intl.nextYearLabel,\n 'multi-year': this._intl.nextMultiYearLabel\n }[this.calendar.currentView];\n },\n enumerable: true,\n configurable: true\n });\n /** Handles user clicks on the period label. */\n MatCalendarHeader.prototype.currentPeriodClicked = function () {\n this.calendar.currentView = this.calendar.currentView == 'month' ? 'multi-year' : 'month';\n };\n /** Handles user clicks on the previous button. */\n MatCalendarHeader.prototype.previousClicked = function () {\n this.calendar.activeDate = this.calendar.currentView == 'month' ?\n this._dateAdapter.addCalendarMonths(this.calendar.activeDate, -1) :\n this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? -1 : -yearsPerPage);\n };\n /** Handles user clicks on the next button. */\n MatCalendarHeader.prototype.nextClicked = function () {\n this.calendar.activeDate = this.calendar.currentView == 'month' ?\n this._dateAdapter.addCalendarMonths(this.calendar.activeDate, 1) :\n this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? 1 : yearsPerPage);\n };\n /** Whether the previous period button is enabled. */\n MatCalendarHeader.prototype.previousEnabled = function () {\n if (!this.calendar.minDate) {\n return true;\n }\n return !this.calendar.minDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.minDate);\n };\n /** Whether the next period button is enabled. */\n MatCalendarHeader.prototype.nextEnabled = function () {\n return !this.calendar.maxDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.maxDate);\n };\n /** Whether the two dates represent the same view in the current view mode (month or year). */\n MatCalendarHeader.prototype._isSameView = function (date1, date2) {\n if (this.calendar.currentView == 'month') {\n return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2) &&\n this._dateAdapter.getMonth(date1) == this._dateAdapter.getMonth(date2);\n }\n if (this.calendar.currentView == 'year') {\n return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2);\n }\n // Otherwise we are in 'multi-year' view.\n return isSameMultiYearView(this._dateAdapter, date1, date2, this.calendar.minDate, this.calendar.maxDate);\n };\n MatCalendarHeader.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-calendar-header',\n 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\",\n exportAs: 'matCalendarHeader',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush\n }] }\n ];\n /** @nocollapse */\n MatCalendarHeader.ctorParameters = function () { return [\n { type: MatDatepickerIntl },\n { type: MatCalendar, decorators: [{ type: i0.Inject, args: [i0.forwardRef(function () { return MatCalendar; }),] }] },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [core.MAT_DATE_FORMATS,] }] },\n { type: i0.ChangeDetectorRef }\n ]; };\n return MatCalendarHeader;\n }());\n /**\n * A calendar that is used as part of the datepicker.\n * @docs-private\n */\n var MatCalendar = /** @class */ (function () {\n function MatCalendar(_intl, _dateAdapter, _dateFormats, _changeDetectorRef) {\n var _this = this;\n this._dateAdapter = _dateAdapter;\n this._dateFormats = _dateFormats;\n this._changeDetectorRef = _changeDetectorRef;\n /**\n * Used for scheduling that focus should be moved to the active cell on the next tick.\n * We need to schedule it, rather than do it immediately, because we have to wait\n * for Angular to re-evaluate the view children.\n */\n this._moveFocusOnNextTick = false;\n /** Whether the calendar should be started in month or year view. */\n this.startView = 'month';\n /** Emits when the currently selected date changes. */\n this.selectedChange = new i0.EventEmitter();\n /**\n * Emits the year chosen in multiyear view.\n * This doesn't imply a change on the selected date.\n */\n this.yearSelected = new i0.EventEmitter();\n /**\n * Emits the month chosen in year view.\n * This doesn't imply a change on the selected date.\n */\n this.monthSelected = new i0.EventEmitter();\n /** Emits when any date is selected. */\n this._userSelection = new i0.EventEmitter();\n /**\n * Emits whenever there is a state change that the header may need to respond to.\n */\n this.stateChanges = new rxjs.Subject();\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n this._intlChanges = _intl.changes.subscribe(function () {\n _changeDetectorRef.markForCheck();\n _this.stateChanges.next();\n });\n }\n Object.defineProperty(MatCalendar.prototype, \"startAt\", {\n /** A date representing the period (month or year) to start the calendar in. */\n get: function () { return this._startAt; },\n set: function (value) {\n this._startAt = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendar.prototype, \"selected\", {\n /** The currently selected date. */\n get: function () { return this._selected; },\n set: function (value) {\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendar.prototype, \"minDate\", {\n /** The minimum selectable date. */\n get: function () { return this._minDate; },\n set: function (value) {\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendar.prototype, \"maxDate\", {\n /** The maximum selectable date. */\n get: function () { return this._maxDate; },\n set: function (value) {\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendar.prototype, \"activeDate\", {\n /**\n * The current active date. This determines which time period is shown and which date is\n * highlighted when using keyboard navigation.\n */\n get: function () { return this._clampedActiveDate; },\n set: function (value) {\n this._clampedActiveDate = this._dateAdapter.clampDate(value, this.minDate, this.maxDate);\n this.stateChanges.next();\n this._changeDetectorRef.markForCheck();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendar.prototype, \"currentView\", {\n /** Whether the calendar is in month view. */\n get: function () { return this._currentView; },\n set: function (value) {\n this._currentView = value;\n this._moveFocusOnNextTick = true;\n this._changeDetectorRef.markForCheck();\n },\n enumerable: true,\n configurable: true\n });\n MatCalendar.prototype.ngAfterContentInit = function () {\n this._calendarHeaderPortal = new portal.ComponentPortal(this.headerComponent || MatCalendarHeader);\n this.activeDate = this.startAt || this._dateAdapter.today();\n // Assign to the private property since we don't want to move focus on init.\n this._currentView = this.startView;\n };\n MatCalendar.prototype.ngAfterViewChecked = function () {\n if (this._moveFocusOnNextTick) {\n this._moveFocusOnNextTick = false;\n this.focusActiveCell();\n }\n };\n MatCalendar.prototype.ngOnDestroy = function () {\n this._intlChanges.unsubscribe();\n this.stateChanges.complete();\n };\n MatCalendar.prototype.ngOnChanges = function (changes) {\n var change = changes['minDate'] || changes['maxDate'] || changes['dateFilter'];\n if (change && !change.firstChange) {\n var view = this._getCurrentViewComponent();\n if (view) {\n // We need to `detectChanges` manually here, because the `minDate`, `maxDate` etc. are\n // passed down to the view via data bindings which won't be up-to-date when we call `_init`.\n this._changeDetectorRef.detectChanges();\n view._init();\n }\n }\n this.stateChanges.next();\n };\n MatCalendar.prototype.focusActiveCell = function () {\n this._getCurrentViewComponent()._focusActiveCell();\n };\n /** Updates today's date after an update of the active date */\n MatCalendar.prototype.updateTodaysDate = function () {\n var currentView = this.currentView;\n var view;\n if (currentView === 'month') {\n view = this.monthView;\n }\n else if (currentView === 'year') {\n view = this.yearView;\n }\n else {\n view = this.multiYearView;\n }\n view.ngAfterContentInit();\n };\n /** Handles date selection in the month view. */\n MatCalendar.prototype._dateSelected = function (date) {\n if (date && !this._dateAdapter.sameDate(date, this.selected)) {\n this.selectedChange.emit(date);\n }\n };\n /** Handles year selection in the multiyear view. */\n MatCalendar.prototype._yearSelectedInMultiYearView = function (normalizedYear) {\n this.yearSelected.emit(normalizedYear);\n };\n /** Handles month selection in the year view. */\n MatCalendar.prototype._monthSelectedInYearView = function (normalizedMonth) {\n this.monthSelected.emit(normalizedMonth);\n };\n MatCalendar.prototype._userSelected = function () {\n this._userSelection.emit();\n };\n /** Handles year/month selection in the multi-year/year views. */\n MatCalendar.prototype._goToDateInView = function (date, view) {\n this.activeDate = date;\n this.currentView = view;\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatCalendar.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n /** Returns the component instance that corresponds to the current calendar view. */\n MatCalendar.prototype._getCurrentViewComponent = function () {\n return this.monthView || this.yearView || this.multiYearView;\n };\n MatCalendar.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-calendar',\n template: \"\\n<ng-template [cdkPortalOutlet]=\\\"_calendarHeaderPortal\\\"></ng-template>\\n\\n<div class=\\\"mat-calendar-content\\\" [ngSwitch]=\\\"currentView\\\" cdkMonitorSubtreeFocus tabindex=\\\"-1\\\">\\n <mat-month-view\\n *ngSwitchCase=\\\"'month'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n [dateClass]=\\\"dateClass\\\"\\n (selectedChange)=\\\"_dateSelected($event)\\\"\\n (_userSelection)=\\\"_userSelected()\\\">\\n </mat-month-view>\\n\\n <mat-year-view\\n *ngSwitchCase=\\\"'year'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n (monthSelected)=\\\"_monthSelectedInYearView($event)\\\"\\n (selectedChange)=\\\"_goToDateInView($event, 'month')\\\">\\n </mat-year-view>\\n\\n <mat-multi-year-view\\n *ngSwitchCase=\\\"'multi-year'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n (yearSelected)=\\\"_yearSelectedInMultiYearView($event)\\\"\\n (selectedChange)=\\\"_goToDateInView($event, 'year')\\\">\\n </mat-multi-year-view>\\n</div>\\n\",\n host: {\n 'class': 'mat-calendar',\n },\n exportAs: 'matCalendar',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n styles: [\".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:\\\"\\\";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:\\\"\\\";position:absolute;top:0;left:-8px;right:-8px;height:1px}\\n\"]\n }] }\n ];\n /** @nocollapse */\n MatCalendar.ctorParameters = function () { return [\n { type: MatDatepickerIntl },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [core.MAT_DATE_FORMATS,] }] },\n { type: i0.ChangeDetectorRef }\n ]; };\n MatCalendar.propDecorators = {\n headerComponent: [{ type: i0.Input }],\n startAt: [{ type: i0.Input }],\n startView: [{ type: i0.Input }],\n selected: [{ type: i0.Input }],\n minDate: [{ type: i0.Input }],\n maxDate: [{ type: i0.Input }],\n dateFilter: [{ type: i0.Input }],\n dateClass: [{ type: i0.Input }],\n selectedChange: [{ type: i0.Output }],\n yearSelected: [{ type: i0.Output }],\n monthSelected: [{ type: i0.Output }],\n _userSelection: [{ type: i0.Output }],\n monthView: [{ type: i0.ViewChild, args: [MatMonthView,] }],\n yearView: [{ type: i0.ViewChild, args: [MatYearView,] }],\n multiYearView: [{ type: i0.ViewChild, args: [MatMultiYearView,] }]\n };\n return MatCalendar;\n }());\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation. All rights reserved.\r\n Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n this file except in compliance with the License. You may obtain a copy of the\r\n License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n See the Apache Version 2.0 License for specific language governing permissions\r\n and limitations under the License.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\r\n\r\n var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n };\r\n\r\n function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n }\r\n\r\n function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n }\r\n\r\n function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n }\r\n\r\n function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n }\r\n\r\n function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n }\r\n\r\n function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n }\r\n\r\n function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n }\r\n\r\n function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n }\r\n\r\n function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n }\r\n\r\n function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n }\r\n\r\n function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n };\r\n\r\n function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n }\r\n\r\n function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n }\r\n\r\n function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n }\r\n\r\n function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n }\r\n\r\n function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n };\r\n\r\n function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n }\r\n\r\n function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Animations used by the Material datepicker.\n * @docs-private\n */\n var matDatepickerAnimations = {\n /** Transforms the height of the datepicker's calendar. */\n transformPanel: animations.trigger('transformPanel', [\n animations.state('void', animations.style({\n opacity: 0,\n transform: 'scale(1, 0.8)'\n })),\n animations.transition('void => enter', animations.animate('120ms cubic-bezier(0, 0, 0.2, 1)', animations.style({\n opacity: 1,\n transform: 'scale(1, 1)'\n }))),\n animations.transition('* => void', animations.animate('100ms linear', animations.style({ opacity: 0 })))\n ]),\n /** Fades in the content of the calendar. */\n fadeInCalendar: animations.trigger('fadeInCalendar', [\n animations.state('void', animations.style({ opacity: 0 })),\n animations.state('enter', animations.style({ opacity: 1 })),\n // TODO(crisbeto): this animation should be removed since it isn't quite on spec, but we\n // need to keep it until #12440 gets in, otherwise the exit animation will look glitchy.\n animations.transition('void => *', animations.animate('120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)'))\n ])\n };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Used to generate a unique ID for each datepicker instance. */\n var datepickerUid = 0;\n /** Injection token that determines the scroll handling while the calendar is open. */\n var MAT_DATEPICKER_SCROLL_STRATEGY = new i0.InjectionToken('mat-datepicker-scroll-strategy');\n /** @docs-private */\n function MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY(overlay) {\n return function () { return overlay.scrollStrategies.reposition(); };\n }\n /** @docs-private */\n var MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = {\n provide: MAT_DATEPICKER_SCROLL_STRATEGY,\n deps: [overlay.Overlay],\n useFactory: MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,\n };\n // Boilerplate for applying mixins to MatDatepickerContent.\n /** @docs-private */\n var MatDatepickerContentBase = /** @class */ (function () {\n function MatDatepickerContentBase(_elementRef) {\n this._elementRef = _elementRef;\n }\n return MatDatepickerContentBase;\n }());\n var _MatDatepickerContentMixinBase = core.mixinColor(MatDatepickerContentBase);\n /**\n * Component used as the content for the datepicker dialog and popup. We use this instead of using\n * MatCalendar directly as the content so we can control the initial focus. This also gives us a\n * place to put additional features of the popup that are not part of the calendar itself in the\n * future. (e.g. confirmation buttons).\n * @docs-private\n */\n var MatDatepickerContent = /** @class */ (function (_super) {\n __extends(MatDatepickerContent, _super);\n function MatDatepickerContent(elementRef, \n /**\n * @deprecated `_changeDetectorRef` parameter to become required.\n * @breaking-change 11.0.0\n */\n _changeDetectorRef) {\n var _this = _super.call(this, elementRef) || this;\n _this._changeDetectorRef = _changeDetectorRef;\n /** Current state of the animation. */\n _this._animationState = 'enter';\n /** Emits when an animation has finished. */\n _this._animationDone = new rxjs.Subject();\n return _this;\n }\n MatDatepickerContent.prototype.ngAfterViewInit = function () {\n this._calendar.focusActiveCell();\n };\n MatDatepickerContent.prototype.ngOnDestroy = function () {\n this._animationDone.complete();\n };\n MatDatepickerContent.prototype._startExitAnimation = function () {\n this._animationState = 'void';\n // @breaking-change 11.0.0 Remove null check for `_changeDetectorRef`.\n if (this._changeDetectorRef) {\n this._changeDetectorRef.markForCheck();\n }\n };\n MatDatepickerContent.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-datepicker-content',\n template: \"<mat-calendar cdkTrapFocus\\n [id]=\\\"datepicker.id\\\"\\n [ngClass]=\\\"datepicker.panelClass\\\"\\n [startAt]=\\\"datepicker.startAt\\\"\\n [startView]=\\\"datepicker.startView\\\"\\n [minDate]=\\\"datepicker._minDate\\\"\\n [maxDate]=\\\"datepicker._maxDate\\\"\\n [dateFilter]=\\\"datepicker._dateFilter\\\"\\n [headerComponent]=\\\"datepicker.calendarHeaderComponent\\\"\\n [selected]=\\\"datepicker._selected\\\"\\n [dateClass]=\\\"datepicker.dateClass\\\"\\n [@fadeInCalendar]=\\\"'enter'\\\"\\n (selectedChange)=\\\"datepicker.select($event)\\\"\\n (yearSelected)=\\\"datepicker._selectYear($event)\\\"\\n (monthSelected)=\\\"datepicker._selectMonth($event)\\\"\\n (_userSelection)=\\\"datepicker.close()\\\">\\n</mat-calendar>\\n\",\n host: {\n 'class': 'mat-datepicker-content',\n '[@transformPanel]': '_animationState',\n '(@transformPanel.done)': '_animationDone.next()',\n '[class.mat-datepicker-content-touch]': 'datepicker.touchUi',\n },\n animations: [\n matDatepickerAnimations.transformPanel,\n matDatepickerAnimations.fadeInCalendar,\n ],\n exportAs: 'matDatepickerContent',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n inputs: ['color'],\n 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}@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\"]\n }] }\n ];\n /** @nocollapse */\n MatDatepickerContent.ctorParameters = function () { return [\n { type: i0.ElementRef },\n { type: i0.ChangeDetectorRef }\n ]; };\n MatDatepickerContent.propDecorators = {\n _calendar: [{ type: i0.ViewChild, args: [MatCalendar,] }]\n };\n return MatDatepickerContent;\n }(_MatDatepickerContentMixinBase));\n // TODO(mmalerba): We use a component instead of a directive here so the user can use implicit\n // template reference variables (e.g. #d vs #d=\"matDatepicker\"). We can change this to a directive\n // if angular adds support for `exportAs: '$implicit'` on directives.\n /** Component responsible for managing the datepicker popup/dialog. */\n var MatDatepicker = /** @class */ (function () {\n function MatDatepicker(_dialog, _overlay, _ngZone, _viewContainerRef, scrollStrategy, _dateAdapter, _dir, _document) {\n this._dialog = _dialog;\n this._overlay = _overlay;\n this._ngZone = _ngZone;\n this._viewContainerRef = _viewContainerRef;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._document = _document;\n /** The view that the calendar should start in. */\n this.startView = 'month';\n this._touchUi = false;\n /**\n * Emits selected year in multiyear view.\n * This doesn't imply a change on the selected date.\n */\n this.yearSelected = new i0.EventEmitter();\n /**\n * Emits selected month in year view.\n * This doesn't imply a change on the selected date.\n */\n this.monthSelected = new i0.EventEmitter();\n /** Emits when the datepicker has been opened. */\n this.openedStream = new i0.EventEmitter();\n /** Emits when the datepicker has been closed. */\n this.closedStream = new i0.EventEmitter();\n this._opened = false;\n /** The id for the datepicker calendar. */\n this.id = \"mat-datepicker-\" + datepickerUid++;\n this._validSelected = null;\n /** The element that was focused before the datepicker was opened. */\n this._focusedElementBeforeOpen = null;\n /** Subscription to value changes in the associated input element. */\n this._inputSubscription = rxjs.Subscription.EMPTY;\n /** Emits when the datepicker is disabled. */\n this._disabledChange = new rxjs.Subject();\n /** Emits new selected date when selected date changes. */\n this._selectedChanged = new rxjs.Subject();\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n this._scrollStrategy = scrollStrategy;\n }\n Object.defineProperty(MatDatepicker.prototype, \"startAt\", {\n /** The date to open the calendar to initially. */\n get: function () {\n // If an explicit startAt is set we start there, otherwise we start at whatever the currently\n // selected value is.\n return this._startAt || (this._datepickerInput ? this._datepickerInput.value : null);\n },\n set: function (value) {\n this._startAt = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"color\", {\n /** Color palette to use on the datepicker's calendar. */\n get: function () {\n return this._color ||\n (this._datepickerInput ? this._datepickerInput._getThemePalette() : undefined);\n },\n set: function (value) {\n this._color = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"touchUi\", {\n /**\n * Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather\n * than a popup and elements have more padding to allow for bigger touch targets.\n */\n get: function () { return this._touchUi; },\n set: function (value) {\n this._touchUi = coercion.coerceBooleanProperty(value);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"disabled\", {\n /** Whether the datepicker pop-up should be disabled. */\n get: function () {\n return this._disabled === undefined && this._datepickerInput ?\n this._datepickerInput.disabled : !!this._disabled;\n },\n set: function (value) {\n var newValue = coercion.coerceBooleanProperty(value);\n if (newValue !== this._disabled) {\n this._disabled = newValue;\n this._disabledChange.next(newValue);\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"opened\", {\n /** Whether the calendar is open. */\n get: function () { return this._opened; },\n set: function (value) { value ? this.open() : this.close(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"_selected\", {\n /** The currently selected date. */\n get: function () { return this._validSelected; },\n set: function (value) { this._validSelected = value; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"_minDate\", {\n /** The minimum selectable date. */\n get: function () {\n return this._datepickerInput && this._datepickerInput.min;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"_maxDate\", {\n /** The maximum selectable date. */\n get: function () {\n return this._datepickerInput && this._datepickerInput.max;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"_dateFilter\", {\n get: function () {\n return this._datepickerInput && this._datepickerInput._dateFilter;\n },\n enumerable: true,\n configurable: true\n });\n MatDatepicker.prototype.ngOnDestroy = function () {\n this._destroyPopup();\n this.close();\n this._inputSubscription.unsubscribe();\n this._disabledChange.complete();\n };\n /** Selects the given date */\n MatDatepicker.prototype.select = function (date) {\n var oldValue = this._selected;\n this._selected = date;\n if (!this._dateAdapter.sameDate(oldValue, this._selected)) {\n this._selectedChanged.next(date);\n }\n };\n /** Emits the selected year in multiyear view */\n MatDatepicker.prototype._selectYear = function (normalizedYear) {\n this.yearSelected.emit(normalizedYear);\n };\n /** Emits selected month in year view */\n MatDatepicker.prototype._selectMonth = function (normalizedMonth) {\n this.monthSelected.emit(normalizedMonth);\n };\n /**\n * Register an input with this datepicker.\n * @param input The datepicker input to register with this datepicker.\n */\n MatDatepicker.prototype._registerInput = function (input) {\n var _this = this;\n if (this._datepickerInput) {\n throw Error('A MatDatepicker can only be associated with a single input.');\n }\n this._datepickerInput = input;\n this._inputSubscription =\n this._datepickerInput._valueChange.subscribe(function (value) { return _this._selected = value; });\n };\n /** Open the calendar. */\n MatDatepicker.prototype.open = function () {\n if (this._opened || this.disabled) {\n return;\n }\n if (!this._datepickerInput) {\n throw Error('Attempted to open an MatDatepicker with no associated input.');\n }\n if (this._document) {\n this._focusedElementBeforeOpen = this._document.activeElement;\n }\n this.touchUi ? this._openAsDialog() : this._openAsPopup();\n this._opened = true;\n this.openedStream.emit();\n };\n /** Close the calendar. */\n MatDatepicker.prototype.close = function () {\n var _this = this;\n if (!this._opened) {\n return;\n }\n if (this._popupComponentRef && this._popupRef) {\n var instance = this._popupComponentRef.instance;\n instance._startExitAnimation();\n instance._animationDone.pipe(operators.take(1)).subscribe(function () { return _this._destroyPopup(); });\n }\n if (this._dialogRef) {\n this._dialogRef.close();\n this._dialogRef = null;\n }\n var completeClose = function () {\n // The `_opened` could've been reset already if\n // we got two events in quick succession.\n if (_this._opened) {\n _this._opened = false;\n _this.closedStream.emit();\n _this._focusedElementBeforeOpen = null;\n }\n };\n if (this._focusedElementBeforeOpen &&\n typeof this._focusedElementBeforeOpen.focus === 'function') {\n // Because IE moves focus asynchronously, we can't count on it being restored before we've\n // marked the datepicker as closed. If the event fires out of sequence and the element that\n // we're refocusing opens the datepicker on focus, the user could be stuck with not being\n // able to close the calendar at all. We work around it by making the logic, that marks\n // the datepicker as closed, async as well.\n this._focusedElementBeforeOpen.focus();\n setTimeout(completeClose);\n }\n else {\n completeClose();\n }\n };\n /** Open the calendar as a dialog. */\n MatDatepicker.prototype._openAsDialog = function () {\n var _this = this;\n // Usually this would be handled by `open` which ensures that we can only have one overlay\n // open at a time, however since we reset the variables in async handlers some overlays\n // may slip through if the user opens and closes multiple times in quick succession (e.g.\n // by holding down the enter key).\n if (this._dialogRef) {\n this._dialogRef.close();\n }\n this._dialogRef = this._dialog.open(MatDatepickerContent, {\n direction: this._dir ? this._dir.value : 'ltr',\n viewContainerRef: this._viewContainerRef,\n panelClass: 'mat-datepicker-dialog',\n // These values are all the same as the defaults, but we set them explicitly so that the\n // datepicker dialog behaves consistently even if the user changed the defaults.\n hasBackdrop: true,\n disableClose: false,\n width: '',\n height: '',\n minWidth: '',\n minHeight: '',\n maxWidth: '80vw',\n maxHeight: '',\n position: {},\n autoFocus: true,\n restoreFocus: true\n });\n this._dialogRef.afterClosed().subscribe(function () { return _this.close(); });\n this._dialogRef.componentInstance.datepicker = this;\n this._dialogRef.componentInstance.color = this.color;\n };\n /** Open the calendar as a popup. */\n MatDatepicker.prototype._openAsPopup = function () {\n var _this = this;\n var portal$1 = new portal.ComponentPortal(MatDatepickerContent, this._viewContainerRef);\n this._destroyPopup();\n this._createPopup();\n var ref = this._popupComponentRef = this._popupRef.attach(portal$1);\n ref.instance.datepicker = this;\n ref.instance.color = this.color;\n // Update the position once the calendar has rendered.\n this._ngZone.onStable.asObservable().pipe(operators.take(1)).subscribe(function () {\n _this._popupRef.updatePosition();\n });\n };\n /** Create the popup. */\n MatDatepicker.prototype._createPopup = function () {\n var _this = this;\n var overlayConfig = new overlay.OverlayConfig({\n positionStrategy: this._createPopupPositionStrategy(),\n hasBackdrop: true,\n backdropClass: 'mat-overlay-transparent-backdrop',\n direction: this._dir,\n scrollStrategy: this._scrollStrategy(),\n panelClass: 'mat-datepicker-popup',\n });\n this._popupRef = this._overlay.create(overlayConfig);\n this._popupRef.overlayElement.setAttribute('role', 'dialog');\n rxjs.merge(this._popupRef.backdropClick(), this._popupRef.detachments(), this._popupRef.keydownEvents().pipe(operators.filter(function (event) {\n // Closing on alt + up is only valid when there's an input associated with the datepicker.\n return event.keyCode === keycodes.ESCAPE ||\n (_this._datepickerInput && event.altKey && event.keyCode === keycodes.UP_ARROW);\n }))).subscribe(function (event) {\n if (event) {\n event.preventDefault();\n }\n _this.close();\n });\n };\n /** Destroys the current popup overlay. */\n MatDatepicker.prototype._destroyPopup = function () {\n if (this._popupRef) {\n this._popupRef.dispose();\n this._popupRef = this._popupComponentRef = null;\n }\n };\n /** Create the popup PositionStrategy. */\n MatDatepicker.prototype._createPopupPositionStrategy = function () {\n return this._overlay.position()\n .flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin())\n .withTransformOriginOn('.mat-datepicker-content')\n .withFlexibleDimensions(false)\n .withViewportMargin(8)\n .withLockedPosition()\n .withPositions([\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top'\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom'\n },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top'\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom'\n }\n ]);\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatDatepicker.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n MatDatepicker.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-datepicker',\n template: '',\n exportAs: 'matDatepicker',\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n encapsulation: i0.ViewEncapsulation.None\n }] }\n ];\n /** @nocollapse */\n MatDatepicker.ctorParameters = function () { return [\n { type: dialog.MatDialog },\n { type: overlay.Overlay },\n { type: i0.NgZone },\n { type: i0.ViewContainerRef },\n { type: undefined, decorators: [{ type: i0.Inject, args: [MAT_DATEPICKER_SCROLL_STRATEGY,] }] },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: bidi.Directionality, decorators: [{ type: i0.Optional }] },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [common.DOCUMENT,] }] }\n ]; };\n MatDatepicker.propDecorators = {\n calendarHeaderComponent: [{ type: i0.Input }],\n startAt: [{ type: i0.Input }],\n startView: [{ type: i0.Input }],\n color: [{ type: i0.Input }],\n touchUi: [{ type: i0.Input }],\n disabled: [{ type: i0.Input }],\n yearSelected: [{ type: i0.Output }],\n monthSelected: [{ type: i0.Output }],\n panelClass: [{ type: i0.Input }],\n dateClass: [{ type: i0.Input }],\n openedStream: [{ type: i0.Output, args: ['opened',] }],\n closedStream: [{ type: i0.Output, args: ['closed',] }],\n opened: [{ type: i0.Input }]\n };\n return MatDatepicker;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** @docs-private */\n var MAT_DATEPICKER_VALUE_ACCESSOR = {\n provide: forms.NG_VALUE_ACCESSOR,\n useExisting: i0.forwardRef(function () { return MatDatepickerInput; }),\n multi: true\n };\n /** @docs-private */\n var MAT_DATEPICKER_VALIDATORS = {\n provide: forms.NG_VALIDATORS,\n useExisting: i0.forwardRef(function () { return MatDatepickerInput; }),\n multi: true\n };\n /**\n * An event used for datepicker input and change events. We don't always have access to a native\n * input or change event because the event may have been triggered by the user clicking on the\n * calendar popup. For consistency, we always use MatDatepickerInputEvent instead.\n */\n var MatDatepickerInputEvent = /** @class */ (function () {\n function MatDatepickerInputEvent(\n /** Reference to the datepicker input component that emitted the event. */\n target, \n /** Reference to the native input element associated with the datepicker input. */\n targetElement) {\n this.target = target;\n this.targetElement = targetElement;\n this.value = this.target.value;\n }\n return MatDatepickerInputEvent;\n }());\n /** Directive used to connect an input to a MatDatepicker. */\n var MatDatepickerInput = /** @class */ (function () {\n function MatDatepickerInput(_elementRef, _dateAdapter, _dateFormats, _formField) {\n var _this = this;\n this._elementRef = _elementRef;\n this._dateAdapter = _dateAdapter;\n this._dateFormats = _dateFormats;\n this._formField = _formField;\n /** Emits when a `change` event is fired on this `<input>`. */\n this.dateChange = new i0.EventEmitter();\n /** Emits when an `input` event is fired on this `<input>`. */\n this.dateInput = new i0.EventEmitter();\n /** Emits when the value changes (either due to user input or programmatic change). */\n this._valueChange = new i0.EventEmitter();\n /** Emits when the disabled state has changed */\n this._disabledChange = new i0.EventEmitter();\n this._onTouched = function () { };\n this._cvaOnChange = function () { };\n this._validatorOnChange = function () { };\n this._datepickerSubscription = rxjs.Subscription.EMPTY;\n this._localeSubscription = rxjs.Subscription.EMPTY;\n /** The form control validator for whether the input parses. */\n this._parseValidator = function () {\n return _this._lastValueValid ?\n null : { 'matDatepickerParse': { 'text': _this._elementRef.nativeElement.value } };\n };\n /** The form control validator for the min date. */\n this._minValidator = function (control) {\n var controlValue = _this._getValidDateOrNull(_this._dateAdapter.deserialize(control.value));\n return (!_this.min || !controlValue ||\n _this._dateAdapter.compareDate(_this.min, controlValue) <= 0) ?\n null : { 'matDatepickerMin': { 'min': _this.min, 'actual': controlValue } };\n };\n /** The form control validator for the max date. */\n this._maxValidator = function (control) {\n var controlValue = _this._getValidDateOrNull(_this._dateAdapter.deserialize(control.value));\n return (!_this.max || !controlValue ||\n _this._dateAdapter.compareDate(_this.max, controlValue) >= 0) ?\n null : { 'matDatepickerMax': { 'max': _this.max, 'actual': controlValue } };\n };\n /** The form control validator for the date filter. */\n this._filterValidator = function (control) {\n var controlValue = _this._getValidDateOrNull(_this._dateAdapter.deserialize(control.value));\n return !_this._dateFilter || !controlValue || _this._dateFilter(controlValue) ?\n null : { 'matDatepickerFilter': true };\n };\n /** The combined form control validator for this input. */\n this._validator = forms.Validators.compose([this._parseValidator, this._minValidator, this._maxValidator, this._filterValidator]);\n /** Whether the last value set on the input was valid. */\n this._lastValueValid = false;\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n // Update the displayed date when the locale changes.\n this._localeSubscription = _dateAdapter.localeChanges.subscribe(function () {\n _this.value = _this.value;\n });\n }\n Object.defineProperty(MatDatepickerInput.prototype, \"matDatepicker\", {\n /** The datepicker that this input is associated with. */\n set: function (value) {\n var _this = this;\n if (!value) {\n return;\n }\n this._datepicker = value;\n this._datepicker._registerInput(this);\n this._datepickerSubscription.unsubscribe();\n this._datepickerSubscription = this._datepicker._selectedChanged.subscribe(function (selected) {\n _this.value = selected;\n _this._cvaOnChange(selected);\n _this._onTouched();\n _this.dateInput.emit(new MatDatepickerInputEvent(_this, _this._elementRef.nativeElement));\n _this.dateChange.emit(new MatDatepickerInputEvent(_this, _this._elementRef.nativeElement));\n });\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepickerInput.prototype, \"matDatepickerFilter\", {\n /** Function that can be used to filter out dates within the datepicker. */\n set: function (value) {\n this._dateFilter = value;\n this._validatorOnChange();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepickerInput.prototype, \"value\", {\n /** The value of the input. */\n get: function () { return this._value; },\n set: function (value) {\n value = this._dateAdapter.deserialize(value);\n this._lastValueValid = !value || this._dateAdapter.isValid(value);\n value = this._getValidDateOrNull(value);\n var oldDate = this.value;\n this._value = value;\n this._formatValue(value);\n if (!this._dateAdapter.sameDate(oldDate, value)) {\n this._valueChange.emit(value);\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepickerInput.prototype, \"min\", {\n /** The minimum valid date. */\n get: function () { return this._min; },\n set: function (value) {\n this._min = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n this._validatorOnChange();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepickerInput.prototype, \"max\", {\n /** The maximum valid date. */\n get: function () { return this._max; },\n set: function (value) {\n this._max = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n this._validatorOnChange();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepickerInput.prototype, \"disabled\", {\n /** Whether the datepicker-input is disabled. */\n get: function () { return !!this._disabled; },\n set: function (value) {\n var newValue = coercion.coerceBooleanProperty(value);\n var element = this._elementRef.nativeElement;\n if (this._disabled !== newValue) {\n this._disabled = newValue;\n this._disabledChange.emit(newValue);\n }\n // We need to null check the `blur` method, because it's undefined during SSR.\n if (newValue && element.blur) {\n // Normally, native input elements automatically blur if they turn disabled. This behavior\n // is problematic, because it would mean that it triggers another change detection cycle,\n // which then causes a changed after checked error if the input element was focused before.\n element.blur();\n }\n },\n enumerable: true,\n configurable: true\n });\n MatDatepickerInput.prototype.ngOnDestroy = function () {\n this._datepickerSubscription.unsubscribe();\n this._localeSubscription.unsubscribe();\n this._valueChange.complete();\n this._disabledChange.complete();\n };\n /** @docs-private */\n MatDatepickerInput.prototype.registerOnValidatorChange = function (fn) {\n this._validatorOnChange = fn;\n };\n /** @docs-private */\n MatDatepickerInput.prototype.validate = function (c) {\n return this._validator ? this._validator(c) : null;\n };\n /**\n * @deprecated\n * @breaking-change 8.0.0 Use `getConnectedOverlayOrigin` instead\n */\n MatDatepickerInput.prototype.getPopupConnectionElementRef = function () {\n return this.getConnectedOverlayOrigin();\n };\n /**\n * Gets the element that the datepicker popup should be connected to.\n * @return The element to connect the popup to.\n */\n MatDatepickerInput.prototype.getConnectedOverlayOrigin = function () {\n return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;\n };\n // Implemented as part of ControlValueAccessor.\n MatDatepickerInput.prototype.writeValue = function (value) {\n this.value = value;\n };\n // Implemented as part of ControlValueAccessor.\n MatDatepickerInput.prototype.registerOnChange = function (fn) {\n this._cvaOnChange = fn;\n };\n // Implemented as part of ControlValueAccessor.\n MatDatepickerInput.prototype.registerOnTouched = function (fn) {\n this._onTouched = fn;\n };\n // Implemented as part of ControlValueAccessor.\n MatDatepickerInput.prototype.setDisabledState = function (isDisabled) {\n this.disabled = isDisabled;\n };\n MatDatepickerInput.prototype._onKeydown = function (event) {\n var isAltDownArrow = event.altKey && event.keyCode === keycodes.DOWN_ARROW;\n if (this._datepicker && isAltDownArrow && !this._elementRef.nativeElement.readOnly) {\n this._datepicker.open();\n event.preventDefault();\n }\n };\n MatDatepickerInput.prototype._onInput = function (value) {\n var lastValueWasValid = this._lastValueValid;\n var date = this._dateAdapter.parse(value, this._dateFormats.parse.dateInput);\n this._lastValueValid = !date || this._dateAdapter.isValid(date);\n date = this._getValidDateOrNull(date);\n if (!this._dateAdapter.sameDate(date, this._value)) {\n this._value = date;\n this._cvaOnChange(date);\n this._valueChange.emit(date);\n this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));\n }\n else if (lastValueWasValid !== this._lastValueValid) {\n this._validatorOnChange();\n }\n };\n MatDatepickerInput.prototype._onChange = function () {\n this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));\n };\n /** Returns the palette used by the input's form field, if any. */\n MatDatepickerInput.prototype._getThemePalette = function () {\n return this._formField ? this._formField.color : undefined;\n };\n /** Handles blur events on the input. */\n MatDatepickerInput.prototype._onBlur = function () {\n // Reformat the input only if we have a valid value.\n if (this.value) {\n this._formatValue(this.value);\n }\n this._onTouched();\n };\n /** Formats a value and sets it on the input element. */\n MatDatepickerInput.prototype._formatValue = function (value) {\n this._elementRef.nativeElement.value =\n value ? this._dateAdapter.format(value, this._dateFormats.display.dateInput) : '';\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatDatepickerInput.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n MatDatepickerInput.decorators = [\n { type: i0.Directive, args: [{\n selector: 'input[matDatepicker]',\n providers: [\n MAT_DATEPICKER_VALUE_ACCESSOR,\n MAT_DATEPICKER_VALIDATORS,\n { provide: input.MAT_INPUT_VALUE_ACCESSOR, useExisting: MatDatepickerInput },\n ],\n host: {\n '[attr.aria-haspopup]': '_datepicker ? \"dialog\" : null',\n '[attr.aria-owns]': '(_datepicker?.opened && _datepicker.id) || null',\n '[attr.min]': 'min ? _dateAdapter.toIso8601(min) : null',\n '[attr.max]': 'max ? _dateAdapter.toIso8601(max) : null',\n '[disabled]': 'disabled',\n '(input)': '_onInput($event.target.value)',\n '(change)': '_onChange()',\n '(blur)': '_onBlur()',\n '(keydown)': '_onKeydown($event)',\n },\n exportAs: 'matDatepickerInput',\n },] }\n ];\n /** @nocollapse */\n MatDatepickerInput.ctorParameters = function () { return [\n { type: i0.ElementRef },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [core.MAT_DATE_FORMATS,] }] },\n { type: formField.MatFormField, decorators: [{ type: i0.Optional }] }\n ]; };\n MatDatepickerInput.propDecorators = {\n matDatepicker: [{ type: i0.Input }],\n matDatepickerFilter: [{ type: i0.Input }],\n value: [{ type: i0.Input }],\n min: [{ type: i0.Input }],\n max: [{ type: i0.Input }],\n disabled: [{ type: i0.Input }],\n dateChange: [{ type: i0.Output }],\n dateInput: [{ type: i0.Output }]\n };\n return MatDatepickerInput;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Can be used to override the icon of a `matDatepickerToggle`. */\n var MatDatepickerToggleIcon = /** @class */ (function () {\n function MatDatepickerToggleIcon() {\n }\n MatDatepickerToggleIcon.decorators = [\n { type: i0.Directive, args: [{\n selector: '[matDatepickerToggleIcon]'\n },] }\n ];\n return MatDatepickerToggleIcon;\n }());\n var MatDatepickerToggle = /** @class */ (function () {\n function MatDatepickerToggle(_intl, _changeDetectorRef, defaultTabIndex) {\n this._intl = _intl;\n this._changeDetectorRef = _changeDetectorRef;\n this._stateChanges = rxjs.Subscription.EMPTY;\n var parsedTabIndex = Number(defaultTabIndex);\n this.tabIndex = (parsedTabIndex || parsedTabIndex === 0) ? parsedTabIndex : null;\n }\n Object.defineProperty(MatDatepickerToggle.prototype, \"disabled\", {\n /** Whether the toggle button is disabled. */\n get: function () {\n if (this._disabled === undefined && this.datepicker) {\n return this.datepicker.disabled;\n }\n return !!this._disabled;\n },\n set: function (value) {\n this._disabled = coercion.coerceBooleanProperty(value);\n },\n enumerable: true,\n configurable: true\n });\n MatDatepickerToggle.prototype.ngOnChanges = function (changes) {\n if (changes['datepicker']) {\n this._watchStateChanges();\n }\n };\n MatDatepickerToggle.prototype.ngOnDestroy = function () {\n this._stateChanges.unsubscribe();\n };\n MatDatepickerToggle.prototype.ngAfterContentInit = function () {\n this._watchStateChanges();\n };\n MatDatepickerToggle.prototype._open = function (event) {\n if (this.datepicker && !this.disabled) {\n this.datepicker.open();\n event.stopPropagation();\n }\n };\n MatDatepickerToggle.prototype._watchStateChanges = function () {\n var _this = this;\n var datepickerDisabled = this.datepicker ? this.datepicker._disabledChange : rxjs.of();\n var inputDisabled = this.datepicker && this.datepicker._datepickerInput ?\n this.datepicker._datepickerInput._disabledChange : rxjs.of();\n var datepickerToggled = this.datepicker ?\n rxjs.merge(this.datepicker.openedStream, this.datepicker.closedStream) :\n rxjs.of();\n this._stateChanges.unsubscribe();\n this._stateChanges = rxjs.merge(this._intl.changes, datepickerDisabled, inputDisabled, datepickerToggled).subscribe(function () { return _this._changeDetectorRef.markForCheck(); });\n };\n MatDatepickerToggle.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-datepicker-toggle',\n template: \"<button\\n #button\\n mat-icon-button\\n type=\\\"button\\\"\\n [attr.aria-haspopup]=\\\"datepicker ? 'dialog' : null\\\"\\n [attr.aria-label]=\\\"_intl.openCalendarLabel\\\"\\n [attr.tabindex]=\\\"disabled ? -1 : tabIndex\\\"\\n [disabled]=\\\"disabled\\\"\\n [disableRipple]=\\\"disableRipple\\\"\\n (click)=\\\"_open($event)\\\">\\n\\n <svg\\n *ngIf=\\\"!_customIcon\\\"\\n class=\\\"mat-datepicker-toggle-default-icon\\\"\\n viewBox=\\\"0 0 24 24\\\"\\n width=\\\"24px\\\"\\n height=\\\"24px\\\"\\n fill=\\\"currentColor\\\"\\n focusable=\\\"false\\\">\\n <path d=\\\"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z\\\"/>\\n </svg>\\n\\n <ng-content select=\\\"[matDatepickerToggleIcon]\\\"></ng-content>\\n</button>\\n\",\n host: {\n 'class': 'mat-datepicker-toggle',\n // Always set the tabindex to -1 so that it doesn't overlap with any custom tabindex the\n // consumer may have provided, while still being able to receive focus.\n '[attr.tabindex]': 'disabled ? null : -1',\n '[class.mat-datepicker-toggle-active]': 'datepicker && datepicker.opened',\n '[class.mat-accent]': 'datepicker && datepicker.color === \"accent\"',\n '[class.mat-warn]': 'datepicker && datepicker.color === \"warn\"',\n '(focus)': '_button.focus()',\n },\n exportAs: 'matDatepickerToggle',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n styles: [\".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\\n\"]\n }] }\n ];\n /** @nocollapse */\n MatDatepickerToggle.ctorParameters = function () { return [\n { type: MatDatepickerIntl },\n { type: i0.ChangeDetectorRef },\n { type: String, decorators: [{ type: i0.Attribute, args: ['tabindex',] }] }\n ]; };\n MatDatepickerToggle.propDecorators = {\n datepicker: [{ type: i0.Input, args: ['for',] }],\n tabIndex: [{ type: i0.Input }],\n disabled: [{ type: i0.Input }],\n disableRipple: [{ type: i0.Input }],\n _customIcon: [{ type: i0.ContentChild, args: [MatDatepickerToggleIcon,] }],\n _button: [{ type: i0.ViewChild, args: ['button',] }]\n };\n return MatDatepickerToggle;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var MatDatepickerModule = /** @class */ (function () {\n function MatDatepickerModule() {\n }\n MatDatepickerModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [\n common.CommonModule,\n button.MatButtonModule,\n dialog.MatDialogModule,\n overlay.OverlayModule,\n a11y.A11yModule,\n portal.PortalModule,\n ],\n exports: [\n MatCalendar,\n MatCalendarBody,\n MatDatepicker,\n MatDatepickerContent,\n MatDatepickerInput,\n MatDatepickerToggle,\n MatDatepickerToggleIcon,\n MatMonthView,\n MatYearView,\n MatMultiYearView,\n MatCalendarHeader,\n ],\n declarations: [\n MatCalendar,\n MatCalendarBody,\n MatDatepicker,\n MatDatepickerContent,\n MatDatepickerInput,\n MatDatepickerToggle,\n MatDatepickerToggleIcon,\n MatMonthView,\n MatYearView,\n MatMultiYearView,\n MatCalendarHeader,\n ],\n providers: [\n MatDatepickerIntl,\n MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,\n ],\n entryComponents: [\n MatDatepickerContent,\n MatCalendarHeader,\n ]\n },] }\n ];\n return MatDatepickerModule;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.MAT_DATEPICKER_SCROLL_STRATEGY = MAT_DATEPICKER_SCROLL_STRATEGY;\n exports.MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY = MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY;\n exports.MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER;\n exports.MAT_DATEPICKER_VALIDATORS = MAT_DATEPICKER_VALIDATORS;\n exports.MAT_DATEPICKER_VALUE_ACCESSOR = MAT_DATEPICKER_VALUE_ACCESSOR;\n exports.MatCalendar = MatCalendar;\n exports.MatCalendarBody = MatCalendarBody;\n exports.MatCalendarCell = MatCalendarCell;\n exports.MatCalendarHeader = MatCalendarHeader;\n exports.MatDatepicker = MatDatepicker;\n exports.MatDatepickerContent = MatDatepickerContent;\n exports.MatDatepickerInput = MatDatepickerInput;\n exports.MatDatepickerInputEvent = MatDatepickerInputEvent;\n exports.MatDatepickerIntl = MatDatepickerIntl;\n exports.MatDatepickerModule = MatDatepickerModule;\n exports.MatDatepickerToggle = MatDatepickerToggle;\n exports.MatDatepickerToggleIcon = MatDatepickerToggleIcon;\n exports.MatMonthView = MatMonthView;\n exports.MatMultiYearView = MatMultiYearView;\n exports.MatYearView = MatYearView;\n exports.matDatepickerAnimations = matDatepickerAnimations;\n exports.yearsPerPage = yearsPerPage;\n exports.yearsPerRow = yearsPerRow;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=material-datepicker.umd.js.map\n"]}
1
+ {"version":3,"sources":["src/material/material-datepicker.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","material","datepicker","cdk","a11y","overlay","portal","common","core","button","dialog","scrolling","rxjs","keycodes","bidi","operators","coercion","animations","forms","formField","input","this","i0","createMissingDateImplError","provider","Error","MatDatepickerIntl","changes","Subject","calendarLabel","openCalendarLabel","prevMonthLabel","nextMonthLabel","prevYearLabel","nextYearLabel","prevMultiYearLabel","nextMultiYearLabel","switchToMonthViewLabel","switchToMultiYearViewLabel","prototype","formatYearRange","start","end","decorators","type","Injectable","args","providedIn","ɵprov","ɵɵdefineInjectable","MatDatepickerIntl_Factory","token","MatCalendarCell","value","displayValue","ariaLabel","enabled","cssClasses","MatCalendarBody","_elementRef","_ngZone","numCols","activeCell","cellAspectRatio","selectedValueChange","EventEmitter","_cellClicked","cell","emit","ngOnChanges","columnChanges","rows","_firstRowOffset","length","_cellPadding","_cellWidth","_isActiveCell","rowIndex","colIndex","cellNumber","_focusActiveCell","_this","runOutsideAngular","onStable","asObservable","pipe","take","subscribe","nativeElement","querySelector","focus","Component","selector","template","host","class","role","aria-readonly","exportAs","encapsulation","ViewEncapsulation","None","changeDetection","ChangeDetectionStrategy","OnPush","styles","ctorParameters","ElementRef","NgZone","propDecorators","label","Input","todayValue","selectedValue","labelMinRequiredCells","Output","MatMonthView","_changeDetectorRef","_dateFormats","_dateAdapter","_dir","_rerenderSubscription","Subscription","EMPTY","selectedChange","_userSelection","activeDateChange","_activeDate","today","Object","defineProperty","get","set","oldActiveDate","validDate","_getValidDateOrNull","deserialize","clampDate","minDate","maxDate","_hasSameMonthAndYear","_init","enumerable","configurable","_selected","_selectedDate","_getDateInCurrentMonth","_minDate","_maxDate","ngAfterContentInit","localeChanges","startWith","ngOnDestroy","unsubscribe","_dateSelected","date","selectedYear","getYear","activeDate","selectedMonth","getMonth","selectedDate","createDate","_handleCalendarBodyKeydown","event","isRtl","_isRtl","keyCode","LEFT_ARROW","addCalendarDays","RIGHT_ARROW","UP_ARROW","DOWN_ARROW","HOME","getDate","END","getNumDaysInMonth","PAGE_UP","altKey","addCalendarYears","addCalendarMonths","PAGE_DOWN","ENTER","SPACE","dateFilter","preventDefault","compareDate","selected","_todayDate","_monthLabel","getMonthNames","toLocaleUpperCase","firstOfMonth","_firstWeekOffset","getDayOfWeek","getFirstDayOfWeek","_initWeekdays","_createWeekCells","markForCheck","_matCalendarBody","firstDayOfWeek","narrowWeekdays","getDayOfWeekNames","weekdays","map","long","i","narrow","_weekdays","slice","concat","daysInMonth","dateNames","getDateNames","_weeks","push","_shouldEnableDate","format","display","dateA11yLabel","cellClasses","dateClass","undefined","d1","d2","obj","isDateInstance","isValid","ChangeDetectorRef","Optional","Inject","MAT_DATE_FORMATS","DateAdapter","Directionality","ViewChild","yearsPerPage","MatMultiYearView","yearSelected","isSameMultiYearView","_selectedYear","_todayYear","minYearOfPage","getActiveOffset","_years","row","year","_createCellForYear","_yearSelected","month","Math","min","_getActiveCell","yearName","getYearName","_shouldEnableYear","dateAdapter","date1","date2","year1","year2","startingYear","getStartingYear","floor","euclideanModulo","a","b","MatYearView","monthSelected","_selectedMonth","_getMonthInCurrentYear","_monthSelected","normalizedDate","_todayMonth","_yearLabel","monthNames","_months","_createCellForMonth","monthName","monthYearA11yLabel","_shouldEnableMonth","activeYear","_isYearAndMonthAfterMaxDate","_isYearAndMonthBeforeMinDate","maxYear","maxMonth","minYear","minMonth","MatCalendarHeader","_intl","calendar","changeDetectorRef","stateChanges","currentView","monthYearLabel","maxYearOfPage","minYearName","maxYearName","multi-year","currentPeriodClicked","previousClicked","nextClicked","previousEnabled","_isSameView","nextEnabled","MatCalendar","forwardRef","_moveFocusOnNextTick","startView","_intlChanges","next","_startAt","_clampedActiveDate","_currentView","_calendarHeaderPortal","ComponentPortal","headerComponent","startAt","ngAfterViewChecked","focusActiveCell","complete","change","firstChange","view","_getCurrentViewComponent","detectChanges","updateTodaysDate","monthView","yearView","multiYearView","sameDate","_yearSelectedInMultiYearView","normalizedYear","_monthSelectedInYearView","normalizedMonth","_userSelected","_goToDateInView","extendStatics","d","setPrototypeOf","__proto__","Array","p","hasOwnProperty","matDatepickerAnimations","transformPanel","trigger","state","style","opacity","transform","transition","animate","fadeInCalendar","datepickerUid","MAT_DATEPICKER_SCROLL_STRATEGY","InjectionToken","MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY","scrollStrategies","reposition","MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER","provide","deps","Overlay","useFactory","MatDatepickerContent","_super","elementRef","call","_animationState","_animationDone","__extends","__","constructor","create","ngAfterViewInit","_calendar","_startExitAnimation","[@transformPanel]","(@transformPanel.done)","[class.mat-datepicker-content-touch]","inputs","mixinColor","MatDatepickerContentBase","MatDatepicker","_dialog","_overlay","_viewContainerRef","scrollStrategy","_document","_touchUi","openedStream","closedStream","_opened","id","_validSelected","_focusedElementBeforeOpen","_inputSubscription","_disabledChange","_selectedChanged","_scrollStrategy","_datepickerInput","_color","_getThemePalette","coerceBooleanProperty","_disabled","disabled","newValue","open","close","max","_dateFilter","_destroyPopup","select","oldValue","_selectYear","_selectMonth","_registerInput","_valueChange","activeElement","touchUi","_openAsDialog","_openAsPopup","_popupComponentRef","_popupRef","instance","_dialogRef","completeClose","setTimeout","direction","viewContainerRef","panelClass","hasBackdrop","disableClose","width","height","minWidth","minHeight","maxWidth","maxHeight","position","autoFocus","restoreFocus","afterClosed","componentInstance","color","portal$1","_createPopup","ref","attach","updatePosition","overlayConfig","OverlayConfig","positionStrategy","_createPopupPositionStrategy","backdropClass","overlayElement","setAttribute","merge","backdropClick","detachments","keydownEvents","filter","ESCAPE","dispose","flexibleConnectedTo","getConnectedOverlayOrigin","withTransformOriginOn","withFlexibleDimensions","withViewportMargin","withLockedPosition","withPositions","originX","originY","overlayX","overlayY","MatDialog","ViewContainerRef","DOCUMENT","calendarHeaderComponent","opened","MAT_DATEPICKER_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","useExisting","MatDatepickerInput","multi","MAT_DATEPICKER_VALIDATORS","NG_VALIDATORS","MatDatepickerInputEvent","target","targetElement","_formField","dateChange","dateInput","_onTouched","_cvaOnChange","_validatorOnChange","_datepickerSubscription","_localeSubscription","_parseValidator","_lastValueValid","matDatepickerParse","text","_minValidator","control","controlValue","matDatepickerMin","actual","_maxValidator","matDatepickerMax","_filterValidator","matDatepickerFilter","_validator","Validators","compose","_datepicker","_value","oldDate","_formatValue","_min","_max","element","_isInitialized","blur","registerOnValidatorChange","fn","validate","c","getPopupConnectionElementRef","writeValue","registerOnChange","registerOnTouched","setDisabledState","isDisabled","_onKeydown","readOnly","_onInput","lastValueWasValid","parse","_onChange","_onBlur","Directive","providers","MAT_INPUT_VALUE_ACCESSOR","[attr.aria-haspopup]","[attr.aria-owns]","[attr.min]","[attr.max]","[disabled]","(input)","(change)","(blur)","(keydown)","MatFormField","MAT_FORM_FIELD","matDatepicker","MatDatepickerToggleIcon","MatDatepickerToggle","defaultTabIndex","_stateChanges","parsedTabIndex","Number","tabIndex","_watchStateChanges","_open","stopPropagation","datepickerDisabled","of","inputDisabled","datepickerToggled","[attr.tabindex]","[class.mat-datepicker-toggle-active]","[class.mat-accent]","[class.mat-warn]","(focus)","String","Attribute","disableRipple","_customIcon","ContentChild","_button","MatDatepickerModule","NgModule","imports","CommonModule","MatButtonModule","MatDialogModule","OverlayModule","A11yModule","PortalModule","CdkScrollableModule","declarations","entryComponents","yearsPerRow"],"mappings":"CAAC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,qBAAsBA,QAAQ,wBAAyBA,QAAQ,uBAAwBA,QAAQ,mBAAoBA,QAAQ,iBAAkBA,QAAQ,4BAA6BA,QAAQ,4BAA6BA,QAAQ,0BAA2BA,QAAQ,0BAA2BA,QAAQ,QAASA,QAAQ,yBAA0BA,QAAQ,qBAAsBA,QAAQ,kBAAmBA,QAAQ,yBAA0BA,QAAQ,uBAAwBA,QAAQ,kBAAmBA,QAAQ,gCAAiCA,QAAQ,4BAC7lB,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,+BAAgC,CAAC,UAAW,oBAAqB,uBAAwB,sBAAuB,kBAAmB,gBAAiB,2BAA4B,2BAA4B,yBAA0B,yBAA0B,OAAQ,wBAAyB,oBAAqB,iBAAkB,wBAAyB,sBAAuB,iBAAkB,+BAAgC,2BAA4BJ,GACheA,IAAzBD,EAASA,GAAUO,MAAsBC,GAAKR,EAAOQ,IAAM,GAAIR,EAAOQ,G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AAOgkB,aACP9jB,EAAO+jB,gBACP9jB,EAAO+jB,gBACPpkB,EAAQqkB,cACRtkB,EAAKukB,WACLrkB,EAAOskB,cAEXllB,QAAS,CACLiB,EAAUkkB,oBACV7R,EACAtP,EACAqU,EACAnB,EACAuH,EACAyE,EACAD,EACAvb,EACAsJ,EACA9B,EACAmD,GAEJ+S,aAAc,CACV9R,EACAtP,EACAqU,EACAnB,EACAuH,EACAyE,EACAD,EACAvb,EACAsJ,EACA9B,EACAmD,GAEJ8P,UAAW,CACPngB,EACA6U,GAEJwO,gBAAiB,CACbnO,EACA7E,OAIbqS,EAlD6B;;;;;;;;AAiExC1kB,EAAQwW,+BAAiCA,EACzCxW,EAAQ0W,uCAAyCA,EACjD1W,EAAQ6W,gDAAkDA,EAC1D7W,EAAQ2e,0BAA4BA,EACpC3e,EAAQse,8BAAgCA,EACxCte,EAAQsT,YAAcA,EACtBtT,EAAQgE,gBAAkBA,EAC1BhE,EAAQ0D,gBAAkBA,EAC1B1D,EAAQqS,kBAAoBA,EAC5BrS,EAAQqY,cAAgBA,EACxBrY,EAAQkX,qBAAuBA,EAC/BlX,EAAQye,mBAAqBA,EAC7Bze,EAAQ6e,wBAA0BA,EAClC7e,EAAQgC,kBAAoBA,EAC5BhC,EAAQ0kB,oBAAsBA,EAC9B1kB,EAAQkjB,oBAAsBA,EAC9BljB,EAAQijB,wBAA0BA,EAClCjjB,EAAQ0H,aAAeA,EACvB1H,EAAQkP,iBAAmBA,EAC3BlP,EAAQgR,YAAcA,EACtBhR,EAAQ6V,wBAA0BA,EAClC7V,EAAQiP,aAAeA,EACvBjP,EAAQslB,YA5jEU,EA8jElB/c,OAAOC,eAAexI,EAAS,aAAc,CAAE2D,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/common'), require('@angular/core'), require('@angular/material/button'), require('@angular/material/dialog'), require('@angular/cdk/scrolling'), require('@angular/material/core'), require('rxjs'), require('@angular/cdk/keycodes'), require('@angular/cdk/bidi'), require('rxjs/operators'), require('@angular/cdk/coercion'), require('@angular/animations'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input')) :\n typeof define === 'function' && define.amd ? define('@angular/material/datepicker', ['exports', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/common', '@angular/core', '@angular/material/button', '@angular/material/dialog', '@angular/cdk/scrolling', '@angular/material/core', 'rxjs', '@angular/cdk/keycodes', '@angular/cdk/bidi', 'rxjs/operators', '@angular/cdk/coercion', '@angular/animations', '@angular/forms', '@angular/material/form-field', '@angular/material/input'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.datepicker = {}), global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.common, global.ng.core, global.ng.material.button, global.ng.material.dialog, global.ng.cdk.scrolling, global.ng.material.core, global.rxjs, global.ng.cdk.keycodes, global.ng.cdk.bidi, global.rxjs.operators, global.ng.cdk.coercion, global.ng.animations, global.ng.forms, global.ng.material.formField, global.ng.material.input));\n}(this, (function (exports, a11y, overlay, portal, common, i0, button, dialog, scrolling, core, rxjs, keycodes, bidi, operators, coercion, animations, forms, formField, input) { 'use strict';\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** @docs-private */\n function createMissingDateImplError(provider) {\n return Error(\"MatDatepicker: No provider found for \" + provider + \". You must import one of the following \" +\n \"modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a \" +\n \"custom implementation.\");\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Datepicker data that requires internationalization. */\n var MatDatepickerIntl = /** @class */ (function () {\n function MatDatepickerIntl() {\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n */\n this.changes = new rxjs.Subject();\n /** A label for the calendar popup (used by screen readers). */\n this.calendarLabel = 'Calendar';\n /** A label for the button used to open the calendar popup (used by screen readers). */\n this.openCalendarLabel = 'Open calendar';\n /** A label for the previous month button (used by screen readers). */\n this.prevMonthLabel = 'Previous month';\n /** A label for the next month button (used by screen readers). */\n this.nextMonthLabel = 'Next month';\n /** A label for the previous year button (used by screen readers). */\n this.prevYearLabel = 'Previous year';\n /** A label for the next year button (used by screen readers). */\n this.nextYearLabel = 'Next year';\n /** A label for the previous multi-year button (used by screen readers). */\n this.prevMultiYearLabel = 'Previous 20 years';\n /** A label for the next multi-year button (used by screen readers). */\n this.nextMultiYearLabel = 'Next 20 years';\n /** A label for the 'switch to month view' button (used by screen readers). */\n this.switchToMonthViewLabel = 'Choose date';\n /** A label for the 'switch to year view' button (used by screen readers). */\n this.switchToMultiYearViewLabel = 'Choose month and year';\n }\n /** Formats a range of years. */\n MatDatepickerIntl.prototype.formatYearRange = function (start, end) {\n return start + \" \\u2013 \" + end;\n };\n MatDatepickerIntl.decorators = [\n { type: i0.Injectable, args: [{ providedIn: 'root' },] }\n ];\n MatDatepickerIntl.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatDatepickerIntl_Factory() { return new MatDatepickerIntl(); }, token: MatDatepickerIntl, providedIn: \"root\" });\n return MatDatepickerIntl;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * An internal class that represents the data corresponding to a single calendar cell.\n * @docs-private\n */\n var MatCalendarCell = /** @class */ (function () {\n function MatCalendarCell(value, displayValue, ariaLabel, enabled, cssClasses) {\n if (cssClasses === void 0) { cssClasses = {}; }\n this.value = value;\n this.displayValue = displayValue;\n this.ariaLabel = ariaLabel;\n this.enabled = enabled;\n this.cssClasses = cssClasses;\n }\n return MatCalendarCell;\n }());\n /**\n * An internal component used to display calendar data in a table.\n * @docs-private\n */\n var MatCalendarBody = /** @class */ (function () {\n function MatCalendarBody(_elementRef, _ngZone) {\n this._elementRef = _elementRef;\n this._ngZone = _ngZone;\n /** The number of columns in the table. */\n this.numCols = 7;\n /** The cell number of the active cell in the table. */\n this.activeCell = 0;\n /**\n * The aspect ratio (width / height) to use for the cells in the table. This aspect ratio will be\n * maintained even as the table resizes.\n */\n this.cellAspectRatio = 1;\n /** Emits when a new value is selected. */\n this.selectedValueChange = new i0.EventEmitter();\n }\n MatCalendarBody.prototype._cellClicked = function (cell) {\n if (cell.enabled) {\n this.selectedValueChange.emit(cell.value);\n }\n };\n MatCalendarBody.prototype.ngOnChanges = function (changes) {\n var columnChanges = changes['numCols'];\n var _a = this, rows = _a.rows, numCols = _a.numCols;\n if (changes['rows'] || columnChanges) {\n this._firstRowOffset = rows && rows.length && rows[0].length ? numCols - rows[0].length : 0;\n }\n if (changes['cellAspectRatio'] || columnChanges || !this._cellPadding) {\n this._cellPadding = 50 * this.cellAspectRatio / numCols + \"%\";\n }\n if (columnChanges || !this._cellWidth) {\n this._cellWidth = 100 / numCols + \"%\";\n }\n };\n MatCalendarBody.prototype._isActiveCell = function (rowIndex, colIndex) {\n var cellNumber = rowIndex * this.numCols + colIndex;\n // Account for the fact that the first row may not have as many cells.\n if (rowIndex) {\n cellNumber -= this._firstRowOffset;\n }\n return cellNumber == this.activeCell;\n };\n /** Focuses the active cell after the microtask queue is empty. */\n MatCalendarBody.prototype._focusActiveCell = function () {\n var _this = this;\n this._ngZone.runOutsideAngular(function () {\n _this._ngZone.onStable.asObservable().pipe(operators.take(1)).subscribe(function () {\n var activeCell = _this._elementRef.nativeElement.querySelector('.mat-calendar-body-active');\n if (activeCell) {\n activeCell.focus();\n }\n });\n });\n };\n MatCalendarBody.decorators = [\n { type: i0.Component, args: [{\n selector: '[mat-calendar-body]',\n template: \"<!--\\n If there's not enough space in the first row, create a separate label row. We mark this row as\\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\\n-->\\n<tr *ngIf=\\\"_firstRowOffset < labelMinRequiredCells\\\" aria-hidden=\\\"true\\\">\\n <td class=\\\"mat-calendar-body-label\\\"\\n [attr.colspan]=\\\"numCols\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n {{label}}\\n </td>\\n</tr>\\n\\n<!-- Create the first row separately so we can include a special spacer cell. -->\\n<tr *ngFor=\\\"let row of rows; let rowIndex = index\\\" role=\\\"row\\\">\\n <!--\\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\\n percentage of the width (a variant of the trick described here:\\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\\n -->\\n <td *ngIf=\\\"rowIndex === 0 && _firstRowOffset\\\"\\n aria-hidden=\\\"true\\\"\\n class=\\\"mat-calendar-body-label\\\"\\n [attr.colspan]=\\\"_firstRowOffset\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n {{_firstRowOffset >= labelMinRequiredCells ? label : ''}}\\n </td>\\n <td *ngFor=\\\"let item of row; let colIndex = index\\\"\\n role=\\\"gridcell\\\"\\n class=\\\"mat-calendar-body-cell mat-focus-indicator\\\"\\n [ngClass]=\\\"item.cssClasses\\\"\\n [tabindex]=\\\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\\\"\\n [class.mat-calendar-body-disabled]=\\\"!item.enabled\\\"\\n [class.mat-calendar-body-active]=\\\"_isActiveCell(rowIndex, colIndex)\\\"\\n [attr.aria-label]=\\\"item.ariaLabel\\\"\\n [attr.aria-disabled]=\\\"!item.enabled || null\\\"\\n [attr.aria-selected]=\\\"selectedValue === item.value\\\"\\n (click)=\\\"_cellClicked(item)\\\"\\n [style.width]=\\\"_cellWidth\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n role=\\\"button\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n <div class=\\\"mat-calendar-body-cell-content\\\"\\n [class.mat-calendar-body-selected]=\\\"selectedValue === item.value\\\"\\n [class.mat-calendar-body-today]=\\\"todayValue === item.value\\\">\\n {{item.displayValue}}\\n </div>\\n </td>\\n</tr>\\n\",\n host: {\n 'class': 'mat-calendar-body',\n 'role': 'grid',\n 'aria-readonly': 'true'\n },\n exportAs: 'matCalendarBody',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n styles: [\".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\\n\"]\n }] }\n ];\n /** @nocollapse */\n MatCalendarBody.ctorParameters = function () { return [\n { type: i0.ElementRef },\n { type: i0.NgZone }\n ]; };\n MatCalendarBody.propDecorators = {\n label: [{ type: i0.Input }],\n rows: [{ type: i0.Input }],\n todayValue: [{ type: i0.Input }],\n selectedValue: [{ type: i0.Input }],\n labelMinRequiredCells: [{ type: i0.Input }],\n numCols: [{ type: i0.Input }],\n activeCell: [{ type: i0.Input }],\n cellAspectRatio: [{ type: i0.Input }],\n selectedValueChange: [{ type: i0.Output }]\n };\n return MatCalendarBody;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var DAYS_PER_WEEK = 7;\n /**\n * An internal component used to display a single month in the datepicker.\n * @docs-private\n */\n var MatMonthView = /** @class */ (function () {\n function MatMonthView(_changeDetectorRef, _dateFormats, _dateAdapter, _dir) {\n this._changeDetectorRef = _changeDetectorRef;\n this._dateFormats = _dateFormats;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._rerenderSubscription = rxjs.Subscription.EMPTY;\n /** Emits when a new date is selected. */\n this.selectedChange = new i0.EventEmitter();\n /** Emits when any date is selected. */\n this._userSelection = new i0.EventEmitter();\n /** Emits when any date is activated. */\n this.activeDateChange = new i0.EventEmitter();\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n this._activeDate = this._dateAdapter.today();\n }\n Object.defineProperty(MatMonthView.prototype, \"activeDate\", {\n /**\n * The date to display in this month view (everything other than the month and year is ignored).\n */\n get: function () { return this._activeDate; },\n set: function (value) {\n var oldActiveDate = this._activeDate;\n var validDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\n if (!this._hasSameMonthAndYear(oldActiveDate, this._activeDate)) {\n this._init();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMonthView.prototype, \"selected\", {\n /** The currently selected date. */\n get: function () { return this._selected; },\n set: function (value) {\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n this._selectedDate = this._getDateInCurrentMonth(this._selected);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMonthView.prototype, \"minDate\", {\n /** The minimum selectable date. */\n get: function () { return this._minDate; },\n set: function (value) {\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMonthView.prototype, \"maxDate\", {\n /** The maximum selectable date. */\n get: function () { return this._maxDate; },\n set: function (value) {\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n MatMonthView.prototype.ngAfterContentInit = function () {\n var _this = this;\n this._rerenderSubscription = this._dateAdapter.localeChanges\n .pipe(operators.startWith(null))\n .subscribe(function () { return _this._init(); });\n };\n MatMonthView.prototype.ngOnDestroy = function () {\n this._rerenderSubscription.unsubscribe();\n };\n /** Handles when a new date is selected. */\n MatMonthView.prototype._dateSelected = function (date) {\n if (this._selectedDate != date) {\n var selectedYear = this._dateAdapter.getYear(this.activeDate);\n var selectedMonth = this._dateAdapter.getMonth(this.activeDate);\n var selectedDate = this._dateAdapter.createDate(selectedYear, selectedMonth, date);\n this.selectedChange.emit(selectedDate);\n }\n this._userSelection.emit();\n };\n /** Handles keydown events on the calendar body when calendar is in month view. */\n MatMonthView.prototype._handleCalendarBodyKeydown = function (event) {\n // TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent\n // disabled ones from being selected. This may not be ideal, we should look into whether\n // navigation should skip over disabled dates, and if so, how to implement that efficiently.\n var oldActiveDate = this._activeDate;\n var isRtl = this._isRtl();\n switch (event.keyCode) {\n case keycodes.LEFT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, isRtl ? 1 : -1);\n break;\n case keycodes.RIGHT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, isRtl ? -1 : 1);\n break;\n case keycodes.UP_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, -7);\n break;\n case keycodes.DOWN_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 7);\n break;\n case keycodes.HOME:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 1 - this._dateAdapter.getDate(this._activeDate));\n break;\n case keycodes.END:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, (this._dateAdapter.getNumDaysInMonth(this._activeDate) -\n this._dateAdapter.getDate(this._activeDate)));\n break;\n case keycodes.PAGE_UP:\n this.activeDate = event.altKey ?\n this._dateAdapter.addCalendarYears(this._activeDate, -1) :\n this._dateAdapter.addCalendarMonths(this._activeDate, -1);\n break;\n case keycodes.PAGE_DOWN:\n this.activeDate = event.altKey ?\n this._dateAdapter.addCalendarYears(this._activeDate, 1) :\n this._dateAdapter.addCalendarMonths(this._activeDate, 1);\n break;\n case keycodes.ENTER:\n case keycodes.SPACE:\n if (!this.dateFilter || this.dateFilter(this._activeDate)) {\n this._dateSelected(this._dateAdapter.getDate(this._activeDate));\n this._userSelection.emit();\n // Prevent unexpected default actions such as form submission.\n event.preventDefault();\n }\n return;\n default:\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\n return;\n }\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\n this.activeDateChange.emit(this.activeDate);\n }\n this._focusActiveCell();\n // Prevent unexpected default actions such as form submission.\n event.preventDefault();\n };\n /** Initializes this month view. */\n MatMonthView.prototype._init = function () {\n this._selectedDate = this._getDateInCurrentMonth(this.selected);\n this._todayDate = this._getDateInCurrentMonth(this._dateAdapter.today());\n this._monthLabel =\n this._dateAdapter.getMonthNames('short')[this._dateAdapter.getMonth(this.activeDate)]\n .toLocaleUpperCase();\n var firstOfMonth = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), 1);\n this._firstWeekOffset =\n (DAYS_PER_WEEK + this._dateAdapter.getDayOfWeek(firstOfMonth) -\n this._dateAdapter.getFirstDayOfWeek()) % DAYS_PER_WEEK;\n this._initWeekdays();\n this._createWeekCells();\n this._changeDetectorRef.markForCheck();\n };\n /** Focuses the active cell after the microtask queue is empty. */\n MatMonthView.prototype._focusActiveCell = function () {\n this._matCalendarBody._focusActiveCell();\n };\n /** Initializes the weekdays. */\n MatMonthView.prototype._initWeekdays = function () {\n var firstDayOfWeek = this._dateAdapter.getFirstDayOfWeek();\n var narrowWeekdays = this._dateAdapter.getDayOfWeekNames('narrow');\n var longWeekdays = this._dateAdapter.getDayOfWeekNames('long');\n // Rotate the labels for days of the week based on the configured first day of the week.\n var weekdays = longWeekdays.map(function (long, i) {\n return { long: long, narrow: narrowWeekdays[i] };\n });\n this._weekdays = weekdays.slice(firstDayOfWeek).concat(weekdays.slice(0, firstDayOfWeek));\n };\n /** Creates MatCalendarCells for the dates in this month. */\n MatMonthView.prototype._createWeekCells = function () {\n var daysInMonth = this._dateAdapter.getNumDaysInMonth(this.activeDate);\n var dateNames = this._dateAdapter.getDateNames();\n this._weeks = [[]];\n for (var i = 0, cell = this._firstWeekOffset; i < daysInMonth; i++, cell++) {\n if (cell == DAYS_PER_WEEK) {\n this._weeks.push([]);\n cell = 0;\n }\n var date = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), i + 1);\n var enabled = this._shouldEnableDate(date);\n var ariaLabel = this._dateAdapter.format(date, this._dateFormats.display.dateA11yLabel);\n var cellClasses = this.dateClass ? this.dateClass(date) : undefined;\n this._weeks[this._weeks.length - 1]\n .push(new MatCalendarCell(i + 1, dateNames[i], ariaLabel, enabled, cellClasses));\n }\n };\n /** Date filter for the month */\n MatMonthView.prototype._shouldEnableDate = function (date) {\n return !!date &&\n (!this.minDate || this._dateAdapter.compareDate(date, this.minDate) >= 0) &&\n (!this.maxDate || this._dateAdapter.compareDate(date, this.maxDate) <= 0) &&\n (!this.dateFilter || this.dateFilter(date));\n };\n /**\n * Gets the date in this month that the given Date falls on.\n * Returns null if the given Date is in another month.\n */\n MatMonthView.prototype._getDateInCurrentMonth = function (date) {\n return date && this._hasSameMonthAndYear(date, this.activeDate) ?\n this._dateAdapter.getDate(date) : null;\n };\n /** Checks whether the 2 dates are non-null and fall within the same month of the same year. */\n MatMonthView.prototype._hasSameMonthAndYear = function (d1, d2) {\n return !!(d1 && d2 && this._dateAdapter.getMonth(d1) == this._dateAdapter.getMonth(d2) &&\n this._dateAdapter.getYear(d1) == this._dateAdapter.getYear(d2));\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatMonthView.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n /** Determines whether the user has the RTL layout direction. */\n MatMonthView.prototype._isRtl = function () {\n return this._dir && this._dir.value === 'rtl';\n };\n MatMonthView.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-month-view',\n template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\n <thead class=\\\"mat-calendar-table-header\\\">\\n <tr>\\n <th scope=\\\"col\\\" *ngFor=\\\"let day of _weekdays\\\" [attr.aria-label]=\\\"day.long\\\">{{day.narrow}}</th>\\n </tr>\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"7\\\" aria-hidden=\\\"true\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [label]=\\\"_monthLabel\\\"\\n [rows]=\\\"_weeks\\\"\\n [todayValue]=\\\"_todayDate!\\\"\\n [selectedValue]=\\\"_selectedDate!\\\"\\n [labelMinRequiredCells]=\\\"3\\\"\\n [activeCell]=\\\"_dateAdapter.getDate(activeDate) - 1\\\"\\n (selectedValueChange)=\\\"_dateSelected($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\",\n exportAs: 'matMonthView',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush\n }] }\n ];\n /** @nocollapse */\n MatMonthView.ctorParameters = function () { return [\n { type: i0.ChangeDetectorRef },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [core.MAT_DATE_FORMATS,] }] },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: bidi.Directionality, decorators: [{ type: i0.Optional }] }\n ]; };\n MatMonthView.propDecorators = {\n activeDate: [{ type: i0.Input }],\n selected: [{ type: i0.Input }],\n minDate: [{ type: i0.Input }],\n maxDate: [{ type: i0.Input }],\n dateFilter: [{ type: i0.Input }],\n dateClass: [{ type: i0.Input }],\n selectedChange: [{ type: i0.Output }],\n _userSelection: [{ type: i0.Output }],\n activeDateChange: [{ type: i0.Output }],\n _matCalendarBody: [{ type: i0.ViewChild, args: [MatCalendarBody,] }]\n };\n return MatMonthView;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var yearsPerPage = 24;\n var yearsPerRow = 4;\n /**\n * An internal component used to display a year selector in the datepicker.\n * @docs-private\n */\n var MatMultiYearView = /** @class */ (function () {\n function MatMultiYearView(_changeDetectorRef, _dateAdapter, _dir) {\n this._changeDetectorRef = _changeDetectorRef;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._rerenderSubscription = rxjs.Subscription.EMPTY;\n /** Emits when a new year is selected. */\n this.selectedChange = new i0.EventEmitter();\n /** Emits the selected year. This doesn't imply a change on the selected date */\n this.yearSelected = new i0.EventEmitter();\n /** Emits when any date is activated. */\n this.activeDateChange = new i0.EventEmitter();\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n this._activeDate = this._dateAdapter.today();\n }\n Object.defineProperty(MatMultiYearView.prototype, \"activeDate\", {\n /** The date to display in this multi-year view (everything other than the year is ignored). */\n get: function () { return this._activeDate; },\n set: function (value) {\n var oldActiveDate = this._activeDate;\n var validDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\n if (!isSameMultiYearView(this._dateAdapter, oldActiveDate, this._activeDate, this.minDate, this.maxDate)) {\n this._init();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMultiYearView.prototype, \"selected\", {\n /** The currently selected date. */\n get: function () { return this._selected; },\n set: function (value) {\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n this._selectedYear = this._selected && this._dateAdapter.getYear(this._selected);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMultiYearView.prototype, \"minDate\", {\n /** The minimum selectable date. */\n get: function () { return this._minDate; },\n set: function (value) {\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatMultiYearView.prototype, \"maxDate\", {\n /** The maximum selectable date. */\n get: function () { return this._maxDate; },\n set: function (value) {\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n MatMultiYearView.prototype.ngAfterContentInit = function () {\n var _this = this;\n this._rerenderSubscription = this._dateAdapter.localeChanges\n .pipe(operators.startWith(null))\n .subscribe(function () { return _this._init(); });\n };\n MatMultiYearView.prototype.ngOnDestroy = function () {\n this._rerenderSubscription.unsubscribe();\n };\n /** Initializes this multi-year view. */\n MatMultiYearView.prototype._init = function () {\n var _this = this;\n this._todayYear = this._dateAdapter.getYear(this._dateAdapter.today());\n // We want a range years such that we maximize the number of\n // enabled dates visible at once. This prevents issues where the minimum year\n // is the last item of a page OR the maximum year is the first item of a page.\n // The offset from the active year to the \"slot\" for the starting year is the\n // *actual* first rendered year in the multi-year view.\n var activeYear = this._dateAdapter.getYear(this._activeDate);\n var minYearOfPage = activeYear - getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate);\n this._years = [];\n for (var i = 0, row = []; i < yearsPerPage; i++) {\n row.push(minYearOfPage + i);\n if (row.length == yearsPerRow) {\n this._years.push(row.map(function (year) { return _this._createCellForYear(year); }));\n row = [];\n }\n }\n this._changeDetectorRef.markForCheck();\n };\n /** Handles when a new year is selected. */\n MatMultiYearView.prototype._yearSelected = function (year) {\n this.yearSelected.emit(this._dateAdapter.createDate(year, 0, 1));\n var month = this._dateAdapter.getMonth(this.activeDate);\n var daysInMonth = this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(year, month, 1));\n this.selectedChange.emit(this._dateAdapter.createDate(year, month, Math.min(this._dateAdapter.getDate(this.activeDate), daysInMonth)));\n };\n /** Handles keydown events on the calendar body when calendar is in multi-year view. */\n MatMultiYearView.prototype._handleCalendarBodyKeydown = function (event) {\n var oldActiveDate = this._activeDate;\n var isRtl = this._isRtl();\n switch (event.keyCode) {\n case keycodes.LEFT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, isRtl ? 1 : -1);\n break;\n case keycodes.RIGHT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, isRtl ? -1 : 1);\n break;\n case keycodes.UP_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -yearsPerRow);\n break;\n case keycodes.DOWN_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerRow);\n break;\n case keycodes.HOME:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate));\n break;\n case keycodes.END:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerPage - getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate) - 1);\n break;\n case keycodes.PAGE_UP:\n this.activeDate =\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -yearsPerPage * 10 : -yearsPerPage);\n break;\n case keycodes.PAGE_DOWN:\n this.activeDate =\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? yearsPerPage * 10 : yearsPerPage);\n break;\n case keycodes.ENTER:\n case keycodes.SPACE:\n this._yearSelected(this._dateAdapter.getYear(this._activeDate));\n break;\n default:\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\n return;\n }\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\n this.activeDateChange.emit(this.activeDate);\n }\n this._focusActiveCell();\n // Prevent unexpected default actions such as form submission.\n event.preventDefault();\n };\n MatMultiYearView.prototype._getActiveCell = function () {\n return getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate);\n };\n /** Focuses the active cell after the microtask queue is empty. */\n MatMultiYearView.prototype._focusActiveCell = function () {\n this._matCalendarBody._focusActiveCell();\n };\n /** Creates an MatCalendarCell for the given year. */\n MatMultiYearView.prototype._createCellForYear = function (year) {\n var yearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(year, 0, 1));\n return new MatCalendarCell(year, yearName, yearName, this._shouldEnableYear(year));\n };\n /** Whether the given year is enabled. */\n MatMultiYearView.prototype._shouldEnableYear = function (year) {\n // disable if the year is greater than maxDate lower than minDate\n if (year === undefined || year === null ||\n (this.maxDate && year > this._dateAdapter.getYear(this.maxDate)) ||\n (this.minDate && year < this._dateAdapter.getYear(this.minDate))) {\n return false;\n }\n // enable if it reaches here and there's no filter defined\n if (!this.dateFilter) {\n return true;\n }\n var firstOfYear = this._dateAdapter.createDate(year, 0, 1);\n // If any date in the year is enabled count the year as enabled.\n for (var date = firstOfYear; this._dateAdapter.getYear(date) == year; date = this._dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatMultiYearView.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n /** Determines whether the user has the RTL layout direction. */\n MatMultiYearView.prototype._isRtl = function () {\n return this._dir && this._dir.value === 'rtl';\n };\n MatMultiYearView.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-multi-year-view',\n template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\n <thead class=\\\"mat-calendar-table-header\\\">\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [rows]=\\\"_years\\\"\\n [todayValue]=\\\"_todayYear\\\"\\n [selectedValue]=\\\"_selectedYear!\\\"\\n [numCols]=\\\"4\\\"\\n [cellAspectRatio]=\\\"4 / 7\\\"\\n [activeCell]=\\\"_getActiveCell()\\\"\\n (selectedValueChange)=\\\"_yearSelected($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\",\n exportAs: 'matMultiYearView',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush\n }] }\n ];\n /** @nocollapse */\n MatMultiYearView.ctorParameters = function () { return [\n { type: i0.ChangeDetectorRef },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: bidi.Directionality, decorators: [{ type: i0.Optional }] }\n ]; };\n MatMultiYearView.propDecorators = {\n activeDate: [{ type: i0.Input }],\n selected: [{ type: i0.Input }],\n minDate: [{ type: i0.Input }],\n maxDate: [{ type: i0.Input }],\n dateFilter: [{ type: i0.Input }],\n selectedChange: [{ type: i0.Output }],\n yearSelected: [{ type: i0.Output }],\n activeDateChange: [{ type: i0.Output }],\n _matCalendarBody: [{ type: i0.ViewChild, args: [MatCalendarBody,] }]\n };\n return MatMultiYearView;\n }());\n function isSameMultiYearView(dateAdapter, date1, date2, minDate, maxDate) {\n var year1 = dateAdapter.getYear(date1);\n var year2 = dateAdapter.getYear(date2);\n var startingYear = getStartingYear(dateAdapter, minDate, maxDate);\n return Math.floor((year1 - startingYear) / yearsPerPage) ===\n Math.floor((year2 - startingYear) / yearsPerPage);\n }\n /**\n * When the multi-year view is first opened, the active year will be in view.\n * So we compute how many years are between the active year and the *slot* where our\n * \"startingYear\" will render when paged into view.\n */\n function getActiveOffset(dateAdapter, activeDate, minDate, maxDate) {\n var activeYear = dateAdapter.getYear(activeDate);\n return euclideanModulo((activeYear - getStartingYear(dateAdapter, minDate, maxDate)), yearsPerPage);\n }\n /**\n * We pick a \"starting\" year such that either the maximum year would be at the end\n * or the minimum year would be at the beginning of a page.\n */\n function getStartingYear(dateAdapter, minDate, maxDate) {\n var startingYear = 0;\n if (maxDate) {\n var maxYear = dateAdapter.getYear(maxDate);\n startingYear = maxYear - yearsPerPage + 1;\n }\n else if (minDate) {\n startingYear = dateAdapter.getYear(minDate);\n }\n return startingYear;\n }\n /** Gets remainder that is non-negative, even if first number is negative */\n function euclideanModulo(a, b) {\n return (a % b + b) % b;\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * An internal component used to display a single year in the datepicker.\n * @docs-private\n */\n var MatYearView = /** @class */ (function () {\n function MatYearView(_changeDetectorRef, _dateFormats, _dateAdapter, _dir) {\n this._changeDetectorRef = _changeDetectorRef;\n this._dateFormats = _dateFormats;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._rerenderSubscription = rxjs.Subscription.EMPTY;\n /** Emits when a new month is selected. */\n this.selectedChange = new i0.EventEmitter();\n /** Emits the selected month. This doesn't imply a change on the selected date */\n this.monthSelected = new i0.EventEmitter();\n /** Emits when any date is activated. */\n this.activeDateChange = new i0.EventEmitter();\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n this._activeDate = this._dateAdapter.today();\n }\n Object.defineProperty(MatYearView.prototype, \"activeDate\", {\n /** The date to display in this year view (everything other than the year is ignored). */\n get: function () { return this._activeDate; },\n set: function (value) {\n var oldActiveDate = this._activeDate;\n var validDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\n if (this._dateAdapter.getYear(oldActiveDate) !== this._dateAdapter.getYear(this._activeDate)) {\n this._init();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatYearView.prototype, \"selected\", {\n /** The currently selected date. */\n get: function () { return this._selected; },\n set: function (value) {\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n this._selectedMonth = this._getMonthInCurrentYear(this._selected);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatYearView.prototype, \"minDate\", {\n /** The minimum selectable date. */\n get: function () { return this._minDate; },\n set: function (value) {\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatYearView.prototype, \"maxDate\", {\n /** The maximum selectable date. */\n get: function () { return this._maxDate; },\n set: function (value) {\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n MatYearView.prototype.ngAfterContentInit = function () {\n var _this = this;\n this._rerenderSubscription = this._dateAdapter.localeChanges\n .pipe(operators.startWith(null))\n .subscribe(function () { return _this._init(); });\n };\n MatYearView.prototype.ngOnDestroy = function () {\n this._rerenderSubscription.unsubscribe();\n };\n /** Handles when a new month is selected. */\n MatYearView.prototype._monthSelected = function (month) {\n var normalizedDate = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1);\n this.monthSelected.emit(normalizedDate);\n var daysInMonth = this._dateAdapter.getNumDaysInMonth(normalizedDate);\n this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, Math.min(this._dateAdapter.getDate(this.activeDate), daysInMonth)));\n };\n /** Handles keydown events on the calendar body when calendar is in year view. */\n MatYearView.prototype._handleCalendarBodyKeydown = function (event) {\n // TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent\n // disabled ones from being selected. This may not be ideal, we should look into whether\n // navigation should skip over disabled dates, and if so, how to implement that efficiently.\n var oldActiveDate = this._activeDate;\n var isRtl = this._isRtl();\n switch (event.keyCode) {\n case keycodes.LEFT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, isRtl ? 1 : -1);\n break;\n case keycodes.RIGHT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, isRtl ? -1 : 1);\n break;\n case keycodes.UP_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -4);\n break;\n case keycodes.DOWN_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 4);\n break;\n case keycodes.HOME:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -this._dateAdapter.getMonth(this._activeDate));\n break;\n case keycodes.END:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 11 - this._dateAdapter.getMonth(this._activeDate));\n break;\n case keycodes.PAGE_UP:\n this.activeDate =\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -10 : -1);\n break;\n case keycodes.PAGE_DOWN:\n this.activeDate =\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? 10 : 1);\n break;\n case keycodes.ENTER:\n case keycodes.SPACE:\n this._monthSelected(this._dateAdapter.getMonth(this._activeDate));\n break;\n default:\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\n return;\n }\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\n this.activeDateChange.emit(this.activeDate);\n }\n this._focusActiveCell();\n // Prevent unexpected default actions such as form submission.\n event.preventDefault();\n };\n /** Initializes this year view. */\n MatYearView.prototype._init = function () {\n var _this = this;\n this._selectedMonth = this._getMonthInCurrentYear(this.selected);\n this._todayMonth = this._getMonthInCurrentYear(this._dateAdapter.today());\n this._yearLabel = this._dateAdapter.getYearName(this.activeDate);\n var monthNames = this._dateAdapter.getMonthNames('short');\n // First row of months only contains 5 elements so we can fit the year label on the same row.\n this._months = [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]].map(function (row) { return row.map(function (month) { return _this._createCellForMonth(month, monthNames[month]); }); });\n this._changeDetectorRef.markForCheck();\n };\n /** Focuses the active cell after the microtask queue is empty. */\n MatYearView.prototype._focusActiveCell = function () {\n this._matCalendarBody._focusActiveCell();\n };\n /**\n * Gets the month in this year that the given Date falls on.\n * Returns null if the given Date is in another year.\n */\n MatYearView.prototype._getMonthInCurrentYear = function (date) {\n return date && this._dateAdapter.getYear(date) == this._dateAdapter.getYear(this.activeDate) ?\n this._dateAdapter.getMonth(date) : null;\n };\n /** Creates an MatCalendarCell for the given month. */\n MatYearView.prototype._createCellForMonth = function (month, monthName) {\n var ariaLabel = this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1), this._dateFormats.display.monthYearA11yLabel);\n return new MatCalendarCell(month, monthName.toLocaleUpperCase(), ariaLabel, this._shouldEnableMonth(month));\n };\n /** Whether the given month is enabled. */\n MatYearView.prototype._shouldEnableMonth = function (month) {\n var activeYear = this._dateAdapter.getYear(this.activeDate);\n if (month === undefined || month === null ||\n this._isYearAndMonthAfterMaxDate(activeYear, month) ||\n this._isYearAndMonthBeforeMinDate(activeYear, month)) {\n return false;\n }\n if (!this.dateFilter) {\n return true;\n }\n var firstOfMonth = this._dateAdapter.createDate(activeYear, month, 1);\n // If any date in the month is enabled count the month as enabled.\n for (var date = firstOfMonth; this._dateAdapter.getMonth(date) == month; date = this._dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n };\n /**\n * Tests whether the combination month/year is after this.maxDate, considering\n * just the month and year of this.maxDate\n */\n MatYearView.prototype._isYearAndMonthAfterMaxDate = function (year, month) {\n if (this.maxDate) {\n var maxYear = this._dateAdapter.getYear(this.maxDate);\n var maxMonth = this._dateAdapter.getMonth(this.maxDate);\n return year > maxYear || (year === maxYear && month > maxMonth);\n }\n return false;\n };\n /**\n * Tests whether the combination month/year is before this.minDate, considering\n * just the month and year of this.minDate\n */\n MatYearView.prototype._isYearAndMonthBeforeMinDate = function (year, month) {\n if (this.minDate) {\n var minYear = this._dateAdapter.getYear(this.minDate);\n var minMonth = this._dateAdapter.getMonth(this.minDate);\n return year < minYear || (year === minYear && month < minMonth);\n }\n return false;\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatYearView.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n /** Determines whether the user has the RTL layout direction. */\n MatYearView.prototype._isRtl = function () {\n return this._dir && this._dir.value === 'rtl';\n };\n MatYearView.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-year-view',\n template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\n <thead class=\\\"mat-calendar-table-header\\\">\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [label]=\\\"_yearLabel\\\"\\n [rows]=\\\"_months\\\"\\n [todayValue]=\\\"_todayMonth!\\\"\\n [selectedValue]=\\\"_selectedMonth!\\\"\\n [labelMinRequiredCells]=\\\"2\\\"\\n [numCols]=\\\"4\\\"\\n [cellAspectRatio]=\\\"4 / 7\\\"\\n [activeCell]=\\\"_dateAdapter.getMonth(activeDate)\\\"\\n (selectedValueChange)=\\\"_monthSelected($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\",\n exportAs: 'matYearView',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush\n }] }\n ];\n /** @nocollapse */\n MatYearView.ctorParameters = function () { return [\n { type: i0.ChangeDetectorRef },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [core.MAT_DATE_FORMATS,] }] },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: bidi.Directionality, decorators: [{ type: i0.Optional }] }\n ]; };\n MatYearView.propDecorators = {\n activeDate: [{ type: i0.Input }],\n selected: [{ type: i0.Input }],\n minDate: [{ type: i0.Input }],\n maxDate: [{ type: i0.Input }],\n dateFilter: [{ type: i0.Input }],\n selectedChange: [{ type: i0.Output }],\n monthSelected: [{ type: i0.Output }],\n activeDateChange: [{ type: i0.Output }],\n _matCalendarBody: [{ type: i0.ViewChild, args: [MatCalendarBody,] }]\n };\n return MatYearView;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Default header for MatCalendar */\n var MatCalendarHeader = /** @class */ (function () {\n function MatCalendarHeader(_intl, calendar, _dateAdapter, _dateFormats, changeDetectorRef) {\n this._intl = _intl;\n this.calendar = calendar;\n this._dateAdapter = _dateAdapter;\n this._dateFormats = _dateFormats;\n this.calendar.stateChanges.subscribe(function () { return changeDetectorRef.markForCheck(); });\n }\n Object.defineProperty(MatCalendarHeader.prototype, \"periodButtonText\", {\n /** The label for the current calendar view. */\n get: function () {\n if (this.calendar.currentView == 'month') {\n return this._dateAdapter\n .format(this.calendar.activeDate, this._dateFormats.display.monthYearLabel)\n .toLocaleUpperCase();\n }\n if (this.calendar.currentView == 'year') {\n return this._dateAdapter.getYearName(this.calendar.activeDate);\n }\n // The offset from the active year to the \"slot\" for the starting year is the\n // *actual* first rendered year in the multi-year view, and the last year is\n // just yearsPerPage - 1 away.\n var activeYear = this._dateAdapter.getYear(this.calendar.activeDate);\n var minYearOfPage = activeYear - getActiveOffset(this._dateAdapter, this.calendar.activeDate, this.calendar.minDate, this.calendar.maxDate);\n var maxYearOfPage = minYearOfPage + yearsPerPage - 1;\n var minYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(minYearOfPage, 0, 1));\n var maxYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(maxYearOfPage, 0, 1));\n return this._intl.formatYearRange(minYearName, maxYearName);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendarHeader.prototype, \"periodButtonLabel\", {\n get: function () {\n return this.calendar.currentView == 'month' ?\n this._intl.switchToMultiYearViewLabel : this._intl.switchToMonthViewLabel;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendarHeader.prototype, \"prevButtonLabel\", {\n /** The label for the previous button. */\n get: function () {\n return {\n 'month': this._intl.prevMonthLabel,\n 'year': this._intl.prevYearLabel,\n 'multi-year': this._intl.prevMultiYearLabel\n }[this.calendar.currentView];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendarHeader.prototype, \"nextButtonLabel\", {\n /** The label for the next button. */\n get: function () {\n return {\n 'month': this._intl.nextMonthLabel,\n 'year': this._intl.nextYearLabel,\n 'multi-year': this._intl.nextMultiYearLabel\n }[this.calendar.currentView];\n },\n enumerable: true,\n configurable: true\n });\n /** Handles user clicks on the period label. */\n MatCalendarHeader.prototype.currentPeriodClicked = function () {\n this.calendar.currentView = this.calendar.currentView == 'month' ? 'multi-year' : 'month';\n };\n /** Handles user clicks on the previous button. */\n MatCalendarHeader.prototype.previousClicked = function () {\n this.calendar.activeDate = this.calendar.currentView == 'month' ?\n this._dateAdapter.addCalendarMonths(this.calendar.activeDate, -1) :\n this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? -1 : -yearsPerPage);\n };\n /** Handles user clicks on the next button. */\n MatCalendarHeader.prototype.nextClicked = function () {\n this.calendar.activeDate = this.calendar.currentView == 'month' ?\n this._dateAdapter.addCalendarMonths(this.calendar.activeDate, 1) :\n this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? 1 : yearsPerPage);\n };\n /** Whether the previous period button is enabled. */\n MatCalendarHeader.prototype.previousEnabled = function () {\n if (!this.calendar.minDate) {\n return true;\n }\n return !this.calendar.minDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.minDate);\n };\n /** Whether the next period button is enabled. */\n MatCalendarHeader.prototype.nextEnabled = function () {\n return !this.calendar.maxDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.maxDate);\n };\n /** Whether the two dates represent the same view in the current view mode (month or year). */\n MatCalendarHeader.prototype._isSameView = function (date1, date2) {\n if (this.calendar.currentView == 'month') {\n return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2) &&\n this._dateAdapter.getMonth(date1) == this._dateAdapter.getMonth(date2);\n }\n if (this.calendar.currentView == 'year') {\n return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2);\n }\n // Otherwise we are in 'multi-year' view.\n return isSameMultiYearView(this._dateAdapter, date1, date2, this.calendar.minDate, this.calendar.maxDate);\n };\n MatCalendarHeader.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-calendar-header',\n 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\",\n exportAs: 'matCalendarHeader',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush\n }] }\n ];\n /** @nocollapse */\n MatCalendarHeader.ctorParameters = function () { return [\n { type: MatDatepickerIntl },\n { type: MatCalendar, decorators: [{ type: i0.Inject, args: [i0.forwardRef(function () { return MatCalendar; }),] }] },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [core.MAT_DATE_FORMATS,] }] },\n { type: i0.ChangeDetectorRef }\n ]; };\n return MatCalendarHeader;\n }());\n /**\n * A calendar that is used as part of the datepicker.\n * @docs-private\n */\n var MatCalendar = /** @class */ (function () {\n function MatCalendar(_intl, _dateAdapter, _dateFormats, _changeDetectorRef) {\n var _this = this;\n this._dateAdapter = _dateAdapter;\n this._dateFormats = _dateFormats;\n this._changeDetectorRef = _changeDetectorRef;\n /**\n * Used for scheduling that focus should be moved to the active cell on the next tick.\n * We need to schedule it, rather than do it immediately, because we have to wait\n * for Angular to re-evaluate the view children.\n */\n this._moveFocusOnNextTick = false;\n /** Whether the calendar should be started in month or year view. */\n this.startView = 'month';\n /** Emits when the currently selected date changes. */\n this.selectedChange = new i0.EventEmitter();\n /**\n * Emits the year chosen in multiyear view.\n * This doesn't imply a change on the selected date.\n */\n this.yearSelected = new i0.EventEmitter();\n /**\n * Emits the month chosen in year view.\n * This doesn't imply a change on the selected date.\n */\n this.monthSelected = new i0.EventEmitter();\n /** Emits when any date is selected. */\n this._userSelection = new i0.EventEmitter();\n /**\n * Emits whenever there is a state change that the header may need to respond to.\n */\n this.stateChanges = new rxjs.Subject();\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n this._intlChanges = _intl.changes.subscribe(function () {\n _changeDetectorRef.markForCheck();\n _this.stateChanges.next();\n });\n }\n Object.defineProperty(MatCalendar.prototype, \"startAt\", {\n /** A date representing the period (month or year) to start the calendar in. */\n get: function () { return this._startAt; },\n set: function (value) {\n this._startAt = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendar.prototype, \"selected\", {\n /** The currently selected date. */\n get: function () { return this._selected; },\n set: function (value) {\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendar.prototype, \"minDate\", {\n /** The minimum selectable date. */\n get: function () { return this._minDate; },\n set: function (value) {\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendar.prototype, \"maxDate\", {\n /** The maximum selectable date. */\n get: function () { return this._maxDate; },\n set: function (value) {\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendar.prototype, \"activeDate\", {\n /**\n * The current active date. This determines which time period is shown and which date is\n * highlighted when using keyboard navigation.\n */\n get: function () { return this._clampedActiveDate; },\n set: function (value) {\n this._clampedActiveDate = this._dateAdapter.clampDate(value, this.minDate, this.maxDate);\n this.stateChanges.next();\n this._changeDetectorRef.markForCheck();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatCalendar.prototype, \"currentView\", {\n /** Whether the calendar is in month view. */\n get: function () { return this._currentView; },\n set: function (value) {\n this._currentView = value;\n this._moveFocusOnNextTick = true;\n this._changeDetectorRef.markForCheck();\n },\n enumerable: true,\n configurable: true\n });\n MatCalendar.prototype.ngAfterContentInit = function () {\n this._calendarHeaderPortal = new portal.ComponentPortal(this.headerComponent || MatCalendarHeader);\n this.activeDate = this.startAt || this._dateAdapter.today();\n // Assign to the private property since we don't want to move focus on init.\n this._currentView = this.startView;\n };\n MatCalendar.prototype.ngAfterViewChecked = function () {\n if (this._moveFocusOnNextTick) {\n this._moveFocusOnNextTick = false;\n this.focusActiveCell();\n }\n };\n MatCalendar.prototype.ngOnDestroy = function () {\n this._intlChanges.unsubscribe();\n this.stateChanges.complete();\n };\n MatCalendar.prototype.ngOnChanges = function (changes) {\n var change = changes['minDate'] || changes['maxDate'] || changes['dateFilter'];\n if (change && !change.firstChange) {\n var view = this._getCurrentViewComponent();\n if (view) {\n // We need to `detectChanges` manually here, because the `minDate`, `maxDate` etc. are\n // passed down to the view via data bindings which won't be up-to-date when we call `_init`.\n this._changeDetectorRef.detectChanges();\n view._init();\n }\n }\n this.stateChanges.next();\n };\n MatCalendar.prototype.focusActiveCell = function () {\n this._getCurrentViewComponent()._focusActiveCell();\n };\n /** Updates today's date after an update of the active date */\n MatCalendar.prototype.updateTodaysDate = function () {\n var currentView = this.currentView;\n var view;\n if (currentView === 'month') {\n view = this.monthView;\n }\n else if (currentView === 'year') {\n view = this.yearView;\n }\n else {\n view = this.multiYearView;\n }\n view._init();\n };\n /** Handles date selection in the month view. */\n MatCalendar.prototype._dateSelected = function (date) {\n if (date && !this._dateAdapter.sameDate(date, this.selected)) {\n this.selectedChange.emit(date);\n }\n };\n /** Handles year selection in the multiyear view. */\n MatCalendar.prototype._yearSelectedInMultiYearView = function (normalizedYear) {\n this.yearSelected.emit(normalizedYear);\n };\n /** Handles month selection in the year view. */\n MatCalendar.prototype._monthSelectedInYearView = function (normalizedMonth) {\n this.monthSelected.emit(normalizedMonth);\n };\n MatCalendar.prototype._userSelected = function () {\n this._userSelection.emit();\n };\n /** Handles year/month selection in the multi-year/year views. */\n MatCalendar.prototype._goToDateInView = function (date, view) {\n this.activeDate = date;\n this.currentView = view;\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatCalendar.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n /** Returns the component instance that corresponds to the current calendar view. */\n MatCalendar.prototype._getCurrentViewComponent = function () {\n return this.monthView || this.yearView || this.multiYearView;\n };\n MatCalendar.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-calendar',\n template: \"\\n<ng-template [cdkPortalOutlet]=\\\"_calendarHeaderPortal\\\"></ng-template>\\n\\n<div class=\\\"mat-calendar-content\\\" [ngSwitch]=\\\"currentView\\\" cdkMonitorSubtreeFocus tabindex=\\\"-1\\\">\\n <mat-month-view\\n *ngSwitchCase=\\\"'month'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n [dateClass]=\\\"dateClass\\\"\\n (selectedChange)=\\\"_dateSelected($event)\\\"\\n (_userSelection)=\\\"_userSelected()\\\">\\n </mat-month-view>\\n\\n <mat-year-view\\n *ngSwitchCase=\\\"'year'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n (monthSelected)=\\\"_monthSelectedInYearView($event)\\\"\\n (selectedChange)=\\\"_goToDateInView($event, 'month')\\\">\\n </mat-year-view>\\n\\n <mat-multi-year-view\\n *ngSwitchCase=\\\"'multi-year'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n (yearSelected)=\\\"_yearSelectedInMultiYearView($event)\\\"\\n (selectedChange)=\\\"_goToDateInView($event, 'year')\\\">\\n </mat-multi-year-view>\\n</div>\\n\",\n host: {\n 'class': 'mat-calendar',\n },\n exportAs: 'matCalendar',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n styles: [\".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:\\\"\\\";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:\\\"\\\";position:absolute;top:0;left:-8px;right:-8px;height:1px}\\n\"]\n }] }\n ];\n /** @nocollapse */\n MatCalendar.ctorParameters = function () { return [\n { type: MatDatepickerIntl },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [core.MAT_DATE_FORMATS,] }] },\n { type: i0.ChangeDetectorRef }\n ]; };\n MatCalendar.propDecorators = {\n headerComponent: [{ type: i0.Input }],\n startAt: [{ type: i0.Input }],\n startView: [{ type: i0.Input }],\n selected: [{ type: i0.Input }],\n minDate: [{ type: i0.Input }],\n maxDate: [{ type: i0.Input }],\n dateFilter: [{ type: i0.Input }],\n dateClass: [{ type: i0.Input }],\n selectedChange: [{ type: i0.Output }],\n yearSelected: [{ type: i0.Output }],\n monthSelected: [{ type: i0.Output }],\n _userSelection: [{ type: i0.Output }],\n monthView: [{ type: i0.ViewChild, args: [MatMonthView,] }],\n yearView: [{ type: i0.ViewChild, args: [MatYearView,] }],\n multiYearView: [{ type: i0.ViewChild, args: [MatMultiYearView,] }]\n };\n return MatCalendar;\n }());\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation. All rights reserved.\r\n Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n this file except in compliance with the License. You may obtain a copy of the\r\n License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n See the Apache Version 2.0 License for specific language governing permissions\r\n and limitations under the License.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\r\n\r\n var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n };\r\n\r\n function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n }\r\n\r\n function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n }\r\n\r\n function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n }\r\n\r\n function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n }\r\n\r\n function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n }\r\n\r\n function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n }\r\n\r\n function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n }\r\n\r\n function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n }\r\n\r\n function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n }\r\n\r\n function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n }\r\n\r\n function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n };\r\n\r\n function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n }\r\n\r\n function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n }\r\n\r\n function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n }\r\n\r\n function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n }\r\n\r\n function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n };\r\n\r\n function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n }\r\n\r\n function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n }\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Animations used by the Material datepicker.\n * @docs-private\n */\n var matDatepickerAnimations = {\n /** Transforms the height of the datepicker's calendar. */\n transformPanel: animations.trigger('transformPanel', [\n animations.state('void', animations.style({\n opacity: 0,\n transform: 'scale(1, 0.8)'\n })),\n animations.transition('void => enter', animations.animate('120ms cubic-bezier(0, 0, 0.2, 1)', animations.style({\n opacity: 1,\n transform: 'scale(1, 1)'\n }))),\n animations.transition('* => void', animations.animate('100ms linear', animations.style({ opacity: 0 })))\n ]),\n /** Fades in the content of the calendar. */\n fadeInCalendar: animations.trigger('fadeInCalendar', [\n animations.state('void', animations.style({ opacity: 0 })),\n animations.state('enter', animations.style({ opacity: 1 })),\n // TODO(crisbeto): this animation should be removed since it isn't quite on spec, but we\n // need to keep it until #12440 gets in, otherwise the exit animation will look glitchy.\n animations.transition('void => *', animations.animate('120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)'))\n ])\n };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Used to generate a unique ID for each datepicker instance. */\n var datepickerUid = 0;\n /** Injection token that determines the scroll handling while the calendar is open. */\n var MAT_DATEPICKER_SCROLL_STRATEGY = new i0.InjectionToken('mat-datepicker-scroll-strategy');\n /** @docs-private */\n function MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY(overlay) {\n return function () { return overlay.scrollStrategies.reposition(); };\n }\n /** @docs-private */\n var MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = {\n provide: MAT_DATEPICKER_SCROLL_STRATEGY,\n deps: [overlay.Overlay],\n useFactory: MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,\n };\n // Boilerplate for applying mixins to MatDatepickerContent.\n /** @docs-private */\n var MatDatepickerContentBase = /** @class */ (function () {\n function MatDatepickerContentBase(_elementRef) {\n this._elementRef = _elementRef;\n }\n return MatDatepickerContentBase;\n }());\n var _MatDatepickerContentMixinBase = core.mixinColor(MatDatepickerContentBase);\n /**\n * Component used as the content for the datepicker dialog and popup. We use this instead of using\n * MatCalendar directly as the content so we can control the initial focus. This also gives us a\n * place to put additional features of the popup that are not part of the calendar itself in the\n * future. (e.g. confirmation buttons).\n * @docs-private\n */\n var MatDatepickerContent = /** @class */ (function (_super) {\n __extends(MatDatepickerContent, _super);\n function MatDatepickerContent(elementRef, \n /**\n * @deprecated `_changeDetectorRef` parameter to become required.\n * @breaking-change 11.0.0\n */\n _changeDetectorRef) {\n var _this = _super.call(this, elementRef) || this;\n _this._changeDetectorRef = _changeDetectorRef;\n /** Current state of the animation. */\n _this._animationState = 'enter';\n /** Emits when an animation has finished. */\n _this._animationDone = new rxjs.Subject();\n return _this;\n }\n MatDatepickerContent.prototype.ngAfterViewInit = function () {\n this._calendar.focusActiveCell();\n };\n MatDatepickerContent.prototype.ngOnDestroy = function () {\n this._animationDone.complete();\n };\n MatDatepickerContent.prototype._startExitAnimation = function () {\n this._animationState = 'void';\n // @breaking-change 11.0.0 Remove null check for `_changeDetectorRef`.\n if (this._changeDetectorRef) {\n this._changeDetectorRef.markForCheck();\n }\n };\n MatDatepickerContent.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-datepicker-content',\n template: \"<mat-calendar cdkTrapFocus\\n [id]=\\\"datepicker.id\\\"\\n [ngClass]=\\\"datepicker.panelClass\\\"\\n [startAt]=\\\"datepicker.startAt\\\"\\n [startView]=\\\"datepicker.startView\\\"\\n [minDate]=\\\"datepicker._minDate\\\"\\n [maxDate]=\\\"datepicker._maxDate\\\"\\n [dateFilter]=\\\"datepicker._dateFilter\\\"\\n [headerComponent]=\\\"datepicker.calendarHeaderComponent\\\"\\n [selected]=\\\"datepicker._selected\\\"\\n [dateClass]=\\\"datepicker.dateClass\\\"\\n [@fadeInCalendar]=\\\"'enter'\\\"\\n (selectedChange)=\\\"datepicker.select($event)\\\"\\n (yearSelected)=\\\"datepicker._selectYear($event)\\\"\\n (monthSelected)=\\\"datepicker._selectMonth($event)\\\"\\n (_userSelection)=\\\"datepicker.close()\\\">\\n</mat-calendar>\\n\",\n host: {\n 'class': 'mat-datepicker-content',\n '[@transformPanel]': '_animationState',\n '(@transformPanel.done)': '_animationDone.next()',\n '[class.mat-datepicker-content-touch]': 'datepicker.touchUi',\n },\n animations: [\n matDatepickerAnimations.transformPanel,\n matDatepickerAnimations.fadeInCalendar,\n ],\n exportAs: 'matDatepickerContent',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n inputs: ['color'],\n 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}@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\"]\n }] }\n ];\n /** @nocollapse */\n MatDatepickerContent.ctorParameters = function () { return [\n { type: i0.ElementRef },\n { type: i0.ChangeDetectorRef }\n ]; };\n MatDatepickerContent.propDecorators = {\n _calendar: [{ type: i0.ViewChild, args: [MatCalendar,] }]\n };\n return MatDatepickerContent;\n }(_MatDatepickerContentMixinBase));\n // TODO(mmalerba): We use a component instead of a directive here so the user can use implicit\n // template reference variables (e.g. #d vs #d=\"matDatepicker\"). We can change this to a directive\n // if angular adds support for `exportAs: '$implicit'` on directives.\n /** Component responsible for managing the datepicker popup/dialog. */\n var MatDatepicker = /** @class */ (function () {\n function MatDatepicker(_dialog, _overlay, _ngZone, _viewContainerRef, scrollStrategy, _dateAdapter, _dir, _document) {\n this._dialog = _dialog;\n this._overlay = _overlay;\n this._ngZone = _ngZone;\n this._viewContainerRef = _viewContainerRef;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._document = _document;\n /** The view that the calendar should start in. */\n this.startView = 'month';\n this._touchUi = false;\n /**\n * Emits selected year in multiyear view.\n * This doesn't imply a change on the selected date.\n */\n this.yearSelected = new i0.EventEmitter();\n /**\n * Emits selected month in year view.\n * This doesn't imply a change on the selected date.\n */\n this.monthSelected = new i0.EventEmitter();\n /** Emits when the datepicker has been opened. */\n this.openedStream = new i0.EventEmitter();\n /** Emits when the datepicker has been closed. */\n this.closedStream = new i0.EventEmitter();\n this._opened = false;\n /** The id for the datepicker calendar. */\n this.id = \"mat-datepicker-\" + datepickerUid++;\n this._validSelected = null;\n /** The element that was focused before the datepicker was opened. */\n this._focusedElementBeforeOpen = null;\n /** Subscription to value changes in the associated input element. */\n this._inputSubscription = rxjs.Subscription.EMPTY;\n /** Emits when the datepicker is disabled. */\n this._disabledChange = new rxjs.Subject();\n /** Emits new selected date when selected date changes. */\n this._selectedChanged = new rxjs.Subject();\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n this._scrollStrategy = scrollStrategy;\n }\n Object.defineProperty(MatDatepicker.prototype, \"startAt\", {\n /** The date to open the calendar to initially. */\n get: function () {\n // If an explicit startAt is set we start there, otherwise we start at whatever the currently\n // selected value is.\n return this._startAt || (this._datepickerInput ? this._datepickerInput.value : null);\n },\n set: function (value) {\n this._startAt = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"color\", {\n /** Color palette to use on the datepicker's calendar. */\n get: function () {\n return this._color ||\n (this._datepickerInput ? this._datepickerInput._getThemePalette() : undefined);\n },\n set: function (value) {\n this._color = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"touchUi\", {\n /**\n * Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather\n * than a popup and elements have more padding to allow for bigger touch targets.\n */\n get: function () { return this._touchUi; },\n set: function (value) {\n this._touchUi = coercion.coerceBooleanProperty(value);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"disabled\", {\n /** Whether the datepicker pop-up should be disabled. */\n get: function () {\n return this._disabled === undefined && this._datepickerInput ?\n this._datepickerInput.disabled : !!this._disabled;\n },\n set: function (value) {\n var newValue = coercion.coerceBooleanProperty(value);\n if (newValue !== this._disabled) {\n this._disabled = newValue;\n this._disabledChange.next(newValue);\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"opened\", {\n /** Whether the calendar is open. */\n get: function () { return this._opened; },\n set: function (value) { value ? this.open() : this.close(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"_selected\", {\n /** The currently selected date. */\n get: function () { return this._validSelected; },\n set: function (value) { this._validSelected = value; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"_minDate\", {\n /** The minimum selectable date. */\n get: function () {\n return this._datepickerInput && this._datepickerInput.min;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"_maxDate\", {\n /** The maximum selectable date. */\n get: function () {\n return this._datepickerInput && this._datepickerInput.max;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepicker.prototype, \"_dateFilter\", {\n get: function () {\n return this._datepickerInput && this._datepickerInput._dateFilter;\n },\n enumerable: true,\n configurable: true\n });\n MatDatepicker.prototype.ngOnDestroy = function () {\n this._destroyPopup();\n this.close();\n this._inputSubscription.unsubscribe();\n this._disabledChange.complete();\n };\n /** Selects the given date */\n MatDatepicker.prototype.select = function (date) {\n var oldValue = this._selected;\n this._selected = date;\n if (!this._dateAdapter.sameDate(oldValue, this._selected)) {\n this._selectedChanged.next(date);\n }\n };\n /** Emits the selected year in multiyear view */\n MatDatepicker.prototype._selectYear = function (normalizedYear) {\n this.yearSelected.emit(normalizedYear);\n };\n /** Emits selected month in year view */\n MatDatepicker.prototype._selectMonth = function (normalizedMonth) {\n this.monthSelected.emit(normalizedMonth);\n };\n /**\n * Register an input with this datepicker.\n * @param input The datepicker input to register with this datepicker.\n */\n MatDatepicker.prototype._registerInput = function (input) {\n var _this = this;\n if (this._datepickerInput) {\n throw Error('A MatDatepicker can only be associated with a single input.');\n }\n this._datepickerInput = input;\n this._inputSubscription =\n this._datepickerInput._valueChange.subscribe(function (value) { return _this._selected = value; });\n };\n /** Open the calendar. */\n MatDatepicker.prototype.open = function () {\n if (this._opened || this.disabled) {\n return;\n }\n if (!this._datepickerInput) {\n throw Error('Attempted to open an MatDatepicker with no associated input.');\n }\n if (this._document) {\n this._focusedElementBeforeOpen = this._document.activeElement;\n }\n this.touchUi ? this._openAsDialog() : this._openAsPopup();\n this._opened = true;\n this.openedStream.emit();\n };\n /** Close the calendar. */\n MatDatepicker.prototype.close = function () {\n var _this = this;\n if (!this._opened) {\n return;\n }\n if (this._popupComponentRef && this._popupRef) {\n var instance = this._popupComponentRef.instance;\n instance._startExitAnimation();\n instance._animationDone.pipe(operators.take(1)).subscribe(function () { return _this._destroyPopup(); });\n }\n if (this._dialogRef) {\n this._dialogRef.close();\n this._dialogRef = null;\n }\n var completeClose = function () {\n // The `_opened` could've been reset already if\n // we got two events in quick succession.\n if (_this._opened) {\n _this._opened = false;\n _this.closedStream.emit();\n _this._focusedElementBeforeOpen = null;\n }\n };\n if (this._focusedElementBeforeOpen &&\n typeof this._focusedElementBeforeOpen.focus === 'function') {\n // Because IE moves focus asynchronously, we can't count on it being restored before we've\n // marked the datepicker as closed. If the event fires out of sequence and the element that\n // we're refocusing opens the datepicker on focus, the user could be stuck with not being\n // able to close the calendar at all. We work around it by making the logic, that marks\n // the datepicker as closed, async as well.\n this._focusedElementBeforeOpen.focus();\n setTimeout(completeClose);\n }\n else {\n completeClose();\n }\n };\n /** Open the calendar as a dialog. */\n MatDatepicker.prototype._openAsDialog = function () {\n var _this = this;\n // Usually this would be handled by `open` which ensures that we can only have one overlay\n // open at a time, however since we reset the variables in async handlers some overlays\n // may slip through if the user opens and closes multiple times in quick succession (e.g.\n // by holding down the enter key).\n if (this._dialogRef) {\n this._dialogRef.close();\n }\n this._dialogRef = this._dialog.open(MatDatepickerContent, {\n direction: this._dir ? this._dir.value : 'ltr',\n viewContainerRef: this._viewContainerRef,\n panelClass: 'mat-datepicker-dialog',\n // These values are all the same as the defaults, but we set them explicitly so that the\n // datepicker dialog behaves consistently even if the user changed the defaults.\n hasBackdrop: true,\n disableClose: false,\n width: '',\n height: '',\n minWidth: '',\n minHeight: '',\n maxWidth: '80vw',\n maxHeight: '',\n position: {},\n autoFocus: true,\n // `MatDialog` has focus restoration built in, however we want to disable it since the\n // datepicker also has focus restoration for dropdown mode. We want to do this, in order\n // to ensure that the timing is consistent between dropdown and dialog modes since `MatDialog`\n // restores focus when the animation is finished, but the datepicker does it immediately.\n // Furthermore, this avoids any conflicts where the datepicker consumer might move focus\n // inside the `closed` event which is dispatched immediately.\n restoreFocus: false\n });\n this._dialogRef.afterClosed().subscribe(function () { return _this.close(); });\n this._dialogRef.componentInstance.datepicker = this;\n this._dialogRef.componentInstance.color = this.color;\n };\n /** Open the calendar as a popup. */\n MatDatepicker.prototype._openAsPopup = function () {\n var _this = this;\n var portal$1 = new portal.ComponentPortal(MatDatepickerContent, this._viewContainerRef);\n this._destroyPopup();\n this._createPopup();\n var ref = this._popupComponentRef = this._popupRef.attach(portal$1);\n ref.instance.datepicker = this;\n ref.instance.color = this.color;\n // Update the position once the calendar has rendered.\n this._ngZone.onStable.asObservable().pipe(operators.take(1)).subscribe(function () {\n _this._popupRef.updatePosition();\n });\n };\n /** Create the popup. */\n MatDatepicker.prototype._createPopup = function () {\n var _this = this;\n var overlayConfig = new overlay.OverlayConfig({\n positionStrategy: this._createPopupPositionStrategy(),\n hasBackdrop: true,\n backdropClass: 'mat-overlay-transparent-backdrop',\n direction: this._dir,\n scrollStrategy: this._scrollStrategy(),\n panelClass: 'mat-datepicker-popup',\n });\n this._popupRef = this._overlay.create(overlayConfig);\n this._popupRef.overlayElement.setAttribute('role', 'dialog');\n rxjs.merge(this._popupRef.backdropClick(), this._popupRef.detachments(), this._popupRef.keydownEvents().pipe(operators.filter(function (event) {\n // Closing on alt + up is only valid when there's an input associated with the datepicker.\n return event.keyCode === keycodes.ESCAPE ||\n (_this._datepickerInput && event.altKey && event.keyCode === keycodes.UP_ARROW);\n }))).subscribe(function (event) {\n if (event) {\n event.preventDefault();\n }\n _this.close();\n });\n };\n /** Destroys the current popup overlay. */\n MatDatepicker.prototype._destroyPopup = function () {\n if (this._popupRef) {\n this._popupRef.dispose();\n this._popupRef = this._popupComponentRef = null;\n }\n };\n /** Create the popup PositionStrategy. */\n MatDatepicker.prototype._createPopupPositionStrategy = function () {\n return this._overlay.position()\n .flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin())\n .withTransformOriginOn('.mat-datepicker-content')\n .withFlexibleDimensions(false)\n .withViewportMargin(8)\n .withLockedPosition()\n .withPositions([\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top'\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom'\n },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top'\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom'\n }\n ]);\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatDatepicker.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n MatDatepicker.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-datepicker',\n template: '',\n exportAs: 'matDatepicker',\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n encapsulation: i0.ViewEncapsulation.None\n }] }\n ];\n /** @nocollapse */\n MatDatepicker.ctorParameters = function () { return [\n { type: dialog.MatDialog },\n { type: overlay.Overlay },\n { type: i0.NgZone },\n { type: i0.ViewContainerRef },\n { type: undefined, decorators: [{ type: i0.Inject, args: [MAT_DATEPICKER_SCROLL_STRATEGY,] }] },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: bidi.Directionality, decorators: [{ type: i0.Optional }] },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [common.DOCUMENT,] }] }\n ]; };\n MatDatepicker.propDecorators = {\n calendarHeaderComponent: [{ type: i0.Input }],\n startAt: [{ type: i0.Input }],\n startView: [{ type: i0.Input }],\n color: [{ type: i0.Input }],\n touchUi: [{ type: i0.Input }],\n disabled: [{ type: i0.Input }],\n yearSelected: [{ type: i0.Output }],\n monthSelected: [{ type: i0.Output }],\n panelClass: [{ type: i0.Input }],\n dateClass: [{ type: i0.Input }],\n openedStream: [{ type: i0.Output, args: ['opened',] }],\n closedStream: [{ type: i0.Output, args: ['closed',] }],\n opened: [{ type: i0.Input }]\n };\n return MatDatepicker;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** @docs-private */\n var MAT_DATEPICKER_VALUE_ACCESSOR = {\n provide: forms.NG_VALUE_ACCESSOR,\n useExisting: i0.forwardRef(function () { return MatDatepickerInput; }),\n multi: true\n };\n /** @docs-private */\n var MAT_DATEPICKER_VALIDATORS = {\n provide: forms.NG_VALIDATORS,\n useExisting: i0.forwardRef(function () { return MatDatepickerInput; }),\n multi: true\n };\n /**\n * An event used for datepicker input and change events. We don't always have access to a native\n * input or change event because the event may have been triggered by the user clicking on the\n * calendar popup. For consistency, we always use MatDatepickerInputEvent instead.\n */\n var MatDatepickerInputEvent = /** @class */ (function () {\n function MatDatepickerInputEvent(\n /** Reference to the datepicker input component that emitted the event. */\n target, \n /** Reference to the native input element associated with the datepicker input. */\n targetElement) {\n this.target = target;\n this.targetElement = targetElement;\n this.value = this.target.value;\n }\n return MatDatepickerInputEvent;\n }());\n /** Directive used to connect an input to a MatDatepicker. */\n var MatDatepickerInput = /** @class */ (function () {\n function MatDatepickerInput(_elementRef, _dateAdapter, _dateFormats, _formField) {\n var _this = this;\n this._elementRef = _elementRef;\n this._dateAdapter = _dateAdapter;\n this._dateFormats = _dateFormats;\n this._formField = _formField;\n /** Emits when a `change` event is fired on this `<input>`. */\n this.dateChange = new i0.EventEmitter();\n /** Emits when an `input` event is fired on this `<input>`. */\n this.dateInput = new i0.EventEmitter();\n /** Emits when the value changes (either due to user input or programmatic change). */\n this._valueChange = new i0.EventEmitter();\n /** Emits when the disabled state has changed */\n this._disabledChange = new i0.EventEmitter();\n this._onTouched = function () { };\n this._cvaOnChange = function () { };\n this._validatorOnChange = function () { };\n this._datepickerSubscription = rxjs.Subscription.EMPTY;\n this._localeSubscription = rxjs.Subscription.EMPTY;\n /** The form control validator for whether the input parses. */\n this._parseValidator = function () {\n return _this._lastValueValid ?\n null : { 'matDatepickerParse': { 'text': _this._elementRef.nativeElement.value } };\n };\n /** The form control validator for the min date. */\n this._minValidator = function (control) {\n var controlValue = _this._getValidDateOrNull(_this._dateAdapter.deserialize(control.value));\n return (!_this.min || !controlValue ||\n _this._dateAdapter.compareDate(_this.min, controlValue) <= 0) ?\n null : { 'matDatepickerMin': { 'min': _this.min, 'actual': controlValue } };\n };\n /** The form control validator for the max date. */\n this._maxValidator = function (control) {\n var controlValue = _this._getValidDateOrNull(_this._dateAdapter.deserialize(control.value));\n return (!_this.max || !controlValue ||\n _this._dateAdapter.compareDate(_this.max, controlValue) >= 0) ?\n null : { 'matDatepickerMax': { 'max': _this.max, 'actual': controlValue } };\n };\n /** The form control validator for the date filter. */\n this._filterValidator = function (control) {\n var controlValue = _this._getValidDateOrNull(_this._dateAdapter.deserialize(control.value));\n return !_this._dateFilter || !controlValue || _this._dateFilter(controlValue) ?\n null : { 'matDatepickerFilter': true };\n };\n /** The combined form control validator for this input. */\n this._validator = forms.Validators.compose([this._parseValidator, this._minValidator, this._maxValidator, this._filterValidator]);\n /** Whether the last value set on the input was valid. */\n this._lastValueValid = false;\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n // Update the displayed date when the locale changes.\n this._localeSubscription = _dateAdapter.localeChanges.subscribe(function () {\n _this.value = _this.value;\n });\n }\n Object.defineProperty(MatDatepickerInput.prototype, \"matDatepicker\", {\n /** The datepicker that this input is associated with. */\n set: function (value) {\n var _this = this;\n if (!value) {\n return;\n }\n this._datepicker = value;\n this._datepicker._registerInput(this);\n this._datepickerSubscription.unsubscribe();\n this._datepickerSubscription = this._datepicker._selectedChanged.subscribe(function (selected) {\n _this.value = selected;\n _this._cvaOnChange(selected);\n _this._onTouched();\n _this.dateInput.emit(new MatDatepickerInputEvent(_this, _this._elementRef.nativeElement));\n _this.dateChange.emit(new MatDatepickerInputEvent(_this, _this._elementRef.nativeElement));\n });\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepickerInput.prototype, \"matDatepickerFilter\", {\n /** Function that can be used to filter out dates within the datepicker. */\n set: function (value) {\n this._dateFilter = value;\n this._validatorOnChange();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepickerInput.prototype, \"value\", {\n /** The value of the input. */\n get: function () { return this._value; },\n set: function (value) {\n value = this._dateAdapter.deserialize(value);\n this._lastValueValid = !value || this._dateAdapter.isValid(value);\n value = this._getValidDateOrNull(value);\n var oldDate = this.value;\n this._value = value;\n this._formatValue(value);\n if (!this._dateAdapter.sameDate(oldDate, value)) {\n this._valueChange.emit(value);\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepickerInput.prototype, \"min\", {\n /** The minimum valid date. */\n get: function () { return this._min; },\n set: function (value) {\n this._min = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n this._validatorOnChange();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepickerInput.prototype, \"max\", {\n /** The maximum valid date. */\n get: function () { return this._max; },\n set: function (value) {\n this._max = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\n this._validatorOnChange();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatDatepickerInput.prototype, \"disabled\", {\n /** Whether the datepicker-input is disabled. */\n get: function () { return !!this._disabled; },\n set: function (value) {\n var newValue = coercion.coerceBooleanProperty(value);\n var element = this._elementRef.nativeElement;\n if (this._disabled !== newValue) {\n this._disabled = newValue;\n this._disabledChange.emit(newValue);\n }\n // We need to null check the `blur` method, because it's undefined during SSR.\n // In Ivy static bindings are invoked earlier, before the element is attached to the DOM.\n // This can cause an error to be thrown in some browsers (IE/Edge) which assert that the\n // element has been inserted.\n if (newValue && this._isInitialized && element.blur) {\n // Normally, native input elements automatically blur if they turn disabled. This behavior\n // is problematic, because it would mean that it triggers another change detection cycle,\n // which then causes a changed after checked error if the input element was focused before.\n element.blur();\n }\n },\n enumerable: true,\n configurable: true\n });\n MatDatepickerInput.prototype.ngAfterViewInit = function () {\n this._isInitialized = true;\n };\n MatDatepickerInput.prototype.ngOnDestroy = function () {\n this._datepickerSubscription.unsubscribe();\n this._localeSubscription.unsubscribe();\n this._valueChange.complete();\n this._disabledChange.complete();\n };\n /** @docs-private */\n MatDatepickerInput.prototype.registerOnValidatorChange = function (fn) {\n this._validatorOnChange = fn;\n };\n /** @docs-private */\n MatDatepickerInput.prototype.validate = function (c) {\n return this._validator ? this._validator(c) : null;\n };\n /**\n * @deprecated\n * @breaking-change 8.0.0 Use `getConnectedOverlayOrigin` instead\n */\n MatDatepickerInput.prototype.getPopupConnectionElementRef = function () {\n return this.getConnectedOverlayOrigin();\n };\n /**\n * Gets the element that the datepicker popup should be connected to.\n * @return The element to connect the popup to.\n */\n MatDatepickerInput.prototype.getConnectedOverlayOrigin = function () {\n return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;\n };\n // Implemented as part of ControlValueAccessor.\n MatDatepickerInput.prototype.writeValue = function (value) {\n this.value = value;\n };\n // Implemented as part of ControlValueAccessor.\n MatDatepickerInput.prototype.registerOnChange = function (fn) {\n this._cvaOnChange = fn;\n };\n // Implemented as part of ControlValueAccessor.\n MatDatepickerInput.prototype.registerOnTouched = function (fn) {\n this._onTouched = fn;\n };\n // Implemented as part of ControlValueAccessor.\n MatDatepickerInput.prototype.setDisabledState = function (isDisabled) {\n this.disabled = isDisabled;\n };\n MatDatepickerInput.prototype._onKeydown = function (event) {\n var isAltDownArrow = event.altKey && event.keyCode === keycodes.DOWN_ARROW;\n if (this._datepicker && isAltDownArrow && !this._elementRef.nativeElement.readOnly) {\n this._datepicker.open();\n event.preventDefault();\n }\n };\n MatDatepickerInput.prototype._onInput = function (value) {\n var lastValueWasValid = this._lastValueValid;\n var date = this._dateAdapter.parse(value, this._dateFormats.parse.dateInput);\n this._lastValueValid = !date || this._dateAdapter.isValid(date);\n date = this._getValidDateOrNull(date);\n if (!this._dateAdapter.sameDate(date, this._value)) {\n this._value = date;\n this._cvaOnChange(date);\n this._valueChange.emit(date);\n this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));\n }\n else if (lastValueWasValid !== this._lastValueValid) {\n this._validatorOnChange();\n }\n };\n MatDatepickerInput.prototype._onChange = function () {\n this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));\n };\n /** Returns the palette used by the input's form field, if any. */\n MatDatepickerInput.prototype._getThemePalette = function () {\n return this._formField ? this._formField.color : undefined;\n };\n /** Handles blur events on the input. */\n MatDatepickerInput.prototype._onBlur = function () {\n // Reformat the input only if we have a valid value.\n if (this.value) {\n this._formatValue(this.value);\n }\n this._onTouched();\n };\n /** Formats a value and sets it on the input element. */\n MatDatepickerInput.prototype._formatValue = function (value) {\n this._elementRef.nativeElement.value =\n value ? this._dateAdapter.format(value, this._dateFormats.display.dateInput) : '';\n };\n /**\n * @param obj The object to check.\n * @returns The given object if it is both a date instance and valid, otherwise null.\n */\n MatDatepickerInput.prototype._getValidDateOrNull = function (obj) {\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\n };\n MatDatepickerInput.decorators = [\n { type: i0.Directive, args: [{\n selector: 'input[matDatepicker]',\n providers: [\n MAT_DATEPICKER_VALUE_ACCESSOR,\n MAT_DATEPICKER_VALIDATORS,\n { provide: input.MAT_INPUT_VALUE_ACCESSOR, useExisting: MatDatepickerInput },\n ],\n host: {\n '[attr.aria-haspopup]': '_datepicker ? \"dialog\" : null',\n '[attr.aria-owns]': '(_datepicker?.opened && _datepicker.id) || null',\n '[attr.min]': 'min ? _dateAdapter.toIso8601(min) : null',\n '[attr.max]': 'max ? _dateAdapter.toIso8601(max) : null',\n '[disabled]': 'disabled',\n '(input)': '_onInput($event.target.value)',\n '(change)': '_onChange()',\n '(blur)': '_onBlur()',\n '(keydown)': '_onKeydown($event)',\n },\n exportAs: 'matDatepickerInput',\n },] }\n ];\n /** @nocollapse */\n MatDatepickerInput.ctorParameters = function () { return [\n { type: i0.ElementRef },\n { type: core.DateAdapter, decorators: [{ type: i0.Optional }] },\n { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [core.MAT_DATE_FORMATS,] }] },\n { type: formField.MatFormField, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [formField.MAT_FORM_FIELD,] }] }\n ]; };\n MatDatepickerInput.propDecorators = {\n matDatepicker: [{ type: i0.Input }],\n matDatepickerFilter: [{ type: i0.Input }],\n value: [{ type: i0.Input }],\n min: [{ type: i0.Input }],\n max: [{ type: i0.Input }],\n disabled: [{ type: i0.Input }],\n dateChange: [{ type: i0.Output }],\n dateInput: [{ type: i0.Output }]\n };\n return MatDatepickerInput;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Can be used to override the icon of a `matDatepickerToggle`. */\n var MatDatepickerToggleIcon = /** @class */ (function () {\n function MatDatepickerToggleIcon() {\n }\n MatDatepickerToggleIcon.decorators = [\n { type: i0.Directive, args: [{\n selector: '[matDatepickerToggleIcon]'\n },] }\n ];\n return MatDatepickerToggleIcon;\n }());\n var MatDatepickerToggle = /** @class */ (function () {\n function MatDatepickerToggle(_intl, _changeDetectorRef, defaultTabIndex) {\n this._intl = _intl;\n this._changeDetectorRef = _changeDetectorRef;\n this._stateChanges = rxjs.Subscription.EMPTY;\n var parsedTabIndex = Number(defaultTabIndex);\n this.tabIndex = (parsedTabIndex || parsedTabIndex === 0) ? parsedTabIndex : null;\n }\n Object.defineProperty(MatDatepickerToggle.prototype, \"disabled\", {\n /** Whether the toggle button is disabled. */\n get: function () {\n if (this._disabled === undefined && this.datepicker) {\n return this.datepicker.disabled;\n }\n return !!this._disabled;\n },\n set: function (value) {\n this._disabled = coercion.coerceBooleanProperty(value);\n },\n enumerable: true,\n configurable: true\n });\n MatDatepickerToggle.prototype.ngOnChanges = function (changes) {\n if (changes['datepicker']) {\n this._watchStateChanges();\n }\n };\n MatDatepickerToggle.prototype.ngOnDestroy = function () {\n this._stateChanges.unsubscribe();\n };\n MatDatepickerToggle.prototype.ngAfterContentInit = function () {\n this._watchStateChanges();\n };\n MatDatepickerToggle.prototype._open = function (event) {\n if (this.datepicker && !this.disabled) {\n this.datepicker.open();\n event.stopPropagation();\n }\n };\n MatDatepickerToggle.prototype._watchStateChanges = function () {\n var _this = this;\n var datepickerDisabled = this.datepicker ? this.datepicker._disabledChange : rxjs.of();\n var inputDisabled = this.datepicker && this.datepicker._datepickerInput ?\n this.datepicker._datepickerInput._disabledChange : rxjs.of();\n var datepickerToggled = this.datepicker ?\n rxjs.merge(this.datepicker.openedStream, this.datepicker.closedStream) :\n rxjs.of();\n this._stateChanges.unsubscribe();\n this._stateChanges = rxjs.merge(this._intl.changes, datepickerDisabled, inputDisabled, datepickerToggled).subscribe(function () { return _this._changeDetectorRef.markForCheck(); });\n };\n MatDatepickerToggle.decorators = [\n { type: i0.Component, args: [{\n selector: 'mat-datepicker-toggle',\n template: \"<button\\n #button\\n mat-icon-button\\n type=\\\"button\\\"\\n [attr.aria-haspopup]=\\\"datepicker ? 'dialog' : null\\\"\\n [attr.aria-label]=\\\"_intl.openCalendarLabel\\\"\\n [attr.tabindex]=\\\"disabled ? -1 : tabIndex\\\"\\n [disabled]=\\\"disabled\\\"\\n [disableRipple]=\\\"disableRipple\\\"\\n (click)=\\\"_open($event)\\\">\\n\\n <svg\\n *ngIf=\\\"!_customIcon\\\"\\n class=\\\"mat-datepicker-toggle-default-icon\\\"\\n viewBox=\\\"0 0 24 24\\\"\\n width=\\\"24px\\\"\\n height=\\\"24px\\\"\\n fill=\\\"currentColor\\\"\\n focusable=\\\"false\\\">\\n <path d=\\\"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z\\\"/>\\n </svg>\\n\\n <ng-content select=\\\"[matDatepickerToggleIcon]\\\"></ng-content>\\n</button>\\n\",\n host: {\n 'class': 'mat-datepicker-toggle',\n // Always set the tabindex to -1 so that it doesn't overlap with any custom tabindex the\n // consumer may have provided, while still being able to receive focus.\n '[attr.tabindex]': 'disabled ? null : -1',\n '[class.mat-datepicker-toggle-active]': 'datepicker && datepicker.opened',\n '[class.mat-accent]': 'datepicker && datepicker.color === \"accent\"',\n '[class.mat-warn]': 'datepicker && datepicker.color === \"warn\"',\n '(focus)': '_button.focus()',\n },\n exportAs: 'matDatepickerToggle',\n encapsulation: i0.ViewEncapsulation.None,\n changeDetection: i0.ChangeDetectionStrategy.OnPush,\n styles: [\".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\\n\"]\n }] }\n ];\n /** @nocollapse */\n MatDatepickerToggle.ctorParameters = function () { return [\n { type: MatDatepickerIntl },\n { type: i0.ChangeDetectorRef },\n { type: String, decorators: [{ type: i0.Attribute, args: ['tabindex',] }] }\n ]; };\n MatDatepickerToggle.propDecorators = {\n datepicker: [{ type: i0.Input, args: ['for',] }],\n tabIndex: [{ type: i0.Input }],\n disabled: [{ type: i0.Input }],\n disableRipple: [{ type: i0.Input }],\n _customIcon: [{ type: i0.ContentChild, args: [MatDatepickerToggleIcon,] }],\n _button: [{ type: i0.ViewChild, args: ['button',] }]\n };\n return MatDatepickerToggle;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var MatDatepickerModule = /** @class */ (function () {\n function MatDatepickerModule() {\n }\n MatDatepickerModule.decorators = [\n { type: i0.NgModule, args: [{\n imports: [\n common.CommonModule,\n button.MatButtonModule,\n dialog.MatDialogModule,\n overlay.OverlayModule,\n a11y.A11yModule,\n portal.PortalModule,\n ],\n exports: [\n scrolling.CdkScrollableModule,\n MatCalendar,\n MatCalendarBody,\n MatDatepicker,\n MatDatepickerContent,\n MatDatepickerInput,\n MatDatepickerToggle,\n MatDatepickerToggleIcon,\n MatMonthView,\n MatYearView,\n MatMultiYearView,\n MatCalendarHeader,\n ],\n declarations: [\n MatCalendar,\n MatCalendarBody,\n MatDatepicker,\n MatDatepickerContent,\n MatDatepickerInput,\n MatDatepickerToggle,\n MatDatepickerToggleIcon,\n MatMonthView,\n MatYearView,\n MatMultiYearView,\n MatCalendarHeader,\n ],\n providers: [\n MatDatepickerIntl,\n MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,\n ],\n entryComponents: [\n MatDatepickerContent,\n MatCalendarHeader,\n ]\n },] }\n ];\n return MatDatepickerModule;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.MAT_DATEPICKER_SCROLL_STRATEGY = MAT_DATEPICKER_SCROLL_STRATEGY;\n exports.MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY = MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY;\n exports.MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER;\n exports.MAT_DATEPICKER_VALIDATORS = MAT_DATEPICKER_VALIDATORS;\n exports.MAT_DATEPICKER_VALUE_ACCESSOR = MAT_DATEPICKER_VALUE_ACCESSOR;\n exports.MatCalendar = MatCalendar;\n exports.MatCalendarBody = MatCalendarBody;\n exports.MatCalendarCell = MatCalendarCell;\n exports.MatCalendarHeader = MatCalendarHeader;\n exports.MatDatepicker = MatDatepicker;\n exports.MatDatepickerContent = MatDatepickerContent;\n exports.MatDatepickerInput = MatDatepickerInput;\n exports.MatDatepickerInputEvent = MatDatepickerInputEvent;\n exports.MatDatepickerIntl = MatDatepickerIntl;\n exports.MatDatepickerModule = MatDatepickerModule;\n exports.MatDatepickerToggle = MatDatepickerToggle;\n exports.MatDatepickerToggleIcon = MatDatepickerToggleIcon;\n exports.MatMonthView = MatMonthView;\n exports.MatMultiYearView = MatMultiYearView;\n exports.MatYearView = MatYearView;\n exports.matDatepickerAnimations = matDatepickerAnimations;\n exports.yearsPerPage = yearsPerPage;\n exports.yearsPerRow = yearsPerRow;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=material-datepicker.umd.js.map\n"]}