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