@angular/material 11.0.3 → 11.1.1

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 (594) hide show
  1. package/LICENSE +1 -1
  2. package/_theming.scss +392 -351
  3. package/autocomplete/_autocomplete-theme.scss +4 -5
  4. package/autocomplete/autocomplete.d.ts +7 -1
  5. package/autocomplete/index.metadata.json +1 -1
  6. package/autocomplete/testing/autocomplete-harness.d.ts +29 -15
  7. package/badge/_badge-theme.scss +2 -3
  8. package/bottom-sheet/_bottom-sheet-theme.scss +4 -5
  9. package/bundles/material-autocomplete-testing.umd.js +54 -36
  10. package/bundles/material-autocomplete-testing.umd.js.map +1 -1
  11. package/bundles/material-autocomplete-testing.umd.min.js +2 -2
  12. package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
  13. package/bundles/material-autocomplete.umd.js +32 -10
  14. package/bundles/material-autocomplete.umd.js.map +1 -1
  15. package/bundles/material-autocomplete.umd.min.js +3 -3
  16. package/bundles/material-autocomplete.umd.min.js.map +1 -1
  17. package/bundles/material-badge-testing.umd.js +9 -1
  18. package/bundles/material-badge-testing.umd.js.map +1 -1
  19. package/bundles/material-badge-testing.umd.min.js +1 -1
  20. package/bundles/material-badge-testing.umd.min.js.map +1 -1
  21. package/bundles/material-badge.umd.js +9 -1
  22. package/bundles/material-badge.umd.js.map +1 -1
  23. package/bundles/material-badge.umd.min.js +3 -3
  24. package/bundles/material-badge.umd.min.js.map +1 -1
  25. package/bundles/material-bottom-sheet-testing.umd.js +9 -1
  26. package/bundles/material-bottom-sheet-testing.umd.js.map +1 -1
  27. package/bundles/material-bottom-sheet-testing.umd.min.js +1 -1
  28. package/bundles/material-bottom-sheet-testing.umd.min.js.map +1 -1
  29. package/bundles/material-bottom-sheet.umd.js +9 -1
  30. package/bundles/material-bottom-sheet.umd.js.map +1 -1
  31. package/bundles/material-bottom-sheet.umd.min.js +1 -1
  32. package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
  33. package/bundles/material-button-testing.umd.js +9 -1
  34. package/bundles/material-button-testing.umd.js.map +1 -1
  35. package/bundles/material-button-testing.umd.min.js +1 -1
  36. package/bundles/material-button-testing.umd.min.js.map +1 -1
  37. package/bundles/material-button-toggle-testing.umd.js +9 -1
  38. package/bundles/material-button-toggle-testing.umd.js.map +1 -1
  39. package/bundles/material-button-toggle-testing.umd.min.js +1 -1
  40. package/bundles/material-button-toggle-testing.umd.min.js.map +1 -1
  41. package/bundles/material-button-toggle.umd.js +9 -1
  42. package/bundles/material-button-toggle.umd.js.map +1 -1
  43. package/bundles/material-button-toggle.umd.min.js +1 -1
  44. package/bundles/material-button-toggle.umd.min.js.map +1 -1
  45. package/bundles/material-button.umd.js +17 -5
  46. package/bundles/material-button.umd.js.map +1 -1
  47. package/bundles/material-button.umd.min.js +1 -1
  48. package/bundles/material-button.umd.min.js.map +1 -1
  49. package/bundles/material-card-testing.umd.js +9 -1
  50. package/bundles/material-card-testing.umd.js.map +1 -1
  51. package/bundles/material-card-testing.umd.min.js +1 -1
  52. package/bundles/material-card-testing.umd.min.js.map +1 -1
  53. package/bundles/material-checkbox-testing.umd.js +73 -64
  54. package/bundles/material-checkbox-testing.umd.js.map +1 -1
  55. package/bundles/material-checkbox-testing.umd.min.js +2 -2
  56. package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
  57. package/bundles/material-checkbox.umd.js +15 -3
  58. package/bundles/material-checkbox.umd.js.map +1 -1
  59. package/bundles/material-checkbox.umd.min.js +2 -2
  60. package/bundles/material-checkbox.umd.min.js.map +1 -1
  61. package/bundles/material-chips-testing.umd.js +189 -29
  62. package/bundles/material-chips-testing.umd.js.map +1 -1
  63. package/bundles/material-chips-testing.umd.min.js +2 -2
  64. package/bundles/material-chips-testing.umd.min.js.map +1 -1
  65. package/bundles/material-chips.umd.js +9 -1
  66. package/bundles/material-chips.umd.js.map +1 -1
  67. package/bundles/material-chips.umd.min.js +4 -4
  68. package/bundles/material-chips.umd.min.js.map +1 -1
  69. package/bundles/material-core-testing.umd.js +14 -3
  70. package/bundles/material-core-testing.umd.js.map +1 -1
  71. package/bundles/material-core-testing.umd.min.js +1 -1
  72. package/bundles/material-core-testing.umd.min.js.map +1 -1
  73. package/bundles/material-core.umd.js +55 -14
  74. package/bundles/material-core.umd.js.map +1 -1
  75. package/bundles/material-core.umd.min.js +16 -8
  76. package/bundles/material-core.umd.min.js.map +1 -1
  77. package/bundles/material-datepicker-testing.umd.js +24 -12
  78. package/bundles/material-datepicker-testing.umd.js.map +1 -1
  79. package/bundles/material-datepicker-testing.umd.min.js +1 -1
  80. package/bundles/material-datepicker-testing.umd.min.js.map +1 -1
  81. package/bundles/material-datepicker.umd.js +256 -84
  82. package/bundles/material-datepicker.umd.js.map +1 -1
  83. package/bundles/material-datepicker.umd.min.js +20 -12
  84. package/bundles/material-datepicker.umd.min.js.map +1 -1
  85. package/bundles/material-dialog-testing.umd.js +9 -1
  86. package/bundles/material-dialog-testing.umd.js.map +1 -1
  87. package/bundles/material-dialog-testing.umd.min.js +1 -1
  88. package/bundles/material-dialog-testing.umd.min.js.map +1 -1
  89. package/bundles/material-dialog.umd.js +10 -2
  90. package/bundles/material-dialog.umd.js.map +1 -1
  91. package/bundles/material-dialog.umd.min.js +8 -8
  92. package/bundles/material-dialog.umd.min.js.map +1 -1
  93. package/bundles/material-divider-testing.umd.js +9 -1
  94. package/bundles/material-divider-testing.umd.js.map +1 -1
  95. package/bundles/material-divider-testing.umd.min.js +2 -2
  96. package/bundles/material-divider-testing.umd.min.js.map +1 -1
  97. package/bundles/material-expansion-testing.umd.js +9 -1
  98. package/bundles/material-expansion-testing.umd.js.map +1 -1
  99. package/bundles/material-expansion-testing.umd.min.js +1 -1
  100. package/bundles/material-expansion-testing.umd.min.js.map +1 -1
  101. package/bundles/material-expansion.umd.js +15 -3
  102. package/bundles/material-expansion.umd.js.map +1 -1
  103. package/bundles/material-expansion.umd.min.js +3 -3
  104. package/bundles/material-expansion.umd.min.js.map +1 -1
  105. package/bundles/material-form-field-testing-control.umd.js +9 -1
  106. package/bundles/material-form-field-testing-control.umd.js.map +1 -1
  107. package/bundles/material-form-field-testing-control.umd.min.js +1 -1
  108. package/bundles/material-form-field-testing-control.umd.min.js.map +1 -1
  109. package/bundles/material-form-field-testing.umd.js +41 -30
  110. package/bundles/material-form-field-testing.umd.js.map +1 -1
  111. package/bundles/material-form-field-testing.umd.min.js +3 -3
  112. package/bundles/material-form-field-testing.umd.min.js.map +1 -1
  113. package/bundles/material-form-field.umd.js +10 -2
  114. package/bundles/material-form-field.umd.js.map +1 -1
  115. package/bundles/material-form-field.umd.min.js +1 -1
  116. package/bundles/material-form-field.umd.min.js.map +1 -1
  117. package/bundles/material-grid-list-testing.umd.js +15 -5
  118. package/bundles/material-grid-list-testing.umd.js.map +1 -1
  119. package/bundles/material-grid-list-testing.umd.min.js +2 -2
  120. package/bundles/material-grid-list-testing.umd.min.js.map +1 -1
  121. package/bundles/material-grid-list.umd.js +9 -1
  122. package/bundles/material-grid-list.umd.js.map +1 -1
  123. package/bundles/material-grid-list.umd.min.js +1 -1
  124. package/bundles/material-grid-list.umd.min.js.map +1 -1
  125. package/bundles/material-icon-testing.umd.js +12 -2
  126. package/bundles/material-icon-testing.umd.js.map +1 -1
  127. package/bundles/material-icon-testing.umd.min.js +2 -2
  128. package/bundles/material-icon-testing.umd.min.js.map +1 -1
  129. package/bundles/material-icon.umd.js +46 -2
  130. package/bundles/material-icon.umd.js.map +1 -1
  131. package/bundles/material-icon.umd.min.js +3 -3
  132. package/bundles/material-icon.umd.min.js.map +1 -1
  133. package/bundles/material-input-testing.umd.js +19 -8
  134. package/bundles/material-input-testing.umd.js.map +1 -1
  135. package/bundles/material-input-testing.umd.min.js +1 -1
  136. package/bundles/material-input-testing.umd.min.js.map +1 -1
  137. package/bundles/material-input.umd.js +9 -1
  138. package/bundles/material-input.umd.js.map +1 -1
  139. package/bundles/material-input.umd.min.js +1 -1
  140. package/bundles/material-input.umd.min.js.map +1 -1
  141. package/bundles/material-list-testing.umd.js +62 -57
  142. package/bundles/material-list-testing.umd.js.map +1 -1
  143. package/bundles/material-list-testing.umd.min.js +1 -1
  144. package/bundles/material-list-testing.umd.min.js.map +1 -1
  145. package/bundles/material-list.umd.js +9 -1
  146. package/bundles/material-list.umd.js.map +1 -1
  147. package/bundles/material-list.umd.min.js +1 -1
  148. package/bundles/material-list.umd.min.js.map +1 -1
  149. package/bundles/material-menu-testing.umd.js +94 -67
  150. package/bundles/material-menu-testing.umd.js.map +1 -1
  151. package/bundles/material-menu-testing.umd.min.js +2 -2
  152. package/bundles/material-menu-testing.umd.min.js.map +1 -1
  153. package/bundles/material-menu.umd.js +18 -6
  154. package/bundles/material-menu.umd.js.map +1 -1
  155. package/bundles/material-menu.umd.min.js +3 -3
  156. package/bundles/material-menu.umd.min.js.map +1 -1
  157. package/bundles/material-paginator-testing.umd.js +50 -34
  158. package/bundles/material-paginator-testing.umd.js.map +1 -1
  159. package/bundles/material-paginator-testing.umd.min.js +2 -2
  160. package/bundles/material-paginator-testing.umd.min.js.map +1 -1
  161. package/bundles/material-paginator.umd.js +9 -1
  162. package/bundles/material-paginator.umd.js.map +1 -1
  163. package/bundles/material-paginator.umd.min.js +1 -1
  164. package/bundles/material-paginator.umd.min.js.map +1 -1
  165. package/bundles/material-progress-bar-testing.umd.js +9 -1
  166. package/bundles/material-progress-bar-testing.umd.js.map +1 -1
  167. package/bundles/material-progress-bar-testing.umd.min.js +1 -1
  168. package/bundles/material-progress-bar-testing.umd.min.js.map +1 -1
  169. package/bundles/material-progress-bar.umd.js +9 -1
  170. package/bundles/material-progress-bar.umd.js.map +1 -1
  171. package/bundles/material-progress-bar.umd.min.js +1 -1
  172. package/bundles/material-progress-bar.umd.min.js.map +1 -1
  173. package/bundles/material-progress-spinner-testing.umd.js +9 -1
  174. package/bundles/material-progress-spinner-testing.umd.js.map +1 -1
  175. package/bundles/material-progress-spinner-testing.umd.min.js +1 -1
  176. package/bundles/material-progress-spinner-testing.umd.min.js.map +1 -1
  177. package/bundles/material-progress-spinner.umd.js +9 -1
  178. package/bundles/material-progress-spinner.umd.js.map +1 -1
  179. package/bundles/material-progress-spinner.umd.min.js +2 -2
  180. package/bundles/material-progress-spinner.umd.min.js.map +1 -1
  181. package/bundles/material-radio-testing.umd.js +88 -63
  182. package/bundles/material-radio-testing.umd.js.map +1 -1
  183. package/bundles/material-radio-testing.umd.min.js +2 -2
  184. package/bundles/material-radio-testing.umd.min.js.map +1 -1
  185. package/bundles/material-radio.umd.js +18 -5
  186. package/bundles/material-radio.umd.js.map +1 -1
  187. package/bundles/material-radio.umd.min.js +1 -1
  188. package/bundles/material-radio.umd.min.js.map +1 -1
  189. package/bundles/material-select-testing.umd.js +73 -51
  190. package/bundles/material-select-testing.umd.js.map +1 -1
  191. package/bundles/material-select-testing.umd.min.js +2 -2
  192. package/bundles/material-select-testing.umd.min.js.map +1 -1
  193. package/bundles/material-select.umd.js +9 -1
  194. package/bundles/material-select.umd.js.map +1 -1
  195. package/bundles/material-select.umd.min.js +4 -4
  196. package/bundles/material-select.umd.min.js.map +1 -1
  197. package/bundles/material-sidenav-testing.umd.js +175 -28
  198. package/bundles/material-sidenav-testing.umd.js.map +1 -1
  199. package/bundles/material-sidenav-testing.umd.min.js +2 -2
  200. package/bundles/material-sidenav-testing.umd.min.js.map +1 -1
  201. package/bundles/material-sidenav.umd.js +9 -1
  202. package/bundles/material-sidenav.umd.js.map +1 -1
  203. package/bundles/material-sidenav.umd.min.js +1 -1
  204. package/bundles/material-sidenav.umd.min.js.map +1 -1
  205. package/bundles/material-slide-toggle-testing.umd.js +9 -1
  206. package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
  207. package/bundles/material-slide-toggle-testing.umd.min.js +1 -1
  208. package/bundles/material-slide-toggle-testing.umd.min.js.map +1 -1
  209. package/bundles/material-slide-toggle.umd.js +16 -3
  210. package/bundles/material-slide-toggle.umd.js.map +1 -1
  211. package/bundles/material-slide-toggle.umd.min.js +3 -3
  212. package/bundles/material-slide-toggle.umd.min.js.map +1 -1
  213. package/bundles/material-slider-testing.umd.js +15 -4
  214. package/bundles/material-slider-testing.umd.js.map +1 -1
  215. package/bundles/material-slider-testing.umd.min.js +2 -2
  216. package/bundles/material-slider-testing.umd.min.js.map +1 -1
  217. package/bundles/material-slider.umd.js +9 -1
  218. package/bundles/material-slider.umd.js.map +1 -1
  219. package/bundles/material-slider.umd.min.js +1 -1
  220. package/bundles/material-slider.umd.min.js.map +1 -1
  221. package/bundles/material-snack-bar-testing.umd.js +29 -12
  222. package/bundles/material-snack-bar-testing.umd.js.map +1 -1
  223. package/bundles/material-snack-bar-testing.umd.min.js +2 -2
  224. package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
  225. package/bundles/material-snack-bar.umd.js +20 -2
  226. package/bundles/material-snack-bar.umd.js.map +1 -1
  227. package/bundles/material-snack-bar.umd.min.js +1 -1
  228. package/bundles/material-snack-bar.umd.min.js.map +1 -1
  229. package/bundles/material-sort-testing.umd.js +9 -1
  230. package/bundles/material-sort-testing.umd.js.map +1 -1
  231. package/bundles/material-sort-testing.umd.min.js +1 -1
  232. package/bundles/material-sort-testing.umd.min.js.map +1 -1
  233. package/bundles/material-sort.umd.js +19 -5
  234. package/bundles/material-sort.umd.js.map +1 -1
  235. package/bundles/material-sort.umd.min.js +2 -2
  236. package/bundles/material-sort.umd.min.js.map +1 -1
  237. package/bundles/material-stepper-testing.umd.js +9 -1
  238. package/bundles/material-stepper-testing.umd.js.map +1 -1
  239. package/bundles/material-stepper-testing.umd.min.js +2 -2
  240. package/bundles/material-stepper-testing.umd.min.js.map +1 -1
  241. package/bundles/material-stepper.umd.js +16 -3
  242. package/bundles/material-stepper.umd.js.map +1 -1
  243. package/bundles/material-stepper.umd.min.js +3 -3
  244. package/bundles/material-stepper.umd.min.js.map +1 -1
  245. package/bundles/material-table-testing.umd.js +26 -17
  246. package/bundles/material-table-testing.umd.js.map +1 -1
  247. package/bundles/material-table-testing.umd.min.js +2 -2
  248. package/bundles/material-table-testing.umd.min.js.map +1 -1
  249. package/bundles/material-table.umd.js +66 -39
  250. package/bundles/material-table.umd.js.map +1 -1
  251. package/bundles/material-table.umd.min.js +3 -3
  252. package/bundles/material-table.umd.min.js.map +1 -1
  253. package/bundles/material-tabs-testing.umd.js +11 -3
  254. package/bundles/material-tabs-testing.umd.js.map +1 -1
  255. package/bundles/material-tabs-testing.umd.min.js +1 -1
  256. package/bundles/material-tabs-testing.umd.min.js.map +1 -1
  257. package/bundles/material-tabs.umd.js +10 -2
  258. package/bundles/material-tabs.umd.js.map +1 -1
  259. package/bundles/material-tabs.umd.min.js +5 -5
  260. package/bundles/material-tabs.umd.min.js.map +1 -1
  261. package/bundles/material-toolbar-testing.umd.js +11 -2
  262. package/bundles/material-toolbar-testing.umd.js.map +1 -1
  263. package/bundles/material-toolbar-testing.umd.min.js +2 -2
  264. package/bundles/material-toolbar-testing.umd.min.js.map +1 -1
  265. package/bundles/material-toolbar.umd.js +9 -1
  266. package/bundles/material-toolbar.umd.js.map +1 -1
  267. package/bundles/material-toolbar.umd.min.js +2 -2
  268. package/bundles/material-toolbar.umd.min.js.map +1 -1
  269. package/bundles/material-tooltip-testing.umd.js +9 -1
  270. package/bundles/material-tooltip-testing.umd.js.map +1 -1
  271. package/bundles/material-tooltip-testing.umd.min.js +1 -1
  272. package/bundles/material-tooltip-testing.umd.min.js.map +1 -1
  273. package/bundles/material-tooltip.umd.js +35 -7
  274. package/bundles/material-tooltip.umd.js.map +1 -1
  275. package/bundles/material-tooltip.umd.min.js +3 -3
  276. package/bundles/material-tooltip.umd.min.js.map +1 -1
  277. package/bundles/material-tree-testing.umd.js +10 -2
  278. package/bundles/material-tree-testing.umd.js.map +1 -1
  279. package/bundles/material-tree-testing.umd.min.js +1 -1
  280. package/bundles/material-tree-testing.umd.min.js.map +1 -1
  281. package/bundles/material-tree.umd.js +12 -3
  282. package/bundles/material-tree.umd.js.map +1 -1
  283. package/bundles/material-tree.umd.min.js +3 -3
  284. package/bundles/material-tree.umd.min.js.map +1 -1
  285. package/button/_button-base.scss +2 -2
  286. package/button/_button-theme.scss +10 -11
  287. package/button/index.metadata.json +1 -1
  288. package/button-toggle/_button-toggle-theme.scss +9 -10
  289. package/card/_card-theme.scss +5 -6
  290. package/checkbox/_checkbox-theme.scss +2 -3
  291. package/checkbox/testing/checkbox-harness.d.ts +21 -16
  292. package/chips/_chips-theme.scss +4 -5
  293. package/chips/testing/chip-harness-filters.d.ts +11 -3
  294. package/chips/testing/chip-harness.d.ts +5 -5
  295. package/chips/testing/chip-list-harness.d.ts +15 -12
  296. package/chips/testing/chip-listbox-harness.d.ts +34 -0
  297. package/chips/testing/chip-option-harness.d.ts +29 -0
  298. package/chips/testing/public-api.d.ts +3 -1
  299. package/core/_core.scss +6 -6
  300. package/core/color/_all-color.scss +2 -1
  301. package/core/datetime/date-formats.d.ts +1 -0
  302. package/core/density/private/_all-density.scss +34 -0
  303. package/core/density/{_index.scss → private/_compatibility.scss} +11 -8
  304. package/core/focus-indicators/_focus-indicators.scss +3 -4
  305. package/core/index.metadata.json +1 -1
  306. package/core/option/_optgroup-theme.scss +2 -3
  307. package/core/option/_option-theme.scss +2 -3
  308. package/core/option/index.d.ts +1 -0
  309. package/core/option/optgroup.d.ts +4 -0
  310. package/core/option/option-parent.d.ts +22 -0
  311. package/core/option/option.d.ts +2 -14
  312. package/core/ripple/_ripple.scss +2 -3
  313. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +2 -3
  314. package/core/style/_elevation.scss +2 -18
  315. package/core/style/_form-common.scss +2 -2
  316. package/core/style/_private.scss +40 -0
  317. package/core/style/_vendor-prefixes.scss +3 -3
  318. package/core/testing/option-harness.d.ts +2 -0
  319. package/core/theming/_all-theme.scss +3 -2
  320. package/core/theming/_theming.scss +148 -38
  321. package/core/typography/_all-typography.scss +1 -1
  322. package/core/typography/_typography.scss +39 -9
  323. package/datepicker/_datepicker-theme.scss +15 -16
  324. package/datepicker/date-range-input-parts.d.ts +2 -3
  325. package/datepicker/date-range-input.d.ts +5 -4
  326. package/datepicker/date-selection-model.d.ts +10 -0
  327. package/datepicker/datepicker-actions.d.ts +33 -0
  328. package/datepicker/datepicker-base.d.ts +52 -9
  329. package/datepicker/datepicker-input-base.d.ts +5 -10
  330. package/datepicker/datepicker-input.d.ts +9 -8
  331. package/datepicker/datepicker-toggle.d.ts +4 -2
  332. package/datepicker/index.metadata.json +1 -1
  333. package/datepicker/public-api.d.ts +1 -0
  334. package/datepicker/year-view.d.ts +1 -1
  335. package/dialog/_dialog-theme.scss +4 -5
  336. package/divider/_divider-theme.scss +2 -3
  337. package/esm2015/autocomplete/autocomplete-trigger.js +11 -3
  338. package/esm2015/autocomplete/autocomplete.js +11 -4
  339. package/esm2015/autocomplete/testing/autocomplete-harness.js +27 -19
  340. package/esm2015/button/button.js +10 -5
  341. package/esm2015/checkbox/checkbox.js +8 -3
  342. package/esm2015/checkbox/testing/checkbox-harness.js +31 -36
  343. package/esm2015/chips/testing/chip-harness-filters.js +1 -1
  344. package/esm2015/chips/testing/chip-harness.js +6 -6
  345. package/esm2015/chips/testing/chip-list-harness.js +19 -16
  346. package/esm2015/chips/testing/chip-listbox-harness.js +49 -0
  347. package/esm2015/chips/testing/chip-option-harness.js +54 -0
  348. package/esm2015/chips/testing/public-api.js +4 -2
  349. package/esm2015/core/common-behaviors/common-module.js +1 -1
  350. package/esm2015/core/datetime/date-formats.js +1 -1
  351. package/esm2015/core/option/index.js +2 -1
  352. package/esm2015/core/option/optgroup.js +32 -7
  353. package/esm2015/core/option/option-parent.js +13 -0
  354. package/esm2015/core/option/option.js +5 -8
  355. package/esm2015/core/testing/option-harness.js +7 -2
  356. package/esm2015/core/version.js +1 -1
  357. package/esm2015/datepicker/calendar-body.js +1 -1
  358. package/esm2015/datepicker/date-range-input-parts.js +14 -16
  359. package/esm2015/datepicker/date-range-input.js +11 -4
  360. package/esm2015/datepicker/date-range-picker.js +3 -2
  361. package/esm2015/datepicker/date-selection-model.js +24 -1
  362. package/esm2015/datepicker/datepicker-actions.js +89 -0
  363. package/esm2015/datepicker/datepicker-base.js +69 -26
  364. package/esm2015/datepicker/datepicker-input-base.js +15 -27
  365. package/esm2015/datepicker/datepicker-input.js +11 -5
  366. package/esm2015/datepicker/datepicker-module.js +8 -1
  367. package/esm2015/datepicker/datepicker-toggle.js +7 -10
  368. package/esm2015/datepicker/datepicker.js +5 -2
  369. package/esm2015/datepicker/month-view.js +4 -3
  370. package/esm2015/datepicker/public-api.js +2 -1
  371. package/esm2015/datepicker/testing/date-range-input-harness.js +4 -4
  372. package/esm2015/datepicker/testing/datepicker-input-harness.js +3 -3
  373. package/esm2015/datepicker/testing/datepicker-trigger-harness-base.js +3 -3
  374. package/esm2015/datepicker/year-view.js +1 -1
  375. package/esm2015/dialog/dialog-ref.js +2 -2
  376. package/esm2015/expansion/expansion-panel-header.js +8 -3
  377. package/esm2015/expansion/expansion-panel.js +1 -1
  378. package/esm2015/form-field/form-field.js +2 -2
  379. package/esm2015/form-field/testing/form-field-harness.js +14 -9
  380. package/esm2015/grid-list/testing/grid-list-harness.js +6 -5
  381. package/esm2015/icon/icon-registry.js +39 -3
  382. package/esm2015/icon/testing/fake-icon-registry.js +4 -2
  383. package/esm2015/input/testing/input-harness.js +3 -3
  384. package/esm2015/input/testing/native-select-harness.js +7 -5
  385. package/esm2015/list/selection-list.js +1 -1
  386. package/esm2015/list/testing/list-harness-base.js +5 -4
  387. package/esm2015/list/testing/list-item-harness-base.js +5 -4
  388. package/esm2015/list/testing/selection-list-harness.js +8 -5
  389. package/esm2015/menu/menu-item.js +3 -3
  390. package/esm2015/menu/menu-trigger.js +10 -4
  391. package/esm2015/menu/menu.js +1 -1
  392. package/esm2015/menu/testing/menu-harness.js +44 -32
  393. package/esm2015/paginator/testing/paginator-harness.js +27 -25
  394. package/esm2015/radio/radio.js +10 -5
  395. package/esm2015/radio/testing/radio-harness.js +40 -29
  396. package/esm2015/select/testing/select-harness.js +36 -28
  397. package/esm2015/sidenav/testing/drawer-container-harness.js +41 -0
  398. package/esm2015/sidenav/testing/drawer-content-harness.js +23 -0
  399. package/esm2015/sidenav/testing/drawer-harness-filters.js +1 -1
  400. package/esm2015/sidenav/testing/drawer-harness.js +19 -13
  401. package/esm2015/sidenav/testing/public-api.js +6 -2
  402. package/esm2015/sidenav/testing/sidenav-container-harness.js +41 -0
  403. package/esm2015/sidenav/testing/sidenav-content-harness.js +23 -0
  404. package/esm2015/sidenav/testing/sidenav-harness.js +4 -4
  405. package/esm2015/slide-toggle/slide-toggle.js +8 -3
  406. package/esm2015/slider/testing/slider-harness.js +5 -5
  407. package/esm2015/snack-bar/snack-bar-container.js +12 -2
  408. package/esm2015/snack-bar/testing/snack-bar-harness.js +19 -12
  409. package/esm2015/sort/sort-header.js +11 -5
  410. package/esm2015/stepper/step-header.js +8 -3
  411. package/esm2015/table/table-data-source.js +34 -21
  412. package/esm2015/table/table.js +1 -1
  413. package/esm2015/table/testing/cell-harness.js +3 -3
  414. package/esm2015/table/testing/row-harness.js +5 -5
  415. package/esm2015/table/testing/table-harness.js +8 -8
  416. package/esm2015/tabs/tab-body.js +3 -3
  417. package/esm2015/tabs/testing/tab-group-harness.js +3 -3
  418. package/esm2015/tabs/testing/tab-nav-bar-harness.js +3 -3
  419. package/esm2015/toolbar/testing/toolbar-harness.js +3 -3
  420. package/esm2015/tooltip/tooltip.js +28 -7
  421. package/esm2015/tree/node.js +4 -3
  422. package/esm2015/tree/padding.js +1 -1
  423. package/esm2015/tree/testing/tree-harness.js +2 -2
  424. package/esm2015/tree/toggle.js +1 -1
  425. package/esm2015/tree/tree.js +1 -1
  426. package/expansion/_expansion-theme.scss +10 -11
  427. package/expansion/index.metadata.json +1 -1
  428. package/fesm2015/autocomplete/testing.js +26 -18
  429. package/fesm2015/autocomplete/testing.js.map +1 -1
  430. package/fesm2015/autocomplete.js +20 -6
  431. package/fesm2015/autocomplete.js.map +1 -1
  432. package/fesm2015/button.js +9 -4
  433. package/fesm2015/button.js.map +1 -1
  434. package/fesm2015/checkbox/testing.js +30 -35
  435. package/fesm2015/checkbox/testing.js.map +1 -1
  436. package/fesm2015/checkbox.js +7 -2
  437. package/fesm2015/checkbox.js.map +1 -1
  438. package/fesm2015/chips/testing.js +120 -21
  439. package/fesm2015/chips/testing.js.map +1 -1
  440. package/fesm2015/core/testing.js +6 -1
  441. package/fesm2015/core/testing.js.map +1 -1
  442. package/fesm2015/core.js +45 -13
  443. package/fesm2015/core.js.map +1 -1
  444. package/fesm2015/datepicker/testing.js +5 -5
  445. package/fesm2015/datepicker/testing.js.map +1 -1
  446. package/fesm2015/datepicker.js +281 -120
  447. package/fesm2015/datepicker.js.map +1 -1
  448. package/fesm2015/dialog.js +1 -1
  449. package/fesm2015/dialog.js.map +1 -1
  450. package/fesm2015/expansion.js +7 -2
  451. package/fesm2015/expansion.js.map +1 -1
  452. package/fesm2015/form-field/testing.js +13 -8
  453. package/fesm2015/form-field/testing.js.map +1 -1
  454. package/fesm2015/form-field.js +1 -1
  455. package/fesm2015/form-field.js.map +1 -1
  456. package/fesm2015/grid-list/testing.js +5 -4
  457. package/fesm2015/grid-list/testing.js.map +1 -1
  458. package/fesm2015/grid-list.js.map +1 -1
  459. package/fesm2015/icon/testing.js +3 -1
  460. package/fesm2015/icon/testing.js.map +1 -1
  461. package/fesm2015/icon.js +38 -2
  462. package/fesm2015/icon.js.map +1 -1
  463. package/fesm2015/input/testing.js +7 -5
  464. package/fesm2015/input/testing.js.map +1 -1
  465. package/fesm2015/list/testing.js +13 -8
  466. package/fesm2015/list/testing.js.map +1 -1
  467. package/fesm2015/list.js.map +1 -1
  468. package/fesm2015/menu/testing.js +45 -33
  469. package/fesm2015/menu/testing.js.map +1 -1
  470. package/fesm2015/menu.js +12 -6
  471. package/fesm2015/menu.js.map +1 -1
  472. package/fesm2015/paginator/testing.js +26 -24
  473. package/fesm2015/paginator/testing.js.map +1 -1
  474. package/fesm2015/paginator.js.map +1 -1
  475. package/fesm2015/progress-spinner.js.map +1 -1
  476. package/fesm2015/radio/testing.js +39 -28
  477. package/fesm2015/radio/testing.js.map +1 -1
  478. package/fesm2015/radio.js +9 -4
  479. package/fesm2015/radio.js.map +1 -1
  480. package/fesm2015/select/testing.js +36 -28
  481. package/fesm2015/select/testing.js.map +1 -1
  482. package/fesm2015/sidenav/testing.js +139 -15
  483. package/fesm2015/sidenav/testing.js.map +1 -1
  484. package/fesm2015/sidenav.js.map +1 -1
  485. package/fesm2015/slide-toggle.js +7 -2
  486. package/fesm2015/slide-toggle.js.map +1 -1
  487. package/fesm2015/slider/testing.js +4 -4
  488. package/fesm2015/slider/testing.js.map +1 -1
  489. package/fesm2015/snack-bar/testing.js +18 -11
  490. package/fesm2015/snack-bar/testing.js.map +1 -1
  491. package/fesm2015/snack-bar.js +11 -1
  492. package/fesm2015/snack-bar.js.map +1 -1
  493. package/fesm2015/sort.js +10 -4
  494. package/fesm2015/sort.js.map +1 -1
  495. package/fesm2015/stepper.js +7 -2
  496. package/fesm2015/stepper.js.map +1 -1
  497. package/fesm2015/table/testing.js +11 -11
  498. package/fesm2015/table/testing.js.map +1 -1
  499. package/fesm2015/table.js +35 -22
  500. package/fesm2015/table.js.map +1 -1
  501. package/fesm2015/tabs/testing.js +3 -3
  502. package/fesm2015/tabs/testing.js.map +1 -1
  503. package/fesm2015/tabs.js +2 -2
  504. package/fesm2015/tabs.js.map +1 -1
  505. package/fesm2015/toolbar/testing.js +2 -2
  506. package/fesm2015/toolbar/testing.js.map +1 -1
  507. package/fesm2015/tooltip.js +27 -7
  508. package/fesm2015/tooltip.js.map +1 -1
  509. package/fesm2015/tree/testing.js +1 -1
  510. package/fesm2015/tree/testing.js.map +1 -1
  511. package/fesm2015/tree.js +3 -2
  512. package/fesm2015/tree.js.map +1 -1
  513. package/form-field/_form-field-fill-theme.scss +4 -5
  514. package/form-field/_form-field-legacy-theme.scss +5 -6
  515. package/form-field/_form-field-outline-theme.scss +4 -5
  516. package/form-field/_form-field-standard-theme.scss +5 -6
  517. package/form-field/_form-field-theme.scss +8 -9
  518. package/form-field/index.metadata.json +1 -1
  519. package/grid-list/_grid-list-theme.scss +2 -3
  520. package/icon/_icon-theme.scss +2 -3
  521. package/icon/icon-registry.d.ts +23 -0
  522. package/icon/index.metadata.json +1 -1
  523. package/icon/testing/fake-icon-registry.d.ts +1 -0
  524. package/icon/testing/index.metadata.json +1 -1
  525. package/input/_input-theme.scss +3 -4
  526. package/list/_list-theme.scss +2 -3
  527. package/list/index.metadata.json +1 -1
  528. package/list/selection-list.d.ts +6 -1
  529. package/list/testing/list-harness-base.d.ts +1 -1
  530. package/list/testing/list-item-harness-base.d.ts +2 -2
  531. package/list/testing/selection-list-harness.d.ts +2 -1
  532. package/menu/_menu-theme.scss +4 -5
  533. package/menu/index.metadata.json +1 -1
  534. package/menu/menu-trigger.d.ts +1 -1
  535. package/menu/testing/menu-harness.d.ts +39 -26
  536. package/package.json +2 -2
  537. package/paginator/_paginator-theme.scss +7 -8
  538. package/paginator/testing/paginator-harness.d.ts +32 -19
  539. package/prebuilt-themes/deeppurple-amber.css +1 -1
  540. package/prebuilt-themes/indigo-pink.css +1 -1
  541. package/prebuilt-themes/pink-bluegrey.css +1 -1
  542. package/prebuilt-themes/purple-green.css +1 -1
  543. package/progress-bar/_progress-bar-theme.scss +2 -3
  544. package/progress-spinner/_progress-spinner-theme.scss +2 -3
  545. package/radio/_radio-theme.scss +2 -3
  546. package/radio/index.metadata.json +1 -1
  547. package/radio/radio.d.ts +2 -2
  548. package/radio/testing/radio-harness.d.ts +39 -24
  549. package/schematics/ng-add/fonts/material-fonts.js +7 -5
  550. package/schematics/ng-add/index.js +1 -1
  551. package/select/_select-theme.scss +5 -6
  552. package/select/testing/select-harness.d.ts +28 -16
  553. package/sidenav/_sidenav-theme.scss +4 -5
  554. package/sidenav/testing/drawer-container-harness.d.ts +30 -0
  555. package/sidenav/testing/drawer-content-harness.d.ts +21 -0
  556. package/sidenav/testing/drawer-harness-filters.d.ts +6 -0
  557. package/sidenav/testing/drawer-harness.d.ts +13 -7
  558. package/sidenav/testing/public-api.d.ts +5 -1
  559. package/sidenav/testing/sidenav-container-harness.d.ts +30 -0
  560. package/sidenav/testing/sidenav-content-harness.d.ts +21 -0
  561. package/sidenav/testing/sidenav-harness.d.ts +3 -3
  562. package/slide-toggle/_slide-toggle-theme.scss +4 -5
  563. package/slide-toggle/slide-toggle.d.ts +2 -2
  564. package/slider/_slider-theme.scss +2 -3
  565. package/snack-bar/_snack-bar-theme.scss +4 -5
  566. package/snack-bar/index.metadata.json +1 -1
  567. package/snack-bar/snack-bar-container.d.ts +5 -0
  568. package/snack-bar/testing/snack-bar-harness.d.ts +7 -4
  569. package/sort/_sort-theme.scss +2 -3
  570. package/sort/index.metadata.json +1 -1
  571. package/sort/sort-header.d.ts +2 -1
  572. package/stepper/_stepper-theme.scss +7 -8
  573. package/stepper/step-header.d.ts +2 -2
  574. package/table/_table-theme.scss +2 -3
  575. package/table/index.metadata.json +1 -1
  576. package/table/table-data-source.d.ts +31 -20
  577. package/table/testing/cell-harness.d.ts +2 -2
  578. package/tabs/_tabs-common.scss +2 -2
  579. package/tabs/_tabs-theme.scss +14 -9
  580. package/tabs/index.metadata.json +1 -1
  581. package/tabs/tab-body.d.ts +3 -3
  582. package/toolbar/_toolbar-theme.scss +8 -9
  583. package/tooltip/_tooltip-theme.scss +2 -3
  584. package/tooltip/index.metadata.json +1 -1
  585. package/tooltip/tooltip.d.ts +10 -1
  586. package/tree/_tree-theme.scss +7 -8
  587. package/tree/index.metadata.json +1 -1
  588. package/tree/node.d.ts +7 -6
  589. package/tree/padding.d.ts +1 -1
  590. package/tree/toggle.d.ts +1 -1
  591. package/tree/tree.d.ts +1 -1
  592. package/core/density/_all-density.scss +0 -19
  593. package/core/style/_noop-animation.scss +0 -22
  594. package/core/theming/_check-duplicate-styles.scss +0 -106
