@angular/material 19.0.0-next.8 → 19.0.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 (229) hide show
  1. package/_index.scss +1 -2
  2. package/autocomplete/_autocomplete-theme.scss +37 -24
  3. package/autocomplete/index.d.ts +5 -6
  4. package/badge/_badge-theme.scss +38 -24
  5. package/bottom-sheet/_bottom-sheet-theme.scss +32 -20
  6. package/button/_button-theme.scss +229 -105
  7. package/button/_fab-theme.scss +95 -44
  8. package/button/_icon-button-theme.scss +38 -25
  9. package/button/index.d.ts +3 -3
  10. package/button-toggle/_button-toggle-theme.scss +62 -37
  11. package/card/_card-theme.scss +79 -38
  12. package/card/index.d.ts +2 -3
  13. package/checkbox/_checkbox-theme.scss +16 -10
  14. package/chips/_chips-theme.scss +64 -30
  15. package/core/_core-theme.scss +55 -37
  16. package/core/_core.scss +3 -6
  17. package/core/option/_optgroup-theme.scss +29 -18
  18. package/core/option/_option-theme.scss +34 -21
  19. package/core/ripple/_ripple-theme.scss +33 -21
  20. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +49 -23
  21. package/core/theming/_config-validation.scss +4 -4
  22. package/core/theming/_definition.scss +12 -2
  23. package/core/tokens/_m3-system.scss +86 -42
  24. package/core/tokens/_token-utils.scss +91 -34
  25. package/core/tokens/m2/mat/_badge.scss +12 -3
  26. package/core/tokens/m2/mdc/_radio.scss +1 -1
  27. package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +1 -1
  28. package/core/tokens/m3/mat/_badge.scss +6 -3
  29. package/datepicker/_datepicker-theme.scss +53 -32
  30. package/datepicker/index.d.ts +33 -34
  31. package/dialog/_dialog-theme.scss +46 -23
  32. package/divider/_divider-theme.scss +28 -17
  33. package/expansion/_expansion-theme.scss +36 -24
  34. package/fesm2022/autocomplete/testing.mjs +2 -5
  35. package/fesm2022/autocomplete/testing.mjs.map +1 -1
  36. package/fesm2022/autocomplete.mjs +225 -148
  37. package/fesm2022/autocomplete.mjs.map +1 -1
  38. package/fesm2022/badge/testing.mjs +2 -5
  39. package/fesm2022/badge/testing.mjs.map +1 -1
  40. package/fesm2022/badge.mjs +45 -35
  41. package/fesm2022/badge.mjs.map +1 -1
  42. package/fesm2022/bottom-sheet/testing.mjs +1 -1
  43. package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
  44. package/fesm2022/bottom-sheet.mjs +80 -58
  45. package/fesm2022/bottom-sheet.mjs.map +1 -1
  46. package/fesm2022/button/testing.mjs +2 -2
  47. package/fesm2022/button/testing.mjs.map +1 -1
  48. package/fesm2022/button-toggle/testing.mjs +4 -7
  49. package/fesm2022/button-toggle/testing.mjs.map +1 -1
  50. package/fesm2022/button-toggle.mjs +82 -45
  51. package/fesm2022/button-toggle.mjs.map +1 -1
  52. package/fesm2022/button.mjs +106 -79
  53. package/fesm2022/button.mjs.map +1 -1
  54. package/fesm2022/card/testing.mjs +3 -6
  55. package/fesm2022/card/testing.mjs.map +1 -1
  56. package/fesm2022/card.mjs +56 -69
  57. package/fesm2022/card.mjs.map +1 -1
  58. package/fesm2022/checkbox/testing.mjs +4 -7
  59. package/fesm2022/checkbox/testing.mjs.map +1 -1
  60. package/fesm2022/checkbox.mjs +104 -62
  61. package/fesm2022/checkbox.mjs.map +1 -1
  62. package/fesm2022/chips/testing.mjs +11 -14
  63. package/fesm2022/chips/testing.mjs.map +1 -1
  64. package/fesm2022/chips.mjs +322 -276
  65. package/fesm2022/chips.mjs.map +1 -1
  66. package/fesm2022/core/testing.mjs +5 -11
  67. package/fesm2022/core/testing.mjs.map +1 -1
  68. package/fesm2022/core.mjs +242 -187
  69. package/fesm2022/core.mjs.map +1 -1
  70. package/fesm2022/datepicker/testing.mjs +13 -22
  71. package/fesm2022/datepicker/testing.mjs.map +1 -1
  72. package/fesm2022/datepicker.mjs +827 -582
  73. package/fesm2022/datepicker.mjs.map +1 -1
  74. package/fesm2022/dialog/testing.mjs +15 -10
  75. package/fesm2022/dialog/testing.mjs.map +1 -1
  76. package/fesm2022/dialog.mjs +221 -156
  77. package/fesm2022/dialog.mjs.map +1 -1
  78. package/fesm2022/divider/testing.mjs +1 -1
  79. package/fesm2022/divider/testing.mjs.map +1 -1
  80. package/fesm2022/divider.mjs +10 -12
  81. package/fesm2022/divider.mjs.map +1 -1
  82. package/fesm2022/expansion/testing.mjs +7 -10
  83. package/fesm2022/expansion/testing.mjs.map +1 -1
  84. package/fesm2022/expansion.mjs +86 -80
  85. package/fesm2022/expansion.mjs.map +1 -1
  86. package/fesm2022/form-field/testing.mjs +12 -15
  87. package/fesm2022/form-field/testing.mjs.map +1 -1
  88. package/fesm2022/form-field.mjs +179 -132
  89. package/fesm2022/form-field.mjs.map +1 -1
  90. package/fesm2022/grid-list/testing.mjs +11 -17
  91. package/fesm2022/grid-list/testing.mjs.map +1 -1
  92. package/fesm2022/grid-list.mjs +75 -56
  93. package/fesm2022/grid-list.mjs.map +1 -1
  94. package/fesm2022/icon/testing.mjs +8 -8
  95. package/fesm2022/icon/testing.mjs.map +1 -1
  96. package/fesm2022/icon.mjs +66 -46
  97. package/fesm2022/icon.mjs.map +1 -1
  98. package/fesm2022/input/testing.mjs +3 -3
  99. package/fesm2022/input/testing.mjs.map +1 -1
  100. package/fesm2022/input.mjs +103 -72
  101. package/fesm2022/input.mjs.map +1 -1
  102. package/fesm2022/list/testing.mjs +21 -38
  103. package/fesm2022/list/testing.mjs.map +1 -1
  104. package/fesm2022/list.mjs +197 -195
  105. package/fesm2022/list.mjs.map +1 -1
  106. package/fesm2022/menu/testing.mjs +3 -6
  107. package/fesm2022/menu/testing.mjs.map +1 -1
  108. package/fesm2022/menu.mjs +178 -127
  109. package/fesm2022/menu.mjs.map +1 -1
  110. package/fesm2022/paginator/testing.mjs +10 -13
  111. package/fesm2022/paginator/testing.mjs.map +1 -1
  112. package/fesm2022/paginator.mjs +83 -58
  113. package/fesm2022/paginator.mjs.map +1 -1
  114. package/fesm2022/progress-bar/testing.mjs +1 -1
  115. package/fesm2022/progress-bar/testing.mjs.map +1 -1
  116. package/fesm2022/progress-bar.mjs +36 -35
  117. package/fesm2022/progress-bar.mjs.map +1 -1
  118. package/fesm2022/progress-spinner/testing.mjs +1 -1
  119. package/fesm2022/progress-spinner/testing.mjs.map +1 -1
  120. package/fesm2022/progress-spinner.mjs +28 -14
  121. package/fesm2022/progress-spinner.mjs.map +1 -1
  122. package/fesm2022/radio/testing.mjs +6 -12
  123. package/fesm2022/radio/testing.mjs.map +1 -1
  124. package/fesm2022/radio.mjs +123 -87
  125. package/fesm2022/radio.mjs.map +1 -1
  126. package/fesm2022/select/testing.mjs +6 -9
  127. package/fesm2022/select/testing.mjs.map +1 -1
  128. package/fesm2022/select.mjs +219 -182
  129. package/fesm2022/select.mjs.map +1 -1
  130. package/fesm2022/sidenav/testing.mjs +6 -6
  131. package/fesm2022/sidenav/testing.mjs.map +1 -1
  132. package/fesm2022/sidenav.mjs +136 -125
  133. package/fesm2022/sidenav.mjs.map +1 -1
  134. package/fesm2022/slide-toggle/testing.mjs +3 -6
  135. package/fesm2022/slide-toggle/testing.mjs.map +1 -1
  136. package/fesm2022/slide-toggle.mjs +77 -47
  137. package/fesm2022/slide-toggle.mjs.map +1 -1
  138. package/fesm2022/slider/testing.mjs +2 -2
  139. package/fesm2022/slider/testing.mjs.map +1 -1
  140. package/fesm2022/slider.mjs +262 -194
  141. package/fesm2022/slider.mjs.map +1 -1
  142. package/fesm2022/snack-bar/testing.mjs +4 -7
  143. package/fesm2022/snack-bar/testing.mjs.map +1 -1
  144. package/fesm2022/snack-bar.mjs +143 -111
  145. package/fesm2022/snack-bar.mjs.map +1 -1
  146. package/fesm2022/sort/testing.mjs +3 -6
  147. package/fesm2022/sort/testing.mjs.map +1 -1
  148. package/fesm2022/sort.mjs +94 -74
  149. package/fesm2022/sort.mjs.map +1 -1
  150. package/fesm2022/stepper/testing.mjs +4 -4
  151. package/fesm2022/stepper/testing.mjs.map +1 -1
  152. package/fesm2022/stepper.mjs +146 -113
  153. package/fesm2022/stepper.mjs.map +1 -1
  154. package/fesm2022/table/testing.mjs +13 -25
  155. package/fesm2022/table/testing.mjs.map +1 -1
  156. package/fesm2022/table.mjs +183 -194
  157. package/fesm2022/table.mjs.map +1 -1
  158. package/fesm2022/tabs/testing.mjs +5 -5
  159. package/fesm2022/tabs/testing.mjs.map +1 -1
  160. package/fesm2022/tabs.mjs +329 -251
  161. package/fesm2022/tabs.mjs.map +1 -1
  162. package/fesm2022/timepicker/testing.mjs +7 -16
  163. package/fesm2022/timepicker/testing.mjs.map +1 -1
  164. package/fesm2022/timepicker.mjs +160 -155
  165. package/fesm2022/timepicker.mjs.map +1 -1
  166. package/fesm2022/toolbar/testing.mjs +2 -5
  167. package/fesm2022/toolbar/testing.mjs.map +1 -1
  168. package/fesm2022/toolbar.mjs +26 -17
  169. package/fesm2022/toolbar.mjs.map +1 -1
  170. package/fesm2022/tooltip/testing.mjs +6 -9
  171. package/fesm2022/tooltip/testing.mjs.map +1 -1
  172. package/fesm2022/tooltip.mjs +97 -74
  173. package/fesm2022/tooltip.mjs.map +1 -1
  174. package/fesm2022/tree/testing.mjs +3 -6
  175. package/fesm2022/tree/testing.mjs.map +1 -1
  176. package/fesm2022/tree.mjs +57 -61
  177. package/fesm2022/tree.mjs.map +1 -1
  178. package/form-field/_form-field-theme.scss +114 -61
  179. package/form-field/index.d.ts +9 -10
  180. package/grid-list/_grid-list-theme.scss +25 -15
  181. package/icon/_icon-theme.scss +22 -14
  182. package/input/_input-theme.scss +18 -11
  183. package/list/_list-theme.scss +89 -47
  184. package/list/index.d.ts +20 -21
  185. package/menu/_menu-theme.scss +33 -21
  186. package/menu/index.d.ts +8 -9
  187. package/package.json +2 -2
  188. package/paginator/_paginator-theme.scss +39 -23
  189. package/prebuilt-themes/azure-blue.css +1 -1
  190. package/prebuilt-themes/cyan-orange.css +1 -1
  191. package/prebuilt-themes/deeppurple-amber.css +1 -1
  192. package/prebuilt-themes/indigo-pink.css +1 -1
  193. package/prebuilt-themes/magenta-violet.css +1 -1
  194. package/prebuilt-themes/pink-bluegrey.css +1 -1
  195. package/prebuilt-themes/purple-green.css +1 -1
  196. package/prebuilt-themes/rose-red.css +1 -1
  197. package/progress-bar/_progress-bar-theme.scss +20 -16
  198. package/progress-spinner/_progress-spinner-theme.scss +41 -25
  199. package/progress-spinner/index.d.ts +3 -4
  200. package/radio/_radio-theme.scss +60 -32
  201. package/radio/index.d.ts +2 -3
  202. package/schematics/collection.json +3 -3
  203. package/schematics/ng-add/index.js +1 -1
  204. package/schematics/ng-add/index.mjs +1 -1
  205. package/schematics/ng-add/theming/create-custom-theme.js +1 -6
  206. package/schematics/ng-add/theming/create-custom-theme.mjs +1 -6
  207. package/schematics/ng-generate/{m3-theme → theme-color}/index_bundled.js +480 -288
  208. package/schematics/ng-generate/theme-color/index_bundled.js.map +7 -0
  209. package/schematics/ng-generate/{m3-theme → theme-color}/schema.json +7 -13
  210. package/schematics/ng-update/index_bundled.js +6 -1
  211. package/schematics/ng-update/index_bundled.js.map +1 -1
  212. package/select/_select-theme.scss +38 -25
  213. package/select/index.d.ts +6 -7
  214. package/sidenav/_sidenav-theme.scss +28 -17
  215. package/slide-toggle/_slide-toggle-theme.scss +52 -28
  216. package/slider/_slider-theme.scss +62 -38
  217. package/snack-bar/_snack-bar-theme.scss +29 -17
  218. package/sort/_sort-theme.scss +33 -21
  219. package/stepper/_stepper-theme.scss +40 -27
  220. package/stepper/index.d.ts +14 -15
  221. package/table/_table-theme.scss +36 -23
  222. package/tabs/_tabs-theme.scss +97 -50
  223. package/tabs/index.d.ts +2 -2
  224. package/timepicker/_timepicker-theme.scss +37 -24
  225. package/toolbar/_toolbar-theme.scss +35 -22
  226. package/tooltip/_tooltip-theme.scss +18 -15
  227. package/tooltip/index.d.ts +5 -6
  228. package/tree/_tree-theme.scss +33 -21
  229. package/schematics/ng-generate/m3-theme/index_bundled.js.map +0 -7
