@angular/material 18.1.0-next.1 → 18.1.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/_index.scss +1 -1
  2. package/autocomplete/index.d.ts +4 -1
  3. package/badge/index.d.ts +4 -1
  4. package/bottom-sheet/index.d.ts +1 -2
  5. package/button/index.d.ts +7 -1
  6. package/checkbox/index.d.ts +12 -2
  7. package/chips/index.d.ts +11 -3
  8. package/core/_core-theme.scss +8 -14
  9. package/core/_core.scss +18 -4
  10. package/core/index.d.ts +1 -1
  11. package/core/m2/_typography.scss +1 -1
  12. package/core/theming/_config-validation.scss +3 -2
  13. package/core/theming/_definition.scss +4 -2
  14. package/core/theming/_palettes.scss +2 -0
  15. package/core/tokens/_density.scss +1 -0
  16. package/core/tokens/_m3-tokens.scss +168 -152
  17. package/core/tokens/m2/mat/_app.scss +13 -1
  18. package/core/tokens/m2/mat/_menu.scss +3 -0
  19. package/core/tokens/m2/mat/_paginator.scss +1 -0
  20. package/core/tokens/m3/mat/_app.scss +9 -0
  21. package/core/tokens/m3/mat/_divider.scss +1 -1
  22. package/core/tokens/m3/mat/_expansion.scss +1 -1
  23. package/core/tokens/m3/mat/_menu.scss +3 -0
  24. package/core/tokens/m3/mat/_stepper.scss +1 -1
  25. package/core/tokens/m3/mat/_table.scss +1 -1
  26. package/datepicker/index.d.ts +27 -3
  27. package/dialog/index.d.ts +0 -1
  28. package/dialog/testing/index.d.ts +1 -0
  29. package/esm2022/autocomplete/autocomplete-origin.mjs +4 -4
  30. package/esm2022/autocomplete/autocomplete-trigger.mjs +38 -10
  31. package/esm2022/autocomplete/autocomplete.mjs +4 -4
  32. package/esm2022/autocomplete/module.mjs +5 -5
  33. package/esm2022/badge/badge-module.mjs +5 -5
  34. package/esm2022/badge/badge.mjs +11 -8
  35. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +9 -10
  36. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +5 -5
  37. package/esm2022/bottom-sheet/bottom-sheet.mjs +4 -4
  38. package/esm2022/button/button-base.mjs +7 -7
  39. package/esm2022/button/button.mjs +7 -7
  40. package/esm2022/button/fab.mjs +13 -13
  41. package/esm2022/button/icon-button.mjs +7 -7
  42. package/esm2022/button/module.mjs +5 -5
  43. package/esm2022/button-toggle/button-toggle-module.mjs +5 -5
  44. package/esm2022/button-toggle/button-toggle.mjs +7 -7
  45. package/esm2022/card/card.mjs +43 -43
  46. package/esm2022/card/module.mjs +5 -5
  47. package/esm2022/checkbox/checkbox-config.mjs +1 -1
  48. package/esm2022/checkbox/checkbox-required-validator.mjs +4 -4
  49. package/esm2022/checkbox/checkbox.mjs +6 -13
  50. package/esm2022/checkbox/module.mjs +9 -9
  51. package/esm2022/chips/chip-action.mjs +4 -4
  52. package/esm2022/chips/chip-edit-input.mjs +4 -4
  53. package/esm2022/chips/chip-grid.mjs +14 -7
  54. package/esm2022/chips/chip-icons.mjs +10 -10
  55. package/esm2022/chips/chip-input.mjs +4 -4
  56. package/esm2022/chips/chip-listbox.mjs +4 -4
  57. package/esm2022/chips/chip-option.mjs +4 -4
  58. package/esm2022/chips/chip-row.mjs +11 -16
  59. package/esm2022/chips/chip-set.mjs +10 -6
  60. package/esm2022/chips/chip.mjs +9 -9
  61. package/esm2022/chips/module.mjs +5 -5
  62. package/esm2022/core/common-behaviors/common-module.mjs +5 -5
  63. package/esm2022/core/datetime/index.mjs +9 -9
  64. package/esm2022/core/datetime/native-date-adapter.mjs +4 -4
  65. package/esm2022/core/error/error-options.mjs +7 -7
  66. package/esm2022/core/internal-form-field/internal-form-field.mjs +4 -4
  67. package/esm2022/core/line/line.mjs +8 -8
  68. package/esm2022/core/option/index.mjs +5 -5
  69. package/esm2022/core/option/optgroup.mjs +5 -5
  70. package/esm2022/core/option/option.mjs +5 -5
  71. package/esm2022/core/private/ripple-loader.mjs +4 -4
  72. package/esm2022/core/ripple/index.mjs +5 -5
  73. package/esm2022/core/ripple/ripple.mjs +4 -4
  74. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
  75. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  76. package/esm2022/core/version.mjs +1 -1
  77. package/esm2022/datepicker/calendar-body.mjs +4 -4
  78. package/esm2022/datepicker/calendar.mjs +7 -7
  79. package/esm2022/datepicker/date-range-input-parts.mjs +21 -17
  80. package/esm2022/datepicker/date-range-input.mjs +20 -10
  81. package/esm2022/datepicker/date-range-picker.mjs +4 -4
  82. package/esm2022/datepicker/date-range-selection-strategy.mjs +4 -4
  83. package/esm2022/datepicker/date-selection-model.mjs +10 -10
  84. package/esm2022/datepicker/datepicker-actions.mjs +10 -10
  85. package/esm2022/datepicker/datepicker-base.mjs +24 -23
  86. package/esm2022/datepicker/datepicker-input-base.mjs +4 -4
  87. package/esm2022/datepicker/datepicker-input.mjs +18 -7
  88. package/esm2022/datepicker/datepicker-intl.mjs +4 -4
  89. package/esm2022/datepicker/datepicker-module.mjs +5 -5
  90. package/esm2022/datepicker/datepicker-toggle.mjs +7 -7
  91. package/esm2022/datepicker/datepicker.mjs +4 -4
  92. package/esm2022/datepicker/month-view.mjs +4 -4
  93. package/esm2022/datepicker/multi-year-view.mjs +4 -4
  94. package/esm2022/datepicker/year-view.mjs +4 -4
  95. package/esm2022/dialog/dialog-container.mjs +4 -9
  96. package/esm2022/dialog/dialog-content-directives.mjs +16 -16
  97. package/esm2022/dialog/dialog.mjs +4 -4
  98. package/esm2022/dialog/module.mjs +5 -5
  99. package/esm2022/dialog/testing/dialog-opener.mjs +4 -3
  100. package/esm2022/divider/divider-module.mjs +5 -5
  101. package/esm2022/divider/divider.mjs +4 -4
  102. package/esm2022/expansion/accordion.mjs +4 -4
  103. package/esm2022/expansion/expansion-module.mjs +5 -5
  104. package/esm2022/expansion/expansion-panel-content.mjs +4 -4
  105. package/esm2022/expansion/expansion-panel-header.mjs +10 -10
  106. package/esm2022/expansion/expansion-panel.mjs +7 -7
  107. package/esm2022/form-field/directives/error.mjs +4 -4
  108. package/esm2022/form-field/directives/floating-label.mjs +4 -4
  109. package/esm2022/form-field/directives/hint.mjs +4 -4
  110. package/esm2022/form-field/directives/label.mjs +4 -4
  111. package/esm2022/form-field/directives/line-ripple.mjs +4 -4
  112. package/esm2022/form-field/directives/notched-outline.mjs +4 -4
  113. package/esm2022/form-field/directives/prefix.mjs +4 -4
  114. package/esm2022/form-field/directives/suffix.mjs +4 -4
  115. package/esm2022/form-field/form-field-control.mjs +4 -4
  116. package/esm2022/form-field/form-field.mjs +15 -9
  117. package/esm2022/form-field/module.mjs +5 -5
  118. package/esm2022/grid-list/grid-list-module.mjs +5 -5
  119. package/esm2022/grid-list/grid-list.mjs +4 -4
  120. package/esm2022/grid-list/grid-tile.mjs +16 -16
  121. package/esm2022/icon/icon-module.mjs +5 -5
  122. package/esm2022/icon/icon-registry.mjs +4 -4
  123. package/esm2022/icon/icon.mjs +11 -5
  124. package/esm2022/icon/testing/fake-icon-registry.mjs +8 -8
  125. package/esm2022/input/input.mjs +4 -4
  126. package/esm2022/input/module.mjs +5 -5
  127. package/esm2022/list/action-list.mjs +4 -4
  128. package/esm2022/list/list-base.mjs +7 -7
  129. package/esm2022/list/list-item-sections.mjs +19 -19
  130. package/esm2022/list/list-module.mjs +5 -5
  131. package/esm2022/list/list-option.mjs +6 -6
  132. package/esm2022/list/list.mjs +7 -7
  133. package/esm2022/list/nav-list.mjs +4 -4
  134. package/esm2022/list/selection-list.mjs +12 -5
  135. package/esm2022/list/subheader.mjs +4 -4
  136. package/esm2022/menu/menu-content.mjs +4 -4
  137. package/esm2022/menu/menu-item.mjs +4 -4
  138. package/esm2022/menu/menu-trigger.mjs +4 -4
  139. package/esm2022/menu/menu.mjs +15 -6
  140. package/esm2022/menu/module.mjs +5 -5
  141. package/esm2022/paginator/module.mjs +5 -5
  142. package/esm2022/paginator/paginator-intl.mjs +4 -4
  143. package/esm2022/paginator/paginator.mjs +5 -5
  144. package/esm2022/progress-bar/module.mjs +5 -5
  145. package/esm2022/progress-bar/progress-bar.mjs +4 -4
  146. package/esm2022/progress-spinner/module.mjs +5 -5
  147. package/esm2022/progress-spinner/progress-spinner.mjs +4 -4
  148. package/esm2022/radio/module.mjs +5 -5
  149. package/esm2022/radio/radio.mjs +9 -8
  150. package/esm2022/select/module.mjs +5 -5
  151. package/esm2022/select/select.mjs +7 -7
  152. package/esm2022/sidenav/drawer.mjs +10 -10
  153. package/esm2022/sidenav/sidenav-module.mjs +5 -5
  154. package/esm2022/sidenav/sidenav.mjs +10 -10
  155. package/esm2022/slide-toggle/module.mjs +9 -9
  156. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +4 -4
  157. package/esm2022/slide-toggle/slide-toggle.mjs +4 -4
  158. package/esm2022/slider/module.mjs +5 -5
  159. package/esm2022/slider/slider-input.mjs +7 -7
  160. package/esm2022/slider/slider-interface.mjs +2 -2
  161. package/esm2022/slider/slider-thumb.mjs +4 -4
  162. package/esm2022/slider/slider.mjs +4 -4
  163. package/esm2022/snack-bar/module.mjs +5 -5
  164. package/esm2022/snack-bar/simple-snack-bar.mjs +4 -4
  165. package/esm2022/snack-bar/snack-bar-container.mjs +4 -4
  166. package/esm2022/snack-bar/snack-bar-content.mjs +10 -10
  167. package/esm2022/snack-bar/snack-bar.mjs +4 -4
  168. package/esm2022/sort/sort-header-intl.mjs +4 -4
  169. package/esm2022/sort/sort-header.mjs +4 -4
  170. package/esm2022/sort/sort-module.mjs +5 -5
  171. package/esm2022/sort/sort.mjs +4 -4
  172. package/esm2022/stepper/step-content.mjs +4 -4
  173. package/esm2022/stepper/step-header.mjs +4 -4
  174. package/esm2022/stepper/step-label.mjs +4 -4
  175. package/esm2022/stepper/stepper-button.mjs +7 -7
  176. package/esm2022/stepper/stepper-icon.mjs +4 -4
  177. package/esm2022/stepper/stepper-intl.mjs +4 -4
  178. package/esm2022/stepper/stepper-module.mjs +5 -5
  179. package/esm2022/stepper/stepper.mjs +7 -7
  180. package/esm2022/table/cell.mjs +22 -22
  181. package/esm2022/table/module.mjs +5 -5
  182. package/esm2022/table/row.mjs +22 -22
  183. package/esm2022/table/table.mjs +7 -7
  184. package/esm2022/table/text-column.mjs +4 -4
  185. package/esm2022/tabs/ink-bar.mjs +4 -4
  186. package/esm2022/tabs/module.mjs +5 -5
  187. package/esm2022/tabs/paginated-tab-header.mjs +4 -4
  188. package/esm2022/tabs/tab-body.mjs +7 -7
  189. package/esm2022/tabs/tab-content.mjs +4 -4
  190. package/esm2022/tabs/tab-group.mjs +4 -4
  191. package/esm2022/tabs/tab-header.mjs +5 -5
  192. package/esm2022/tabs/tab-label-wrapper.mjs +4 -4
  193. package/esm2022/tabs/tab-label.mjs +4 -4
  194. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +18 -12
  195. package/esm2022/tabs/tab.mjs +4 -4
  196. package/esm2022/toolbar/toolbar-module.mjs +5 -5
  197. package/esm2022/toolbar/toolbar.mjs +7 -7
  198. package/esm2022/tooltip/module.mjs +5 -5
  199. package/esm2022/tooltip/tooltip.mjs +7 -7
  200. package/esm2022/tree/node.mjs +10 -10
  201. package/esm2022/tree/outlet.mjs +4 -4
  202. package/esm2022/tree/padding.mjs +4 -4
  203. package/esm2022/tree/toggle.mjs +4 -4
  204. package/esm2022/tree/tree-module.mjs +5 -5
  205. package/esm2022/tree/tree.mjs +4 -4
  206. package/fesm2022/autocomplete.mjs +41 -13
  207. package/fesm2022/autocomplete.mjs.map +1 -1
  208. package/fesm2022/badge.mjs +14 -11
  209. package/fesm2022/badge.mjs.map +1 -1
  210. package/fesm2022/bottom-sheet.mjs +15 -16
  211. package/fesm2022/bottom-sheet.mjs.map +1 -1
  212. package/fesm2022/button-toggle.mjs +10 -10
  213. package/fesm2022/button-toggle.mjs.map +1 -1
  214. package/fesm2022/button.mjs +34 -34
  215. package/fesm2022/button.mjs.map +1 -1
  216. package/fesm2022/card.mjs +46 -46
  217. package/fesm2022/card.mjs.map +1 -1
  218. package/fesm2022/checkbox.mjs +14 -14
  219. package/fesm2022/checkbox.mjs.map +1 -1
  220. package/fesm2022/chips.mjs +59 -53
  221. package/fesm2022/chips.mjs.map +1 -1
  222. package/fesm2022/core.mjs +61 -61
  223. package/fesm2022/core.mjs.map +1 -1
  224. package/fesm2022/datepicker.mjs +121 -88
  225. package/fesm2022/datepicker.mjs.map +1 -1
  226. package/fesm2022/dialog/testing.mjs +3 -2
  227. package/fesm2022/dialog/testing.mjs.map +1 -1
  228. package/fesm2022/dialog.mjs +25 -30
  229. package/fesm2022/dialog.mjs.map +1 -1
  230. package/fesm2022/divider.mjs +7 -7
  231. package/fesm2022/divider.mjs.map +1 -1
  232. package/fesm2022/expansion.mjs +25 -25
  233. package/fesm2022/expansion.mjs.map +1 -1
  234. package/fesm2022/form-field.mjs +43 -37
  235. package/fesm2022/form-field.mjs.map +1 -1
  236. package/fesm2022/grid-list.mjs +22 -22
  237. package/fesm2022/grid-list.mjs.map +1 -1
  238. package/fesm2022/icon/testing.mjs +7 -7
  239. package/fesm2022/icon/testing.mjs.map +1 -1
  240. package/fesm2022/icon.mjs +17 -11
  241. package/fesm2022/icon.mjs.map +1 -1
  242. package/fesm2022/input.mjs +7 -7
  243. package/fesm2022/input.mjs.map +1 -1
  244. package/fesm2022/list.mjs +59 -52
  245. package/fesm2022/list.mjs.map +1 -1
  246. package/fesm2022/menu.mjs +27 -18
  247. package/fesm2022/menu.mjs.map +1 -1
  248. package/fesm2022/paginator.mjs +11 -11
  249. package/fesm2022/paginator.mjs.map +1 -1
  250. package/fesm2022/progress-bar.mjs +7 -7
  251. package/fesm2022/progress-bar.mjs.map +1 -1
  252. package/fesm2022/progress-spinner.mjs +7 -7
  253. package/fesm2022/progress-spinner.mjs.map +1 -1
  254. package/fesm2022/radio.mjs +12 -11
  255. package/fesm2022/radio.mjs.map +1 -1
  256. package/fesm2022/select.mjs +10 -10
  257. package/fesm2022/select.mjs.map +1 -1
  258. package/fesm2022/sidenav.mjs +22 -22
  259. package/fesm2022/sidenav.mjs.map +1 -1
  260. package/fesm2022/slide-toggle.mjs +14 -14
  261. package/fesm2022/slide-toggle.mjs.map +1 -1
  262. package/fesm2022/slider.mjs +17 -17
  263. package/fesm2022/slider.mjs.map +1 -1
  264. package/fesm2022/snack-bar.mjs +22 -22
  265. package/fesm2022/snack-bar.mjs.map +1 -1
  266. package/fesm2022/sort.mjs +13 -13
  267. package/fesm2022/sort.mjs.map +1 -1
  268. package/fesm2022/stepper.mjs +31 -31
  269. package/fesm2022/stepper.mjs.map +1 -1
  270. package/fesm2022/table.mjs +55 -55
  271. package/fesm2022/table.mjs.map +1 -1
  272. package/fesm2022/tabs.mjs +52 -46
  273. package/fesm2022/tabs.mjs.map +1 -1
  274. package/fesm2022/toolbar.mjs +10 -10
  275. package/fesm2022/toolbar.mjs.map +1 -1
  276. package/fesm2022/tooltip.mjs +10 -10
  277. package/fesm2022/tooltip.mjs.map +1 -1
  278. package/fesm2022/tree.mjs +25 -25
  279. package/fesm2022/tree.mjs.map +1 -1
  280. package/form-field/index.d.ts +12 -2
  281. package/icon/index.d.ts +14 -2
  282. package/list/_list-theme.scss +8 -5
  283. package/list/index.d.ts +8 -1
  284. package/package.json +2 -2
  285. package/paginator/index.d.ts +7 -1
  286. package/prebuilt-themes/azure-blue.css +1 -1
  287. package/prebuilt-themes/cyan-orange.css +1 -1
  288. package/prebuilt-themes/deeppurple-amber.css +1 -1
  289. package/prebuilt-themes/indigo-pink.css +1 -1
  290. package/prebuilt-themes/magenta-violet.css +1 -1
  291. package/prebuilt-themes/pink-bluegrey.css +1 -1
  292. package/prebuilt-themes/purple-green.css +1 -1
  293. package/prebuilt-themes/rose-red.css +1 -1
  294. package/radio/_radio-common.scss +238 -0
  295. package/radio/_radio-theme.scss +25 -32
  296. package/radio/index.d.ts +7 -1
  297. package/schematics/ng-add/fonts/material-fonts.js +2 -3
  298. package/schematics/ng-add/fonts/material-fonts.mjs +2 -3
  299. package/schematics/ng-add/index.js +3 -3
  300. package/schematics/ng-add/index.mjs +3 -3
  301. package/schematics/ng-add/package-config.js +3 -4
  302. package/schematics/ng-add/package-config.mjs +3 -4
  303. package/schematics/ng-add/setup-project.js +2 -2
  304. package/schematics/ng-add/setup-project.mjs +2 -2
  305. package/schematics/ng-add/theming/create-custom-theme.js +2 -3
  306. package/schematics/ng-add/theming/create-custom-theme.mjs +2 -3
  307. package/schematics/ng-add/theming/theming.js +3 -4
  308. package/schematics/ng-add/theming/theming.mjs +3 -4
  309. package/schematics/ng-generate/address-form/index.js +2 -2
  310. package/schematics/ng-generate/address-form/index.mjs +2 -2
  311. package/schematics/ng-generate/dashboard/index.js +2 -2
  312. package/schematics/ng-generate/dashboard/index.mjs +2 -2
  313. package/schematics/ng-generate/m3-theme/index_bundled.js +81 -2
  314. package/schematics/ng-generate/m3-theme/index_bundled.js.map +3 -3
  315. package/schematics/ng-generate/navigation/index.js +2 -2
  316. package/schematics/ng-generate/navigation/index.mjs +2 -2
  317. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
  318. package/schematics/ng-generate/table/index.js +2 -2
  319. package/schematics/ng-generate/table/index.mjs +2 -2
  320. package/schematics/ng-generate/tree/index.js +2 -2
  321. package/schematics/ng-generate/tree/index.mjs +2 -2
  322. package/schematics/ng-update/index_bundled.js +160 -24
  323. package/schematics/ng-update/index_bundled.js.map +2 -2
  324. package/slide-toggle/index.d.ts +7 -1
  325. package/slider/index.d.ts +1 -1
  326. package/sort/index.d.ts +1 -1
  327. package/stepper/index.d.ts +21 -3
  328. package/tabs/index.d.ts +7 -1
  329. package/toolbar/index.d.ts +7 -1
  330. package/tree/index.d.ts +2 -2
