@angular/material 13.0.0-next.7 → 13.0.0-next.8

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 (1655) hide show
  1. package/autocomplete/autocomplete-module.d.ts +11 -7
  2. package/autocomplete/autocomplete-origin.d.ts +5 -0
  3. package/autocomplete/autocomplete-trigger.d.ts +5 -0
  4. package/autocomplete/autocomplete.d.ts +6 -1
  5. package/autocomplete/package.json +5 -5
  6. package/autocomplete/testing/package.json +5 -5
  7. package/badge/badge-module.d.ts +7 -7
  8. package/badge/badge.d.ts +4 -1
  9. package/badge/package.json +5 -5
  10. package/badge/testing/package.json +5 -5
  11. package/bottom-sheet/bottom-sheet-container.d.ts +3 -0
  12. package/bottom-sheet/bottom-sheet-module.d.ts +8 -7
  13. package/bottom-sheet/bottom-sheet.d.ts +3 -7
  14. package/bottom-sheet/package.json +5 -5
  15. package/bottom-sheet/testing/package.json +5 -5
  16. package/button/button-module.d.ts +6 -7
  17. package/button/button.d.ts +6 -1
  18. package/button/package.json +5 -5
  19. package/button/testing/package.json +5 -5
  20. package/button-toggle/button-toggle-module.d.ts +6 -7
  21. package/button-toggle/button-toggle.d.ts +6 -1
  22. package/button-toggle/package.json +5 -5
  23. package/button-toggle/testing/package.json +5 -5
  24. package/card/card-module.d.ts +6 -7
  25. package/card/card.d.ts +29 -7
  26. package/card/package.json +5 -5
  27. package/card/testing/package.json +5 -5
  28. package/checkbox/checkbox-module.d.ts +11 -7
  29. package/checkbox/checkbox-required-validator.d.ts +3 -0
  30. package/checkbox/checkbox.d.ts +4 -1
  31. package/checkbox/package.json +5 -5
  32. package/checkbox/testing/package.json +5 -5
  33. package/chips/chip-input.d.ts +3 -0
  34. package/chips/chip-list.d.ts +4 -1
  35. package/chips/chip.d.ts +10 -1
  36. package/chips/chips-module.d.ts +8 -7
  37. package/chips/package.json +5 -5
  38. package/chips/testing/package.json +5 -5
  39. package/core/common-behaviors/common-module.d.ts +5 -0
  40. package/core/common-behaviors/index.d.ts +1 -0
  41. package/core/datetime/index.d.ts +8 -7
  42. package/core/datetime/native-date-adapter.d.ts +3 -0
  43. package/core/error/error-options.d.ts +5 -7
  44. package/core/index.d.ts +0 -1
  45. package/core/line/line.d.ts +7 -0
  46. package/core/option/index.d.ts +10 -7
  47. package/core/option/optgroup.d.ts +6 -1
  48. package/core/option/option.d.ts +5 -0
  49. package/core/package.json +5 -5
  50. package/core/ripple/index.d.ts +7 -7
  51. package/core/ripple/ripple.d.ts +3 -0
  52. package/core/selection/index.d.ts +6 -7
  53. package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -7
  54. package/core/testing/package.json +5 -5
  55. package/datepicker/calendar-body.d.ts +3 -0
  56. package/datepicker/calendar.d.ts +5 -0
  57. package/datepicker/date-range-input-parts.d.ts +8 -1
  58. package/datepicker/date-range-input.d.ts +3 -0
  59. package/datepicker/date-range-picker.d.ts +3 -7
  60. package/datepicker/date-range-selection-strategy.d.ts +3 -0
  61. package/datepicker/date-selection-model.d.ts +7 -0
  62. package/datepicker/datepicker-actions.d.ts +7 -0
  63. package/datepicker/datepicker-base.d.ts +6 -1
  64. package/datepicker/datepicker-input-base.d.ts +3 -0
  65. package/datepicker/datepicker-input.d.ts +3 -0
  66. package/datepicker/datepicker-intl.d.ts +3 -7
  67. package/datepicker/datepicker-module.d.ts +24 -7
  68. package/datepicker/datepicker-toggle.d.ts +5 -0
  69. package/datepicker/datepicker.d.ts +3 -7
  70. package/datepicker/index.d.ts +0 -4
  71. package/datepicker/month-view.d.ts +3 -7
  72. package/datepicker/multi-year-view.d.ts +3 -7
  73. package/datepicker/package.json +5 -5
  74. package/datepicker/testing/package.json +5 -5
  75. package/datepicker/year-view.d.ts +3 -7
  76. package/dialog/dialog-container.d.ts +5 -0
  77. package/dialog/dialog-content-directives.d.ts +9 -0
  78. package/dialog/dialog-module.d.ts +9 -7
  79. package/dialog/dialog.d.ts +5 -7
  80. package/dialog/package.json +5 -5
  81. package/dialog/testing/dialog-harness.d.ts +14 -11
  82. package/dialog/testing/package.json +5 -5
  83. package/divider/divider-module.d.ts +6 -7
  84. package/divider/divider.d.ts +3 -7
  85. package/divider/package.json +5 -5
  86. package/divider/testing/package.json +5 -5
  87. package/esm2020/autocomplete/autocomplete-module.mjs +58 -0
  88. package/esm2020/autocomplete/autocomplete-origin.mjs +38 -0
  89. package/esm2020/autocomplete/autocomplete-trigger.mjs +651 -0
  90. package/esm2020/autocomplete/autocomplete.mjs +216 -0
  91. package/{esm2015/autocomplete/index.js → esm2020/autocomplete/index.mjs} +0 -0
  92. package/{esm2015/autocomplete/public-api.js → esm2020/autocomplete/public-api.mjs} +0 -0
  93. package/{esm2015/autocomplete/testing/autocomplete-harness-filters.js → esm2020/autocomplete/testing/autocomplete-harness-filters.mjs} +0 -0
  94. package/esm2020/autocomplete/testing/autocomplete-harness.mjs +101 -0
  95. package/{esm2015/autocomplete/testing/index.js → esm2020/autocomplete/testing/index.mjs} +0 -0
  96. package/{esm2015/autocomplete/testing/public-api.js → esm2020/autocomplete/testing/public-api.mjs} +0 -0
  97. package/esm2020/badge/badge-module.mjs +33 -0
  98. package/esm2020/badge/badge.mjs +228 -0
  99. package/{esm2015/badge/index.js → esm2020/badge/index.mjs} +0 -0
  100. package/{esm2015/badge/public-api.js → esm2020/badge/public-api.mjs} +0 -0
  101. package/{esm2015/badge/testing/badge-harness-filters.js → esm2020/badge/testing/badge-harness-filters.mjs} +0 -0
  102. package/esm2020/badge/testing/badge-harness.mjs +72 -0
  103. package/{esm2015/badge/testing/index.js → esm2020/badge/testing/index.mjs} +0 -0
  104. package/{esm2015/badge/testing/public-api.js → esm2020/badge/testing/public-api.mjs} +0 -0
  105. package/{esm2015/bottom-sheet/bottom-sheet-animations.js → esm2020/bottom-sheet/bottom-sheet-animations.mjs} +0 -0
  106. package/{esm2015/bottom-sheet/bottom-sheet-config.js → esm2020/bottom-sheet/bottom-sheet-config.mjs} +0 -0
  107. package/esm2020/bottom-sheet/bottom-sheet-container.mjs +230 -0
  108. package/esm2020/bottom-sheet/bottom-sheet-module.mjs +38 -0
  109. package/esm2020/bottom-sheet/bottom-sheet-ref.mjs +91 -0
  110. package/esm2020/bottom-sheet/bottom-sheet.mjs +172 -0
  111. package/{esm2015/bottom-sheet/index.js → esm2020/bottom-sheet/index.mjs} +0 -0
  112. package/{esm2015/bottom-sheet/public-api.js → esm2020/bottom-sheet/public-api.mjs} +0 -0
  113. package/{esm2015/bottom-sheet/testing/bottom-sheet-harness-filters.js → esm2020/bottom-sheet/testing/bottom-sheet-harness-filters.mjs} +0 -0
  114. package/esm2020/bottom-sheet/testing/bottom-sheet-harness.mjs +35 -0
  115. package/{esm2015/bottom-sheet/testing/index.js → esm2020/bottom-sheet/testing/index.mjs} +0 -0
  116. package/{esm2015/bottom-sheet/testing/public-api.js → esm2020/bottom-sheet/testing/public-api.mjs} +0 -0
  117. package/esm2020/button/button-module.mjs +42 -0
  118. package/esm2020/button/button.mjs +153 -0
  119. package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
  120. package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
  121. package/{esm2015/button/testing/button-harness-filters.js → esm2020/button/testing/button-harness-filters.mjs} +0 -0
  122. package/esm2020/button/testing/button-harness.mjs +51 -0
  123. package/{esm2015/button/testing/index.js → esm2020/button/testing/index.mjs} +0 -0
  124. package/{esm2015/button/testing/public-api.js → esm2020/button/testing/public-api.mjs} +0 -0
  125. package/esm2020/button-toggle/button-toggle-module.mjs +25 -0
  126. package/esm2020/button-toggle/button-toggle.mjs +470 -0
  127. package/{esm2015/button-toggle/index.js → esm2020/button-toggle/index.mjs} +0 -0
  128. package/{esm2015/button-toggle/public-api.js → esm2020/button-toggle/public-api.mjs} +0 -0
  129. package/{esm2015/button-toggle/testing/button-toggle-group-harness-filters.js → esm2020/button-toggle/testing/button-toggle-group-harness-filters.mjs} +0 -0
  130. package/esm2020/button-toggle/testing/button-toggle-group-harness.mjs +45 -0
  131. package/{esm2015/button-toggle/testing/button-toggle-harness-filters.js → esm2020/button-toggle/testing/button-toggle-harness-filters.mjs} +0 -0
  132. package/esm2020/button-toggle/testing/button-toggle-harness.mjs +98 -0
  133. package/{esm2015/button-toggle/testing/index.js → esm2020/button-toggle/testing/index.mjs} +0 -0
  134. package/{esm2015/button-toggle/testing/public-api.js → esm2020/button-toggle/testing/public-api.mjs} +0 -0
  135. package/esm2020/card/card-module.mjs +61 -0
  136. package/esm2020/card/card.mjs +247 -0
  137. package/{esm2015/card/index.js → esm2020/card/index.mjs} +0 -0
  138. package/{esm2015/card/public-api.js → esm2020/card/public-api.mjs} +0 -0
  139. package/{esm2015/card/testing/card-harness-filters.js → esm2020/card/testing/card-harness-filters.mjs} +0 -0
  140. package/esm2020/card/testing/card-harness.mjs +43 -0
  141. package/{esm2015/card/testing/index.js → esm2020/card/testing/index.mjs} +0 -0
  142. package/{esm2015/card/testing/public-api.js → esm2020/card/testing/public-api.mjs} +0 -0
  143. package/{esm2015/checkbox/checkbox-config.js → esm2020/checkbox/checkbox-config.mjs} +0 -0
  144. package/esm2020/checkbox/checkbox-module.mjs +46 -0
  145. package/esm2020/checkbox/checkbox-required-validator.mjs +33 -0
  146. package/esm2020/checkbox/checkbox.mjs +403 -0
  147. package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
  148. package/{esm2015/checkbox/public-api.js → esm2020/checkbox/public-api.mjs} +0 -0
  149. package/{esm2015/checkbox/testing/checkbox-harness-filters.js → esm2020/checkbox/testing/checkbox-harness-filters.mjs} +0 -0
  150. package/esm2020/checkbox/testing/checkbox-harness.mjs +123 -0
  151. package/{esm2015/checkbox/testing/index.js → esm2020/checkbox/testing/index.mjs} +0 -0
  152. package/{esm2015/checkbox/testing/public-api.js → esm2020/checkbox/testing/public-api.mjs} +0 -0
  153. package/{esm2015/chips/chip-default-options.js → esm2020/chips/chip-default-options.mjs} +0 -0
  154. package/esm2020/chips/chip-input.mjs +192 -0
  155. package/esm2020/chips/chip-list.mjs +673 -0
  156. package/{esm2015/chips/chip-text-control.js → esm2020/chips/chip-text-control.mjs} +0 -0
  157. package/esm2020/chips/chip.mjs +415 -0
  158. package/esm2020/chips/chips-module.mjs +64 -0
  159. package/{esm2015/chips/index.js → esm2020/chips/index.mjs} +0 -0
  160. package/{esm2015/chips/public-api.js → esm2020/chips/public-api.mjs} +0 -0
  161. package/{esm2015/chips/testing/chip-avatar-harness.js → esm2020/chips/testing/chip-avatar-harness.mjs} +0 -0
  162. package/{esm2015/chips/testing/chip-harness-filters.js → esm2020/chips/testing/chip-harness-filters.mjs} +0 -0
  163. package/esm2020/chips/testing/chip-harness.mjs +91 -0
  164. package/esm2020/chips/testing/chip-input-harness.mjs +82 -0
  165. package/esm2020/chips/testing/chip-list-harness.mjs +82 -0
  166. package/esm2020/chips/testing/chip-listbox-harness.mjs +44 -0
  167. package/esm2020/chips/testing/chip-option-harness.mjs +45 -0
  168. package/esm2020/chips/testing/chip-remove-harness.mjs +26 -0
  169. package/{esm2015/chips/testing/index.js → esm2020/chips/testing/index.mjs} +0 -0
  170. package/{esm2015/chips/testing/public-api.js → esm2020/chips/testing/public-api.mjs} +0 -0
  171. package/{esm2015/core/animation/animation.js → esm2020/core/animation/animation.mjs} +0 -0
  172. package/{esm2015/core/common-behaviors/color.js → esm2020/core/common-behaviors/color.mjs} +0 -0
  173. package/esm2020/core/common-behaviors/common-module.mjs +122 -0
  174. package/{esm2015/core/common-behaviors/constructor.js → esm2020/core/common-behaviors/constructor.mjs} +0 -0
  175. package/{esm2015/core/common-behaviors/disable-ripple.js → esm2020/core/common-behaviors/disable-ripple.mjs} +0 -0
  176. package/{esm2015/core/common-behaviors/disabled.js → esm2020/core/common-behaviors/disabled.mjs} +0 -0
  177. package/{esm2015/core/common-behaviors/error-state.js → esm2020/core/common-behaviors/error-state.mjs} +0 -0
  178. package/esm2020/core/common-behaviors/index.mjs +15 -0
  179. package/{esm2015/core/common-behaviors/initialized.js → esm2020/core/common-behaviors/initialized.mjs} +0 -0
  180. package/{esm2015/core/common-behaviors/tabindex.js → esm2020/core/common-behaviors/tabindex.mjs} +0 -0
  181. package/{esm2015/core/datetime/date-adapter.js → esm2020/core/datetime/date-adapter.mjs} +0 -0
  182. package/{esm2015/core/datetime/date-formats.js → esm2020/core/datetime/date-formats.mjs} +0 -0
  183. package/esm2020/core/datetime/index.mjs +47 -0
  184. package/esm2020/core/datetime/native-date-adapter.mjs +218 -0
  185. package/{esm2015/core/datetime/native-date-formats.js → esm2020/core/datetime/native-date-formats.mjs} +0 -0
  186. package/esm2020/core/error/error-options.mjs +33 -0
  187. package/esm2020/core/index.mjs +5 -0
  188. package/esm2020/core/line/line.mjs +64 -0
  189. package/esm2020/core/option/index.mjs +32 -0
  190. package/esm2020/core/option/optgroup.mjs +73 -0
  191. package/{esm2015/core/option/option-parent.js → esm2020/core/option/option-parent.mjs} +0 -0
  192. package/esm2020/core/option/option.mjs +276 -0
  193. package/{esm2015/core/public-api.js → esm2020/core/public-api.mjs} +0 -0
  194. package/esm2020/core/ripple/index.mjs +29 -0
  195. package/{esm2015/core/ripple/ripple-ref.js → esm2020/core/ripple/ripple-ref.mjs} +0 -0
  196. package/esm2020/core/ripple/ripple-renderer.mjs +261 -0
  197. package/esm2020/core/ripple/ripple.mjs +152 -0
  198. package/esm2020/core/selection/index.mjs +26 -0
  199. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +54 -0
  200. package/{esm2015/core/testing/index.js → esm2020/core/testing/index.mjs} +0 -0
  201. package/{esm2015/core/testing/optgroup-harness-filters.js → esm2020/core/testing/optgroup-harness-filters.mjs} +0 -0
  202. package/esm2020/core/testing/optgroup-harness.mjs +44 -0
  203. package/{esm2015/core/testing/option-harness-filters.js → esm2020/core/testing/option-harness-filters.mjs} +0 -0
  204. package/esm2020/core/testing/option-harness.mjs +54 -0
  205. package/{esm2015/core/testing/public-api.js → esm2020/core/testing/public-api.mjs} +0 -0
  206. package/esm2020/core/version.mjs +11 -0
  207. package/esm2020/datepicker/calendar-body.mjs +298 -0
  208. package/esm2020/datepicker/calendar.mjs +354 -0
  209. package/esm2020/datepicker/date-range-input-parts.mjs +342 -0
  210. package/esm2020/datepicker/date-range-input.mjs +331 -0
  211. package/esm2020/datepicker/date-range-picker.mjs +48 -0
  212. package/esm2020/datepicker/date-range-selection-strategy.mjs +59 -0
  213. package/esm2020/datepicker/date-selection-model.mjs +187 -0
  214. package/esm2020/datepicker/datepicker-actions.mjs +89 -0
  215. package/{esm2015/datepicker/datepicker-animations.js → esm2020/datepicker/datepicker-animations.mjs} +0 -0
  216. package/esm2020/datepicker/datepicker-base.mjs +549 -0
  217. package/{esm2015/datepicker/datepicker-errors.js → esm2020/datepicker/datepicker-errors.mjs} +0 -0
  218. package/esm2020/datepicker/datepicker-input-base.mjs +298 -0
  219. package/esm2020/datepicker/datepicker-input.mjs +183 -0
  220. package/esm2020/datepicker/datepicker-intl.mjs +53 -0
  221. package/esm2020/datepicker/datepicker-module.mjs +148 -0
  222. package/esm2020/datepicker/datepicker-toggle.mjs +113 -0
  223. package/esm2020/datepicker/datepicker.mjs +37 -0
  224. package/esm2020/datepicker/index.mjs +5 -0
  225. package/esm2020/datepicker/month-view.mjs +364 -0
  226. package/esm2020/datepicker/multi-year-view.mjs +289 -0
  227. package/{esm2015/datepicker/public-api.js → esm2020/datepicker/public-api.mjs} +0 -0
  228. package/esm2020/datepicker/testing/calendar-cell-harness.mjs +138 -0
  229. package/esm2020/datepicker/testing/calendar-harness.mjs +76 -0
  230. package/esm2020/datepicker/testing/date-range-input-harness.mjs +99 -0
  231. package/{esm2015/datepicker/testing/datepicker-harness-filters.js → esm2020/datepicker/testing/datepicker-harness-filters.mjs} +0 -0
  232. package/esm2020/datepicker/testing/datepicker-input-harness-base.mjs +81 -0
  233. package/esm2020/datepicker/testing/datepicker-input-harness.mjs +58 -0
  234. package/esm2020/datepicker/testing/datepicker-toggle-harness.mjs +41 -0
  235. package/esm2020/datepicker/testing/datepicker-trigger-harness-base.mjs +65 -0
  236. package/{esm2015/datepicker/testing/index.js → esm2020/datepicker/testing/index.mjs} +0 -0
  237. package/{esm2015/datepicker/testing/public-api.js → esm2020/datepicker/testing/public-api.mjs} +0 -0
  238. package/esm2020/datepicker/year-view.mjs +281 -0
  239. package/{esm2015/dialog/dialog-animations.js → esm2020/dialog/dialog-animations.mjs} +0 -0
  240. package/{esm2015/dialog/dialog-config.js → esm2020/dialog/dialog-config.mjs} +0 -0
  241. package/esm2020/dialog/dialog-container.mjs +282 -0
  242. package/esm2020/dialog/dialog-content-directives.mjs +172 -0
  243. package/esm2020/dialog/dialog-module.mjs +69 -0
  244. package/esm2020/dialog/dialog-ref.mjs +196 -0
  245. package/esm2020/dialog/dialog.mjs +358 -0
  246. package/{esm2015/dialog/index.js → esm2020/dialog/index.mjs} +0 -0
  247. package/{esm2015/dialog/public-api.js → esm2020/dialog/public-api.mjs} +0 -0
  248. package/{esm2015/dialog/testing/dialog-harness-filters.js → esm2020/dialog/testing/dialog-harness-filters.mjs} +0 -0
  249. package/esm2020/dialog/testing/dialog-harness.mjs +83 -0
  250. package/{esm2015/dialog/testing/index.js → esm2020/dialog/testing/index.mjs} +0 -0
  251. package/{esm2015/dialog/testing/public-api.js → esm2020/dialog/testing/public-api.mjs} +0 -0
  252. package/esm2020/divider/divider-module.mjs +25 -0
  253. package/esm2020/divider/divider.mjs +40 -0
  254. package/{esm2015/divider/index.js → esm2020/divider/index.mjs} +0 -0
  255. package/{esm2015/divider/public-api.js → esm2020/divider/public-api.mjs} +0 -0
  256. package/{esm2015/divider/testing/divider-harness-filters.js → esm2020/divider/testing/divider-harness-filters.mjs} +0 -0
  257. package/esm2020/divider/testing/divider-harness.mjs +22 -0
  258. package/{esm2015/divider/testing/index.js → esm2020/divider/testing/index.mjs} +0 -0
  259. package/{esm2015/divider/testing/public-api.js → esm2020/divider/testing/public-api.mjs} +0 -0
  260. package/{esm2015/expansion/accordion-base.js → esm2020/expansion/accordion-base.mjs} +0 -0
  261. package/esm2020/expansion/accordion.mjs +93 -0
  262. package/{esm2015/expansion/expansion-animations.js → esm2020/expansion/expansion-animations.mjs} +0 -0
  263. package/esm2020/expansion/expansion-module.mjs +59 -0
  264. package/esm2020/expansion/expansion-panel-content.mjs +27 -0
  265. package/esm2020/expansion/expansion-panel-header.mjs +226 -0
  266. package/esm2020/expansion/expansion-panel.mjs +195 -0
  267. package/{esm2015/expansion/index.js → esm2020/expansion/index.mjs} +0 -0
  268. package/{esm2015/expansion/public-api.js → esm2020/expansion/public-api.mjs} +0 -0
  269. package/esm2020/expansion/testing/accordion-harness.mjs +31 -0
  270. package/{esm2015/expansion/testing/expansion-harness-filters.js → esm2020/expansion/testing/expansion-harness-filters.mjs} +0 -0
  271. package/esm2020/expansion/testing/expansion-harness.mjs +120 -0
  272. package/{esm2015/expansion/testing/index.js → esm2020/expansion/testing/index.mjs} +0 -0
  273. package/{esm2015/expansion/testing/public-api.js → esm2020/expansion/testing/public-api.mjs} +0 -0
  274. package/esm2020/form-field/error.mjs +47 -0
  275. package/{esm2015/form-field/form-field-animations.js → esm2020/form-field/form-field-animations.mjs} +0 -0
  276. package/esm2020/form-field/form-field-control.mjs +11 -0
  277. package/{esm2015/form-field/form-field-errors.js → esm2020/form-field/form-field-errors.mjs} +0 -0
  278. package/esm2020/form-field/form-field-module.mjs +73 -0
  279. package/esm2020/form-field/form-field.mjs +510 -0
  280. package/esm2020/form-field/hint.mjs +49 -0
  281. package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
  282. package/esm2020/form-field/label.mjs +21 -0
  283. package/esm2020/form-field/placeholder.mjs +26 -0
  284. package/esm2020/form-field/prefix.mjs +28 -0
  285. package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
  286. package/esm2020/form-field/suffix.mjs +28 -0
  287. package/{esm2015/form-field/testing/control/form-field-control-harness.js → esm2020/form-field/testing/control/form-field-control-harness.mjs} +0 -0
  288. package/{esm2015/form-field/testing/control/index.js → esm2020/form-field/testing/control/index.mjs} +0 -0
  289. package/{esm2015/form-field/testing/form-field-harness-filters.js → esm2020/form-field/testing/form-field-harness-filters.mjs} +0 -0
  290. package/esm2020/form-field/testing/form-field-harness.mjs +181 -0
  291. package/{esm2015/form-field/testing/index.js → esm2020/form-field/testing/index.mjs} +0 -0
  292. package/{esm2015/form-field/testing/public-api.js → esm2020/form-field/testing/public-api.mjs} +0 -0
  293. package/{esm2015/grid-list/grid-list-base.js → esm2020/grid-list/grid-list-base.mjs} +0 -0
  294. package/esm2020/grid-list/grid-list-module.mjs +55 -0
  295. package/esm2020/grid-list/grid-list.mjs +135 -0
  296. package/esm2020/grid-list/grid-tile.mjs +117 -0
  297. package/esm2020/grid-list/index.mjs +5 -0
  298. package/{esm2015/grid-list/public-api.js → esm2020/grid-list/public-api.mjs} +0 -0
  299. package/{esm2015/grid-list/testing/grid-list-harness-filters.js → esm2020/grid-list/testing/grid-list-harness-filters.mjs} +0 -0
  300. package/esm2020/grid-list/testing/grid-list-harness.mjs +72 -0
  301. package/esm2020/grid-list/testing/grid-tile-harness.mjs +65 -0
  302. package/{esm2015/grid-list/testing/index.js → esm2020/grid-list/testing/index.mjs} +0 -0
  303. package/{esm2015/grid-list/testing/public-api.js → esm2020/grid-list/testing/public-api.mjs} +0 -0
  304. package/{esm2015/grid-list/tile-coordinator.js → esm2020/grid-list/tile-coordinator.mjs} +0 -0
  305. package/{esm2015/grid-list/tile-styler.js → esm2020/grid-list/tile-styler.mjs} +0 -0
  306. package/{esm2015/icon/fake-svgs.js → esm2020/icon/fake-svgs.mjs} +0 -0
  307. package/esm2020/icon/icon-module.mjs +25 -0
  308. package/esm2020/icon/icon-registry.mjs +582 -0
  309. package/esm2020/icon/icon.mjs +357 -0
  310. package/{esm2015/icon/index.js → esm2020/icon/index.mjs} +0 -0
  311. package/{esm2015/icon/public-api.js → esm2020/icon/public-api.mjs} +0 -0
  312. package/esm2020/icon/testing/fake-icon-registry.mjs +92 -0
  313. package/{esm2015/icon/testing/icon-harness-filters.js → esm2020/icon/testing/icon-harness-filters.mjs} +0 -0
  314. package/esm2020/icon/testing/icon-harness.mjs +54 -0
  315. package/{esm2015/icon/testing/index.js → esm2020/icon/testing/index.mjs} +0 -0
  316. package/{esm2015/icon/testing/public-api.js → esm2020/icon/testing/public-api.mjs} +0 -0
  317. package/esm2020/icon/trusted-types.mjs +43 -0
  318. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  319. package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
  320. package/{esm2015/input/input-errors.js → esm2020/input/input-errors.mjs} +0 -0
  321. package/esm2020/input/input-module.mjs +51 -0
  322. package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
  323. package/esm2020/input/input.mjs +428 -0
  324. package/{esm2015/input/public-api.js → esm2020/input/public-api.mjs} +0 -0
  325. package/{esm2015/input/testing/index.js → esm2020/input/testing/index.mjs} +0 -0
  326. package/{esm2015/input/testing/input-harness-filters.js → esm2020/input/testing/input-harness-filters.mjs} +0 -0
  327. package/esm2020/input/testing/input-harness.mjs +113 -0
  328. package/esm2020/input/testing/native-option-harness.mjs +42 -0
  329. package/{esm2015/input/testing/native-select-harness-filters.js → esm2020/input/testing/native-select-harness-filters.mjs} +0 -0
  330. package/esm2020/input/testing/native-select-harness.mjs +79 -0
  331. package/{esm2015/input/testing/public-api.js → esm2020/input/testing/public-api.mjs} +0 -0
  332. package/{esm2015/list/index.js → esm2020/list/index.mjs} +0 -0
  333. package/esm2020/list/list-module.mjs +71 -0
  334. package/esm2020/list/list.mjs +216 -0
  335. package/{esm2015/list/public-api.js → esm2020/list/public-api.mjs} +0 -0
  336. package/esm2020/list/selection-list.mjs +612 -0
  337. package/esm2020/list/testing/action-list-harness.mjs +59 -0
  338. package/{esm2015/list/testing/index.js → esm2020/list/testing/index.mjs} +0 -0
  339. package/esm2020/list/testing/list-harness-base.mjs +88 -0
  340. package/{esm2015/list/testing/list-harness-filters.js → esm2020/list/testing/list-harness-filters.mjs} +0 -0
  341. package/{esm2015/list/testing/list-harness.js → esm2020/list/testing/list-harness.mjs} +0 -0
  342. package/esm2020/list/testing/list-item-harness-base.mjs +72 -0
  343. package/esm2020/list/testing/nav-list-harness.mjs +64 -0
  344. package/{esm2015/list/testing/public-api.js → esm2020/list/testing/public-api.mjs} +0 -0
  345. package/esm2020/list/testing/selection-list-harness.mjs +125 -0
  346. package/esm2020/menu/index.mjs +5 -0
  347. package/{esm2015/menu/menu-animations.js → esm2020/menu/menu-animations.mjs} +0 -0
  348. package/esm2020/menu/menu-content.mjs +97 -0
  349. package/{esm2015/menu/menu-errors.js → esm2020/menu/menu-errors.mjs} +0 -0
  350. package/esm2020/menu/menu-item.mjs +164 -0
  351. package/esm2020/menu/menu-module.mjs +58 -0
  352. package/{esm2015/menu/menu-panel.js → esm2020/menu/menu-panel.mjs} +0 -0
  353. package/{esm2015/menu/menu-positions.js → esm2020/menu/menu-positions.mjs} +0 -0
  354. package/esm2020/menu/menu-trigger.mjs +540 -0
  355. package/esm2020/menu/menu.mjs +401 -0
  356. package/{esm2015/menu/public-api.js → esm2020/menu/public-api.mjs} +0 -0
  357. package/{esm2015/menu/testing/index.js → esm2020/menu/testing/index.mjs} +0 -0
  358. package/{esm2015/menu/testing/menu-harness-filters.js → esm2020/menu/testing/menu-harness-filters.mjs} +0 -0
  359. package/esm2020/menu/testing/menu-harness.mjs +183 -0
  360. package/{esm2015/menu/testing/public-api.js → esm2020/menu/testing/public-api.mjs} +0 -0
  361. package/{esm2015/paginator/index.js → esm2020/paginator/index.mjs} +0 -0
  362. package/esm2020/paginator/paginator-intl.mjs +64 -0
  363. package/esm2020/paginator/paginator-module.mjs +47 -0
  364. package/esm2020/paginator/paginator.mjs +268 -0
  365. package/{esm2015/paginator/public-api.js → esm2020/paginator/public-api.mjs} +0 -0
  366. package/{esm2015/paginator/testing/index.js → esm2020/paginator/testing/index.mjs} +0 -0
  367. package/{esm2015/paginator/testing/paginator-harness-filters.js → esm2020/paginator/testing/paginator-harness-filters.mjs} +0 -0
  368. package/esm2020/paginator/testing/paginator-harness.mjs +91 -0
  369. package/{esm2015/paginator/testing/public-api.js → esm2020/paginator/testing/public-api.mjs} +0 -0
  370. package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
  371. package/esm2020/progress-bar/progress-bar-module.mjs +26 -0
  372. package/esm2020/progress-bar/progress-bar.mjs +187 -0
  373. package/{esm2015/progress-bar/public-api.js → esm2020/progress-bar/public-api.mjs} +0 -0
  374. package/{esm2015/progress-bar/testing/index.js → esm2020/progress-bar/testing/index.mjs} +0 -0
  375. package/{esm2015/progress-bar/testing/progress-bar-harness-filters.js → esm2020/progress-bar/testing/progress-bar-harness-filters.mjs} +0 -0
  376. package/esm2020/progress-bar/testing/progress-bar-harness.mjs +34 -0
  377. package/{esm2015/progress-bar/testing/public-api.js → esm2020/progress-bar/testing/public-api.mjs} +0 -0
  378. package/{esm2015/progress-spinner/index.js → esm2020/progress-spinner/index.mjs} +0 -0
  379. package/esm2020/progress-spinner/progress-spinner-module.mjs +36 -0
  380. package/esm2020/progress-spinner/progress-spinner.mjs +280 -0
  381. package/{esm2015/progress-spinner/public-api.js → esm2020/progress-spinner/public-api.mjs} +0 -0
  382. package/{esm2015/progress-spinner/testing/index.js → esm2020/progress-spinner/testing/index.mjs} +0 -0
  383. package/{esm2015/progress-spinner/testing/progress-spinner-harness-filters.js → esm2020/progress-spinner/testing/progress-spinner-harness-filters.mjs} +0 -0
  384. package/esm2020/progress-spinner/testing/progress-spinner-harness.mjs +35 -0
  385. package/{esm2015/progress-spinner/testing/public-api.js → esm2020/progress-spinner/testing/public-api.mjs} +0 -0
  386. package/{esm2015/radio/index.js → esm2020/radio/index.mjs} +0 -0
  387. package/{esm2015/radio/public-api.js → esm2020/radio/public-api.mjs} +0 -0
  388. package/esm2020/radio/radio-module.mjs +25 -0
  389. package/esm2020/radio/radio.mjs +570 -0
  390. package/{esm2015/radio/testing/index.js → esm2020/radio/testing/index.mjs} +0 -0
  391. package/{esm2015/radio/testing/public-api.js → esm2020/radio/testing/public-api.mjs} +0 -0
  392. package/{esm2015/radio/testing/radio-harness-filters.js → esm2020/radio/testing/radio-harness-filters.mjs} +0 -0
  393. package/esm2020/radio/testing/radio-harness.mjs +231 -0
  394. package/{esm2015/select/index.js → esm2020/select/index.mjs} +0 -0
  395. package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
  396. package/{esm2015/select/select-animations.js → esm2020/select/select-animations.mjs} +0 -0
  397. package/{esm2015/select/select-errors.js → esm2020/select/select-errors.mjs} +0 -0
  398. package/esm2020/select/select-module.mjs +58 -0
  399. package/esm2020/select/select.mjs +1188 -0
  400. package/{esm2015/select/testing/index.js → esm2020/select/testing/index.mjs} +0 -0
  401. package/{esm2015/select/testing/public-api.js → esm2020/select/testing/public-api.mjs} +0 -0
  402. package/{esm2015/select/testing/select-harness-filters.js → esm2020/select/testing/select-harness-filters.mjs} +0 -0
  403. package/esm2020/select/testing/select-harness.mjs +130 -0
  404. package/{esm2015/sidenav/drawer-animations.js → esm2020/sidenav/drawer-animations.mjs} +0 -0
  405. package/esm2020/sidenav/drawer.mjs +788 -0
  406. package/esm2020/sidenav/index.mjs +5 -0
  407. package/{esm2015/sidenav/public-api.js → esm2020/sidenav/public-api.mjs} +0 -0
  408. package/esm2020/sidenav/sidenav-module.mjs +71 -0
  409. package/esm2020/sidenav/sidenav.mjs +115 -0
  410. package/esm2020/sidenav/testing/drawer-container-harness.mjs +36 -0
  411. package/{esm2015/sidenav/testing/drawer-content-harness.js → esm2020/sidenav/testing/drawer-content-harness.mjs} +0 -0
  412. package/{esm2015/sidenav/testing/drawer-harness-filters.js → esm2020/sidenav/testing/drawer-harness-filters.mjs} +0 -0
  413. package/esm2020/sidenav/testing/drawer-harness.mjs +50 -0
  414. package/{esm2015/sidenav/testing/index.js → esm2020/sidenav/testing/index.mjs} +0 -0
  415. package/{esm2015/sidenav/testing/public-api.js → esm2020/sidenav/testing/public-api.mjs} +0 -0
  416. package/esm2020/sidenav/testing/sidenav-container-harness.mjs +36 -0
  417. package/{esm2015/sidenav/testing/sidenav-content-harness.js → esm2020/sidenav/testing/sidenav-content-harness.mjs} +0 -0
  418. package/esm2020/sidenav/testing/sidenav-harness.mjs +29 -0
  419. package/{esm2015/slide-toggle/index.js → esm2020/slide-toggle/index.mjs} +0 -0
  420. package/{esm2015/slide-toggle/public-api.js → esm2020/slide-toggle/public-api.mjs} +0 -0
  421. package/{esm2015/slide-toggle/slide-toggle-config.js → esm2020/slide-toggle/slide-toggle-config.mjs} +0 -0
  422. package/esm2020/slide-toggle/slide-toggle-module.mjs +57 -0
  423. package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +36 -0
  424. package/esm2020/slide-toggle/slide-toggle.mjs +253 -0
  425. package/{esm2015/slide-toggle/testing/index.js → esm2020/slide-toggle/testing/index.mjs} +0 -0
  426. package/{esm2015/slide-toggle/testing/public-api.js → esm2020/slide-toggle/testing/public-api.mjs} +0 -0
  427. package/{esm2015/slide-toggle/testing/slide-toggle-harness-filters.js → esm2020/slide-toggle/testing/slide-toggle-harness-filters.mjs} +0 -0
  428. package/esm2020/slide-toggle/testing/slide-toggle-harness.mjs +110 -0
  429. package/{esm2015/slider/index.js → esm2020/slider/index.mjs} +0 -0
  430. package/{esm2015/slider/public-api.js → esm2020/slider/public-api.mjs} +0 -0
  431. package/esm2020/slider/slider-module.mjs +26 -0
  432. package/esm2020/slider/slider.mjs +801 -0
  433. package/{esm2015/slider/testing/index.js → esm2020/slider/testing/index.mjs} +0 -0
  434. package/{esm2015/slider/testing/public-api.js → esm2020/slider/testing/public-api.mjs} +0 -0
  435. package/{esm2015/slider/testing/slider-harness-filters.js → esm2020/slider/testing/slider-harness-filters.mjs} +0 -0
  436. package/esm2020/slider/testing/slider-harness.mjs +114 -0
  437. package/{esm2015/snack-bar/index.js → esm2020/snack-bar/index.mjs} +0 -0
  438. package/{esm2015/snack-bar/public-api.js → esm2020/snack-bar/public-api.mjs} +0 -0
  439. package/esm2020/snack-bar/simple-snack-bar.mjs +44 -0
  440. package/{esm2015/snack-bar/snack-bar-animations.js → esm2020/snack-bar/snack-bar-animations.mjs} +0 -0
  441. package/{esm2015/snack-bar/snack-bar-config.js → esm2020/snack-bar/snack-bar-config.mjs} +0 -0
  442. package/esm2020/snack-bar/snack-bar-container.mjs +205 -0
  443. package/esm2020/snack-bar/snack-bar-module.mjs +47 -0
  444. package/esm2020/snack-bar/snack-bar-ref.mjs +90 -0
  445. package/esm2020/snack-bar/snack-bar.mjs +265 -0
  446. package/{esm2015/snack-bar/testing/index.js → esm2020/snack-bar/testing/index.mjs} +0 -0
  447. package/{esm2015/snack-bar/testing/public-api.js → esm2020/snack-bar/testing/public-api.mjs} +0 -0
  448. package/{esm2015/snack-bar/testing/snack-bar-harness-filters.js → esm2020/snack-bar/testing/snack-bar-harness-filters.mjs} +0 -0
  449. package/esm2020/snack-bar/testing/snack-bar-harness.mjs +118 -0
  450. package/{esm2015/sort/index.js → esm2020/sort/index.mjs} +0 -0
  451. package/{esm2015/sort/public-api.js → esm2020/sort/public-api.mjs} +0 -0
  452. package/{esm2015/sort/sort-animations.js → esm2020/sort/sort-animations.mjs} +0 -0
  453. package/{esm2015/sort/sort-direction.js → esm2020/sort/sort-direction.mjs} +0 -0
  454. package/{esm2015/sort/sort-errors.js → esm2020/sort/sort-errors.mjs} +0 -0
  455. package/esm2020/sort/sort-header-intl.mjs +43 -0
  456. package/esm2020/sort/sort-header.mjs +275 -0
  457. package/esm2020/sort/sort-module.mjs +29 -0
  458. package/esm2020/sort/sort.mjs +154 -0
  459. package/{esm2015/sort/testing/index.js → esm2020/sort/testing/index.mjs} +0 -0
  460. package/{esm2015/sort/testing/public-api.js → esm2020/sort/testing/public-api.mjs} +0 -0
  461. package/{esm2015/sort/testing/sort-harness-filters.js → esm2020/sort/testing/sort-harness-filters.mjs} +0 -0
  462. package/esm2020/sort/testing/sort-harness.mjs +36 -0
  463. package/esm2020/sort/testing/sort-header-harness.mjs +56 -0
  464. package/{esm2015/stepper/index.js → esm2020/stepper/index.mjs} +0 -0
  465. package/{esm2015/stepper/public-api.js → esm2020/stepper/public-api.mjs} +0 -0
  466. package/esm2020/stepper/step-content.mjs +26 -0
  467. package/esm2020/stepper/step-header.mjs +110 -0
  468. package/esm2020/stepper/step-label.mjs +21 -0
  469. package/{esm2015/stepper/stepper-animations.js → esm2020/stepper/stepper-animations.mjs} +0 -0
  470. package/esm2020/stepper/stepper-button.mjs +43 -0
  471. package/esm2020/stepper/stepper-icon.mjs +29 -0
  472. package/esm2020/stepper/stepper-intl.mjs +43 -0
  473. package/esm2020/stepper/stepper-module.mjs +97 -0
  474. package/esm2020/stepper/stepper.mjs +213 -0
  475. package/{esm2015/stepper/testing/index.js → esm2020/stepper/testing/index.mjs} +0 -0
  476. package/{esm2015/stepper/testing/public-api.js → esm2020/stepper/testing/public-api.mjs} +0 -0
  477. package/{esm2015/stepper/testing/step-harness-filters.js → esm2020/stepper/testing/step-harness-filters.mjs} +0 -0
  478. package/esm2020/stepper/testing/step-harness.mjs +90 -0
  479. package/esm2020/stepper/testing/stepper-button-harnesses.mjs +50 -0
  480. package/esm2020/stepper/testing/stepper-harness.mjs +50 -0
  481. package/esm2020/table/cell.mjs +139 -0
  482. package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
  483. package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
  484. package/esm2020/table/row.mjs +139 -0
  485. package/esm2020/table/table-data-source.mjs +310 -0
  486. package/esm2020/table/table-module.mjs +101 -0
  487. package/esm2020/table/table.mjs +71 -0
  488. package/esm2020/table/testing/cell-harness.mjs +72 -0
  489. package/{esm2015/table/testing/index.js → esm2020/table/testing/index.mjs} +0 -0
  490. package/{esm2015/table/testing/public-api.js → esm2020/table/testing/public-api.mjs} +0 -0
  491. package/esm2020/table/testing/row-harness.mjs +84 -0
  492. package/{esm2015/table/testing/table-harness-filters.js → esm2020/table/testing/table-harness-filters.mjs} +0 -0
  493. package/esm2020/table/testing/table-harness.mjs +88 -0
  494. package/esm2020/table/text-column.mjs +58 -0
  495. package/esm2020/tabs/index.mjs +5 -0
  496. package/esm2020/tabs/ink-bar.mjs +93 -0
  497. package/esm2020/tabs/paginated-tab-header.mjs +480 -0
  498. package/{esm2015/tabs/public-api.js → esm2020/tabs/public-api.mjs} +0 -0
  499. package/esm2020/tabs/tab-body.mjs +214 -0
  500. package/{esm2015/tabs/tab-config.js → esm2020/tabs/tab-config.mjs} +0 -0
  501. package/esm2020/tabs/tab-content.mjs +32 -0
  502. package/esm2020/tabs/tab-group.mjs +382 -0
  503. package/esm2020/tabs/tab-header.mjs +101 -0
  504. package/esm2020/tabs/tab-label-wrapper.mjs +41 -0
  505. package/esm2020/tabs/tab-label.mjs +43 -0
  506. package/{esm2015/tabs/tab-nav-bar/index.js → esm2020/tabs/tab-nav-bar/index.mjs} +0 -0
  507. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +263 -0
  508. package/esm2020/tabs/tab.mjs +106 -0
  509. package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
  510. package/esm2020/tabs/tabs-module.mjs +93 -0
  511. package/{esm2015/tabs/testing/index.js → esm2020/tabs/testing/index.mjs} +0 -0
  512. package/{esm2015/tabs/testing/public-api.js → esm2020/tabs/testing/public-api.mjs} +0 -0
  513. package/esm2020/tabs/testing/tab-group-harness.mjs +58 -0
  514. package/{esm2015/tabs/testing/tab-harness-filters.js → esm2020/tabs/testing/tab-harness-filters.mjs} +0 -0
  515. package/esm2020/tabs/testing/tab-harness.mjs +66 -0
  516. package/esm2020/tabs/testing/tab-link-harness.mjs +42 -0
  517. package/esm2020/tabs/testing/tab-nav-bar-harness.mjs +54 -0
  518. package/{esm2015/toolbar/index.js → esm2020/toolbar/index.mjs} +0 -0
  519. package/{esm2015/toolbar/public-api.js → esm2020/toolbar/public-api.mjs} +0 -0
  520. package/{esm2015/toolbar/testing/index.js → esm2020/toolbar/testing/index.mjs} +0 -0
  521. package/{esm2015/toolbar/testing/public-api.js → esm2020/toolbar/testing/public-api.mjs} +0 -0
  522. package/{esm2015/toolbar/testing/toolbar-harness-filters.js → esm2020/toolbar/testing/toolbar-harness-filters.mjs} +0 -0
  523. package/esm2020/toolbar/testing/toolbar-harness.mjs +40 -0
  524. package/esm2020/toolbar/toolbar-module.mjs +25 -0
  525. package/esm2020/toolbar/toolbar.mjs +88 -0
  526. package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
  527. package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
  528. package/{esm2015/tooltip/testing/index.js → esm2020/tooltip/testing/index.mjs} +0 -0
  529. package/{esm2015/tooltip/testing/public-api.js → esm2020/tooltip/testing/public-api.mjs} +0 -0
  530. package/{esm2015/tooltip/testing/tooltip-harness-filters.js → esm2020/tooltip/testing/tooltip-harness-filters.mjs} +0 -0
  531. package/esm2020/tooltip/testing/tooltip-harness.mjs +57 -0
  532. package/{esm2015/tooltip/tooltip-animations.js → esm2020/tooltip/tooltip-animations.mjs} +0 -0
  533. package/esm2020/tooltip/tooltip-module.mjs +44 -0
  534. package/esm2020/tooltip/tooltip.mjs +739 -0
  535. package/{esm2015/tree/data-source/flat-data-source.js → esm2020/tree/data-source/flat-data-source.mjs} +0 -0
  536. package/{esm2015/tree/data-source/nested-data-source.js → esm2020/tree/data-source/nested-data-source.mjs} +0 -0
  537. package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
  538. package/esm2020/tree/node.mjs +143 -0
  539. package/esm2020/tree/outlet.mjs +41 -0
  540. package/esm2020/tree/padding.mjs +37 -0
  541. package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
  542. package/{esm2015/tree/testing/index.js → esm2020/tree/testing/index.mjs} +0 -0
  543. package/esm2020/tree/testing/node-harness.mjs +69 -0
  544. package/{esm2015/tree/testing/public-api.js → esm2020/tree/testing/public-api.mjs} +0 -0
  545. package/{esm2015/tree/testing/tree-harness-filters.js → esm2020/tree/testing/tree-harness-filters.mjs} +0 -0
  546. package/esm2020/tree/testing/tree-harness.mjs +123 -0
  547. package/esm2020/tree/toggle.mjs +36 -0
  548. package/esm2020/tree/tree-module.mjs +51 -0
  549. package/esm2020/tree/tree.mjs +37 -0
  550. package/expansion/accordion.d.ts +3 -0
  551. package/expansion/expansion-module.d.ts +12 -7
  552. package/expansion/expansion-panel-content.d.ts +3 -0
  553. package/expansion/expansion-panel-header.d.ts +8 -1
  554. package/expansion/expansion-panel.d.ts +5 -0
  555. package/expansion/package.json +5 -5
  556. package/expansion/testing/package.json +5 -5
  557. package/fesm2015/autocomplete/testing.mjs +132 -0
  558. package/fesm2015/autocomplete/testing.mjs.map +1 -0
  559. package/fesm2015/autocomplete.mjs +958 -0
  560. package/fesm2015/autocomplete.mjs.map +1 -0
  561. package/fesm2015/badge/testing.mjs +97 -0
  562. package/fesm2015/badge/testing.mjs.map +1 -0
  563. package/fesm2015/badge.mjs +266 -0
  564. package/fesm2015/badge.mjs.map +1 -0
  565. package/fesm2015/bottom-sheet/testing.mjs +52 -0
  566. package/fesm2015/bottom-sheet/testing.mjs.map +1 -0
  567. package/fesm2015/bottom-sheet.mjs +596 -0
  568. package/fesm2015/bottom-sheet.mjs.map +1 -0
  569. package/fesm2015/button/testing.mjs +76 -0
  570. package/fesm2015/button/testing.mjs.map +1 -0
  571. package/fesm2015/button-toggle/testing.mjs +181 -0
  572. package/fesm2015/button-toggle/testing.mjs.map +1 -0
  573. package/fesm2015/button-toggle.mjs +502 -0
  574. package/fesm2015/button-toggle.mjs.map +1 -0
  575. package/fesm2015/button.mjs +202 -0
  576. package/fesm2015/button.mjs.map +1 -0
  577. package/fesm2015/card/testing.mjs +64 -0
  578. package/fesm2015/card/testing.mjs.map +1 -0
  579. package/fesm2015/card.mjs +322 -0
  580. package/fesm2015/card.mjs.map +1 -0
  581. package/fesm2015/checkbox/testing.mjs +168 -0
  582. package/fesm2015/checkbox/testing.mjs.map +1 -0
  583. package/fesm2015/checkbox.mjs +503 -0
  584. package/fesm2015/checkbox.mjs.map +1 -0
  585. package/fesm2015/chips/testing.mjs +423 -0
  586. package/fesm2015/chips/testing.mjs.map +1 -0
  587. package/fesm2015/chips.mjs +1354 -0
  588. package/fesm2015/chips.mjs.map +1 -0
  589. package/fesm2015/core/testing.mjs +120 -0
  590. package/fesm2015/core/testing.mjs.map +1 -0
  591. package/fesm2015/core.mjs +1719 -0
  592. package/fesm2015/core.mjs.map +1 -0
  593. package/fesm2015/datepicker/testing.mjs +635 -0
  594. package/fesm2015/datepicker/testing.mjs.map +1 -0
  595. package/fesm2015/datepicker.mjs +3948 -0
  596. package/fesm2015/datepicker.mjs.map +1 -0
  597. package/fesm2015/dialog/testing.mjs +119 -0
  598. package/fesm2015/dialog/testing.mjs.map +1 -0
  599. package/fesm2015/dialog.mjs +1155 -0
  600. package/fesm2015/dialog.mjs.map +1 -0
  601. package/fesm2015/divider/testing.mjs +39 -0
  602. package/fesm2015/divider/testing.mjs.map +1 -0
  603. package/fesm2015/divider.mjs +77 -0
  604. package/fesm2015/divider.mjs.map +1 -0
  605. package/fesm2015/expansion/testing.mjs +187 -0
  606. package/fesm2015/expansion/testing.mjs.map +1 -0
  607. package/fesm2015/expansion.mjs +641 -0
  608. package/fesm2015/expansion.mjs.map +1 -0
  609. package/fesm2015/form-field/testing/control.mjs +26 -0
  610. package/fesm2015/form-field/testing/control.mjs.map +1 -0
  611. package/fesm2015/form-field/testing.mjs +231 -0
  612. package/fesm2015/form-field/testing.mjs.map +1 -0
  613. package/fesm2015/form-field.mjs +814 -0
  614. package/fesm2015/form-field.mjs.map +1 -0
  615. package/fesm2015/grid-list/testing.mjs +161 -0
  616. package/fesm2015/grid-list/testing.mjs.map +1 -0
  617. package/fesm2015/grid-list.mjs +700 -0
  618. package/fesm2015/grid-list.mjs.map +1 -0
  619. package/fesm2015/icon/testing.mjs +163 -0
  620. package/fesm2015/icon/testing.mjs.map +1 -0
  621. package/fesm2015/icon.mjs +1016 -0
  622. package/fesm2015/icon.mjs.map +1 -0
  623. package/fesm2015/input/testing.mjs +281 -0
  624. package/fesm2015/input/testing.mjs.map +1 -0
  625. package/fesm2015/input.mjs +515 -0
  626. package/fesm2015/input.mjs.map +1 -0
  627. package/fesm2015/list/testing.mjs +486 -0
  628. package/fesm2015/list/testing.mjs.map +1 -0
  629. package/fesm2015/list.mjs +908 -0
  630. package/fesm2015/list.mjs.map +1 -0
  631. package/fesm2015/material.mjs +16 -0
  632. package/fesm2015/material.mjs.map +1 -0
  633. package/fesm2015/menu/testing.mjs +235 -0
  634. package/fesm2015/menu/testing.mjs.map +1 -0
  635. package/fesm2015/menu.mjs +1363 -0
  636. package/fesm2015/menu.mjs.map +1 -0
  637. package/fesm2015/paginator/testing.mjs +118 -0
  638. package/fesm2015/paginator/testing.mjs.map +1 -0
  639. package/fesm2015/paginator.mjs +387 -0
  640. package/fesm2015/paginator.mjs.map +1 -0
  641. package/fesm2015/progress-bar/testing.mjs +51 -0
  642. package/fesm2015/progress-bar/testing.mjs.map +1 -0
  643. package/fesm2015/progress-bar.mjs +225 -0
  644. package/fesm2015/progress-bar.mjs.map +1 -0
  645. package/fesm2015/progress-spinner/testing.mjs +52 -0
  646. package/fesm2015/progress-spinner/testing.mjs.map +1 -0
  647. package/fesm2015/progress-spinner.mjs +330 -0
  648. package/fesm2015/progress-spinner.mjs.map +1 -0
  649. package/fesm2015/radio/testing.mjs +284 -0
  650. package/fesm2015/radio/testing.mjs.map +1 -0
  651. package/fesm2015/radio.mjs +599 -0
  652. package/fesm2015/radio.mjs.map +1 -0
  653. package/fesm2015/select/testing.mjs +169 -0
  654. package/fesm2015/select/testing.mjs.map +1 -0
  655. package/fesm2015/select.mjs +1346 -0
  656. package/fesm2015/select.mjs.map +1 -0
  657. package/fesm2015/sidenav/testing.mjs +195 -0
  658. package/fesm2015/sidenav/testing.mjs.map +1 -0
  659. package/fesm2015/sidenav.mjs +1013 -0
  660. package/fesm2015/sidenav.mjs.map +1 -0
  661. package/fesm2015/slide-toggle/testing.mjs +151 -0
  662. package/fesm2015/slide-toggle/testing.mjs.map +1 -0
  663. package/fesm2015/slide-toggle.mjs +359 -0
  664. package/fesm2015/slide-toggle.mjs.map +1 -0
  665. package/fesm2015/slider/testing.mjs +153 -0
  666. package/fesm2015/slider/testing.mjs.map +1 -0
  667. package/fesm2015/slider.mjs +830 -0
  668. package/fesm2015/slider.mjs.map +1 -0
  669. package/fesm2015/snack-bar/testing.mjs +153 -0
  670. package/fesm2015/snack-bar/testing.mjs.map +1 -0
  671. package/fesm2015/snack-bar.mjs +698 -0
  672. package/fesm2015/snack-bar.mjs.map +1 -0
  673. package/fesm2015/sort/testing.mjs +110 -0
  674. package/fesm2015/sort/testing.mjs.map +1 -0
  675. package/fesm2015/sort.mjs +605 -0
  676. package/fesm2015/sort.mjs.map +1 -0
  677. package/fesm2015/stepper/testing.mjs +216 -0
  678. package/fesm2015/stepper/testing.mjs.map +1 -0
  679. package/fesm2015/stepper.mjs +579 -0
  680. package/fesm2015/stepper.mjs.map +1 -0
  681. package/fesm2015/table/testing.mjs +259 -0
  682. package/fesm2015/table/testing.mjs.map +1 -0
  683. package/fesm2015/table.mjs +817 -0
  684. package/fesm2015/table.mjs.map +1 -0
  685. package/fesm2015/tabs/testing.mjs +245 -0
  686. package/fesm2015/tabs/testing.mjs.map +1 -0
  687. package/fesm2015/tabs.mjs +1846 -0
  688. package/fesm2015/tabs.mjs.map +1 -0
  689. package/fesm2015/toolbar/testing.mjs +59 -0
  690. package/fesm2015/toolbar/testing.mjs.map +1 -0
  691. package/fesm2015/toolbar.mjs +118 -0
  692. package/fesm2015/toolbar.mjs.map +1 -0
  693. package/fesm2015/tooltip/testing.mjs +80 -0
  694. package/fesm2015/tooltip/testing.mjs.map +1 -0
  695. package/fesm2015/tooltip.mjs +820 -0
  696. package/fesm2015/tooltip.mjs.map +1 -0
  697. package/fesm2015/tree/testing.mjs +215 -0
  698. package/fesm2015/tree/testing.mjs.map +1 -0
  699. package/fesm2015/tree.mjs +520 -0
  700. package/fesm2015/tree.mjs.map +1 -0
  701. package/fesm2020/autocomplete/testing.mjs +128 -0
  702. package/fesm2020/autocomplete/testing.mjs.map +1 -0
  703. package/fesm2020/autocomplete.mjs +958 -0
  704. package/fesm2020/autocomplete.mjs.map +1 -0
  705. package/fesm2020/badge/testing.mjs +99 -0
  706. package/fesm2020/badge/testing.mjs.map +1 -0
  707. package/fesm2020/badge.mjs +271 -0
  708. package/fesm2020/badge.mjs.map +1 -0
  709. package/fesm2020/bottom-sheet/testing.mjs +62 -0
  710. package/fesm2020/bottom-sheet/testing.mjs.map +1 -0
  711. package/fesm2020/bottom-sheet.mjs +592 -0
  712. package/fesm2020/bottom-sheet.mjs.map +1 -0
  713. package/fesm2020/button/testing.mjs +78 -0
  714. package/fesm2020/button/testing.mjs.map +1 -0
  715. package/fesm2020/button-toggle/testing.mjs +176 -0
  716. package/fesm2020/button-toggle/testing.mjs.map +1 -0
  717. package/fesm2020/button-toggle.mjs +505 -0
  718. package/fesm2020/button-toggle.mjs.map +1 -0
  719. package/fesm2020/button.mjs +205 -0
  720. package/fesm2020/button.mjs.map +1 -0
  721. package/fesm2020/card/testing.mjs +70 -0
  722. package/fesm2020/card/testing.mjs.map +1 -0
  723. package/fesm2020/card.mjs +320 -0
  724. package/fesm2020/card.mjs.map +1 -0
  725. package/fesm2020/checkbox/testing.mjs +150 -0
  726. package/fesm2020/checkbox/testing.mjs.map +1 -0
  727. package/fesm2020/checkbox.mjs +507 -0
  728. package/fesm2020/checkbox.mjs.map +1 -0
  729. package/fesm2020/chips/testing.mjs +398 -0
  730. package/fesm2020/chips/testing.mjs.map +1 -0
  731. package/fesm2020/chips.mjs +1346 -0
  732. package/fesm2020/chips.mjs.map +1 -0
  733. package/fesm2020/core/testing.mjs +131 -0
  734. package/fesm2020/core/testing.mjs.map +1 -0
  735. package/fesm2020/core.mjs +1731 -0
  736. package/fesm2020/core.mjs.map +1 -0
  737. package/fesm2020/datepicker/testing.mjs +572 -0
  738. package/fesm2020/datepicker/testing.mjs.map +1 -0
  739. package/fesm2020/datepicker.mjs +3921 -0
  740. package/fesm2020/datepicker.mjs.map +1 -0
  741. package/fesm2020/dialog/testing.mjs +110 -0
  742. package/fesm2020/dialog/testing.mjs.map +1 -0
  743. package/fesm2020/dialog.mjs +1147 -0
  744. package/fesm2020/dialog.mjs.map +1 -0
  745. package/fesm2020/divider/testing.mjs +49 -0
  746. package/fesm2020/divider/testing.mjs.map +1 -0
  747. package/fesm2020/divider.mjs +77 -0
  748. package/fesm2020/divider.mjs.map +1 -0
  749. package/fesm2020/expansion/testing.mjs +176 -0
  750. package/fesm2020/expansion/testing.mjs.map +1 -0
  751. package/fesm2020/expansion.mjs +644 -0
  752. package/fesm2020/expansion.mjs.map +1 -0
  753. package/fesm2020/form-field/testing/control.mjs +26 -0
  754. package/fesm2020/form-field/testing/control.mjs.map +1 -0
  755. package/fesm2020/form-field/testing.mjs +209 -0
  756. package/fesm2020/form-field/testing.mjs.map +1 -0
  757. package/fesm2020/form-field.mjs +817 -0
  758. package/fesm2020/form-field.mjs.map +1 -0
  759. package/fesm2020/grid-list/testing.mjs +162 -0
  760. package/fesm2020/grid-list/testing.mjs.map +1 -0
  761. package/fesm2020/grid-list.mjs +696 -0
  762. package/fesm2020/grid-list.mjs.map +1 -0
  763. package/fesm2020/icon/testing.mjs +169 -0
  764. package/fesm2020/icon/testing.mjs.map +1 -0
  765. package/fesm2020/icon.mjs +1010 -0
  766. package/fesm2020/icon.mjs.map +1 -0
  767. package/fesm2020/input/testing.mjs +265 -0
  768. package/fesm2020/input/testing.mjs.map +1 -0
  769. package/fesm2020/input.mjs +512 -0
  770. package/fesm2020/input.mjs.map +1 -0
  771. package/fesm2020/list/testing.mjs +464 -0
  772. package/fesm2020/list/testing.mjs.map +1 -0
  773. package/fesm2020/list.mjs +901 -0
  774. package/fesm2020/list.mjs.map +1 -0
  775. package/fesm2020/material.mjs +16 -0
  776. package/fesm2020/material.mjs.map +1 -0
  777. package/fesm2020/menu/testing.mjs +210 -0
  778. package/fesm2020/menu/testing.mjs.map +1 -0
  779. package/fesm2020/menu.mjs +1365 -0
  780. package/fesm2020/menu.mjs.map +1 -0
  781. package/fesm2020/paginator/testing.mjs +118 -0
  782. package/fesm2020/paginator/testing.mjs.map +1 -0
  783. package/fesm2020/paginator.mjs +385 -0
  784. package/fesm2020/paginator.mjs.map +1 -0
  785. package/fesm2020/progress-bar/testing.mjs +61 -0
  786. package/fesm2020/progress-bar/testing.mjs.map +1 -0
  787. package/fesm2020/progress-bar.mjs +223 -0
  788. package/fesm2020/progress-bar.mjs.map +1 -0
  789. package/fesm2020/progress-spinner/testing.mjs +62 -0
  790. package/fesm2020/progress-spinner/testing.mjs.map +1 -0
  791. package/fesm2020/progress-spinner.mjs +326 -0
  792. package/fesm2020/progress-spinner.mjs.map +1 -0
  793. package/fesm2020/radio/testing.mjs +258 -0
  794. package/fesm2020/radio/testing.mjs.map +1 -0
  795. package/fesm2020/radio.mjs +604 -0
  796. package/fesm2020/radio.mjs.map +1 -0
  797. package/fesm2020/select/testing.mjs +157 -0
  798. package/fesm2020/select/testing.mjs.map +1 -0
  799. package/fesm2020/select.mjs +1338 -0
  800. package/fesm2020/select.mjs.map +1 -0
  801. package/fesm2020/sidenav/testing.mjs +214 -0
  802. package/fesm2020/sidenav/testing.mjs.map +1 -0
  803. package/fesm2020/sidenav.mjs +1004 -0
  804. package/fesm2020/sidenav.mjs.map +1 -0
  805. package/fesm2020/slide-toggle/testing.mjs +137 -0
  806. package/fesm2020/slide-toggle/testing.mjs.map +1 -0
  807. package/fesm2020/slide-toggle.mjs +364 -0
  808. package/fesm2020/slide-toggle.mjs.map +1 -0
  809. package/fesm2020/slider/testing.mjs +133 -0
  810. package/fesm2020/slider/testing.mjs.map +1 -0
  811. package/fesm2020/slider.mjs +835 -0
  812. package/fesm2020/slider.mjs.map +1 -0
  813. package/fesm2020/snack-bar/testing.mjs +145 -0
  814. package/fesm2020/snack-bar/testing.mjs.map +1 -0
  815. package/fesm2020/snack-bar.mjs +701 -0
  816. package/fesm2020/snack-bar.mjs.map +1 -0
  817. package/fesm2020/sort/testing.mjs +109 -0
  818. package/fesm2020/sort/testing.mjs.map +1 -0
  819. package/fesm2020/sort.mjs +609 -0
  820. package/fesm2020/sort.mjs.map +1 -0
  821. package/fesm2020/stepper/testing.mjs +206 -0
  822. package/fesm2020/stepper/testing.mjs.map +1 -0
  823. package/fesm2020/stepper.mjs +589 -0
  824. package/fesm2020/stepper.mjs.map +1 -0
  825. package/fesm2020/table/testing.mjs +259 -0
  826. package/fesm2020/table/testing.mjs.map +1 -0
  827. package/fesm2020/table.mjs +814 -0
  828. package/fesm2020/table.mjs.map +1 -0
  829. package/fesm2020/tabs/testing.mjs +234 -0
  830. package/fesm2020/tabs/testing.mjs.map +1 -0
  831. package/fesm2020/tabs.mjs +1829 -0
  832. package/fesm2020/tabs.mjs.map +1 -0
  833. package/fesm2020/toolbar/testing.mjs +67 -0
  834. package/fesm2020/toolbar/testing.mjs.map +1 -0
  835. package/fesm2020/toolbar.mjs +123 -0
  836. package/fesm2020/toolbar.mjs.map +1 -0
  837. package/fesm2020/tooltip/testing.mjs +84 -0
  838. package/fesm2020/tooltip/testing.mjs.map +1 -0
  839. package/fesm2020/tooltip.mjs +815 -0
  840. package/fesm2020/tooltip.mjs.map +1 -0
  841. package/fesm2020/tree/testing.mjs +217 -0
  842. package/fesm2020/tree/testing.mjs.map +1 -0
  843. package/fesm2020/tree.mjs +514 -0
  844. package/fesm2020/tree.mjs.map +1 -0
  845. package/form-field/error.d.ts +3 -0
  846. package/form-field/form-field-control.d.ts +3 -0
  847. package/form-field/form-field-module.d.ts +14 -7
  848. package/form-field/form-field.d.ts +4 -1
  849. package/form-field/hint.d.ts +3 -0
  850. package/form-field/label.d.ts +3 -7
  851. package/form-field/package.json +5 -5
  852. package/form-field/placeholder.d.ts +3 -7
  853. package/form-field/prefix.d.ts +3 -0
  854. package/form-field/suffix.d.ts +3 -0
  855. package/form-field/testing/control/package.json +5 -5
  856. package/form-field/testing/package.json +5 -5
  857. package/grid-list/grid-list-module.d.ts +7 -7
  858. package/grid-list/grid-list.d.ts +3 -0
  859. package/grid-list/grid-tile.d.ts +11 -0
  860. package/grid-list/index.d.ts +0 -1
  861. package/grid-list/package.json +5 -5
  862. package/grid-list/testing/package.json +5 -5
  863. package/icon/icon-module.d.ts +6 -7
  864. package/icon/icon-registry.d.ts +3 -7
  865. package/icon/icon.d.ts +4 -1
  866. package/icon/package.json +5 -5
  867. package/icon/testing/fake-icon-registry.d.ts +6 -0
  868. package/icon/testing/package.json +5 -5
  869. package/input/input-module.d.ts +8 -7
  870. package/input/input.d.ts +4 -1
  871. package/input/package.json +5 -5
  872. package/input/testing/package.json +5 -5
  873. package/list/list-module.d.ts +9 -7
  874. package/list/list.d.ts +15 -2
  875. package/list/package.json +5 -5
  876. package/list/selection-list.d.ts +7 -2
  877. package/list/testing/package.json +5 -5
  878. package/menu/index.d.ts +0 -2
  879. package/menu/menu-content.d.ts +5 -7
  880. package/menu/menu-item.d.ts +4 -1
  881. package/menu/menu-module.d.ts +12 -7
  882. package/menu/menu-trigger.d.ts +5 -0
  883. package/menu/menu.d.ts +5 -0
  884. package/menu/package.json +5 -5
  885. package/menu/testing/package.json +5 -5
  886. package/package.json +612 -8
  887. package/paginator/package.json +5 -5
  888. package/paginator/paginator-intl.d.ts +3 -0
  889. package/paginator/paginator-module.d.ts +10 -7
  890. package/paginator/paginator.d.ts +6 -1
  891. package/paginator/testing/package.json +5 -5
  892. package/progress-bar/package.json +5 -5
  893. package/progress-bar/progress-bar-module.d.ts +7 -7
  894. package/progress-bar/progress-bar.d.ts +4 -1
  895. package/progress-bar/testing/package.json +5 -5
  896. package/progress-spinner/package.json +5 -5
  897. package/progress-spinner/progress-spinner-module.d.ts +7 -0
  898. package/progress-spinner/progress-spinner.d.ts +6 -1
  899. package/progress-spinner/testing/package.json +5 -5
  900. package/radio/package.json +5 -5
  901. package/radio/radio-module.d.ts +6 -7
  902. package/radio/radio.d.ts +10 -1
  903. package/radio/testing/package.json +5 -5
  904. package/schematics/ng-add/fonts/material-fonts.js +8 -17
  905. package/schematics/ng-add/fonts/material-fonts.mjs +8 -17
  906. package/schematics/ng-add/index.js +8 -8
  907. package/schematics/ng-add/index.mjs +8 -8
  908. package/schematics/ng-add/setup-project.js +23 -32
  909. package/schematics/ng-add/setup-project.mjs +23 -32
  910. package/schematics/ng-add/theming/create-custom-theme.js +2 -2
  911. package/schematics/ng-add/theming/create-custom-theme.mjs +2 -2
  912. package/schematics/ng-add/theming/theming.js +35 -46
  913. package/schematics/ng-add/theming/theming.mjs +35 -46
  914. package/schematics/ng-generate/address-form/index.js +13 -22
  915. package/schematics/ng-generate/address-form/index.mjs +13 -22
  916. package/schematics/ng-generate/dashboard/index.js +13 -22
  917. package/schematics/ng-generate/dashboard/index.mjs +13 -22
  918. package/schematics/ng-generate/navigation/index.js +13 -22
  919. package/schematics/ng-generate/navigation/index.mjs +13 -22
  920. package/schematics/ng-generate/table/index.js +10 -19
  921. package/schematics/ng-generate/table/index.mjs +10 -19
  922. package/schematics/ng-generate/tree/index.js +10 -19
  923. package/schematics/ng-generate/tree/index.mjs +10 -19
  924. package/schematics/ng-update/index.js +9 -9
  925. package/schematics/ng-update/index.mjs +9 -9
  926. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +24 -24
  927. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.mjs +24 -24
  928. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +5 -5
  929. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.mjs +5 -5
  930. package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.js +2 -2
  931. package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.mjs +2 -2
  932. package/schematics/ng-update/migrations/misc-checks/misc-imports.js +2 -2
  933. package/schematics/ng-update/migrations/misc-checks/misc-imports.mjs +2 -2
  934. package/schematics/ng-update/migrations/misc-checks/misc-template.js +4 -4
  935. package/schematics/ng-update/migrations/misc-checks/misc-template.mjs +4 -4
  936. package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js +7 -7
  937. package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.mjs +7 -7
  938. package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +2 -3
  939. package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.mjs +2 -3
  940. package/schematics/ng-update/migrations/theming-api-v12/migration.d.ts +6 -6
  941. package/schematics/ng-update/migrations/theming-api-v12/migration.js +12 -12
  942. package/schematics/ng-update/migrations/theming-api-v12/migration.mjs +12 -12
  943. package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.js +3 -3
  944. package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.mjs +3 -3
  945. package/schematics/ng-update/typescript/module-specifiers.js +3 -3
  946. package/schematics/ng-update/typescript/module-specifiers.mjs +3 -3
  947. package/schematics/package.json +3 -0
  948. package/schematics/paths.js +3 -3
  949. package/schematics/paths.mjs +3 -3
  950. package/select/package.json +5 -5
  951. package/select/select-module.d.ts +10 -7
  952. package/select/select.d.ts +8 -1
  953. package/select/testing/package.json +5 -5
  954. package/sidenav/drawer.d.ts +7 -0
  955. package/sidenav/index.d.ts +0 -1
  956. package/sidenav/package.json +5 -5
  957. package/sidenav/sidenav-module.d.ts +10 -0
  958. package/sidenav/sidenav.d.ts +7 -0
  959. package/sidenav/testing/package.json +5 -5
  960. package/slide-toggle/package.json +5 -5
  961. package/slide-toggle/slide-toggle-module.d.ts +11 -7
  962. package/slide-toggle/slide-toggle-required-validator.d.ts +3 -0
  963. package/slide-toggle/slide-toggle.d.ts +4 -1
  964. package/slide-toggle/testing/package.json +5 -5
  965. package/slider/package.json +5 -5
  966. package/slider/slider-module.d.ts +7 -7
  967. package/slider/slider.d.ts +4 -1
  968. package/slider/testing/package.json +5 -5
  969. package/snack-bar/package.json +5 -5
  970. package/snack-bar/simple-snack-bar.d.ts +3 -7
  971. package/snack-bar/snack-bar-container.d.ts +3 -0
  972. package/snack-bar/snack-bar-module.d.ts +11 -7
  973. package/snack-bar/snack-bar.d.ts +3 -0
  974. package/snack-bar/testing/package.json +5 -5
  975. package/sort/package.json +5 -5
  976. package/sort/sort-header-intl.d.ts +3 -0
  977. package/sort/sort-header.d.ts +4 -1
  978. package/sort/sort-module.d.ts +8 -7
  979. package/sort/sort.d.ts +4 -1
  980. package/sort/testing/package.json +5 -5
  981. package/stepper/package.json +5 -5
  982. package/stepper/step-content.d.ts +3 -0
  983. package/stepper/step-header.d.ts +6 -1
  984. package/stepper/step-label.d.ts +3 -7
  985. package/stepper/stepper-button.d.ts +5 -0
  986. package/stepper/stepper-icon.d.ts +3 -0
  987. package/stepper/stepper-intl.d.ts +7 -0
  988. package/stepper/stepper-module.d.ts +16 -7
  989. package/stepper/stepper.d.ts +11 -0
  990. package/stepper/testing/package.json +5 -5
  991. package/table/cell.d.ts +15 -7
  992. package/table/package.json +5 -5
  993. package/table/row.d.ts +15 -0
  994. package/table/table-module.d.ts +10 -7
  995. package/table/table.d.ts +5 -0
  996. package/table/testing/package.json +5 -5
  997. package/table/text-column.d.ts +3 -0
  998. package/tabs/index.d.ts +0 -4
  999. package/tabs/ink-bar.d.ts +3 -0
  1000. package/tabs/package.json +5 -5
  1001. package/tabs/paginated-tab-header.d.ts +3 -0
  1002. package/tabs/tab-body.d.ts +7 -0
  1003. package/tabs/tab-content.d.ts +3 -0
  1004. package/tabs/tab-group.d.ts +6 -1
  1005. package/tabs/tab-header.d.ts +5 -0
  1006. package/tabs/tab-label-wrapper.d.ts +4 -1
  1007. package/tabs/tab-label.d.ts +3 -0
  1008. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +10 -1
  1009. package/tabs/tab.d.ts +4 -1
  1010. package/tabs/tabs-module.d.ts +18 -7
  1011. package/tabs/testing/package.json +5 -5
  1012. package/toolbar/package.json +5 -5
  1013. package/toolbar/testing/package.json +5 -5
  1014. package/toolbar/toolbar-module.d.ts +6 -7
  1015. package/toolbar/toolbar.d.ts +6 -1
  1016. package/tooltip/package.json +5 -5
  1017. package/tooltip/testing/package.json +5 -5
  1018. package/tooltip/tooltip-module.d.ts +10 -7
  1019. package/tooltip/tooltip.d.ts +11 -2
  1020. package/tree/node.d.ts +8 -1
  1021. package/tree/outlet.d.ts +3 -0
  1022. package/tree/package.json +5 -5
  1023. package/tree/padding.d.ts +3 -0
  1024. package/tree/testing/package.json +5 -5
  1025. package/tree/toggle.d.ts +3 -7
  1026. package/tree/tree-module.d.ts +11 -7
  1027. package/tree/tree.d.ts +3 -0
  1028. package/autocomplete/index.metadata.json +0 -1
  1029. package/badge/index.metadata.json +0 -1
  1030. package/bottom-sheet/index.metadata.json +0 -1
  1031. package/bundles/material-autocomplete-testing.umd.js +0 -564
  1032. package/bundles/material-autocomplete-testing.umd.js.map +0 -1
  1033. package/bundles/material-autocomplete.umd.js +0 -1266
  1034. package/bundles/material-autocomplete.umd.js.map +0 -1
  1035. package/bundles/material-badge-testing.umd.js +0 -474
  1036. package/bundles/material-badge-testing.umd.js.map +0 -1
  1037. package/bundles/material-badge.umd.js +0 -604
  1038. package/bundles/material-badge.umd.js.map +0 -1
  1039. package/bundles/material-bottom-sheet-testing.umd.js +0 -396
  1040. package/bundles/material-bottom-sheet-testing.umd.js.map +0 -1
  1041. package/bundles/material-bottom-sheet.umd.js +0 -948
  1042. package/bundles/material-bottom-sheet.umd.js.map +0 -1
  1043. package/bundles/material-button-testing.umd.js +0 -444
  1044. package/bundles/material-button-testing.umd.js.map +0 -1
  1045. package/bundles/material-button-toggle-testing.umd.js +0 -628
  1046. package/bundles/material-button-toggle-testing.umd.js.map +0 -1
  1047. package/bundles/material-button-toggle.umd.js +0 -850
  1048. package/bundles/material-button-toggle.umd.js.map +0 -1
  1049. package/bundles/material-button.umd.js +0 -545
  1050. package/bundles/material-button.umd.js.map +0 -1
  1051. package/bundles/material-card-testing.umd.js +0 -408
  1052. package/bundles/material-card-testing.umd.js.map +0 -1
  1053. package/bundles/material-card.umd.js +0 -337
  1054. package/bundles/material-card.umd.js.map +0 -1
  1055. package/bundles/material-checkbox-testing.umd.js +0 -615
  1056. package/bundles/material-checkbox-testing.umd.js.map +0 -1
  1057. package/bundles/material-checkbox.umd.js +0 -829
  1058. package/bundles/material-checkbox.umd.js.map +0 -1
  1059. package/bundles/material-chips-testing.umd.js +0 -1023
  1060. package/bundles/material-chips-testing.umd.js.map +0 -1
  1061. package/bundles/material-chips.umd.js +0 -1753
  1062. package/bundles/material-chips.umd.js.map +0 -1
  1063. package/bundles/material-core-testing.umd.js +0 -518
  1064. package/bundles/material-core-testing.umd.js.map +0 -1
  1065. package/bundles/material-core.umd.js +0 -2175
  1066. package/bundles/material-core.umd.js.map +0 -1
  1067. package/bundles/material-datepicker-testing.umd.js +0 -1366
  1068. package/bundles/material-datepicker-testing.umd.js.map +0 -1
  1069. package/bundles/material-datepicker.umd.js +0 -4332
  1070. package/bundles/material-datepicker.umd.js.map +0 -1
  1071. package/bundles/material-dialog-testing.umd.js +0 -500
  1072. package/bundles/material-dialog-testing.umd.js.map +0 -1
  1073. package/bundles/material-dialog.umd.js +0 -1487
  1074. package/bundles/material-dialog.umd.js.map +0 -1
  1075. package/bundles/material-divider-testing.umd.js +0 -380
  1076. package/bundles/material-divider-testing.umd.js.map +0 -1
  1077. package/bundles/material-divider.umd.js +0 -95
  1078. package/bundles/material-divider.umd.js.map +0 -1
  1079. package/bundles/material-expansion-testing.umd.js +0 -627
  1080. package/bundles/material-expansion-testing.umd.js.map +0 -1
  1081. package/bundles/material-expansion.umd.js +0 -949
  1082. package/bundles/material-expansion.umd.js.map +0 -1
  1083. package/bundles/material-form-field-testing-control.umd.js +0 -350
  1084. package/bundles/material-form-field-testing-control.umd.js.map +0 -1
  1085. package/bundles/material-form-field-testing.umd.js +0 -708
  1086. package/bundles/material-form-field-testing.umd.js.map +0 -1
  1087. package/bundles/material-form-field.umd.js +0 -1131
  1088. package/bundles/material-form-field.umd.js.map +0 -1
  1089. package/bundles/material-grid-list-testing.umd.js +0 -566
  1090. package/bundles/material-grid-list-testing.umd.js.map +0 -1
  1091. package/bundles/material-grid-list.umd.js +0 -1070
  1092. package/bundles/material-grid-list.umd.js.map +0 -1
  1093. package/bundles/material-icon-testing.umd.js +0 -527
  1094. package/bundles/material-icon-testing.umd.js.map +0 -1
  1095. package/bundles/material-icon.umd.js +0 -1391
  1096. package/bundles/material-icon.umd.js.map +0 -1
  1097. package/bundles/material-input-testing.umd.js +0 -806
  1098. package/bundles/material-input-testing.umd.js.map +0 -1
  1099. package/bundles/material-input.umd.js +0 -817
  1100. package/bundles/material-input.umd.js.map +0 -1
  1101. package/bundles/material-list-testing.umd.js +0 -1092
  1102. package/bundles/material-list-testing.umd.js.map +0 -1
  1103. package/bundles/material-list.umd.js +0 -1284
  1104. package/bundles/material-list.umd.js.map +0 -1
  1105. package/bundles/material-menu-testing.umd.js +0 -722
  1106. package/bundles/material-menu-testing.umd.js.map +0 -1
  1107. package/bundles/material-menu.umd.js +0 -1677
  1108. package/bundles/material-menu.umd.js.map +0 -1
  1109. package/bundles/material-paginator-testing.umd.js +0 -504
  1110. package/bundles/material-paginator-testing.umd.js.map +0 -1
  1111. package/bundles/material-paginator.umd.js +0 -746
  1112. package/bundles/material-paginator.umd.js.map +0 -1
  1113. package/bundles/material-progress-bar-testing.umd.js +0 -395
  1114. package/bundles/material-progress-bar-testing.umd.js.map +0 -1
  1115. package/bundles/material-progress-bar.umd.js +0 -546
  1116. package/bundles/material-progress-bar.umd.js.map +0 -1
  1117. package/bundles/material-progress-spinner-testing.umd.js +0 -399
  1118. package/bundles/material-progress-spinner-testing.umd.js.map +0 -1
  1119. package/bundles/material-progress-spinner.umd.js +0 -631
  1120. package/bundles/material-progress-spinner.umd.js.map +0 -1
  1121. package/bundles/material-radio-testing.umd.js +0 -812
  1122. package/bundles/material-radio-testing.umd.js.map +0 -1
  1123. package/bundles/material-radio.umd.js +0 -971
  1124. package/bundles/material-radio.umd.js.map +0 -1
  1125. package/bundles/material-select-testing.umd.js +0 -620
  1126. package/bundles/material-select-testing.umd.js.map +0 -1
  1127. package/bundles/material-select.umd.js +0 -1667
  1128. package/bundles/material-select.umd.js.map +0 -1
  1129. package/bundles/material-sidenav-testing.umd.js +0 -603
  1130. package/bundles/material-sidenav-testing.umd.js.map +0 -1
  1131. package/bundles/material-sidenav.umd.js +0 -1368
  1132. package/bundles/material-sidenav.umd.js.map +0 -1
  1133. package/bundles/material-slide-toggle-testing.umd.js +0 -582
  1134. package/bundles/material-slide-toggle-testing.umd.js.map +0 -1
  1135. package/bundles/material-slide-toggle.umd.js +0 -670
  1136. package/bundles/material-slide-toggle.umd.js.map +0 -1
  1137. package/bundles/material-slider-testing.umd.js +0 -587
  1138. package/bundles/material-slider-testing.umd.js.map +0 -1
  1139. package/bundles/material-slider.umd.js +0 -1186
  1140. package/bundles/material-slider.umd.js.map +0 -1
  1141. package/bundles/material-snack-bar-testing.umd.js +0 -553
  1142. package/bundles/material-snack-bar-testing.umd.js.map +0 -1
  1143. package/bundles/material-snack-bar.umd.js +0 -1075
  1144. package/bundles/material-snack-bar.umd.js.map +0 -1
  1145. package/bundles/material-sort-testing.umd.js +0 -493
  1146. package/bundles/material-sort-testing.umd.js.map +0 -1
  1147. package/bundles/material-sort.umd.js +0 -943
  1148. package/bundles/material-sort.umd.js.map +0 -1
  1149. package/bundles/material-stepper-testing.umd.js +0 -703
  1150. package/bundles/material-stepper-testing.umd.js.map +0 -1
  1151. package/bundles/material-stepper.umd.js +0 -893
  1152. package/bundles/material-stepper.umd.js.map +0 -1
  1153. package/bundles/material-table-testing.umd.js +0 -700
  1154. package/bundles/material-table-testing.umd.js.map +0 -1
  1155. package/bundles/material-table.umd.js +0 -1121
  1156. package/bundles/material-table.umd.js.map +0 -1
  1157. package/bundles/material-tabs-testing.umd.js +0 -744
  1158. package/bundles/material-tabs-testing.umd.js.map +0 -1
  1159. package/bundles/material-tabs.umd.js +0 -2183
  1160. package/bundles/material-tabs.umd.js.map +0 -1
  1161. package/bundles/material-toolbar-testing.umd.js +0 -406
  1162. package/bundles/material-toolbar-testing.umd.js.map +0 -1
  1163. package/bundles/material-toolbar.umd.js +0 -454
  1164. package/bundles/material-toolbar.umd.js.map +0 -1
  1165. package/bundles/material-tooltip-testing.umd.js +0 -460
  1166. package/bundles/material-tooltip-testing.umd.js.map +0 -1
  1167. package/bundles/material-tooltip.umd.js +0 -1170
  1168. package/bundles/material-tooltip.umd.js.map +0 -1
  1169. package/bundles/material-tree-testing.umd.js +0 -636
  1170. package/bundles/material-tree-testing.umd.js.map +0 -1
  1171. package/bundles/material-tree.umd.js +0 -837
  1172. package/bundles/material-tree.umd.js.map +0 -1
  1173. package/bundles/material.umd.js +0 -26
  1174. package/bundles/material.umd.js.map +0 -1
  1175. package/button/index.metadata.json +0 -1
  1176. package/button-toggle/index.metadata.json +0 -1
  1177. package/card/index.metadata.json +0 -1
  1178. package/checkbox/index.metadata.json +0 -1
  1179. package/chips/index.metadata.json +0 -1
  1180. package/core/index.metadata.json +0 -1
  1181. package/datepicker/index.metadata.json +0 -1
  1182. package/dialog/index.metadata.json +0 -1
  1183. package/divider/index.metadata.json +0 -1
  1184. package/esm2015/autocomplete/autocomplete-module.js +0 -38
  1185. package/esm2015/autocomplete/autocomplete-origin.js +0 -35
  1186. package/esm2015/autocomplete/autocomplete-trigger.js +0 -627
  1187. package/esm2015/autocomplete/autocomplete.externs.js +0 -6
  1188. package/esm2015/autocomplete/autocomplete.js +0 -202
  1189. package/esm2015/autocomplete/testing/autocomplete-harness.js +0 -120
  1190. package/esm2015/autocomplete/testing/testing.externs.js +0 -0
  1191. package/esm2015/badge/badge-module.js +0 -24
  1192. package/esm2015/badge/badge.externs.js +0 -6
  1193. package/esm2015/badge/badge.js +0 -213
  1194. package/esm2015/badge/testing/badge-harness.js +0 -85
  1195. package/esm2015/badge/testing/testing.externs.js +0 -0
  1196. package/esm2015/bottom-sheet/bottom-sheet-container.js +0 -246
  1197. package/esm2015/bottom-sheet/bottom-sheet-module.js +0 -27
  1198. package/esm2015/bottom-sheet/bottom-sheet-ref.js +0 -91
  1199. package/esm2015/bottom-sheet/bottom-sheet.externs.js +0 -6
  1200. package/esm2015/bottom-sheet/bottom-sheet.js +0 -167
  1201. package/esm2015/bottom-sheet/testing/bottom-sheet-harness.js +0 -40
  1202. package/esm2015/bottom-sheet/testing/testing.externs.js +0 -0
  1203. package/esm2015/button/button-module.js +0 -30
  1204. package/esm2015/button/button.externs.js +0 -6
  1205. package/esm2015/button/button.js +0 -163
  1206. package/esm2015/button/testing/button-harness.js +0 -64
  1207. package/esm2015/button/testing/testing.externs.js +0 -0
  1208. package/esm2015/button-toggle/button-toggle-module.js +0 -20
  1209. package/esm2015/button-toggle/button-toggle.externs.js +0 -6
  1210. package/esm2015/button-toggle/button-toggle.js +0 -441
  1211. package/esm2015/button-toggle/testing/button-toggle-group-harness.js +0 -54
  1212. package/esm2015/button-toggle/testing/button-toggle-harness.js +0 -125
  1213. package/esm2015/button-toggle/testing/testing.externs.js +0 -0
  1214. package/esm2015/card/card-module.js +0 -40
  1215. package/esm2015/card/card.externs.js +0 -6
  1216. package/esm2015/card/card.js +0 -223
  1217. package/esm2015/card/testing/card-harness.js +0 -52
  1218. package/esm2015/card/testing/testing.externs.js +0 -0
  1219. package/esm2015/checkbox/checkbox-module.js +0 -34
  1220. package/esm2015/checkbox/checkbox-required-validator.js +0 -29
  1221. package/esm2015/checkbox/checkbox.externs.js +0 -6
  1222. package/esm2015/checkbox/checkbox.js +0 -385
  1223. package/esm2015/checkbox/testing/checkbox-harness.js +0 -156
  1224. package/esm2015/checkbox/testing/testing.externs.js +0 -0
  1225. package/esm2015/chips/chip-input.js +0 -180
  1226. package/esm2015/chips/chip-list.js +0 -663
  1227. package/esm2015/chips/chip.js +0 -394
  1228. package/esm2015/chips/chips-module.js +0 -43
  1229. package/esm2015/chips/chips.externs.js +0 -6
  1230. package/esm2015/chips/testing/chip-harness.js +0 -110
  1231. package/esm2015/chips/testing/chip-input-harness.js +0 -101
  1232. package/esm2015/chips/testing/chip-list-harness.js +0 -99
  1233. package/esm2015/chips/testing/chip-listbox-harness.js +0 -49
  1234. package/esm2015/chips/testing/chip-option-harness.js +0 -54
  1235. package/esm2015/chips/testing/chip-remove-harness.js +0 -29
  1236. package/esm2015/chips/testing/testing.externs.js +0 -0
  1237. package/esm2015/core/common-behaviors/common-module.js +0 -113
  1238. package/esm2015/core/common-behaviors/index.js +0 -15
  1239. package/esm2015/core/core.externs.js +0 -6
  1240. package/esm2015/core/datetime/index.js +0 -38
  1241. package/esm2015/core/datetime/native-date-adapter.js +0 -213
  1242. package/esm2015/core/error/error-options.js +0 -29
  1243. package/esm2015/core/index.js +0 -6
  1244. package/esm2015/core/line/line.js +0 -56
  1245. package/esm2015/core/option/index.js +0 -27
  1246. package/esm2015/core/option/optgroup.js +0 -84
  1247. package/esm2015/core/option/option.js +0 -274
  1248. package/esm2015/core/ripple/index.js +0 -24
  1249. package/esm2015/core/ripple/ripple-renderer.js +0 -261
  1250. package/esm2015/core/ripple/ripple.js +0 -128
  1251. package/esm2015/core/selection/index.js +0 -21
  1252. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -55
  1253. package/esm2015/core/testing/optgroup-harness.js +0 -51
  1254. package/esm2015/core/testing/option-harness.js +0 -67
  1255. package/esm2015/core/testing/testing.externs.js +0 -0
  1256. package/esm2015/core/version.js +0 -11
  1257. package/esm2015/datepicker/calendar-body.js +0 -291
  1258. package/esm2015/datepicker/calendar.js +0 -330
  1259. package/esm2015/datepicker/date-range-input-parts.js +0 -315
  1260. package/esm2015/datepicker/date-range-input.js +0 -316
  1261. package/esm2015/datepicker/date-range-picker.js +0 -40
  1262. package/esm2015/datepicker/date-range-selection-strategy.js +0 -58
  1263. package/esm2015/datepicker/date-selection-model.js +0 -189
  1264. package/esm2015/datepicker/datepicker-actions.js +0 -89
  1265. package/esm2015/datepicker/datepicker-base.js +0 -529
  1266. package/esm2015/datepicker/datepicker-input-base.js +0 -290
  1267. package/esm2015/datepicker/datepicker-input.js +0 -164
  1268. package/esm2015/datepicker/datepicker-intl.js +0 -51
  1269. package/esm2015/datepicker/datepicker-module.js +0 -93
  1270. package/esm2015/datepicker/datepicker-toggle.js +0 -104
  1271. package/esm2015/datepicker/datepicker.externs.js +0 -6
  1272. package/esm2015/datepicker/datepicker.js +0 -30
  1273. package/esm2015/datepicker/index.js +0 -9
  1274. package/esm2015/datepicker/month-view.js +0 -344
  1275. package/esm2015/datepicker/multi-year-view.js +0 -280
  1276. package/esm2015/datepicker/testing/calendar-cell-harness.js +0 -181
  1277. package/esm2015/datepicker/testing/calendar-harness.js +0 -91
  1278. package/esm2015/datepicker/testing/date-range-input-harness.js +0 -116
  1279. package/esm2015/datepicker/testing/datepicker-input-harness-base.js +0 -102
  1280. package/esm2015/datepicker/testing/datepicker-input-harness.js +0 -69
  1281. package/esm2015/datepicker/testing/datepicker-toggle-harness.js +0 -48
  1282. package/esm2015/datepicker/testing/datepicker-trigger-harness-base.js +0 -77
  1283. package/esm2015/datepicker/testing/testing.externs.js +0 -0
  1284. package/esm2015/datepicker/year-view.js +0 -268
  1285. package/esm2015/dialog/dialog-container.js +0 -295
  1286. package/esm2015/dialog/dialog-content-directives.js +0 -159
  1287. package/esm2015/dialog/dialog-module.js +0 -46
  1288. package/esm2015/dialog/dialog-ref.js +0 -196
  1289. package/esm2015/dialog/dialog.externs.js +0 -6
  1290. package/esm2015/dialog/dialog.js +0 -353
  1291. package/esm2015/dialog/testing/dialog-harness.js +0 -103
  1292. package/esm2015/dialog/testing/testing.externs.js +0 -0
  1293. package/esm2015/divider/divider-module.js +0 -20
  1294. package/esm2015/divider/divider.externs.js +0 -6
  1295. package/esm2015/divider/divider.js +0 -43
  1296. package/esm2015/divider/testing/divider-harness.js +0 -27
  1297. package/esm2015/divider/testing/testing.externs.js +0 -0
  1298. package/esm2015/expansion/accordion.js +0 -83
  1299. package/esm2015/expansion/expansion-module.js +0 -42
  1300. package/esm2015/expansion/expansion-panel-content.js +0 -26
  1301. package/esm2015/expansion/expansion-panel-header.js +0 -214
  1302. package/esm2015/expansion/expansion-panel.js +0 -186
  1303. package/esm2015/expansion/expansion.externs.js +0 -6
  1304. package/esm2015/expansion/testing/accordion-harness.js +0 -36
  1305. package/esm2015/expansion/testing/expansion-harness.js +0 -149
  1306. package/esm2015/expansion/testing/testing.externs.js +0 -0
  1307. package/esm2015/form-field/error.js +0 -45
  1308. package/esm2015/form-field/form-field-control.js +0 -15
  1309. package/esm2015/form-field/form-field-module.js +0 -49
  1310. package/esm2015/form-field/form-field.externs.js +0 -6
  1311. package/esm2015/form-field/form-field.js +0 -482
  1312. package/esm2015/form-field/hint.js +0 -45
  1313. package/esm2015/form-field/label.js +0 -17
  1314. package/esm2015/form-field/placeholder.js +0 -22
  1315. package/esm2015/form-field/prefix.js +0 -24
  1316. package/esm2015/form-field/suffix.js +0 -24
  1317. package/esm2015/form-field/testing/control/control.externs.js +0 -0
  1318. package/esm2015/form-field/testing/form-field-harness.js +0 -218
  1319. package/esm2015/form-field/testing/testing.externs.js +0 -0
  1320. package/esm2015/grid-list/grid-list-module.js +0 -37
  1321. package/esm2015/grid-list/grid-list.externs.js +0 -6
  1322. package/esm2015/grid-list/grid-list.js +0 -135
  1323. package/esm2015/grid-list/grid-tile.js +0 -116
  1324. package/esm2015/grid-list/index.js +0 -6
  1325. package/esm2015/grid-list/testing/grid-list-harness.js +0 -79
  1326. package/esm2015/grid-list/testing/grid-tile-harness.js +0 -80
  1327. package/esm2015/grid-list/testing/testing.externs.js +0 -0
  1328. package/esm2015/icon/icon-module.js +0 -20
  1329. package/esm2015/icon/icon-registry.js +0 -581
  1330. package/esm2015/icon/icon.externs.js +0 -6
  1331. package/esm2015/icon/icon.js +0 -362
  1332. package/esm2015/icon/testing/fake-icon-registry.js +0 -85
  1333. package/esm2015/icon/testing/icon-harness.js +0 -63
  1334. package/esm2015/icon/testing/testing.externs.js +0 -6
  1335. package/esm2015/icon/trusted-types.js +0 -44
  1336. package/esm2015/input/input-module.js +0 -33
  1337. package/esm2015/input/input.externs.js +0 -6
  1338. package/esm2015/input/input.js +0 -395
  1339. package/esm2015/input/testing/input-harness.js +0 -138
  1340. package/esm2015/input/testing/native-option-harness.js +0 -51
  1341. package/esm2015/input/testing/native-select-harness.js +0 -100
  1342. package/esm2015/input/testing/testing.externs.js +0 -0
  1343. package/esm2015/list/list-module.js +0 -45
  1344. package/esm2015/list/list.externs.js +0 -6
  1345. package/esm2015/list/list.js +0 -218
  1346. package/esm2015/list/selection-list.js +0 -608
  1347. package/esm2015/list/testing/action-list-harness.js +0 -68
  1348. package/esm2015/list/testing/list-harness-base.js +0 -97
  1349. package/esm2015/list/testing/list-item-harness-base.js +0 -85
  1350. package/esm2015/list/testing/nav-list-harness.js +0 -75
  1351. package/esm2015/list/testing/selection-list-harness.js +0 -152
  1352. package/esm2015/list/testing/testing.externs.js +0 -0
  1353. package/esm2015/material.externs.js +0 -0
  1354. package/esm2015/menu/index.js +0 -7
  1355. package/esm2015/menu/menu-content.js +0 -97
  1356. package/esm2015/menu/menu-item.js +0 -164
  1357. package/esm2015/menu/menu-module.js +0 -39
  1358. package/esm2015/menu/menu-trigger.js +0 -505
  1359. package/esm2015/menu/menu.externs.js +0 -6
  1360. package/esm2015/menu/menu.js +0 -381
  1361. package/esm2015/menu/testing/menu-harness.js +0 -223
  1362. package/esm2015/menu/testing/testing.externs.js +0 -0
  1363. package/esm2015/paginator/paginator-intl.js +0 -62
  1364. package/esm2015/paginator/paginator-module.js +0 -32
  1365. package/esm2015/paginator/paginator.externs.js +0 -6
  1366. package/esm2015/paginator/paginator.js +0 -263
  1367. package/esm2015/paginator/testing/paginator-harness.js +0 -106
  1368. package/esm2015/paginator/testing/testing.externs.js +0 -0
  1369. package/esm2015/progress-bar/progress-bar-module.js +0 -21
  1370. package/esm2015/progress-bar/progress-bar.externs.js +0 -6
  1371. package/esm2015/progress-bar/progress-bar.js +0 -179
  1372. package/esm2015/progress-bar/testing/progress-bar-harness.js +0 -39
  1373. package/esm2015/progress-bar/testing/testing.externs.js +0 -0
  1374. package/esm2015/progress-spinner/progress-spinner-module.js +0 -28
  1375. package/esm2015/progress-spinner/progress-spinner.externs.js +0 -6
  1376. package/esm2015/progress-spinner/progress-spinner.js +0 -274
  1377. package/esm2015/progress-spinner/testing/progress-spinner-harness.js +0 -40
  1378. package/esm2015/progress-spinner/testing/testing.externs.js +0 -0
  1379. package/esm2015/radio/radio-module.js +0 -20
  1380. package/esm2015/radio/radio.externs.js +0 -6
  1381. package/esm2015/radio/radio.js +0 -546
  1382. package/esm2015/radio/testing/radio-harness.js +0 -272
  1383. package/esm2015/radio/testing/testing.externs.js +0 -0
  1384. package/esm2015/select/select-module.js +0 -37
  1385. package/esm2015/select/select.externs.js +0 -6
  1386. package/esm2015/select/select.js +0 -1140
  1387. package/esm2015/select/testing/select-harness.js +0 -157
  1388. package/esm2015/select/testing/testing.externs.js +0 -0
  1389. package/esm2015/sidenav/drawer.js +0 -766
  1390. package/esm2015/sidenav/index.js +0 -6
  1391. package/esm2015/sidenav/sidenav-module.js +0 -45
  1392. package/esm2015/sidenav/sidenav.externs.js +0 -6
  1393. package/esm2015/sidenav/sidenav.js +0 -118
  1394. package/esm2015/sidenav/testing/drawer-container-harness.js +0 -41
  1395. package/esm2015/sidenav/testing/drawer-harness.js +0 -57
  1396. package/esm2015/sidenav/testing/sidenav-container-harness.js +0 -41
  1397. package/esm2015/sidenav/testing/sidenav-harness.js +0 -32
  1398. package/esm2015/sidenav/testing/testing.externs.js +0 -0
  1399. package/esm2015/slide-toggle/slide-toggle-module.js +0 -40
  1400. package/esm2015/slide-toggle/slide-toggle-required-validator.js +0 -32
  1401. package/esm2015/slide-toggle/slide-toggle.externs.js +0 -6
  1402. package/esm2015/slide-toggle/slide-toggle.js +0 -236
  1403. package/esm2015/slide-toggle/testing/slide-toggle-harness.js +0 -139
  1404. package/esm2015/slide-toggle/testing/testing.externs.js +0 -0
  1405. package/esm2015/slider/slider-module.js +0 -21
  1406. package/esm2015/slider/slider.externs.js +0 -6
  1407. package/esm2015/slider/slider.js +0 -788
  1408. package/esm2015/slider/testing/slider-harness.js +0 -141
  1409. package/esm2015/slider/testing/testing.externs.js +0 -0
  1410. package/esm2015/snack-bar/simple-snack-bar.js +0 -45
  1411. package/esm2015/snack-bar/snack-bar-container.js +0 -224
  1412. package/esm2015/snack-bar/snack-bar-module.js +0 -32
  1413. package/esm2015/snack-bar/snack-bar-ref.js +0 -90
  1414. package/esm2015/snack-bar/snack-bar.externs.js +0 -6
  1415. package/esm2015/snack-bar/snack-bar.js +0 -264
  1416. package/esm2015/snack-bar/testing/snack-bar-harness.js +0 -141
  1417. package/esm2015/snack-bar/testing/testing.externs.js +0 -0
  1418. package/esm2015/sort/sort-header-intl.js +0 -41
  1419. package/esm2015/sort/sort-header.js +0 -268
  1420. package/esm2015/sort/sort-module.js +0 -24
  1421. package/esm2015/sort/sort.externs.js +0 -6
  1422. package/esm2015/sort/sort.js +0 -140
  1423. package/esm2015/sort/testing/sort-harness.js +0 -41
  1424. package/esm2015/sort/testing/sort-header-harness.js +0 -67
  1425. package/esm2015/sort/testing/testing.externs.js +0 -0
  1426. package/esm2015/stepper/step-content.js +0 -25
  1427. package/esm2015/stepper/step-header.js +0 -108
  1428. package/esm2015/stepper/step-label.js +0 -17
  1429. package/esm2015/stepper/stepper-button.js +0 -36
  1430. package/esm2015/stepper/stepper-icon.js +0 -28
  1431. package/esm2015/stepper/stepper-intl.js +0 -37
  1432. package/esm2015/stepper/stepper-module.js +0 -61
  1433. package/esm2015/stepper/stepper.externs.js +0 -6
  1434. package/esm2015/stepper/stepper.js +0 -187
  1435. package/esm2015/stepper/testing/step-harness.js +0 -111
  1436. package/esm2015/stepper/testing/stepper-button-harnesses.js +0 -55
  1437. package/esm2015/stepper/testing/stepper-harness.js +0 -57
  1438. package/esm2015/stepper/testing/testing.externs.js +0 -0
  1439. package/esm2015/table/cell.js +0 -114
  1440. package/esm2015/table/row.js +0 -116
  1441. package/esm2015/table/table-data-source.js +0 -312
  1442. package/esm2015/table/table-module.js +0 -50
  1443. package/esm2015/table/table.externs.js +0 -6
  1444. package/esm2015/table/table.js +0 -63
  1445. package/esm2015/table/testing/cell-harness.js +0 -77
  1446. package/esm2015/table/testing/row-harness.js +0 -91
  1447. package/esm2015/table/testing/table-harness.js +0 -99
  1448. package/esm2015/table/testing/testing.externs.js +0 -0
  1449. package/esm2015/table/text-column.js +0 -44
  1450. package/esm2015/tabs/index.js +0 -9
  1451. package/esm2015/tabs/ink-bar.js +0 -87
  1452. package/esm2015/tabs/paginated-tab-header.js +0 -477
  1453. package/esm2015/tabs/tab-body.js +0 -212
  1454. package/esm2015/tabs/tab-content.js +0 -31
  1455. package/esm2015/tabs/tab-group.js +0 -357
  1456. package/esm2015/tabs/tab-header.js +0 -94
  1457. package/esm2015/tabs/tab-label-wrapper.js +0 -47
  1458. package/esm2015/tabs/tab-label.js +0 -39
  1459. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -241
  1460. package/esm2015/tabs/tab.js +0 -107
  1461. package/esm2015/tabs/tabs-module.js +0 -60
  1462. package/esm2015/tabs/tabs.externs.js +0 -6
  1463. package/esm2015/tabs/testing/tab-group-harness.js +0 -65
  1464. package/esm2015/tabs/testing/tab-harness.js +0 -85
  1465. package/esm2015/tabs/testing/tab-link-harness.js +0 -51
  1466. package/esm2015/tabs/testing/tab-nav-bar-harness.js +0 -61
  1467. package/esm2015/tabs/testing/testing.externs.js +0 -0
  1468. package/esm2015/toolbar/testing/testing.externs.js +0 -0
  1469. package/esm2015/toolbar/testing/toolbar-harness.js +0 -47
  1470. package/esm2015/toolbar/toolbar-module.js +0 -20
  1471. package/esm2015/toolbar/toolbar.externs.js +0 -6
  1472. package/esm2015/toolbar/toolbar.js +0 -91
  1473. package/esm2015/tooltip/testing/testing.externs.js +0 -0
  1474. package/esm2015/tooltip/testing/tooltip-harness.js +0 -68
  1475. package/esm2015/tooltip/tooltip-module.js +0 -31
  1476. package/esm2015/tooltip/tooltip.externs.js +0 -6
  1477. package/esm2015/tooltip/tooltip.js +0 -737
  1478. package/esm2015/tree/node.js +0 -131
  1479. package/esm2015/tree/outlet.js +0 -33
  1480. package/esm2015/tree/padding.js +0 -31
  1481. package/esm2015/tree/testing/node-harness.js +0 -84
  1482. package/esm2015/tree/testing/testing.externs.js +0 -0
  1483. package/esm2015/tree/testing/tree-harness.js +0 -129
  1484. package/esm2015/tree/toggle.js +0 -32
  1485. package/esm2015/tree/tree-module.js +0 -34
  1486. package/esm2015/tree/tree.externs.js +0 -6
  1487. package/esm2015/tree/tree.js +0 -43
  1488. package/expansion/index.metadata.json +0 -1
  1489. package/fesm2015/autocomplete/testing.js +0 -147
  1490. package/fesm2015/autocomplete/testing.js.map +0 -1
  1491. package/fesm2015/autocomplete.js +0 -901
  1492. package/fesm2015/autocomplete.js.map +0 -1
  1493. package/fesm2015/badge/testing.js +0 -112
  1494. package/fesm2015/badge/testing.js.map +0 -1
  1495. package/fesm2015/badge.js +0 -248
  1496. package/fesm2015/badge.js.map +0 -1
  1497. package/fesm2015/bottom-sheet/testing.js +0 -67
  1498. package/fesm2015/bottom-sheet/testing.js.map +0 -1
  1499. package/fesm2015/bottom-sheet.js +0 -596
  1500. package/fesm2015/bottom-sheet.js.map +0 -1
  1501. package/fesm2015/button/testing.js +0 -91
  1502. package/fesm2015/button/testing.js.map +0 -1
  1503. package/fesm2015/button-toggle/testing.js +0 -211
  1504. package/fesm2015/button-toggle/testing.js.map +0 -1
  1505. package/fesm2015/button-toggle.js +0 -473
  1506. package/fesm2015/button-toggle.js.map +0 -1
  1507. package/fesm2015/button.js +0 -205
  1508. package/fesm2015/button.js.map +0 -1
  1509. package/fesm2015/card/testing.js +0 -79
  1510. package/fesm2015/card/testing.js.map +0 -1
  1511. package/fesm2015/card.js +0 -276
  1512. package/fesm2015/card.js.map +0 -1
  1513. package/fesm2015/checkbox/testing.js +0 -183
  1514. package/fesm2015/checkbox/testing.js.map +0 -1
  1515. package/fesm2015/checkbox.js +0 -476
  1516. package/fesm2015/checkbox.js.map +0 -1
  1517. package/fesm2015/chips/testing.js +0 -465
  1518. package/fesm2015/chips/testing.js.map +0 -1
  1519. package/fesm2015/chips.js +0 -1286
  1520. package/fesm2015/chips.js.map +0 -1
  1521. package/fesm2015/core/testing.js +0 -150
  1522. package/fesm2015/core/testing.js.map +0 -1
  1523. package/fesm2015/core.js +0 -1681
  1524. package/fesm2015/core.js.map +0 -1
  1525. package/fesm2015/datepicker/testing.js +0 -692
  1526. package/fesm2015/datepicker/testing.js.map +0 -1
  1527. package/fesm2015/datepicker.js +0 -3733
  1528. package/fesm2015/datepicker.js.map +0 -1
  1529. package/fesm2015/dialog/testing.js +0 -130
  1530. package/fesm2015/dialog/testing.js.map +0 -1
  1531. package/fesm2015/dialog.js +0 -1127
  1532. package/fesm2015/dialog.js.map +0 -1
  1533. package/fesm2015/divider/testing.js +0 -54
  1534. package/fesm2015/divider/testing.js.map +0 -1
  1535. package/fesm2015/divider.js +0 -76
  1536. package/fesm2015/divider.js.map +0 -1
  1537. package/fesm2015/expansion/testing.js +0 -209
  1538. package/fesm2015/expansion/testing.js.map +0 -1
  1539. package/fesm2015/expansion.js +0 -600
  1540. package/fesm2015/expansion.js.map +0 -1
  1541. package/fesm2015/form-field/testing/control.js +0 -26
  1542. package/fesm2015/form-field/testing/control.js.map +0 -1
  1543. package/fesm2015/form-field/testing.js +0 -246
  1544. package/fesm2015/form-field/testing.js.map +0 -1
  1545. package/fesm2015/form-field.js +0 -757
  1546. package/fesm2015/form-field.js.map +0 -1
  1547. package/fesm2015/grid-list/testing.js +0 -183
  1548. package/fesm2015/grid-list/testing.js.map +0 -1
  1549. package/fesm2015/grid-list.js +0 -680
  1550. package/fesm2015/grid-list.js.map +0 -1
  1551. package/fesm2015/icon/testing.js +0 -171
  1552. package/fesm2015/icon/testing.js.map +0 -1
  1553. package/fesm2015/icon.js +0 -1012
  1554. package/fesm2015/icon.js.map +0 -1
  1555. package/fesm2015/input/testing.js +0 -318
  1556. package/fesm2015/input/testing.js.map +0 -1
  1557. package/fesm2015/input.js +0 -463
  1558. package/fesm2015/input.js.map +0 -1
  1559. package/fesm2015/list/testing.js +0 -529
  1560. package/fesm2015/list/testing.js.map +0 -1
  1561. package/fesm2015/list.js +0 -876
  1562. package/fesm2015/list.js.map +0 -1
  1563. package/fesm2015/material.js +0 -16
  1564. package/fesm2015/material.js.map +0 -1
  1565. package/fesm2015/menu/testing.js +0 -250
  1566. package/fesm2015/menu/testing.js.map +0 -1
  1567. package/fesm2015/menu.js +0 -1299
  1568. package/fesm2015/menu.js.map +0 -1
  1569. package/fesm2015/paginator/testing.js +0 -133
  1570. package/fesm2015/paginator/testing.js.map +0 -1
  1571. package/fesm2015/paginator.js +0 -366
  1572. package/fesm2015/paginator.js.map +0 -1
  1573. package/fesm2015/progress-bar/testing.js +0 -66
  1574. package/fesm2015/progress-bar/testing.js.map +0 -1
  1575. package/fesm2015/progress-bar.js +0 -211
  1576. package/fesm2015/progress-bar.js.map +0 -1
  1577. package/fesm2015/progress-spinner/testing.js +0 -67
  1578. package/fesm2015/progress-spinner/testing.js.map +0 -1
  1579. package/fesm2015/progress-spinner.js +0 -313
  1580. package/fesm2015/progress-spinner.js.map +0 -1
  1581. package/fesm2015/radio/testing.js +0 -299
  1582. package/fesm2015/radio/testing.js.map +0 -1
  1583. package/fesm2015/radio.js +0 -578
  1584. package/fesm2015/radio.js.map +0 -1
  1585. package/fesm2015/select/testing.js +0 -184
  1586. package/fesm2015/select/testing.js.map +0 -1
  1587. package/fesm2015/select.js +0 -1271
  1588. package/fesm2015/select.js.map +0 -1
  1589. package/fesm2015/sidenav/testing.js +0 -231
  1590. package/fesm2015/sidenav/testing.js.map +0 -1
  1591. package/fesm2015/sidenav.js +0 -965
  1592. package/fesm2015/sidenav.js.map +0 -1
  1593. package/fesm2015/slide-toggle/testing.js +0 -166
  1594. package/fesm2015/slide-toggle/testing.js.map +0 -1
  1595. package/fesm2015/slide-toggle.js +0 -329
  1596. package/fesm2015/slide-toggle.js.map +0 -1
  1597. package/fesm2015/slider/testing.js +0 -160
  1598. package/fesm2015/slider/testing.js.map +0 -1
  1599. package/fesm2015/slider.js +0 -820
  1600. package/fesm2015/slider.js.map +0 -1
  1601. package/fesm2015/snack-bar/testing.js +0 -168
  1602. package/fesm2015/snack-bar/testing.js.map +0 -1
  1603. package/fesm2015/snack-bar.js +0 -712
  1604. package/fesm2015/snack-bar.js.map +0 -1
  1605. package/fesm2015/sort/testing.js +0 -124
  1606. package/fesm2015/sort/testing.js.map +0 -1
  1607. package/fesm2015/sort.js +0 -587
  1608. package/fesm2015/sort.js.map +0 -1
  1609. package/fesm2015/stepper/testing.js +0 -237
  1610. package/fesm2015/stepper/testing.js.map +0 -1
  1611. package/fesm2015/stepper.js +0 -519
  1612. package/fesm2015/stepper.js.map +0 -1
  1613. package/fesm2015/table/testing.js +0 -280
  1614. package/fesm2015/table/testing.js.map +0 -1
  1615. package/fesm2015/table.js +0 -701
  1616. package/fesm2015/table.js.map +0 -1
  1617. package/fesm2015/tabs/testing.js +0 -273
  1618. package/fesm2015/tabs/testing.js.map +0 -1
  1619. package/fesm2015/tabs.js +0 -1761
  1620. package/fesm2015/tabs.js.map +0 -1
  1621. package/fesm2015/toolbar/testing.js +0 -74
  1622. package/fesm2015/toolbar/testing.js.map +0 -1
  1623. package/fesm2015/toolbar.js +0 -123
  1624. package/fesm2015/toolbar.js.map +0 -1
  1625. package/fesm2015/tooltip/testing.js +0 -95
  1626. package/fesm2015/tooltip/testing.js.map +0 -1
  1627. package/fesm2015/tooltip.js +0 -802
  1628. package/fesm2015/tooltip.js.map +0 -1
  1629. package/fesm2015/tree/testing.js +0 -237
  1630. package/fesm2015/tree/testing.js.map +0 -1
  1631. package/fesm2015/tree.js +0 -479
  1632. package/fesm2015/tree.js.map +0 -1
  1633. package/form-field/index.metadata.json +0 -1
  1634. package/grid-list/index.metadata.json +0 -1
  1635. package/icon/index.metadata.json +0 -1
  1636. package/icon/testing/index.metadata.json +0 -1
  1637. package/input/index.metadata.json +0 -1
  1638. package/list/index.metadata.json +0 -1
  1639. package/menu/index.metadata.json +0 -1
  1640. package/paginator/index.metadata.json +0 -1
  1641. package/progress-bar/index.metadata.json +0 -1
  1642. package/progress-spinner/index.metadata.json +0 -1
  1643. package/radio/index.metadata.json +0 -1
  1644. package/select/index.metadata.json +0 -1
  1645. package/sidenav/index.metadata.json +0 -1
  1646. package/slide-toggle/index.metadata.json +0 -1
  1647. package/slider/index.metadata.json +0 -1
  1648. package/snack-bar/index.metadata.json +0 -1
  1649. package/sort/index.metadata.json +0 -1
  1650. package/stepper/index.metadata.json +0 -1
  1651. package/table/index.metadata.json +0 -1
  1652. package/tabs/index.metadata.json +0 -1
  1653. package/toolbar/index.metadata.json +0 -1
  1654. package/tooltip/index.metadata.json +0 -1
  1655. package/tree/index.metadata.json +0 -1
@@ -0,0 +1,3921 @@
1
+ import * as i4 from '@angular/cdk/a11y';
2
+ import { A11yModule } from '@angular/cdk/a11y';
3
+ import * as i9 from '@angular/cdk/overlay';
4
+ import { Overlay, FlexibleConnectedPositionStrategy, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
5
+ import * as i8 from '@angular/cdk/portal';
6
+ import { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
7
+ import * as i1 from '@angular/common';
8
+ import { CommonModule } from '@angular/common';
9
+ import * as i0 from '@angular/core';
10
+ import { Injectable, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, Optional, SkipSelf, InjectionToken, Inject, ViewChild, forwardRef, Directive, Attribute, ContentChild, InjectFlags, Self, TemplateRef, NgModule } from '@angular/core';
11
+ import * as i3 from '@angular/material/button';
12
+ import { MatButtonModule } from '@angular/material/button';
13
+ import { CdkScrollableModule } from '@angular/cdk/scrolling';
14
+ import * as i1$1 from '@angular/material/core';
15
+ import { DateAdapter, MAT_DATE_FORMATS, mixinColor, mixinErrorState, MatCommonModule } from '@angular/material/core';
16
+ import { Subject, Subscription, merge, of } from 'rxjs';
17
+ import { ESCAPE, hasModifierKey, SPACE, ENTER, PAGE_DOWN, PAGE_UP, END, HOME, DOWN_ARROW, UP_ARROW, RIGHT_ARROW, LEFT_ARROW, BACKSPACE } from '@angular/cdk/keycodes';
18
+ import * as i2 from '@angular/cdk/bidi';
19
+ import { take, startWith, filter } from 'rxjs/operators';
20
+ import { coerceBooleanProperty, coerceStringArray } from '@angular/cdk/coercion';
21
+ import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
22
+ import { trigger, transition, animate, keyframes, style, state } from '@angular/animations';
23
+ import * as i2$2 from '@angular/forms';
24
+ import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators, NgControl } from '@angular/forms';
25
+ import * as i2$1 from '@angular/material/form-field';
26
+ import { MAT_FORM_FIELD, MatFormFieldControl } from '@angular/material/form-field';
27
+ import { MAT_INPUT_VALUE_ACCESSOR } from '@angular/material/input';
28
+
29
+ /**
30
+ * @license
31
+ * Copyright Google LLC All Rights Reserved.
32
+ *
33
+ * Use of this source code is governed by an MIT-style license that can be
34
+ * found in the LICENSE file at https://angular.io/license
35
+ */
36
+ /** @docs-private */
37
+ function createMissingDateImplError(provider) {
38
+ return Error(`MatDatepicker: No provider found for ${provider}. You must import one of the following ` +
39
+ `modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a ` +
40
+ `custom implementation.`);
41
+ }
42
+
43
+ /**
44
+ * @license
45
+ * Copyright Google LLC All Rights Reserved.
46
+ *
47
+ * Use of this source code is governed by an MIT-style license that can be
48
+ * found in the LICENSE file at https://angular.io/license
49
+ */
50
+ /** Datepicker data that requires internationalization. */
51
+ class MatDatepickerIntl {
52
+ constructor() {
53
+ /**
54
+ * Stream that emits whenever the labels here are changed. Use this to notify
55
+ * components if the labels have changed after initialization.
56
+ */
57
+ this.changes = new Subject();
58
+ /** A label for the calendar popup (used by screen readers). */
59
+ this.calendarLabel = 'Calendar';
60
+ /** A label for the button used to open the calendar popup (used by screen readers). */
61
+ this.openCalendarLabel = 'Open calendar';
62
+ /** Label for the button used to close the calendar popup. */
63
+ this.closeCalendarLabel = 'Close calendar';
64
+ /** A label for the previous month button (used by screen readers). */
65
+ this.prevMonthLabel = 'Previous month';
66
+ /** A label for the next month button (used by screen readers). */
67
+ this.nextMonthLabel = 'Next month';
68
+ /** A label for the previous year button (used by screen readers). */
69
+ this.prevYearLabel = 'Previous year';
70
+ /** A label for the next year button (used by screen readers). */
71
+ this.nextYearLabel = 'Next year';
72
+ /** A label for the previous multi-year button (used by screen readers). */
73
+ this.prevMultiYearLabel = 'Previous 24 years';
74
+ /** A label for the next multi-year button (used by screen readers). */
75
+ this.nextMultiYearLabel = 'Next 24 years';
76
+ /** A label for the 'switch to month view' button (used by screen readers). */
77
+ this.switchToMonthViewLabel = 'Choose date';
78
+ /** A label for the 'switch to year view' button (used by screen readers). */
79
+ this.switchToMultiYearViewLabel = 'Choose month and year';
80
+ }
81
+ /** Formats a range of years. */
82
+ formatYearRange(start, end) {
83
+ return `${start} \u2013 ${end}`;
84
+ }
85
+ }
86
+ MatDatepickerIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
87
+ MatDatepickerIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerIntl, providedIn: 'root' });
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerIntl, decorators: [{
89
+ type: Injectable,
90
+ args: [{ providedIn: 'root' }]
91
+ }] });
92
+
93
+ /**
94
+ * @license
95
+ * Copyright Google LLC All Rights Reserved.
96
+ *
97
+ * Use of this source code is governed by an MIT-style license that can be
98
+ * found in the LICENSE file at https://angular.io/license
99
+ */
100
+ /**
101
+ * An internal class that represents the data corresponding to a single calendar cell.
102
+ * @docs-private
103
+ */
104
+ class MatCalendarCell {
105
+ constructor(value, displayValue, ariaLabel, enabled, cssClasses = {}, compareValue = value, rawValue) {
106
+ this.value = value;
107
+ this.displayValue = displayValue;
108
+ this.ariaLabel = ariaLabel;
109
+ this.enabled = enabled;
110
+ this.cssClasses = cssClasses;
111
+ this.compareValue = compareValue;
112
+ this.rawValue = rawValue;
113
+ }
114
+ }
115
+ /**
116
+ * An internal component used to display calendar data in a table.
117
+ * @docs-private
118
+ */
119
+ class MatCalendarBody {
120
+ constructor(_elementRef, _ngZone) {
121
+ this._elementRef = _elementRef;
122
+ this._ngZone = _ngZone;
123
+ /** The number of columns in the table. */
124
+ this.numCols = 7;
125
+ /** The cell number of the active cell in the table. */
126
+ this.activeCell = 0;
127
+ /** Whether a range is being selected. */
128
+ this.isRange = false;
129
+ /**
130
+ * The aspect ratio (width / height) to use for the cells in the table. This aspect ratio will be
131
+ * maintained even as the table resizes.
132
+ */
133
+ this.cellAspectRatio = 1;
134
+ /** Start of the preview range. */
135
+ this.previewStart = null;
136
+ /** End of the preview range. */
137
+ this.previewEnd = null;
138
+ /** Emits when a new value is selected. */
139
+ this.selectedValueChange = new EventEmitter();
140
+ /** Emits when the preview has changed as a result of a user action. */
141
+ this.previewChange = new EventEmitter();
142
+ /**
143
+ * Event handler for when the user enters an element
144
+ * inside the calendar body (e.g. by hovering in or focus).
145
+ */
146
+ this._enterHandler = (event) => {
147
+ if (this._skipNextFocus && event.type === 'focus') {
148
+ this._skipNextFocus = false;
149
+ return;
150
+ }
151
+ // We only need to hit the zone when we're selecting a range.
152
+ if (event.target && this.isRange) {
153
+ const cell = this._getCellFromElement(event.target);
154
+ if (cell) {
155
+ this._ngZone.run(() => this.previewChange.emit({ value: cell.enabled ? cell : null, event }));
156
+ }
157
+ }
158
+ };
159
+ /**
160
+ * Event handler for when the user's pointer leaves an element
161
+ * inside the calendar body (e.g. by hovering out or blurring).
162
+ */
163
+ this._leaveHandler = (event) => {
164
+ // We only need to hit the zone when we're selecting a range.
165
+ if (this.previewEnd !== null && this.isRange) {
166
+ // Only reset the preview end value when leaving cells. This looks better, because
167
+ // we have a gap between the cells and the rows and we don't want to remove the
168
+ // range just for it to show up again when the user moves a few pixels to the side.
169
+ if (event.target && isTableCell(event.target)) {
170
+ this._ngZone.run(() => this.previewChange.emit({ value: null, event }));
171
+ }
172
+ }
173
+ };
174
+ _ngZone.runOutsideAngular(() => {
175
+ const element = _elementRef.nativeElement;
176
+ element.addEventListener('mouseenter', this._enterHandler, true);
177
+ element.addEventListener('focus', this._enterHandler, true);
178
+ element.addEventListener('mouseleave', this._leaveHandler, true);
179
+ element.addEventListener('blur', this._leaveHandler, true);
180
+ });
181
+ }
182
+ /** Called when a cell is clicked. */
183
+ _cellClicked(cell, event) {
184
+ if (cell.enabled) {
185
+ this.selectedValueChange.emit({ value: cell.value, event });
186
+ }
187
+ }
188
+ /** Returns whether a cell should be marked as selected. */
189
+ _isSelected(value) {
190
+ return this.startValue === value || this.endValue === value;
191
+ }
192
+ ngOnChanges(changes) {
193
+ const columnChanges = changes['numCols'];
194
+ const { rows, numCols } = this;
195
+ if (changes['rows'] || columnChanges) {
196
+ this._firstRowOffset = rows && rows.length && rows[0].length ? numCols - rows[0].length : 0;
197
+ }
198
+ if (changes['cellAspectRatio'] || columnChanges || !this._cellPadding) {
199
+ this._cellPadding = `${50 * this.cellAspectRatio / numCols}%`;
200
+ }
201
+ if (columnChanges || !this._cellWidth) {
202
+ this._cellWidth = `${100 / numCols}%`;
203
+ }
204
+ }
205
+ ngOnDestroy() {
206
+ const element = this._elementRef.nativeElement;
207
+ element.removeEventListener('mouseenter', this._enterHandler, true);
208
+ element.removeEventListener('focus', this._enterHandler, true);
209
+ element.removeEventListener('mouseleave', this._leaveHandler, true);
210
+ element.removeEventListener('blur', this._leaveHandler, true);
211
+ }
212
+ /** Returns whether a cell is active. */
213
+ _isActiveCell(rowIndex, colIndex) {
214
+ let cellNumber = rowIndex * this.numCols + colIndex;
215
+ // Account for the fact that the first row may not have as many cells.
216
+ if (rowIndex) {
217
+ cellNumber -= this._firstRowOffset;
218
+ }
219
+ return cellNumber == this.activeCell;
220
+ }
221
+ /** Focuses the active cell after the microtask queue is empty. */
222
+ _focusActiveCell(movePreview = true) {
223
+ this._ngZone.runOutsideAngular(() => {
224
+ this._ngZone.onStable.pipe(take(1)).subscribe(() => {
225
+ const activeCell = this._elementRef.nativeElement.querySelector('.mat-calendar-body-active');
226
+ if (activeCell) {
227
+ if (!movePreview) {
228
+ this._skipNextFocus = true;
229
+ }
230
+ activeCell.focus();
231
+ }
232
+ });
233
+ });
234
+ }
235
+ /** Gets whether a value is the start of the main range. */
236
+ _isRangeStart(value) {
237
+ return isStart(value, this.startValue, this.endValue);
238
+ }
239
+ /** Gets whether a value is the end of the main range. */
240
+ _isRangeEnd(value) {
241
+ return isEnd(value, this.startValue, this.endValue);
242
+ }
243
+ /** Gets whether a value is within the currently-selected range. */
244
+ _isInRange(value) {
245
+ return isInRange(value, this.startValue, this.endValue, this.isRange);
246
+ }
247
+ /** Gets whether a value is the start of the comparison range. */
248
+ _isComparisonStart(value) {
249
+ return isStart(value, this.comparisonStart, this.comparisonEnd);
250
+ }
251
+ /** Whether the cell is a start bridge cell between the main and comparison ranges. */
252
+ _isComparisonBridgeStart(value, rowIndex, colIndex) {
253
+ if (!this._isComparisonStart(value) || this._isRangeStart(value) || !this._isInRange(value)) {
254
+ return false;
255
+ }
256
+ let previousCell = this.rows[rowIndex][colIndex - 1];
257
+ if (!previousCell) {
258
+ const previousRow = this.rows[rowIndex - 1];
259
+ previousCell = previousRow && previousRow[previousRow.length - 1];
260
+ }
261
+ return previousCell && !this._isRangeEnd(previousCell.compareValue);
262
+ }
263
+ /** Whether the cell is an end bridge cell between the main and comparison ranges. */
264
+ _isComparisonBridgeEnd(value, rowIndex, colIndex) {
265
+ if (!this._isComparisonEnd(value) || this._isRangeEnd(value) || !this._isInRange(value)) {
266
+ return false;
267
+ }
268
+ let nextCell = this.rows[rowIndex][colIndex + 1];
269
+ if (!nextCell) {
270
+ const nextRow = this.rows[rowIndex + 1];
271
+ nextCell = nextRow && nextRow[0];
272
+ }
273
+ return nextCell && !this._isRangeStart(nextCell.compareValue);
274
+ }
275
+ /** Gets whether a value is the end of the comparison range. */
276
+ _isComparisonEnd(value) {
277
+ return isEnd(value, this.comparisonStart, this.comparisonEnd);
278
+ }
279
+ /** Gets whether a value is within the current comparison range. */
280
+ _isInComparisonRange(value) {
281
+ return isInRange(value, this.comparisonStart, this.comparisonEnd, this.isRange);
282
+ }
283
+ /**
284
+ * Gets whether a value is the same as the start and end of the comparison range.
285
+ * For context, the functions that we use to determine whether something is the start/end of
286
+ * a range don't allow for the start and end to be on the same day, because we'd have to use
287
+ * much more specific CSS selectors to style them correctly in all scenarios. This is fine for
288
+ * the regular range, because when it happens, the selected styles take over and still show where
289
+ * the range would've been, however we don't have these selected styles for a comparison range.
290
+ * This function is used to apply a class that serves the same purpose as the one for selected
291
+ * dates, but it only applies in the context of a comparison range.
292
+ */
293
+ _isComparisonIdentical(value) {
294
+ // Note that we don't need to null check the start/end
295
+ // here, because the `value` will always be defined.
296
+ return this.comparisonStart === this.comparisonEnd && value === this.comparisonStart;
297
+ }
298
+ /** Gets whether a value is the start of the preview range. */
299
+ _isPreviewStart(value) {
300
+ return isStart(value, this.previewStart, this.previewEnd);
301
+ }
302
+ /** Gets whether a value is the end of the preview range. */
303
+ _isPreviewEnd(value) {
304
+ return isEnd(value, this.previewStart, this.previewEnd);
305
+ }
306
+ /** Gets whether a value is inside the preview range. */
307
+ _isInPreview(value) {
308
+ return isInRange(value, this.previewStart, this.previewEnd, this.isRange);
309
+ }
310
+ /** Finds the MatCalendarCell that corresponds to a DOM node. */
311
+ _getCellFromElement(element) {
312
+ let cell;
313
+ if (isTableCell(element)) {
314
+ cell = element;
315
+ }
316
+ else if (isTableCell(element.parentNode)) {
317
+ cell = element.parentNode;
318
+ }
319
+ if (cell) {
320
+ const row = cell.getAttribute('data-mat-row');
321
+ const col = cell.getAttribute('data-mat-col');
322
+ if (row && col) {
323
+ return this.rows[parseInt(row)][parseInt(col)];
324
+ }
325
+ }
326
+ return null;
327
+ }
328
+ }
329
+ MatCalendarBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatCalendarBody, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
330
+ MatCalendarBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: { label: "label", rows: "rows", todayValue: "todayValue", startValue: "startValue", endValue: "endValue", labelMinRequiredCells: "labelMinRequiredCells", numCols: "numCols", activeCell: "activeCell", isRange: "isRange", cellAspectRatio: "cellAspectRatio", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd", previewStart: "previewStart", previewEnd: "previewEnd" }, outputs: { selectedValueChange: "selectedValueChange", previewChange: "previewChange" }, host: { classAttribute: "mat-calendar-body" }, exportAs: ["matCalendarBody"], usesOnChanges: true, ngImport: i0, 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 This cell is purely decorative, but we can't put `aria-hidden` or `role=\"presentation\"` on it,\n because it throws off the week days for the rest of the row on NVDA. The aspect ratio of the\n table cells is maintained by setting the top and bottom padding as a percentage of the width\n (a variant of the trick described here: https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n -->\n <td *ngIf=\"rowIndex === 0 && _firstRowOffset\"\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\"\n [ngClass]=\"item.cssClasses\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n [class.mat-calendar-body-disabled]=\"!item.enabled\"\n [class.mat-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\"\n [class.mat-calendar-body-range-start]=\"_isRangeStart(item.compareValue)\"\n [class.mat-calendar-body-range-end]=\"_isRangeEnd(item.compareValue)\"\n [class.mat-calendar-body-in-range]=\"_isInRange(item.compareValue)\"\n [class.mat-calendar-body-comparison-bridge-start]=\"_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-bridge-end]=\"_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-start]=\"_isComparisonStart(item.compareValue)\"\n [class.mat-calendar-body-comparison-end]=\"_isComparisonEnd(item.compareValue)\"\n [class.mat-calendar-body-in-comparison-range]=\"_isInComparisonRange(item.compareValue)\"\n [class.mat-calendar-body-preview-start]=\"_isPreviewStart(item.compareValue)\"\n [class.mat-calendar-body-preview-end]=\"_isPreviewEnd(item.compareValue)\"\n [class.mat-calendar-body-in-preview]=\"_isInPreview(item.compareValue)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n [attr.aria-selected]=\"_isSelected(item.compareValue)\"\n (click)=\"_cellClicked(item, $event)\"\n [style.width]=\"_cellWidth\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n <div class=\"mat-calendar-body-cell-content mat-focus-indicator\"\n [class.mat-calendar-body-selected]=\"_isSelected(item.compareValue)\"\n [class.mat-calendar-body-comparison-identical]=\"_isComparisonIdentical(item.compareValue)\"\n [class.mat-calendar-body-today]=\"todayValue === item.compareValue\">\n {{item.displayValue}}\n </div>\n <div class=\"mat-calendar-body-cell-preview\"></div>\n </td>\n</tr>\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-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:\"\";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;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}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.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-cell:not(.mat-calendar-body-in-range) .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}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[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"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
331
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatCalendarBody, decorators: [{
332
+ type: Component,
333
+ args: [{ selector: '[mat-calendar-body]', host: {
334
+ 'class': 'mat-calendar-body',
335
+ }, exportAs: 'matCalendarBody', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, 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 This cell is purely decorative, but we can't put `aria-hidden` or `role=\"presentation\"` on it,\n because it throws off the week days for the rest of the row on NVDA. The aspect ratio of the\n table cells is maintained by setting the top and bottom padding as a percentage of the width\n (a variant of the trick described here: https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n -->\n <td *ngIf=\"rowIndex === 0 && _firstRowOffset\"\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\"\n [ngClass]=\"item.cssClasses\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n [class.mat-calendar-body-disabled]=\"!item.enabled\"\n [class.mat-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\"\n [class.mat-calendar-body-range-start]=\"_isRangeStart(item.compareValue)\"\n [class.mat-calendar-body-range-end]=\"_isRangeEnd(item.compareValue)\"\n [class.mat-calendar-body-in-range]=\"_isInRange(item.compareValue)\"\n [class.mat-calendar-body-comparison-bridge-start]=\"_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-bridge-end]=\"_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-start]=\"_isComparisonStart(item.compareValue)\"\n [class.mat-calendar-body-comparison-end]=\"_isComparisonEnd(item.compareValue)\"\n [class.mat-calendar-body-in-comparison-range]=\"_isInComparisonRange(item.compareValue)\"\n [class.mat-calendar-body-preview-start]=\"_isPreviewStart(item.compareValue)\"\n [class.mat-calendar-body-preview-end]=\"_isPreviewEnd(item.compareValue)\"\n [class.mat-calendar-body-in-preview]=\"_isInPreview(item.compareValue)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n [attr.aria-selected]=\"_isSelected(item.compareValue)\"\n (click)=\"_cellClicked(item, $event)\"\n [style.width]=\"_cellWidth\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n <div class=\"mat-calendar-body-cell-content mat-focus-indicator\"\n [class.mat-calendar-body-selected]=\"_isSelected(item.compareValue)\"\n [class.mat-calendar-body-comparison-identical]=\"_isComparisonIdentical(item.compareValue)\"\n [class.mat-calendar-body-today]=\"todayValue === item.compareValue\">\n {{item.displayValue}}\n </div>\n <div class=\"mat-calendar-body-cell-preview\"></div>\n </td>\n</tr>\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-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:\"\";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;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}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.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-cell:not(.mat-calendar-body-in-range) .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}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[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"] }]
336
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { label: [{
337
+ type: Input
338
+ }], rows: [{
339
+ type: Input
340
+ }], todayValue: [{
341
+ type: Input
342
+ }], startValue: [{
343
+ type: Input
344
+ }], endValue: [{
345
+ type: Input
346
+ }], labelMinRequiredCells: [{
347
+ type: Input
348
+ }], numCols: [{
349
+ type: Input
350
+ }], activeCell: [{
351
+ type: Input
352
+ }], isRange: [{
353
+ type: Input
354
+ }], cellAspectRatio: [{
355
+ type: Input
356
+ }], comparisonStart: [{
357
+ type: Input
358
+ }], comparisonEnd: [{
359
+ type: Input
360
+ }], previewStart: [{
361
+ type: Input
362
+ }], previewEnd: [{
363
+ type: Input
364
+ }], selectedValueChange: [{
365
+ type: Output
366
+ }], previewChange: [{
367
+ type: Output
368
+ }] } });
369
+ /** Checks whether a node is a table cell element. */
370
+ function isTableCell(node) {
371
+ return node.nodeName === 'TD';
372
+ }
373
+ /** Checks whether a value is the start of a range. */
374
+ function isStart(value, start, end) {
375
+ return end !== null && start !== end && value < end && value === start;
376
+ }
377
+ /** Checks whether a value is the end of a range. */
378
+ function isEnd(value, start, end) {
379
+ return start !== null && start !== end && value >= start && value === end;
380
+ }
381
+ /** Checks whether a value is inside of a range. */
382
+ function isInRange(value, start, end, rangeEnabled) {
383
+ return rangeEnabled && start !== null && end !== null && start !== end &&
384
+ value >= start && value <= end;
385
+ }
386
+
387
+ /**
388
+ * @license
389
+ * Copyright Google LLC All Rights Reserved.
390
+ *
391
+ * Use of this source code is governed by an MIT-style license that can be
392
+ * found in the LICENSE file at https://angular.io/license
393
+ */
394
+ /** A class representing a range of dates. */
395
+ class DateRange {
396
+ constructor(
397
+ /** The start date of the range. */
398
+ start,
399
+ /** The end date of the range. */
400
+ end) {
401
+ this.start = start;
402
+ this.end = end;
403
+ }
404
+ }
405
+ /**
406
+ * A selection model containing a date selection.
407
+ * @docs-private
408
+ */
409
+ class MatDateSelectionModel {
410
+ constructor(
411
+ /** The current selection. */
412
+ selection, _adapter) {
413
+ this.selection = selection;
414
+ this._adapter = _adapter;
415
+ this._selectionChanged = new Subject();
416
+ /** Emits when the selection has changed. */
417
+ this.selectionChanged = this._selectionChanged;
418
+ this.selection = selection;
419
+ }
420
+ /**
421
+ * Updates the current selection in the model.
422
+ * @param value New selection that should be assigned.
423
+ * @param source Object that triggered the selection change.
424
+ */
425
+ updateSelection(value, source) {
426
+ const oldValue = this.selection;
427
+ this.selection = value;
428
+ this._selectionChanged.next({ selection: value, source, oldValue });
429
+ }
430
+ ngOnDestroy() {
431
+ this._selectionChanged.complete();
432
+ }
433
+ _isValidDateInstance(date) {
434
+ return this._adapter.isDateInstance(date) && this._adapter.isValid(date);
435
+ }
436
+ }
437
+ MatDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDateSelectionModel, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
438
+ MatDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDateSelectionModel });
439
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDateSelectionModel, decorators: [{
440
+ type: Injectable
441
+ }], ctorParameters: function () { return [{ type: undefined }, { type: i1$1.DateAdapter }]; } });
442
+ /**
443
+ * A selection model that contains a single date.
444
+ * @docs-private
445
+ */
446
+ class MatSingleDateSelectionModel extends MatDateSelectionModel {
447
+ constructor(adapter) {
448
+ super(null, adapter);
449
+ }
450
+ /**
451
+ * Adds a date to the current selection. In the case of a single date selection, the added date
452
+ * simply overwrites the previous selection
453
+ */
454
+ add(date) {
455
+ super.updateSelection(date, this);
456
+ }
457
+ /** Checks whether the current selection is valid. */
458
+ isValid() {
459
+ return this.selection != null && this._isValidDateInstance(this.selection);
460
+ }
461
+ /**
462
+ * Checks whether the current selection is complete. In the case of a single date selection, this
463
+ * is true if the current selection is not null.
464
+ */
465
+ isComplete() {
466
+ return this.selection != null;
467
+ }
468
+ /** Clones the selection model. */
469
+ clone() {
470
+ const clone = new MatSingleDateSelectionModel(this._adapter);
471
+ clone.updateSelection(this.selection, this);
472
+ return clone;
473
+ }
474
+ }
475
+ MatSingleDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatSingleDateSelectionModel, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });
476
+ MatSingleDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatSingleDateSelectionModel });
477
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatSingleDateSelectionModel, decorators: [{
478
+ type: Injectable
479
+ }], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
480
+ /**
481
+ * A selection model that contains a date range.
482
+ * @docs-private
483
+ */
484
+ class MatRangeDateSelectionModel extends MatDateSelectionModel {
485
+ constructor(adapter) {
486
+ super(new DateRange(null, null), adapter);
487
+ }
488
+ /**
489
+ * Adds a date to the current selection. In the case of a date range selection, the added date
490
+ * fills in the next `null` value in the range. If both the start and the end already have a date,
491
+ * the selection is reset so that the given date is the new `start` and the `end` is null.
492
+ */
493
+ add(date) {
494
+ let { start, end } = this.selection;
495
+ if (start == null) {
496
+ start = date;
497
+ }
498
+ else if (end == null) {
499
+ end = date;
500
+ }
501
+ else {
502
+ start = date;
503
+ end = null;
504
+ }
505
+ super.updateSelection(new DateRange(start, end), this);
506
+ }
507
+ /** Checks whether the current selection is valid. */
508
+ isValid() {
509
+ const { start, end } = this.selection;
510
+ // Empty ranges are valid.
511
+ if (start == null && end == null) {
512
+ return true;
513
+ }
514
+ // Complete ranges are only valid if both dates are valid and the start is before the end.
515
+ if (start != null && end != null) {
516
+ return this._isValidDateInstance(start) && this._isValidDateInstance(end) &&
517
+ this._adapter.compareDate(start, end) <= 0;
518
+ }
519
+ // Partial ranges are valid if the start/end is valid.
520
+ return (start == null || this._isValidDateInstance(start)) &&
521
+ (end == null || this._isValidDateInstance(end));
522
+ }
523
+ /**
524
+ * Checks whether the current selection is complete. In the case of a date range selection, this
525
+ * is true if the current selection has a non-null `start` and `end`.
526
+ */
527
+ isComplete() {
528
+ return this.selection.start != null && this.selection.end != null;
529
+ }
530
+ /** Clones the selection model. */
531
+ clone() {
532
+ const clone = new MatRangeDateSelectionModel(this._adapter);
533
+ clone.updateSelection(this.selection, this);
534
+ return clone;
535
+ }
536
+ }
537
+ MatRangeDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatRangeDateSelectionModel, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });
538
+ MatRangeDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatRangeDateSelectionModel });
539
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatRangeDateSelectionModel, decorators: [{
540
+ type: Injectable
541
+ }], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
542
+ /** @docs-private */
543
+ function MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY(parent, adapter) {
544
+ return parent || new MatSingleDateSelectionModel(adapter);
545
+ }
546
+ /**
547
+ * Used to provide a single selection model to a component.
548
+ * @docs-private
549
+ */
550
+ const MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER = {
551
+ provide: MatDateSelectionModel,
552
+ deps: [[new Optional(), new SkipSelf(), MatDateSelectionModel], DateAdapter],
553
+ useFactory: MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY,
554
+ };
555
+ /** @docs-private */
556
+ function MAT_RANGE_DATE_SELECTION_MODEL_FACTORY(parent, adapter) {
557
+ return parent || new MatRangeDateSelectionModel(adapter);
558
+ }
559
+ /**
560
+ * Used to provide a range selection model to a component.
561
+ * @docs-private
562
+ */
563
+ const MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER = {
564
+ provide: MatDateSelectionModel,
565
+ deps: [[new Optional(), new SkipSelf(), MatDateSelectionModel], DateAdapter],
566
+ useFactory: MAT_RANGE_DATE_SELECTION_MODEL_FACTORY,
567
+ };
568
+
569
+ /**
570
+ * @license
571
+ * Copyright Google LLC All Rights Reserved.
572
+ *
573
+ * Use of this source code is governed by an MIT-style license that can be
574
+ * found in the LICENSE file at https://angular.io/license
575
+ */
576
+ /** Injection token used to customize the date range selection behavior. */
577
+ const MAT_DATE_RANGE_SELECTION_STRATEGY = new InjectionToken('MAT_DATE_RANGE_SELECTION_STRATEGY');
578
+ /** Provides the default date range selection behavior. */
579
+ class DefaultMatCalendarRangeStrategy {
580
+ constructor(_dateAdapter) {
581
+ this._dateAdapter = _dateAdapter;
582
+ }
583
+ selectionFinished(date, currentRange) {
584
+ let { start, end } = currentRange;
585
+ if (start == null) {
586
+ start = date;
587
+ }
588
+ else if (end == null && date && this._dateAdapter.compareDate(date, start) >= 0) {
589
+ end = date;
590
+ }
591
+ else {
592
+ start = date;
593
+ end = null;
594
+ }
595
+ return new DateRange(start, end);
596
+ }
597
+ createPreview(activeDate, currentRange) {
598
+ let start = null;
599
+ let end = null;
600
+ if (currentRange.start && !currentRange.end && activeDate) {
601
+ start = currentRange.start;
602
+ end = activeDate;
603
+ }
604
+ return new DateRange(start, end);
605
+ }
606
+ }
607
+ DefaultMatCalendarRangeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DefaultMatCalendarRangeStrategy, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });
608
+ DefaultMatCalendarRangeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DefaultMatCalendarRangeStrategy });
609
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DefaultMatCalendarRangeStrategy, decorators: [{
610
+ type: Injectable
611
+ }], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
612
+ /** @docs-private */
613
+ function MAT_CALENDAR_RANGE_STRATEGY_PROVIDER_FACTORY(parent, adapter) {
614
+ return parent || new DefaultMatCalendarRangeStrategy(adapter);
615
+ }
616
+ /** @docs-private */
617
+ const MAT_CALENDAR_RANGE_STRATEGY_PROVIDER = {
618
+ provide: MAT_DATE_RANGE_SELECTION_STRATEGY,
619
+ deps: [[new Optional(), new SkipSelf(), MAT_DATE_RANGE_SELECTION_STRATEGY], DateAdapter],
620
+ useFactory: MAT_CALENDAR_RANGE_STRATEGY_PROVIDER_FACTORY,
621
+ };
622
+
623
+ /**
624
+ * @license
625
+ * Copyright Google LLC All Rights Reserved.
626
+ *
627
+ * Use of this source code is governed by an MIT-style license that can be
628
+ * found in the LICENSE file at https://angular.io/license
629
+ */
630
+ const DAYS_PER_WEEK = 7;
631
+ /**
632
+ * An internal component used to display a single month in the datepicker.
633
+ * @docs-private
634
+ */
635
+ class MatMonthView {
636
+ constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir, _rangeStrategy) {
637
+ this._changeDetectorRef = _changeDetectorRef;
638
+ this._dateFormats = _dateFormats;
639
+ this._dateAdapter = _dateAdapter;
640
+ this._dir = _dir;
641
+ this._rangeStrategy = _rangeStrategy;
642
+ this._rerenderSubscription = Subscription.EMPTY;
643
+ /** Emits when a new date is selected. */
644
+ this.selectedChange = new EventEmitter();
645
+ /** Emits when any date is selected. */
646
+ this._userSelection = new EventEmitter();
647
+ /** Emits when any date is activated. */
648
+ this.activeDateChange = new EventEmitter();
649
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
650
+ if (!this._dateAdapter) {
651
+ throw createMissingDateImplError('DateAdapter');
652
+ }
653
+ if (!this._dateFormats) {
654
+ throw createMissingDateImplError('MAT_DATE_FORMATS');
655
+ }
656
+ }
657
+ this._activeDate = this._dateAdapter.today();
658
+ }
659
+ /**
660
+ * The date to display in this month view (everything other than the month and year is ignored).
661
+ */
662
+ get activeDate() { return this._activeDate; }
663
+ set activeDate(value) {
664
+ const oldActiveDate = this._activeDate;
665
+ const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();
666
+ this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);
667
+ if (!this._hasSameMonthAndYear(oldActiveDate, this._activeDate)) {
668
+ this._init();
669
+ }
670
+ }
671
+ /** The currently selected date. */
672
+ get selected() { return this._selected; }
673
+ set selected(value) {
674
+ if (value instanceof DateRange) {
675
+ this._selected = value;
676
+ }
677
+ else {
678
+ this._selected = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
679
+ }
680
+ this._setRanges(this._selected);
681
+ }
682
+ /** The minimum selectable date. */
683
+ get minDate() { return this._minDate; }
684
+ set minDate(value) {
685
+ this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
686
+ }
687
+ /** The maximum selectable date. */
688
+ get maxDate() { return this._maxDate; }
689
+ set maxDate(value) {
690
+ this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
691
+ }
692
+ ngAfterContentInit() {
693
+ this._rerenderSubscription = this._dateAdapter.localeChanges
694
+ .pipe(startWith(null))
695
+ .subscribe(() => this._init());
696
+ }
697
+ ngOnChanges(changes) {
698
+ const comparisonChange = changes['comparisonStart'] || changes['comparisonEnd'];
699
+ if (comparisonChange && !comparisonChange.firstChange) {
700
+ this._setRanges(this.selected);
701
+ }
702
+ }
703
+ ngOnDestroy() {
704
+ this._rerenderSubscription.unsubscribe();
705
+ }
706
+ /** Handles when a new date is selected. */
707
+ _dateSelected(event) {
708
+ const date = event.value;
709
+ const selectedYear = this._dateAdapter.getYear(this.activeDate);
710
+ const selectedMonth = this._dateAdapter.getMonth(this.activeDate);
711
+ const selectedDate = this._dateAdapter.createDate(selectedYear, selectedMonth, date);
712
+ let rangeStartDate;
713
+ let rangeEndDate;
714
+ if (this._selected instanceof DateRange) {
715
+ rangeStartDate = this._getDateInCurrentMonth(this._selected.start);
716
+ rangeEndDate = this._getDateInCurrentMonth(this._selected.end);
717
+ }
718
+ else {
719
+ rangeStartDate = rangeEndDate = this._getDateInCurrentMonth(this._selected);
720
+ }
721
+ if (rangeStartDate !== date || rangeEndDate !== date) {
722
+ this.selectedChange.emit(selectedDate);
723
+ }
724
+ this._userSelection.emit({ value: selectedDate, event: event.event });
725
+ this._previewStart = this._previewEnd = null;
726
+ this._changeDetectorRef.markForCheck();
727
+ }
728
+ /** Handles keydown events on the calendar body when calendar is in month view. */
729
+ _handleCalendarBodyKeydown(event) {
730
+ // TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
731
+ // disabled ones from being selected. This may not be ideal, we should look into whether
732
+ // navigation should skip over disabled dates, and if so, how to implement that efficiently.
733
+ const oldActiveDate = this._activeDate;
734
+ const isRtl = this._isRtl();
735
+ switch (event.keyCode) {
736
+ case LEFT_ARROW:
737
+ this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, isRtl ? 1 : -1);
738
+ break;
739
+ case RIGHT_ARROW:
740
+ this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, isRtl ? -1 : 1);
741
+ break;
742
+ case UP_ARROW:
743
+ this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, -7);
744
+ break;
745
+ case DOWN_ARROW:
746
+ this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 7);
747
+ break;
748
+ case HOME:
749
+ this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 1 - this._dateAdapter.getDate(this._activeDate));
750
+ break;
751
+ case END:
752
+ this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, (this._dateAdapter.getNumDaysInMonth(this._activeDate) -
753
+ this._dateAdapter.getDate(this._activeDate)));
754
+ break;
755
+ case PAGE_UP:
756
+ this.activeDate = event.altKey ?
757
+ this._dateAdapter.addCalendarYears(this._activeDate, -1) :
758
+ this._dateAdapter.addCalendarMonths(this._activeDate, -1);
759
+ break;
760
+ case PAGE_DOWN:
761
+ this.activeDate = event.altKey ?
762
+ this._dateAdapter.addCalendarYears(this._activeDate, 1) :
763
+ this._dateAdapter.addCalendarMonths(this._activeDate, 1);
764
+ break;
765
+ case ENTER:
766
+ case SPACE:
767
+ this._selectionKeyPressed = true;
768
+ if (this._canSelect(this._activeDate)) {
769
+ // Prevent unexpected default actions such as form submission.
770
+ // Note that we only prevent the default action here while the selection happens in
771
+ // `keyup` below. We can't do the selection here, because it can cause the calendar to
772
+ // reopen if focus is restored immediately. We also can't call `preventDefault` on `keyup`
773
+ // because it's too late (see #23305).
774
+ event.preventDefault();
775
+ }
776
+ return;
777
+ case ESCAPE:
778
+ // Abort the current range selection if the user presses escape mid-selection.
779
+ if (this._previewEnd != null && !hasModifierKey(event)) {
780
+ this._previewStart = this._previewEnd = null;
781
+ this.selectedChange.emit(null);
782
+ this._userSelection.emit({ value: null, event });
783
+ event.preventDefault();
784
+ event.stopPropagation(); // Prevents the overlay from closing.
785
+ }
786
+ return;
787
+ default:
788
+ // Don't prevent default or focus active cell on keys that we don't explicitly handle.
789
+ return;
790
+ }
791
+ if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {
792
+ this.activeDateChange.emit(this.activeDate);
793
+ }
794
+ this._focusActiveCell();
795
+ // Prevent unexpected default actions such as form submission.
796
+ event.preventDefault();
797
+ }
798
+ /** Handles keyup events on the calendar body when calendar is in month view. */
799
+ _handleCalendarBodyKeyup(event) {
800
+ if (event.keyCode === SPACE || event.keyCode === ENTER) {
801
+ if (this._selectionKeyPressed && this._canSelect(this._activeDate)) {
802
+ this._dateSelected({ value: this._dateAdapter.getDate(this._activeDate), event });
803
+ }
804
+ this._selectionKeyPressed = false;
805
+ }
806
+ }
807
+ /** Initializes this month view. */
808
+ _init() {
809
+ this._setRanges(this.selected);
810
+ this._todayDate = this._getCellCompareValue(this._dateAdapter.today());
811
+ this._monthLabel = this._dateFormats.display.monthLabel
812
+ ? this._dateAdapter.format(this.activeDate, this._dateFormats.display.monthLabel)
813
+ : this._dateAdapter.getMonthNames('short')[this._dateAdapter.getMonth(this.activeDate)]
814
+ .toLocaleUpperCase();
815
+ let firstOfMonth = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), 1);
816
+ this._firstWeekOffset =
817
+ (DAYS_PER_WEEK + this._dateAdapter.getDayOfWeek(firstOfMonth) -
818
+ this._dateAdapter.getFirstDayOfWeek()) % DAYS_PER_WEEK;
819
+ this._initWeekdays();
820
+ this._createWeekCells();
821
+ this._changeDetectorRef.markForCheck();
822
+ }
823
+ /** Focuses the active cell after the microtask queue is empty. */
824
+ _focusActiveCell(movePreview) {
825
+ this._matCalendarBody._focusActiveCell(movePreview);
826
+ }
827
+ /** Called when the user has activated a new cell and the preview needs to be updated. */
828
+ _previewChanged({ event, value: cell }) {
829
+ if (this._rangeStrategy) {
830
+ // We can assume that this will be a range, because preview
831
+ // events aren't fired for single date selections.
832
+ const value = cell ? cell.rawValue : null;
833
+ const previewRange = this._rangeStrategy.createPreview(value, this.selected, event);
834
+ this._previewStart = this._getCellCompareValue(previewRange.start);
835
+ this._previewEnd = this._getCellCompareValue(previewRange.end);
836
+ // Note that here we need to use `detectChanges`, rather than `markForCheck`, because
837
+ // the way `_focusActiveCell` is set up at the moment makes it fire at the wrong time
838
+ // when navigating one month back using the keyboard which will cause this handler
839
+ // to throw a "changed after checked" error when updating the preview state.
840
+ this._changeDetectorRef.detectChanges();
841
+ }
842
+ }
843
+ /** Initializes the weekdays. */
844
+ _initWeekdays() {
845
+ const firstDayOfWeek = this._dateAdapter.getFirstDayOfWeek();
846
+ const narrowWeekdays = this._dateAdapter.getDayOfWeekNames('narrow');
847
+ const longWeekdays = this._dateAdapter.getDayOfWeekNames('long');
848
+ // Rotate the labels for days of the week based on the configured first day of the week.
849
+ let weekdays = longWeekdays.map((long, i) => {
850
+ return { long, narrow: narrowWeekdays[i] };
851
+ });
852
+ this._weekdays = weekdays.slice(firstDayOfWeek).concat(weekdays.slice(0, firstDayOfWeek));
853
+ }
854
+ /** Creates MatCalendarCells for the dates in this month. */
855
+ _createWeekCells() {
856
+ const daysInMonth = this._dateAdapter.getNumDaysInMonth(this.activeDate);
857
+ const dateNames = this._dateAdapter.getDateNames();
858
+ this._weeks = [[]];
859
+ for (let i = 0, cell = this._firstWeekOffset; i < daysInMonth; i++, cell++) {
860
+ if (cell == DAYS_PER_WEEK) {
861
+ this._weeks.push([]);
862
+ cell = 0;
863
+ }
864
+ const date = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), i + 1);
865
+ const enabled = this._shouldEnableDate(date);
866
+ const ariaLabel = this._dateAdapter.format(date, this._dateFormats.display.dateA11yLabel);
867
+ const cellClasses = this.dateClass ? this.dateClass(date, 'month') : undefined;
868
+ this._weeks[this._weeks.length - 1].push(new MatCalendarCell(i + 1, dateNames[i], ariaLabel, enabled, cellClasses, this._getCellCompareValue(date), date));
869
+ }
870
+ }
871
+ /** Date filter for the month */
872
+ _shouldEnableDate(date) {
873
+ return !!date &&
874
+ (!this.minDate || this._dateAdapter.compareDate(date, this.minDate) >= 0) &&
875
+ (!this.maxDate || this._dateAdapter.compareDate(date, this.maxDate) <= 0) &&
876
+ (!this.dateFilter || this.dateFilter(date));
877
+ }
878
+ /**
879
+ * Gets the date in this month that the given Date falls on.
880
+ * Returns null if the given Date is in another month.
881
+ */
882
+ _getDateInCurrentMonth(date) {
883
+ return date && this._hasSameMonthAndYear(date, this.activeDate) ?
884
+ this._dateAdapter.getDate(date) : null;
885
+ }
886
+ /** Checks whether the 2 dates are non-null and fall within the same month of the same year. */
887
+ _hasSameMonthAndYear(d1, d2) {
888
+ return !!(d1 && d2 && this._dateAdapter.getMonth(d1) == this._dateAdapter.getMonth(d2) &&
889
+ this._dateAdapter.getYear(d1) == this._dateAdapter.getYear(d2));
890
+ }
891
+ /** Gets the value that will be used to one cell to another. */
892
+ _getCellCompareValue(date) {
893
+ if (date) {
894
+ // We use the time since the Unix epoch to compare dates in this view, rather than the
895
+ // cell values, because we need to support ranges that span across multiple months/years.
896
+ const year = this._dateAdapter.getYear(date);
897
+ const month = this._dateAdapter.getMonth(date);
898
+ const day = this._dateAdapter.getDate(date);
899
+ return new Date(year, month, day).getTime();
900
+ }
901
+ return null;
902
+ }
903
+ /** Determines whether the user has the RTL layout direction. */
904
+ _isRtl() {
905
+ return this._dir && this._dir.value === 'rtl';
906
+ }
907
+ /** Sets the current range based on a model value. */
908
+ _setRanges(selectedValue) {
909
+ if (selectedValue instanceof DateRange) {
910
+ this._rangeStart = this._getCellCompareValue(selectedValue.start);
911
+ this._rangeEnd = this._getCellCompareValue(selectedValue.end);
912
+ this._isRange = true;
913
+ }
914
+ else {
915
+ this._rangeStart = this._rangeEnd = this._getCellCompareValue(selectedValue);
916
+ this._isRange = false;
917
+ }
918
+ this._comparisonRangeStart = this._getCellCompareValue(this.comparisonStart);
919
+ this._comparisonRangeEnd = this._getCellCompareValue(this.comparisonEnd);
920
+ }
921
+ /** Gets whether a date can be selected in the month view. */
922
+ _canSelect(date) {
923
+ return !this.dateFilter || this.dateFilter(date);
924
+ }
925
+ }
926
+ MatMonthView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMonthView, deps: [{ token: i0.ChangeDetectorRef }, { token: MAT_DATE_FORMATS, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }, { token: MAT_DATE_RANGE_SELECTION_STRATEGY, optional: true }], target: i0.ɵɵFactoryTarget.Component });
927
+ MatMonthView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatMonthView, selector: "mat-month-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd" }, outputs: { selectedChange: "selectedChange", _userSelection: "_userSelection", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "_matCalendarBody", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: ["matMonthView"], usesOnChanges: true, ngImport: i0, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead class=\"mat-calendar-table-header\">\n <tr>\n <!-- For the day-of-the-week column header, we use an `<abbr>` element because VoiceOver\n ignores the `aria-label`. ChromeVox, however, does not read the full name\n for the `<abbr>`, so we still set `aria-label` on the header element. -->\n <th scope=\"col\" *ngFor=\"let day of _weekdays\" [attr.aria-label]=\"day.long\">\n <abbr class=\"mat-calendar-abbr\" [attr.title]=\"day.long\">{{day.narrow}}</abbr>\n </th>\n </tr>\n <tr><th aria-hidden=\"true\" class=\"mat-calendar-table-header-divider\" colspan=\"7\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [label]=\"_monthLabel\"\n [rows]=\"_weeks\"\n [todayValue]=\"_todayDate!\"\n [startValue]=\"_rangeStart!\"\n [endValue]=\"_rangeEnd!\"\n [comparisonStart]=\"_comparisonRangeStart\"\n [comparisonEnd]=\"_comparisonRangeEnd\"\n [previewStart]=\"_previewStart\"\n [previewEnd]=\"_previewEnd\"\n [isRange]=\"_isRange\"\n [labelMinRequiredCells]=\"3\"\n [activeCell]=\"_dateAdapter.getDate(activeDate) - 1\"\n (selectedValueChange)=\"_dateSelected($event)\"\n (previewChange)=\"_previewChanged($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", components: [{ type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd"], outputs: ["selectedValueChange", "previewChange"], exportAs: ["matCalendarBody"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
928
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMonthView, decorators: [{
929
+ type: Component,
930
+ args: [{ selector: 'mat-month-view', exportAs: 'matMonthView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead class=\"mat-calendar-table-header\">\n <tr>\n <!-- For the day-of-the-week column header, we use an `<abbr>` element because VoiceOver\n ignores the `aria-label`. ChromeVox, however, does not read the full name\n for the `<abbr>`, so we still set `aria-label` on the header element. -->\n <th scope=\"col\" *ngFor=\"let day of _weekdays\" [attr.aria-label]=\"day.long\">\n <abbr class=\"mat-calendar-abbr\" [attr.title]=\"day.long\">{{day.narrow}}</abbr>\n </th>\n </tr>\n <tr><th aria-hidden=\"true\" class=\"mat-calendar-table-header-divider\" colspan=\"7\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [label]=\"_monthLabel\"\n [rows]=\"_weeks\"\n [todayValue]=\"_todayDate!\"\n [startValue]=\"_rangeStart!\"\n [endValue]=\"_rangeEnd!\"\n [comparisonStart]=\"_comparisonRangeStart\"\n [comparisonEnd]=\"_comparisonRangeEnd\"\n [previewStart]=\"_previewStart\"\n [previewEnd]=\"_previewEnd\"\n [isRange]=\"_isRange\"\n [labelMinRequiredCells]=\"3\"\n [activeCell]=\"_dateAdapter.getDate(activeDate) - 1\"\n (selectedValueChange)=\"_dateSelected($event)\"\n (previewChange)=\"_previewChanged($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
931
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
932
+ type: Optional
933
+ }, {
934
+ type: Inject,
935
+ args: [MAT_DATE_FORMATS]
936
+ }] }, { type: i1$1.DateAdapter, decorators: [{
937
+ type: Optional
938
+ }] }, { type: i2.Directionality, decorators: [{
939
+ type: Optional
940
+ }] }, { type: undefined, decorators: [{
941
+ type: Inject,
942
+ args: [MAT_DATE_RANGE_SELECTION_STRATEGY]
943
+ }, {
944
+ type: Optional
945
+ }] }]; }, propDecorators: { activeDate: [{
946
+ type: Input
947
+ }], selected: [{
948
+ type: Input
949
+ }], minDate: [{
950
+ type: Input
951
+ }], maxDate: [{
952
+ type: Input
953
+ }], dateFilter: [{
954
+ type: Input
955
+ }], dateClass: [{
956
+ type: Input
957
+ }], comparisonStart: [{
958
+ type: Input
959
+ }], comparisonEnd: [{
960
+ type: Input
961
+ }], selectedChange: [{
962
+ type: Output
963
+ }], _userSelection: [{
964
+ type: Output
965
+ }], activeDateChange: [{
966
+ type: Output
967
+ }], _matCalendarBody: [{
968
+ type: ViewChild,
969
+ args: [MatCalendarBody]
970
+ }] } });
971
+
972
+ /**
973
+ * @license
974
+ * Copyright Google LLC All Rights Reserved.
975
+ *
976
+ * Use of this source code is governed by an MIT-style license that can be
977
+ * found in the LICENSE file at https://angular.io/license
978
+ */
979
+ const yearsPerPage = 24;
980
+ const yearsPerRow = 4;
981
+ /**
982
+ * An internal component used to display a year selector in the datepicker.
983
+ * @docs-private
984
+ */
985
+ class MatMultiYearView {
986
+ constructor(_changeDetectorRef, _dateAdapter, _dir) {
987
+ this._changeDetectorRef = _changeDetectorRef;
988
+ this._dateAdapter = _dateAdapter;
989
+ this._dir = _dir;
990
+ this._rerenderSubscription = Subscription.EMPTY;
991
+ /** Emits when a new year is selected. */
992
+ this.selectedChange = new EventEmitter();
993
+ /** Emits the selected year. This doesn't imply a change on the selected date */
994
+ this.yearSelected = new EventEmitter();
995
+ /** Emits when any date is activated. */
996
+ this.activeDateChange = new EventEmitter();
997
+ if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
998
+ throw createMissingDateImplError('DateAdapter');
999
+ }
1000
+ this._activeDate = this._dateAdapter.today();
1001
+ }
1002
+ /** The date to display in this multi-year view (everything other than the year is ignored). */
1003
+ get activeDate() { return this._activeDate; }
1004
+ set activeDate(value) {
1005
+ let oldActiveDate = this._activeDate;
1006
+ const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();
1007
+ this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);
1008
+ if (!isSameMultiYearView(this._dateAdapter, oldActiveDate, this._activeDate, this.minDate, this.maxDate)) {
1009
+ this._init();
1010
+ }
1011
+ }
1012
+ /** The currently selected date. */
1013
+ get selected() { return this._selected; }
1014
+ set selected(value) {
1015
+ if (value instanceof DateRange) {
1016
+ this._selected = value;
1017
+ }
1018
+ else {
1019
+ this._selected = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
1020
+ }
1021
+ this._setSelectedYear(value);
1022
+ }
1023
+ /** The minimum selectable date. */
1024
+ get minDate() { return this._minDate; }
1025
+ set minDate(value) {
1026
+ this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
1027
+ }
1028
+ /** The maximum selectable date. */
1029
+ get maxDate() { return this._maxDate; }
1030
+ set maxDate(value) {
1031
+ this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
1032
+ }
1033
+ ngAfterContentInit() {
1034
+ this._rerenderSubscription = this._dateAdapter.localeChanges
1035
+ .pipe(startWith(null))
1036
+ .subscribe(() => this._init());
1037
+ }
1038
+ ngOnDestroy() {
1039
+ this._rerenderSubscription.unsubscribe();
1040
+ }
1041
+ /** Initializes this multi-year view. */
1042
+ _init() {
1043
+ this._todayYear = this._dateAdapter.getYear(this._dateAdapter.today());
1044
+ // We want a range years such that we maximize the number of
1045
+ // enabled dates visible at once. This prevents issues where the minimum year
1046
+ // is the last item of a page OR the maximum year is the first item of a page.
1047
+ // The offset from the active year to the "slot" for the starting year is the
1048
+ // *actual* first rendered year in the multi-year view.
1049
+ const activeYear = this._dateAdapter.getYear(this._activeDate);
1050
+ const minYearOfPage = activeYear - getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate);
1051
+ this._years = [];
1052
+ for (let i = 0, row = []; i < yearsPerPage; i++) {
1053
+ row.push(minYearOfPage + i);
1054
+ if (row.length == yearsPerRow) {
1055
+ this._years.push(row.map(year => this._createCellForYear(year)));
1056
+ row = [];
1057
+ }
1058
+ }
1059
+ this._changeDetectorRef.markForCheck();
1060
+ }
1061
+ /** Handles when a new year is selected. */
1062
+ _yearSelected(event) {
1063
+ const year = event.value;
1064
+ this.yearSelected.emit(this._dateAdapter.createDate(year, 0, 1));
1065
+ let month = this._dateAdapter.getMonth(this.activeDate);
1066
+ let daysInMonth = this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(year, month, 1));
1067
+ this.selectedChange.emit(this._dateAdapter.createDate(year, month, Math.min(this._dateAdapter.getDate(this.activeDate), daysInMonth)));
1068
+ }
1069
+ /** Handles keydown events on the calendar body when calendar is in multi-year view. */
1070
+ _handleCalendarBodyKeydown(event) {
1071
+ const oldActiveDate = this._activeDate;
1072
+ const isRtl = this._isRtl();
1073
+ switch (event.keyCode) {
1074
+ case LEFT_ARROW:
1075
+ this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, isRtl ? 1 : -1);
1076
+ break;
1077
+ case RIGHT_ARROW:
1078
+ this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, isRtl ? -1 : 1);
1079
+ break;
1080
+ case UP_ARROW:
1081
+ this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -yearsPerRow);
1082
+ break;
1083
+ case DOWN_ARROW:
1084
+ this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerRow);
1085
+ break;
1086
+ case HOME:
1087
+ this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate));
1088
+ break;
1089
+ case END:
1090
+ this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerPage - getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate) - 1);
1091
+ break;
1092
+ case PAGE_UP:
1093
+ this.activeDate =
1094
+ this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -yearsPerPage * 10 : -yearsPerPage);
1095
+ break;
1096
+ case PAGE_DOWN:
1097
+ this.activeDate =
1098
+ this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? yearsPerPage * 10 : yearsPerPage);
1099
+ break;
1100
+ case ENTER:
1101
+ case SPACE:
1102
+ // Note that we only prevent the default action here while the selection happens in
1103
+ // `keyup` below. We can't do the selection here, because it can cause the calendar to
1104
+ // reopen if focus is restored immediately. We also can't call `preventDefault` on `keyup`
1105
+ // because it's too late (see #23305).
1106
+ this._selectionKeyPressed = true;
1107
+ break;
1108
+ default:
1109
+ // Don't prevent default or focus active cell on keys that we don't explicitly handle.
1110
+ return;
1111
+ }
1112
+ if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {
1113
+ this.activeDateChange.emit(this.activeDate);
1114
+ }
1115
+ this._focusActiveCell();
1116
+ // Prevent unexpected default actions such as form submission.
1117
+ event.preventDefault();
1118
+ }
1119
+ /** Handles keyup events on the calendar body when calendar is in multi-year view. */
1120
+ _handleCalendarBodyKeyup(event) {
1121
+ if (event.keyCode === SPACE || event.keyCode === ENTER) {
1122
+ if (this._selectionKeyPressed) {
1123
+ this._yearSelected({ value: this._dateAdapter.getYear(this._activeDate), event });
1124
+ }
1125
+ this._selectionKeyPressed = false;
1126
+ }
1127
+ }
1128
+ _getActiveCell() {
1129
+ return getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate);
1130
+ }
1131
+ /** Focuses the active cell after the microtask queue is empty. */
1132
+ _focusActiveCell() {
1133
+ this._matCalendarBody._focusActiveCell();
1134
+ }
1135
+ /** Creates an MatCalendarCell for the given year. */
1136
+ _createCellForYear(year) {
1137
+ const date = this._dateAdapter.createDate(year, 0, 1);
1138
+ const yearName = this._dateAdapter.getYearName(date);
1139
+ const cellClasses = this.dateClass ? this.dateClass(date, 'multi-year') : undefined;
1140
+ return new MatCalendarCell(year, yearName, yearName, this._shouldEnableYear(year), cellClasses);
1141
+ }
1142
+ /** Whether the given year is enabled. */
1143
+ _shouldEnableYear(year) {
1144
+ // disable if the year is greater than maxDate lower than minDate
1145
+ if (year === undefined || year === null ||
1146
+ (this.maxDate && year > this._dateAdapter.getYear(this.maxDate)) ||
1147
+ (this.minDate && year < this._dateAdapter.getYear(this.minDate))) {
1148
+ return false;
1149
+ }
1150
+ // enable if it reaches here and there's no filter defined
1151
+ if (!this.dateFilter) {
1152
+ return true;
1153
+ }
1154
+ const firstOfYear = this._dateAdapter.createDate(year, 0, 1);
1155
+ // If any date in the year is enabled count the year as enabled.
1156
+ for (let date = firstOfYear; this._dateAdapter.getYear(date) == year; date = this._dateAdapter.addCalendarDays(date, 1)) {
1157
+ if (this.dateFilter(date)) {
1158
+ return true;
1159
+ }
1160
+ }
1161
+ return false;
1162
+ }
1163
+ /** Determines whether the user has the RTL layout direction. */
1164
+ _isRtl() {
1165
+ return this._dir && this._dir.value === 'rtl';
1166
+ }
1167
+ /** Sets the currently-highlighted year based on a model value. */
1168
+ _setSelectedYear(value) {
1169
+ this._selectedYear = null;
1170
+ if (value instanceof DateRange) {
1171
+ const displayValue = value.start || value.end;
1172
+ if (displayValue) {
1173
+ this._selectedYear = this._dateAdapter.getYear(displayValue);
1174
+ }
1175
+ }
1176
+ else if (value) {
1177
+ this._selectedYear = this._dateAdapter.getYear(value);
1178
+ }
1179
+ }
1180
+ }
1181
+ MatMultiYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMultiYearView, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1182
+ MatMultiYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatMultiYearView, selector: "mat-multi-year-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", yearSelected: "yearSelected", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "_matCalendarBody", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: ["matMultiYearView"], ngImport: i0, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" 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 [startValue]=\"_selectedYear!\"\n [endValue]=\"_selectedYear!\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_getActiveCell()\"\n (selectedValueChange)=\"_yearSelected($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", components: [{ type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd"], outputs: ["selectedValueChange", "previewChange"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMultiYearView, decorators: [{
1184
+ type: Component,
1185
+ args: [{ selector: 'mat-multi-year-view', exportAs: 'matMultiYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" 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 [startValue]=\"_selectedYear!\"\n [endValue]=\"_selectedYear!\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_getActiveCell()\"\n (selectedValueChange)=\"_yearSelected($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
1186
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.DateAdapter, decorators: [{
1187
+ type: Optional
1188
+ }] }, { type: i2.Directionality, decorators: [{
1189
+ type: Optional
1190
+ }] }]; }, propDecorators: { activeDate: [{
1191
+ type: Input
1192
+ }], selected: [{
1193
+ type: Input
1194
+ }], minDate: [{
1195
+ type: Input
1196
+ }], maxDate: [{
1197
+ type: Input
1198
+ }], dateFilter: [{
1199
+ type: Input
1200
+ }], dateClass: [{
1201
+ type: Input
1202
+ }], selectedChange: [{
1203
+ type: Output
1204
+ }], yearSelected: [{
1205
+ type: Output
1206
+ }], activeDateChange: [{
1207
+ type: Output
1208
+ }], _matCalendarBody: [{
1209
+ type: ViewChild,
1210
+ args: [MatCalendarBody]
1211
+ }] } });
1212
+ function isSameMultiYearView(dateAdapter, date1, date2, minDate, maxDate) {
1213
+ const year1 = dateAdapter.getYear(date1);
1214
+ const year2 = dateAdapter.getYear(date2);
1215
+ const startingYear = getStartingYear(dateAdapter, minDate, maxDate);
1216
+ return Math.floor((year1 - startingYear) / yearsPerPage) ===
1217
+ Math.floor((year2 - startingYear) / yearsPerPage);
1218
+ }
1219
+ /**
1220
+ * When the multi-year view is first opened, the active year will be in view.
1221
+ * So we compute how many years are between the active year and the *slot* where our
1222
+ * "startingYear" will render when paged into view.
1223
+ */
1224
+ function getActiveOffset(dateAdapter, activeDate, minDate, maxDate) {
1225
+ const activeYear = dateAdapter.getYear(activeDate);
1226
+ return euclideanModulo((activeYear - getStartingYear(dateAdapter, minDate, maxDate)), yearsPerPage);
1227
+ }
1228
+ /**
1229
+ * We pick a "starting" year such that either the maximum year would be at the end
1230
+ * or the minimum year would be at the beginning of a page.
1231
+ */
1232
+ function getStartingYear(dateAdapter, minDate, maxDate) {
1233
+ let startingYear = 0;
1234
+ if (maxDate) {
1235
+ const maxYear = dateAdapter.getYear(maxDate);
1236
+ startingYear = maxYear - yearsPerPage + 1;
1237
+ }
1238
+ else if (minDate) {
1239
+ startingYear = dateAdapter.getYear(minDate);
1240
+ }
1241
+ return startingYear;
1242
+ }
1243
+ /** Gets remainder that is non-negative, even if first number is negative */
1244
+ function euclideanModulo(a, b) {
1245
+ return (a % b + b) % b;
1246
+ }
1247
+
1248
+ /**
1249
+ * @license
1250
+ * Copyright Google LLC All Rights Reserved.
1251
+ *
1252
+ * Use of this source code is governed by an MIT-style license that can be
1253
+ * found in the LICENSE file at https://angular.io/license
1254
+ */
1255
+ /**
1256
+ * An internal component used to display a single year in the datepicker.
1257
+ * @docs-private
1258
+ */
1259
+ class MatYearView {
1260
+ constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir) {
1261
+ this._changeDetectorRef = _changeDetectorRef;
1262
+ this._dateFormats = _dateFormats;
1263
+ this._dateAdapter = _dateAdapter;
1264
+ this._dir = _dir;
1265
+ this._rerenderSubscription = Subscription.EMPTY;
1266
+ /** Emits when a new month is selected. */
1267
+ this.selectedChange = new EventEmitter();
1268
+ /** Emits the selected month. This doesn't imply a change on the selected date */
1269
+ this.monthSelected = new EventEmitter();
1270
+ /** Emits when any date is activated. */
1271
+ this.activeDateChange = new EventEmitter();
1272
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
1273
+ if (!this._dateAdapter) {
1274
+ throw createMissingDateImplError('DateAdapter');
1275
+ }
1276
+ if (!this._dateFormats) {
1277
+ throw createMissingDateImplError('MAT_DATE_FORMATS');
1278
+ }
1279
+ }
1280
+ this._activeDate = this._dateAdapter.today();
1281
+ }
1282
+ /** The date to display in this year view (everything other than the year is ignored). */
1283
+ get activeDate() { return this._activeDate; }
1284
+ set activeDate(value) {
1285
+ let oldActiveDate = this._activeDate;
1286
+ const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();
1287
+ this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);
1288
+ if (this._dateAdapter.getYear(oldActiveDate) !== this._dateAdapter.getYear(this._activeDate)) {
1289
+ this._init();
1290
+ }
1291
+ }
1292
+ /** The currently selected date. */
1293
+ get selected() { return this._selected; }
1294
+ set selected(value) {
1295
+ if (value instanceof DateRange) {
1296
+ this._selected = value;
1297
+ }
1298
+ else {
1299
+ this._selected = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
1300
+ }
1301
+ this._setSelectedMonth(value);
1302
+ }
1303
+ /** The minimum selectable date. */
1304
+ get minDate() { return this._minDate; }
1305
+ set minDate(value) {
1306
+ this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
1307
+ }
1308
+ /** The maximum selectable date. */
1309
+ get maxDate() { return this._maxDate; }
1310
+ set maxDate(value) {
1311
+ this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
1312
+ }
1313
+ ngAfterContentInit() {
1314
+ this._rerenderSubscription = this._dateAdapter.localeChanges
1315
+ .pipe(startWith(null))
1316
+ .subscribe(() => this._init());
1317
+ }
1318
+ ngOnDestroy() {
1319
+ this._rerenderSubscription.unsubscribe();
1320
+ }
1321
+ /** Handles when a new month is selected. */
1322
+ _monthSelected(event) {
1323
+ const month = event.value;
1324
+ const normalizedDate = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1);
1325
+ this.monthSelected.emit(normalizedDate);
1326
+ const daysInMonth = this._dateAdapter.getNumDaysInMonth(normalizedDate);
1327
+ this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, Math.min(this._dateAdapter.getDate(this.activeDate), daysInMonth)));
1328
+ }
1329
+ /** Handles keydown events on the calendar body when calendar is in year view. */
1330
+ _handleCalendarBodyKeydown(event) {
1331
+ // TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
1332
+ // disabled ones from being selected. This may not be ideal, we should look into whether
1333
+ // navigation should skip over disabled dates, and if so, how to implement that efficiently.
1334
+ const oldActiveDate = this._activeDate;
1335
+ const isRtl = this._isRtl();
1336
+ switch (event.keyCode) {
1337
+ case LEFT_ARROW:
1338
+ this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, isRtl ? 1 : -1);
1339
+ break;
1340
+ case RIGHT_ARROW:
1341
+ this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, isRtl ? -1 : 1);
1342
+ break;
1343
+ case UP_ARROW:
1344
+ this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -4);
1345
+ break;
1346
+ case DOWN_ARROW:
1347
+ this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 4);
1348
+ break;
1349
+ case HOME:
1350
+ this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -this._dateAdapter.getMonth(this._activeDate));
1351
+ break;
1352
+ case END:
1353
+ this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 11 - this._dateAdapter.getMonth(this._activeDate));
1354
+ break;
1355
+ case PAGE_UP:
1356
+ this.activeDate =
1357
+ this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -10 : -1);
1358
+ break;
1359
+ case PAGE_DOWN:
1360
+ this.activeDate =
1361
+ this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? 10 : 1);
1362
+ break;
1363
+ case ENTER:
1364
+ case SPACE:
1365
+ // Note that we only prevent the default action here while the selection happens in
1366
+ // `keyup` below. We can't do the selection here, because it can cause the calendar to
1367
+ // reopen if focus is restored immediately. We also can't call `preventDefault` on `keyup`
1368
+ // because it's too late (see #23305).
1369
+ this._selectionKeyPressed = true;
1370
+ break;
1371
+ default:
1372
+ // Don't prevent default or focus active cell on keys that we don't explicitly handle.
1373
+ return;
1374
+ }
1375
+ if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {
1376
+ this.activeDateChange.emit(this.activeDate);
1377
+ }
1378
+ this._focusActiveCell();
1379
+ // Prevent unexpected default actions such as form submission.
1380
+ event.preventDefault();
1381
+ }
1382
+ /** Handles keyup events on the calendar body when calendar is in year view. */
1383
+ _handleCalendarBodyKeyup(event) {
1384
+ if (event.keyCode === SPACE || event.keyCode === ENTER) {
1385
+ if (this._selectionKeyPressed) {
1386
+ this._monthSelected({ value: this._dateAdapter.getMonth(this._activeDate), event });
1387
+ }
1388
+ this._selectionKeyPressed = false;
1389
+ }
1390
+ }
1391
+ /** Initializes this year view. */
1392
+ _init() {
1393
+ this._setSelectedMonth(this.selected);
1394
+ this._todayMonth = this._getMonthInCurrentYear(this._dateAdapter.today());
1395
+ this._yearLabel = this._dateAdapter.getYearName(this.activeDate);
1396
+ let monthNames = this._dateAdapter.getMonthNames('short');
1397
+ // First row of months only contains 5 elements so we can fit the year label on the same row.
1398
+ this._months = [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]].map(row => row.map(month => this._createCellForMonth(month, monthNames[month])));
1399
+ this._changeDetectorRef.markForCheck();
1400
+ }
1401
+ /** Focuses the active cell after the microtask queue is empty. */
1402
+ _focusActiveCell() {
1403
+ this._matCalendarBody._focusActiveCell();
1404
+ }
1405
+ /**
1406
+ * Gets the month in this year that the given Date falls on.
1407
+ * Returns null if the given Date is in another year.
1408
+ */
1409
+ _getMonthInCurrentYear(date) {
1410
+ return date && this._dateAdapter.getYear(date) == this._dateAdapter.getYear(this.activeDate) ?
1411
+ this._dateAdapter.getMonth(date) : null;
1412
+ }
1413
+ /** Creates an MatCalendarCell for the given month. */
1414
+ _createCellForMonth(month, monthName) {
1415
+ const date = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1);
1416
+ const ariaLabel = this._dateAdapter.format(date, this._dateFormats.display.monthYearA11yLabel);
1417
+ const cellClasses = this.dateClass ? this.dateClass(date, 'year') : undefined;
1418
+ return new MatCalendarCell(month, monthName.toLocaleUpperCase(), ariaLabel, this._shouldEnableMonth(month), cellClasses);
1419
+ }
1420
+ /** Whether the given month is enabled. */
1421
+ _shouldEnableMonth(month) {
1422
+ const activeYear = this._dateAdapter.getYear(this.activeDate);
1423
+ if (month === undefined || month === null ||
1424
+ this._isYearAndMonthAfterMaxDate(activeYear, month) ||
1425
+ this._isYearAndMonthBeforeMinDate(activeYear, month)) {
1426
+ return false;
1427
+ }
1428
+ if (!this.dateFilter) {
1429
+ return true;
1430
+ }
1431
+ const firstOfMonth = this._dateAdapter.createDate(activeYear, month, 1);
1432
+ // If any date in the month is enabled count the month as enabled.
1433
+ for (let date = firstOfMonth; this._dateAdapter.getMonth(date) == month; date = this._dateAdapter.addCalendarDays(date, 1)) {
1434
+ if (this.dateFilter(date)) {
1435
+ return true;
1436
+ }
1437
+ }
1438
+ return false;
1439
+ }
1440
+ /**
1441
+ * Tests whether the combination month/year is after this.maxDate, considering
1442
+ * just the month and year of this.maxDate
1443
+ */
1444
+ _isYearAndMonthAfterMaxDate(year, month) {
1445
+ if (this.maxDate) {
1446
+ const maxYear = this._dateAdapter.getYear(this.maxDate);
1447
+ const maxMonth = this._dateAdapter.getMonth(this.maxDate);
1448
+ return year > maxYear || (year === maxYear && month > maxMonth);
1449
+ }
1450
+ return false;
1451
+ }
1452
+ /**
1453
+ * Tests whether the combination month/year is before this.minDate, considering
1454
+ * just the month and year of this.minDate
1455
+ */
1456
+ _isYearAndMonthBeforeMinDate(year, month) {
1457
+ if (this.minDate) {
1458
+ const minYear = this._dateAdapter.getYear(this.minDate);
1459
+ const minMonth = this._dateAdapter.getMonth(this.minDate);
1460
+ return year < minYear || (year === minYear && month < minMonth);
1461
+ }
1462
+ return false;
1463
+ }
1464
+ /** Determines whether the user has the RTL layout direction. */
1465
+ _isRtl() {
1466
+ return this._dir && this._dir.value === 'rtl';
1467
+ }
1468
+ /** Sets the currently-selected month based on a model value. */
1469
+ _setSelectedMonth(value) {
1470
+ if (value instanceof DateRange) {
1471
+ this._selectedMonth = this._getMonthInCurrentYear(value.start) ||
1472
+ this._getMonthInCurrentYear(value.end);
1473
+ }
1474
+ else {
1475
+ this._selectedMonth = this._getMonthInCurrentYear(value);
1476
+ }
1477
+ }
1478
+ }
1479
+ MatYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatYearView, deps: [{ token: i0.ChangeDetectorRef }, { token: MAT_DATE_FORMATS, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1480
+ MatYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatYearView, selector: "mat-year-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", monthSelected: "monthSelected", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "_matCalendarBody", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: ["matYearView"], ngImport: i0, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" 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 [startValue]=\"_selectedMonth!\"\n [endValue]=\"_selectedMonth!\"\n [labelMinRequiredCells]=\"2\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_dateAdapter.getMonth(activeDate)\"\n (selectedValueChange)=\"_monthSelected($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", components: [{ type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd"], outputs: ["selectedValueChange", "previewChange"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1481
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatYearView, decorators: [{
1482
+ type: Component,
1483
+ args: [{ selector: 'mat-year-view', exportAs: 'matYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" 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 [startValue]=\"_selectedMonth!\"\n [endValue]=\"_selectedMonth!\"\n [labelMinRequiredCells]=\"2\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_dateAdapter.getMonth(activeDate)\"\n (selectedValueChange)=\"_monthSelected($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
1484
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
1485
+ type: Optional
1486
+ }, {
1487
+ type: Inject,
1488
+ args: [MAT_DATE_FORMATS]
1489
+ }] }, { type: i1$1.DateAdapter, decorators: [{
1490
+ type: Optional
1491
+ }] }, { type: i2.Directionality, decorators: [{
1492
+ type: Optional
1493
+ }] }]; }, propDecorators: { activeDate: [{
1494
+ type: Input
1495
+ }], selected: [{
1496
+ type: Input
1497
+ }], minDate: [{
1498
+ type: Input
1499
+ }], maxDate: [{
1500
+ type: Input
1501
+ }], dateFilter: [{
1502
+ type: Input
1503
+ }], dateClass: [{
1504
+ type: Input
1505
+ }], selectedChange: [{
1506
+ type: Output
1507
+ }], monthSelected: [{
1508
+ type: Output
1509
+ }], activeDateChange: [{
1510
+ type: Output
1511
+ }], _matCalendarBody: [{
1512
+ type: ViewChild,
1513
+ args: [MatCalendarBody]
1514
+ }] } });
1515
+
1516
+ /**
1517
+ * @license
1518
+ * Copyright Google LLC All Rights Reserved.
1519
+ *
1520
+ * Use of this source code is governed by an MIT-style license that can be
1521
+ * found in the LICENSE file at https://angular.io/license
1522
+ */
1523
+ /** Counter used to generate unique IDs. */
1524
+ let uniqueId = 0;
1525
+ /** Default header for MatCalendar */
1526
+ class MatCalendarHeader {
1527
+ constructor(_intl, calendar, _dateAdapter, _dateFormats, changeDetectorRef) {
1528
+ this._intl = _intl;
1529
+ this.calendar = calendar;
1530
+ this._dateAdapter = _dateAdapter;
1531
+ this._dateFormats = _dateFormats;
1532
+ this._buttonDescriptionId = `mat-calendar-button-${uniqueId++}`;
1533
+ this.calendar.stateChanges.subscribe(() => changeDetectorRef.markForCheck());
1534
+ }
1535
+ /** The label for the current calendar view. */
1536
+ get periodButtonText() {
1537
+ if (this.calendar.currentView == 'month') {
1538
+ return this._dateAdapter
1539
+ .format(this.calendar.activeDate, this._dateFormats.display.monthYearLabel)
1540
+ .toLocaleUpperCase();
1541
+ }
1542
+ if (this.calendar.currentView == 'year') {
1543
+ return this._dateAdapter.getYearName(this.calendar.activeDate);
1544
+ }
1545
+ // The offset from the active year to the "slot" for the starting year is the
1546
+ // *actual* first rendered year in the multi-year view, and the last year is
1547
+ // just yearsPerPage - 1 away.
1548
+ const activeYear = this._dateAdapter.getYear(this.calendar.activeDate);
1549
+ const minYearOfPage = activeYear - getActiveOffset(this._dateAdapter, this.calendar.activeDate, this.calendar.minDate, this.calendar.maxDate);
1550
+ const maxYearOfPage = minYearOfPage + yearsPerPage - 1;
1551
+ const minYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(minYearOfPage, 0, 1));
1552
+ const maxYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(maxYearOfPage, 0, 1));
1553
+ return this._intl.formatYearRange(minYearName, maxYearName);
1554
+ }
1555
+ get periodButtonLabel() {
1556
+ return this.calendar.currentView == 'month' ?
1557
+ this._intl.switchToMultiYearViewLabel : this._intl.switchToMonthViewLabel;
1558
+ }
1559
+ /** The label for the previous button. */
1560
+ get prevButtonLabel() {
1561
+ return {
1562
+ 'month': this._intl.prevMonthLabel,
1563
+ 'year': this._intl.prevYearLabel,
1564
+ 'multi-year': this._intl.prevMultiYearLabel
1565
+ }[this.calendar.currentView];
1566
+ }
1567
+ /** The label for the next button. */
1568
+ get nextButtonLabel() {
1569
+ return {
1570
+ 'month': this._intl.nextMonthLabel,
1571
+ 'year': this._intl.nextYearLabel,
1572
+ 'multi-year': this._intl.nextMultiYearLabel
1573
+ }[this.calendar.currentView];
1574
+ }
1575
+ /** Handles user clicks on the period label. */
1576
+ currentPeriodClicked() {
1577
+ this.calendar.currentView = this.calendar.currentView == 'month' ? 'multi-year' : 'month';
1578
+ }
1579
+ /** Handles user clicks on the previous button. */
1580
+ previousClicked() {
1581
+ this.calendar.activeDate = this.calendar.currentView == 'month' ?
1582
+ this._dateAdapter.addCalendarMonths(this.calendar.activeDate, -1) :
1583
+ this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? -1 : -yearsPerPage);
1584
+ }
1585
+ /** Handles user clicks on the next button. */
1586
+ nextClicked() {
1587
+ this.calendar.activeDate = this.calendar.currentView == 'month' ?
1588
+ this._dateAdapter.addCalendarMonths(this.calendar.activeDate, 1) :
1589
+ this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? 1 : yearsPerPage);
1590
+ }
1591
+ /** Whether the previous period button is enabled. */
1592
+ previousEnabled() {
1593
+ if (!this.calendar.minDate) {
1594
+ return true;
1595
+ }
1596
+ return !this.calendar.minDate ||
1597
+ !this._isSameView(this.calendar.activeDate, this.calendar.minDate);
1598
+ }
1599
+ /** Whether the next period button is enabled. */
1600
+ nextEnabled() {
1601
+ return !this.calendar.maxDate ||
1602
+ !this._isSameView(this.calendar.activeDate, this.calendar.maxDate);
1603
+ }
1604
+ /** Whether the two dates represent the same view in the current view mode (month or year). */
1605
+ _isSameView(date1, date2) {
1606
+ if (this.calendar.currentView == 'month') {
1607
+ return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2) &&
1608
+ this._dateAdapter.getMonth(date1) == this._dateAdapter.getMonth(date2);
1609
+ }
1610
+ if (this.calendar.currentView == 'year') {
1611
+ return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2);
1612
+ }
1613
+ // Otherwise we are in 'multi-year' view.
1614
+ return isSameMultiYearView(this._dateAdapter, date1, date2, this.calendar.minDate, this.calendar.maxDate);
1615
+ }
1616
+ }
1617
+ MatCalendarHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatCalendarHeader, deps: [{ token: MatDatepickerIntl }, { token: forwardRef(() => MatCalendar) }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1618
+ MatCalendarHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatCalendarHeader, selector: "mat-calendar-header", exportAs: ["matCalendarHeader"], ngImport: i0, template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_buttonDescriptionId\"\n cdkAriaLive=\"polite\">\n <span [attr.id]=\"_buttonDescriptionId\">{{periodButtonText}}</span>\n <svg class=\"mat-calendar-arrow\" [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\" focusable=\"false\">\n <polygon points=\"0,0 5,5 10,0\"/>\n </svg>\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", components: [{ type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.CdkAriaLive, selector: "[cdkAriaLive]", inputs: ["cdkAriaLive"], exportAs: ["cdkAriaLive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1619
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatCalendarHeader, decorators: [{
1620
+ type: Component,
1621
+ args: [{ selector: 'mat-calendar-header', exportAs: 'matCalendarHeader', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_buttonDescriptionId\"\n cdkAriaLive=\"polite\">\n <span [attr.id]=\"_buttonDescriptionId\">{{periodButtonText}}</span>\n <svg class=\"mat-calendar-arrow\" [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\" focusable=\"false\">\n <polygon points=\"0,0 5,5 10,0\"/>\n </svg>\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" }]
1622
+ }], ctorParameters: function () { return [{ type: MatDatepickerIntl }, { type: MatCalendar, decorators: [{
1623
+ type: Inject,
1624
+ args: [forwardRef(() => MatCalendar)]
1625
+ }] }, { type: i1$1.DateAdapter, decorators: [{
1626
+ type: Optional
1627
+ }] }, { type: undefined, decorators: [{
1628
+ type: Optional
1629
+ }, {
1630
+ type: Inject,
1631
+ args: [MAT_DATE_FORMATS]
1632
+ }] }, { type: i0.ChangeDetectorRef }]; } });
1633
+ /** A calendar that is used as part of the datepicker. */
1634
+ class MatCalendar {
1635
+ constructor(_intl, _dateAdapter, _dateFormats, _changeDetectorRef) {
1636
+ this._dateAdapter = _dateAdapter;
1637
+ this._dateFormats = _dateFormats;
1638
+ this._changeDetectorRef = _changeDetectorRef;
1639
+ /**
1640
+ * Used for scheduling that focus should be moved to the active cell on the next tick.
1641
+ * We need to schedule it, rather than do it immediately, because we have to wait
1642
+ * for Angular to re-evaluate the view children.
1643
+ */
1644
+ this._moveFocusOnNextTick = false;
1645
+ /** Whether the calendar should be started in month or year view. */
1646
+ this.startView = 'month';
1647
+ /** Emits when the currently selected date changes. */
1648
+ this.selectedChange = new EventEmitter();
1649
+ /**
1650
+ * Emits the year chosen in multiyear view.
1651
+ * This doesn't imply a change on the selected date.
1652
+ */
1653
+ this.yearSelected = new EventEmitter();
1654
+ /**
1655
+ * Emits the month chosen in year view.
1656
+ * This doesn't imply a change on the selected date.
1657
+ */
1658
+ this.monthSelected = new EventEmitter();
1659
+ /**
1660
+ * Emits when the current view changes.
1661
+ */
1662
+ this.viewChanged = new EventEmitter(true);
1663
+ /** Emits when any date is selected. */
1664
+ this._userSelection = new EventEmitter();
1665
+ /**
1666
+ * Emits whenever there is a state change that the header may need to respond to.
1667
+ */
1668
+ this.stateChanges = new Subject();
1669
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
1670
+ if (!this._dateAdapter) {
1671
+ throw createMissingDateImplError('DateAdapter');
1672
+ }
1673
+ if (!this._dateFormats) {
1674
+ throw createMissingDateImplError('MAT_DATE_FORMATS');
1675
+ }
1676
+ }
1677
+ this._intlChanges = _intl.changes.subscribe(() => {
1678
+ _changeDetectorRef.markForCheck();
1679
+ this.stateChanges.next();
1680
+ });
1681
+ }
1682
+ /** A date representing the period (month or year) to start the calendar in. */
1683
+ get startAt() { return this._startAt; }
1684
+ set startAt(value) {
1685
+ this._startAt = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
1686
+ }
1687
+ /** The currently selected date. */
1688
+ get selected() { return this._selected; }
1689
+ set selected(value) {
1690
+ if (value instanceof DateRange) {
1691
+ this._selected = value;
1692
+ }
1693
+ else {
1694
+ this._selected = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
1695
+ }
1696
+ }
1697
+ /** The minimum selectable date. */
1698
+ get minDate() { return this._minDate; }
1699
+ set minDate(value) {
1700
+ this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
1701
+ }
1702
+ /** The maximum selectable date. */
1703
+ get maxDate() { return this._maxDate; }
1704
+ set maxDate(value) {
1705
+ this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
1706
+ }
1707
+ /**
1708
+ * The current active date. This determines which time period is shown and which date is
1709
+ * highlighted when using keyboard navigation.
1710
+ */
1711
+ get activeDate() { return this._clampedActiveDate; }
1712
+ set activeDate(value) {
1713
+ this._clampedActiveDate = this._dateAdapter.clampDate(value, this.minDate, this.maxDate);
1714
+ this.stateChanges.next();
1715
+ this._changeDetectorRef.markForCheck();
1716
+ }
1717
+ /** Whether the calendar is in month view. */
1718
+ get currentView() { return this._currentView; }
1719
+ set currentView(value) {
1720
+ const viewChangedResult = this._currentView !== value ? value : null;
1721
+ this._currentView = value;
1722
+ this._moveFocusOnNextTick = true;
1723
+ this._changeDetectorRef.markForCheck();
1724
+ if (viewChangedResult) {
1725
+ this.viewChanged.emit(viewChangedResult);
1726
+ }
1727
+ }
1728
+ ngAfterContentInit() {
1729
+ this._calendarHeaderPortal = new ComponentPortal(this.headerComponent || MatCalendarHeader);
1730
+ this.activeDate = this.startAt || this._dateAdapter.today();
1731
+ // Assign to the private property since we don't want to move focus on init.
1732
+ this._currentView = this.startView;
1733
+ }
1734
+ ngAfterViewChecked() {
1735
+ if (this._moveFocusOnNextTick) {
1736
+ this._moveFocusOnNextTick = false;
1737
+ this.focusActiveCell();
1738
+ }
1739
+ }
1740
+ ngOnDestroy() {
1741
+ this._intlChanges.unsubscribe();
1742
+ this.stateChanges.complete();
1743
+ }
1744
+ ngOnChanges(changes) {
1745
+ const change = changes['minDate'] || changes['maxDate'] || changes['dateFilter'];
1746
+ if (change && !change.firstChange) {
1747
+ const view = this._getCurrentViewComponent();
1748
+ if (view) {
1749
+ // We need to `detectChanges` manually here, because the `minDate`, `maxDate` etc. are
1750
+ // passed down to the view via data bindings which won't be up-to-date when we call `_init`.
1751
+ this._changeDetectorRef.detectChanges();
1752
+ view._init();
1753
+ }
1754
+ }
1755
+ this.stateChanges.next();
1756
+ }
1757
+ /** Focuses the active date. */
1758
+ focusActiveCell() {
1759
+ this._getCurrentViewComponent()._focusActiveCell(false);
1760
+ }
1761
+ /** Updates today's date after an update of the active date */
1762
+ updateTodaysDate() {
1763
+ this._getCurrentViewComponent()._init();
1764
+ }
1765
+ /** Handles date selection in the month view. */
1766
+ _dateSelected(event) {
1767
+ const date = event.value;
1768
+ if (this.selected instanceof DateRange ||
1769
+ (date && !this._dateAdapter.sameDate(date, this.selected))) {
1770
+ this.selectedChange.emit(date);
1771
+ }
1772
+ this._userSelection.emit(event);
1773
+ }
1774
+ /** Handles year selection in the multiyear view. */
1775
+ _yearSelectedInMultiYearView(normalizedYear) {
1776
+ this.yearSelected.emit(normalizedYear);
1777
+ }
1778
+ /** Handles month selection in the year view. */
1779
+ _monthSelectedInYearView(normalizedMonth) {
1780
+ this.monthSelected.emit(normalizedMonth);
1781
+ }
1782
+ /** Handles year/month selection in the multi-year/year views. */
1783
+ _goToDateInView(date, view) {
1784
+ this.activeDate = date;
1785
+ this.currentView = view;
1786
+ }
1787
+ /** Returns the component instance that corresponds to the current calendar view. */
1788
+ _getCurrentViewComponent() {
1789
+ // The return type is explicitly written as a union to ensure that the Closure compiler does
1790
+ // not optimize calls to _init(). Without the explict return type, TypeScript narrows it to
1791
+ // only the first component type. See https://github.com/angular/components/issues/22996.
1792
+ return this.monthView || this.yearView || this.multiYearView;
1793
+ }
1794
+ }
1795
+ MatCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatCalendar, deps: [{ token: MatDatepickerIntl }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1796
+ MatCalendar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatCalendar, selector: "mat-calendar", inputs: { headerComponent: "headerComponent", startAt: "startAt", startView: "startView", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd" }, outputs: { selectedChange: "selectedChange", yearSelected: "yearSelected", monthSelected: "monthSelected", viewChanged: "viewChanged", _userSelection: "_userSelection" }, host: { classAttribute: "mat-calendar" }, providers: [MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER], viewQueries: [{ propertyName: "monthView", first: true, predicate: MatMonthView, descendants: true }, { propertyName: "yearView", first: true, predicate: MatYearView, descendants: true }, { propertyName: "multiYearView", first: true, predicate: MatMultiYearView, descendants: true }], exportAs: ["matCalendar"], usesOnChanges: true, ngImport: i0, template: "<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 [comparisonStart]=\"comparisonStart\"\n [comparisonEnd]=\"comparisonEnd\"\n (_userSelection)=\"_dateSelected($event)\">\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 [dateClass]=\"dateClass\"\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 [dateClass]=\"dateClass\"\n (yearSelected)=\"_yearSelectedInMultiYearView($event)\"\n (selectedChange)=\"_goToDateInView($event, 'year')\">\n </mat-multi-year-view>\n</div>\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(4.7142857143% - 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:10px;height:5px;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}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.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}.mat-calendar-abbr{text-decoration:none}\n"], components: [{ type: MatMonthView, selector: "mat-month-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd"], outputs: ["selectedChange", "_userSelection", "activeDateChange"], exportAs: ["matMonthView"] }, { type: MatYearView, selector: "mat-year-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter", "dateClass"], outputs: ["selectedChange", "monthSelected", "activeDateChange"], exportAs: ["matYearView"] }, { type: MatMultiYearView, selector: "mat-multi-year-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter", "dateClass"], outputs: ["selectedChange", "yearSelected", "activeDateChange"], exportAs: ["matMultiYearView"] }], directives: [{ type: i8.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i4.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1797
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatCalendar, decorators: [{
1798
+ type: Component,
1799
+ args: [{ selector: 'mat-calendar', host: {
1800
+ 'class': 'mat-calendar',
1801
+ }, exportAs: 'matCalendar', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER], template: "<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 [comparisonStart]=\"comparisonStart\"\n [comparisonEnd]=\"comparisonEnd\"\n (_userSelection)=\"_dateSelected($event)\">\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 [dateClass]=\"dateClass\"\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 [dateClass]=\"dateClass\"\n (yearSelected)=\"_yearSelectedInMultiYearView($event)\"\n (selectedChange)=\"_goToDateInView($event, 'year')\">\n </mat-multi-year-view>\n</div>\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(4.7142857143% - 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:10px;height:5px;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}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.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}.mat-calendar-abbr{text-decoration:none}\n"] }]
1802
+ }], ctorParameters: function () { return [{ type: MatDatepickerIntl }, { type: i1$1.DateAdapter, decorators: [{
1803
+ type: Optional
1804
+ }] }, { type: undefined, decorators: [{
1805
+ type: Optional
1806
+ }, {
1807
+ type: Inject,
1808
+ args: [MAT_DATE_FORMATS]
1809
+ }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { headerComponent: [{
1810
+ type: Input
1811
+ }], startAt: [{
1812
+ type: Input
1813
+ }], startView: [{
1814
+ type: Input
1815
+ }], selected: [{
1816
+ type: Input
1817
+ }], minDate: [{
1818
+ type: Input
1819
+ }], maxDate: [{
1820
+ type: Input
1821
+ }], dateFilter: [{
1822
+ type: Input
1823
+ }], dateClass: [{
1824
+ type: Input
1825
+ }], comparisonStart: [{
1826
+ type: Input
1827
+ }], comparisonEnd: [{
1828
+ type: Input
1829
+ }], selectedChange: [{
1830
+ type: Output
1831
+ }], yearSelected: [{
1832
+ type: Output
1833
+ }], monthSelected: [{
1834
+ type: Output
1835
+ }], viewChanged: [{
1836
+ type: Output
1837
+ }], _userSelection: [{
1838
+ type: Output
1839
+ }], monthView: [{
1840
+ type: ViewChild,
1841
+ args: [MatMonthView]
1842
+ }], yearView: [{
1843
+ type: ViewChild,
1844
+ args: [MatYearView]
1845
+ }], multiYearView: [{
1846
+ type: ViewChild,
1847
+ args: [MatMultiYearView]
1848
+ }] } });
1849
+
1850
+ /**
1851
+ * @license
1852
+ * Copyright Google LLC All Rights Reserved.
1853
+ *
1854
+ * Use of this source code is governed by an MIT-style license that can be
1855
+ * found in the LICENSE file at https://angular.io/license
1856
+ */
1857
+ /**
1858
+ * Animations used by the Material datepicker.
1859
+ * @docs-private
1860
+ */
1861
+ const matDatepickerAnimations = {
1862
+ /** Transforms the height of the datepicker's calendar. */
1863
+ transformPanel: trigger('transformPanel', [
1864
+ transition('void => enter-dropdown', animate('120ms cubic-bezier(0, 0, 0.2, 1)', keyframes([
1865
+ style({ opacity: 0, transform: 'scale(1, 0.8)' }),
1866
+ style({ opacity: 1, transform: 'scale(1, 1)' })
1867
+ ]))),
1868
+ transition('void => enter-dialog', animate('150ms cubic-bezier(0, 0, 0.2, 1)', keyframes([
1869
+ style({ opacity: 0, transform: 'scale(0.7)' }),
1870
+ style({ transform: 'none', opacity: 1 })
1871
+ ]))),
1872
+ transition('* => void', animate('100ms linear', style({ opacity: 0 })))
1873
+ ]),
1874
+ /** Fades in the content of the calendar. */
1875
+ fadeInCalendar: trigger('fadeInCalendar', [
1876
+ state('void', style({ opacity: 0 })),
1877
+ state('enter', style({ opacity: 1 })),
1878
+ // TODO(crisbeto): this animation should be removed since it isn't quite on spec, but we
1879
+ // need to keep it until #12440 gets in, otherwise the exit animation will look glitchy.
1880
+ transition('void => *', animate('120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)'))
1881
+ ])
1882
+ };
1883
+
1884
+ /**
1885
+ * @license
1886
+ * Copyright Google LLC All Rights Reserved.
1887
+ *
1888
+ * Use of this source code is governed by an MIT-style license that can be
1889
+ * found in the LICENSE file at https://angular.io/license
1890
+ */
1891
+ /** Used to generate a unique ID for each datepicker instance. */
1892
+ let datepickerUid = 0;
1893
+ /** Injection token that determines the scroll handling while the calendar is open. */
1894
+ const MAT_DATEPICKER_SCROLL_STRATEGY = new InjectionToken('mat-datepicker-scroll-strategy');
1895
+ /** @docs-private */
1896
+ function MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY(overlay) {
1897
+ return () => overlay.scrollStrategies.reposition();
1898
+ }
1899
+ /** @docs-private */
1900
+ const MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = {
1901
+ provide: MAT_DATEPICKER_SCROLL_STRATEGY,
1902
+ deps: [Overlay],
1903
+ useFactory: MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,
1904
+ };
1905
+ // Boilerplate for applying mixins to MatDatepickerContent.
1906
+ /** @docs-private */
1907
+ const _MatDatepickerContentBase = mixinColor(class {
1908
+ constructor(_elementRef) {
1909
+ this._elementRef = _elementRef;
1910
+ }
1911
+ });
1912
+ /**
1913
+ * Component used as the content for the datepicker overlay. We use this instead of using
1914
+ * MatCalendar directly as the content so we can control the initial focus. This also gives us a
1915
+ * place to put additional features of the overlay that are not part of the calendar itself in the
1916
+ * future. (e.g. confirmation buttons).
1917
+ * @docs-private
1918
+ */
1919
+ class MatDatepickerContent extends _MatDatepickerContentBase {
1920
+ constructor(elementRef, _changeDetectorRef, _globalModel, _dateAdapter, _rangeSelectionStrategy, intl) {
1921
+ super(elementRef);
1922
+ this._changeDetectorRef = _changeDetectorRef;
1923
+ this._globalModel = _globalModel;
1924
+ this._dateAdapter = _dateAdapter;
1925
+ this._rangeSelectionStrategy = _rangeSelectionStrategy;
1926
+ this._subscriptions = new Subscription();
1927
+ /** Emits when an animation has finished. */
1928
+ this._animationDone = new Subject();
1929
+ /** Portal with projected action buttons. */
1930
+ this._actionsPortal = null;
1931
+ this._closeButtonText = intl.closeCalendarLabel;
1932
+ }
1933
+ ngOnInit() {
1934
+ // If we have actions, clone the model so that we have the ability to cancel the selection,
1935
+ // otherwise update the global model directly. Note that we want to assign this as soon as
1936
+ // possible, but `_actionsPortal` isn't available in the constructor so we do it in `ngOnInit`.
1937
+ this._model = this._actionsPortal ? this._globalModel.clone() : this._globalModel;
1938
+ this._animationState = this.datepicker.touchUi ? 'enter-dialog' : 'enter-dropdown';
1939
+ }
1940
+ ngAfterViewInit() {
1941
+ this._subscriptions.add(this.datepicker.stateChanges.subscribe(() => {
1942
+ this._changeDetectorRef.markForCheck();
1943
+ }));
1944
+ this._calendar.focusActiveCell();
1945
+ }
1946
+ ngOnDestroy() {
1947
+ this._subscriptions.unsubscribe();
1948
+ this._animationDone.complete();
1949
+ }
1950
+ _handleUserSelection(event) {
1951
+ const selection = this._model.selection;
1952
+ const value = event.value;
1953
+ const isRange = selection instanceof DateRange;
1954
+ // If we're selecting a range and we have a selection strategy, always pass the value through
1955
+ // there. Otherwise don't assign null values to the model, unless we're selecting a range.
1956
+ // A null value when picking a range means that the user cancelled the selection (e.g. by
1957
+ // pressing escape), whereas when selecting a single value it means that the value didn't
1958
+ // change. This isn't very intuitive, but it's here for backwards-compatibility.
1959
+ if (isRange && this._rangeSelectionStrategy) {
1960
+ const newSelection = this._rangeSelectionStrategy.selectionFinished(value, selection, event.event);
1961
+ this._model.updateSelection(newSelection, this);
1962
+ }
1963
+ else if (value && (isRange ||
1964
+ !this._dateAdapter.sameDate(value, selection))) {
1965
+ this._model.add(value);
1966
+ }
1967
+ // Delegate closing the overlay to the actions.
1968
+ if ((!this._model || this._model.isComplete()) && !this._actionsPortal) {
1969
+ this.datepicker.close();
1970
+ }
1971
+ }
1972
+ _startExitAnimation() {
1973
+ this._animationState = 'void';
1974
+ this._changeDetectorRef.markForCheck();
1975
+ }
1976
+ _getSelected() {
1977
+ return this._model.selection;
1978
+ }
1979
+ /** Applies the current pending selection to the global model. */
1980
+ _applyPendingSelection() {
1981
+ if (this._model !== this._globalModel) {
1982
+ this._globalModel.updateSelection(this._model.selection, this);
1983
+ }
1984
+ }
1985
+ }
1986
+ MatDatepickerContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerContent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MatDateSelectionModel }, { token: i1$1.DateAdapter }, { token: MAT_DATE_RANGE_SELECTION_STRATEGY, optional: true }, { token: MatDatepickerIntl }], target: i0.ɵɵFactoryTarget.Component });
1987
+ MatDatepickerContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDatepickerContent, selector: "mat-datepicker-content", inputs: { color: "color" }, host: { listeners: { "@transformPanel.done": "_animationDone.next()" }, properties: { "@transformPanel": "_animationState", "class.mat-datepicker-content-touch": "datepicker.touchUi" }, classAttribute: "mat-datepicker-content" }, viewQueries: [{ propertyName: "_calendar", first: true, predicate: MatCalendar, descendants: true }], exportAs: ["matDatepickerContent"], usesInheritance: true, ngImport: i0, template: "<div\n cdkTrapFocus\n class=\"mat-datepicker-content-container\"\n [class.mat-datepicker-content-container-with-actions]=\"_actionsPortal\">\n <mat-calendar\n [id]=\"datepicker.id\"\n [ngClass]=\"datepicker.panelClass\"\n [startAt]=\"datepicker.startAt\"\n [startView]=\"datepicker.startView\"\n [minDate]=\"datepicker._getMinDate()\"\n [maxDate]=\"datepicker._getMaxDate()\"\n [dateFilter]=\"datepicker._getDateFilter()\"\n [headerComponent]=\"datepicker.calendarHeaderComponent\"\n [selected]=\"_getSelected()\"\n [dateClass]=\"datepicker.dateClass\"\n [comparisonStart]=\"comparisonStart\"\n [comparisonEnd]=\"comparisonEnd\"\n [@fadeInCalendar]=\"'enter'\"\n (yearSelected)=\"datepicker._selectYear($event)\"\n (monthSelected)=\"datepicker._selectMonth($event)\"\n (viewChanged)=\"datepicker._viewChanged($event)\"\n (_userSelection)=\"_handleUserSelection($event)\"></mat-calendar>\n\n <ng-template [cdkPortalOutlet]=\"_actionsPortal\"></ng-template>\n\n <!-- Invisible close button for screen reader users. -->\n <button\n type=\"button\"\n mat-raised-button\n [color]=\"color || 'primary'\"\n class=\"mat-datepicker-close-button\"\n [class.cdk-visually-hidden]=\"!_closeButtonFocused\"\n (focus)=\"_closeButtonFocused = true\"\n (blur)=\"_closeButtonFocused = false\"\n (click)=\"datepicker.close()\">{{ _closeButtonText }}</button>\n</div>\n", styles: [".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"], components: [{ type: MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection"], exportAs: ["matCalendar"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [
1988
+ matDatepickerAnimations.transformPanel,
1989
+ matDatepickerAnimations.fadeInCalendar,
1990
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1991
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerContent, decorators: [{
1992
+ type: Component,
1993
+ args: [{ selector: 'mat-datepicker-content', host: {
1994
+ 'class': 'mat-datepicker-content',
1995
+ '[@transformPanel]': '_animationState',
1996
+ '(@transformPanel.done)': '_animationDone.next()',
1997
+ '[class.mat-datepicker-content-touch]': 'datepicker.touchUi',
1998
+ }, animations: [
1999
+ matDatepickerAnimations.transformPanel,
2000
+ matDatepickerAnimations.fadeInCalendar,
2001
+ ], exportAs: 'matDatepickerContent', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['color'], template: "<div\n cdkTrapFocus\n class=\"mat-datepicker-content-container\"\n [class.mat-datepicker-content-container-with-actions]=\"_actionsPortal\">\n <mat-calendar\n [id]=\"datepicker.id\"\n [ngClass]=\"datepicker.panelClass\"\n [startAt]=\"datepicker.startAt\"\n [startView]=\"datepicker.startView\"\n [minDate]=\"datepicker._getMinDate()\"\n [maxDate]=\"datepicker._getMaxDate()\"\n [dateFilter]=\"datepicker._getDateFilter()\"\n [headerComponent]=\"datepicker.calendarHeaderComponent\"\n [selected]=\"_getSelected()\"\n [dateClass]=\"datepicker.dateClass\"\n [comparisonStart]=\"comparisonStart\"\n [comparisonEnd]=\"comparisonEnd\"\n [@fadeInCalendar]=\"'enter'\"\n (yearSelected)=\"datepicker._selectYear($event)\"\n (monthSelected)=\"datepicker._selectMonth($event)\"\n (viewChanged)=\"datepicker._viewChanged($event)\"\n (_userSelection)=\"_handleUserSelection($event)\"></mat-calendar>\n\n <ng-template [cdkPortalOutlet]=\"_actionsPortal\"></ng-template>\n\n <!-- Invisible close button for screen reader users. -->\n <button\n type=\"button\"\n mat-raised-button\n [color]=\"color || 'primary'\"\n class=\"mat-datepicker-close-button\"\n [class.cdk-visually-hidden]=\"!_closeButtonFocused\"\n (focus)=\"_closeButtonFocused = true\"\n (blur)=\"_closeButtonFocused = false\"\n (click)=\"datepicker.close()\">{{ _closeButtonText }}</button>\n</div>\n", styles: [".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"] }]
2002
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: MatDateSelectionModel }, { type: i1$1.DateAdapter }, { type: undefined, decorators: [{
2003
+ type: Optional
2004
+ }, {
2005
+ type: Inject,
2006
+ args: [MAT_DATE_RANGE_SELECTION_STRATEGY]
2007
+ }] }, { type: MatDatepickerIntl }]; }, propDecorators: { _calendar: [{
2008
+ type: ViewChild,
2009
+ args: [MatCalendar]
2010
+ }] } });
2011
+ /** Base class for a datepicker. */
2012
+ class MatDatepickerBase {
2013
+ constructor(_overlay, _ngZone, _viewContainerRef, scrollStrategy, _dateAdapter, _dir, _model) {
2014
+ this._overlay = _overlay;
2015
+ this._ngZone = _ngZone;
2016
+ this._viewContainerRef = _viewContainerRef;
2017
+ this._dateAdapter = _dateAdapter;
2018
+ this._dir = _dir;
2019
+ this._model = _model;
2020
+ this._inputStateChanges = Subscription.EMPTY;
2021
+ /** The view that the calendar should start in. */
2022
+ this.startView = 'month';
2023
+ this._touchUi = false;
2024
+ /** Preferred position of the datepicker in the X axis. */
2025
+ this.xPosition = 'start';
2026
+ /** Preferred position of the datepicker in the Y axis. */
2027
+ this.yPosition = 'below';
2028
+ this._restoreFocus = true;
2029
+ /**
2030
+ * Emits selected year in multiyear view.
2031
+ * This doesn't imply a change on the selected date.
2032
+ */
2033
+ this.yearSelected = new EventEmitter();
2034
+ /**
2035
+ * Emits selected month in year view.
2036
+ * This doesn't imply a change on the selected date.
2037
+ */
2038
+ this.monthSelected = new EventEmitter();
2039
+ /**
2040
+ * Emits when the current view changes.
2041
+ */
2042
+ this.viewChanged = new EventEmitter(true);
2043
+ /** Emits when the datepicker has been opened. */
2044
+ this.openedStream = new EventEmitter();
2045
+ /** Emits when the datepicker has been closed. */
2046
+ this.closedStream = new EventEmitter();
2047
+ this._opened = false;
2048
+ /** The id for the datepicker calendar. */
2049
+ this.id = `mat-datepicker-${datepickerUid++}`;
2050
+ /** The element that was focused before the datepicker was opened. */
2051
+ this._focusedElementBeforeOpen = null;
2052
+ /** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
2053
+ this._backdropHarnessClass = `${this.id}-backdrop`;
2054
+ /** Emits when the datepicker's state changes. */
2055
+ this.stateChanges = new Subject();
2056
+ if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
2057
+ throw createMissingDateImplError('DateAdapter');
2058
+ }
2059
+ this._scrollStrategy = scrollStrategy;
2060
+ }
2061
+ /** The date to open the calendar to initially. */
2062
+ get startAt() {
2063
+ // If an explicit startAt is set we start there, otherwise we start at whatever the currently
2064
+ // selected value is.
2065
+ return this._startAt || (this.datepickerInput ? this.datepickerInput.getStartValue() : null);
2066
+ }
2067
+ set startAt(value) {
2068
+ this._startAt = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
2069
+ }
2070
+ /** Color palette to use on the datepicker's calendar. */
2071
+ get color() {
2072
+ return this._color ||
2073
+ (this.datepickerInput ? this.datepickerInput.getThemePalette() : undefined);
2074
+ }
2075
+ set color(value) {
2076
+ this._color = value;
2077
+ }
2078
+ /**
2079
+ * Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather
2080
+ * than a dropdown and elements have more padding to allow for bigger touch targets.
2081
+ */
2082
+ get touchUi() { return this._touchUi; }
2083
+ set touchUi(value) {
2084
+ this._touchUi = coerceBooleanProperty(value);
2085
+ }
2086
+ /** Whether the datepicker pop-up should be disabled. */
2087
+ get disabled() {
2088
+ return this._disabled === undefined && this.datepickerInput ?
2089
+ this.datepickerInput.disabled : !!this._disabled;
2090
+ }
2091
+ set disabled(value) {
2092
+ const newValue = coerceBooleanProperty(value);
2093
+ if (newValue !== this._disabled) {
2094
+ this._disabled = newValue;
2095
+ this.stateChanges.next(undefined);
2096
+ }
2097
+ }
2098
+ /**
2099
+ * Whether to restore focus to the previously-focused element when the calendar is closed.
2100
+ * Note that automatic focus restoration is an accessibility feature and it is recommended that
2101
+ * you provide your own equivalent, if you decide to turn it off.
2102
+ */
2103
+ get restoreFocus() { return this._restoreFocus; }
2104
+ set restoreFocus(value) {
2105
+ this._restoreFocus = coerceBooleanProperty(value);
2106
+ }
2107
+ /**
2108
+ * Classes to be passed to the date picker panel.
2109
+ * Supports string and string array values, similar to `ngClass`.
2110
+ */
2111
+ get panelClass() { return this._panelClass; }
2112
+ set panelClass(value) {
2113
+ this._panelClass = coerceStringArray(value);
2114
+ }
2115
+ /** Whether the calendar is open. */
2116
+ get opened() { return this._opened; }
2117
+ set opened(value) {
2118
+ coerceBooleanProperty(value) ? this.open() : this.close();
2119
+ }
2120
+ /** The minimum selectable date. */
2121
+ _getMinDate() {
2122
+ return this.datepickerInput && this.datepickerInput.min;
2123
+ }
2124
+ /** The maximum selectable date. */
2125
+ _getMaxDate() {
2126
+ return this.datepickerInput && this.datepickerInput.max;
2127
+ }
2128
+ _getDateFilter() {
2129
+ return this.datepickerInput && this.datepickerInput.dateFilter;
2130
+ }
2131
+ ngOnChanges(changes) {
2132
+ const positionChange = changes['xPosition'] || changes['yPosition'];
2133
+ if (positionChange && !positionChange.firstChange && this._overlayRef) {
2134
+ const positionStrategy = this._overlayRef.getConfig().positionStrategy;
2135
+ if (positionStrategy instanceof FlexibleConnectedPositionStrategy) {
2136
+ this._setConnectedPositions(positionStrategy);
2137
+ if (this.opened) {
2138
+ this._overlayRef.updatePosition();
2139
+ }
2140
+ }
2141
+ }
2142
+ this.stateChanges.next(undefined);
2143
+ }
2144
+ ngOnDestroy() {
2145
+ this._destroyOverlay();
2146
+ this.close();
2147
+ this._inputStateChanges.unsubscribe();
2148
+ this.stateChanges.complete();
2149
+ }
2150
+ /** Selects the given date */
2151
+ select(date) {
2152
+ this._model.add(date);
2153
+ }
2154
+ /** Emits the selected year in multiyear view */
2155
+ _selectYear(normalizedYear) {
2156
+ this.yearSelected.emit(normalizedYear);
2157
+ }
2158
+ /** Emits selected month in year view */
2159
+ _selectMonth(normalizedMonth) {
2160
+ this.monthSelected.emit(normalizedMonth);
2161
+ }
2162
+ /** Emits changed view */
2163
+ _viewChanged(view) {
2164
+ this.viewChanged.emit(view);
2165
+ }
2166
+ /**
2167
+ * Register an input with this datepicker.
2168
+ * @param input The datepicker input to register with this datepicker.
2169
+ * @returns Selection model that the input should hook itself up to.
2170
+ */
2171
+ registerInput(input) {
2172
+ if (this.datepickerInput && (typeof ngDevMode === 'undefined' || ngDevMode)) {
2173
+ throw Error('A MatDatepicker can only be associated with a single input.');
2174
+ }
2175
+ this._inputStateChanges.unsubscribe();
2176
+ this.datepickerInput = input;
2177
+ this._inputStateChanges =
2178
+ input.stateChanges.subscribe(() => this.stateChanges.next(undefined));
2179
+ return this._model;
2180
+ }
2181
+ /**
2182
+ * Registers a portal containing action buttons with the datepicker.
2183
+ * @param portal Portal to be registered.
2184
+ */
2185
+ registerActions(portal) {
2186
+ if (this._actionsPortal && (typeof ngDevMode === 'undefined' || ngDevMode)) {
2187
+ throw Error('A MatDatepicker can only be associated with a single actions row.');
2188
+ }
2189
+ this._actionsPortal = portal;
2190
+ }
2191
+ /**
2192
+ * Removes a portal containing action buttons from the datepicker.
2193
+ * @param portal Portal to be removed.
2194
+ */
2195
+ removeActions(portal) {
2196
+ if (portal === this._actionsPortal) {
2197
+ this._actionsPortal = null;
2198
+ }
2199
+ }
2200
+ /** Open the calendar. */
2201
+ open() {
2202
+ if (this._opened || this.disabled) {
2203
+ return;
2204
+ }
2205
+ if (!this.datepickerInput && (typeof ngDevMode === 'undefined' || ngDevMode)) {
2206
+ throw Error('Attempted to open an MatDatepicker with no associated input.');
2207
+ }
2208
+ this._focusedElementBeforeOpen = _getFocusedElementPierceShadowDom();
2209
+ this._openOverlay();
2210
+ this._opened = true;
2211
+ this.openedStream.emit();
2212
+ }
2213
+ /** Close the calendar. */
2214
+ close() {
2215
+ if (!this._opened) {
2216
+ return;
2217
+ }
2218
+ if (this._componentRef) {
2219
+ const instance = this._componentRef.instance;
2220
+ instance._startExitAnimation();
2221
+ instance._animationDone.pipe(take(1)).subscribe(() => this._destroyOverlay());
2222
+ }
2223
+ const completeClose = () => {
2224
+ // The `_opened` could've been reset already if
2225
+ // we got two events in quick succession.
2226
+ if (this._opened) {
2227
+ this._opened = false;
2228
+ this.closedStream.emit();
2229
+ this._focusedElementBeforeOpen = null;
2230
+ }
2231
+ };
2232
+ if (this._restoreFocus && this._focusedElementBeforeOpen &&
2233
+ typeof this._focusedElementBeforeOpen.focus === 'function') {
2234
+ // Because IE moves focus asynchronously, we can't count on it being restored before we've
2235
+ // marked the datepicker as closed. If the event fires out of sequence and the element that
2236
+ // we're refocusing opens the datepicker on focus, the user could be stuck with not being
2237
+ // able to close the calendar at all. We work around it by making the logic, that marks
2238
+ // the datepicker as closed, async as well.
2239
+ this._focusedElementBeforeOpen.focus();
2240
+ setTimeout(completeClose);
2241
+ }
2242
+ else {
2243
+ completeClose();
2244
+ }
2245
+ }
2246
+ /** Applies the current pending selection on the overlay to the model. */
2247
+ _applyPendingSelection() {
2248
+ this._componentRef?.instance?._applyPendingSelection();
2249
+ }
2250
+ /** Forwards relevant values from the datepicker to the datepicker content inside the overlay. */
2251
+ _forwardContentValues(instance) {
2252
+ instance.datepicker = this;
2253
+ instance.color = this.color;
2254
+ instance._actionsPortal = this._actionsPortal;
2255
+ }
2256
+ /** Opens the overlay with the calendar. */
2257
+ _openOverlay() {
2258
+ this._destroyOverlay();
2259
+ const isDialog = this.touchUi;
2260
+ const labelId = this.datepickerInput.getOverlayLabelId();
2261
+ const portal = new ComponentPortal(MatDatepickerContent, this._viewContainerRef);
2262
+ const overlayRef = this._overlayRef = this._overlay.create(new OverlayConfig({
2263
+ positionStrategy: isDialog ? this._getDialogStrategy() : this._getDropdownStrategy(),
2264
+ hasBackdrop: true,
2265
+ backdropClass: [
2266
+ isDialog ? 'cdk-overlay-dark-backdrop' : 'mat-overlay-transparent-backdrop',
2267
+ this._backdropHarnessClass
2268
+ ],
2269
+ direction: this._dir,
2270
+ scrollStrategy: isDialog ? this._overlay.scrollStrategies.block() : this._scrollStrategy(),
2271
+ panelClass: `mat-datepicker-${isDialog ? 'dialog' : 'popup'}`,
2272
+ }));
2273
+ const overlayElement = overlayRef.overlayElement;
2274
+ overlayElement.setAttribute('role', 'dialog');
2275
+ if (labelId) {
2276
+ overlayElement.setAttribute('aria-labelledby', labelId);
2277
+ }
2278
+ if (isDialog) {
2279
+ overlayElement.setAttribute('aria-modal', 'true');
2280
+ }
2281
+ this._getCloseStream(overlayRef).subscribe(event => {
2282
+ if (event) {
2283
+ event.preventDefault();
2284
+ }
2285
+ this.close();
2286
+ });
2287
+ this._componentRef = overlayRef.attach(portal);
2288
+ this._forwardContentValues(this._componentRef.instance);
2289
+ // Update the position once the calendar has rendered. Only relevant in dropdown mode.
2290
+ if (!isDialog) {
2291
+ this._ngZone.onStable.pipe(take(1)).subscribe(() => overlayRef.updatePosition());
2292
+ }
2293
+ }
2294
+ /** Destroys the current overlay. */
2295
+ _destroyOverlay() {
2296
+ if (this._overlayRef) {
2297
+ this._overlayRef.dispose();
2298
+ this._overlayRef = this._componentRef = null;
2299
+ }
2300
+ }
2301
+ /** Gets a position strategy that will open the calendar as a dropdown. */
2302
+ _getDialogStrategy() {
2303
+ return this._overlay.position().global().centerHorizontally().centerVertically();
2304
+ }
2305
+ /** Gets a position strategy that will open the calendar as a dropdown. */
2306
+ _getDropdownStrategy() {
2307
+ const strategy = this._overlay.position()
2308
+ .flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin())
2309
+ .withTransformOriginOn('.mat-datepicker-content')
2310
+ .withFlexibleDimensions(false)
2311
+ .withViewportMargin(8)
2312
+ .withLockedPosition();
2313
+ return this._setConnectedPositions(strategy);
2314
+ }
2315
+ /** Sets the positions of the datepicker in dropdown mode based on the current configuration. */
2316
+ _setConnectedPositions(strategy) {
2317
+ const primaryX = this.xPosition === 'end' ? 'end' : 'start';
2318
+ const secondaryX = primaryX === 'start' ? 'end' : 'start';
2319
+ const primaryY = this.yPosition === 'above' ? 'bottom' : 'top';
2320
+ const secondaryY = primaryY === 'top' ? 'bottom' : 'top';
2321
+ return strategy.withPositions([
2322
+ {
2323
+ originX: primaryX,
2324
+ originY: secondaryY,
2325
+ overlayX: primaryX,
2326
+ overlayY: primaryY
2327
+ },
2328
+ {
2329
+ originX: primaryX,
2330
+ originY: primaryY,
2331
+ overlayX: primaryX,
2332
+ overlayY: secondaryY
2333
+ },
2334
+ {
2335
+ originX: secondaryX,
2336
+ originY: secondaryY,
2337
+ overlayX: secondaryX,
2338
+ overlayY: primaryY
2339
+ },
2340
+ {
2341
+ originX: secondaryX,
2342
+ originY: primaryY,
2343
+ overlayX: secondaryX,
2344
+ overlayY: secondaryY
2345
+ }
2346
+ ]);
2347
+ }
2348
+ /** Gets an observable that will emit when the overlay is supposed to be closed. */
2349
+ _getCloseStream(overlayRef) {
2350
+ return merge(overlayRef.backdropClick(), overlayRef.detachments(), overlayRef.keydownEvents().pipe(filter(event => {
2351
+ // Closing on alt + up is only valid when there's an input associated with the datepicker.
2352
+ return (event.keyCode === ESCAPE && !hasModifierKey(event)) || (this.datepickerInput &&
2353
+ hasModifierKey(event, 'altKey') && event.keyCode === UP_ARROW);
2354
+ })));
2355
+ }
2356
+ }
2357
+ MatDatepickerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerBase, deps: [{ token: i9.Overlay }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: MAT_DATEPICKER_SCROLL_STRATEGY }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }, { token: MatDateSelectionModel }], target: i0.ɵɵFactoryTarget.Directive });
2358
+ MatDatepickerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDatepickerBase, inputs: { calendarHeaderComponent: "calendarHeaderComponent", startAt: "startAt", startView: "startView", color: "color", touchUi: "touchUi", disabled: "disabled", xPosition: "xPosition", yPosition: "yPosition", restoreFocus: "restoreFocus", dateClass: "dateClass", panelClass: "panelClass", opened: "opened" }, outputs: { yearSelected: "yearSelected", monthSelected: "monthSelected", viewChanged: "viewChanged", openedStream: "opened", closedStream: "closed" }, usesOnChanges: true, ngImport: i0 });
2359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerBase, decorators: [{
2360
+ type: Directive
2361
+ }], ctorParameters: function () { return [{ type: i9.Overlay }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
2362
+ type: Inject,
2363
+ args: [MAT_DATEPICKER_SCROLL_STRATEGY]
2364
+ }] }, { type: i1$1.DateAdapter, decorators: [{
2365
+ type: Optional
2366
+ }] }, { type: i2.Directionality, decorators: [{
2367
+ type: Optional
2368
+ }] }, { type: MatDateSelectionModel }]; }, propDecorators: { calendarHeaderComponent: [{
2369
+ type: Input
2370
+ }], startAt: [{
2371
+ type: Input
2372
+ }], startView: [{
2373
+ type: Input
2374
+ }], color: [{
2375
+ type: Input
2376
+ }], touchUi: [{
2377
+ type: Input
2378
+ }], disabled: [{
2379
+ type: Input
2380
+ }], xPosition: [{
2381
+ type: Input
2382
+ }], yPosition: [{
2383
+ type: Input
2384
+ }], restoreFocus: [{
2385
+ type: Input
2386
+ }], yearSelected: [{
2387
+ type: Output
2388
+ }], monthSelected: [{
2389
+ type: Output
2390
+ }], viewChanged: [{
2391
+ type: Output
2392
+ }], dateClass: [{
2393
+ type: Input
2394
+ }], openedStream: [{
2395
+ type: Output,
2396
+ args: ['opened']
2397
+ }], closedStream: [{
2398
+ type: Output,
2399
+ args: ['closed']
2400
+ }], panelClass: [{
2401
+ type: Input
2402
+ }], opened: [{
2403
+ type: Input
2404
+ }] } });
2405
+
2406
+ /**
2407
+ * @license
2408
+ * Copyright Google LLC All Rights Reserved.
2409
+ *
2410
+ * Use of this source code is governed by an MIT-style license that can be
2411
+ * found in the LICENSE file at https://angular.io/license
2412
+ */
2413
+ // TODO(mmalerba): We use a component instead of a directive here so the user can use implicit
2414
+ // template reference variables (e.g. #d vs #d="matDatepicker"). We can change this to a directive
2415
+ // if angular adds support for `exportAs: '$implicit'` on directives.
2416
+ /** Component responsible for managing the datepicker popup/dialog. */
2417
+ class MatDatepicker extends MatDatepickerBase {
2418
+ }
2419
+ MatDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component });
2420
+ MatDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDatepicker, selector: "mat-datepicker", providers: [
2421
+ MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER,
2422
+ { provide: MatDatepickerBase, useExisting: MatDatepicker },
2423
+ ], exportAs: ["matDatepicker"], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2424
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepicker, decorators: [{
2425
+ type: Component,
2426
+ args: [{
2427
+ selector: 'mat-datepicker',
2428
+ template: '',
2429
+ exportAs: 'matDatepicker',
2430
+ changeDetection: ChangeDetectionStrategy.OnPush,
2431
+ encapsulation: ViewEncapsulation.None,
2432
+ providers: [
2433
+ MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER,
2434
+ { provide: MatDatepickerBase, useExisting: MatDatepicker },
2435
+ ]
2436
+ }]
2437
+ }] });
2438
+
2439
+ /**
2440
+ * @license
2441
+ * Copyright Google LLC All Rights Reserved.
2442
+ *
2443
+ * Use of this source code is governed by an MIT-style license that can be
2444
+ * found in the LICENSE file at https://angular.io/license
2445
+ */
2446
+ /**
2447
+ * An event used for datepicker input and change events. We don't always have access to a native
2448
+ * input or change event because the event may have been triggered by the user clicking on the
2449
+ * calendar popup. For consistency, we always use MatDatepickerInputEvent instead.
2450
+ */
2451
+ class MatDatepickerInputEvent {
2452
+ constructor(
2453
+ /** Reference to the datepicker input component that emitted the event. */
2454
+ target,
2455
+ /** Reference to the native input element associated with the datepicker input. */
2456
+ targetElement) {
2457
+ this.target = target;
2458
+ this.targetElement = targetElement;
2459
+ this.value = this.target.value;
2460
+ }
2461
+ }
2462
+ /** Base class for datepicker inputs. */
2463
+ class MatDatepickerInputBase {
2464
+ constructor(_elementRef, _dateAdapter, _dateFormats) {
2465
+ this._elementRef = _elementRef;
2466
+ this._dateAdapter = _dateAdapter;
2467
+ this._dateFormats = _dateFormats;
2468
+ /** Emits when a `change` event is fired on this `<input>`. */
2469
+ this.dateChange = new EventEmitter();
2470
+ /** Emits when an `input` event is fired on this `<input>`. */
2471
+ this.dateInput = new EventEmitter();
2472
+ /** Emits when the internal state has changed */
2473
+ this.stateChanges = new Subject();
2474
+ this._onTouched = () => { };
2475
+ this._validatorOnChange = () => { };
2476
+ this._cvaOnChange = () => { };
2477
+ this._valueChangesSubscription = Subscription.EMPTY;
2478
+ this._localeSubscription = Subscription.EMPTY;
2479
+ /** The form control validator for whether the input parses. */
2480
+ this._parseValidator = () => {
2481
+ return this._lastValueValid ?
2482
+ null : { 'matDatepickerParse': { 'text': this._elementRef.nativeElement.value } };
2483
+ };
2484
+ /** The form control validator for the date filter. */
2485
+ this._filterValidator = (control) => {
2486
+ const controlValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));
2487
+ return !controlValue || this._matchesFilter(controlValue) ?
2488
+ null : { 'matDatepickerFilter': true };
2489
+ };
2490
+ /** The form control validator for the min date. */
2491
+ this._minValidator = (control) => {
2492
+ const controlValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));
2493
+ const min = this._getMinDate();
2494
+ return (!min || !controlValue ||
2495
+ this._dateAdapter.compareDate(min, controlValue) <= 0) ?
2496
+ null : { 'matDatepickerMin': { 'min': min, 'actual': controlValue } };
2497
+ };
2498
+ /** The form control validator for the max date. */
2499
+ this._maxValidator = (control) => {
2500
+ const controlValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));
2501
+ const max = this._getMaxDate();
2502
+ return (!max || !controlValue ||
2503
+ this._dateAdapter.compareDate(max, controlValue) >= 0) ?
2504
+ null : { 'matDatepickerMax': { 'max': max, 'actual': controlValue } };
2505
+ };
2506
+ /** Whether the last value set on the input was valid. */
2507
+ this._lastValueValid = false;
2508
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
2509
+ if (!this._dateAdapter) {
2510
+ throw createMissingDateImplError('DateAdapter');
2511
+ }
2512
+ if (!this._dateFormats) {
2513
+ throw createMissingDateImplError('MAT_DATE_FORMATS');
2514
+ }
2515
+ }
2516
+ // Update the displayed date when the locale changes.
2517
+ this._localeSubscription = _dateAdapter.localeChanges.subscribe(() => {
2518
+ this._assignValueProgrammatically(this.value);
2519
+ });
2520
+ }
2521
+ /** The value of the input. */
2522
+ get value() {
2523
+ return this._model ? this._getValueFromModel(this._model.selection) : this._pendingValue;
2524
+ }
2525
+ set value(value) {
2526
+ this._assignValueProgrammatically(value);
2527
+ }
2528
+ /** Whether the datepicker-input is disabled. */
2529
+ get disabled() { return !!this._disabled || this._parentDisabled(); }
2530
+ set disabled(value) {
2531
+ const newValue = coerceBooleanProperty(value);
2532
+ const element = this._elementRef.nativeElement;
2533
+ if (this._disabled !== newValue) {
2534
+ this._disabled = newValue;
2535
+ this.stateChanges.next(undefined);
2536
+ }
2537
+ // We need to null check the `blur` method, because it's undefined during SSR.
2538
+ // In Ivy static bindings are invoked earlier, before the element is attached to the DOM.
2539
+ // This can cause an error to be thrown in some browsers (IE/Edge) which assert that the
2540
+ // element has been inserted.
2541
+ if (newValue && this._isInitialized && element.blur) {
2542
+ // Normally, native input elements automatically blur if they turn disabled. This behavior
2543
+ // is problematic, because it would mean that it triggers another change detection cycle,
2544
+ // which then causes a changed after checked error if the input element was focused before.
2545
+ element.blur();
2546
+ }
2547
+ }
2548
+ /** Gets the base validator functions. */
2549
+ _getValidators() {
2550
+ return [this._parseValidator, this._minValidator, this._maxValidator, this._filterValidator];
2551
+ }
2552
+ /** Registers a date selection model with the input. */
2553
+ _registerModel(model) {
2554
+ this._model = model;
2555
+ this._valueChangesSubscription.unsubscribe();
2556
+ if (this._pendingValue) {
2557
+ this._assignValue(this._pendingValue);
2558
+ }
2559
+ this._valueChangesSubscription = this._model.selectionChanged.subscribe(event => {
2560
+ if (this._shouldHandleChangeEvent(event)) {
2561
+ const value = this._getValueFromModel(event.selection);
2562
+ this._lastValueValid = this._isValidValue(value);
2563
+ this._cvaOnChange(value);
2564
+ this._onTouched();
2565
+ this._formatValue(value);
2566
+ this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
2567
+ this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
2568
+ }
2569
+ });
2570
+ }
2571
+ ngAfterViewInit() {
2572
+ this._isInitialized = true;
2573
+ }
2574
+ ngOnChanges(changes) {
2575
+ if (dateInputsHaveChanged(changes, this._dateAdapter)) {
2576
+ this.stateChanges.next(undefined);
2577
+ }
2578
+ }
2579
+ ngOnDestroy() {
2580
+ this._valueChangesSubscription.unsubscribe();
2581
+ this._localeSubscription.unsubscribe();
2582
+ this.stateChanges.complete();
2583
+ }
2584
+ /** @docs-private */
2585
+ registerOnValidatorChange(fn) {
2586
+ this._validatorOnChange = fn;
2587
+ }
2588
+ /** @docs-private */
2589
+ validate(c) {
2590
+ return this._validator ? this._validator(c) : null;
2591
+ }
2592
+ // Implemented as part of ControlValueAccessor.
2593
+ writeValue(value) {
2594
+ this._assignValueProgrammatically(value);
2595
+ }
2596
+ // Implemented as part of ControlValueAccessor.
2597
+ registerOnChange(fn) {
2598
+ this._cvaOnChange = fn;
2599
+ }
2600
+ // Implemented as part of ControlValueAccessor.
2601
+ registerOnTouched(fn) {
2602
+ this._onTouched = fn;
2603
+ }
2604
+ // Implemented as part of ControlValueAccessor.
2605
+ setDisabledState(isDisabled) {
2606
+ this.disabled = isDisabled;
2607
+ }
2608
+ _onKeydown(event) {
2609
+ const isAltDownArrow = event.altKey && event.keyCode === DOWN_ARROW;
2610
+ if (isAltDownArrow && !this._elementRef.nativeElement.readOnly) {
2611
+ this._openPopup();
2612
+ event.preventDefault();
2613
+ }
2614
+ }
2615
+ _onInput(value) {
2616
+ const lastValueWasValid = this._lastValueValid;
2617
+ let date = this._dateAdapter.parse(value, this._dateFormats.parse.dateInput);
2618
+ this._lastValueValid = this._isValidValue(date);
2619
+ date = this._dateAdapter.getValidDateOrNull(date);
2620
+ if (!this._dateAdapter.sameDate(date, this.value)) {
2621
+ this._assignValue(date);
2622
+ this._cvaOnChange(date);
2623
+ this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
2624
+ }
2625
+ else {
2626
+ // Call the CVA change handler for invalid values
2627
+ // since this is what marks the control as dirty.
2628
+ if (value && !this.value) {
2629
+ this._cvaOnChange(date);
2630
+ }
2631
+ if (lastValueWasValid !== this._lastValueValid) {
2632
+ this._validatorOnChange();
2633
+ }
2634
+ }
2635
+ }
2636
+ _onChange() {
2637
+ this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
2638
+ }
2639
+ /** Handles blur events on the input. */
2640
+ _onBlur() {
2641
+ // Reformat the input only if we have a valid value.
2642
+ if (this.value) {
2643
+ this._formatValue(this.value);
2644
+ }
2645
+ this._onTouched();
2646
+ }
2647
+ /** Formats a value and sets it on the input element. */
2648
+ _formatValue(value) {
2649
+ this._elementRef.nativeElement.value =
2650
+ value ? this._dateAdapter.format(value, this._dateFormats.display.dateInput) : '';
2651
+ }
2652
+ /** Assigns a value to the model. */
2653
+ _assignValue(value) {
2654
+ // We may get some incoming values before the model was
2655
+ // assigned. Save the value so that we can assign it later.
2656
+ if (this._model) {
2657
+ this._assignValueToModel(value);
2658
+ this._pendingValue = null;
2659
+ }
2660
+ else {
2661
+ this._pendingValue = value;
2662
+ }
2663
+ }
2664
+ /** Whether a value is considered valid. */
2665
+ _isValidValue(value) {
2666
+ return !value || this._dateAdapter.isValid(value);
2667
+ }
2668
+ /**
2669
+ * Checks whether a parent control is disabled. This is in place so that it can be overridden
2670
+ * by inputs extending this one which can be placed inside of a group that can be disabled.
2671
+ */
2672
+ _parentDisabled() {
2673
+ return false;
2674
+ }
2675
+ /** Programmatically assigns a value to the input. */
2676
+ _assignValueProgrammatically(value) {
2677
+ value = this._dateAdapter.deserialize(value);
2678
+ this._lastValueValid = this._isValidValue(value);
2679
+ value = this._dateAdapter.getValidDateOrNull(value);
2680
+ this._assignValue(value);
2681
+ this._formatValue(value);
2682
+ }
2683
+ /** Gets whether a value matches the current date filter. */
2684
+ _matchesFilter(value) {
2685
+ const filter = this._getDateFilter();
2686
+ return !filter || filter(value);
2687
+ }
2688
+ }
2689
+ MatDatepickerInputBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerInputBase, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2690
+ MatDatepickerInputBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDatepickerInputBase, inputs: { value: "value", disabled: "disabled" }, outputs: { dateChange: "dateChange", dateInput: "dateInput" }, usesOnChanges: true, ngImport: i0 });
2691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerInputBase, decorators: [{
2692
+ type: Directive
2693
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$1.DateAdapter, decorators: [{
2694
+ type: Optional
2695
+ }] }, { type: undefined, decorators: [{
2696
+ type: Optional
2697
+ }, {
2698
+ type: Inject,
2699
+ args: [MAT_DATE_FORMATS]
2700
+ }] }]; }, propDecorators: { value: [{
2701
+ type: Input
2702
+ }], disabled: [{
2703
+ type: Input
2704
+ }], dateChange: [{
2705
+ type: Output
2706
+ }], dateInput: [{
2707
+ type: Output
2708
+ }] } });
2709
+ /**
2710
+ * Checks whether the `SimpleChanges` object from an `ngOnChanges`
2711
+ * callback has any changes, accounting for date objects.
2712
+ */
2713
+ function dateInputsHaveChanged(changes, adapter) {
2714
+ const keys = Object.keys(changes);
2715
+ for (let key of keys) {
2716
+ const { previousValue, currentValue } = changes[key];
2717
+ if (adapter.isDateInstance(previousValue) && adapter.isDateInstance(currentValue)) {
2718
+ if (!adapter.sameDate(previousValue, currentValue)) {
2719
+ return true;
2720
+ }
2721
+ }
2722
+ else {
2723
+ return true;
2724
+ }
2725
+ }
2726
+ return false;
2727
+ }
2728
+
2729
+ /**
2730
+ * @license
2731
+ * Copyright Google LLC All Rights Reserved.
2732
+ *
2733
+ * Use of this source code is governed by an MIT-style license that can be
2734
+ * found in the LICENSE file at https://angular.io/license
2735
+ */
2736
+ /** @docs-private */
2737
+ const MAT_DATEPICKER_VALUE_ACCESSOR = {
2738
+ provide: NG_VALUE_ACCESSOR,
2739
+ useExisting: forwardRef(() => MatDatepickerInput),
2740
+ multi: true
2741
+ };
2742
+ /** @docs-private */
2743
+ const MAT_DATEPICKER_VALIDATORS = {
2744
+ provide: NG_VALIDATORS,
2745
+ useExisting: forwardRef(() => MatDatepickerInput),
2746
+ multi: true
2747
+ };
2748
+ /** Directive used to connect an input to a MatDatepicker. */
2749
+ class MatDatepickerInput extends MatDatepickerInputBase {
2750
+ constructor(elementRef, dateAdapter, dateFormats, _formField) {
2751
+ super(elementRef, dateAdapter, dateFormats);
2752
+ this._formField = _formField;
2753
+ this._closedSubscription = Subscription.EMPTY;
2754
+ this._validator = Validators.compose(super._getValidators());
2755
+ }
2756
+ /** The datepicker that this input is associated with. */
2757
+ set matDatepicker(datepicker) {
2758
+ if (datepicker) {
2759
+ this._datepicker = datepicker;
2760
+ this._closedSubscription = datepicker.closedStream.subscribe(() => this._onTouched());
2761
+ this._registerModel(datepicker.registerInput(this));
2762
+ }
2763
+ }
2764
+ /** The minimum valid date. */
2765
+ get min() { return this._min; }
2766
+ set min(value) {
2767
+ const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
2768
+ if (!this._dateAdapter.sameDate(validValue, this._min)) {
2769
+ this._min = validValue;
2770
+ this._validatorOnChange();
2771
+ }
2772
+ }
2773
+ /** The maximum valid date. */
2774
+ get max() { return this._max; }
2775
+ set max(value) {
2776
+ const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
2777
+ if (!this._dateAdapter.sameDate(validValue, this._max)) {
2778
+ this._max = validValue;
2779
+ this._validatorOnChange();
2780
+ }
2781
+ }
2782
+ /** Function that can be used to filter out dates within the datepicker. */
2783
+ get dateFilter() { return this._dateFilter; }
2784
+ set dateFilter(value) {
2785
+ const wasMatchingValue = this._matchesFilter(this.value);
2786
+ this._dateFilter = value;
2787
+ if (this._matchesFilter(this.value) !== wasMatchingValue) {
2788
+ this._validatorOnChange();
2789
+ }
2790
+ }
2791
+ /**
2792
+ * Gets the element that the datepicker popup should be connected to.
2793
+ * @return The element to connect the popup to.
2794
+ */
2795
+ getConnectedOverlayOrigin() {
2796
+ return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;
2797
+ }
2798
+ /** Gets the ID of an element that should be used a description for the calendar overlay. */
2799
+ getOverlayLabelId() {
2800
+ if (this._formField) {
2801
+ return this._formField.getLabelId();
2802
+ }
2803
+ return this._elementRef.nativeElement.getAttribute('aria-labelledby');
2804
+ }
2805
+ /** Returns the palette used by the input's form field, if any. */
2806
+ getThemePalette() {
2807
+ return this._formField ? this._formField.color : undefined;
2808
+ }
2809
+ /** Gets the value at which the calendar should start. */
2810
+ getStartValue() {
2811
+ return this.value;
2812
+ }
2813
+ ngOnDestroy() {
2814
+ super.ngOnDestroy();
2815
+ this._closedSubscription.unsubscribe();
2816
+ }
2817
+ /** Opens the associated datepicker. */
2818
+ _openPopup() {
2819
+ if (this._datepicker) {
2820
+ this._datepicker.open();
2821
+ }
2822
+ }
2823
+ _getValueFromModel(modelValue) {
2824
+ return modelValue;
2825
+ }
2826
+ _assignValueToModel(value) {
2827
+ if (this._model) {
2828
+ this._model.updateSelection(value, this);
2829
+ }
2830
+ }
2831
+ /** Gets the input's minimum date. */
2832
+ _getMinDate() {
2833
+ return this._min;
2834
+ }
2835
+ /** Gets the input's maximum date. */
2836
+ _getMaxDate() {
2837
+ return this._max;
2838
+ }
2839
+ /** Gets the input's date filtering function. */
2840
+ _getDateFilter() {
2841
+ return this._dateFilter;
2842
+ }
2843
+ _shouldHandleChangeEvent(event) {
2844
+ return event.source !== this;
2845
+ }
2846
+ }
2847
+ MatDatepickerInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerInput, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }, { token: MAT_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2848
+ MatDatepickerInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDatepickerInput, selector: "input[matDatepicker]", inputs: { matDatepicker: "matDatepicker", min: "min", max: "max", dateFilter: ["matDatepickerFilter", "dateFilter"] }, host: { listeners: { "input": "_onInput($event.target.value)", "change": "_onChange()", "blur": "_onBlur()", "keydown": "_onKeydown($event)" }, properties: { "attr.aria-haspopup": "_datepicker ? \"dialog\" : null", "attr.aria-owns": "(_datepicker?.opened && _datepicker.id) || null", "attr.min": "min ? _dateAdapter.toIso8601(min) : null", "attr.max": "max ? _dateAdapter.toIso8601(max) : null", "attr.data-mat-calendar": "_datepicker ? _datepicker.id : null", "disabled": "disabled" }, classAttribute: "mat-datepicker-input" }, providers: [
2849
+ MAT_DATEPICKER_VALUE_ACCESSOR,
2850
+ MAT_DATEPICKER_VALIDATORS,
2851
+ { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MatDatepickerInput },
2852
+ ], exportAs: ["matDatepickerInput"], usesInheritance: true, ngImport: i0 });
2853
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerInput, decorators: [{
2854
+ type: Directive,
2855
+ args: [{
2856
+ selector: 'input[matDatepicker]',
2857
+ providers: [
2858
+ MAT_DATEPICKER_VALUE_ACCESSOR,
2859
+ MAT_DATEPICKER_VALIDATORS,
2860
+ { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MatDatepickerInput },
2861
+ ],
2862
+ host: {
2863
+ 'class': 'mat-datepicker-input',
2864
+ '[attr.aria-haspopup]': '_datepicker ? "dialog" : null',
2865
+ '[attr.aria-owns]': '(_datepicker?.opened && _datepicker.id) || null',
2866
+ '[attr.min]': 'min ? _dateAdapter.toIso8601(min) : null',
2867
+ '[attr.max]': 'max ? _dateAdapter.toIso8601(max) : null',
2868
+ // Used by the test harness to tie this input to its calendar. We can't depend on
2869
+ // `aria-owns` for this, because it's only defined while the calendar is open.
2870
+ '[attr.data-mat-calendar]': '_datepicker ? _datepicker.id : null',
2871
+ '[disabled]': 'disabled',
2872
+ '(input)': '_onInput($event.target.value)',
2873
+ '(change)': '_onChange()',
2874
+ '(blur)': '_onBlur()',
2875
+ '(keydown)': '_onKeydown($event)',
2876
+ },
2877
+ exportAs: 'matDatepickerInput',
2878
+ }]
2879
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$1.DateAdapter, decorators: [{
2880
+ type: Optional
2881
+ }] }, { type: undefined, decorators: [{
2882
+ type: Optional
2883
+ }, {
2884
+ type: Inject,
2885
+ args: [MAT_DATE_FORMATS]
2886
+ }] }, { type: i2$1.MatFormField, decorators: [{
2887
+ type: Optional
2888
+ }, {
2889
+ type: Inject,
2890
+ args: [MAT_FORM_FIELD]
2891
+ }] }]; }, propDecorators: { matDatepicker: [{
2892
+ type: Input
2893
+ }], min: [{
2894
+ type: Input
2895
+ }], max: [{
2896
+ type: Input
2897
+ }], dateFilter: [{
2898
+ type: Input,
2899
+ args: ['matDatepickerFilter']
2900
+ }] } });
2901
+
2902
+ /**
2903
+ * @license
2904
+ * Copyright Google LLC All Rights Reserved.
2905
+ *
2906
+ * Use of this source code is governed by an MIT-style license that can be
2907
+ * found in the LICENSE file at https://angular.io/license
2908
+ */
2909
+ /** Can be used to override the icon of a `matDatepickerToggle`. */
2910
+ class MatDatepickerToggleIcon {
2911
+ }
2912
+ MatDatepickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2913
+ MatDatepickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDatepickerToggleIcon, selector: "[matDatepickerToggleIcon]", ngImport: i0 });
2914
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerToggleIcon, decorators: [{
2915
+ type: Directive,
2916
+ args: [{
2917
+ selector: '[matDatepickerToggleIcon]'
2918
+ }]
2919
+ }] });
2920
+ class MatDatepickerToggle {
2921
+ constructor(_intl, _changeDetectorRef, defaultTabIndex) {
2922
+ this._intl = _intl;
2923
+ this._changeDetectorRef = _changeDetectorRef;
2924
+ this._stateChanges = Subscription.EMPTY;
2925
+ const parsedTabIndex = Number(defaultTabIndex);
2926
+ this.tabIndex = (parsedTabIndex || parsedTabIndex === 0) ? parsedTabIndex : null;
2927
+ }
2928
+ /** Whether the toggle button is disabled. */
2929
+ get disabled() {
2930
+ if (this._disabled === undefined && this.datepicker) {
2931
+ return this.datepicker.disabled;
2932
+ }
2933
+ return !!this._disabled;
2934
+ }
2935
+ set disabled(value) {
2936
+ this._disabled = coerceBooleanProperty(value);
2937
+ }
2938
+ ngOnChanges(changes) {
2939
+ if (changes['datepicker']) {
2940
+ this._watchStateChanges();
2941
+ }
2942
+ }
2943
+ ngOnDestroy() {
2944
+ this._stateChanges.unsubscribe();
2945
+ }
2946
+ ngAfterContentInit() {
2947
+ this._watchStateChanges();
2948
+ }
2949
+ _open(event) {
2950
+ if (this.datepicker && !this.disabled) {
2951
+ this.datepicker.open();
2952
+ event.stopPropagation();
2953
+ }
2954
+ }
2955
+ _watchStateChanges() {
2956
+ const datepickerStateChanged = this.datepicker ? this.datepicker.stateChanges : of();
2957
+ const inputStateChanged = this.datepicker && this.datepicker.datepickerInput ?
2958
+ this.datepicker.datepickerInput.stateChanges : of();
2959
+ const datepickerToggled = this.datepicker ?
2960
+ merge(this.datepicker.openedStream, this.datepicker.closedStream) :
2961
+ of();
2962
+ this._stateChanges.unsubscribe();
2963
+ this._stateChanges = merge(this._intl.changes, datepickerStateChanged, inputStateChanged, datepickerToggled).subscribe(() => this._changeDetectorRef.markForCheck());
2964
+ }
2965
+ }
2966
+ MatDatepickerToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerToggle, deps: [{ token: MatDatepickerIntl }, { token: i0.ChangeDetectorRef }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
2967
+ MatDatepickerToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: { datepicker: ["for", "datepicker"], tabIndex: "tabIndex", ariaLabel: ["aria-label", "ariaLabel"], disabled: "disabled", disableRipple: "disableRipple" }, host: { listeners: { "click": "_open($event)" }, properties: { "attr.tabindex": "null", "class.mat-datepicker-toggle-active": "datepicker && datepicker.opened", "class.mat-accent": "datepicker && datepicker.color === \"accent\"", "class.mat-warn": "datepicker && datepicker.color === \"warn\"", "attr.data-mat-calendar": "datepicker ? datepicker.id : null" }, classAttribute: "mat-datepicker-toggle" }, queries: [{ propertyName: "_customIcon", first: true, predicate: MatDatepickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "_button", first: true, predicate: ["button"], descendants: true }], exportAs: ["matDatepickerToggle"], usesOnChanges: true, ngImport: i0, template: "<button\n #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"datepicker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel || _intl.openCalendarLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\">\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", 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}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"], components: [{ type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2968
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerToggle, decorators: [{
2969
+ type: Component,
2970
+ args: [{ selector: 'mat-datepicker-toggle', host: {
2971
+ 'class': 'mat-datepicker-toggle',
2972
+ '[attr.tabindex]': 'null',
2973
+ '[class.mat-datepicker-toggle-active]': 'datepicker && datepicker.opened',
2974
+ '[class.mat-accent]': 'datepicker && datepicker.color === "accent"',
2975
+ '[class.mat-warn]': 'datepicker && datepicker.color === "warn"',
2976
+ // Used by the test harness to tie this toggle to its datepicker.
2977
+ '[attr.data-mat-calendar]': 'datepicker ? datepicker.id : null',
2978
+ // Bind the `click` on the host, rather than the inner `button`, so that we can call
2979
+ // `stopPropagation` on it without affecting the user's `click` handlers. We need to stop
2980
+ // it so that the input doesn't get focused automatically by the form field (See #21836).
2981
+ '(click)': '_open($event)',
2982
+ }, exportAs: 'matDatepickerToggle', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"datepicker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel || _intl.openCalendarLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\">\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", 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}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"] }]
2983
+ }], ctorParameters: function () { return [{ type: MatDatepickerIntl }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
2984
+ type: Attribute,
2985
+ args: ['tabindex']
2986
+ }] }]; }, propDecorators: { datepicker: [{
2987
+ type: Input,
2988
+ args: ['for']
2989
+ }], tabIndex: [{
2990
+ type: Input
2991
+ }], ariaLabel: [{
2992
+ type: Input,
2993
+ args: ['aria-label']
2994
+ }], disabled: [{
2995
+ type: Input
2996
+ }], disableRipple: [{
2997
+ type: Input
2998
+ }], _customIcon: [{
2999
+ type: ContentChild,
3000
+ args: [MatDatepickerToggleIcon]
3001
+ }], _button: [{
3002
+ type: ViewChild,
3003
+ args: ['button']
3004
+ }] } });
3005
+
3006
+ /**
3007
+ * @license
3008
+ * Copyright Google LLC All Rights Reserved.
3009
+ *
3010
+ * Use of this source code is governed by an MIT-style license that can be
3011
+ * found in the LICENSE file at https://angular.io/license
3012
+ */
3013
+ /**
3014
+ * Used to provide the date range input wrapper component
3015
+ * to the parts without circular dependencies.
3016
+ */
3017
+ const MAT_DATE_RANGE_INPUT_PARENT = new InjectionToken('MAT_DATE_RANGE_INPUT_PARENT');
3018
+ /**
3019
+ * Base class for the individual inputs that can be projected inside a `mat-date-range-input`.
3020
+ */
3021
+ class MatDateRangeInputPartBase extends MatDatepickerInputBase {
3022
+ constructor(_rangeInput, elementRef, _defaultErrorStateMatcher, _injector, _parentForm, _parentFormGroup, dateAdapter, dateFormats) {
3023
+ super(elementRef, dateAdapter, dateFormats);
3024
+ this._rangeInput = _rangeInput;
3025
+ this._defaultErrorStateMatcher = _defaultErrorStateMatcher;
3026
+ this._injector = _injector;
3027
+ this._parentForm = _parentForm;
3028
+ this._parentFormGroup = _parentFormGroup;
3029
+ }
3030
+ ngOnInit() {
3031
+ // We need the date input to provide itself as a `ControlValueAccessor` and a `Validator`, while
3032
+ // injecting its `NgControl` so that the error state is handled correctly. This introduces a
3033
+ // circular dependency, because both `ControlValueAccessor` and `Validator` depend on the input
3034
+ // itself. Usually we can work around it for the CVA, but there's no API to do it for the
3035
+ // validator. We work around it here by injecting the `NgControl` in `ngOnInit`, after
3036
+ // everything has been resolved.
3037
+ // tslint:disable-next-line:no-bitwise
3038
+ const ngControl = this._injector.get(NgControl, null, InjectFlags.Self | InjectFlags.Optional);
3039
+ if (ngControl) {
3040
+ this.ngControl = ngControl;
3041
+ }
3042
+ }
3043
+ ngDoCheck() {
3044
+ if (this.ngControl) {
3045
+ // We need to re-evaluate this on every change detection cycle, because there are some
3046
+ // error triggers that we can't subscribe to (e.g. parent form submissions). This means
3047
+ // that whatever logic is in here has to be super lean or we risk destroying the performance.
3048
+ this.updateErrorState();
3049
+ }
3050
+ }
3051
+ /** Gets whether the input is empty. */
3052
+ isEmpty() {
3053
+ return this._elementRef.nativeElement.value.length === 0;
3054
+ }
3055
+ /** Gets the placeholder of the input. */
3056
+ _getPlaceholder() {
3057
+ return this._elementRef.nativeElement.placeholder;
3058
+ }
3059
+ /** Focuses the input. */
3060
+ focus() {
3061
+ this._elementRef.nativeElement.focus();
3062
+ }
3063
+ /** Handles `input` events on the input element. */
3064
+ _onInput(value) {
3065
+ super._onInput(value);
3066
+ this._rangeInput._handleChildValueChange();
3067
+ }
3068
+ /** Opens the datepicker associated with the input. */
3069
+ _openPopup() {
3070
+ this._rangeInput._openDatepicker();
3071
+ }
3072
+ /** Gets the minimum date from the range input. */
3073
+ _getMinDate() {
3074
+ return this._rangeInput.min;
3075
+ }
3076
+ /** Gets the maximum date from the range input. */
3077
+ _getMaxDate() {
3078
+ return this._rangeInput.max;
3079
+ }
3080
+ /** Gets the date filter function from the range input. */
3081
+ _getDateFilter() {
3082
+ return this._rangeInput.dateFilter;
3083
+ }
3084
+ _parentDisabled() {
3085
+ return this._rangeInput._groupDisabled;
3086
+ }
3087
+ _shouldHandleChangeEvent({ source }) {
3088
+ return source !== this._rangeInput._startInput && source !== this._rangeInput._endInput;
3089
+ }
3090
+ _assignValueProgrammatically(value) {
3091
+ super._assignValueProgrammatically(value);
3092
+ const opposite = (this === this._rangeInput._startInput ? this._rangeInput._endInput :
3093
+ this._rangeInput._startInput);
3094
+ opposite?._validatorOnChange();
3095
+ }
3096
+ }
3097
+ MatDateRangeInputPartBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDateRangeInputPartBase, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$2.NgForm, optional: true }, { token: i2$2.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
3098
+ MatDateRangeInputPartBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDateRangeInputPartBase, usesInheritance: true, ngImport: i0 });
3099
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDateRangeInputPartBase, decorators: [{
3100
+ type: Directive
3101
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
3102
+ type: Inject,
3103
+ args: [MAT_DATE_RANGE_INPUT_PARENT]
3104
+ }] }, { type: i0.ElementRef }, { type: i1$1.ErrorStateMatcher }, { type: i0.Injector }, { type: i2$2.NgForm, decorators: [{
3105
+ type: Optional
3106
+ }] }, { type: i2$2.FormGroupDirective, decorators: [{
3107
+ type: Optional
3108
+ }] }, { type: i1$1.DateAdapter, decorators: [{
3109
+ type: Optional
3110
+ }] }, { type: undefined, decorators: [{
3111
+ type: Optional
3112
+ }, {
3113
+ type: Inject,
3114
+ args: [MAT_DATE_FORMATS]
3115
+ }] }]; } });
3116
+ const _MatDateRangeInputBase = mixinErrorState(MatDateRangeInputPartBase);
3117
+ /** Input for entering the start date in a `mat-date-range-input`. */
3118
+ class MatStartDate extends _MatDateRangeInputBase {
3119
+ constructor(rangeInput, elementRef, defaultErrorStateMatcher, injector, parentForm, parentFormGroup, dateAdapter, dateFormats) {
3120
+ // TODO(crisbeto): this constructor shouldn't be necessary, but ViewEngine doesn't seem to
3121
+ // handle DI correctly when it is inherited from `MatDateRangeInputPartBase`. We can drop this
3122
+ // constructor once ViewEngine is removed.
3123
+ super(rangeInput, elementRef, defaultErrorStateMatcher, injector, parentForm, parentFormGroup, dateAdapter, dateFormats);
3124
+ /** Validator that checks that the start date isn't after the end date. */
3125
+ this._startValidator = (control) => {
3126
+ const start = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));
3127
+ const end = this._model ? this._model.selection.end : null;
3128
+ return (!start || !end ||
3129
+ this._dateAdapter.compareDate(start, end) <= 0) ?
3130
+ null : { 'matStartDateInvalid': { 'end': end, 'actual': start } };
3131
+ };
3132
+ this._validator = Validators.compose([...super._getValidators(), this._startValidator]);
3133
+ }
3134
+ ngOnInit() {
3135
+ // Normally this happens automatically, but it seems to break if not added explicitly when all
3136
+ // of the criteria below are met:
3137
+ // 1) The class extends a TS mixin.
3138
+ // 2) The application is running in ViewEngine.
3139
+ // 3) The application is being transpiled through tsickle.
3140
+ // This can be removed once google3 is completely migrated to Ivy.
3141
+ super.ngOnInit();
3142
+ }
3143
+ ngDoCheck() {
3144
+ // Normally this happens automatically, but it seems to break if not added explicitly when all
3145
+ // of the criteria below are met:
3146
+ // 1) The class extends a TS mixin.
3147
+ // 2) The application is running in ViewEngine.
3148
+ // 3) The application is being transpiled through tsickle.
3149
+ // This can be removed once google3 is completely migrated to Ivy.
3150
+ super.ngDoCheck();
3151
+ }
3152
+ _getValueFromModel(modelValue) {
3153
+ return modelValue.start;
3154
+ }
3155
+ _shouldHandleChangeEvent(change) {
3156
+ if (!super._shouldHandleChangeEvent(change)) {
3157
+ return false;
3158
+ }
3159
+ else {
3160
+ return !change.oldValue?.start ? !!change.selection.start :
3161
+ !change.selection.start ||
3162
+ !!this._dateAdapter.compareDate(change.oldValue.start, change.selection.start);
3163
+ }
3164
+ }
3165
+ _assignValueToModel(value) {
3166
+ if (this._model) {
3167
+ const range = new DateRange(value, this._model.selection.end);
3168
+ this._model.updateSelection(range, this);
3169
+ }
3170
+ }
3171
+ _formatValue(value) {
3172
+ super._formatValue(value);
3173
+ // Any time the input value is reformatted we need to tell the parent.
3174
+ this._rangeInput._handleChildValueChange();
3175
+ }
3176
+ /** Gets the value that should be used when mirroring the input's size. */
3177
+ getMirrorValue() {
3178
+ const element = this._elementRef.nativeElement;
3179
+ const value = element.value;
3180
+ return value.length > 0 ? value : element.placeholder;
3181
+ }
3182
+ }
3183
+ MatStartDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatStartDate, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$2.NgForm, optional: true }, { token: i2$2.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
3184
+ MatStartDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatStartDate, selector: "input[matStartDate]", inputs: { errorStateMatcher: "errorStateMatcher" }, outputs: { dateChange: "dateChange", dateInput: "dateInput" }, host: { attributes: { "type": "text" }, listeners: { "input": "_onInput($event.target.value)", "change": "_onChange()", "keydown": "_onKeydown($event)", "blur": "_onBlur()" }, properties: { "disabled": "disabled", "attr.id": "_rangeInput.id", "attr.aria-haspopup": "_rangeInput.rangePicker ? \"dialog\" : null", "attr.aria-owns": "(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null", "attr.min": "_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null", "attr.max": "_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null" }, classAttribute: "mat-start-date mat-date-range-input-inner" }, providers: [
3185
+ { provide: NG_VALUE_ACCESSOR, useExisting: MatStartDate, multi: true },
3186
+ { provide: NG_VALIDATORS, useExisting: MatStartDate, multi: true }
3187
+ ], usesInheritance: true, ngImport: i0 });
3188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatStartDate, decorators: [{
3189
+ type: Directive,
3190
+ args: [{
3191
+ selector: 'input[matStartDate]',
3192
+ host: {
3193
+ 'class': 'mat-start-date mat-date-range-input-inner',
3194
+ '[disabled]': 'disabled',
3195
+ '(input)': '_onInput($event.target.value)',
3196
+ '(change)': '_onChange()',
3197
+ '(keydown)': '_onKeydown($event)',
3198
+ '[attr.id]': '_rangeInput.id',
3199
+ '[attr.aria-haspopup]': '_rangeInput.rangePicker ? "dialog" : null',
3200
+ '[attr.aria-owns]': '(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null',
3201
+ '[attr.min]': '_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null',
3202
+ '[attr.max]': '_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null',
3203
+ '(blur)': '_onBlur()',
3204
+ 'type': 'text',
3205
+ },
3206
+ providers: [
3207
+ { provide: NG_VALUE_ACCESSOR, useExisting: MatStartDate, multi: true },
3208
+ { provide: NG_VALIDATORS, useExisting: MatStartDate, multi: true }
3209
+ ],
3210
+ // These need to be specified explicitly, because some tooling doesn't
3211
+ // seem to pick them up from the base class. See #20932.
3212
+ outputs: ['dateChange', 'dateInput'],
3213
+ inputs: ['errorStateMatcher']
3214
+ }]
3215
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
3216
+ type: Inject,
3217
+ args: [MAT_DATE_RANGE_INPUT_PARENT]
3218
+ }] }, { type: i0.ElementRef }, { type: i1$1.ErrorStateMatcher }, { type: i0.Injector }, { type: i2$2.NgForm, decorators: [{
3219
+ type: Optional
3220
+ }] }, { type: i2$2.FormGroupDirective, decorators: [{
3221
+ type: Optional
3222
+ }] }, { type: i1$1.DateAdapter, decorators: [{
3223
+ type: Optional
3224
+ }] }, { type: undefined, decorators: [{
3225
+ type: Optional
3226
+ }, {
3227
+ type: Inject,
3228
+ args: [MAT_DATE_FORMATS]
3229
+ }] }]; } });
3230
+ /** Input for entering the end date in a `mat-date-range-input`. */
3231
+ class MatEndDate extends _MatDateRangeInputBase {
3232
+ constructor(rangeInput, elementRef, defaultErrorStateMatcher, injector, parentForm, parentFormGroup, dateAdapter, dateFormats) {
3233
+ // TODO(crisbeto): this constructor shouldn't be necessary, but ViewEngine doesn't seem to
3234
+ // handle DI correctly when it is inherited from `MatDateRangeInputPartBase`. We can drop this
3235
+ // constructor once ViewEngine is removed.
3236
+ super(rangeInput, elementRef, defaultErrorStateMatcher, injector, parentForm, parentFormGroup, dateAdapter, dateFormats);
3237
+ /** Validator that checks that the end date isn't before the start date. */
3238
+ this._endValidator = (control) => {
3239
+ const end = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));
3240
+ const start = this._model ? this._model.selection.start : null;
3241
+ return (!end || !start ||
3242
+ this._dateAdapter.compareDate(end, start) >= 0) ?
3243
+ null : { 'matEndDateInvalid': { 'start': start, 'actual': end } };
3244
+ };
3245
+ this._validator = Validators.compose([...super._getValidators(), this._endValidator]);
3246
+ }
3247
+ ngOnInit() {
3248
+ // Normally this happens automatically, but it seems to break if not added explicitly when all
3249
+ // of the criteria below are met:
3250
+ // 1) The class extends a TS mixin.
3251
+ // 2) The application is running in ViewEngine.
3252
+ // 3) The application is being transpiled through tsickle.
3253
+ // This can be removed once google3 is completely migrated to Ivy.
3254
+ super.ngOnInit();
3255
+ }
3256
+ ngDoCheck() {
3257
+ // Normally this happens automatically, but it seems to break if not added explicitly when all
3258
+ // of the criteria below are met:
3259
+ // 1) The class extends a TS mixin.
3260
+ // 2) The application is running in ViewEngine.
3261
+ // 3) The application is being transpiled through tsickle.
3262
+ // This can be removed once google3 is completely migrated to Ivy.
3263
+ super.ngDoCheck();
3264
+ }
3265
+ _getValueFromModel(modelValue) {
3266
+ return modelValue.end;
3267
+ }
3268
+ _shouldHandleChangeEvent(change) {
3269
+ if (!super._shouldHandleChangeEvent(change)) {
3270
+ return false;
3271
+ }
3272
+ else {
3273
+ return !change.oldValue?.end ? !!change.selection.end :
3274
+ !change.selection.end ||
3275
+ !!this._dateAdapter.compareDate(change.oldValue.end, change.selection.end);
3276
+ }
3277
+ }
3278
+ _assignValueToModel(value) {
3279
+ if (this._model) {
3280
+ const range = new DateRange(this._model.selection.start, value);
3281
+ this._model.updateSelection(range, this);
3282
+ }
3283
+ }
3284
+ _onKeydown(event) {
3285
+ // If the user is pressing backspace on an empty end input, move focus back to the start.
3286
+ if (event.keyCode === BACKSPACE && !this._elementRef.nativeElement.value) {
3287
+ this._rangeInput._startInput.focus();
3288
+ }
3289
+ super._onKeydown(event);
3290
+ }
3291
+ }
3292
+ MatEndDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatEndDate, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$2.NgForm, optional: true }, { token: i2$2.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
3293
+ MatEndDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatEndDate, selector: "input[matEndDate]", inputs: { errorStateMatcher: "errorStateMatcher" }, outputs: { dateChange: "dateChange", dateInput: "dateInput" }, host: { attributes: { "type": "text" }, listeners: { "input": "_onInput($event.target.value)", "change": "_onChange()", "keydown": "_onKeydown($event)", "blur": "_onBlur()" }, properties: { "disabled": "disabled", "attr.aria-haspopup": "_rangeInput.rangePicker ? \"dialog\" : null", "attr.aria-owns": "(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null", "attr.min": "_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null", "attr.max": "_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null" }, classAttribute: "mat-end-date mat-date-range-input-inner" }, providers: [
3294
+ { provide: NG_VALUE_ACCESSOR, useExisting: MatEndDate, multi: true },
3295
+ { provide: NG_VALIDATORS, useExisting: MatEndDate, multi: true }
3296
+ ], usesInheritance: true, ngImport: i0 });
3297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatEndDate, decorators: [{
3298
+ type: Directive,
3299
+ args: [{
3300
+ selector: 'input[matEndDate]',
3301
+ host: {
3302
+ 'class': 'mat-end-date mat-date-range-input-inner',
3303
+ '[disabled]': 'disabled',
3304
+ '(input)': '_onInput($event.target.value)',
3305
+ '(change)': '_onChange()',
3306
+ '(keydown)': '_onKeydown($event)',
3307
+ '[attr.aria-haspopup]': '_rangeInput.rangePicker ? "dialog" : null',
3308
+ '[attr.aria-owns]': '(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null',
3309
+ '[attr.min]': '_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null',
3310
+ '[attr.max]': '_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null',
3311
+ '(blur)': '_onBlur()',
3312
+ 'type': 'text',
3313
+ },
3314
+ providers: [
3315
+ { provide: NG_VALUE_ACCESSOR, useExisting: MatEndDate, multi: true },
3316
+ { provide: NG_VALIDATORS, useExisting: MatEndDate, multi: true }
3317
+ ],
3318
+ // These need to be specified explicitly, because some tooling doesn't
3319
+ // seem to pick them up from the base class. See #20932.
3320
+ outputs: ['dateChange', 'dateInput'],
3321
+ inputs: ['errorStateMatcher']
3322
+ }]
3323
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
3324
+ type: Inject,
3325
+ args: [MAT_DATE_RANGE_INPUT_PARENT]
3326
+ }] }, { type: i0.ElementRef }, { type: i1$1.ErrorStateMatcher }, { type: i0.Injector }, { type: i2$2.NgForm, decorators: [{
3327
+ type: Optional
3328
+ }] }, { type: i2$2.FormGroupDirective, decorators: [{
3329
+ type: Optional
3330
+ }] }, { type: i1$1.DateAdapter, decorators: [{
3331
+ type: Optional
3332
+ }] }, { type: undefined, decorators: [{
3333
+ type: Optional
3334
+ }, {
3335
+ type: Inject,
3336
+ args: [MAT_DATE_FORMATS]
3337
+ }] }]; } });
3338
+
3339
+ /**
3340
+ * @license
3341
+ * Copyright Google LLC All Rights Reserved.
3342
+ *
3343
+ * Use of this source code is governed by an MIT-style license that can be
3344
+ * found in the LICENSE file at https://angular.io/license
3345
+ */
3346
+ let nextUniqueId = 0;
3347
+ class MatDateRangeInput {
3348
+ constructor(_changeDetectorRef, _elementRef, control, _dateAdapter, _formField) {
3349
+ this._changeDetectorRef = _changeDetectorRef;
3350
+ this._elementRef = _elementRef;
3351
+ this._dateAdapter = _dateAdapter;
3352
+ this._formField = _formField;
3353
+ this._closedSubscription = Subscription.EMPTY;
3354
+ /** Unique ID for the input. */
3355
+ this.id = `mat-date-range-input-${nextUniqueId++}`;
3356
+ /** Whether the control is focused. */
3357
+ this.focused = false;
3358
+ /** Name of the form control. */
3359
+ this.controlType = 'mat-date-range-input';
3360
+ this._groupDisabled = false;
3361
+ /** Value for the `aria-describedby` attribute of the inputs. */
3362
+ this._ariaDescribedBy = null;
3363
+ /** Separator text to be shown between the inputs. */
3364
+ this.separator = '–';
3365
+ /** Start of the comparison range that should be shown in the calendar. */
3366
+ this.comparisonStart = null;
3367
+ /** End of the comparison range that should be shown in the calendar. */
3368
+ this.comparisonEnd = null;
3369
+ /** Emits when the input's state has changed. */
3370
+ this.stateChanges = new Subject();
3371
+ if (!_dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
3372
+ throw createMissingDateImplError('DateAdapter');
3373
+ }
3374
+ // The datepicker module can be used both with MDC and non-MDC form fields. We have
3375
+ // to conditionally add the MDC input class so that the range picker looks correctly.
3376
+ if (_formField?._elementRef.nativeElement.classList.contains('mat-mdc-form-field')) {
3377
+ const classList = _elementRef.nativeElement.classList;
3378
+ classList.add('mat-mdc-input-element');
3379
+ classList.add('mat-mdc-form-field-input-control');
3380
+ }
3381
+ // TODO(crisbeto): remove `as any` after #18206 lands.
3382
+ this.ngControl = control;
3383
+ }
3384
+ /** Current value of the range input. */
3385
+ get value() {
3386
+ return this._model ? this._model.selection : null;
3387
+ }
3388
+ /** Whether the control's label should float. */
3389
+ get shouldLabelFloat() {
3390
+ return this.focused || !this.empty;
3391
+ }
3392
+ /**
3393
+ * Implemented as a part of `MatFormFieldControl`.
3394
+ * Set the placeholder attribute on `matStartDate` and `matEndDate`.
3395
+ * @docs-private
3396
+ */
3397
+ get placeholder() {
3398
+ const start = this._startInput?._getPlaceholder() || '';
3399
+ const end = this._endInput?._getPlaceholder() || '';
3400
+ return (start || end) ? `${start} ${this.separator} ${end}` : '';
3401
+ }
3402
+ /** The range picker that this input is associated with. */
3403
+ get rangePicker() { return this._rangePicker; }
3404
+ set rangePicker(rangePicker) {
3405
+ if (rangePicker) {
3406
+ this._model = rangePicker.registerInput(this);
3407
+ this._rangePicker = rangePicker;
3408
+ this._closedSubscription.unsubscribe();
3409
+ this._closedSubscription = rangePicker.closedStream.subscribe(() => {
3410
+ this._startInput?._onTouched();
3411
+ this._endInput?._onTouched();
3412
+ });
3413
+ this._registerModel(this._model);
3414
+ }
3415
+ }
3416
+ /** Whether the input is required. */
3417
+ get required() { return !!this._required; }
3418
+ set required(value) {
3419
+ this._required = coerceBooleanProperty(value);
3420
+ }
3421
+ /** Function that can be used to filter out dates within the date range picker. */
3422
+ get dateFilter() { return this._dateFilter; }
3423
+ set dateFilter(value) {
3424
+ const start = this._startInput;
3425
+ const end = this._endInput;
3426
+ const wasMatchingStart = start && start._matchesFilter(start.value);
3427
+ const wasMatchingEnd = end && end._matchesFilter(start.value);
3428
+ this._dateFilter = value;
3429
+ if (start && start._matchesFilter(start.value) !== wasMatchingStart) {
3430
+ start._validatorOnChange();
3431
+ }
3432
+ if (end && end._matchesFilter(end.value) !== wasMatchingEnd) {
3433
+ end._validatorOnChange();
3434
+ }
3435
+ }
3436
+ /** The minimum valid date. */
3437
+ get min() { return this._min; }
3438
+ set min(value) {
3439
+ const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
3440
+ if (!this._dateAdapter.sameDate(validValue, this._min)) {
3441
+ this._min = validValue;
3442
+ this._revalidate();
3443
+ }
3444
+ }
3445
+ /** The maximum valid date. */
3446
+ get max() { return this._max; }
3447
+ set max(value) {
3448
+ const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
3449
+ if (!this._dateAdapter.sameDate(validValue, this._max)) {
3450
+ this._max = validValue;
3451
+ this._revalidate();
3452
+ }
3453
+ }
3454
+ /** Whether the input is disabled. */
3455
+ get disabled() {
3456
+ return (this._startInput && this._endInput) ?
3457
+ (this._startInput.disabled && this._endInput.disabled) :
3458
+ this._groupDisabled;
3459
+ }
3460
+ set disabled(value) {
3461
+ const newValue = coerceBooleanProperty(value);
3462
+ if (newValue !== this._groupDisabled) {
3463
+ this._groupDisabled = newValue;
3464
+ this.stateChanges.next(undefined);
3465
+ }
3466
+ }
3467
+ /** Whether the input is in an error state. */
3468
+ get errorState() {
3469
+ if (this._startInput && this._endInput) {
3470
+ return this._startInput.errorState || this._endInput.errorState;
3471
+ }
3472
+ return false;
3473
+ }
3474
+ /** Whether the datepicker input is empty. */
3475
+ get empty() {
3476
+ const startEmpty = this._startInput ? this._startInput.isEmpty() : false;
3477
+ const endEmpty = this._endInput ? this._endInput.isEmpty() : false;
3478
+ return startEmpty && endEmpty;
3479
+ }
3480
+ /**
3481
+ * Implemented as a part of `MatFormFieldControl`.
3482
+ * @docs-private
3483
+ */
3484
+ setDescribedByIds(ids) {
3485
+ this._ariaDescribedBy = ids.length ? ids.join(' ') : null;
3486
+ }
3487
+ /**
3488
+ * Implemented as a part of `MatFormFieldControl`.
3489
+ * @docs-private
3490
+ */
3491
+ onContainerClick() {
3492
+ if (!this.focused && !this.disabled) {
3493
+ if (!this._model || !this._model.selection.start) {
3494
+ this._startInput.focus();
3495
+ }
3496
+ else {
3497
+ this._endInput.focus();
3498
+ }
3499
+ }
3500
+ }
3501
+ ngAfterContentInit() {
3502
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
3503
+ if (!this._startInput) {
3504
+ throw Error('mat-date-range-input must contain a matStartDate input');
3505
+ }
3506
+ if (!this._endInput) {
3507
+ throw Error('mat-date-range-input must contain a matEndDate input');
3508
+ }
3509
+ }
3510
+ if (this._model) {
3511
+ this._registerModel(this._model);
3512
+ }
3513
+ // We don't need to unsubscribe from this, because we
3514
+ // know that the input streams will be completed on destroy.
3515
+ merge(this._startInput.stateChanges, this._endInput.stateChanges).subscribe(() => {
3516
+ this.stateChanges.next(undefined);
3517
+ });
3518
+ }
3519
+ ngOnChanges(changes) {
3520
+ if (dateInputsHaveChanged(changes, this._dateAdapter)) {
3521
+ this.stateChanges.next(undefined);
3522
+ }
3523
+ }
3524
+ ngOnDestroy() {
3525
+ this._closedSubscription.unsubscribe();
3526
+ this.stateChanges.complete();
3527
+ }
3528
+ /** Gets the date at which the calendar should start. */
3529
+ getStartValue() {
3530
+ return this.value ? this.value.start : null;
3531
+ }
3532
+ /** Gets the input's theme palette. */
3533
+ getThemePalette() {
3534
+ return this._formField ? this._formField.color : undefined;
3535
+ }
3536
+ /** Gets the element to which the calendar overlay should be attached. */
3537
+ getConnectedOverlayOrigin() {
3538
+ return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;
3539
+ }
3540
+ /** Gets the ID of an element that should be used a description for the calendar overlay. */
3541
+ getOverlayLabelId() {
3542
+ return this._formField ? this._formField.getLabelId() : null;
3543
+ }
3544
+ /** Gets the value that is used to mirror the state input. */
3545
+ _getInputMirrorValue() {
3546
+ return this._startInput ? this._startInput.getMirrorValue() : '';
3547
+ }
3548
+ /** Whether the input placeholders should be hidden. */
3549
+ _shouldHidePlaceholders() {
3550
+ return this._startInput ? !this._startInput.isEmpty() : false;
3551
+ }
3552
+ /** Handles the value in one of the child inputs changing. */
3553
+ _handleChildValueChange() {
3554
+ this.stateChanges.next(undefined);
3555
+ this._changeDetectorRef.markForCheck();
3556
+ }
3557
+ /** Opens the date range picker associated with the input. */
3558
+ _openDatepicker() {
3559
+ if (this._rangePicker) {
3560
+ this._rangePicker.open();
3561
+ }
3562
+ }
3563
+ /** Whether the separate text should be hidden. */
3564
+ _shouldHideSeparator() {
3565
+ return (!this._formField || (this._formField.getLabelId() &&
3566
+ !this._formField._shouldLabelFloat())) && this.empty;
3567
+ }
3568
+ /** Gets the value for the `aria-labelledby` attribute of the inputs. */
3569
+ _getAriaLabelledby() {
3570
+ const formField = this._formField;
3571
+ return formField && formField._hasFloatingLabel() ? formField._labelId : null;
3572
+ }
3573
+ /** Updates the focused state of the range input. */
3574
+ _updateFocus(origin) {
3575
+ this.focused = origin !== null;
3576
+ this.stateChanges.next();
3577
+ }
3578
+ /** Re-runs the validators on the start/end inputs. */
3579
+ _revalidate() {
3580
+ if (this._startInput) {
3581
+ this._startInput._validatorOnChange();
3582
+ }
3583
+ if (this._endInput) {
3584
+ this._endInput._validatorOnChange();
3585
+ }
3586
+ }
3587
+ /** Registers the current date selection model with the start/end inputs. */
3588
+ _registerModel(model) {
3589
+ if (this._startInput) {
3590
+ this._startInput._registerModel(model);
3591
+ }
3592
+ if (this._endInput) {
3593
+ this._endInput._registerModel(model);
3594
+ }
3595
+ }
3596
+ }
3597
+ MatDateRangeInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDateRangeInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2$2.ControlContainer, optional: true, self: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Component });
3598
+ MatDateRangeInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDateRangeInput, selector: "mat-date-range-input", inputs: { rangePicker: "rangePicker", required: "required", dateFilter: "dateFilter", min: "min", max: "max", disabled: "disabled", separator: "separator", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd" }, host: { attributes: { "role": "group" }, properties: { "class.mat-date-range-input-hide-placeholders": "_shouldHidePlaceholders()", "class.mat-date-range-input-required": "required", "attr.id": "null", "attr.aria-labelledby": "_getAriaLabelledby()", "attr.aria-describedby": "_ariaDescribedBy", "attr.data-mat-calendar": "rangePicker ? rangePicker.id : null" }, classAttribute: "mat-date-range-input" }, providers: [
3599
+ { provide: MatFormFieldControl, useExisting: MatDateRangeInput },
3600
+ { provide: MAT_DATE_RANGE_INPUT_PARENT, useExisting: MatDateRangeInput },
3601
+ ], queries: [{ propertyName: "_startInput", first: true, predicate: MatStartDate, descendants: true }, { propertyName: "_endInput", first: true, predicate: MatEndDate, descendants: true }], exportAs: ["matDateRangeInput"], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"mat-date-range-input-container\"\n cdkMonitorSubtreeFocus\n (cdkFocusChange)=\"_updateFocus($event)\">\n <div class=\"mat-date-range-input-start-wrapper\">\n <ng-content select=\"input[matStartDate]\"></ng-content>\n <span\n class=\"mat-date-range-input-mirror\"\n aria-hidden=\"true\">{{_getInputMirrorValue()}}</span>\n </div>\n\n <span\n class=\"mat-date-range-input-separator\"\n [class.mat-date-range-input-separator-hidden]=\"_shouldHideSeparator()\">{{separator}}</span>\n\n <div class=\"mat-date-range-input-end-wrapper\">\n <ng-content select=\"input[matEndDate]\"></ng-content>\n </div>\n</div>\n\n", styles: [".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"], directives: [{ type: i4.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3602
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDateRangeInput, decorators: [{
3603
+ type: Component,
3604
+ args: [{ selector: 'mat-date-range-input', exportAs: 'matDateRangeInput', host: {
3605
+ 'class': 'mat-date-range-input',
3606
+ '[class.mat-date-range-input-hide-placeholders]': '_shouldHidePlaceholders()',
3607
+ '[class.mat-date-range-input-required]': 'required',
3608
+ '[attr.id]': 'null',
3609
+ 'role': 'group',
3610
+ '[attr.aria-labelledby]': '_getAriaLabelledby()',
3611
+ '[attr.aria-describedby]': '_ariaDescribedBy',
3612
+ // Used by the test harness to tie this input to its calendar. We can't depend on
3613
+ // `aria-owns` for this, because it's only defined while the calendar is open.
3614
+ '[attr.data-mat-calendar]': 'rangePicker ? rangePicker.id : null',
3615
+ }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
3616
+ { provide: MatFormFieldControl, useExisting: MatDateRangeInput },
3617
+ { provide: MAT_DATE_RANGE_INPUT_PARENT, useExisting: MatDateRangeInput },
3618
+ ], template: "<div\n class=\"mat-date-range-input-container\"\n cdkMonitorSubtreeFocus\n (cdkFocusChange)=\"_updateFocus($event)\">\n <div class=\"mat-date-range-input-start-wrapper\">\n <ng-content select=\"input[matStartDate]\"></ng-content>\n <span\n class=\"mat-date-range-input-mirror\"\n aria-hidden=\"true\">{{_getInputMirrorValue()}}</span>\n </div>\n\n <span\n class=\"mat-date-range-input-separator\"\n [class.mat-date-range-input-separator-hidden]=\"_shouldHideSeparator()\">{{separator}}</span>\n\n <div class=\"mat-date-range-input-end-wrapper\">\n <ng-content select=\"input[matEndDate]\"></ng-content>\n </div>\n</div>\n\n", styles: [".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"] }]
3619
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i2$2.ControlContainer, decorators: [{
3620
+ type: Optional
3621
+ }, {
3622
+ type: Self
3623
+ }] }, { type: i1$1.DateAdapter, decorators: [{
3624
+ type: Optional
3625
+ }] }, { type: i2$1.MatFormField, decorators: [{
3626
+ type: Optional
3627
+ }, {
3628
+ type: Inject,
3629
+ args: [MAT_FORM_FIELD]
3630
+ }] }]; }, propDecorators: { rangePicker: [{
3631
+ type: Input
3632
+ }], required: [{
3633
+ type: Input
3634
+ }], dateFilter: [{
3635
+ type: Input
3636
+ }], min: [{
3637
+ type: Input
3638
+ }], max: [{
3639
+ type: Input
3640
+ }], disabled: [{
3641
+ type: Input
3642
+ }], separator: [{
3643
+ type: Input
3644
+ }], comparisonStart: [{
3645
+ type: Input
3646
+ }], comparisonEnd: [{
3647
+ type: Input
3648
+ }], _startInput: [{
3649
+ type: ContentChild,
3650
+ args: [MatStartDate]
3651
+ }], _endInput: [{
3652
+ type: ContentChild,
3653
+ args: [MatEndDate]
3654
+ }] } });
3655
+
3656
+ /**
3657
+ * @license
3658
+ * Copyright Google LLC All Rights Reserved.
3659
+ *
3660
+ * Use of this source code is governed by an MIT-style license that can be
3661
+ * found in the LICENSE file at https://angular.io/license
3662
+ */
3663
+ // TODO(mmalerba): We use a component instead of a directive here so the user can use implicit
3664
+ // template reference variables (e.g. #d vs #d="matDateRangePicker"). We can change this to a
3665
+ // directive if angular adds support for `exportAs: '$implicit'` on directives.
3666
+ /** Component responsible for managing the date range picker popup/dialog. */
3667
+ class MatDateRangePicker extends MatDatepickerBase {
3668
+ _forwardContentValues(instance) {
3669
+ super._forwardContentValues(instance);
3670
+ const input = this.datepickerInput;
3671
+ if (input) {
3672
+ instance.comparisonStart = input.comparisonStart;
3673
+ instance.comparisonEnd = input.comparisonEnd;
3674
+ }
3675
+ }
3676
+ }
3677
+ MatDateRangePicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDateRangePicker, deps: null, target: i0.ɵɵFactoryTarget.Component });
3678
+ MatDateRangePicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDateRangePicker, selector: "mat-date-range-picker", providers: [
3679
+ MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER,
3680
+ MAT_CALENDAR_RANGE_STRATEGY_PROVIDER,
3681
+ { provide: MatDatepickerBase, useExisting: MatDateRangePicker },
3682
+ ], exportAs: ["matDateRangePicker"], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3683
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDateRangePicker, decorators: [{
3684
+ type: Component,
3685
+ args: [{
3686
+ selector: 'mat-date-range-picker',
3687
+ template: '',
3688
+ exportAs: 'matDateRangePicker',
3689
+ changeDetection: ChangeDetectionStrategy.OnPush,
3690
+ encapsulation: ViewEncapsulation.None,
3691
+ providers: [
3692
+ MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER,
3693
+ MAT_CALENDAR_RANGE_STRATEGY_PROVIDER,
3694
+ { provide: MatDatepickerBase, useExisting: MatDateRangePicker },
3695
+ ]
3696
+ }]
3697
+ }] });
3698
+
3699
+ /**
3700
+ * @license
3701
+ * Copyright Google LLC All Rights Reserved.
3702
+ *
3703
+ * Use of this source code is governed by an MIT-style license that can be
3704
+ * found in the LICENSE file at https://angular.io/license
3705
+ */
3706
+ /** Button that will close the datepicker and assign the current selection to the data model. */
3707
+ class MatDatepickerApply {
3708
+ constructor(_datepicker) {
3709
+ this._datepicker = _datepicker;
3710
+ }
3711
+ _applySelection() {
3712
+ this._datepicker._applyPendingSelection();
3713
+ this._datepicker.close();
3714
+ }
3715
+ }
3716
+ MatDatepickerApply.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerApply, deps: [{ token: MatDatepickerBase }], target: i0.ɵɵFactoryTarget.Directive });
3717
+ MatDatepickerApply.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDatepickerApply, selector: "[matDatepickerApply], [matDateRangePickerApply]", host: { listeners: { "click": "_applySelection()" } }, ngImport: i0 });
3718
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerApply, decorators: [{
3719
+ type: Directive,
3720
+ args: [{
3721
+ selector: '[matDatepickerApply], [matDateRangePickerApply]',
3722
+ host: { '(click)': '_applySelection()' }
3723
+ }]
3724
+ }], ctorParameters: function () { return [{ type: MatDatepickerBase }]; } });
3725
+ /** Button that will close the datepicker and discard the current selection. */
3726
+ class MatDatepickerCancel {
3727
+ constructor(_datepicker) {
3728
+ this._datepicker = _datepicker;
3729
+ }
3730
+ }
3731
+ MatDatepickerCancel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerCancel, deps: [{ token: MatDatepickerBase }], target: i0.ɵɵFactoryTarget.Directive });
3732
+ MatDatepickerCancel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDatepickerCancel, selector: "[matDatepickerCancel], [matDateRangePickerCancel]", host: { listeners: { "click": "_datepicker.close()" } }, ngImport: i0 });
3733
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerCancel, decorators: [{
3734
+ type: Directive,
3735
+ args: [{
3736
+ selector: '[matDatepickerCancel], [matDateRangePickerCancel]',
3737
+ host: { '(click)': '_datepicker.close()' }
3738
+ }]
3739
+ }], ctorParameters: function () { return [{ type: MatDatepickerBase }]; } });
3740
+ /**
3741
+ * Container that can be used to project a row of action buttons
3742
+ * to the bottom of a datepicker or date range picker.
3743
+ */
3744
+ class MatDatepickerActions {
3745
+ constructor(_datepicker, _viewContainerRef) {
3746
+ this._datepicker = _datepicker;
3747
+ this._viewContainerRef = _viewContainerRef;
3748
+ }
3749
+ ngAfterViewInit() {
3750
+ this._portal = new TemplatePortal(this._template, this._viewContainerRef);
3751
+ this._datepicker.registerActions(this._portal);
3752
+ }
3753
+ ngOnDestroy() {
3754
+ this._datepicker.removeActions(this._portal);
3755
+ // Needs to be null checked since we initialize it in `ngAfterViewInit`.
3756
+ if (this._portal && this._portal.isAttached) {
3757
+ this._portal?.detach();
3758
+ }
3759
+ }
3760
+ }
3761
+ MatDatepickerActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerActions, deps: [{ token: MatDatepickerBase }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
3762
+ MatDatepickerActions.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDatepickerActions, selector: "mat-datepicker-actions, mat-date-range-picker-actions", viewQueries: [{ propertyName: "_template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `
3763
+ <ng-template>
3764
+ <div class="mat-datepicker-actions">
3765
+ <ng-content></ng-content>
3766
+ </div>
3767
+ </ng-template>
3768
+ `, isInline: true, styles: [".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3769
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerActions, decorators: [{
3770
+ type: Component,
3771
+ args: [{ selector: 'mat-datepicker-actions, mat-date-range-picker-actions', template: `
3772
+ <ng-template>
3773
+ <div class="mat-datepicker-actions">
3774
+ <ng-content></ng-content>
3775
+ </div>
3776
+ </ng-template>
3777
+ `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"] }]
3778
+ }], ctorParameters: function () { return [{ type: MatDatepickerBase }, { type: i0.ViewContainerRef }]; }, propDecorators: { _template: [{
3779
+ type: ViewChild,
3780
+ args: [TemplateRef]
3781
+ }] } });
3782
+
3783
+ /**
3784
+ * @license
3785
+ * Copyright Google LLC All Rights Reserved.
3786
+ *
3787
+ * Use of this source code is governed by an MIT-style license that can be
3788
+ * found in the LICENSE file at https://angular.io/license
3789
+ */
3790
+ class MatDatepickerModule {
3791
+ }
3792
+ MatDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3793
+ MatDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerModule, declarations: [MatCalendar,
3794
+ MatCalendarBody,
3795
+ MatDatepicker,
3796
+ MatDatepickerContent,
3797
+ MatDatepickerInput,
3798
+ MatDatepickerToggle,
3799
+ MatDatepickerToggleIcon,
3800
+ MatMonthView,
3801
+ MatYearView,
3802
+ MatMultiYearView,
3803
+ MatCalendarHeader,
3804
+ MatDateRangeInput,
3805
+ MatStartDate,
3806
+ MatEndDate,
3807
+ MatDateRangePicker,
3808
+ MatDatepickerActions,
3809
+ MatDatepickerCancel,
3810
+ MatDatepickerApply], imports: [CommonModule,
3811
+ MatButtonModule,
3812
+ OverlayModule,
3813
+ A11yModule,
3814
+ PortalModule,
3815
+ MatCommonModule], exports: [CdkScrollableModule,
3816
+ MatCalendar,
3817
+ MatCalendarBody,
3818
+ MatDatepicker,
3819
+ MatDatepickerContent,
3820
+ MatDatepickerInput,
3821
+ MatDatepickerToggle,
3822
+ MatDatepickerToggleIcon,
3823
+ MatMonthView,
3824
+ MatYearView,
3825
+ MatMultiYearView,
3826
+ MatCalendarHeader,
3827
+ MatDateRangeInput,
3828
+ MatStartDate,
3829
+ MatEndDate,
3830
+ MatDateRangePicker,
3831
+ MatDatepickerActions,
3832
+ MatDatepickerCancel,
3833
+ MatDatepickerApply] });
3834
+ MatDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerModule, providers: [
3835
+ MatDatepickerIntl,
3836
+ MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER
3837
+ ], imports: [[
3838
+ CommonModule,
3839
+ MatButtonModule,
3840
+ OverlayModule,
3841
+ A11yModule,
3842
+ PortalModule,
3843
+ MatCommonModule,
3844
+ ], CdkScrollableModule] });
3845
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerModule, decorators: [{
3846
+ type: NgModule,
3847
+ args: [{
3848
+ imports: [
3849
+ CommonModule,
3850
+ MatButtonModule,
3851
+ OverlayModule,
3852
+ A11yModule,
3853
+ PortalModule,
3854
+ MatCommonModule,
3855
+ ],
3856
+ exports: [
3857
+ CdkScrollableModule,
3858
+ MatCalendar,
3859
+ MatCalendarBody,
3860
+ MatDatepicker,
3861
+ MatDatepickerContent,
3862
+ MatDatepickerInput,
3863
+ MatDatepickerToggle,
3864
+ MatDatepickerToggleIcon,
3865
+ MatMonthView,
3866
+ MatYearView,
3867
+ MatMultiYearView,
3868
+ MatCalendarHeader,
3869
+ MatDateRangeInput,
3870
+ MatStartDate,
3871
+ MatEndDate,
3872
+ MatDateRangePicker,
3873
+ MatDatepickerActions,
3874
+ MatDatepickerCancel,
3875
+ MatDatepickerApply
3876
+ ],
3877
+ declarations: [
3878
+ MatCalendar,
3879
+ MatCalendarBody,
3880
+ MatDatepicker,
3881
+ MatDatepickerContent,
3882
+ MatDatepickerInput,
3883
+ MatDatepickerToggle,
3884
+ MatDatepickerToggleIcon,
3885
+ MatMonthView,
3886
+ MatYearView,
3887
+ MatMultiYearView,
3888
+ MatCalendarHeader,
3889
+ MatDateRangeInput,
3890
+ MatStartDate,
3891
+ MatEndDate,
3892
+ MatDateRangePicker,
3893
+ MatDatepickerActions,
3894
+ MatDatepickerCancel,
3895
+ MatDatepickerApply
3896
+ ],
3897
+ providers: [
3898
+ MatDatepickerIntl,
3899
+ MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER
3900
+ ],
3901
+ entryComponents: [
3902
+ MatDatepickerContent,
3903
+ MatCalendarHeader,
3904
+ ]
3905
+ }]
3906
+ }] });
3907
+
3908
+ /**
3909
+ * @license
3910
+ * Copyright Google LLC All Rights Reserved.
3911
+ *
3912
+ * Use of this source code is governed by an MIT-style license that can be
3913
+ * found in the LICENSE file at https://angular.io/license
3914
+ */
3915
+
3916
+ /**
3917
+ * Generated bundle index. Do not edit.
3918
+ */
3919
+
3920
+ export { DateRange, DefaultMatCalendarRangeStrategy, MAT_DATEPICKER_SCROLL_STRATEGY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MAT_DATEPICKER_VALIDATORS, MAT_DATEPICKER_VALUE_ACCESSOR, MAT_DATE_RANGE_SELECTION_STRATEGY, MAT_RANGE_DATE_SELECTION_MODEL_FACTORY, MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER, MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY, MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER, MatCalendar, MatCalendarBody, MatCalendarCell, MatCalendarHeader, MatDateRangeInput, MatDateRangePicker, MatDateSelectionModel, MatDatepicker, MatDatepickerActions, MatDatepickerApply, MatDatepickerCancel, MatDatepickerContent, MatDatepickerInput, MatDatepickerInputEvent, MatDatepickerIntl, MatDatepickerModule, MatDatepickerToggle, MatDatepickerToggleIcon, MatEndDate, MatMonthView, MatMultiYearView, MatRangeDateSelectionModel, MatSingleDateSelectionModel, MatStartDate, MatYearView, matDatepickerAnimations, yearsPerPage, yearsPerRow };
3921
+ //# sourceMappingURL=datepicker.mjs.map