@angular/material 18.1.0-next.3 → 18.1.0-rc.0

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 (312) hide show
  1. package/badge/index.d.ts +5 -2
  2. package/button/_button-base.scss +3 -1
  3. package/button/_fab-theme.scss +16 -16
  4. package/button/_icon-button-theme.scss +14 -20
  5. package/button/index.d.ts +9 -0
  6. package/button-toggle/index.d.ts +2 -2
  7. package/card/_card-theme.scss +25 -52
  8. package/checkbox/index.d.ts +4 -2
  9. package/chips/_chips-theme.scss +22 -24
  10. package/chips/index.d.ts +1 -2
  11. package/core/m2/_typography.scss +5 -2
  12. package/core/mdc-helpers/_mdc-helpers.scss +2 -2
  13. package/core/style/_elevation.scss +5 -0
  14. package/core/style/_vendor-prefixes.scss +5 -0
  15. package/core/tokens/_density.scss +1 -1
  16. package/core/tokens/_token-utils.scss +2 -2
  17. package/core/tokens/m2/_index.scss +2 -2
  18. package/core/tokens/m2/mat/_app.scss +1 -2
  19. package/core/tokens/m2/mat/_autocomplete.scss +2 -2
  20. package/core/tokens/m2/mat/_datepicker.scss +3 -3
  21. package/core/tokens/m2/mat/_dialog.scss +2 -2
  22. package/core/tokens/m2/mat/_fab-small.scss +3 -9
  23. package/core/tokens/m2/mat/_fab.scss +3 -9
  24. package/core/tokens/m2/mat/_filled-button.scss +3 -9
  25. package/core/tokens/m2/mat/_form-field.scss +9 -6
  26. package/core/tokens/m2/mat/_icon-button.scss +3 -9
  27. package/core/tokens/m2/mat/_outlined-button.scss +3 -9
  28. package/core/tokens/m2/mat/_paginator.scss +10 -6
  29. package/core/tokens/m2/mat/_protected-button.scss +3 -9
  30. package/core/tokens/m2/mat/_select.scss +2 -2
  31. package/core/tokens/m2/mat/_sidenav.scss +2 -2
  32. package/core/tokens/m2/mat/_text-button.scss +3 -9
  33. package/core/tokens/m2/mdc/_chip.scss +2 -14
  34. package/core/tokens/m2/mdc/_elevated-card.scss +3 -7
  35. package/core/tokens/m2/mdc/_extended-fab.scss +12 -8
  36. package/core/tokens/m2/mdc/_fab-small.scss +15 -13
  37. package/core/tokens/m2/mdc/_fab.scss +15 -13
  38. package/core/tokens/m2/mdc/_outlined-card.scss +2 -6
  39. package/core/tokens/m2/mdc/{_tab.scss → _secondary-navigation-tab.scss} +1 -1
  40. package/core/tokens/m3/_index.scss +2 -2
  41. package/core/tokens/m3/mat/_app.scss +2 -2
  42. package/core/tokens/m3/mat/_autocomplete.scss +2 -2
  43. package/core/tokens/m3/mat/_datepicker.scss +3 -3
  44. package/core/tokens/m3/mat/_select.scss +2 -2
  45. package/core/tokens/m3/mdc/_chip.scss +1 -4
  46. package/core/tokens/m3/mdc/_elevated-card.scss +9 -2
  47. package/core/tokens/m3/mdc/_extended-fab.scss +19 -2
  48. package/core/tokens/m3/mdc/_fab-small.scss +19 -2
  49. package/core/tokens/m3/mdc/_fab.scss +19 -2
  50. package/core/tokens/m3/mdc/_outlined-card.scss +9 -2
  51. package/core/tokens/m3/mdc/{_tab.scss → _secondary-navigation-tab.scss} +1 -1
  52. package/datepicker/index.d.ts +8 -4
  53. package/esm2022/autocomplete/autocomplete-origin.mjs +3 -3
  54. package/esm2022/autocomplete/autocomplete-trigger.mjs +4 -5
  55. package/esm2022/autocomplete/autocomplete.mjs +3 -3
  56. package/esm2022/autocomplete/module.mjs +4 -4
  57. package/esm2022/badge/badge-module.mjs +4 -4
  58. package/esm2022/badge/badge.mjs +12 -9
  59. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +3 -3
  60. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +4 -4
  61. package/esm2022/bottom-sheet/bottom-sheet.mjs +3 -3
  62. package/esm2022/button/button-base.mjs +10 -9
  63. package/esm2022/button/button.mjs +8 -8
  64. package/esm2022/button/fab.mjs +17 -17
  65. package/esm2022/button/icon-button.mjs +8 -8
  66. package/esm2022/button/module.mjs +4 -4
  67. package/esm2022/button-toggle/button-toggle-module.mjs +4 -4
  68. package/esm2022/button-toggle/button-toggle.mjs +36 -27
  69. package/esm2022/card/card.mjs +43 -43
  70. package/esm2022/card/module.mjs +4 -4
  71. package/esm2022/checkbox/checkbox-config.mjs +1 -1
  72. package/esm2022/checkbox/checkbox-required-validator.mjs +3 -3
  73. package/esm2022/checkbox/checkbox.mjs +3 -3
  74. package/esm2022/checkbox/module.mjs +8 -8
  75. package/esm2022/chips/chip-action.mjs +3 -3
  76. package/esm2022/chips/chip-edit-input.mjs +3 -3
  77. package/esm2022/chips/chip-grid.mjs +6 -13
  78. package/esm2022/chips/chip-icons.mjs +9 -9
  79. package/esm2022/chips/chip-input.mjs +3 -3
  80. package/esm2022/chips/chip-listbox.mjs +5 -5
  81. package/esm2022/chips/chip-option.mjs +6 -6
  82. package/esm2022/chips/chip-row.mjs +6 -6
  83. package/esm2022/chips/chip-set.mjs +5 -5
  84. package/esm2022/chips/chip.mjs +5 -5
  85. package/esm2022/chips/module.mjs +4 -4
  86. package/esm2022/core/common-behaviors/common-module.mjs +4 -4
  87. package/esm2022/core/datetime/index.mjs +8 -8
  88. package/esm2022/core/datetime/native-date-adapter.mjs +3 -3
  89. package/esm2022/core/error/error-options.mjs +6 -6
  90. package/esm2022/core/internal-form-field/internal-form-field.mjs +3 -3
  91. package/esm2022/core/line/line.mjs +7 -7
  92. package/esm2022/core/option/index.mjs +4 -4
  93. package/esm2022/core/option/optgroup.mjs +3 -3
  94. package/esm2022/core/option/option.mjs +3 -3
  95. package/esm2022/core/private/ripple-loader.mjs +3 -3
  96. package/esm2022/core/ripple/index.mjs +4 -4
  97. package/esm2022/core/ripple/ripple-renderer.mjs +21 -3
  98. package/esm2022/core/ripple/ripple.mjs +3 -3
  99. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +4 -4
  100. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  101. package/esm2022/core/version.mjs +1 -1
  102. package/esm2022/datepicker/calendar-body.mjs +3 -3
  103. package/esm2022/datepicker/calendar.mjs +12 -9
  104. package/esm2022/datepicker/date-range-input-parts.mjs +9 -9
  105. package/esm2022/datepicker/date-range-input.mjs +3 -3
  106. package/esm2022/datepicker/date-range-picker.mjs +3 -3
  107. package/esm2022/datepicker/date-range-selection-strategy.mjs +3 -3
  108. package/esm2022/datepicker/date-selection-model.mjs +9 -9
  109. package/esm2022/datepicker/datepicker-actions.mjs +9 -9
  110. package/esm2022/datepicker/datepicker-base.mjs +12 -10
  111. package/esm2022/datepicker/datepicker-input-base.mjs +3 -3
  112. package/esm2022/datepicker/datepicker-input.mjs +3 -3
  113. package/esm2022/datepicker/datepicker-intl.mjs +3 -3
  114. package/esm2022/datepicker/datepicker-module.mjs +4 -4
  115. package/esm2022/datepicker/datepicker-toggle.mjs +6 -6
  116. package/esm2022/datepicker/datepicker.mjs +3 -3
  117. package/esm2022/datepicker/month-view.mjs +3 -3
  118. package/esm2022/datepicker/multi-year-view.mjs +3 -3
  119. package/esm2022/datepicker/year-view.mjs +3 -3
  120. package/esm2022/dialog/dialog-container.mjs +5 -5
  121. package/esm2022/dialog/dialog-content-directives.mjs +15 -15
  122. package/esm2022/dialog/dialog.mjs +3 -3
  123. package/esm2022/dialog/module.mjs +4 -4
  124. package/esm2022/divider/divider-module.mjs +4 -4
  125. package/esm2022/divider/divider.mjs +3 -3
  126. package/esm2022/expansion/accordion.mjs +3 -3
  127. package/esm2022/expansion/expansion-module.mjs +4 -4
  128. package/esm2022/expansion/expansion-panel-content.mjs +3 -3
  129. package/esm2022/expansion/expansion-panel-header.mjs +9 -9
  130. package/esm2022/expansion/expansion-panel.mjs +6 -6
  131. package/esm2022/form-field/directives/error.mjs +3 -3
  132. package/esm2022/form-field/directives/floating-label.mjs +3 -3
  133. package/esm2022/form-field/directives/hint.mjs +3 -3
  134. package/esm2022/form-field/directives/label.mjs +3 -3
  135. package/esm2022/form-field/directives/line-ripple.mjs +3 -3
  136. package/esm2022/form-field/directives/notched-outline.mjs +3 -3
  137. package/esm2022/form-field/directives/prefix.mjs +3 -3
  138. package/esm2022/form-field/directives/suffix.mjs +3 -3
  139. package/esm2022/form-field/form-field-control.mjs +3 -3
  140. package/esm2022/form-field/form-field.mjs +12 -21
  141. package/esm2022/form-field/module.mjs +4 -4
  142. package/esm2022/grid-list/grid-list-module.mjs +4 -4
  143. package/esm2022/grid-list/grid-list.mjs +3 -3
  144. package/esm2022/grid-list/grid-tile.mjs +15 -15
  145. package/esm2022/icon/icon-module.mjs +4 -4
  146. package/esm2022/icon/icon-registry.mjs +3 -3
  147. package/esm2022/icon/icon.mjs +3 -3
  148. package/esm2022/icon/testing/fake-icon-registry.mjs +7 -7
  149. package/esm2022/input/input.mjs +3 -3
  150. package/esm2022/input/module.mjs +4 -4
  151. package/esm2022/list/action-list.mjs +3 -3
  152. package/esm2022/list/list-base.mjs +6 -6
  153. package/esm2022/list/list-item-sections.mjs +18 -18
  154. package/esm2022/list/list-module.mjs +4 -4
  155. package/esm2022/list/list-option.mjs +11 -5
  156. package/esm2022/list/list.mjs +6 -6
  157. package/esm2022/list/nav-list.mjs +3 -3
  158. package/esm2022/list/selection-list.mjs +8 -6
  159. package/esm2022/list/subheader.mjs +3 -3
  160. package/esm2022/menu/menu-content.mjs +3 -3
  161. package/esm2022/menu/menu-item.mjs +3 -3
  162. package/esm2022/menu/menu-trigger.mjs +3 -3
  163. package/esm2022/menu/menu.mjs +3 -3
  164. package/esm2022/menu/module.mjs +4 -4
  165. package/esm2022/paginator/module.mjs +4 -4
  166. package/esm2022/paginator/paginator-intl.mjs +3 -3
  167. package/esm2022/paginator/paginator.mjs +3 -3
  168. package/esm2022/progress-bar/module.mjs +4 -4
  169. package/esm2022/progress-bar/progress-bar.mjs +12 -6
  170. package/esm2022/progress-spinner/module.mjs +4 -4
  171. package/esm2022/progress-spinner/progress-spinner.mjs +11 -5
  172. package/esm2022/radio/module.mjs +4 -4
  173. package/esm2022/radio/radio.mjs +16 -11
  174. package/esm2022/select/module.mjs +4 -4
  175. package/esm2022/select/select.mjs +6 -6
  176. package/esm2022/sidenav/drawer.mjs +13 -10
  177. package/esm2022/sidenav/sidenav-module.mjs +4 -4
  178. package/esm2022/sidenav/sidenav.mjs +9 -9
  179. package/esm2022/slide-toggle/module.mjs +8 -8
  180. package/esm2022/slide-toggle/slide-toggle-config.mjs +1 -1
  181. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +3 -3
  182. package/esm2022/slide-toggle/slide-toggle.mjs +6 -6
  183. package/esm2022/slider/module.mjs +4 -4
  184. package/esm2022/slider/slider-input.mjs +6 -6
  185. package/esm2022/slider/slider-thumb.mjs +3 -3
  186. package/esm2022/slider/slider.mjs +4 -4
  187. package/esm2022/snack-bar/module.mjs +4 -4
  188. package/esm2022/snack-bar/simple-snack-bar.mjs +3 -3
  189. package/esm2022/snack-bar/snack-bar-container.mjs +3 -3
  190. package/esm2022/snack-bar/snack-bar-content.mjs +9 -9
  191. package/esm2022/snack-bar/snack-bar.mjs +3 -3
  192. package/esm2022/sort/sort-header-intl.mjs +3 -3
  193. package/esm2022/sort/sort-header.mjs +3 -3
  194. package/esm2022/sort/sort-module.mjs +4 -4
  195. package/esm2022/sort/sort.mjs +3 -3
  196. package/esm2022/stepper/step-content.mjs +3 -3
  197. package/esm2022/stepper/step-header.mjs +3 -3
  198. package/esm2022/stepper/step-label.mjs +3 -3
  199. package/esm2022/stepper/stepper-button.mjs +6 -6
  200. package/esm2022/stepper/stepper-icon.mjs +3 -3
  201. package/esm2022/stepper/stepper-intl.mjs +3 -3
  202. package/esm2022/stepper/stepper-module.mjs +4 -4
  203. package/esm2022/stepper/stepper.mjs +6 -6
  204. package/esm2022/table/cell.mjs +21 -21
  205. package/esm2022/table/module.mjs +4 -4
  206. package/esm2022/table/row.mjs +21 -21
  207. package/esm2022/table/table.mjs +6 -6
  208. package/esm2022/table/text-column.mjs +3 -3
  209. package/esm2022/tabs/ink-bar.mjs +3 -3
  210. package/esm2022/tabs/module.mjs +4 -4
  211. package/esm2022/tabs/paginated-tab-header.mjs +3 -3
  212. package/esm2022/tabs/tab-body.mjs +11 -18
  213. package/esm2022/tabs/tab-content.mjs +3 -3
  214. package/esm2022/tabs/tab-group.mjs +12 -7
  215. package/esm2022/tabs/tab-header.mjs +5 -5
  216. package/esm2022/tabs/tab-label-wrapper.mjs +3 -3
  217. package/esm2022/tabs/tab-label.mjs +3 -3
  218. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +19 -13
  219. package/esm2022/tabs/tab.mjs +3 -3
  220. package/esm2022/toolbar/toolbar-module.mjs +4 -4
  221. package/esm2022/toolbar/toolbar.mjs +6 -6
  222. package/esm2022/tooltip/module.mjs +4 -4
  223. package/esm2022/tooltip/tooltip.mjs +8 -8
  224. package/esm2022/tree/node.mjs +9 -9
  225. package/esm2022/tree/outlet.mjs +3 -3
  226. package/esm2022/tree/padding.mjs +3 -3
  227. package/esm2022/tree/toggle.mjs +3 -3
  228. package/esm2022/tree/tree-module.mjs +4 -4
  229. package/esm2022/tree/tree.mjs +3 -3
  230. package/fesm2022/autocomplete.mjs +13 -14
  231. package/fesm2022/autocomplete.mjs.map +1 -1
  232. package/fesm2022/badge.mjs +15 -12
  233. package/fesm2022/badge.mjs.map +1 -1
  234. package/fesm2022/bottom-sheet.mjs +10 -10
  235. package/fesm2022/button-toggle.mjs +39 -30
  236. package/fesm2022/button-toggle.mjs.map +1 -1
  237. package/fesm2022/button.mjs +45 -44
  238. package/fesm2022/button.mjs.map +1 -1
  239. package/fesm2022/card.mjs +47 -47
  240. package/fesm2022/card.mjs.map +1 -1
  241. package/fesm2022/checkbox.mjs +14 -14
  242. package/fesm2022/checkbox.mjs.map +1 -1
  243. package/fesm2022/chips.mjs +51 -58
  244. package/fesm2022/chips.mjs.map +1 -1
  245. package/fesm2022/core.mjs +79 -61
  246. package/fesm2022/core.mjs.map +1 -1
  247. package/fesm2022/datepicker.mjs +92 -87
  248. package/fesm2022/datepicker.mjs.map +1 -1
  249. package/fesm2022/dialog.mjs +26 -26
  250. package/fesm2022/dialog.mjs.map +1 -1
  251. package/fesm2022/divider.mjs +7 -7
  252. package/fesm2022/expansion.mjs +25 -25
  253. package/fesm2022/form-field.mjs +42 -51
  254. package/fesm2022/form-field.mjs.map +1 -1
  255. package/fesm2022/grid-list.mjs +22 -22
  256. package/fesm2022/icon/testing.mjs +7 -7
  257. package/fesm2022/icon.mjs +10 -10
  258. package/fesm2022/input.mjs +7 -7
  259. package/fesm2022/list.mjs +59 -51
  260. package/fesm2022/list.mjs.map +1 -1
  261. package/fesm2022/menu.mjs +16 -16
  262. package/fesm2022/paginator.mjs +10 -10
  263. package/fesm2022/progress-bar.mjs +15 -9
  264. package/fesm2022/progress-bar.mjs.map +1 -1
  265. package/fesm2022/progress-spinner.mjs +14 -8
  266. package/fesm2022/progress-spinner.mjs.map +1 -1
  267. package/fesm2022/radio.mjs +19 -14
  268. package/fesm2022/radio.mjs.map +1 -1
  269. package/fesm2022/select.mjs +10 -10
  270. package/fesm2022/sidenav.mjs +26 -23
  271. package/fesm2022/sidenav.mjs.map +1 -1
  272. package/fesm2022/slide-toggle.mjs +16 -16
  273. package/fesm2022/slide-toggle.mjs.map +1 -1
  274. package/fesm2022/slider.mjs +16 -16
  275. package/fesm2022/slider.mjs.map +1 -1
  276. package/fesm2022/snack-bar.mjs +22 -22
  277. package/fesm2022/sort.mjs +13 -13
  278. package/fesm2022/stepper.mjs +31 -31
  279. package/fesm2022/table.mjs +55 -55
  280. package/fesm2022/tabs.mjs +62 -51
  281. package/fesm2022/tabs.mjs.map +1 -1
  282. package/fesm2022/toolbar.mjs +10 -10
  283. package/fesm2022/tooltip.mjs +11 -11
  284. package/fesm2022/tooltip.mjs.map +1 -1
  285. package/fesm2022/tree.mjs +25 -25
  286. package/form-field/_form-field-subscript.scss +2 -2
  287. package/form-field/_mdc-text-field-structure-overrides.scss +2 -3
  288. package/form-field/index.d.ts +9 -7
  289. package/list/_list-option-trailing-avatar-compat.scss +26 -25
  290. package/list/index.d.ts +8 -1
  291. package/package.json +2 -2
  292. package/prebuilt-themes/azure-blue.css +1 -1
  293. package/prebuilt-themes/cyan-orange.css +1 -1
  294. package/prebuilt-themes/deeppurple-amber.css +1 -1
  295. package/prebuilt-themes/indigo-pink.css +1 -1
  296. package/prebuilt-themes/magenta-violet.css +1 -1
  297. package/prebuilt-themes/pink-bluegrey.css +1 -1
  298. package/prebuilt-themes/purple-green.css +1 -1
  299. package/prebuilt-themes/rose-red.css +1 -1
  300. package/progress-bar/_progress-bar-theme.scss +10 -7
  301. package/progress-bar/index.d.ts +14 -2
  302. package/progress-spinner/index.d.ts +14 -2
  303. package/radio/index.d.ts +14 -1
  304. package/schematics/ng-add/index.js +1 -1
  305. package/schematics/ng-add/index.mjs +1 -1
  306. package/sidenav/index.d.ts +1 -0
  307. package/slide-toggle/index.d.ts +7 -1
  308. package/slider/index.d.ts +7 -1
  309. package/tabs/_tabs-common.scss +94 -36
  310. package/tabs/_tabs-theme.scss +33 -25
  311. package/tabs/index.d.ts +20 -3
  312. package/tooltip/_tooltip-theme.scss +18 -16