package/_index.scss CHANGED
@@ -127,7 +127,7 @@
127
127
  @forward './slider/slider-theme' as slider-* show slider-theme, slider-color, slider-typography,
128
128
  slider-density, slider-base, slider-overrides;
129
129
  @forward './snack-bar/snack-bar-theme' as snack-bar-* show snack-bar-theme, snack-bar-color,
130
- snack-bar-typography, snack-bar-density, snack-bar-base, bar-overrides;
130
+ snack-bar-typography, snack-bar-density, snack-bar-base, snack-bar-overrides;
131
131
  @forward './sort/sort-theme' as sort-* show sort-theme, sort-color, sort-typography, sort-density,
132
132
  sort-base, sort-overrides;
133
133
  @forward './stepper/stepper-theme' as stepper-* show stepper-theme, stepper-color,
@@ -289,6 +289,9 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
289
289
  private _closingActionsSubscription;
290
290
  /** Subscription to viewport size changes. */
291
291
  private _viewportSubscription;
292
+ /** Implements BreakpointObserver to be used to detect handset landscape */
293
+ private _breakpointObserver;
294
+ private _handsetLandscapeSubscription;
292
295
  /**
293
296
  * Whether the autocomplete can open the next time it is focused. Used to prevent a focused,
294
297
  * closed autocomplete from being reopened if the user switches to another browser tab and then
@@ -340,7 +343,7 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
340
343
  autocompleteDisabled: boolean;
341
344
  private _initialized;
342
345
  private _injector;
343
- constructor(_element: ElementRef<HTMLInputElement>, _overlay: Overlay, _viewContainerRef: ViewContainerRef, _zone: NgZone, _changeDetectorRef: ChangeDetectorRef, scrollStrategy: any, _dir: Directionality | null, _formField: MatFormField | null, _document: any, _viewportRuler: ViewportRuler, _defaults?: MatAutocompleteDefaultOptions | null | undefined);
346
+ constructor(_element: ElementRef<HTMLInputElement>, _overlay: Overlay, _viewContainerRef: ViewContainerRef, _zone: NgZone, _changeDetectorRef: ChangeDetectorRef, scrollStrategy: any, _dir: Directionality | null, _formField: MatFormField | null, _document: any, _viewportRuler: ViewportRuler, _defaults?: (MatAutocompleteDefaultOptions | null) | undefined);
344
347
  /** Class to apply to the panel when it's above the input. */
