@angular/material 19.0.0-next.8 → 19.0.0-next.9

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 (146) hide show
  1. package/_index.scss +1 -2
  2. package/autocomplete/_autocomplete-theme.scss +30 -21
  3. package/badge/_badge-theme.scss +31 -21
  4. package/bottom-sheet/_bottom-sheet-theme.scss +25 -17
  5. package/button/_button-theme.scss +220 -100
  6. package/button/_fab-theme.scss +88 -41
  7. package/button/_icon-button-theme.scss +31 -22
  8. package/button/index.d.ts +2 -2
  9. package/button-toggle/_button-toggle-theme.scss +52 -32
  10. package/card/_card-theme.scss +72 -35
  11. package/checkbox/_checkbox-theme.scss +6 -4
  12. package/chips/_chips-theme.scss +57 -27
  13. package/core/_core-theme.scss +51 -30
  14. package/core/_core.scss +1 -1
  15. package/core/option/_optgroup-theme.scss +22 -15
  16. package/core/option/_option-theme.scss +27 -18
  17. package/core/ripple/_ripple-theme.scss +26 -18
  18. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +40 -18
  19. package/core/tokens/_m3-system.scss +34 -6
  20. package/core/tokens/_token-utils.scss +91 -34
  21. package/core/tokens/m2/mat/_badge.scss +12 -3
  22. package/core/tokens/m2/mdc/_radio.scss +1 -1
  23. package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +1 -1
  24. package/core/tokens/m3/mat/_badge.scss +6 -3
  25. package/datepicker/_datepicker-theme.scss +46 -29
  26. package/datepicker/index.d.ts +1 -1
  27. package/dialog/_dialog-theme.scss +39 -20
  28. package/divider/_divider-theme.scss +21 -14
  29. package/expansion/_expansion-theme.scss +29 -21
  30. package/fesm2022/autocomplete.mjs +14 -16
  31. package/fesm2022/autocomplete.mjs.map +1 -1
  32. package/fesm2022/badge.mjs +11 -12
  33. package/fesm2022/badge.mjs.map +1 -1
  34. package/fesm2022/bottom-sheet.mjs +11 -11
  35. package/fesm2022/bottom-sheet.mjs.map +1 -1
  36. package/fesm2022/button-toggle.mjs +11 -12
  37. package/fesm2022/button-toggle.mjs.map +1 -1
  38. package/fesm2022/button.mjs +42 -42
  39. package/fesm2022/button.mjs.map +1 -1
  40. package/fesm2022/card.mjs +49 -60
  41. package/fesm2022/card.mjs.map +1 -1
  42. package/fesm2022/checkbox.mjs +16 -17
  43. package/fesm2022/checkbox.mjs.map +1 -1
  44. package/fesm2022/chips.mjs +48 -54
  45. package/fesm2022/chips.mjs.map +1 -1
  46. package/fesm2022/core.mjs +71 -73
  47. package/fesm2022/core.mjs.map +1 -1
  48. package/fesm2022/datepicker.mjs +95 -105
  49. package/fesm2022/datepicker.mjs.map +1 -1
  50. package/fesm2022/dialog/testing.mjs +0 -1
  51. package/fesm2022/dialog/testing.mjs.map +1 -1
  52. package/fesm2022/dialog.mjs +28 -33
  53. package/fesm2022/dialog.mjs.map +1 -1
  54. package/fesm2022/divider.mjs +8 -8
  55. package/fesm2022/divider.mjs.map +1 -1
  56. package/fesm2022/expansion.mjs +28 -33
  57. package/fesm2022/expansion.mjs.map +1 -1
  58. package/fesm2022/form-field.mjs +38 -45
  59. package/fesm2022/form-field.mjs.map +1 -1
  60. package/fesm2022/grid-list.mjs +26 -29
  61. package/fesm2022/grid-list.mjs.map +1 -1
  62. package/fesm2022/icon/testing.mjs +7 -7
  63. package/fesm2022/icon/testing.mjs.map +1 -1
  64. package/fesm2022/icon.mjs +11 -11
  65. package/fesm2022/icon.mjs.map +1 -1
  66. package/fesm2022/input.mjs +7 -8
  67. package/fesm2022/input.mjs.map +1 -1
  68. package/fesm2022/list.mjs +57 -66
  69. package/fesm2022/list.mjs.map +1 -1
  70. package/fesm2022/menu.mjs +18 -20
  71. package/fesm2022/menu.mjs.map +1 -1
  72. package/fesm2022/paginator.mjs +11 -11
  73. package/fesm2022/paginator.mjs.map +1 -1
  74. package/fesm2022/progress-bar.mjs +8 -8
  75. package/fesm2022/progress-bar.mjs.map +1 -1
  76. package/fesm2022/progress-spinner.mjs +8 -8
  77. package/fesm2022/progress-spinner.mjs.map +1 -1
  78. package/fesm2022/radio.mjs +11 -12
  79. package/fesm2022/radio.mjs.map +1 -1
  80. package/fesm2022/select.mjs +12 -13
  81. package/fesm2022/select.mjs.map +1 -1
  82. package/fesm2022/sidenav.mjs +28 -30
  83. package/fesm2022/sidenav.mjs.map +1 -1
  84. package/fesm2022/slide-toggle.mjs +16 -17
  85. package/fesm2022/slide-toggle.mjs.map +1 -1
  86. package/fesm2022/slider.mjs +18 -20
  87. package/fesm2022/slider.mjs.map +1 -1
  88. package/fesm2022/snack-bar.mjs +25 -28
  89. package/fesm2022/snack-bar.mjs.map +1 -1
  90. package/fesm2022/sort.mjs +14 -15
  91. package/fesm2022/sort.mjs.map +1 -1
  92. package/fesm2022/stepper.mjs +34 -39
  93. package/fesm2022/stepper.mjs.map +1 -1
  94. package/fesm2022/table.mjs +57 -73
  95. package/fesm2022/table.mjs.map +1 -1
  96. package/fesm2022/tabs.mjs +51 -56
  97. package/fesm2022/tabs.mjs.map +1 -1
  98. package/fesm2022/timepicker.mjs +17 -18
  99. package/fesm2022/timepicker.mjs.map +1 -1
  100. package/fesm2022/toolbar.mjs +11 -12
  101. package/fesm2022/toolbar.mjs.map +1 -1
  102. package/fesm2022/tooltip.mjs +11 -12
  103. package/fesm2022/tooltip.mjs.map +1 -1
  104. package/fesm2022/tree.mjs +26 -32
  105. package/fesm2022/tree.mjs.map +1 -1
  106. package/form-field/_form-field-theme.scss +105 -56
  107. package/form-field/index.d.ts +1 -1
  108. package/grid-list/_grid-list-theme.scss +18 -12
  109. package/icon/_icon-theme.scss +15 -11
  110. package/input/_input-theme.scss +11 -8
  111. package/list/_list-theme.scss +82 -44
  112. package/menu/_menu-theme.scss +26 -18
  113. package/package.json +2 -2
  114. package/paginator/_paginator-theme.scss +32 -20
  115. package/prebuilt-themes/azure-blue.css +1 -1
  116. package/prebuilt-themes/cyan-orange.css +1 -1
  117. package/prebuilt-themes/deeppurple-amber.css +1 -1
  118. package/prebuilt-themes/indigo-pink.css +1 -1
  119. package/prebuilt-themes/magenta-violet.css +1 -1
  120. package/prebuilt-themes/pink-bluegrey.css +1 -1
  121. package/prebuilt-themes/purple-green.css +1 -1
  122. package/prebuilt-themes/rose-red.css +1 -1
  123. package/progress-bar/_progress-bar-theme.scss +13 -11
  124. package/progress-spinner/_progress-spinner-theme.scss +34 -20
  125. package/radio/_radio-theme.scss +50 -26
  126. package/schematics/collection.json +3 -3
  127. package/schematics/ng-add/index.js +1 -1
  128. package/schematics/ng-add/index.mjs +1 -1
  129. package/schematics/ng-generate/{m3-theme → theme-color}/index_bundled.js +454 -288
  130. package/schematics/ng-generate/theme-color/index_bundled.js.map +7 -0
  131. package/schematics/ng-generate/{m3-theme → theme-color}/schema.json +7 -13
  132. package/select/_select-theme.scss +31 -22
  133. package/sidenav/_sidenav-theme.scss +21 -14
  134. package/slide-toggle/_slide-toggle-theme.scss +42 -22
  135. package/slider/_slider-theme.scss +55 -35
  136. package/snack-bar/_snack-bar-theme.scss +22 -14
  137. package/sort/_sort-theme.scss +26 -18
  138. package/stepper/_stepper-theme.scss +33 -24
  139. package/table/_table-theme.scss +29 -20
  140. package/tabs/_tabs-theme.scss +89 -46
  141. package/tabs/index.d.ts +2 -2
  142. package/timepicker/_timepicker-theme.scss +30 -21
  143. package/toolbar/_toolbar-theme.scss +28 -19
  144. package/tooltip/_tooltip-theme.scss +11 -12
  145. package/tree/_tree-theme.scss +26 -18
  146. package/schematics/ng-generate/m3-theme/index_bundled.js.map +0 -7