@@ -15,13 +15,16 @@
15
15
  // Add default values for tokens not related to color, typography, or density.
16
16
  @if inspection.get-theme-version($theme) == 1 {
17
17
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
18
- }
19
- @else {
18
+ } @else {
20
19
  @include sass-utils.current-selector-or-root() {
21
20
  @include token-utils.create-token-values(
22
- tokens-mdc-list.$prefix, tokens-mdc-list.get-unthemable-tokens());
21
+ tokens-mdc-list.$prefix,
22
+ tokens-mdc-list.get-unthemable-tokens()
23
+ );
23
24
  @include token-utils.create-token-values(
24
- tokens-mat-list.$prefix, tokens-mat-list.get-unthemable-tokens());
25
+ tokens-mat-list.$prefix,
26
+ tokens-mat-list.get-unthemable-tokens()
27
+ );
25
28
  }
26
29
  }
27
30
  }
@@ -29,26 +32,33 @@
29
32
  @mixin color($theme) {
30
33
  @if inspection.get-theme-version($theme) == 1 {
31
34
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
32
- }
33
- @else {
35
+ } @else {
34
36
  @include sass-utils.current-selector-or-root() {
35
37
  @include token-utils.create-token-values(
36
- tokens-mdc-list.$prefix, tokens-mdc-list.get-color-tokens($theme));
38
+ tokens-mdc-list.$prefix,
39
+ tokens-mdc-list.get-color-tokens($theme)
40
+ );
37
41
  @include token-utils.create-token-values(
38
- tokens-mat-list.$prefix, tokens-mat-list.get-color-tokens($theme));
42
+ tokens-mat-list.$prefix,
43
+ tokens-mat-list.get-color-tokens($theme)
44
+ );
39
45
  }
