@angular/material 19.0.0-next.9 → 19.0.0-rc.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 (232) hide show
  1. package/autocomplete/_autocomplete-theme.scss +8 -4
  2. package/autocomplete/index.d.ts +5 -6
  3. package/badge/_badge-theme.scss +10 -6
  4. package/badge/index.d.ts +1 -2
  5. package/bottom-sheet/_bottom-sheet-theme.scss +8 -4
  6. package/button/_button-theme.scss +10 -6
  7. package/button/_fab-theme.scss +10 -6
  8. package/button/_icon-button-theme.scss +8 -4
  9. package/button/index.d.ts +1 -1
  10. package/button-toggle/_button-toggle-theme.scss +11 -6
  11. package/button-toggle/index.d.ts +2 -1
  12. package/card/_card-theme.scss +8 -4
  13. package/card/index.d.ts +2 -3
  14. package/checkbox/_checkbox-theme.scss +10 -6
  15. package/chips/_chips-theme.scss +10 -6
  16. package/core/_core-theme.scss +4 -7
  17. package/core/_core.scss +2 -5
  18. package/core/m2/_theming.scss +2 -1
  19. package/core/option/_optgroup-theme.scss +8 -4
  20. package/core/option/_option-theme.scss +10 -6
  21. package/core/ripple/_ripple-theme.scss +8 -4
  22. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +10 -6
  23. package/core/theming/_config-validation.scss +4 -4
  24. package/core/theming/_definition.scss +12 -2
  25. package/core/theming/_theming.scss +2 -1
  26. package/core/tokens/_m3-system.scss +55 -39
  27. package/core/tokens/_m3-tokens.scss +3 -3
  28. package/core/tokens/_token-definition.scss +4 -3
  29. package/core/tokens/m2/mat/_badge.scss +1 -1
  30. package/core/tokens/m2/mat/_datepicker.scss +1 -1
  31. package/core/tokens/m2/mat/_menu.scss +5 -3
  32. package/core/tokens/m2/mat/_sort.scss +1 -1
  33. package/core/tokens/m3/mat/_menu.scss +6 -3
  34. package/core/tokens/m3/mdc/_filled-text-field.scss +9 -11
  35. package/datepicker/_datepicker-theme.scss +10 -6
  36. package/datepicker/index.d.ts +36 -37
  37. package/dialog/_dialog-theme.scss +8 -4
  38. package/dialog/index.d.ts +1 -0
  39. package/divider/_divider-theme.scss +8 -4
  40. package/expansion/_expansion-theme.scss +8 -4
  41. package/fesm2022/autocomplete/testing.mjs +2 -5
  42. package/fesm2022/autocomplete/testing.mjs.map +1 -1
  43. package/fesm2022/autocomplete.mjs +225 -151
  44. package/fesm2022/autocomplete.mjs.map +1 -1
  45. package/fesm2022/badge/testing.mjs +2 -5
  46. package/fesm2022/badge/testing.mjs.map +1 -1
  47. package/fesm2022/badge.mjs +45 -36
  48. package/fesm2022/badge.mjs.map +1 -1
  49. package/fesm2022/bottom-sheet/testing.mjs +1 -1
  50. package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
  51. package/fesm2022/bottom-sheet.mjs +79 -57
  52. package/fesm2022/bottom-sheet.mjs.map +1 -1
  53. package/fesm2022/button/testing.mjs +2 -2
  54. package/fesm2022/button/testing.mjs.map +1 -1
  55. package/fesm2022/button-toggle/testing.mjs +4 -7
  56. package/fesm2022/button-toggle/testing.mjs.map +1 -1
  57. package/fesm2022/button-toggle.mjs +84 -47
  58. package/fesm2022/button-toggle.mjs.map +1 -1
  59. package/fesm2022/button.mjs +98 -71
  60. package/fesm2022/button.mjs.map +1 -1
  61. package/fesm2022/card/testing.mjs +3 -6
  62. package/fesm2022/card/testing.mjs.map +1 -1
  63. package/fesm2022/card.mjs +53 -55
  64. package/fesm2022/card.mjs.map +1 -1
  65. package/fesm2022/checkbox/testing.mjs +4 -7
  66. package/fesm2022/checkbox/testing.mjs.map +1 -1
  67. package/fesm2022/checkbox.mjs +105 -63
  68. package/fesm2022/checkbox.mjs.map +1 -1
  69. package/fesm2022/chips/testing.mjs +11 -14
  70. package/fesm2022/chips/testing.mjs.map +1 -1
  71. package/fesm2022/chips.mjs +317 -268
  72. package/fesm2022/chips.mjs.map +1 -1
  73. package/fesm2022/core/testing.mjs +5 -11
  74. package/fesm2022/core/testing.mjs.map +1 -1
  75. package/fesm2022/core.mjs +237 -187
  76. package/fesm2022/core.mjs.map +1 -1
  77. package/fesm2022/datepicker/testing.mjs +13 -22
  78. package/fesm2022/datepicker/testing.mjs.map +1 -1
  79. package/fesm2022/datepicker.mjs +821 -568
  80. package/fesm2022/datepicker.mjs.map +1 -1
  81. package/fesm2022/dialog/testing.mjs +15 -9
  82. package/fesm2022/dialog/testing.mjs.map +1 -1
  83. package/fesm2022/dialog.mjs +221 -153
  84. package/fesm2022/dialog.mjs.map +1 -1
  85. package/fesm2022/divider/testing.mjs +1 -1
  86. package/fesm2022/divider/testing.mjs.map +1 -1
  87. package/fesm2022/divider.mjs +9 -11
  88. package/fesm2022/divider.mjs.map +1 -1
  89. package/fesm2022/expansion/testing.mjs +7 -10
  90. package/fesm2022/expansion/testing.mjs.map +1 -1
  91. package/fesm2022/expansion.mjs +85 -76
  92. package/fesm2022/expansion.mjs.map +1 -1
  93. package/fesm2022/form-field/testing.mjs +12 -15
  94. package/fesm2022/form-field/testing.mjs.map +1 -1
  95. package/fesm2022/form-field.mjs +179 -126
  96. package/fesm2022/form-field.mjs.map +1 -1
  97. package/fesm2022/grid-list/testing.mjs +11 -17
  98. package/fesm2022/grid-list/testing.mjs.map +1 -1
  99. package/fesm2022/grid-list.mjs +72 -50
  100. package/fesm2022/grid-list.mjs.map +1 -1
  101. package/fesm2022/icon/testing.mjs +8 -8
  102. package/fesm2022/icon/testing.mjs.map +1 -1
  103. package/fesm2022/icon.mjs +65 -45
  104. package/fesm2022/icon.mjs.map +1 -1
  105. package/fesm2022/input/testing.mjs +3 -3
  106. package/fesm2022/input/testing.mjs.map +1 -1
  107. package/fesm2022/input.mjs +104 -72
  108. package/fesm2022/input.mjs.map +1 -1
  109. package/fesm2022/list/testing.mjs +21 -38
  110. package/fesm2022/list/testing.mjs.map +1 -1
  111. package/fesm2022/list.mjs +191 -180
  112. package/fesm2022/list.mjs.map +1 -1
  113. package/fesm2022/menu/testing.mjs +3 -6
  114. package/fesm2022/menu/testing.mjs.map +1 -1
  115. package/fesm2022/menu.mjs +178 -168
  116. package/fesm2022/menu.mjs.map +1 -1
  117. package/fesm2022/paginator/testing.mjs +10 -13
  118. package/fesm2022/paginator/testing.mjs.map +1 -1
  119. package/fesm2022/paginator.mjs +84 -59
  120. package/fesm2022/paginator.mjs.map +1 -1
  121. package/fesm2022/progress-bar/testing.mjs +1 -1
  122. package/fesm2022/progress-bar/testing.mjs.map +1 -1
  123. package/fesm2022/progress-bar.mjs +35 -34
  124. package/fesm2022/progress-bar.mjs.map +1 -1
  125. package/fesm2022/progress-spinner/testing.mjs +1 -1
  126. package/fesm2022/progress-spinner/testing.mjs.map +1 -1
  127. package/fesm2022/progress-spinner.mjs +27 -13
  128. package/fesm2022/progress-spinner.mjs.map +1 -1
  129. package/fesm2022/radio/testing.mjs +6 -12
  130. package/fesm2022/radio/testing.mjs.map +1 -1
  131. package/fesm2022/radio.mjs +123 -88
  132. package/fesm2022/radio.mjs.map +1 -1
  133. package/fesm2022/select/testing.mjs +6 -9
  134. package/fesm2022/select/testing.mjs.map +1 -1
  135. package/fesm2022/select.mjs +220 -182
  136. package/fesm2022/select.mjs.map +1 -1
  137. package/fesm2022/sidenav/testing.mjs +6 -6
  138. package/fesm2022/sidenav/testing.mjs.map +1 -1
  139. package/fesm2022/sidenav.mjs +132 -119
  140. package/fesm2022/sidenav.mjs.map +1 -1
  141. package/fesm2022/slide-toggle/testing.mjs +3 -6
  142. package/fesm2022/slide-toggle/testing.mjs.map +1 -1
  143. package/fesm2022/slide-toggle.mjs +78 -49
  144. package/fesm2022/slide-toggle.mjs.map +1 -1
  145. package/fesm2022/slider/testing.mjs +2 -2
  146. package/fesm2022/slider/testing.mjs.map +1 -1
  147. package/fesm2022/slider.mjs +260 -190
  148. package/fesm2022/slider.mjs.map +1 -1
  149. package/fesm2022/snack-bar/testing.mjs +4 -7
  150. package/fesm2022/snack-bar/testing.mjs.map +1 -1
  151. package/fesm2022/snack-bar.mjs +141 -107
  152. package/fesm2022/snack-bar.mjs.map +1 -1
  153. package/fesm2022/sort/testing.mjs +3 -6
  154. package/fesm2022/sort/testing.mjs.map +1 -1
  155. package/fesm2022/sort.mjs +93 -72
  156. package/fesm2022/sort.mjs.map +1 -1
  157. package/fesm2022/stepper/testing.mjs +4 -4
  158. package/fesm2022/stepper/testing.mjs.map +1 -1
  159. package/fesm2022/stepper.mjs +143 -105
  160. package/fesm2022/stepper.mjs.map +1 -1
  161. package/fesm2022/table/testing.mjs +13 -25
  162. package/fesm2022/table/testing.mjs.map +1 -1
  163. package/fesm2022/table.mjs +182 -177
  164. package/fesm2022/table.mjs.map +1 -1
  165. package/fesm2022/tabs/testing.mjs +5 -5
  166. package/fesm2022/tabs/testing.mjs.map +1 -1
  167. package/fesm2022/tabs.mjs +326 -247
  168. package/fesm2022/tabs.mjs.map +1 -1
  169. package/fesm2022/timepicker/testing.mjs +7 -16
  170. package/fesm2022/timepicker/testing.mjs.map +1 -1
  171. package/fesm2022/timepicker.mjs +157 -153
  172. package/fesm2022/timepicker.mjs.map +1 -1
  173. package/fesm2022/toolbar/testing.mjs +2 -5
  174. package/fesm2022/toolbar/testing.mjs.map +1 -1
  175. package/fesm2022/toolbar.mjs +25 -15
  176. package/fesm2022/toolbar.mjs.map +1 -1
  177. package/fesm2022/tooltip/testing.mjs +6 -9
  178. package/fesm2022/tooltip/testing.mjs.map +1 -1
  179. package/fesm2022/tooltip.mjs +96 -72
  180. package/fesm2022/tooltip.mjs.map +1 -1
  181. package/fesm2022/tree/testing.mjs +3 -6
  182. package/fesm2022/tree/testing.mjs.map +1 -1
  183. package/fesm2022/tree.mjs +56 -54
  184. package/fesm2022/tree.mjs.map +1 -1
  185. package/form-field/_form-field-theme.scss +9 -5
  186. package/form-field/index.d.ts +9 -9
  187. package/grid-list/_grid-list-theme.scss +8 -4
  188. package/icon/_icon-theme.scss +10 -6
  189. package/input/_input-theme.scss +8 -4
  190. package/list/_list-theme.scss +8 -4
  191. package/list/index.d.ts +20 -21
  192. package/menu/_menu-theme.scss +8 -4
  193. package/menu/index.d.ts +15 -17
  194. package/package.json +2 -2
  195. package/paginator/_paginator-theme.scss +8 -4
  196. package/prebuilt-themes/azure-blue.css +1 -1
  197. package/prebuilt-themes/cyan-orange.css +1 -1
  198. package/prebuilt-themes/deeppurple-amber.css +1 -1
  199. package/prebuilt-themes/indigo-pink.css +1 -1
  200. package/prebuilt-themes/magenta-violet.css +1 -1
  201. package/prebuilt-themes/pink-bluegrey.css +1 -1
  202. package/prebuilt-themes/purple-green.css +1 -1
  203. package/prebuilt-themes/rose-red.css +1 -1
  204. package/progress-bar/_progress-bar-theme.scss +11 -9
  205. package/progress-spinner/_progress-spinner-theme.scss +11 -9
  206. package/progress-spinner/index.d.ts +3 -4
  207. package/radio/_radio-theme.scss +10 -6
  208. package/radio/index.d.ts +2 -3
  209. package/schematics/ng-add/index.js +1 -1
  210. package/schematics/ng-add/index.mjs +1 -1
  211. package/schematics/ng-add/theming/create-custom-theme.js +1 -6
  212. package/schematics/ng-add/theming/create-custom-theme.mjs +1 -6
  213. package/schematics/ng-generate/theme-color/index_bundled.js +35 -9
  214. package/schematics/ng-generate/theme-color/index_bundled.js.map +2 -2
  215. package/schematics/ng-update/index_bundled.js +6 -1
  216. package/schematics/ng-update/index_bundled.js.map +1 -1
  217. package/select/_select-theme.scss +10 -6
  218. package/select/index.d.ts +7 -7
  219. package/sidenav/_sidenav-theme.scss +8 -4
  220. package/slide-toggle/_slide-toggle-theme.scss +10 -6
  221. package/slider/_slider-theme.scss +10 -6
  222. package/snack-bar/_snack-bar-theme.scss +10 -6
  223. package/sort/_sort-theme.scss +8 -4
  224. package/stepper/_stepper-theme.scss +10 -6
  225. package/stepper/index.d.ts +14 -15
  226. package/table/_table-theme.scss +8 -4
  227. package/tabs/_tabs-theme.scss +10 -6
  228. package/timepicker/_timepicker-theme.scss +10 -6
  229. package/toolbar/_toolbar-theme.scss +10 -6
  230. package/tooltip/_tooltip-theme.scss +8 -4
  231. package/tooltip/index.d.ts +5 -6
  232. package/tree/_tree-theme.scss +8 -4