@@ -10,26 +10,27 @@
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
+ } @else {
13
14
  }
14
- @else {}
15
15
  }
16
16
 
17
17
  // Include this empty mixin for consistency with the other components.
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
+ } @else {
21
22
  }
22
- @else {}
23
23
  }
24
24
 
25
25
  @mixin typography($theme) {
26
26
  @if inspection.get-theme-version($theme) == 1 {
27
27
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
28
- }
29
- @else {
28
+ } @else {
30
29
  @include sass-utils.current-selector-or-root() {
31
- @include token-utils.create-token-values(tokens-mat-grid-list.$prefix,
32
- tokens-mat-grid-list.get-typography-tokens($theme));
30
+ @include token-utils.create-token-values(
31
+ tokens-mat-grid-list.$prefix,
32
+ tokens-mat-grid-list.get-typography-tokens($theme)
33
+ );
33
34
  }
34
35
  }
35
36
  }
@@ -37,14 +38,17 @@
37
38
  @mixin density($theme) {
38
39
  @if inspection.get-theme-version($theme) == 1 {
39
40
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
41
+ } @else {
40
42
  }
41
- @else {}
42
43
  }
43
44
 
44
45
  @mixin overrides($tokens: ()) {
45
46
  @include token-utils.batch-create-token-values(
46
47
  $tokens,
47
- (prefix: tokens-mat-grid-list.$prefix, tokens: tokens-mat-grid-list.get-token-slots()),
48
+ (
49
+ namespace: tokens-mat-grid-list.$prefix,
50
+ tokens: tokens-mat-grid-list.get-token-slots(),
51
+ )
48
52
  );
49
53
  }