40
46
 
41
47
  .mdc-list-item__start,
42
48
  .mdc-list-item__end {
43
49
  @include token-utils.create-token-values(
44
- tokens-mdc-radio.$prefix, tokens-mdc-radio.get-color-tokens($theme, primary));
50
+ tokens-mdc-radio.$prefix,
51
+ tokens-mdc-radio.get-color-tokens($theme, primary)
52
+ );
45
53
  }
46
54
 
47
55
  .mat-accent {
48
56
  .mdc-list-item__start,
49
57
  .mdc-list-item__end {
50
58
  @include token-utils.create-token-values(
51
- tokens-mdc-radio.$prefix, tokens-mdc-radio.get-color-tokens($theme, accent));
59
+ tokens-mdc-radio.$prefix,
60
+ tokens-mdc-radio.get-color-tokens($theme, accent)
61
+ );
52
62
  }
53
63
  }
54
64
 
@@ -56,21 +66,29 @@
56
66
  .mdc-list-item__start,
57
67
  .mdc-list-item__end {
58
68
  @include token-utils.create-token-values(
59
- tokens-mdc-radio.$prefix, tokens-mdc-radio.get-color-tokens($theme, warn));
69
+ tokens-mdc-radio.$prefix,
70
+ tokens-mdc-radio.get-color-tokens($theme, warn)
71
+ );
60
72
  }