@@ -7,8 +7,7 @@ import { BooleanInput } from '@angular/cdk/coercion';
7
7
  import { ElementRef } from '@angular/core';
8
8
  import * as i0 from '@angular/core';
9
9
  import * as i1 from '@angular/material/core';
10
- import * as i2 from '@angular/common';
11
- import * as i3 from '@angular/cdk/observers';
10
+ import * as i2 from '@angular/cdk/observers';
12
11
  import { InjectionToken } from '@angular/core';
13
12
  import { NgControl } from '@angular/forms';
14
13
  import { Observable } from 'rxjs';
@@ -35,7 +34,7 @@ export declare function getMatFormFieldMissingControlError(): Error;
35
34
  /** @docs-private */
36
35
  export declare function getMatFormFieldPlaceholderConflictError(): Error;
37
36
 
38
- declare namespace i4 {
37
+ declare namespace i3 {
39
38
  export {
40
39
  FloatLabelType,
41
40
  MatFormFieldAppearance,
@@ -47,33 +46,33 @@ declare namespace i4 {
47
46
  }
48
47
  }
49
48
 
50
- declare namespace i5 {
49
+ declare namespace i4 {
51
50
  export {
52
51
  MatLabel
53
52
  }
54
53
  }
55
54
 
56
- declare namespace i6 {
55
+ declare namespace i5 {
57
56
  export {
58
57
  MAT_ERROR,
59
58
  MatError
60
59
  }
61
60
  }
62
61
 
63
- declare namespace i7 {
62
+ declare namespace i6 {
64
63
  export {
65
64
  MatHint
66
65
  }
67
66
  }
68
67
 
69
- declare namespace i8 {
68
+ declare namespace i7 {
70
69
  export {
71
70
  MAT_PREFIX,
72
71
  MatPrefix
73
72
  }
74
73
  }
75
74
 
76
- declare namespace i9 {
75
+ declare namespace i8 {
77
76
  export {
78
77
  MAT_SUFFIX,
79
78
  MatSuffix
@@ -128,6 +127,7 @@ export declare class MatFormField implements FloatingLabelParent, AfterContentIn
128
127
  private _changeDetectorRef;
129
128
  private _dir;
130
129
  private _platform;
130
+ private _idGenerator;
131
131
  private _defaults;
132
132
  _animationMode: "NoopAnimations" | "BrowserAnimations" | null;
133
133
  _textField: ElementRef<HTMLElement>;
@@ -458,7 +458,7 @@ declare class MatFormFieldLineRipple implements OnDestroy {
458
458
 
459
459
  export declare class MatFormFieldModule {
460
460
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldModule, never>;
461
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatFormFieldModule, never, [typeof i1.MatCommonModule, typeof i2.CommonModule, typeof i3.ObserversModule, typeof i4.MatFormField, typeof i5.MatLabel, typeof i6.MatError, typeof i7.MatHint, typeof i8.MatPrefix, typeof i9.MatSuffix], [typeof i4.MatFormField, typeof i5.MatLabel, typeof i7.MatHint, typeof i6.MatError, typeof i8.MatPrefix, typeof i9.MatSuffix, typeof i1.MatCommonModule]>;
461
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatFormFieldModule, never, [typeof i1.MatCommonModule, typeof i2.ObserversModule, typeof i3.MatFormField, typeof i4.MatLabel, typeof i5.MatError, typeof i6.MatHint, typeof i7.MatPrefix, typeof i8.MatSuffix], [typeof i3.MatFormField, typeof i4.MatLabel, typeof i6.MatHint, typeof i5.MatError, typeof i7.MatPrefix, typeof i8.MatSuffix, typeof i1.MatCommonModule]>;
462
462
  static ɵinj: i0.ɵɵInjectorDeclaration<MatFormFieldModule>;
463
463
  }
464
464
 
@@ -42,16 +42,20 @@
42
42
  }
43
43
  }
44
44
 
45
- @mixin overrides($tokens: ()) {
46
- @include token-utils.batch-create-token-values(
47
- $tokens,
45
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
46
+ @function _define-overrides() {
47
+ @return (
48
48
  (
49
49
  namespace: tokens-mat-grid-list.$prefix,
50
50
  tokens: tokens-mat-grid-list.get-token-slots(),
51
- )
51
+ ),
52
52
  );
53
53
  }
54
54
 
55
+ @mixin overrides($tokens: ()) {
56
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
57
+ }
58
+
55
59
  @mixin theme($theme) {
56
60
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-grid-list') {
57
61
  @if inspection.get-theme-version($theme) == 1 {
@@ -71,18 +71,22 @@
71
71
  }
72
72
  }
73
73
 
74
- /// Outputs the CSS variable values for the given tokens.
75
- /// @param {Map} $tokens The token values to emit.
76
- @mixin overrides($tokens: ()) {
77
- @include token-utils.batch-create-token-values(
78
- $tokens,
74
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
75
+ @function _define-overrides() {
76
+ @return (
79
77
  (
80
78
  namespace: tokens-mat-icon.$prefix,
81
79
  tokens: tokens-mat-icon.get-token-slots(),
82
- )
80
+ ),
83
81
  );
84
82
  }
85
83
 
84
+ /// Outputs the CSS variable values for the given tokens.
85
+ /// @param {Map} $tokens The token values to emit.
86
+ @mixin overrides($tokens: ()) {
87
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
88
+ }
89
+
86
90
  /// Outputs all (base, color, typography, and density) theme styles for the mat-icon.
87
91
  /// @param {Map} $theme The theme to generate styles for.
88
92
  /// @param {ArgList} Additional optional arguments (only supported for M3 themes):
@@ -32,16 +32,20 @@
32
32
  }
33
33
  }
34
34
 
35
- @mixin overrides($tokens: ()) {
36
- @include token-utils.batch-create-token-values(
37
- $tokens,
35
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
36
+ @function _define-overrides() {
37
+ @return (
38
38
  (
39
39
  namespace: '',
40
40
  tokens: (),
41
- )
41
+ ),
42
42
  );
43
43
  }
44
44
 
45
+ @mixin overrides($tokens: ()) {
46
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
47
+ }
48
+
45
49
  @mixin theme($theme) {
46
50
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-input') {
47
51
  @if inspection.get-theme-version($theme) == 1 {
@@ -204,9 +204,9 @@
204
204
  }
205
205
  }
206
206
 
207
- @mixin overrides($tokens: ()) {
208
- @include token-utils.batch-create-token-values(
209
- $tokens,
207
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
208
+ @function _define-overrides() {
209
+ @return (
210
210
  (
211
211
  namespace: tokens-mat-list.$prefix,
212
212
  tokens: tokens-mat-list.get-token-slots(),
@@ -214,10 +214,14 @@
214
214
  (
215
215
  namespace: tokens-mdc-list.$prefix,
216
216
  tokens: tokens-mdc-list.get-token-slots(),
217
- )
217
+ ),
218
218
  );
219
219
  }
220
220
 
221
+ @mixin overrides($tokens: ()) {
222
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
223
+ }
224
+
221
225
  @mixin theme($theme) {
222
226
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-list') {
223
227
  @if inspection.get-theme-version($theme) == 1 {
package/list/index.d.ts CHANGED
@@ -5,9 +5,8 @@ import { ElementRef } from '@angular/core';
5
5
  import { EventEmitter } from '@angular/core';
6
6
  import * as i0 from '@angular/core';
7
7
  import * as i1 from '@angular/cdk/observers';
8
- import * as i11 from '@angular/material/divider';
9
- import * as i2 from '@angular/common';
10
- import * as i3 from '@angular/material/core';
8
+ import * as i10 from '@angular/material/divider';
9
+ import * as i2 from '@angular/material/core';
11
10
  import { InjectionToken } from '@angular/core';
12
11
  import { NgZone } from '@angular/core';
13
12
  import { OnChanges } from '@angular/core';
@@ -21,18 +20,7 @@ import { SelectionModel } from '@angular/cdk/collections';
21
20
  import { SimpleChanges } from '@angular/core';
22
21
  import { ThemePalette } from '@angular/material/core';
23
22
 
24
- declare namespace i10 {
25
- export {
26
- MatListItemTitle,
27
- MatListItemLine,
28
- MatListItemMeta,
29
- _MatListItemGraphicBase,
30
- MatListItemAvatar,
31
- MatListItemIcon
32
- }
33
- }
34
-
35
- declare namespace i4 {
23
+ declare namespace i3 {
36
24
  export {
37
25
  MAT_LIST,
38
26
  MatList,
@@ -40,20 +28,20 @@ declare namespace i4 {
40
28
  }
41
29
  }
42
30
 
43
- declare namespace i5 {
31
+ declare namespace i4 {
44
32
  export {
45
33
  MatActionList
46
34
  }
47
35
  }
48
36
 
49
- declare namespace i6 {
37
+ declare namespace i5 {
50
38
  export {
51
39
  MAT_NAV_LIST,
52
40
  MatNavList
53
41
  }
54
42
  }
55
43
 
56
- declare namespace i7 {
44
+ declare namespace i6 {
57
45
  export {
58
46
  MAT_SELECTION_LIST_VALUE_ACCESSOR,
59
47
  MatSelectionListChange,
@@ -61,7 +49,7 @@ declare namespace i7 {
61
49
  }
62
50
  }
63
51
 
64
- declare namespace i8 {
52
+ declare namespace i7 {
65
53
  export {
66
54
  SELECTION_LIST,
67
55
  SelectionList,
@@ -69,12 +57,23 @@ declare namespace i8 {
69
57
  }
70
58
  }
71
59
 
72
- declare namespace i9 {
60
+ declare namespace i8 {
73
61
  export {
74
62
  MatListSubheaderCssMatStyler
75
63
  }
76
64
  }
77
65
 
66
+ declare namespace i9 {
67
+ export {
68
+ MatListItemTitle,
69
+ MatListItemLine,
70
+ MatListItemMeta,
71
+ _MatListItemGraphicBase,
72
+ MatListItemAvatar,
73
+ MatListItemIcon
74
+ }
75
+ }
76
+
78
77
  /**
79
78
  * Interface describing a list option. This is used to avoid circular
80
79
  * dependencies between the list-option and the styler directives.
@@ -329,7 +328,7 @@ export declare class MatListItemTitle {
329
328
 
330
329
  export declare class MatListModule {
331
330
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListModule, never>;
332
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatListModule, never, [typeof i1.ObserversModule, typeof i2.CommonModule, typeof i3.MatCommonModule, typeof i3.MatRippleModule, typeof i3.MatPseudoCheckboxModule, typeof i4.MatList, typeof i5.MatActionList, typeof i6.MatNavList, typeof i7.MatSelectionList, typeof i4.MatListItem, typeof i8.MatListOption, typeof i9.MatListSubheaderCssMatStyler, typeof i10.MatListItemAvatar, typeof i10.MatListItemIcon, typeof i10.MatListItemLine, typeof i10.MatListItemTitle, typeof i10.MatListItemMeta], [typeof i4.MatList, typeof i5.MatActionList, typeof i6.MatNavList, typeof i7.MatSelectionList, typeof i4.MatListItem, typeof i8.MatListOption, typeof i10.MatListItemAvatar, typeof i10.MatListItemIcon, typeof i9.MatListSubheaderCssMatStyler, typeof i11.MatDividerModule, typeof i10.MatListItemLine, typeof i10.MatListItemTitle, typeof i10.MatListItemMeta]>;
331
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatListModule, never, [typeof i1.ObserversModule, typeof i2.MatCommonModule, typeof i2.MatRippleModule, typeof i2.MatPseudoCheckboxModule, typeof i3.MatList, typeof i4.MatActionList, typeof i5.MatNavList, typeof i6.MatSelectionList, typeof i3.MatListItem, typeof i7.MatListOption, typeof i8.MatListSubheaderCssMatStyler, typeof i9.MatListItemAvatar, typeof i9.MatListItemIcon, typeof i9.MatListItemLine, typeof i9.MatListItemTitle, typeof i9.MatListItemMeta], [typeof i3.MatList, typeof i4.MatActionList, typeof i5.MatNavList, typeof i6.MatSelectionList, typeof i3.MatListItem, typeof i7.MatListOption, typeof i9.MatListItemAvatar, typeof i9.MatListItemIcon, typeof i8.MatListSubheaderCssMatStyler, typeof i10.MatDividerModule, typeof i9.MatListItemLine, typeof i9.MatListItemTitle, typeof i9.MatListItemMeta]>;
333
332
  static ɵinj: i0.ɵɵInjectorDeclaration<MatListModule>;
334
333
  }
335
334
 
@@ -53,16 +53,20 @@
53
53
  }
54
54
  }
55
55
 
56
- @mixin overrides($tokens: ()) {
57
- @include token-utils.batch-create-token-values(
58
- $tokens,
56
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
57
+ @function _define-overrides() {
58
+ @return (
59
59
  (
60
60
  namespace: tokens-mat-menu.$prefix,
61
61
  tokens: tokens-mat-menu.get-token-slots(),
62
- )
62
+ ),
63
63
  );
64
64
  }
65
65
 
66
+ @mixin overrides($tokens: ()) {
67
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
68
+ }
69
+
66
70
  @mixin theme($theme) {
67
71
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-menu') {
68
72
  @if inspection.get-theme-version($theme) == 1 {
package/menu/index.d.ts CHANGED
@@ -7,10 +7,9 @@ import { EventEmitter } from '@angular/core';
7
7
  import { FocusableOption } from '@angular/cdk/a11y';
8
8
  import { FocusOrigin } from '@angular/cdk/a11y';
9
9
  import * as i0 from '@angular/core';
10
- import * as i1 from '@angular/common';
11
- import * as i2 from '@angular/material/core';
12
- import * as i3 from '@angular/cdk/overlay';
13
- import * as i8 from '@angular/cdk/scrolling';
10
+ import * as i1 from '@angular/material/core';
11
+ import * as i2 from '@angular/cdk/overlay';
12
+ import * as i7 from '@angular/cdk/scrolling';
14
13
  import { InjectionToken } from '@angular/core';
15
14
  import { Observable } from 'rxjs';
16
15
  import { OnDestroy } from '@angular/core';
@@ -28,7 +27,7 @@ import { TemplateRef } from '@angular/core';
28
27
  */
29
28
  export declare const fadeInItems: AnimationTriggerMetadata;
30
29
 
31
- declare namespace i4 {
30
+ declare namespace i3 {
32
31
  export {
33
32
  MAT_MENU_DEFAULT_OPTIONS_FACTORY,
34
33
  MenuCloseReason,
@@ -38,20 +37,20 @@ declare namespace i4 {
38
37
  }
39
38
  }
40
39
 
41
- declare namespace i5 {
40
+ declare namespace i4 {
42
41
  export {
43
42
  MatMenuItem
44
43
  }
45
44
  }
46
45
 
47
- declare namespace i6 {
46
+ declare namespace i5 {
48
47
  export {
49
48
  MAT_MENU_CONTENT,
50
49
  MatMenuContent
51
50
  }
52
51
  }
53
52
 
54
- declare namespace i7 {
53
+ declare namespace i6 {
55
54
  export {
56
55
  MAT_MENU_SCROLL_STRATEGY_FACTORY,
57
56
  MAT_MENU_SCROLL_STRATEGY,
@@ -100,9 +99,6 @@ export declare class MatMenu implements AfterContentInit, MatMenuPanel<MatMenuIt
100
99
  private _xPosition;
101
100
  private _yPosition;
102
101
  private _firstItemFocusRef?;
103
- private _previousElevation;
104
- private _elevationPrefix;
105
- private _baseElevation;
106
102
  /** All items inside the menu. Includes items nested inside another menu. */
107
103
  _allItems: QueryList<MatMenuItem>;
108
104
  /** Only the direct descendant menu items. */
@@ -208,10 +204,10 @@ export declare class MatMenu implements AfterContentInit, MatMenuPanel<MatMenuIt
208
204
  */
209
205
  resetActiveItem(): void;
210
206
  /**
211
- * Sets the menu panel elevation.
212
- * @param depth Number of parent menus that come before the menu.
207
+ * @deprecated No longer used and will be removed.
208
+ * @breaking-change 21.0.0
213
209
  */
214
- setElevation(depth: number): void;
210
+ setElevation(_depth: number): void;
215
211
  /**
216
212
  * Adds classes to the menu panel based on its position. Can be used by
217
213
  * consumers to add specific styling based on the position.
@@ -344,7 +340,7 @@ export declare class MatMenuItem implements FocusableOption, AfterViewInit, OnDe
344
340
 
345
341
  export declare class MatMenuModule {
346
342
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMenuModule, never>;
347
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatMenuModule, never, [typeof i1.CommonModule, typeof i2.MatRippleModule, typeof i2.MatCommonModule, typeof i3.OverlayModule, typeof i4.MatMenu, typeof i5.MatMenuItem, typeof i6.MatMenuContent, typeof i7.MatMenuTrigger], [typeof i8.CdkScrollableModule, typeof i4.MatMenu, typeof i2.MatCommonModule, typeof i5.MatMenuItem, typeof i6.MatMenuContent, typeof i7.MatMenuTrigger]>;
343
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatMenuModule, never, [typeof i1.MatRippleModule, typeof i1.MatCommonModule, typeof i2.OverlayModule, typeof i3.MatMenu, typeof i4.MatMenuItem, typeof i5.MatMenuContent, typeof i6.MatMenuTrigger], [typeof i7.CdkScrollableModule, typeof i3.MatMenu, typeof i1.MatCommonModule, typeof i4.MatMenuItem, typeof i5.MatMenuContent, typeof i6.MatMenuTrigger]>;
348
344
  static ɵinj: i0.ɵɵInjectorDeclaration<MatMenuModule>;
349
345
  }
350
346
 
@@ -363,6 +359,10 @@ export declare interface MatMenuPanel<T = any> {
363
359
  focusFirstItem: (origin?: FocusOrigin) => void;
364
360
  resetActiveItem: () => void;
365
361
  setPositionClasses?: (x: MenuPositionX, y: MenuPositionY) => void;
362
+ /**
363
+ * @deprecated No longer used and will be removed.
364
+ * @breaking-change 21.0.0
365
+ */
366
366
  setElevation?(depth: number): void;
367
367
  lazyContent?: MatMenuContent;
368
368
  backdropClass?: string;
@@ -479,8 +479,6 @@ export declare class MatMenuTrigger implements AfterContentInit, OnDestroy {
479
479
  * the menu was opened via the keyboard.
480
480
  */
481
481
  private _initMenu;
482
- /** Updates the menu elevation based on the amount of parent menus that it has. */
483
- private _setMenuElevation;
484
482
  private _setIsMenuOpen;
485
483
  /**
486
484
  * This method creates the overlay from the provided menu's template and saves its
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material",
3
- "version": "19.0.0-next.9",
3
+ "version": "19.0.0-rc.1",
4
4
  "description": "Angular Material",
5
5
  "repository": {
6
6
  "type": "git",
@@ -354,7 +354,7 @@
354
354
  },
355
355
  "peerDependencies": {
356
356
  "@angular/animations": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
357
- "@angular/cdk": "19.0.0-next.9",
357
+ "@angular/cdk": "19.0.0-rc.1",
358
358
  "@angular/core": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
359
359
  "@angular/common": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
360
360
  "@angular/forms": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
@@ -62,16 +62,20 @@
62
62
  }
63
63
  }
64
64
 
65
- @mixin overrides($tokens: ()) {
66
- @include token-utils.batch-create-token-values(
67
- $tokens,
65
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
66
+ @function _define-overrides() {
67
+ @return (
68
68
  (
69
69
  namespace: tokens-mat-paginator.$prefix,
70
70
  tokens: tokens-mat-paginator.get-token-slots(),
71
- )
71
+ ),
72
72
  );
73
73
  }
74
74
 
75
+ @mixin overrides($tokens: ()) {
76
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
77
+ }
78
+
75
79
  @mixin theme($theme) {
76
80
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-paginator') {
77
81
  @if inspection.get-theme-version($theme) == 1 {