@angular/material 19.0.0-next.7 → 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.
- package/_index.scss +3 -2
- package/autocomplete/_autocomplete-theme.scss +30 -21
- package/badge/_badge-theme.scss +31 -21
- package/bottom-sheet/_bottom-sheet-theme.scss +25 -17
- package/button/_button-theme.scss +220 -100
- package/button/_fab-theme.scss +88 -41
- package/button/_icon-button-theme.scss +31 -22
- package/button/index.d.ts +2 -2
- package/button-toggle/_button-toggle-theme.scss +52 -32
- package/card/_card-theme.scss +72 -35
- package/checkbox/_checkbox-theme.scss +6 -4
- package/chips/_chips-theme.scss +57 -27
- package/core/_core-theme.scss +62 -33
- package/core/_core.scss +1 -3
- package/core/index.d.ts +14 -0
- package/core/option/_optgroup-theme.scss +22 -15
- package/core/option/_option-theme.scss +27 -18
- package/core/ripple/_ripple-theme.scss +26 -18
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +40 -18
- package/core/theming/_all-theme.scss +3 -0
- package/core/tokens/_density.scss +1 -0
- package/core/tokens/_m3-system.scss +34 -6
- package/core/tokens/_token-utils.scss +91 -34
- package/core/tokens/m2/_index.scss +2 -0
- package/core/tokens/m2/mat/_badge.scss +12 -3
- package/core/tokens/m2/mat/_timepicker.scss +44 -0
- package/core/tokens/m2/mdc/_radio.scss +1 -1
- package/core/tokens/m3/_index.scss +2 -0
- package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +1 -1
- package/core/tokens/m3/mat/_badge.scss +6 -3
- package/core/tokens/m3/mat/_timepicker.scss +22 -0
- package/core/typography/_all-typography.scss +2 -0
- package/datepicker/_datepicker-theme.scss +46 -29
- package/datepicker/index.d.ts +1 -1
- package/dialog/_dialog-theme.scss +39 -20
- package/dialog/index.d.ts +6 -3
- package/divider/_divider-theme.scss +21 -14
- package/expansion/_expansion-theme.scss +29 -21
- package/fesm2022/autocomplete.mjs +14 -16
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +11 -12
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +11 -11
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +14 -13
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +45 -43
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +49 -60
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +19 -18
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +52 -55
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +122 -116
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +98 -106
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +0 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +28 -33
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +8 -8
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion.mjs +31 -34
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +38 -45
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +26 -29
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +7 -7
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +12 -12
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +7 -8
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list.mjs +60 -67
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +23 -24
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs +2 -2
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +11 -11
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +8 -8
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +8 -8
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +14 -13
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +12 -13
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +28 -30
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +19 -18
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +21 -21
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +25 -28
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +17 -16
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +37 -40
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +57 -73
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +57 -63
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +196 -0
- package/fesm2022/timepicker/testing.mjs.map +1 -0
- package/fesm2022/timepicker.mjs +842 -0
- package/fesm2022/timepicker.mjs.map +1 -0
- package/fesm2022/toolbar.mjs +11 -12
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +11 -12
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +26 -32
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +105 -56
- package/form-field/index.d.ts +1 -1
- package/grid-list/_grid-list-theme.scss +18 -12
- package/icon/_icon-theme.scss +15 -11
- package/icon/index.d.ts +1 -1
- package/input/_input-theme.scss +11 -8
- package/list/_list-theme.scss +82 -44
- package/menu/_menu-theme.scss +26 -18
- package/menu/index.d.ts +0 -1
- package/package.json +10 -2
- package/paginator/_paginator-theme.scss +32 -20
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +13 -11
- package/progress-spinner/_progress-spinner-theme.scss +34 -20
- package/radio/_radio-theme.scss +50 -26
- package/schematics/collection.json +3 -3
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/{m3-theme → theme-color}/index_bundled.js +454 -288
- package/schematics/ng-generate/theme-color/index_bundled.js.map +7 -0
- package/schematics/ng-generate/{m3-theme → theme-color}/schema.json +7 -13
- package/select/_select-theme.scss +31 -22
- package/sidenav/_sidenav-theme.scss +21 -14
- package/slide-toggle/_slide-toggle-theme.scss +42 -22
- package/slider/_slider-theme.scss +55 -35
- package/snack-bar/_snack-bar-theme.scss +22 -14
- package/sort/_sort-theme.scss +26 -18
- package/stepper/_stepper-theme.scss +33 -24
- package/table/_table-theme.scss +29 -20
- package/tabs/_tabs-theme.scss +89 -46
- package/tabs/index.d.ts +2 -2
- package/timepicker/_timepicker-theme.scss +120 -0
- package/timepicker/index.d.ts +297 -0
- package/timepicker/testing/index.d.ts +113 -0
- package/toolbar/_toolbar-theme.scss +28 -19
- package/tooltip/_tooltip-theme.scss +11 -12
- package/tree/_tree-theme.scss +26 -18
- package/schematics/ng-generate/m3-theme/index_bundled.js.map +0 -7
package/list/_list-theme.scss
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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,
|
|
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,
|
|
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
|
-
(
|
|
179
|
-
|
|
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
|
-
|
|
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);
|
package/menu/_menu-theme.scss
CHANGED
|
@@ -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(
|
|
17
|
-
tokens-mat-menu
|
|
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(
|
|
29
|
-
tokens-mat-menu
|
|
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(
|
|
41
|
-
tokens-mat-menu
|
|
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
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
91
|
+
tokens-mat-menu.$prefix,
|
|
92
|
+
map.get($tokens, tokens-mat-menu.$prefix)
|
|
93
|
+
);
|
|
86
94
|
}
|
|
87
95
|
}
|
package/menu/index.d.ts
CHANGED
|
@@ -254,7 +254,6 @@ export declare const matMenuAnimations: {
|
|
|
254
254
|
/** Menu content that will be rendered lazily once the menu is opened. */
|
|
255
255
|
export declare class MatMenuContent implements OnDestroy {
|
|
256
256
|
private _template;
|
|
257
|
-
private _componentFactoryResolver;
|
|
258
257
|
private _appRef;
|
|
259
258
|
private _injector;
|
|
260
259
|
private _viewContainerRef;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material",
|
|
3
|
-
"version": "19.0.0-next.
|
|
3
|
+
"version": "19.0.0-next.9",
|
|
4
4
|
"description": "Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -319,6 +319,14 @@
|
|
|
319
319
|
"types": "./tabs/testing/index.d.ts",
|
|
320
320
|
"default": "./fesm2022/tabs/testing.mjs"
|
|
321
321
|
},
|
|
322
|
+
"./timepicker": {
|
|
323
|
+
"types": "./timepicker/index.d.ts",
|
|
324
|
+
"default": "./fesm2022/timepicker.mjs"
|
|
325
|
+
},
|
|
326
|
+
"./timepicker/testing": {
|
|
327
|
+
"types": "./timepicker/testing/index.d.ts",
|
|
328
|
+
"default": "./fesm2022/timepicker/testing.mjs"
|
|
329
|
+
},
|
|
322
330
|
"./toolbar": {
|
|
323
331
|
"types": "./toolbar/index.d.ts",
|
|
324
332
|
"default": "./fesm2022/toolbar.mjs"
|
|
@@ -346,7 +354,7 @@
|
|
|
346
354
|
},
|
|
347
355
|
"peerDependencies": {
|
|
348
356
|
"@angular/animations": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
|
|
349
|
-
"@angular/cdk": "19.0.0-next.
|
|
357
|
+
"@angular/cdk": "19.0.0-next.9",
|
|
350
358
|
"@angular/core": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
|
|
351
359
|
"@angular/common": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
|
|
352
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(
|
|
25
|
-
tokens-mat-paginator
|
|
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(
|
|
37
|
-
tokens-mat-paginator
|
|
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(
|
|
45
|
-
$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(
|
|
53
|
-
tokens-mat-paginator
|
|
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
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
100
|
+
tokens-mat-paginator.$prefix,
|
|
101
|
+
map.get($tokens, tokens-mat-paginator.$prefix)
|
|
102
|
+
);
|
|
91
103
|
}
|
|
92
104
|
}
|