61
73
  }
62
74
 
63
75
  .mat-mdc-list-option {
64
76
  @include token-utils.create-token-values(
65
- tokens-mdc-checkbox.$prefix, tokens-mdc-checkbox.get-color-tokens($theme, primary));
77
+ tokens-mdc-checkbox.$prefix,
78
+ tokens-mdc-checkbox.get-color-tokens($theme, primary)
79
+ );
66
80
  }
67
81
  .mat-mdc-list-option.mat-accent {
68
82
  @include token-utils.create-token-values(
69
- tokens-mdc-checkbox.$prefix, tokens-mdc-checkbox.get-color-tokens($theme, accent));
83
+ tokens-mdc-checkbox.$prefix,
84
+ tokens-mdc-checkbox.get-color-tokens($theme, accent)
85
+ );
70
86
  }
71
87
  .mat-mdc-list-option.mat-warn {
72
88
  @include token-utils.create-token-values(
73
- tokens-mdc-checkbox.$prefix, tokens-mdc-checkbox.get-color-tokens($theme, warn));
89
+ tokens-mdc-checkbox.$prefix,
90
+ tokens-mdc-checkbox.get-color-tokens($theme, warn)
91
+ );
74
92
  }
75
93
 
76
94
  // There is no token for activated color on nav list.