50
54
 
@@ -52,8 +56,7 @@
52
56
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-grid-list') {
53
57
  @if inspection.get-theme-version($theme) == 1 {
54
58
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
55
- }
56
- @else {
59
+ } @else {
57
60
  @include base($theme);
58
61
  @if inspection.theme-has($theme, color) {
59
62
  @include color($theme);
@@ -70,9 +73,12 @@
70
73
 
71
74
  @mixin _theme-from-tokens($tokens) {
72
75
  @include validation.selector-defined(
73
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
76
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
77
+ );
74
78
  @if ($tokens != ()) {
75
79
  @include token-utils.create-token-values(
76
- tokens-mat-grid-list.$prefix, map.get($tokens, tokens-mat-grid-list.$prefix));
80
+ tokens-mat-grid-list.$prefix,
81
+ map.get($tokens, tokens-mat-grid-list.$prefix)
82
+ );
77
83
  }
78
84
  }
@@ -17,8 +17,8 @@
17
17
  @mixin base($theme) {
18
18
  @if inspection.get-theme-version($theme) == 1 {
19
19
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
20
+ } @else {
20
21
  }
21
- @else {}
22
22
  }
23
23
 
24
24
  /// Outputs color theme styles for the mat-icon.
@@ -29,11 +29,12 @@
29
29
  @mixin color($theme, $options...) {
30
30
  @if inspection.get-theme-version($theme) == 1 {
31
31
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
32
- }
33
- @else {
32
+ } @else {
34
33
  @include sass-utils.current-selector-or-root() {
35
- @include token-utils.create-token-values(tokens-mat-icon.$prefix,
36
- tokens-mat-icon.get-color-tokens($theme));
34
+ @include token-utils.create-token-values(
35
+ tokens-mat-icon.$prefix,
36
+ tokens-mat-icon.get-color-tokens($theme)
37
+ );
37
38
  }
38
39
 
39
40
  .mat-icon {
@@ -57,8 +58,8 @@
57
58
  @mixin typography($theme) {
58
59
  @if inspection.get-theme-version($theme) == 1 {
59
60
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
61
+ } @else {
60
62
  }
61
- @else {}
62
63
  }
63
64
 
64
65
  /// Outputs density theme styles for the mat-icon.
@@ -66,8 +67,8 @@
66
67
  @mixin density($theme) {
67
68
  @if inspection.get-theme-version($theme) == 1 {
68
69
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
70
+ } @else {
69
71
  }
70
- @else {}
71
72
  }
72
73
 
73
74
  /// Outputs the CSS variable values for the given tokens.
@@ -75,7 +76,10 @@
75
76
  @mixin overrides($tokens: ()) {
76
77
  @include token-utils.batch-create-token-values(
77
78
  $tokens,
78
- (prefix: tokens-mat-icon.$prefix, tokens: tokens-mat-icon.get-token-slots()),
79
+ (
80
+ namespace: tokens-mat-icon.$prefix,
81
+ tokens: tokens-mat-icon.get-token-slots(),
82
+ )
79
83
  );
80
84
  }
81
85
 
@@ -88,8 +92,7 @@
88
92
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-icon') {
89
93
  @if inspection.get-theme-version($theme) == 1 {
90
94
  @include _theme-from-tokens(inspection.get-theme-tokens($theme), $options...);
91
- }
92
- @else {
95
+ } @else {
93
96
  @include base($theme);
94
97
  @if inspection.theme-has($theme, color) {
95
98
  @include color($theme);
@@ -106,7 +109,8 @@
106
109
 
107
110
  @mixin _theme-from-tokens($tokens, $options...) {
108
111
  @include validation.selector-defined(
109
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
112
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
113
+ );
110
114
  $mat-icon-tokens: token-utils.get-tokens-for($tokens, tokens-mat-icon.$prefix, $options...);
111
115
  @include token-utils.create-token-values(tokens-mat-icon.$prefix, $mat-icon-tokens);
112
116
  }
@@ -7,35 +7,38 @@
7
7
  @mixin base($theme) {
8
8
  @if inspection.get-theme-version($theme) == 1 {
9
9
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
10
+ } @else {
10
11
  }
11
- @else {}
12
12
  }
13
13
 
14
14
  @mixin color($theme) {
15
15
  @if inspection.get-theme-version($theme) == 1 {
16
16
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
17
+ } @else {
17
18
  }
18
- @else {}
19
19
  }
20
20
 
21
21
  @mixin typography($theme) {
22
22
  @if inspection.get-theme-version($theme) == 1 {
23
23
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
24
+ } @else {
24
25
  }
25
- @else {}
26
26
  }
27
27
 
28
28
  @mixin density($theme) {
29
29
  @if inspection.get-theme-version($theme) == 1 {
30
30
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
31
+ } @else {
31
32
  }
32
- @else {}
33
33
  }
34
34
 
35
35
  @mixin overrides($tokens: ()) {
36
36
  @include token-utils.batch-create-token-values(
37
37
  $tokens,
38
- (prefix: '', tokens: ()),
38
+ (
39
+ namespace: '',
40
+ tokens: (),
41
+ )
39
42
  );
40
43
  }
41
44
 
@@ -43,8 +46,7 @@
43
46
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-input') {
44
47
  @if inspection.get-theme-version($theme) == 1 {
45
48
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
46
- }
47
- @else {
49
+ } @else {
48
50
  @include base($theme);
49
51
  @if inspection.theme-has($theme, color) {
50
52
  @include color($theme);
@@ -61,5 +63,6 @@
61
63
 
62
64
  @mixin _theme-from-tokens($tokens) {
63
65
  @include validation.selector-defined(
64
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
66
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
67
+ );
65
68
  }
@@ -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.
@@ -175,8 +207,14 @@
175
207
  @mixin overrides($tokens: ()) {
176
208
  @include token-utils.batch-create-token-values(
177
209
  $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()),
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
 
@@ -184,8 +222,7 @@
184
222
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-list') {
185
223
  @if inspection.get-theme-version($theme) == 1 {
186
224
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
187
- }
188
- @else {
225
+ } @else {
189
226
  @include base($theme);
190
227
  @if inspection.theme-has($theme, color) {
191
228
  @include color($theme);
@@ -202,7 +239,8 @@
202
239
 
203
240
  @mixin _theme-from-tokens($tokens) {
204
241
  @include validation.selector-defined(
205
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
242
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
243
+ );
206
244
  $mdc-list-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-list.$prefix);
207
245
  $mat-list-tokens: token-utils.get-tokens-for($tokens, tokens-mat-list.$prefix);
208
246
  @include token-utils.create-token-values(tokens-mdc-list.$prefix, $mdc-list-tokens);
@@ -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,14 +49,17 @@
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
56
  @mixin overrides($tokens: ()) {
54
57
  @include token-utils.batch-create-token-values(
55
58
  $tokens,
56
- (prefix: tokens-mat-menu.$prefix, tokens: tokens-mat-menu.get-token-slots()),
59
+ (
60
+ namespace: tokens-mat-menu.$prefix,
61
+ tokens: tokens-mat-menu.get-token-slots(),
62
+ )
57
63
  );
58
64
  }
59
65
 
@@ -61,8 +67,7 @@
61
67
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-menu') {
62
68
  @if inspection.get-theme-version($theme) == 1 {
63
69
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
64
- }
65
- @else {
70
+ } @else {
66
71
  @include base($theme);
67
72
  @if inspection.theme-has($theme, color) {
68
73
  @include color($theme);
@@ -79,9 +84,12 @@
79
84
 
80
85
  @mixin _theme-from-tokens($tokens) {
81
86
  @include validation.selector-defined(
82
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
87
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
88
+ );
83
89
  @if ($tokens != ()) {
84
90
  @include token-utils.create-token-values(
85
- tokens-mat-menu.$prefix, map.get($tokens, tokens-mat-menu.$prefix));
91
+ tokens-mat-menu.$prefix,
92
+ map.get($tokens, tokens-mat-menu.$prefix)
93
+ );
86
94
  }
87
95
  }
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-next.9",
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-next.9",
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,27 +31,33 @@
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
  }
@@ -58,7 +65,10 @@
58
65
  @mixin overrides($tokens: ()) {
59
66
  @include token-utils.batch-create-token-values(
60
67
  $tokens,
61
- (prefix: tokens-mat-paginator.$prefix, tokens: tokens-mat-paginator.get-token-slots()),
68
+ (
69
+ namespace: tokens-mat-paginator.$prefix,
70
+ tokens: tokens-mat-paginator.get-token-slots(),
71
+ )
62
72
  );
63
73
  }
64
74
 
@@ -66,8 +76,7 @@
66
76
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-paginator') {
67
77
  @if inspection.get-theme-version($theme) == 1 {
68
78
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
69
- }
70
- @else {
79
+ } @else {
71
80
  @include base($theme);
72
81
  @if inspection.theme-has($theme, color) {
73
82
  @include color($theme);
@@ -84,9 +93,12 @@
84
93
 
85
94
  @mixin _theme-from-tokens($tokens) {
86
95
  @include validation.selector-defined(
87
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
96
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
97
+ );
88
98
  @if ($tokens != ()) {
89
99
  @include token-utils.create-token-values(
90
- tokens-mat-paginator.$prefix, map.get($tokens, tokens-mat-paginator.$prefix));
100
+ tokens-mat-paginator.$prefix,
101
+ map.get($tokens, tokens-mat-paginator.$prefix)
102
+ );
91
103
  }
92
104
  }