package/fesm2022/tree.mjs CHANGED
@@ -25,10 +25,10 @@ class MatTreeNode extends CdkTreeNode {
25
25
  ngOnDestroy() {
26
26
  super.ngOnDestroy();
27
27
  }
28
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeNode, deps: [{ token: i0.ElementRef }, { token: i1.CdkTree }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
29
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.1", type: MatTreeNode, isStandalone: true, selector: "mat-tree-node", inputs: { disabled: ["disabled", "disabled", booleanAttribute], tabIndex: ["tabIndex", "tabIndex", (value) => (value == null ? 0 : numberAttribute(value))] }, host: { classAttribute: "mat-tree-node" }, providers: [{ provide: CdkTreeNode, useExisting: MatTreeNode }], exportAs: ["matTreeNode"], usesInheritance: true, ngImport: i0 }); }
28
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeNode, deps: [{ token: i0.ElementRef }, { token: i1.CdkTree }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
29
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.3", type: MatTreeNode, isStandalone: true, selector: "mat-tree-node", inputs: { disabled: ["disabled", "disabled", booleanAttribute], tabIndex: ["tabIndex", "tabIndex", (value) => (value == null ? 0 : numberAttribute(value))] }, host: { classAttribute: "mat-tree-node" }, providers: [{ provide: CdkTreeNode, useExisting: MatTreeNode }], exportAs: ["matTreeNode"], usesInheritance: true, ngImport: i0 }); }
30
30
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeNode, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeNode, decorators: [{
32
32
  type: Directive,
33
33
  args: [{
34
34
  selector: 'mat-tree-node',
@@ -56,10 +56,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.1",
56
56
  * Captures the node's template and a when predicate that describes when this node should be used.
57
57
  */
58
58
  class MatTreeNodeDef extends CdkTreeNodeDef {
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeNodeDef, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
60
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-next.1", type: MatTreeNodeDef, isStandalone: true, selector: "[matTreeNodeDef]", inputs: { when: ["matTreeNodeDefWhen", "when"], data: ["matTreeNode", "data"] }, providers: [{ provide: CdkTreeNodeDef, useExisting: MatTreeNodeDef }], usesInheritance: true, ngImport: i0 }); }
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeNodeDef, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
60
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-next.3", type: MatTreeNodeDef, isStandalone: true, selector: "[matTreeNodeDef]", inputs: { when: ["matTreeNodeDefWhen", "when"], data: ["matTreeNode", "data"] }, providers: [{ provide: CdkTreeNodeDef, useExisting: MatTreeNodeDef }], usesInheritance: true, ngImport: i0 }); }
61
61
  }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeNodeDef, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeNodeDef, decorators: [{
63
63
  type: Directive,
64
64
  args: [{
65
65
  selector: '[matTreeNodeDef]',
@@ -101,14 +101,14 @@ class MatNestedTreeNode extends CdkNestedTreeNode {
101
101
  ngOnDestroy() {
102
102
  super.ngOnDestroy();
103
103
  }
104
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatNestedTreeNode, deps: [{ token: i0.ElementRef }, { token: i1.CdkTree }, { token: i0.IterableDiffers }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
105
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.1", type: MatNestedTreeNode, isStandalone: true, selector: "mat-nested-tree-node", inputs: { node: ["matNestedTreeNode", "node"], disabled: ["disabled", "disabled", booleanAttribute], tabIndex: "tabIndex" }, host: { classAttribute: "mat-nested-tree-node" }, providers: [
104
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatNestedTreeNode, deps: [{ token: i0.ElementRef }, { token: i1.CdkTree }, { token: i0.IterableDiffers }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
105
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.3", type: MatNestedTreeNode, isStandalone: true, selector: "mat-nested-tree-node", inputs: { node: ["matNestedTreeNode", "node"], disabled: ["disabled", "disabled", booleanAttribute], tabIndex: "tabIndex" }, host: { classAttribute: "mat-nested-tree-node" }, providers: [
106
106
  { provide: CdkNestedTreeNode, useExisting: MatNestedTreeNode },
107
107
  { provide: CdkTreeNode, useExisting: MatNestedTreeNode },
108
108
  { provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: MatNestedTreeNode },
109
109
  ], exportAs: ["matNestedTreeNode"], usesInheritance: true, ngImport: i0 }); }
110
110
  }
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatNestedTreeNode, decorators: [{
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatNestedTreeNode, decorators: [{
112
112
  type: Directive,
113
113
  args: [{
114
114
  selector: 'mat-nested-tree-node',
@@ -154,10 +154,10 @@ class MatTreeNodePadding extends CdkTreeNodePadding {
154
154
  set indent(indent) {
155
155
  this._setIndentInput(indent);
156
156
  }
157
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeNodePadding, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
158
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.1", type: MatTreeNodePadding, isStandalone: true, selector: "[matTreeNodePadding]", inputs: { level: ["matTreeNodePadding", "level", numberAttribute], indent: ["matTreeNodePaddingIndent", "indent"] }, providers: [{ provide: CdkTreeNodePadding, useExisting: MatTreeNodePadding }], usesInheritance: true, ngImport: i0 }); }
157
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeNodePadding, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
158
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.3", type: MatTreeNodePadding, isStandalone: true, selector: "[matTreeNodePadding]", inputs: { level: ["matTreeNodePadding", "level", numberAttribute], indent: ["matTreeNodePaddingIndent", "indent"] }, providers: [{ provide: CdkTreeNodePadding, useExisting: MatTreeNodePadding }], usesInheritance: true, ngImport: i0 }); }
159
159
  }
160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeNodePadding, decorators: [{
160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeNodePadding, decorators: [{
161
161
  type: Directive,
162
162
  args: [{
163
163
  selector: '[matTreeNodePadding]',
@@ -181,15 +181,15 @@ class MatTreeNodeOutlet {
181
181
  this.viewContainer = viewContainer;
182
182
  this._node = _node;
183
183
  }
184
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeNodeOutlet, deps: [{ token: i0.ViewContainerRef }, { token: CDK_TREE_NODE_OUTLET_NODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
185
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-next.1", type: MatTreeNodeOutlet, isStandalone: true, selector: "[matTreeNodeOutlet]", providers: [
184
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeNodeOutlet, deps: [{ token: i0.ViewContainerRef }, { token: CDK_TREE_NODE_OUTLET_NODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
185
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-next.3", type: MatTreeNodeOutlet, isStandalone: true, selector: "[matTreeNodeOutlet]", providers: [
186
186
  {
187
187
  provide: CdkTreeNodeOutlet,
188
188
  useExisting: MatTreeNodeOutlet,
189
189
  },
190
190
  ], ngImport: i0 }); }
191
191
  }
192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeNodeOutlet, decorators: [{
192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeNodeOutlet, decorators: [{
193
193
  type: Directive,
194
194
  args: [{
195
195
  selector: '[matTreeNodeOutlet]',
@@ -218,10 +218,10 @@ class MatTree extends CdkTree {
218
218
  // We need an initializer here to avoid a TS error. The value will be set in `ngAfterViewInit`.
219
219
  this._nodeOutlet = undefined;
220
220
  }
221
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTree, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
222
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0-next.1", type: MatTree, isStandalone: true, selector: "mat-tree", host: { attributes: { "role": "tree" }, classAttribute: "mat-tree" }, providers: [{ provide: CdkTree, useExisting: MatTree }], viewQueries: [{ propertyName: "_nodeOutlet", first: true, predicate: MatTreeNodeOutlet, descendants: true, static: true }], exportAs: ["matTree"], usesInheritance: true, ngImport: i0, template: `<ng-container matTreeNodeOutlet></ng-container>`, isInline: true, styles: [".mat-tree{display:block;background-color:var(--mat-tree-container-background-color)}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color);font-family:var(--mat-tree-node-text-font);font-size:var(--mat-tree-node-text-size);font-weight:var(--mat-tree-node-text-weight)}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height)}.mat-nested-tree-node{border-bottom-width:0}"], dependencies: [{ kind: "directive", type: MatTreeNodeOutlet, selector: "[matTreeNodeOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
221
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTree, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
222
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0-next.3", type: MatTree, isStandalone: true, selector: "mat-tree", host: { attributes: { "role": "tree" }, classAttribute: "mat-tree" }, providers: [{ provide: CdkTree, useExisting: MatTree }], viewQueries: [{ propertyName: "_nodeOutlet", first: true, predicate: MatTreeNodeOutlet, descendants: true, static: true }], exportAs: ["matTree"], usesInheritance: true, ngImport: i0, template: `<ng-container matTreeNodeOutlet></ng-container>`, isInline: true, styles: [".mat-tree{display:block;background-color:var(--mat-tree-container-background-color)}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color);font-family:var(--mat-tree-node-text-font);font-size:var(--mat-tree-node-text-size);font-weight:var(--mat-tree-node-text-weight)}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height)}.mat-nested-tree-node{border-bottom-width:0}"], dependencies: [{ kind: "directive", type: MatTreeNodeOutlet, selector: "[matTreeNodeOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
223
223
  }
224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTree, decorators: [{
224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTree, decorators: [{
225
225
  type: Component,
226
226
  args: [{ selector: 'mat-tree', exportAs: 'matTree', template: `<ng-container matTreeNodeOutlet></ng-container>`, host: {
227
227
  'class': 'mat-tree',
@@ -236,10 +236,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.1",
236
236
  * Wrapper for the CdkTree's toggle with Material design styles.
237
237
  */
238
238
  class MatTreeNodeToggle extends CdkTreeNodeToggle {
239
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeNodeToggle, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
240
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-next.1", type: MatTreeNodeToggle, isStandalone: true, selector: "[matTreeNodeToggle]", inputs: { recursive: ["matTreeNodeToggleRecursive", "recursive"] }, providers: [{ provide: CdkTreeNodeToggle, useExisting: MatTreeNodeToggle }], usesInheritance: true, ngImport: i0 }); }
239
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeNodeToggle, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
240
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-next.3", type: MatTreeNodeToggle, isStandalone: true, selector: "[matTreeNodeToggle]", inputs: { recursive: ["matTreeNodeToggleRecursive", "recursive"] }, providers: [{ provide: CdkTreeNodeToggle, useExisting: MatTreeNodeToggle }], usesInheritance: true, ngImport: i0 }); }
241
241
  }
242
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeNodeToggle, decorators: [{
242
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeNodeToggle, decorators: [{
243
243
  type: Directive,
244
244
  args: [{
245
245
  selector: '[matTreeNodeToggle]',
@@ -259,8 +259,8 @@ const MAT_TREE_DIRECTIVES = [
259
259
  MatTreeNodeOutlet,
260
260
  ];
261
261
  class MatTreeModule {
262
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
263
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeModule, imports: [CdkTreeModule, MatCommonModule, MatNestedTreeNode,
262
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
263
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeModule, imports: [CdkTreeModule, MatCommonModule, MatNestedTreeNode,
264
264
  MatTreeNodeDef,
265
265
  MatTreeNodePadding,
266
266
  MatTreeNodeToggle,
@@ -273,9 +273,9 @@ class MatTreeModule {
273
273
  MatTree,
274
274
  MatTreeNode,
275
275
  MatTreeNodeOutlet] }); }
276
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeModule, imports: [CdkTreeModule, MatCommonModule, MatCommonModule] }); }
276
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeModule, imports: [CdkTreeModule, MatCommonModule, MatCommonModule] }); }
277
277
  }
278
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.1", ngImport: i0, type: MatTreeModule, decorators: [{
278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: MatTreeModule, decorators: [{
279
279
  type: NgModule,
280
280
  args: [{
281
281
  imports: [CdkTreeModule, MatCommonModule, ...MAT_TREE_DIRECTIVES],
@@ -1,7 +1,7 @@
1
- @use '@material/typography' as mdc-typography;
2
1
  @use '@material/textfield/variables' as mdc-textfield-variables;
3
2
 
4
3
  @use '../core/tokens/m2/mat/form-field' as tokens-mat-form-field;
4
+ @use '../core/style/vendor-prefixes';
5
5
  @use '../core/tokens/token-utils';
6
6
 
7
7
  @mixin private-form-field-subscript() {
@@ -68,7 +68,7 @@
68
68
  .mat-mdc-form-field-bottom-align::before {
69
69
  @include token-utils.use-tokens(tokens-mat-form-field.$prefix,
70
70
  tokens-mat-form-field.get-token-slots()) {
71
- @include mdc-typography.smooth-font();
71
+ @include vendor-prefixes.smooth-font();
72
72
  @include token-utils.create-token-slot(font-family, subscript-text-font);
73
73
  @include token-utils.create-token-slot(line-height, subscript-text-line-height);
74
74
  @include token-utils.create-token-slot(font-size, subscript-text-size);
@@ -1,5 +1,4 @@
1
1
  @use '@material/textfield/variables' as mdc-textfield-variables;
2
- @use '@material/typography/typography' as mdc-typography;
3
2
  @use '../core/tokens/m2/mat/form-field' as tokens-mat-form-field;
4
3
  @use '../core/tokens/token-utils';
5
4
  @use '../core/style/vendor-prefixes';
@@ -25,7 +24,7 @@ $_enable-form-field-will-change-reset: true;
25
24
  // Note: We increase specificity here because the MDC textfield seems to override this,
26
25
  // depending on the CSS order, with an affix selector joint with the input.
27
26
  .mat-mdc-form-field-input-control.mat-mdc-form-field-input-control {
28
- @include mdc-typography.smooth-font();
27
+ @include vendor-prefixes.smooth-font();
29
28
  font: inherit;
30
29
  letter-spacing: inherit;
31
30
  text-decoration: inherit;
@@ -34,7 +33,7 @@ $_enable-form-field-will-change-reset: true;
34
33
  }
35
34
 
36
35
  .mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label {
37
- @include mdc-typography.smooth-font();
36
+ @include vendor-prefixes.smooth-font();
38
37
 
39
38
  // In order to ensure proper alignment of the floating label, we reset its line-height.
40
39
  // The line-height is not important as the element is absolutely positioned and only has one
@@ -18,6 +18,7 @@ import { Observable } from 'rxjs';
18
18
  import { OnDestroy } from '@angular/core';
19
19
  import { Platform } from '@angular/cdk/platform';
20
20
  import { QueryList } from '@angular/core';
21
+ import { Signal } from '@angular/core';
21
22
  import { ThemePalette } from '@angular/material/core';
22
23
 
23
24
  /** An interface that the parent form-field should implement to receive resize events. */
@@ -139,13 +140,12 @@ export declare class MatFormField implements FloatingLabelParent, AfterContentIn
139
140
  _floatingLabel: MatFormFieldFloatingLabel | undefined;
140
141
  _notchedOutline: MatFormFieldNotchedOutline | undefined;
141
142
  _lineRipple: MatFormFieldLineRipple | undefined;
142
- _labelChildNonStatic: MatLabel | undefined;
143
- _labelChildStatic: MatLabel | undefined;
144
143
  _formFieldControl: MatFormFieldControl_2<any>;
145
144
  _prefixChildren: QueryList<MatPrefix>;
146
145
  _suffixChildren: QueryList<MatSuffix>;
147
146
  _errorChildren: QueryList<MatError>;
148
147
  _hintChildren: QueryList<MatHint>;
148
+ private readonly _labelChild;
149
149
  /** Whether the required marker should be hidden. */
150
150
  get hideRequiredMarker(): boolean;
151
151
  set hideRequiredMarker(value: BooleanInput);
@@ -212,7 +212,7 @@ export declare class MatFormField implements FloatingLabelParent, AfterContentIn
212
212
  /**
213
213
  * Gets the id of the label element. If no label is present, returns `null`.
214
214
  */
215
- getLabelId(): string | null;
215
+ getLabelId: Signal<string | null>;
216
216
  /**
217
217
  * Gets an ElementRef for the element that a overlay attached to the form field
218
218
  * should be positioned relative to.
@@ -253,7 +253,7 @@ export declare class MatFormField implements FloatingLabelParent, AfterContentIn
253
253
  * the label is part of the infix, the label cannot overflow the prefix content.
254
254
  */
255
255
  _forceDisplayInfixLabel(): boolean | 0;
256
- _hasFloatingLabel(): boolean;
256
+ _hasFloatingLabel: Signal<boolean>;
257
257
  _shouldLabelFloat(): boolean;
258
258
  /**
259
259
  * Determines whether a class from the AbstractControlDirective
@@ -293,7 +293,7 @@ export declare class MatFormField implements FloatingLabelParent, AfterContentIn
293
293
  /** Checks whether the form field is attached to the DOM. */
294
294
  private _isAttachedToDom;
295
295
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFormField, [null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
296
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFormField, "mat-form-field", ["matFormField"], { "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; "color": { "alias": "color"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "hintLabel": { "alias": "hintLabel"; "required": false; }; }, {}, ["_labelChildNonStatic", "_labelChildStatic", "_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren", "_hintChildren"], ["mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "*", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error, [matError]", "mat-hint:not([align='end'])", "mat-hint[align='end']"], true, never>;
296
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFormField, "mat-form-field", ["matFormField"], { "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; "color": { "alias": "color"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "hintLabel": { "alias": "hintLabel"; "required": false; }; }, {}, ["_labelChild", "_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren", "_hintChildren"], ["mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "*", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error, [matError]", "mat-hint:not([align='end'])", "mat-hint[align='end']"], true, never>;
297
297
  }
298
298
 
299
299
  /**
@@ -383,8 +383,10 @@ export declare interface MatFormFieldDefaultOptions {
383
383
  /** Default form field appearance style. */
384
384
  appearance?: MatFormFieldAppearance;
385
385
  /**
386
- * Default color of the form field. This API is supported in M2 themes only, it has no effect in
387
- * M3 themes. For information on applying color variants in M3, see
386
+ * Default theme color of the form field. This API is supported in M2 themes only, it has no
387
+ * effect in M3 themes.
388
+ *
389
+ * For information on applying color variants in M3, see
388
390
  * https://material.angular.io/guide/theming#using-component-color-variants
389
391
  */
390
392
  color?: ThemePalette;
@@ -1,8 +1,5 @@
1
- @use '@material/typography/typography';
2
1
  @use '@material/feature-targeting/feature-targeting';
3
- @use '@material/density/functions' as density-functions;
4
2
  @use '@material/list/evolution-mixins' as mdc-list;
5
- @use '@material/list/evolution-variables' as mdc-list-variables;
6
3
  @use '../core/mdc-helpers/mdc-helpers';
7
4
 
8
5
  // For compatibility with the non-MDC selection list, we support avatars that are
@@ -22,8 +19,33 @@
22
19
  @include mdc-list.item-end-size(40px, $query: $query);
23
20
 
24
21
  &.mdc-list-item--with-two-lines {
22
+ $top: 32px;
23
+ $bottom: 20px;
24
+
25
25
  .mdc-list-item__primary-text {
26
- @include typography.text-baseline($top: 32px, $bottom: 20px, $query: $query);
26
+ display: block;
27
+ margin-top: 0;
28
+ line-height: normal;
29
+ margin-bottom: $bottom * -1;
30
+
31
+ // This was used by MDC to set the text baseline. We should figure out a way to
32
+ // remove it, because it can introduce unnecessary whitespace at the beginning
33
+ // of the element.
34
+ &::before {
35
+ display: inline-block;
36
+ width: 0;
37
+ height: $top;
38
+ content: '';
39
+ vertical-align: 0;
40
+ }
41
+
42
+ &::after {
43
+ display: inline-block;
44
+ width: 0;
45
+ height: $bottom;
46
+ content: '';
47
+ vertical-align: $bottom * -1;
48
+ }
27
49
  }
28
50
  }
29
51
 
@@ -35,24 +57,3 @@
35
57
  }
36
58
  }
37
59
  }
38
-
39
- @mixin density-styles($density-scale) {
40
- $one-line-tall-height: density-functions.prop-value(
41
- $density-config: mdc-list-variables.$one-line-item-tall-density-config,
42
- $density-scale: $density-scale,
43
- $property-name: height,
44
- );
45
-
46
- $two-line-tall-height: density-functions.prop-value(
47
- $density-config: mdc-list-variables.$two-line-item-tall-density-config,
48
- $density-scale: $density-scale,
49
- $property-name: height,
50
- );
51
-
52
- @include mdc-helpers.disable-mdc-fallback-declarations {
53
- .mat-mdc-list-option-with-trailing-avatar {
54
- @include mdc-list.one-line-item-height($one-line-tall-height);
55
- @include mdc-list.two-line-item-height($two-line-tall-height);
56
- }
57
- }
58
- }
package/list/index.d.ts CHANGED
@@ -357,7 +357,13 @@ export declare class MatListOption extends MatListItemBase implements ListOption
357
357
  */
358
358
  get checkboxPosition(): MatListOptionTogglePosition;
359
359
  set checkboxPosition(value: MatListOptionTogglePosition);
360
- /** Theme color of the list option. This sets the color of the checkbox/radio. */
360
+ /**
361
+ * Theme color of the list option. This sets the color of the checkbox/radio.
362
+ * This API is supported in M2 themes only, it has no effect in M3 themes.
363
+ *
364
+ * For information on applying color variants in M3, see
365
+ * https://material.angular.io/guide/theming#using-component-color-variants.
366
+ */
361
367
  get color(): ThemePalette;
362
368
  set color(newValue: ThemePalette);
363
369
  private _color;
@@ -479,6 +485,7 @@ export declare class MatSelectionList extends MatListBase implements SelectionLi
479
485
  _value: string[] | null;
480
486
  /** View to model callback that should be called if the list or its options lost focus. */
481
487
  _onTouched: () => void;
488
+ private readonly _changeDetectorRef;
482
489
  constructor(_element: ElementRef<HTMLElement>, _ngZone: NgZone);
483
490
  ngAfterViewInit(): void;
484
491
  ngOnChanges(changes: SimpleChanges): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material",
3
- "version": "18.1.0-next.3",
3
+ "version": "18.1.0-rc.0",
4
4
  "description": "Angular Material",
5
5
  "repository": {
6
6
  "type": "git",
@@ -490,7 +490,7 @@
490
490
  },
491
491
  "peerDependencies": {
492
492
  "@angular/animations": "^18.0.0-0 || ^18.1.0-0 || ^18.2.0-0 || ^18.3.0-0 || ^19.0.0-0",
493
- "@angular/cdk": "18.1.0-next.3",
493
+ "@angular/cdk": "18.1.0-rc.0",
494
494
  "@angular/core": "^18.0.0-0 || ^18.1.0-0 || ^18.2.0-0 || ^18.3.0-0 || ^19.0.0-0",
495
495
  "@angular/common": "^18.0.0-0 || ^18.1.0-0 || ^18.2.0-0 || ^18.3.0-0 || ^19.0.0-0",
496
496
  "@angular/forms": "^18.0.0-0 || ^18.1.0-0 || ^18.2.0-0 || ^18.3.0-0 || ^19.0.0-0",