@@ -101,21 +119,26 @@
101
119
  @mixin density($theme) {
102
120
  @if inspection.get-theme-version($theme) == 1 {
103
121
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
104
- }
105
- @else {
122
+ } @else {
106
123
  $density-scale: inspection.get-theme-density($theme);
107
124
 
108
125
  @include sass-utils.current-selector-or-root() {
109
126
  @include token-utils.create-token-values(
110
- tokens-mdc-list.$prefix, tokens-mdc-list.get-density-tokens($theme));
127
+ tokens-mdc-list.$prefix,
128
+ tokens-mdc-list.get-density-tokens($theme)
129
+ );
111
130
  @include token-utils.create-token-values(
112
- tokens-mat-list.$prefix, tokens-mat-list.get-density-tokens($theme));
131
+ tokens-mat-list.$prefix,
132
+ tokens-mat-list.get-density-tokens($theme)
133
+ );
113
134
  }
114
135
 
115
136
  .mdc-list-item__start,
116
137
  .mdc-list-item__end {
117
138
  @include token-utils.create-token-values(
118
- tokens-mdc-radio.$prefix, tokens-mdc-radio.get-density-tokens($theme));
139
+ tokens-mdc-radio.$prefix,
140
+ tokens-mdc-radio.get-density-tokens($theme)
141
+ );
119
142
  }
120
143
 
121
144
  // TODO(mmalerba): This is added to maintain the same style MDC used prior to the token-based