345
348
  private _aboveClass;
346
349
  ngAfterViewInit(): void;
package/badge/index.d.ts CHANGED
@@ -25,7 +25,10 @@ export declare class MatBadge implements OnInit, OnDestroy {
25
25
  private _ariaDescriber;
26
26
  private _renderer;
27
27
  private _animationMode?;
28
- /** The color of the badge. Can be `primary`, `accent`, or `warn`. */
28
+ /**
29
+ * The color of the badge. Can be `primary`, `accent`, or `warn`.
30
+ * Not recommended in M3, for more information see https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants.
31
+ */
29
32
  get color(): ThemePalette;
30
33
  set color(value: ThemePalette);
31
34
  private _color;
@@ -54,7 +54,7 @@ export declare class MatBottomSheet implements OnDestroy {
54
54
  /** Reference to the currently opened bottom sheet. */
55
55
  get _openedBottomSheetRef(): MatBottomSheetRef<any> | null;
56
56
  set _openedBottomSheetRef(value: MatBottomSheetRef<any> | null);
57
- constructor(_overlay: Overlay, injector: Injector, _parentBottomSheet: MatBottomSheet, _defaultOptions?: MatBottomSheetConfig<any> | undefined);
57
+ constructor(_overlay: Overlay, injector: Injector, _parentBottomSheet: MatBottomSheet, _defaultOptions?: MatBottomSheetConfig | undefined);
58
58
  /**
59
59
  * Opens a bottom sheet containing the given component.
60
60
  * @param component Type of the component to load into the bottom sheet.
@@ -148,7 +148,6 @@ export declare class MatBottomSheetContainer extends CdkDialogContainer implemen
148
148
  _onAnimationDone(event: AnimationEvent_2): void;
149
149
  _onAnimationStart(event: AnimationEvent_2): void;
150
150
  protected _captureInitialFocus(): void;
151
- private _toggleClass;
152
151
  static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetContainer, [null, null, { optional: true; }, null, null, null, null, null, null]>;
153
152
  static ɵcmp: i0.ɵɵComponentDeclaration<MatBottomSheetContainer, "mat-bottom-sheet-container", never, {}, {}, never, never, true, never>;
154
153
  }
package/button/index.d.ts CHANGED
@@ -114,7 +114,13 @@ declare class MatButtonBase implements AfterViewInit, OnDestroy {
114
114
  */
115
115
  get ripple(): MatRipple;
116
116
  set ripple(v: MatRipple);
117
- /** Theme color palette of the button */
117
+ /**
118
+ * Theme color of the button. This API is supported in M2 themes only, it has
119
+ * no effect in M3 themes.
120
+ *
121
+ * For information on applying color variants in M3, see
122
+ * https://material.angular.io/guide/theming#using-component-color-variants.
123
+ */
118
124
  color?: string | null;
119
125
  /** Whether the ripple effect is disabled or not. */
120
126
  get disableRipple(): boolean;
@@ -109,7 +109,13 @@ export declare class MatCheckbox implements AfterViewInit, OnChanges, ControlVal
109
109
  _labelElement: ElementRef<HTMLInputElement>;
110
110
  /** Tabindex for the checkbox. */
111
111
  tabIndex: number;
112
- /** Palette color of the checkbox. */
112
+ /**
113
+ * Theme color of the checkbox. This API is supported in M2 themes only, it
114
+ * has no effect in M3 themes.
115
+ *
116
+ * For information on applying color variants in M3, see
117
+ * https://material.angular.io/guide/theming#using-component-color-variants.
118
+ */
113
119
  color: string | undefined;
114
120
  /**
115
121
  * Reference to the MatRipple instance of the checkbox.
@@ -211,7 +217,11 @@ export declare type MatCheckboxClickAction = 'noop' | 'check' | 'check-indetermi
211
217
 
212
218
  /** Default `mat-checkbox` options that can be overridden. */
213
219
  export declare interface MatCheckboxDefaultOptions {
214
- /** Default theme color palette to be used for checkboxes. */
220
+ /**
221
+ * Default theme color palette to be used for checkboxes. This API is supported in M2 themes
222
+ * only, it has no effect in M3 themes. For information on applying color variants in M3, see
223
+ * https://material.angular.io/guide/theming#using-component-color-variants
224
+ */
215
225
  color?: ThemePalette;
216
226
  /** Default checkbox click action for checkboxes. */
217
227
  clickAction?: MatCheckboxClickAction;
package/chips/index.d.ts CHANGED
@@ -13,6 +13,7 @@ import { FormGroupDirective } from '@angular/forms';
13
13
  import * as i0 from '@angular/core';
14
14
  import * as i1 from '@angular/material/core';
15
15
  import { InjectionToken } from '@angular/core';
16
+ import { Injector } from '@angular/core';
16
17
  import { MatFormField } from '@angular/material/form-field';
17
18
  import { MatFormFieldControl } from '@angular/material/form-field';
18
19
  import { MatRipple } from '@angular/material/core';
@@ -184,7 +185,13 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
184
185
  get value(): any;
185
186
  set value(value: any);
186
187
  protected _value: any;
187
- /** Theme color palette of the chip. */
188
+ /**
189
+ * Theme color of the chip. This API is supported in M2 themes only, it has no
190
+ * effect in M3 themes.
191
+ *
192
+ * For information on applying color variants in M3, see
193
+ * https://material.angular.io/guide/theming#using-component-color-variants.
194
+ */
188
195
  color?: string | null;
189
196
  /**
190
197
  * Determines whether or not the chip displays the remove styling and emits (removed) events.
@@ -226,7 +233,7 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
226
233
  * Used to improve initial load time of large applications.
227
234
  */
228
235
  _rippleLoader: MatRippleLoader;
229
- private _injector;
236
+ protected _injector: Injector;
230
237
  constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusMonitor: FocusMonitor, _document: any, animationMode?: string, _globalRippleOptions?: RippleGlobalOptions | undefined, tabIndex?: string);
231
238
  ngOnInit(): void;
232
239
  ngAfterViewInit(): void;
@@ -354,7 +361,7 @@ export declare interface MatChipEvent {
354
361
  * An extension of the MatChipSet component used with MatChipRow chips and
355
362
  * the matChipInputFor directive.
356
363
  */
357
- export declare class MatChipGrid extends MatChipSet implements AfterContentInit, AfterViewInit, ControlValueAccessor, DoCheck, MatFormFieldControl<any>, OnDestroy {
364
+ export declare class MatChipGrid extends MatChipSet implements AfterContentInit, AfterViewInit, ControlValueAccessor, DoCheck, MatFormFieldControl<any>, OnDestroy, OnInit {
358
365
  ngControl: NgControl;
359
366
  /**
360
367
  * Implemented as part of MatFormFieldControl.
@@ -447,6 +454,7 @@ export declare class MatChipGrid extends MatChipSet implements AfterContentInit,
447
454
  get errorState(): boolean;
448
455
  set errorState(value: boolean);
449
456
  constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, dir: Directionality, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, ngControl: NgControl);
457
+ ngOnInit(): void;
450
458
  ngAfterContentInit(): void;
451
459
  ngAfterViewInit(): void;
452
460
  ngDoCheck(): void;
@@ -1,18 +1,17 @@
1
1
  @use './theming/theming';
2
2
  @use './theming/inspection';
3
3
  @use './theming/validation';
4
- @use './style/private';
5
4
  @use './ripple/ripple-theme';
6
5
  @use './option/option-theme';
7
6
  @use './option/optgroup-theme';
8
7
  @use './selection/pseudo-checkbox/pseudo-checkbox-theme';
9
- @use './style/elevation';
10
8
  @use './style/sass-utils';
11
9
  @use './typography/typography';
12
10
  @use './tokens/token-utils';
13
11
  @use './tokens/m2/mat/app' as tokens-mat-app;
14
12
  @use './tokens/m2/mat/ripple' as tokens-mat-ripple;
15
13
  @use './tokens/m2/mat/option' as tokens-mat-option;
14
+ @use './tokens/m2/mat/optgroup' as tokens-mat-optgroup;
16
15
  @use './tokens/m2/mat/full-pseudo-checkbox' as tokens-mat-full-pseudo-checkbox;
17
16
  @use './tokens/m2/mat/minimal-pseudo-checkbox' as tokens-mat-minimal-pseudo-checkbox;
18
17
 
@@ -41,6 +40,10 @@ $_has-inserted-loaded-marker: false;
41
40
  @include option-theme.base($theme);
42
41
  @include optgroup-theme.base($theme);
43
42
  @include pseudo-checkbox-theme.base($theme);
43
+ @include sass-utils.current-selector-or-root() {
44
+ @include token-utils.create-token-values(tokens-mat-app.$prefix,
45
+ tokens-mat-app.get-unthemable-tokens());
46
+ }
44
47
  }
45
48
 
46
49
  // The marker is a concrete style no matter which Material version we're targeting.
@@ -60,18 +63,6 @@ $_has-inserted-loaded-marker: false;
60
63
  @include token-utils.create-token-values(tokens-mat-app.$prefix,
61
64
  tokens-mat-app.get-color-tokens($theme));
62
65
  }
63
-
64
- // Provides external CSS classes for each elevation value. Each CSS class is formatted as
65
- // `mat-elevation-z$zValue` where `$zValue` corresponds to the z-space to which the element is
66
- // elevated.
67
- @for $zValue from 0 through 24 {
68
- $selector: elevation.$prefix + $zValue;
69
- // We need the `mat-mdc-elevation-specific`, because some MDC mixins
70
- // come with elevation baked in and we don't have a way of removing it.
71
- .#{$selector}, .mat-mdc-elevation-specific.#{$selector} {
72
- @include private.private-theme-elevation($zValue, $theme);
73
- }
74
- }
75
66
  }
76
67
  }
77
68
 
@@ -149,6 +140,8 @@ $_has-inserted-loaded-marker: false;
149
140
  $mat-app-tokens: token-utils.get-tokens-for($tokens, tokens-mat-app.$prefix, $options...);
150
141
  $mat-ripple-tokens: token-utils.get-tokens-for($tokens, tokens-mat-ripple.$prefix, $options...);
151
142
  $mat-option-tokens: token-utils.get-tokens-for($tokens, tokens-mat-option.$prefix, $options...);
143
+ $mat-optgroup-tokens:
144
+ token-utils.get-tokens-for($tokens, tokens-mat-optgroup.$prefix, $options...);
152
145
  $mat-full-pseudo-checkbox-tokens: token-utils.get-tokens-for($tokens,
153
146
  tokens-mat-full-pseudo-checkbox.$prefix, $options...);
154
147
  $mat-minimal-pseudo-checkbox-tokens: token-utils.get-tokens-for($tokens,
@@ -157,6 +150,7 @@ $_has-inserted-loaded-marker: false;
157
150
  @include token-utils.create-token-values(tokens-mat-app.$prefix, $mat-app-tokens);
158
151
  @include token-utils.create-token-values(tokens-mat-ripple.$prefix, $mat-ripple-tokens);
159
152
  @include token-utils.create-token-values(tokens-mat-option.$prefix, $mat-option-tokens);
153
+ @include token-utils.create-token-values(tokens-mat-optgroup.$prefix, $mat-optgroup-tokens);
160
154
  @include token-utils.create-token-values(tokens-mat-full-pseudo-checkbox.$prefix,
161
155
  $mat-full-pseudo-checkbox-tokens);
162
156
  @include token-utils.create-token-values(tokens-mat-minimal-pseudo-checkbox.$prefix,
package/core/_core.scss CHANGED
@@ -2,6 +2,7 @@
2
2
  @use './tokens/m2/mat/app' as tokens-mat-app;
3
3
  @use './tokens/token-utils';
4
4
  @use './ripple/ripple';
5
+ @use './style/elevation';
5
6
  @use './focus-indicators/private';
6
7
  @use './mdc-helpers/mdc-helpers';
7
8
 
@@ -18,13 +19,26 @@
18
19
  // Wrapper element that provides the theme background when the
19
20
  // user's content isn't inside of a `mat-sidenav-container`.
20
21
  @at-root {
21
- .mat-app-background {
22
- @include mdc-helpers.disable-mdc-fallback-declarations {
23
- @include token-utils.use-tokens(tokens-mat-app.$prefix, tokens-mat-app.get-token-slots()) {
24
- // Note: we need to emit fallback values here to avoid errors in internal builds.
22
+ // Note: we need to emit fallback values here to avoid errors in internal builds.
23
+ @include mdc-helpers.disable-mdc-fallback-declarations {
24
+ @include token-utils.use-tokens(tokens-mat-app.$prefix, tokens-mat-app.get-token-slots()) {
25
+ .mat-app-background {
25
26
  @include token-utils.create-token-slot(background-color, background-color, transparent);
26
27
  @include token-utils.create-token-slot(color, text-color, inherit);
27
28
  }
29
+
30
+ // Provides external CSS classes for each elevation value. Each CSS class is formatted as
31
+ // `mat-elevation-z$zValue` where `$zValue` corresponds to the z-space to which the element
32
+ // is elevated.
33
+ @for $zValue from 0 through 24 {
34
+ $selector: elevation.$prefix + $zValue;
35
+ // We need the `mat-mdc-elevation-specific`, because some MDC mixins
36
+ // come with elevation baked in and we don't have a way of removing it.
37
+ .#{$selector}, .mat-mdc-elevation-specific.#{$selector} {
38
+ @include token-utils.create-token-slot(box-shadow, 'elevation-shadow-level-#{$zValue}',
39
+ none);
40
+ }
41
+ }
28
42
  }
29
43
  }
30
44
  }
package/core/index.d.ts CHANGED
@@ -970,7 +970,7 @@ export declare class NativeDateAdapter extends DateAdapter<Date> {
970
970
  * invalid date for all other values.
971
971
  */
972
972
  deserialize(value: any): Date | null;
973
- isDateInstance(obj: any): boolean;
973
+ isDateInstance(obj: any): obj is Date;
974
974
  isValid(date: Date): boolean;
975
975
  invalid(): Date;
976
976
  /** Creates a date but allows the month and date to overflow. */
@@ -48,7 +48,7 @@
48
48
  /// @param {Map} $input Configuration for the "input" typographic level.
49
49
  /// @returns {Map} A typography config for the application.
50
50
  ///
51
- /// @deprecated Use `mat.m2-define-typography-config` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
51
+ /// @deprecated Use `mat.m2-define-typography-config` instead. See https://v17.material.angular.io/guide/mdc-migration for information about migrating.
52
52
  /// @breaking-change 17.0.0
53
53
  @function define-legacy-typography-config(
54
54
  $font-family: 'Roboto, "Helvetica Neue", sans-serif',
@@ -89,7 +89,7 @@
89
89
  @if $err {
90
90
  @return (#{'$config should be a color configuration object. Got:'} $config);
91
91
  }
92
- $allowed: (theme-type, primary, tertiary, use-system-variables);
92
+ $allowed: (theme-type, primary, tertiary, use-system-variables, system-variables-prefix);
93
93
  $err: validation.validate-allowed-values(map.keys($config or ()), $allowed...);
94
94
  @if $err {
95
95
  @return (
@@ -134,7 +134,8 @@
134
134
  bold-weight,
135
135
  medium-weight,
136
136
  regular-weight,
137
- use-system-variables
137
+ use-system-variables,
138
+ system-variables-prefix
138
139
  );
139
140
  $err: validation.validate-allowed-values(map.keys($config or ()), $allowed...);
140
141
  @if $err {
@@ -40,6 +40,7 @@ $theme-version: 1;
40
40
  $type: map.get($config, theme-type) or light;
41
41
  $primary: map.get($config, primary) or palettes.$violet-palette;
42
42
  $tertiary: map.get($config, tertiary) or $primary;
43
+ $system-variables-prefix: map.get($config, system-variables-prefix) or sys;
43
44
  sass-utils.$use-system-color-variables: map.get($config, use-system-variables) or false;
44
45
 
45
46
  @return (
@@ -55,7 +56,7 @@ $theme-version: 1;
55
56
  error: map.get($primary, error),
56
57
  ),
57
58
  color-tokens: m3-tokens.generate-color-tokens(
58
- $type, $primary, $tertiary, map.get($primary, error))
59
+ $type, $primary, $tertiary, map.get($primary, error), $system-variables-prefix)
59
60
  )
60
61
  );
61
62
  }
@@ -74,6 +75,7 @@ $theme-version: 1;
74
75
  $bold: map.get($config, bold-weight) or 700;
75
76
  $medium: map.get($config, medium-weight) or 500;
76
77
  $regular: map.get($config, regular-weight) or 400;
78
+ $system-variables-prefix: map.get($config, system-variables-prefix) or sys;
77
79
  sass-utils.$use-system-typography-variables: map.get($config, use-system-variables) or false;
78
80
 
79
81
  @return (
@@ -87,7 +89,7 @@ $theme-version: 1;
87
89
  regular: $regular,
88
90
  ),
89
91
  typography-tokens: m3-tokens.generate-typography-tokens(
90
- $brand, $plain, $bold, $medium, $regular)
92
+ $brand, $plain, $bold, $medium, $regular, $system-variables-prefix)
91
93
  )
92
94
  );
93
95
  }
@@ -12,6 +12,8 @@
12
12
  /// The Material Design spec references some neutral hues that are not generated by
13
13
  /// https://m3.material.io/theme-builder. For now we use this function to estimate the missing hues
14
14
  /// by blending the nearest hues that are generated.
15
+ /// Note: when updating, the corresponding logic in the theme generation schematic should be
16
+ /// updated as well. See `src/material/schematics/ng-generate/m3-theme/index.ts#patchMissingHues`
15
17
  @function _patch-missing-hues($palette) {
16
18
  $neutral: map.get($palette, neutral);
17
19
  $palette: map.set($palette, neutral, 4, _estimate-hue($neutral, 4, 0, 10));
@@ -120,6 +120,7 @@ $_density-tokens: (
120
120
  container-size: (56px, 52px, 48px, 40px),
121
121
  form-field-container-height: (40px, 40px, 40px, 40px, 40px, 36px),
122
122
  form-field-container-vertical-padding: (8px, 8px, 8px, 8px, 8px, 6px),
123
+ touch-target-display: (block, block, none, none),
123
124
  ),
124
125
  (mat, radio): (
125
126
  touch-target-display: (block, block, none, none),