@@ -5,38 +5,36 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
8
+ import { AsyncFactoryFn, BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate, TestElement } from '@angular/cdk/testing';
9
9
  import { RadioButtonHarnessFilters, RadioGroupHarnessFilters } from './radio-harness-filters';
10
- /** Harness for interacting with a standard mat-radio-group in tests. */
11
- export declare class MatRadioGroupHarness extends ComponentHarness {
12
- /** The selector for the host element of a `MatRadioGroup` instance. */
13
- static hostSelector: string;
14
- /**
15
- * Gets a `HarnessPredicate` that can be used to search for a `MatRadioGroupHarness` that meets
16
- * certain criteria.
17
- * @param options Options for filtering which radio group instances are considered a match.
18
- * @return a `HarnessPredicate` configured with the given options.
19
- */
20
- static with(options?: RadioGroupHarnessFilters): HarnessPredicate<MatRadioGroupHarness>;
10
+ export declare abstract class _MatRadioGroupHarnessBase<ButtonType extends (ComponentHarnessConstructor<Button> & {
11
+ with: (options?: ButtonFilters) => HarnessPredicate<Button>;
12
+ }), Button extends ComponentHarness & {
13
+ isChecked(): Promise<boolean>;
14
+ getValue(): Promise<string | null>;
15
+ getName(): Promise<string | null>;
16
+ check(): Promise<void>;
17
+ }, ButtonFilters extends BaseHarnessFilters> extends ComponentHarness {
18
+ protected abstract _buttonClass: ButtonType;
21
19
  /** Gets the name of the radio-group. */
22
20
  getName(): Promise<string | null>;
23
21
  /** Gets the id of the radio-group. */
24
22
  getId(): Promise<string | null>;
25
23
  /** Gets the checked radio-button in a radio-group. */
26
- getCheckedRadioButton(): Promise<MatRadioButtonHarness | null>;
24
+ getCheckedRadioButton(): Promise<Button | null>;
27
25
  /** Gets the checked value of the radio-group. */
28
26
  getCheckedValue(): Promise<string | null>;
29
27
  /**
30
28
  * Gets a list of radio buttons which are part of the radio-group.
31
29
  * @param filter Optionally filters which radio buttons are included.
32
30
  */
33
- getRadioButtons(filter?: RadioButtonHarnessFilters): Promise<MatRadioButtonHarness[]>;
31
+ getRadioButtons(filter?: ButtonFilters): Promise<Button[]>;
34
32
  /**
35
33
  * Checks a radio button in this group.
36
34
  * @param filter An optional filter to apply to the child radio buttons. The first tab matching
37
35
  * the filter will be selected.
38
36
  */
39
- checkRadioButton(filter?: RadioButtonHarnessFilters): Promise<void>;
37
+ checkRadioButton(filter?: ButtonFilters): Promise<void>;
40
38
  /** Gets the name attribute of the host element. */
41
39
  private _getGroupNameFromHost;
42
40
  /** Gets a list of the name attributes of all child radio buttons. */
@@ -47,21 +45,24 @@ export declare class MatRadioGroupHarness extends ComponentHarness {
47
45
  * Checks if a radio-group harness has the given name. Throws if a radio-group with
48
46
  * matching name could be found but has mismatching radio-button names.
49
47
  */
50
- private static _checkRadioGroupName;
48
+ protected static _checkRadioGroupName(harness: _MatRadioGroupHarnessBase<any, any, any>, name: string): Promise<boolean>;
51
49
  }
52
- /** Harness for interacting with a standard mat-radio-button in tests. */
53
- export declare class MatRadioButtonHarness extends ComponentHarness {
54
- /** The selector for the host element of a `MatRadioButton` instance. */
50
+ /** Harness for interacting with a standard mat-radio-group in tests. */
51
+ export declare class MatRadioGroupHarness extends _MatRadioGroupHarnessBase<typeof MatRadioButtonHarness, MatRadioButtonHarness, RadioButtonHarnessFilters> {
52
+ /** The selector for the host element of a `MatRadioGroup` instance. */
55
53
  static hostSelector: string;
54
+ protected _buttonClass: typeof MatRadioButtonHarness;
56
55
  /**
57
- * Gets a `HarnessPredicate` that can be used to search for a `MatRadioButtonHarness` that meets
56
+ * Gets a `HarnessPredicate` that can be used to search for a `MatRadioGroupHarness` that meets
58
57
  * certain criteria.
59
- * @param options Options for filtering which radio button instances are considered a match.
58
+ * @param options Options for filtering which radio group instances are considered a match.
60
59
  * @return a `HarnessPredicate` configured with the given options.
61
60
  */
62
- static with(options?: RadioButtonHarnessFilters): HarnessPredicate<MatRadioButtonHarness>;
63
- private _textLabel;
64
- private _clickLabel;
61
+ static with(options?: RadioGroupHarnessFilters): HarnessPredicate<MatRadioGroupHarness>;
62
+ }
63
+ export declare abstract class _MatRadioButtonHarnessBase extends ComponentHarness {
64
+ protected abstract _textLabel: AsyncFactoryFn<TestElement>;
65
+ protected abstract _clickLabel: AsyncFactoryFn<TestElement>;
65
66
  private _input;
66
67
  /** Whether the radio-button is checked. */
67
68
  isChecked(): Promise<boolean>;
@@ -94,3 +95,17 @@ export declare class MatRadioButtonHarness extends ComponentHarness {
94
95
  */
95
96
  check(): Promise<void>;
96
97
  }
98
+ /** Harness for interacting with a standard mat-radio-button in tests. */
99
+ export declare class MatRadioButtonHarness extends _MatRadioButtonHarnessBase {
100
+ /** The selector for the host element of a `MatRadioButton` instance. */
101
+ static hostSelector: string;
102
+ /**
103
+ * Gets a `HarnessPredicate` that can be used to search for a `MatRadioButtonHarness` that meets
104
+ * certain criteria.
105
+ * @param options Options for filtering which radio button instances are considered a match.
106
+ * @return a `HarnessPredicate` configured with the given options.
107
+ */
108
+ static with(options?: RadioButtonHarnessFilters): HarnessPredicate<MatRadioButtonHarness>;
109
+ protected _textLabel: AsyncFactoryFn<TestElement>;
110
+ protected _clickLabel: AsyncFactoryFn<TestElement>;
111
+ }
@@ -29,16 +29,18 @@ function addFontsToIndex(options) {
29
29
  if (!projectIndexFiles.length) {
30
30
  throw new schematics_1.SchematicsException('No project index HTML file could be found.');
31
31
  }
32
+ const preconnect = `<link rel="preconnect" href="https://fonts.gstatic.com">`;
32
33
  const fonts = [
33
- 'https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap',
34
+ 'https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap',
34
35
  'https://fonts.googleapis.com/icon?family=Material+Icons',
35
36
  ];
36
- fonts.forEach(f => {
37
- projectIndexFiles.forEach(indexFilePath => {
38
- schematics_2.appendHtmlElementToHead(host, indexFilePath, `<link href="${f}" rel="stylesheet">`);
37
+ projectIndexFiles.forEach(indexFilePath => {
38
+ schematics_2.appendHtmlElementToHead(host, indexFilePath, preconnect);
39
+ fonts.forEach(font => {
40
+ schematics_2.appendHtmlElementToHead(host, indexFilePath, `<link href="${font}"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9uczogU2NoZW1hKTogUnVsZSB7XG4gIHJldHVybiBhc3luYyAoaG9zdDogVHJlZSkgPT4ge1xuICAgIGNvbnN0IHdvcmtzcGFjZSA9IGF3YWl0IGdldFdvcmtzcGFjZShob3N0KTtcbiAgICBjb25zdCBwcm9qZWN0ID0gZ2V0UHJvamVjdEZyb21Xb3Jrc3BhY2Uod29ya3NwYWNlLCBvcHRpb25zLnByb2plY3QpO1xuICAgIGNvbnN0IHByb2plY3RJbmRleEZpbGVzID0gZ2V0UHJvamVjdEluZGV4RmlsZXMocHJvamVjdCk7XG5cbiAgICBpZiAoIXByb2plY3RJbmRleEZpbGVzLmxlbmd0aCkge1xuICAgICAgdGhyb3cgbmV3IFNjaGVtYXRpY3NFeGNlcHRpb24oJ05vIHByb2plY3QgaW5kZXggSFRNTCBmaWxlIGNvdWxkIGJlIGZvdW5kLicpO1xuICAgIH1cblxuICAgIGNvbnN0IGZvbnRzID0gW1xuICAgICAgJ2h0dHBzOi8vZm9udHMuZ29vZ2xlYXBpcy5jb20vY3NzP2ZhbWlseT1Sb2JvdG86MzAwLDQwMCw1MDAmZGlzcGxheT1zd2FwJyxcbiAgICAgICdodHRwczovL2ZvbnRzLmdvb2dsZWFwaXMuY29tL2ljb24/ZmFtaWx5PU1hdGVyaWFsK0ljb25zJyxcbiAgICBdO1xuXG4gICAgZm9udHMuZm9yRWFjaChmID0+IHtcbiAgICAgIHByb2plY3RJbmRleEZpbGVzLmZvckVhY2goaW5kZXhGaWxlUGF0aCA9PiB7XG4gICAgICAgIGFwcGVuZEh0bWxFbGVtZW50VG9IZWFkKGhvc3QsIGluZGV4RmlsZVBhdGgsIGA8bGluayBocmVmPVwiJHtmfVwiIHJlbD1cInN0eWxlc2hlZXRcIj5gKTtcbiAgICAgIH0pO1xuICAgIH0pO1xuICB9O1xufVxuIl19
46
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtZm9udHMuanMiLCJzb3V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H1cIiByZWw9XCJzdHlsZXNoZWV0XCI+YCk7XG4gICAgICB9KTtcbiAgICB9KTtcbiAgfTtcbn1cbiJdfQ==
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
18
18
  * Note that the fallback version range does not use caret, but tilde because that is
19
19
  * the default for Angular framework dependencies in CLI projects.
20
20
  */
21
- const fallbackMaterialVersionRange = `~11.0.2-sha-c6231e19b`;
21
+ const fallbackMaterialVersionRange = `~11.1.0-sha-7643a3cb1`;
22
22
  /**
23
23
  * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
24
24
  * automatically executed if developers run `ng add @angular/material`.
@@ -1,7 +1,6 @@
1
1
  @import '../core/theming/palette';
2
2
  @import '../core/theming/theming';
3
- @import '../core/theming/check-duplicate-styles';
4
- @import '../core/style/elevation';
3
+ @import '../core/style/private';
5
4
  @import '../core/style/form-common';
6
5
  @import '../core/typography/typography-utils';
7
6
 
@@ -19,7 +18,7 @@
19
18
  }
20
19
 
21
20
  .mat-select-placeholder {
22
- color: _mat-control-placeholder-color($config);
21
+ color: mat-private-control-placeholder-color($config);
23
22
  }
24
23
 
25
24
  .mat-select-disabled .mat-select-value {
@@ -32,7 +31,7 @@
32
31
 
33
32
  .mat-select-panel {
34
33
  background: mat-color($background, card);
35
- @include _mat-theme-overridable-elevation(4, $config);
34
+ @include mat-private-theme-overridable-elevation(4, $config);
36
35
 
37
36
  .mat-option.mat-selected:not(.mat-option-multiple) {
38
37
  background: mat-color($background, hover, 0.12);
@@ -81,8 +80,8 @@
81
80
  @mixin _mat-select-density($config-or-theme) {}
82
81
 
83
82
  @mixin mat-select-theme($theme-or-color-config) {
84
- $theme: _mat-legacy-get-theme($theme-or-color-config);
85
- @include _mat-check-duplicate-theme-styles($theme, 'mat-select') {
83
+ $theme: mat-private-legacy-get-theme($theme-or-color-config);
84
+ @include mat-private-check-duplicate-theme-styles($theme, 'mat-select') {
86
85
  $color: mat-get-color-config($theme);
87
86
  $density: mat-get-density-config($theme);
88
87
  $typography: mat-get-typography-config($theme);
@@ -5,24 +5,22 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- import { HarnessPredicate } from '@angular/cdk/testing';
8
+ import { HarnessPredicate, ComponentHarness, BaseHarnessFilters, ComponentHarnessConstructor } from '@angular/cdk/testing';
9
9
  import { MatFormFieldControlHarness } from '@angular/material/form-field/testing/control';
10
10
  import { MatOptionHarness, MatOptgroupHarness, OptionHarnessFilters, OptgroupHarnessFilters } from '@angular/material/core/testing';
11
11
  import { SelectHarnessFilters } from './select-harness-filters';
12
- /** Harness for interacting with a standard mat-select in tests. */
13
- export declare class MatSelectHarness extends MatFormFieldControlHarness {
12
+ export declare abstract class _MatSelectHarnessBase<OptionType extends (ComponentHarnessConstructor<Option> & {
13
+ with: (options?: OptionFilters) => HarnessPredicate<Option>;
14
+ }), Option extends ComponentHarness & {
15
+ click(): Promise<void>;
16
+ }, OptionFilters extends BaseHarnessFilters, OptionGroupType extends (ComponentHarnessConstructor<OptionGroup> & {
17
+ with: (options?: OptionGroupFilters) => HarnessPredicate<OptionGroup>;
18
+ }), OptionGroup extends ComponentHarness, OptionGroupFilters extends BaseHarnessFilters> extends MatFormFieldControlHarness {
19
+ protected abstract _prefix: string;
20
+ protected abstract _optionClass: OptionType;
21
+ protected abstract _optionGroupClass: OptionGroupType;
14
22
  private _documentRootLocator;
15
23
  private _backdrop;
16
- private _trigger;
17
- private _value;
18
- static hostSelector: string;
19
- /**
20
- * Gets a `HarnessPredicate` that can be used to search for a `MatSelectHarness` that meets
21
- * certain criteria.
22
- * @param options Options for filtering which select instances are considered a match.
23
- * @return a `HarnessPredicate` configured with the given options.
24
- */
25
- static with(options?: SelectHarnessFilters): HarnessPredicate<MatSelectHarness>;
26
24
  /** Gets a boolean promise indicating if the select is disabled. */
27
25
  isDisabled(): Promise<boolean>;
28
26
  /** Gets a boolean promise indicating if the select is valid. */
@@ -42,9 +40,9 @@ export declare class MatSelectHarness extends MatFormFieldControlHarness {
42
40
  /** Whether the select is focused. */
43
41
  isFocused(): Promise<boolean>;
44
42
  /** Gets the options inside the select panel. */
45
- getOptions(filter?: Omit<OptionHarnessFilters, 'ancestor'>): Promise<MatOptionHarness[]>;
43
+ getOptions(filter?: Omit<OptionFilters, 'ancestor'>): Promise<Option[]>;
46
44
  /** Gets the groups of options inside the panel. */
47
- getOptionGroups(filter?: Omit<OptgroupHarnessFilters, 'ancestor'>): Promise<MatOptgroupHarness[]>;
45
+ getOptionGroups(filter?: Omit<OptionGroupFilters, 'ancestor'>): Promise<OptionGroup[]>;
48
46
  /** Gets whether the select is open. */
49
47
  isOpen(): Promise<boolean>;
50
48
  /** Opens the select's panel. */
@@ -53,9 +51,23 @@ export declare class MatSelectHarness extends MatFormFieldControlHarness {
53
51
  * Clicks the options that match the passed-in filter. If the select is in multi-selection
54
52
  * mode all options will be clicked, otherwise the harness will pick the first matching option.
55
53
  */
56
- clickOptions(filter?: OptionHarnessFilters): Promise<void>;
54
+ clickOptions(filter?: OptionFilters): Promise<void>;
57
55
  /** Closes the select's panel. */
58
56
  close(): Promise<void>;
59
57
  /** Gets the selector that should be used to find this select's panel. */
60
58
  private _getPanelSelector;
61
59
  }
60
+ /** Harness for interacting with a standard mat-select in tests. */
61
+ export declare class MatSelectHarness extends _MatSelectHarnessBase<typeof MatOptionHarness, MatOptionHarness, OptionHarnessFilters, typeof MatOptgroupHarness, MatOptgroupHarness, OptgroupHarnessFilters> {
62
+ static hostSelector: string;
63
+ protected _prefix: string;
64
+ protected _optionClass: typeof MatOptionHarness;
65
+ protected _optionGroupClass: typeof MatOptgroupHarness;
66
+ /**
67
+ * Gets a `HarnessPredicate` that can be used to search for a `MatSelectHarness` that meets
68
+ * certain criteria.
69
+ * @param options Options for filtering which select instances are considered a match.
70
+ * @return a `HarnessPredicate` configured with the given options.
71
+ */
72
+ static with(options?: SelectHarnessFilters): HarnessPredicate<MatSelectHarness>;
73
+ }
@@ -1,7 +1,6 @@
1
- @import '../core/style/elevation';
1
+ @import '../core/style/private';
2
2
  @import '../core/theming/palette';
3
3
  @import '../core/theming/theming';
4
- @import '../core/theming/check-duplicate-styles';
5
4
 
6
5
  @mixin mat-sidenav-color($config-or-theme) {
7
6
  $config: mat-get-color-config($config-or-theme);
@@ -32,7 +31,7 @@
32
31
  &:not(.mat-drawer-side) {
33
32
  // The elevation of z-16 is noted in the design specifications.
34
33
  // See https://material.io/design/components/navigation-drawer.html
35
- @include _mat-theme-elevation(16, $config);
34
+ @include mat-private-theme-elevation(16, $config);
36
35
  }
37
36
  }
38
37
 
@@ -79,8 +78,8 @@
79
78
  @mixin _mat-sidenav-density($config-or-theme) {}
80
79
 
81
80
  @mixin mat-sidenav-theme($theme-or-color-config) {
82
- $theme: _mat-legacy-get-theme($theme-or-color-config);
83
- @include _mat-check-duplicate-theme-styles($theme, 'mat-sidenav') {
81
+ $theme: mat-private-legacy-get-theme($theme-or-color-config);
82
+ @include mat-private-check-duplicate-theme-styles($theme, 'mat-sidenav') {
84
83
  $color: mat-get-color-config($theme);
85
84
  $density: mat-get-density-config($theme);
86
85
  $typography: mat-get-typography-config($theme);
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9
+ import { DrawerContainerHarnessFilters, DrawerHarnessFilters } from './drawer-harness-filters';
10
+ import { MatDrawerContentHarness } from './drawer-content-harness';
11
+ import { MatDrawerHarness } from './drawer-harness';
12
+ /** Harness for interacting with a standard mat-drawer-container in tests. */
13
+ export declare class MatDrawerContainerHarness extends ContentContainerComponentHarness<string> {
14
+ /** The selector for the host element of a `MatDrawerContainer` instance. */
15
+ static hostSelector: string;
16
+ /**
17
+ * Gets a `HarnessPredicate` that can be used to search for a `MatDrawerContainerHarness` that
18
+ * meets certain criteria.
19
+ * @param options Options for filtering which container instances are considered a match.
20
+ * @return a `HarnessPredicate` configured with the given options.
21
+ */
22
+ static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<MatDrawerContainerHarness>;
23
+ /**
24
+ * Gets drawers that match particular criteria within the container.
25
+ * @param filter Optionally filters which chips are included.
26
+ */
27
+ getDrawers(filter?: DrawerHarnessFilters): Promise<MatDrawerHarness[]>;
28
+ /** Gets the element that has the container's content. */
29
+ getContent(): Promise<MatDrawerContentHarness>;
30
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9
+ import { DrawerContentHarnessFilters } from './drawer-harness-filters';
10
+ /** Harness for interacting with a standard mat-drawer-content in tests. */
11
+ export declare class MatDrawerContentHarness extends ContentContainerComponentHarness<string> {
12
+ /** The selector for the host element of a `MatDrawerContent` instance. */
13
+ static hostSelector: string;
14
+ /**
15
+ * Gets a `HarnessPredicate` that can be used to search for a `MatDrawerContentHarness` that
16
+ * meets certain criteria.
17
+ * @param options Options for filtering which drawer content instances are considered a match.
18
+ * @return a `HarnessPredicate` configured with the given options.
19
+ */
20
+ static with(options?: DrawerContentHarnessFilters): HarnessPredicate<MatDrawerContentHarness>;
21
+ }
@@ -11,3 +11,9 @@ export interface DrawerHarnessFilters extends BaseHarnessFilters {
11
11
  /** Only find instances whose side is the given value. */
12
12
  position?: 'start' | 'end';
13
13
  }
14
+ /** A set of criteria that can be used to filter a list of `MatDrawerContainerHarness` instances. */
15
+ export interface DrawerContainerHarnessFilters extends BaseHarnessFilters {
16
+ }
17
+ /** A set of criteria that can be used to filter a list of `MatDrawerContentHarness` instances. */
18
+ export interface DrawerContentHarnessFilters extends BaseHarnessFilters {
19
+ }
@@ -7,8 +7,20 @@
7
7
  */
8
8
  import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9
9
  import { DrawerHarnessFilters } from './drawer-harness-filters';
10
+ /**
11
+ * Base class for the drawer harness functionality.
12
+ * @docs-private
13
+ */
14
+ export declare class MatDrawerHarnessBase extends ContentContainerComponentHarness<string> {
15
+ /** Whether the drawer is open. */
16
+ isOpen(): Promise<boolean>;
17
+ /** Gets the position of the drawer inside its container. */
18
+ getPosition(): Promise<'start' | 'end'>;
19
+ /** Gets the mode that the drawer is in. */
20
+ getMode(): Promise<'over' | 'push' | 'side'>;
21
+ }
10
22
  /** Harness for interacting with a standard mat-drawer in tests. */
11
- export declare class MatDrawerHarness extends ContentContainerComponentHarness<string> {
23
+ export declare class MatDrawerHarness extends MatDrawerHarnessBase {
12
24
  /** The selector for the host element of a `MatDrawer` instance. */
13
25
  static hostSelector: string;
14
26
  /**
@@ -18,10 +30,4 @@ export declare class MatDrawerHarness extends ContentContainerComponentHarness<s
18
30
  * @return a `HarnessPredicate` configured with the given options.
19
31
  */
20
32
  static with(options?: DrawerHarnessFilters): HarnessPredicate<MatDrawerHarness>;
21
- /** Whether the drawer is open. */
22
- isOpen(): Promise<boolean>;
23
- /** Gets the position of the drawer inside its container. */
24
- getPosition(): Promise<'start' | 'end'>;
25
- /** Gets the mode that the drawer is in. */
26
- getMode(): Promise<'over' | 'push' | 'side'>;
27
33
  }
@@ -5,6 +5,10 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- export * from './drawer-harness';
8
+ export { MatDrawerHarness } from './drawer-harness';
9
+ export * from './drawer-container-harness';
10
+ export * from './drawer-content-harness';
9
11
  export * from './drawer-harness-filters';
12
+ export * from './sidenav-container-harness';
13
+ export * from './sidenav-content-harness';
10
14
  export * from './sidenav-harness';
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9
+ import { DrawerContainerHarnessFilters, DrawerHarnessFilters } from './drawer-harness-filters';
10
+ import { MatSidenavContentHarness } from './sidenav-content-harness';
11
+ import { MatSidenavHarness } from './sidenav-harness';
12
+ /** Harness for interacting with a standard mat-sidenav-container in tests. */
13
+ export declare class MatSidenavContainerHarness extends ContentContainerComponentHarness<string> {
14
+ /** The selector for the host element of a `MatSidenavContainer` instance. */
15
+ static hostSelector: string;
16
+ /**
17
+ * Gets a `HarnessPredicate` that can be used to search for a `MatSidenavContainerHarness` that
18
+ * meets certain criteria.
19
+ * @param options Options for filtering which container instances are considered a match.
20
+ * @return a `HarnessPredicate` configured with the given options.
21
+ */
22
+ static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<MatSidenavContainerHarness>;
23
+ /**
24
+ * Gets sidenavs that match particular criteria within the container.
25
+ * @param filter Optionally filters which chips are included.
26
+ */
27
+ getSidenavs(filter?: DrawerHarnessFilters): Promise<MatSidenavHarness[]>;
28
+ /** Gets the element that has the container's content. */
29
+ getContent(): Promise<MatSidenavContentHarness>;
30
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9
+ import { DrawerContentHarnessFilters } from './drawer-harness-filters';
10
+ /** Harness for interacting with a standard mat-sidenav-content in tests. */
11
+ export declare class MatSidenavContentHarness extends ContentContainerComponentHarness<string> {
12
+ /** The selector for the host element of a `MatSidenavContent` instance. */
13
+ static hostSelector: string;
14
+ /**
15
+ * Gets a `HarnessPredicate` that can be used to search for a `MatSidenavContentHarness` that
16
+ * meets certain criteria.
17
+ * @param options Options for filtering which sidenav content instances are considered a match.
18
+ * @return a `HarnessPredicate` configured with the given options.
19
+ */
20
+ static with(options?: DrawerContentHarnessFilters): HarnessPredicate<MatSidenavContentHarness>;
21
+ }
@@ -6,10 +6,10 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import { HarnessPredicate } from '@angular/cdk/testing';
9
- import { MatDrawerHarness } from './drawer-harness';
9
+ import { MatDrawerHarnessBase } from './drawer-harness';
10
10
  import { DrawerHarnessFilters } from './drawer-harness-filters';
11
11
  /** Harness for interacting with a standard mat-sidenav in tests. */
12
- export declare class MatSidenavHarness extends MatDrawerHarness {
12
+ export declare class MatSidenavHarness extends MatDrawerHarnessBase {
13
13
  /** The selector for the host element of a `MatSidenav` instance. */
14
14
  static hostSelector: string;
15
15
  /**
@@ -18,7 +18,7 @@ export declare class MatSidenavHarness extends MatDrawerHarness {
18
18
  * @param options Options for filtering which sidenav instances are considered a match.
19
19
  * @return a `HarnessPredicate` configured with the given options.
20
20
  */
21
- static with(options?: DrawerHarnessFilters): HarnessPredicate<MatDrawerHarness>;
21
+ static with(options?: DrawerHarnessFilters): HarnessPredicate<MatSidenavHarness>;
22
22
  /** Whether the sidenav is fixed in the viewport. */
23
23
  isFixedInViewport(): Promise<boolean>;
24
24
  }
@@ -1,7 +1,6 @@
1
- @import '../core/style/elevation';
1
+ @import '../core/style/private';
2
2
  @import '../core/theming/palette';
3
3
  @import '../core/theming/theming';
4
- @import '../core/theming/check-duplicate-styles';
5
4
  @import '../core/typography/typography-utils';
6
5
 
7
6
  @mixin _mat-slide-toggle-checked($palette, $thumb-checked-hue) {
@@ -64,7 +63,7 @@
64
63
  }
65
64
 
66
65
  .mat-slide-toggle-thumb {
67
- @include _mat-theme-elevation(1, $config);
66
+ @include mat-private-theme-elevation(1, $config);
68
67
  background-color: mat-color($mat-grey, $thumb-unchecked-hue);
69
68
  }
70
69
 
@@ -83,8 +82,8 @@
83
82
  @mixin _mat-slide-toggle-density($config-or-theme) {}
84
83
 
85
84
  @mixin mat-slide-toggle-theme($theme-or-color-config) {
86
- $theme: _mat-legacy-get-theme($theme-or-color-config);
87
- @include _mat-check-duplicate-theme-styles($theme, 'mat-slide-toggle') {
85
+ $theme: mat-private-legacy-get-theme($theme-or-color-config);
86
+ @include mat-private-check-duplicate-theme-styles($theme, 'mat-slide-toggle') {
88
87
  $color: mat-get-color-config($theme);
89
88
  $density: mat-get-density-config($theme);
90
89
  $typography: mat-get-typography-config($theme);
@@ -5,7 +5,7 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- import { FocusMonitor } from '@angular/cdk/a11y';
8
+ import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
9
9
  import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
10
10
  import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
11
11
  import { ControlValueAccessor } from '@angular/forms';
@@ -90,7 +90,7 @@ export declare class MatSlideToggle extends _MatSlideToggleMixinBase implements
90
90
  /** Implemented as a part of ControlValueAccessor. */
91
91
  setDisabledState(isDisabled: boolean): void;
92
92
  /** Focuses the slide-toggle. */
93
- focus(options?: FocusOptions): void;
93
+ focus(options?: FocusOptions, origin?: FocusOrigin): void;
94
94
  /** Toggles the checked state of the slide-toggle. */
95
95
  toggle(): void;
96
96
  /**
@@ -1,6 +1,5 @@
1
1
  @import '../core/theming/palette';
2
2
  @import '../core/theming/theming';
3
- @import '../core/theming/check-duplicate-styles';
4
3
  @import '../core/typography/typography-utils';
5
4
 
6
5
  @mixin _mat-slider-inner-content-theme($palette) {
@@ -178,8 +177,8 @@
178
177
  @mixin _mat-slider-density($config-or-theme) {}
179
178
 
180
179
  @mixin mat-slider-theme($theme-or-color-config) {
181
- $theme: _mat-legacy-get-theme($theme-or-color-config);
182
- @include _mat-check-duplicate-theme-styles($theme, 'mat-slider') {
180
+ $theme: mat-private-legacy-get-theme($theme-or-color-config);
181
+ @include mat-private-check-duplicate-theme-styles($theme, 'mat-slider') {
183
182
  $color: mat-get-color-config($theme);
184
183
  $density: mat-get-density-config($theme);
185
184
  $typography: mat-get-typography-config($theme);
@@ -1,8 +1,7 @@
1
1
  @import '../core/typography/typography-utils';
2
2
  @import '../core/theming/theming';
3
- @import '../core/theming/check-duplicate-styles';
4
3
  @import '../core/theming/palette';
5
- @import '../core/style/elevation';
4
+ @import '../core/style/private';
6
5
 
7
6
  @mixin mat-snack-bar-color($config-or-theme) {
8
7
  $config: mat-get-color-config($config-or-theme);
@@ -15,7 +14,7 @@
15
14
  color: if($is-dark-theme, $dark-primary-text, $light-secondary-text);
16
15
  background: if($is-dark-theme, map-get($mat-grey, 50), #323232);
17
16
 
18
- @include _mat-theme-elevation(6, $config);
17
+ @include mat-private-theme-elevation(6, $config);
19
18
  }
20
19
 
21
20
  .mat-simple-snackbar-action {
@@ -45,8 +44,8 @@
45
44
  @mixin _mat-snack-bar-density($config-or-theme) {}
46
45
 
47
46
  @mixin mat-snack-bar-theme($theme-or-color-config) {
48
- $theme: _mat-legacy-get-theme($theme-or-color-config);
49
- @include _mat-check-duplicate-theme-styles($theme, 'mat-snack-bar') {
47
+ $theme: mat-private-legacy-get-theme($theme-or-color-config);
48
+ @include mat-private-check-duplicate-theme-styles($theme, 'mat-snack-bar') {
50
49
  $color: mat-get-color-config($theme);
51
50
  $density: mat-get-density-config($theme);
52
51
  $typography: mat-get-typography-config($theme);