@@ -126,25 +149,31 @@
126
149
  &.mdc-list-item--with-leading-checkbox,
127
150
  &.mdc-list-item--with-leading-icon {
128
151
  &.mdc-list-item--with-one-line {
129
- height: map.get((
130
- 0: 56px,
131
- -1: 52px,
132
- -2: 48px,
133
- -3: 44px,
134
- -4: 40px,
135
- -5: 40px,
136
- ), $density-scale);
152
+ height: map.get(
153
+ (
154
+ 0: 56px,
155
+ -1: 52px,
156
+ -2: 48px,
157
+ -3: 44px,
158
+ -4: 40px,
159
+ -5: 40px,
160
+ ),
161
+ $density-scale
162
+ );
137
163
  }
138
164
 
139
165
  &.mdc-list-item--with-two-lines {
140
- height: map.get((
141
- 0: 72px,
142
- -1: 68px,
143
- -2: 64px,
144
- -3: 60px,
145
- -4: 56px,
146
- -5: 56px,
147
- ), $density-scale);
166
+ height: map.get(
167
+ (
168
+ 0: 72px,
169
+ -1: 68px,
170
+ -2: 64px,
171
+ -3: 60px,
172
+ -4: 56px,
173
+ -5: 56px,
174
+ ),
175
+ $density-scale
176
+ );
148
177
  }
149
178
  }
150
179
  }
@@ -154,13 +183,16 @@
154
183
  @mixin typography($theme) {
155
184
  @if inspection.get-theme-version($theme) == 1 {
156
185
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
157
- }
158
- @else {
186
+ } @else {
159
187
  @include sass-utils.current-selector-or-root() {
160
188
  @include token-utils.create-token-values(
161
- tokens-mdc-list.$prefix, tokens-mdc-list.get-typography-tokens($theme));
189
+ tokens-mdc-list.$prefix,
190
+ tokens-mdc-list.get-typography-tokens($theme)
191
+ );
162
192
  @include token-utils.create-token-values(
163
- tokens-mat-list.$prefix, tokens-mat-list.get-typography-tokens($theme));
193
+ tokens-mat-list.$prefix,
194
+ tokens-mat-list.get-typography-tokens($theme)
195
+ );
164
196
  }
165
197
 
166
198
  // MDC does not have tokens for the subheader.
@@ -172,20 +204,29 @@
172
204
  }
173
205
  }
174
206
 
