@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
@@ -83,18 +83,22 @@
83
83
  }
84
84
  }
85
85
 
86
- /// Outputs the CSS variable values for the given tokens.
87
- /// @param {Map} $tokens The token values to emit.
88
- @mixin overrides($tokens: ()) {
89
- @include token-utils.batch-create-token-values(
90
- $tokens,
86
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
87
+ @function _define-overrides() {
88
+ @return (
91
89
  (
92
90
  namespace: tokens-mat-select.$prefix,
93
91
  tokens: tokens-mat-select.get-token-slots(),
94
- )
92
+ ),
95
93
  );
96
94
  }
97
95
 
96
+ /// Outputs the CSS variable values for the given tokens.
97
+ /// @param {Map} $tokens The token values to emit.
98
+ @mixin overrides($tokens: ()) {
99
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
100
+ }
101
+
98
102
  /// Outputs all (base, color, typography, and density) theme styles for the mat-icon.
99
103
  /// @param {Map} $theme The theme to generate styles for.
100
104
  /// @param {ArgList} Additional optional arguments (only supported for M3 themes):
package/select/index.d.ts CHANGED
@@ -11,11 +11,10 @@ import { ElementRef } from '@angular/core';
11
11
  import { ErrorStateMatcher } from '@angular/material/core';
12
12
  import { EventEmitter } from '@angular/core';
13
13
  import * as i0 from '@angular/core';
14
- import * as i1 from '@angular/common';
15
- import * as i2 from '@angular/cdk/overlay';
16
- import * as i3 from '@angular/material/core';
17
- import * as i5 from '@angular/cdk/scrolling';
18
- import * as i6 from '@angular/material/form-field';
14
+ import * as i1 from '@angular/cdk/overlay';
15
+ import * as i2 from '@angular/material/core';
16
+ import * as i4 from '@angular/cdk/scrolling';
17
+ import * as i5 from '@angular/material/form-field';
19
18
  import { InjectionToken } from '@angular/core';
20
19
  import { MatError } from '@angular/material/form-field';
21
20
  import { MatFormField } from '@angular/material/form-field';
@@ -40,7 +39,7 @@ import { SimpleChanges } from '@angular/core';
40
39
  import { Subject } from 'rxjs';
41
40
  import { ViewportRuler } from '@angular/cdk/scrolling';
42
41
 
43
- declare namespace i4 {
42
+ declare namespace i3 {
44
43
  export {
45
44
  MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY,
46
45
  MAT_SELECT_SCROLL_STRATEGY,
@@ -96,6 +95,7 @@ export declare class MatSelect implements AfterContentInit, OnChanges, OnDestroy
96
95
  protected _changeDetectorRef: ChangeDetectorRef;
97
96
  readonly _elementRef: ElementRef<any>;
98
97
  private _dir;
98
+ private _idGenerator;
99
99
  protected _parentFormField: MatFormField | null;
100
100
  ngControl: NgControl;
101
101
  private _liveAnnouncer;
@@ -486,7 +486,7 @@ export declare interface MatSelectConfig {
486
486
 
487
487
  export declare class MatSelectModule {
488
488
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectModule, never>;
489
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatSelectModule, never, [typeof i1.CommonModule, typeof i2.OverlayModule, typeof i3.MatOptionModule, typeof i3.MatCommonModule, typeof i4.MatSelect, typeof i4.MatSelectTrigger], [typeof i5.CdkScrollableModule, typeof i6.MatFormFieldModule, typeof i4.MatSelect, typeof i4.MatSelectTrigger, typeof i3.MatOptionModule, typeof i3.MatCommonModule]>;
489
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatSelectModule, never, [typeof i1.OverlayModule, typeof i2.MatOptionModule, typeof i2.MatCommonModule, typeof i3.MatSelect, typeof i3.MatSelectTrigger], [typeof i4.CdkScrollableModule, typeof i5.MatFormFieldModule, typeof i3.MatSelect, typeof i3.MatSelectTrigger, typeof i2.MatOptionModule, typeof i2.MatCommonModule]>;
490
490
  static ɵinj: i0.ɵɵInjectorDeclaration<MatSelectModule>;
491
491
  }
492
492
 
@@ -46,16 +46,20 @@
46
46
  }
47
47
  }
48
48
 
49
- @mixin overrides($tokens: ()) {
50
- @include token-utils.batch-create-token-values(
51
- $tokens,
49
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
50
+ @function _define-overrides() {
51
+ @return (
52
52
  (
53
53
  namespace: tokens-mat-sidenav.$prefix,
54
54
  tokens: tokens-mat-sidenav.get-token-slots(),
55
- )
55
+ ),
56
56
  );
57
57
  }
58
58
 
59
+ @mixin overrides($tokens: ()) {
60
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
61
+ }
62
+
59
63
  @mixin theme($theme) {
60
64
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-sidenav') {
61
65
  @if inspection.get-theme-version($theme) == 1 {
@@ -126,11 +126,9 @@
126
126
  }
127
127
  }
128
128
 
129
- /// Outputs the CSS variable values for the given tokens.
130
- /// @param {Map} $tokens The token values to emit.
131
- @mixin overrides($tokens: ()) {
132
- @include token-utils.batch-create-token-values(
133
- $tokens,
129
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
130
+ @function _define-overrides() {
131
+ @return (
134
132
  (
135
133
  namespace: tokens-mat-switch.$prefix,
136
134
  tokens: tokens-mat-switch.get-token-slots(),
@@ -138,10 +136,16 @@
138
136
  (
139
137
  namespace: tokens-mdc-switch.$prefix,
140
138
  tokens: tokens-mdc-switch.get-token-slots(),
141
- )
139
+ ),
142
140
  );
143
141
  }
144
142
 
143
+ /// Outputs the CSS variable values for the given tokens.
144
+ /// @param {Map} $tokens The token values to emit.
145
+ @mixin overrides($tokens: ()) {
146
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
147
+ }
148
+
145
149
  /// Outputs all (base, color, typography, and density) theme styles for the mat-icon.
146
150
  /// @param {Map} $theme The theme to generate styles for.
147
151
  /// @param {ArgList} Additional optional arguments (only supported for M3 themes):
@@ -101,11 +101,9 @@
101
101
  }
102
102
  }
103
103
 
104
- /// Outputs the CSS variable values for the given tokens.
105
- /// @param {Map} $tokens The token values to emit.
106
- @mixin overrides($tokens: ()) {
107
- @include token-utils.batch-create-token-values(
108
- $tokens,
104
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
105
+ @function _define-overrides() {
106
+ @return (
109
107
  (
110
108
  namespace: tokens-mat-slider.$prefix,
111
109
  tokens: tokens-mat-slider.get-token-slots(),
@@ -113,10 +111,16 @@
113
111
  (
114
112
  namespace: tokens-mdc-slider.$prefix,
115
113
  tokens: tokens-mdc-slider.get-token-slots(),
116
- )
114
+ ),
117
115
  );
118
116
  }
119
117
 
118
+ /// Outputs the CSS variable values for the given tokens.
119
+ /// @param {Map} $tokens The token values to emit.
120
+ @mixin overrides($tokens: ()) {
121
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
122
+ }
123
+
120
124
  /// Outputs all (base, color, typography, and density) theme styles for the mat-option.
121
125
  /// @param {Map} $theme The theme to generate styles for.
122
126
  /// @param {ArgList} Additional optional arguments (only supported for M3 themes):
@@ -55,11 +55,9 @@
55
55
  @mixin density($theme) {
56
56
  }
57
57
 
58
- /// Outputs the CSS variable values for the given tokens.
59
- /// @param {Map} $tokens The token values to emit.
60
- @mixin overrides($tokens: ()) {
61
- @include token-utils.batch-create-token-values(
62
- $tokens,
58
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
59
+ @function _define-overrides() {
60
+ @return (
63
61
  (
64
62
  namespace: tokens-mdc-snack-bar.$prefix,
65
63
  tokens: tokens-mdc-snack-bar.get-token-slots(),
@@ -67,10 +65,16 @@
67
65
  (
68
66
  namespace: tokens-mat-snack-bar.$prefix,
69
67
  tokens: tokens-mat-snack-bar.get-token-slots(),
70
- )
68
+ ),
71
69
  );
72
70
  }
73
71
 
72
+ /// Outputs the CSS variable values for the given tokens.
73
+ /// @param {Map} $tokens The token values to emit.
74
+ @mixin overrides($tokens: ()) {
75
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
76
+ }
77
+
74
78
  @mixin theme($theme) {
75
79
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-snack-bar') {
76
80
  @if inspection.get-theme-version($theme) == 1 {
@@ -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-sort.$prefix,
61
61
  tokens: tokens-mat-sort.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-sort') {
68
72
  @if inspection.get-theme-version($theme) == 1 {
@@ -78,18 +78,22 @@
78
78
  }
79
79
  }
80
80
 
81
- /// Outputs the CSS variable values for the given tokens.
82
- /// @param {Map} $tokens The token values to emit.
83
- @mixin overrides($tokens: ()) {
84
- @include token-utils.batch-create-token-values(
85
- $tokens,
81
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
82
+ @function _define-overrides() {
83
+ @return (
86
84
  (
87
85
  namespace: tokens-mat-stepper.$prefix,
88
86
  tokens: tokens-mat-stepper.get-token-slots(),
89
- )
87
+ ),
90
88
  );
91
89
  }
92
90
 
91
+ /// Outputs the CSS variable values for the given tokens.
92
+ /// @param {Map} $tokens The token values to emit.
93
+ @mixin overrides($tokens: ()) {
94
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
95
+ }
96
+
93
97
  /// Outputs all (base, color, typography, and density) theme styles for mat-stepper.
94
98
  /// @param {Map} $theme The theme to generate color styles for.
95
99
  /// @param {ArgList} Additional optional arguments (only supported for M3 themes):
@@ -15,10 +15,9 @@ import { FocusOrigin } from '@angular/cdk/a11y';
15
15
  import { FormGroupDirective } from '@angular/forms';
16
16
  import * as i0 from '@angular/core';
17
17
  import * as i1 from '@angular/material/core';
18
- import * as i2 from '@angular/common';
19
- import * as i3 from '@angular/cdk/portal';
20
- import * as i4 from '@angular/cdk/stepper';
21
- import * as i5 from '@angular/material/icon';
18
+ import * as i2 from '@angular/cdk/portal';
19
+ import * as i3 from '@angular/cdk/stepper';
20
+ import * as i4 from '@angular/material/icon';
22
21
  import { NgForm } from '@angular/forms';
23
22
  import { OnDestroy } from '@angular/core';
24
23
  import { Optional } from '@angular/core';
@@ -32,40 +31,40 @@ import { ThemePalette } from '@angular/material/core';
32
31
 
33
32
  declare namespace i10 {
34
33
  export {
35
- MatStepperIconContext,
36
- MatStepperIcon
34
+ MatStepContent
37
35
  }
38
36
  }
39
37
 
40
- declare namespace i11 {
38
+ declare namespace i5 {
41
39
  export {
42
- MatStepContent
40
+ MatStep,
41
+ MatStepper
43
42
  }
44
43
  }
45
44
 
46
45
  declare namespace i6 {
47
46
  export {
48
- MatStep,
49
- MatStepper
47
+ MatStepLabel
50
48
  }
51
49
  }
52
50
 
53
51
  declare namespace i7 {
54
52
  export {
55
- MatStepLabel
53
+ MatStepperNext,
54
+ MatStepperPrevious
56
55
  }
57
56
  }
58
57
 
59
58
  declare namespace i8 {
60
59
  export {
61
- MatStepperNext,
62
- MatStepperPrevious
60
+ MatStepHeader
63
61
  }
64
62
  }
65
63
 
66
64
  declare namespace i9 {
67
65
  export {
68
- MatStepHeader
66
+ MatStepperIconContext,
67
+ MatStepperIcon
69
68
  }
70
69
  }
71
70
 
@@ -269,7 +268,7 @@ export declare class MatStepperIntl {
269
268
 
270
269
  export declare class MatStepperModule {
271
270
  static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperModule, never>;
272
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatStepperModule, never, [typeof i1.MatCommonModule, typeof i2.CommonModule, typeof i3.PortalModule, typeof i4.CdkStepperModule, typeof i5.MatIconModule, typeof i1.MatRippleModule, typeof i6.MatStep, typeof i7.MatStepLabel, typeof i6.MatStepper, typeof i8.MatStepperNext, typeof i8.MatStepperPrevious, typeof i9.MatStepHeader, typeof i10.MatStepperIcon, typeof i11.MatStepContent], [typeof i1.MatCommonModule, typeof i6.MatStep, typeof i7.MatStepLabel, typeof i6.MatStepper, typeof i8.MatStepperNext, typeof i8.MatStepperPrevious, typeof i9.MatStepHeader, typeof i10.MatStepperIcon, typeof i11.MatStepContent]>;
271
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatStepperModule, never, [typeof i1.MatCommonModule, typeof i2.PortalModule, typeof i3.CdkStepperModule, typeof i4.MatIconModule, typeof i1.MatRippleModule, typeof i5.MatStep, typeof i6.MatStepLabel, typeof i5.MatStepper, typeof i7.MatStepperNext, typeof i7.MatStepperPrevious, typeof i8.MatStepHeader, typeof i9.MatStepperIcon, typeof i10.MatStepContent], [typeof i1.MatCommonModule, typeof i5.MatStep, typeof i6.MatStepLabel, typeof i5.MatStepper, typeof i7.MatStepperNext, typeof i7.MatStepperPrevious, typeof i8.MatStepHeader, typeof i9.MatStepperIcon, typeof i10.MatStepContent]>;
273
272
  static ɵinj: i0.ɵɵInjectorDeclaration<MatStepperModule>;
274
273
  }
275
274
 
@@ -59,16 +59,20 @@
59
59
  }
60
60
  }
61
61
 
62
- @mixin overrides($tokens: ()) {
63
- @include token-utils.batch-create-token-values(
64
- $tokens,
62
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
63
+ @function _define-overrides() {
64
+ @return (
65
65
  (
66
66
  namespace: tokens-mat-table.$prefix,
67
67
  tokens: tokens-mat-table.get-token-slots(),
68
- )
68
+ ),
69
69
  );
70
70
  }
71
71
 
72
+ @mixin overrides($tokens: ()) {
73
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
74
+ }
75
+
72
76
  @mixin theme($theme) {
73
77
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-table') {
74
78
  @if inspection.get-theme-version($theme) == 1 {
@@ -149,16 +149,14 @@
149
149
  }
150
150
  }
151
151
 
152
- /// Outputs the CSS variable values for the given tokens.
153
- /// @param {Map} $tokens The token values to emit.
154
- @mixin overrides($tokens: ()) {
152
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
153
+ @function _define-overrides() {
155
154
  $tab-tokens: tokens-mdc-secondary-navigation-tab.get-token-slots();
156
155
  $tab-indicator-tokens: tokens-mdc-tab-indicator.get-token-slots();
157
156
  $tab-header-tokens: tokens-mat-tab-header.get-token-slots();
158
157
  $tab-header-with-background-tokens: tokens-mat-tab-header-with-background.get-token-slots();
159
158
 
160
- @include token-utils.batch-create-token-values(
161
- $tokens,
159
+ @return (
162
160
  (
163
161
  namespace: tokens-mdc-secondary-navigation-tab.$prefix,
164
162
  tokens: $tab-tokens,
@@ -174,10 +172,16 @@
174
172
  (
175
173
  namespace: tokens-mat-tab-header-with-background.$prefix,
176
174
  tokens: $tab-header-with-background-tokens,
177
- )
175
+ ),
178
176
  );
179
177
  }
180
178
 
179
+ /// Outputs the CSS variable values for the given tokens.
180
+ /// @param {Map} $tokens The token values to emit.
181
+ @mixin overrides($tokens: ()) {
182
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
183
+ }
184
+
181
185
  /// Outputs all (base, color, typography, and density) theme styles for the mat-tab.
182
186
  /// @param {Map} $theme The theme to generate styles for.
183
187
  /// @param {ArgList} Additional optional arguments (only supported for M3 themes):
@@ -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-timepicker.$prefix,
81
79
  tokens: tokens-mat-timepicker.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-timepicker.
87
91
  /// @param {Map} $theme The theme to generate styles for.
88
92
  /// @param {ArgList} Additional optional arguments (only supported for M3 themes):
@@ -76,18 +76,22 @@
76
76
  }
77
77
  }
78
78
 
79
- /// Outputs the CSS variable values for the given tokens.
80
- /// @param {Map} $tokens The token values to emit.
81
- @mixin overrides($tokens: ()) {
82
- @include token-utils.batch-create-token-values(
83
- $tokens,
79
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
80
+ @function _define-overrides() {
81
+ @return (
84
82
  (
85
83
  namespace: tokens-mat-toolbar.$prefix,
86
84
  tokens: tokens-mat-toolbar.get-token-slots(),
87
- )
85
+ ),
88
86
  );
89
87
  }
90
88
 
89
+ /// Outputs the CSS variable values for the given tokens.
90
+ /// @param {Map} $tokens The token values to emit.
91
+ @mixin overrides($tokens: ()) {
92
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
93
+ }
94
+
91
95
  @mixin theme($theme) {
92
96
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-toolbar') {
93
97
  @if inspection.get-theme-version($theme) == 1 {
@@ -59,16 +59,20 @@
59
59
  }
60
60
  }
61
61
 
62
- @mixin overrides($tokens: ()) {
63
- @include token-utils.batch-create-token-values(
64
- $tokens,
62
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
63
+ @function _define-overrides() {
64
+ @return (
65
65
  (
66
66
  namespace: tokens-mdc-plain-tooltip.$prefix,
67
67
  tokens: tokens-mdc-plain-tooltip.get-token-slots(),
68
- )
68
+ ),
69
69
  );
70
70
  }
71
71
 
72
+ @mixin overrides($tokens: ()) {
73
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
74
+ }
75
+
72
76
  @mixin theme($theme) {
73
77
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-tooltip') {
74
78
  @if inspection.get-theme-version($theme) == 1 {
@@ -6,10 +6,9 @@ import { Directionality } from '@angular/cdk/bidi';
6
6
  import { ElementRef } from '@angular/core';
7
7
  import * as i0 from '@angular/core';
8
8
  import * as i1 from '@angular/cdk/a11y';
9
- import * as i2 from '@angular/common';
10
- import * as i3 from '@angular/cdk/overlay';
11
- import * as i4 from '@angular/material/core';
12
- import * as i6 from '@angular/cdk/scrolling';
9
+ import * as i2 from '@angular/cdk/overlay';
10
+ import * as i3 from '@angular/material/core';
11
+ import * as i5 from '@angular/cdk/scrolling';
13
12
  import { InjectionToken } from '@angular/core';
14
13
  import { NumberInput } from '@angular/cdk/coercion';
15
14
  import { Observable } from 'rxjs';
@@ -26,7 +25,7 @@ import { ScrollStrategy } from '@angular/cdk/overlay';
26
25
  */
27
26
  export declare function getMatTooltipInvalidPositionError(position: string): Error;
28
27
 
29
- declare namespace i5 {
28
+ declare namespace i4 {
30
29
  export {
31
30
  getMatTooltipInvalidPositionError,
32
31
  MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY,
@@ -253,7 +252,7 @@ export declare interface MatTooltipDefaultOptions {
253
252
 
254
253
  export declare class MatTooltipModule {
255
254
  static ɵfac: i0.ɵɵFactoryDeclaration<MatTooltipModule, never>;
256
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatTooltipModule, never, [typeof i1.A11yModule, typeof i2.CommonModule, typeof i3.OverlayModule, typeof i4.MatCommonModule, typeof i5.MatTooltip, typeof i5.TooltipComponent], [typeof i5.MatTooltip, typeof i5.TooltipComponent, typeof i4.MatCommonModule, typeof i6.CdkScrollableModule]>;
255
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatTooltipModule, never, [typeof i1.A11yModule, typeof i2.OverlayModule, typeof i3.MatCommonModule, typeof i4.MatTooltip, typeof i4.TooltipComponent], [typeof i4.MatTooltip, typeof i4.TooltipComponent, typeof i3.MatCommonModule, typeof i5.CdkScrollableModule]>;
257
256
  static ɵinj: i0.ɵɵInjectorDeclaration<MatTooltipModule>;
258
257
  }
259
258
 
@@ -58,16 +58,20 @@
58
58
  }
59
59
  }
60
60
 
61
- @mixin overrides($tokens: ()) {
62
- @include token-utils.batch-create-token-values(
63
- $tokens,
61
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
62
+ @function _define-overrides() {
63
+ @return (
64
64
  (
65
65
  namespace: tokens-mat-tree.$prefix,
66
66
  tokens: tokens-mat-tree.get-token-slots(),
67
- )
67
+ ),
68
68
  );
69
69
  }
70
70
 
71
+ @mixin overrides($tokens: ()) {
72
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
73
+ }
74
+
71
75
  @mixin theme($theme) {
72
76
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-tree') {
73
77
  @if inspection.get-theme-version($theme) == 1 {