@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.
- package/_index.scss +1 -2
- package/autocomplete/_autocomplete-theme.scss +37 -24
- package/autocomplete/index.d.ts +5 -6
- package/badge/_badge-theme.scss +38 -24
- package/bottom-sheet/_bottom-sheet-theme.scss +32 -20
- package/button/_button-theme.scss +229 -105
- package/button/_fab-theme.scss +95 -44
- package/button/_icon-button-theme.scss +38 -25
- package/button/index.d.ts +3 -3
- package/button-toggle/_button-toggle-theme.scss +62 -37
- package/card/_card-theme.scss +79 -38
- package/card/index.d.ts +2 -3
- package/checkbox/_checkbox-theme.scss +16 -10
- package/chips/_chips-theme.scss +64 -30
- package/core/_core-theme.scss +55 -37
- package/core/_core.scss +3 -6
- package/core/option/_optgroup-theme.scss +29 -18
- package/core/option/_option-theme.scss +34 -21
- package/core/ripple/_ripple-theme.scss +33 -21
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +49 -23
- package/core/theming/_config-validation.scss +4 -4
- package/core/theming/_definition.scss +12 -2
- package/core/tokens/_m3-system.scss +86 -42
- package/core/tokens/_token-utils.scss +91 -34
- package/core/tokens/m2/mat/_badge.scss +12 -3
- package/core/tokens/m2/mdc/_radio.scss +1 -1
- package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +1 -1
- package/core/tokens/m3/mat/_badge.scss +6 -3
- package/datepicker/_datepicker-theme.scss +53 -32
- package/datepicker/index.d.ts +33 -34
- package/dialog/_dialog-theme.scss +46 -23
- package/divider/_divider-theme.scss +28 -17
- package/expansion/_expansion-theme.scss +36 -24
- package/fesm2022/autocomplete/testing.mjs +2 -5
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +225 -148
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs +2 -5
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +45 -35
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +80 -58
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs +2 -2
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs +4 -7
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +82 -45
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +106 -79
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs +3 -6
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +56 -69
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs +4 -7
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +104 -62
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs +11 -14
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +322 -276
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core/testing.mjs +5 -11
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +242 -187
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker/testing.mjs +13 -22
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +827 -582
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +15 -10
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +221 -156
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs +1 -1
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +10 -12
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs +7 -10
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +86 -80
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +12 -15
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field.mjs +179 -132
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +11 -17
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +75 -56
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +8 -8
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +66 -46
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input/testing.mjs +3 -3
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input.mjs +103 -72
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list/testing.mjs +21 -38
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +197 -195
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs +3 -6
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +178 -127
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs +10 -13
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +83 -58
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs +1 -1
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +36 -35
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs +1 -1
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +28 -14
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio/testing.mjs +6 -12
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +123 -87
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select/testing.mjs +6 -9
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +219 -182
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs +6 -6
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +136 -125
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs +3 -6
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +77 -47
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs +2 -2
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +262 -194
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs +4 -7
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +143 -111
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs +3 -6
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +94 -74
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs +4 -4
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +146 -113
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table/testing.mjs +13 -25
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +183 -194
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs +5 -5
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +329 -251
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +7 -16
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +160 -155
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs +2 -5
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +26 -17
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs +6 -9
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +97 -74
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs +3 -6
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +57 -61
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +114 -61
- package/form-field/index.d.ts +9 -10
- package/grid-list/_grid-list-theme.scss +25 -15
- package/icon/_icon-theme.scss +22 -14
- package/input/_input-theme.scss +18 -11
- package/list/_list-theme.scss +89 -47
- package/list/index.d.ts +20 -21
- package/menu/_menu-theme.scss +33 -21
- package/menu/index.d.ts +8 -9
- package/package.json +2 -2
- package/paginator/_paginator-theme.scss +39 -23
- 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 +20 -16
- package/progress-spinner/_progress-spinner-theme.scss +41 -25
- package/progress-spinner/index.d.ts +3 -4
- package/radio/_radio-theme.scss +60 -32
- package/radio/index.d.ts +2 -3
- 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-add/theming/create-custom-theme.js +1 -6
- package/schematics/ng-add/theming/create-custom-theme.mjs +1 -6
- package/schematics/ng-generate/{m3-theme → theme-color}/index_bundled.js +480 -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/schematics/ng-update/index_bundled.js +6 -1
- package/schematics/ng-update/index_bundled.js.map +1 -1
- package/select/_select-theme.scss +38 -25
- package/select/index.d.ts +6 -7
- package/sidenav/_sidenav-theme.scss +28 -17
- package/slide-toggle/_slide-toggle-theme.scss +52 -28
- package/slider/_slider-theme.scss +62 -38
- package/snack-bar/_snack-bar-theme.scss +29 -17
- package/sort/_sort-theme.scss +33 -21
- package/stepper/_stepper-theme.scss +40 -27
- package/stepper/index.d.ts +14 -15
- package/table/_table-theme.scss +36 -23
- package/tabs/_tabs-theme.scss +97 -50
- package/tabs/index.d.ts +2 -2
- package/timepicker/_timepicker-theme.scss +37 -24
- package/toolbar/_toolbar-theme.scss +35 -22
- package/tooltip/_tooltip-theme.scss +18 -15
- package/tooltip/index.d.ts +5 -6
- package/tree/_tree-theme.scss +33 -21
- 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.
|
|
@@ -172,20 +204,29 @@
|
|
|
172
204
|
}
|
|
173
205
|
}
|
|
174
206
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
(
|
|
179
|
-
|
|
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
|
-
|
|
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
|
|
9
|
-
import * as i2 from '@angular/
|
|
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
|
|
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
|
|
31
|
+
declare namespace i4 {
|
|
44
32
|
export {
|
|
45
33
|
MatActionList
|
|
46
34
|
}
|
|
47
35
|
}
|
|
48
36
|
|
|
49
|
-
declare namespace
|
|
37
|
+
declare namespace i5 {
|
|
50
38
|
export {
|
|
51
39
|
MAT_NAV_LIST,
|
|
52
40
|
MatNavList
|
|
53
41
|
}
|
|
54
42
|
}
|
|
55
43
|
|
|
56
|
-
declare namespace
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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,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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
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/
|
|
11
|
-
import * as i2 from '@angular/
|
|
12
|
-
import * as
|
|
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
|
|
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
|
|
40
|
+
declare namespace i4 {
|
|
42
41
|
export {
|
|
43
42
|
MatMenuItem
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
|
|
47
|
-
declare namespace
|
|
46
|
+
declare namespace i5 {
|
|
48
47
|
export {
|
|
49
48
|
MAT_MENU_CONTENT,
|
|
50
49
|
MatMenuContent
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
|
|
54
|
-
declare namespace
|
|
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.
|
|
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-
|
|
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-
|
|
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(
|
|
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,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(
|
|
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
|
}
|
|
57
64
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
104
|
+
tokens-mat-paginator.$prefix,
|
|
105
|
+
map.get($tokens, tokens-mat-paginator.$prefix)
|
|
106
|
+
);
|
|
91
107
|
}
|
|
92
108
|
}
|