175
- @mixin overrides($tokens: ()) {
176
- @include token-utils.batch-create-token-values(
177
- $tokens,
178
- (prefix: tokens-mat-list.$prefix, tokens: tokens-mat-list.get-token-slots()),
179
- (prefix: tokens-mdc-list.$prefix, tokens: tokens-mdc-list.get-token-slots()),
207
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
208
+ @function _define-overrides() {
209
+ @return (
210
+ (
211
+ namespace: tokens-mat-list.$prefix,
212
+ tokens: tokens-mat-list.get-token-slots(),
213
+ ),
214
+ (
215
+ namespace: tokens-mdc-list.$prefix,
216
+ tokens: tokens-mdc-list.get-token-slots(),
217
+ ),
180
218
  );
181
219
  }
182
220
 
221
+ @mixin overrides($tokens: ()) {
222
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
223
+ }
224
+
183
225
  @mixin theme($theme) {
184
226
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-list') {
185
227
  @if inspection.get-theme-version($theme) == 1 {
186
228
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
187
- }
188
- @else {
229
+ } @else {
189
230
  @include base($theme);
190
231
  @if inspection.theme-has($theme, color) {
191
232
  @include color($theme);
@@ -202,7 +243,8 @@
202
243
 
203
244
  @mixin _theme-from-tokens($tokens) {
204
245
  @include validation.selector-defined(
205
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
246
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
247
+ );
206
248
  $mdc-list-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-list.$prefix);
207
249
  $mat-list-tokens: token-utils.get-tokens-for($tokens, tokens-mat-list.$prefix);
208
250
  @include token-utils.create-token-values(tokens-mdc-list.$prefix, $mdc-list-tokens);
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
 
@@ -10,11 +10,12 @@
10
10
  @mixin base($theme) {
11
11
  @if inspection.get-theme-version($theme) == 1 {
12
12
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
13
- }
14
- @else {
13
+ } @else {
15
14
  @include sass-utils.current-selector-or-root() {
16
- @include token-utils.create-token-values(tokens-mat-menu.$prefix,
17
- tokens-mat-menu.get-unthemable-tokens());
15
+ @include token-utils.create-token-values(
16
+ tokens-mat-menu.$prefix,
17
+ tokens-mat-menu.get-unthemable-tokens()
18
+ );
18
19
  }
19
20
  }
20
21
  }
@@ -22,11 +23,12 @@
22
23
  @mixin color($theme) {
23
24
  @if inspection.get-theme-version($theme) == 1 {
24
25
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
25
- }
26
- @else {
26
+ } @else {
27
27
  @include sass-utils.current-selector-or-root() {
28
- @include token-utils.create-token-values(tokens-mat-menu.$prefix,
29
- tokens-mat-menu.get-color-tokens($theme));
28
+ @include token-utils.create-token-values(
29
+ tokens-mat-menu.$prefix,
30
+ tokens-mat-menu.get-color-tokens($theme)
31
+ );
30
32
  }
31
33
  }
32
34
  }
@@ -34,11 +36,12 @@
34
36
  @mixin typography($theme) {
35
37
  @if inspection.get-theme-version($theme) == 1 {
36
38
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
37
- }
38
- @else {
39
+ } @else {
39
40
  @include sass-utils.current-selector-or-root() {
40
- @include token-utils.create-token-values(tokens-mat-menu.$prefix,
41
- tokens-mat-menu.get-typography-tokens($theme));
41
+ @include token-utils.create-token-values(
42
+ tokens-mat-menu.$prefix,
43
+ tokens-mat-menu.get-typography-tokens($theme)
44
+ );
42
45
  }
43
46
  }
44
47
  }
@@ -46,23 +49,29 @@
46
49
  @mixin density($theme) {
47
50
  @if inspection.get-theme-version($theme) == 1 {
48
51
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
52
+ } @else {
49
53
  }
50
- @else {}
51
54
  }
52
55
 
53
- @mixin overrides($tokens: ()) {
54
- @include token-utils.batch-create-token-values(
55
- $tokens,
56
- (prefix: tokens-mat-menu.$prefix, tokens: tokens-mat-menu.get-token-slots()),
56
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
57
+ @function _define-overrides() {
58
+ @return (
59
+ (
60
+ namespace: tokens-mat-menu.$prefix,
61
+ tokens: tokens-mat-menu.get-token-slots(),
62
+ ),
57
63
  );
58
64
  }
59
65
 
66
+ @mixin overrides($tokens: ()) {
67
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
68
+ }
69
+
60
70
  @mixin theme($theme) {
61
71
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-menu') {
62
72
  @if inspection.get-theme-version($theme) == 1 {
63
73
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
64
- }
65
- @else {
74
+ } @else {
66
75
  @include base($theme);
67
76
  @if inspection.theme-has($theme, color) {
68
77
  @include color($theme);
@@ -79,9 +88,12 @@
79
88
 
80
89
  @mixin _theme-from-tokens($tokens) {
81
90
  @include validation.selector-defined(
82
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
91
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
92
+ );
83
93
  @if ($tokens != ()) {
84
94
  @include token-utils.create-token-values(
85
- tokens-mat-menu.$prefix, map.get($tokens, tokens-mat-menu.$prefix));
95
+ tokens-mat-menu.$prefix,
96
+ map.get($tokens, tokens-mat-menu.$prefix)
97
+ );
86
98
  }
87
99
  }
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,
@@ -344,7 +343,7 @@ export declare class MatMenuItem implements FocusableOption, AfterViewInit, OnDe
344
343
 
345
344
  export declare class MatMenuModule {
346
345
  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]>;
346
+ 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
347
  static ɵinj: i0.ɵɵInjectorDeclaration<MatMenuModule>;
349
348
  }
350
349
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material",
3
- "version": "19.0.0-next.8",
3
+ "version": "19.0.0-rc.0",
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.8",
357
+ "@angular/cdk": "19.0.0-rc.0",
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",
@@ -11,18 +11,19 @@
11
11
  @mixin base($theme) {
12
12
  @if inspection.get-theme-version($theme) == 1 {
13
13
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
14
+ } @else {
14
15
  }
15
- @else {}
16
16
  }
17
17
 
18
18
  @mixin color($theme) {
19
19
  @if inspection.get-theme-version($theme) == 1 {
20
20
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
21
- }
22
- @else {
21
+ } @else {
23
22
  @include sass-utils.current-selector-or-root() {
24
- @include token-utils.create-token-values(tokens-mat-paginator.$prefix,
25
- tokens-mat-paginator.get-color-tokens($theme));
23
+ @include token-utils.create-token-values(
24
+ tokens-mat-paginator.$prefix,
25
+ tokens-mat-paginator.get-color-tokens($theme)
26
+ );
26
27
  }
27
28
  }
28
29
  }
@@ -30,44 +31,56 @@
30
31
  @mixin typography($theme) {
31
32
  @if inspection.get-theme-version($theme) == 1 {
32
33
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
33
- }
34
- @else {
34
+ } @else {
35
35
  @include sass-utils.current-selector-or-root() {
36
- @include token-utils.create-token-values(tokens-mat-paginator.$prefix,
37
- tokens-mat-paginator.get-typography-tokens($theme));
36
+ @include token-utils.create-token-values(
37
+ tokens-mat-paginator.$prefix,
38
+ tokens-mat-paginator.get-typography-tokens($theme)
39
+ );
38
40
  }
39
41
  }
40
42
  }
41
43
 
42
44
  @mixin density($theme) {
43
45
  $density-scale: inspection.get-theme-density($theme);
44
- $form-field-density: if((meta.type-of($density-scale) == 'number' and $density-scale >= -4) or
45
- $density-scale == maximum, -4, $density-scale);
46
+ $form-field-density: if(
47
+ (meta.type-of($density-scale) == 'number' and $density-scale >= -4) or
48
+ ($density-scale == maximum),
49
+ -4,
50
+ $density-scale
51
+ );
46
52
 
47
53
  @if inspection.get-theme-version($theme) == 1 {
48
54
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
49
- }
50
- @else {
55
+ } @else {
51
56
  @include sass-utils.current-selector-or-root() {
52
- @include token-utils.create-token-values(tokens-mat-paginator.$prefix,
53
- tokens-mat-paginator.get-density-tokens($theme));
57
+ @include token-utils.create-token-values(
58
+ tokens-mat-paginator.$prefix,
59
+ tokens-mat-paginator.get-density-tokens($theme)
60
+ );
54
61
  }
55
62
  }
56
63
  }
57
64
 
58
- @mixin overrides($tokens: ()) {
59
- @include token-utils.batch-create-token-values(
60
- $tokens,
61
- (prefix: tokens-mat-paginator.$prefix, tokens: tokens-mat-paginator.get-token-slots()),
65
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
66
+ @function _define-overrides() {
67
+ @return (
68
+ (
69
+ namespace: tokens-mat-paginator.$prefix,
70
+ tokens: tokens-mat-paginator.get-token-slots(),
71
+ ),
62
72
  );
63
73
  }
64
74
 
75
+ @mixin overrides($tokens: ()) {
76
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
77
+ }
78
+
65
79
  @mixin theme($theme) {
66
80
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-paginator') {
67
81
  @if inspection.get-theme-version($theme) == 1 {
68
82
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
69
- }
70
- @else {
83
+ } @else {
71
84
  @include base($theme);
72
85
  @if inspection.theme-has($theme, color) {
73
86
  @include color($theme);
@@ -84,9 +97,12 @@
84
97
 
85
98
  @mixin _theme-from-tokens($tokens) {
86
99
  @include validation.selector-defined(
87
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
100
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
101
+ );
88
102
  @if ($tokens != ()) {
89
103
  @include token-utils.create-token-values(
90
- tokens-mat-paginator.$prefix, map.get($tokens, tokens-mat-paginator.$prefix));
104
+ tokens-mat-paginator.$prefix,
105
+ map.get($tokens, tokens-mat-paginator.$prefix)
106
+ );
91
107
  }
92
108
  }